/* ============================================
   Modern Override Styles - 百易德官网
   Clean, Premium, Professional
   ============================================ */

/* === Global === */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #1a1a2e;
  overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #c0c0c0; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #999; }

::selection {
  background: #1e40af;
  color: #fff;
}

/* === Fade-up Animation === */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Header / Navigation === */
#header {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
#header.xg {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

#nav ul li h3 {
  font-size: 1rem !important;
  letter-spacing: 0.5px;
  transition: color 0.3s;
}

#nav>ul>li h3::after {
  background: linear-gradient(90deg, #1e40af, #3b82f6) !important;
  height: 2px !important;
  border-radius: 1px;
}

#nav ul li .sub {
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(20px);
}

#nav ul li .sub .box {
  padding: 12px 16px !important;
}

#nav ul li .sub a {
  color: #555 !important;
  font-size: 0.875rem;
  padding: 6px 12px !important;
  border-radius: 8px;
  transition: all 0.25s;
}

#nav ul li .sub a:hover {
  color: #1e40af !important;
  background: #f0f4ff;
}

/* === Banner === */
#banner .txt h3 {
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
  letter-spacing: 2px;
}

#banner .txt p.dd2 {
  opacity: 0.85;
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.3);
  font-size: 1.75rem !important;
  letter-spacing: 1px;
}

#banner .txt p.dd3 {
  opacity: 0.7;
  font-size: 1.1rem !important;
}

/* === Main Content === */
#s_mian {
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.15) !important;
}

/* === Section Titles === */
.tit {
  margin-bottom: 2.5rem !important;
}

.tit h3 {
  font-size: 1.625rem !important;
  color: #0f172a !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px;
}

.tit h3 span {
  font-size: 1.875rem !important;
  background: linear-gradient(135deg, #1e3a8a, #1e40af);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tit .btn_r {
  border-radius: 8px !important;
  font-weight: 500 !important;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(1, 67, 155, 0.3);
}

/* === About Section === */
.about_box {
  border-radius: 16px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  max-width: 860px;
}

.about_box h4 {
  font-size: 2rem !important;
  font-weight: 700 !important;
  letter-spacing: 1px;
}

.about_box .desc {
  font-size: 0.95rem !important;
  line-height: 1.9 !important;
  opacity: 0.92;
}

/* Stats */
.shuju ul li h4 span.counter {
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800 !important;
}

.shuju ul li h4 span:not(.counter) {
  color: #64748b !important;
  font-weight: 500;
}

.shuju ul li h6 {
  color: #64748b !important;
  font-size: 1.125rem !important;
  font-weight: 500;
}

/* === Products / Services Section === */
.services {
  background: #f8fafc !important;
}

.services ul.s_pro_slide {
  display: flex !important;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.services ul.s_pro_slide li {
  width: calc(25% - 15px);
  padding: 0 !important;
  flex-shrink: 0;
}

.services ul li .box {
  background: #fff !important;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: block;
  height: 100%;
}

.services ul li .box:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.services ul li .img {
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}

.services ul li .img img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.services ul li:hover .img img {
  transform: scale(1.08) !important;
}

.services ul li .txt {
  border: none !important;
  padding: 1.25rem 1.5rem 1.5rem !important;
  border-radius: 0 0 16px 16px;
}

.services ul li .txt h5 {
  font-size: 1rem !important;
  color: #0f172a !important;
  font-weight: 600;
  margin-bottom: 0.5rem !important;
}

.services ul li .txt p {
  font-size: 0.8125rem !important;
  color: #64748b !important;
  white-space: normal !important;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.services ul li .txt .btn_more {
  margin-top: 1.25rem !important;
  border-color: #e2e8f0 !important;
  color: #475569 !important;
  font-weight: 500;
}

/* === Customer Cases (Products section) === */
.products {
  background-size: cover !important;
  background-attachment: fixed !important;
  position: relative;
}

.products::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 0;
}

.products > .container-fluid {
  position: relative;
  z-index: 1;
}

.products .tit h3 {
  color: #fff !important;
}

.products .tit h3 span {
  background: linear-gradient(135deg, #fff, #bfdbfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mySwiper1 .swiper-slide a {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.4s;
}

.mySwiper1 .swiper-slide a:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.4);
}

.mySwiper1 .txt {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
}

.mySwiper1 .txt:after {
  background: linear-gradient(90deg, #1e40af, #3b82f6) !important;
}

/* === News Section === */
.news .swiper-slide .box {
  border-radius: 16px !important;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.news .swiper-slide .box:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15) !important;
}

.news .swiper-slide .con {
  padding: 1.25rem 1.5rem !important;
  border-radius: 0 0 16px 16px;
}

.news .swiper-slide .con h4 {
  font-size: 0.8125rem !important;
  color: #1e40af !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.news .swiper-slide .con h5 a {
  font-size: 1.125rem !important;
  color: #0f172a !important;
  font-weight: 600;
  transition: color 0.3s;
}

.news .swiper-slide .box:hover .con h5 a {
  color: #fff !important;
}

/* === Culture Section (Diqiu) === */
.diqiu {
  position: relative;
}

.diqiu::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  z-index: 0;
}

.diqiu > .container-fluid {
  position: relative;
  z-index: 1;
}

.diqiu h4 {
  font-size: 2.75rem !important;
  letter-spacing: 2px;
}

.diqiu .desc {
  font-size: 1.125rem !important;
  opacity: 0.9;
  letter-spacing: 1px;
}

/* === Partners === */
.partners {
  background: #fff !important;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.partners ul {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  width: 100%;
}

.partners ul li {
  border: 1px solid #f1f5f9 !important;
  float: none !important;
  width: auto !important;
  padding: 16px !important;
  transition: all 0.4s;
  border-radius: 0 !important;
}

.partners ul li img {
  max-height: 70px;
  object-fit: contain;
  transition: transform 0.4s;
}

.partners ul li:hover {
  background: #f8fafc;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.partners ul li:hover img {
  transform: scale(1.05);
}

/* === Section Bottom (CTA) === */
.section_bottom ul li a {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative;
  overflow: hidden;
}

.section_bottom ul li a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.6s;
}

.section_bottom ul li a:hover::before {
  left: 100%;
}

.section_bottom ul li a h4 {
  letter-spacing: 2px;
  transition: all 0.4s;
}

/* === Footer === */
#foot {
  background: #0f172a !important;
}

#foot .ft_bg {
  background: transparent !important;
}

.foot_nav dl dt {
  font-size: 1rem !important;
  font-weight: 600;
}

.foot_nav dl dt::after {
  background: linear-gradient(90deg, #3b82f6, #60a5fa) !important;
  height: 2px !important;
  border-radius: 1px;
  width: 30px !important;
}

.foot_nav dl dd a {
  color: #94a3b8 !important;
  font-size: 0.875rem;
  transition: all 0.3s;
}

.foot_nav dl dd a:hover {
  color: #fff !important;
  padding-left: 8px !important;
}

.foot_lianxi li {
  color: #94a3b8;
  font-size: 0.875rem;
  line-height: 2 !important;
}

.copyright {
  border-top-color: rgba(255, 255, 255, 0.08) !important;
  color: #64748b !important;
  font-size: 0.8125rem !important;
}

.copyright a {
  color: #64748b !important;
  transition: color 0.3s;
}

.copyright a:hover {
  color: #93c5fd !important;
}

/* === Inner Page Banner === */
.n_banner {
  position: relative;
}

.n_banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.7), rgba(15, 23, 42, 0.6));
  z-index: 1;
}

.n_banner .box_table {
  position: relative;
  z-index: 2;
}

.n_banner .box_table h3 {
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  letter-spacing: 2px;
}

/* === Nav Position (Breadcrumb bar) === */
.n_position {
  background: #fff !important;
  border-bottom: 1px solid #f1f5f9;
}

.n_position ul li {
  border-radius: 8px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  transition: all 0.3s;
}

.n_position ul li a {
  color: #475569 !important;
  font-weight: 500;
}

.n_position ul li.on {
  background: linear-gradient(135deg, #1e40af, #1e40af) !important;
  border-color: transparent !important;
}

.n_position ul li.on a {
  color: #fff !important;
}

.n_position ul li:hover {
  background: linear-gradient(135deg, #1e40af, #2563eb) !important;
  border-color: transparent !important;
}

.n_position ul li:hover a {
  color: #fff !important;
}

/* === About Page === */
.atit h3 {
  font-size: 1.75rem !important;
  background: linear-gradient(135deg, #1e3a8a, #1e40af);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.atit span {
  color: #64748b !important;
  font-weight: 400;
}

.about_1 .desc p {
  color: #334155 !important;
  font-size: 1rem !important;
  line-height: 2 !important;
}

.about_1 .desc {
  font-size: 1rem !important;
  line-height: 2 !important;
}

.about_1 .p {
  color: #475569 !important;
  font-weight: 500;
}

.about_1 img {
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s;
}

.about_1 img:hover {
  transform: scale(1.02);
}

/* === Timeline (Development History) === */
.swiper-slide .box {
  background: #fff !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid #f1f5f9;
  padding: 2rem 2.5rem !important;
  transition: all 0.3s;
}

.swiper-slide .box:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.swiper-slide h3 {
  color: #1e40af !important;
  font-size: 2.5rem !important;
  font-family: inherit !important;
}

.swiper-slide p {
  color: #475569 !important;
  line-height: 1.8 !important;
}

.swiper-slide::before {
  background: linear-gradient(90deg, #1e40af, #3b82f6) !important;
  height: 3px !important;
  border-radius: 2px;
}

.swiper-slide::after {
  display: none !important;
}

/* === Honors (Certificates) === */
.n_zizhi ul li .bg {
  background: #f8fafc !important;
  border-radius: 12px !important;
  border: 1px solid #f1f5f9;
  transition: all 0.3s;
}

.n_zizhi ul li:hover .bg {
  background: #fff !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08) !important;
  transform: translateY(-4px);
}

.n_zizhi ul li p {
  color: #334155 !important;
  font-size: 0.9375rem !important;
  font-weight: 500;
}

/* === Product Detail === */
.product_detail1 {
  padding: 40px 0 30px !important;
}

.product_detail1_l {
  border-radius: 16px !important;
  border: 1px solid #f1f5f9 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.product_detail1_r h2 {
  color: #0f172a !important;
  font-weight: 700 !important;
  border-bottom-color: #e2e8f0 !important;
}

.product_detail1_r #productDesc {
  color: #475569 !important;
}

/* === Language Switch Button === */
.lang-switch {
  background: linear-gradient(135deg, #1e40af, #3b82f6) !important;
  border: none !important;
  border-radius: 25px !important;
  padding: 8px 18px !important;
  font-size: 13px !important;
  box-shadow: 0 4px 16px rgba(30, 64, 175, 0.35) !important;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.lang-switch:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30, 64, 175, 0.45) !important;
  background: linear-gradient(135deg, #1e3a8a, #2563eb) !important;
}

/* === Page Navigation === */
#pages li a {
  border-radius: 8px !important;
  border-color: #e2e8f0 !important;
  color: #475569 !important;
  transition: all 0.3s;
}

#pages li.active a,
#pages li a:hover {
  background: linear-gradient(135deg, #1e40af, #2563eb) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(30, 64, 175, 0.3);
}

/* === List Items === */
.list_box_13 li {
  font-size: 1rem !important;
  color: #334155 !important;
  border-radius: 8px;
  transition: all 0.3s;
}

.list_box_13 li:hover {
  color: #fff !important;
  border-radius: 8px;
}

/* === Product List (products.css) === */
.pro .list a {
  border-radius: 12px !important;
  overflow: hidden;
  border-color: #f1f5f9 !important;
  transition: all 0.3s;
}

.pro .list a:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.pro .list .txt::after {
  background: linear-gradient(90deg, #1e40af, #3b82f6) !important;
}

.menu-list a {
  border-radius: 8px !important;
  border-color: #e2e8f0 !important;
  color: #475569 !important;
  transition: all 0.3s;
}

.menu-list a.active,
.menu-list a:hover {
  border-color: #1e40af !important;
  color: #1e40af !important;
  background: #f0f4ff;
}

/* === Responsive === */
@media (max-width: 1024px) {
  .services ul.s_pro_slide li {
    width: calc(50% - 10px) !important;
  }

  .partners ul {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .services ul.s_pro_slide li {
    width: calc(50% - 10px) !important;
  }

  .services ul li .txt {
    padding: 1rem 1.125rem 1.25rem !important;
  }

  .partners ul {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .about_box {
    position: relative !important;
    border-radius: 12px !important;
  }

  .tit h3 {
    font-size: 1.25rem !important;
  }

  .tit h3 span {
    font-size: 1.375rem !important;
  }

  #banner .txt h3 {
    font-size: 1.5rem !important;
  }

  #banner .txt p.dd2 {
    font-size: 1rem !important;
  }

  #banner .txt p.dd3 {
    font-size: 0.875rem !important;
  }

  .diqiu h4 {
    font-size: 2rem !important;
  }

  .diqiu .desc {
    font-size: 1rem !important;
  }

  .section_bottom {
    height: 5rem !important;
  }
}

@media (max-width: 480px) {
  .services ul.s_pro_slide li {
    width: 100% !important;
  }

  .partners ul {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
