.form-card .wpcf7-form input,.form-card .wpcf7-form select,.form-card .wpcf7-form textarea {

  height: auto !important;
  line-height: 1.5 !important;

}

.form-card .wpcf7-form select {

  padding: 12px 14px !important;
  cursor: pointer;

}

* {

  margin: 0;
  padding: 0;
  box-sizing: border-box;

}

body {

  font-family: "Microsoft YaHei","PingFang SC","Segoe UI",sans-serif;
  background: #f0f2f5;
  color: #1c2b3a;

}

.topbar {

  background: #0d2244;
  color: #c8d4e8;
  font-size: 12px;
  padding: 8px 0;

}

.topbar .wrap {

  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;

}

header {

  background: #fff;
  box-shadow: 0 2px 12px rgba(13,34,68,.08);
  position: sticky;
  top: 0;
  z-index: 50;

}

.nav {

  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;

}

.logo {

  display: flex;
  align-items: center;
  gap: 10px;

}

.logo-mark {

  width: 42px;
  height: 42px;
  background: linear-gradient(135deg,#12386e,#0d2244);
  color: #d9b45c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
  border-radius: 6px;

}

.logo-text .cn {

  font-size: 19px;
  font-weight: 700;
  color: #0d2244;
  letter-spacing: 1px;

}

.logo-text .en {

  font-size: 10px;
  color: #8a97a8;
  letter-spacing: 2px;
  text-transform: uppercase;

}

nav.menu {

  display: flex;
  gap: 34px;

}

nav.menu a {

  text-decoration: none;
  color: #33445a;
  font-size: 15px;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;

}

nav.menu a.active, nav.menu a:hover {

  color: #12386e;
  border-bottom-color: #d9b45c;

}

.nav-cta {

  background: #12386e;
  color: #fff;
  padding: 10px 22px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  display: inline-block;
  -webkit-animation: breathe-blue 2.4s ease-in-out infinite;
  animation: breathe-blue 2.4s ease-in-out infinite;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;

}
.nav-cta .mob { display: none; }

@media (min-width: 901px) {
  .nav-cta {
    -webkit-animation-name: breathe-blue-scale;
    animation-name: breathe-blue-scale;
  }
}

.nav-cta:hover {

  background: #1a4a8f;

}

section.block {

  background: #fff;
  padding: 80px 0;

}

section.block.gray {

  background: #f6f8fb;

}

.wrap {

  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;

}

.sec-head {

  text-align: center;
  margin-bottom: 52px;
  color: #6b7c92;
  font-size: 15px;

}

.sec-head .en {

  color: #d9b45c;
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 600;

}

.sec-head h2 {

  font-size: 32px;
  color: #0d2244;
  margin-top: 10px;
  font-weight: 700;
  letter-spacing: 1px;

}

.sec-head .line {

  width: 56px;
  height: 3px;
  background: #d9b45c;
  margin: 18px auto 0;

}

.sec-head p {

  color: #6b7c92;
  margin-top: 16px;
  font-size: 15px;

}

.case-grid {

  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 24px;

}

.case-grid > .case {

  -webkit-box-flex: 0;
  -webkit-flex: 0 0 calc(33.333% - 16px);
  flex: 0 0 calc(33.333% - 16px);
  min-width: 0;
  box-sizing: border-box;

}

.lead {

  background: linear-gradient(120deg,#0d2244,#16407e);
  color: #fff;
  padding: 80px 0;

}

.lead .wrap {

  display: flex;
  gap: 60px;
  align-items: center;

}

.lead-left {

  flex: 1.1 1 0;
  min-width: 0;

}

.lead-left h2 {

  font-size: 30px;
  line-height: 1.5;

}

.lead-left h2 .gold {

  color: #e8c97e;

}

.lead-left p {

  margin-top: 18px;
  color: #c3d2e8;
  line-height: 2;
  font-size: 15px;

}

.lead-points {

  margin-top: 26px;

}

.lead-points div {

  padding: 8px 0;
  font-size: 15px;
  color: #e8eef7;

}

.lead-points span {

  color: #e8c97e;
  margin-right: 10px;

}

.form-card {

  background: #fff;
  border-radius: 10px;
  padding: 36px 34px;
  color: #1c2b3a;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  flex: 1 1 0;
  min-width: 0;

}

.form-card h3 {

  text-align: center;
  font-size: 20px;
  color: #0d2244;
  margin-bottom: 6px;

}

.form-card .tip {

  text-align: center;
  font-size: 13px;
  color: #98a5b6;
  margin-bottom: 24px;

}

.form-card label {

  display: block;
  font-size: 13px;
  color: #5a6b80;
  margin: 14px 0 6px;
  font-weight: 600;

}

.form-card label i {

  color: #c0392b;
  font-style: normal;

}

.form-card input, .form-card select, .form-card textarea {

  width: 100%;
  border: 1px solid #dbe3ec;
  border-radius: 5px;
  padding: 12px 14px;
  font-size: 14px;
  background: #f9fbfd;
  font-family: inherit;

}

.form-card input:focus, .form-card select:focus, .form-card textarea:focus {

  outline: none;
  border-color: #12386e;
  background: #fff;

}

.form-card .submit {

  width: 100%;
  margin-top: 22px;
  background: linear-gradient(135deg,#d9b45c,#c19a3f);
  border: none;
  color: #0d2244;
  font-size: 16px;
  font-weight: 700;
  padding: 14px;
  border-radius: 5px;
  cursor: pointer;
  letter-spacing: 2px;

}

.form-card .privacy {

  text-align: center;
  font-size: 12px;
  color: #a8b3c2;
  margin-top: 12px;

}

.faq {

  max-width: 860px;
  margin: 0 auto;

}

.faq-item {

  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 8px;
  margin-bottom: 14px;
  overflow: hidden;

}

.faq-q {

  padding: 18px 24px;
  font-size: 15px;
  font-weight: 600;
  color: #0d2244;
  display: flex;
  justify-content: space-between;
  cursor: pointer;

}

.faq-q::after {

  content: "+";
  color: #d9b45c;
  font-size: 20px;

}

.faq-item.open .faq-q::after {

  content: "–";

}

.faq-a {

  padding: 0 24px 18px;
  font-size: 14px;
  color: #7a8aa0;
  line-height: 1.9;
  display: none;

}

.faq-item.open .faq-a {

  display: block;

}

.faq-item.open {

  border-color: #d9b45c;

}

footer {

  background: #1a2a44;
  color: #8fa1bb;
  padding: 60px 0 0;
  font-size: 14px;

}

.foot-grid {

  display: flex;
  gap: 40px;
  padding-bottom: 40px;

}

/* 四栏按 2 : 1 : 1 : 1.2 分配宽度，与原 grid 比例一致 */
.foot-grid > div {

  flex: 1 1 0;
  min-width: 0;

}

.foot-grid > div:first-child {

  flex-grow: 2;

}

.foot-grid > div:last-child {

  flex-grow: 1.2;

}

.foot-grid h4 {

  color: #fff;
  font-size: 16px;
  margin-bottom: 18px;

}

.foot-grid p {

  line-height: 2;

}

.foot-grid a {

  color: #8fa1bb;
  text-decoration: none;
  display: block;
  padding: 4px 0;

}

.foot-grid a:hover {

  color: #e8c97e;

}

.foot-contact .tel {

  font-size: 26px;
  color: #e8c97e;
  font-weight: 700;
  display: block;
  margin-bottom: 10px;

}

.copyright {

  border-top: 1px solid rgba(255,255,255,.08);
  text-align: center;
  padding: 20px;
  font-size: 12px;
  color: #8fa1bb;

}

.copyright a {

  color: #6d74dbaa;

}

.mobile-bar {

  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #c0392b;
  color: #fff;
  text-align: center;
  padding: 13px;
  font-size: 17px;
  font-weight: 700;
  z-index: 99;
  text-decoration: none;
  letter-spacing: 1px;

}

@media (max-width:900px) {
  body {
    padding-bottom: 0;
  }
  footer {
    padding-bottom: 50px;
  }
  /* 底部电话条：移动端显示 */
  .mobile-bar {
    display: block;
  }

  /* ===== 移动端汉堡抽屉菜单 ===== */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0 8px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    background: none;
    border: 0;
    cursor: pointer;
    outline: none;
  }
  .menu-toggle .bar {
    display: block;
    width: 24px;
    height: 2px;
    margin: 2.5px auto;
    background: #0d2244;
    border-radius: 2px;
    -webkit-transition: -webkit-transform .25s ease, opacity .25s ease;
    transition: transform .25s ease, opacity .25s ease;
  }
  /* 展开时：上横线转 45 度、中间隐藏、下横线转 -45 度 */
  .menu-toggle.open .bar:nth-child(1) {
    -webkit-transform: translateY(7px) rotate(45deg);
    transform: translateY(7px) rotate(45deg);
  }
  .menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.open .bar:nth-child(3) {
    -webkit-transform: translateY(-7px) rotate(-45deg);
    transform: translateY(-7px) rotate(-45deg);
  }

  /* 抽屉容器：固定在导航栏下方，默认收起 */
  nav.menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    display: block!important;
    height: auto !important;
    min-height: 0 !important;
    -webkit-transform: translateY(-130%);
    transform: translateY(-130%);
    background: #fff;
    -webkit-box-shadow: 0 16px 40px rgba(13,34,68,.18);
    box-shadow: 0 16px 40px rgba(13,34,68,.18);
    border-bottom: 1px solid #e6ebf2;
    z-index: 98;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0 18px;
    -webkit-transition: -webkit-transform .28s ease;
    transition: transform .28s ease;
  }
  nav.menu.open {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
  /* 抽屉里所有直接子项都改为块级，高度自适应 */
  nav.menu > a,
  nav.menu > .has-sub,
  nav.menu > .has-sub > a,
  nav.menu > a {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
  }
  nav.menu > a,
  nav.menu > .has-sub > a {
    display: block !important;
    padding: 13px 24px !important;
    font-size: 15px;
    color: #1c2b3a;
    border-bottom: 1px solid #f0f3f7;
    height: auto !important;
    min-height: 0 !important;
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
  }
  /* 子菜单在抽屉里默认收起，点击 .has-sub.open 才展开 */
  .menu .submenu {
    display: none !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    background: #f7f9fc;
    min-width: 0;
    padding: 0;
    border-radius: 0;
    float: none !important;
    width: auto !important;
  }
  .menu .has-sub.open > .submenu {
    display: block !important;
  }
  .menu .submenu a {
    padding: 11px 24px 11px 48px !important;
    font-size: 14px;
    border-bottom: 1px solid #eef1f6;
    display: block;
    width: 100%;
    height: auto !important;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
  }
  .menu .has-sub:hover .submenu {
    display: block!important;
  }

  /* 留资区：平板/手机改为上下堆叠 */
  .lead .wrap {

    flex-direction: column;
    align-items: stretch;
    gap: 40px;
  
  }
  .foot-grid {

    flex-wrap: wrap;
    gap: 28px;
  
  }

  .foot-grid > div,
  .foot-grid > div:first-child,
  .foot-grid > div:last-child {

    flex: 1 1 40%;
  
  }

}

nav.menu {

  height: 76px;
  display: flex;
  gap: 34px;
  align-items: center;

}

nav.menu>a,nav.menu>div {

  height: 76px;
  display: flex;
  align-items: center;
  position: relative;

}

nav.menu>div>a {

  height: 76px;
  display: flex;
  align-items: center;

}

nav.menu a {

  padding: 0;

}

.menu .has-sub {

  position: relative;

}

@media (max-width:900px) {

.topbar {

    display: none!important;
  
}

.nav {

  height: 64px;
  min-height: 64px;

}

.nav-cta {
  padding: 8px 12px;
  font-size: 13px;
  white-space: nowrap;
}
.nav-cta .desk { display: none; }
.nav-cta .mob { display: inline; }

/* 移动端：让汉堡按钮与免费咨询按钮互换位置（汉堡放最右） */
.nav .menu-toggle {
  -webkit-box-ordinal-group: 3;
  -ms-flex-order: 2;
  order: 2;
}
.nav .nav-cta {
  -webkit-box-ordinal-group: 2;
  -ms-flex-order: 1;
  order: 1;
}

}

/* 桌面端：隐藏汉堡按钮 */
@media (min-width: 901px) {
  .menu-toggle {
    display: none!important;
  }
}

.menu .has-sub {

  position: relative;

}

.menu .submenu {

  display: none;
  position: absolute;
  top: 100%;
  left: -20px;
  background: #fff;
  min-width: 190px;
  box-shadow: 0 12px 30px rgba(13,34,68,.18);
  border-radius: 0 0 10px 10px;
  padding: 8px 0;
  z-index: 99;

}

.menu .has-sub:hover .submenu,
.menu .has-sub.open .submenu {

  display: block;

}

.menu .submenu a {

  display: block;
  padding: 10px 22px;
  font-size: 14px;
  color: #42536b;
  text-decoration: none;

}

.menu .submenu a:hover {

  background: #f5f7fa;
  color: #0d2244;

}

.form-card .wpcf7-form label {

  display: block;
  font-size: 13px;
  color: #5a6b80;
  margin: 13px 0 6px;
  font-weight: 600;

}

.form-card .wpcf7-form input[type=text],.form-card .wpcf7-form input[type=tel],.form-card .wpcf7-form select,.form-card .wpcf7-form textarea {

  width: 100%;
  padding: 11px 12px;
  border: 1px solid #dbe2ec;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: #1c2b3a;

}

.form-card .wpcf7-form input:focus,.form-card .wpcf7-form select:focus,.form-card .wpcf7-form textarea:focus {

  outline: none;
  border-color: #12386e;

}

.form-card .wpcf7-form input[type=submit] {

  width: 100%;
  margin-top: 18px;
  background: linear-gradient(135deg,#12386e,#0d2244);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;

}

.form-card .wpcf7-form input[type=submit]:hover {

  background: #1a4a8f;

}

.form-card .wpcf7-not-valid-tip {

  color: #c0392b;
  font-size: 12px;
  margin-top: 5px;

}

.form-card .wpcf7-response-output {

  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
  background: #eef6ff;
  color: #12386e;
  border: 1px solid #cfe0f5;

}

.form-card .wpcf7-response-output.wpcf7-validation-errors {

  background: #fff4f4;
  color: #c0392b;
  border-color: #f5c6c6;

}

.lead-left h2 {

  color: #fff !important;

}

.lead-left h2 .gold {

  color: #e8c97e !important;

}

html {

  scroll-behavior: smooth;

}

/* 锚点跳转目标避开顶部固定导航栏（sticky 76px + 间距） */

#process,
#cases,
#lead {

  scroll-margin-top: 92px;

}

#jzy-mask {
  position: fixed;
  inset: 0;
  background: rgba(9, 26, 54, 0.55);
  z-index: 99998;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
}
#jzy-mask.show {
  display: flex;
}
#jzy-mask .spin {
  width: 46px;
  height: 46px;
  border: 4px solid rgba(255, 255, 255, 0.25);
  border-top-color: #d9b45c;
  border-radius: 50%;
  -webkit-animation: jzy-spin 0.8s linear infinite;
  animation: jzy-spin 0.8s linear infinite;
}
#jzy-mask .txt {
  color: #fff;
  font-size: 15px;
  letter-spacing: 1px;
}
@-webkit-keyframes jzy-spin {
  to {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes jzy-spin {
  to {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
/* 移动端/微信 X5 安全：不动 scale，只动透明度 + 光晕，避免文字重影 */
@-webkit-keyframes breathe-gold {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 6px 20px rgba(217,180,92,.35);
  }
  50% {
    opacity: .82;
    box-shadow: 0 8px 26px rgba(217,180,92,.62);
  }
}
@keyframes breathe-gold {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 6px 20px rgba(217,180,92,.35);
  }
  50% {
    opacity: .82;
    box-shadow: 0 8px 26px rgba(217,180,92,.62);
  }
}
@-webkit-keyframes breathe-blue {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 rgba(18,56,110,0);
  }
  50% {
    opacity: .82;
    box-shadow: 0 0 22px rgba(26,74,143,.55);
  }
}
@keyframes breathe-blue {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 rgba(18,56,110,0);
  }
  50% {
    opacity: .82;
    box-shadow: 0 0 22px rgba(26,74,143,.55);
  }
}
/* 桌面端：支持 transform 的浏览器额外启用缩放呼吸 */
@-webkit-keyframes breathe-gold-scale {
  0%, 100% {
    -webkit-transform: scale(1) translateZ(0);
    transform: scale(1) translateZ(0);
    box-shadow: 0 6px 20px rgba(217,180,92,.35);
  }
  50% {
    -webkit-transform: scale(0.9) translateZ(0);
    transform: scale(0.9) translateZ(0);
    box-shadow: 0 10px 28px rgba(217,180,92,.55);
  }
}
@keyframes breathe-gold-scale {
  0%, 100% {
    -webkit-transform: scale(1) translateZ(0);
    transform: scale(1) translateZ(0);
    box-shadow: 0 6px 20px rgba(217,180,92,.35);
  }
  50% {
    -webkit-transform: scale(0.9) translateZ(0);
    transform: scale(0.9) translateZ(0);
    box-shadow: 0 10px 28px rgba(217,180,92,.55);
  }
}
@-webkit-keyframes breathe-blue-scale {
  0%, 100% {
    -webkit-transform: scale(1) translateZ(0);
    transform: scale(1) translateZ(0);
    box-shadow: 0 0 0 rgba(18,56,110,0);
  }
  50% {
    -webkit-transform: scale(0.9) translateZ(0);
    transform: scale(0.9) translateZ(0);
    box-shadow: 0 0 22px rgba(26,74,143,.55);
  }
}
@keyframes breathe-blue-scale {
  0%, 100% {
    -webkit-transform: scale(1) translateZ(0);
    transform: scale(1) translateZ(0);
    box-shadow: 0 0 0 rgba(18,56,110,0);
  }
  50% {
    -webkit-transform: scale(0.9) translateZ(0);
    transform: scale(0.9) translateZ(0);
    box-shadow: 0 0 22px rgba(26,74,143,.55);
  }
}
#jzy-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  z-index: 99999;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(9, 26, 54, 0.35);
  padding: 28px 46px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
#jzy-toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
#jzy-toast.hide {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
}
#jzy-toast .ico {
  font-size: 40px;
  margin-bottom: 10px;
}
#jzy-toast .msg {
  font-size: 17px;
  font-weight: 800;
  color: #0d2244;
}
#jzy-toast .sub {
  font-size: 13px;
  color: #7a8aa0;
  margin-top: 8px;
}

/* ===== 金数据在线表单嵌入（lead-embed）===== */
/* 降级电话按钮：把原 button.submit 样式扩展给 a 链接 */
.form-card a.submit {
  display: block;
  text-align: center;
  text-decoration: none;
  letter-spacing: 2px;
  box-sizing: border-box;
  margin-top: 22px;
  background: linear-gradient(135deg, #d9b45c, #c19a3f);
  color: #0d2244;
  font-size: 16px;
  font-weight: 700;
  padding: 14px;
  border-radius: 5px;
  cursor: pointer;
  line-height: 1.4;
}
.form-card a.submit:hover {
  opacity: 0.92;
}
/* 微信内「点此填写表单」整页跳转按钮（替代 iframe，规避成功页空白） */
.form-card a.lead-go {
  display: block;
  text-align: center;
  text-decoration: none;
  letter-spacing: 2px;
  box-sizing: border-box;
  margin-top: 10px;
  background: linear-gradient(135deg, #12386e, #0d2244);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 14px;
  border-radius: 5px;
  cursor: pointer;
  line-height: 1.4;
}
.form-card a.lead-go:hover {
  opacity: 0.92;
}
/* 金数据 iframe 占满卡片、无边框白底 */
.lead-embed {
  overflow: hidden;
}
.lead-embed iframe {
  display: block;
  width: 100%;
  height: 680px;            /* 完整撑开表单，避免内部滚动 */
  border: 0;
  border-radius: 6px;
  background: #fff;
}
/* 手机端：把 iframe 整体缩小 15%，既避免标题换行，又不会占满一整屏 */
@media (max-width: 600px) {
  .lead-embed {
    height: 612px;          /* 720 * 0.85，与缩放后视觉高度一致 */
  }
  .lead-embed iframe {
    width: 117.6%;          /* 1 / 0.85，让缩放后宽度正好撑满容器 */
    height: 720px;
    transform: scale(0.85);
    transform-origin: top left;
  }
}
/* 微信模式：无 iframe，去掉固定高度，卡片内容居中、充实不空白 */
.lead-embed.wechat-mode {
  height: auto !important;
  min-height: 0 !important;
  padding: 6px 0 10px;
}
.lead-embed.wechat-mode iframe {
  display: none !important;
}
.lead-embed.wechat-mode .lead-fallback {
  max-width: 460px;
  margin: 0 auto;
}
/* 未配置期间的降级提示卡片文字 */
.lead-fallback h3 {
  text-align: center;
  font-size: 20px;
  color: #0d2244;
  margin: 0 0 6px;
}
.lead-fallback .privacy {
  text-align: center;
  font-size: 12px;
  color: #a8b3c2;
  margin-top: 12px;
}

/* 案例轮播 */
.case-swiper {
  width: 100%;
  padding-bottom: 10px;
}
.case-swiper .swiper-slide {
  cursor: pointer;
  /* Swiper 在部分内核下算不准宽度，兜底固定百分比 */
  width: calc(50% - 8px) !important;
}
@media (min-width: 901px) {
  .case-swiper .swiper-slide {
    width: calc(33.333% - 16px) !important;
  }
}
.case-swiper .case-img {
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(13,34,68,.1);
}
.case-swiper .case-img img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  display: block;
  transition: transform 0.45s ease;
}
.case-swiper .swiper-slide:hover .case-img img {
  transform: scale(1.1);
}
.case-swiper .case-name {
  margin-top: 12px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: #1c2b4a;
  padding: 0 6px;
}

@media (max-width:640px) {
  .sec-head {
    margin-bottom: 34px;
    font-size: 13px;
  }
  .sec-head h2 {
    font-size: 22px;
    letter-spacing: 0;
  }
  .sec-head .en {
    font-size: 12px;
    letter-spacing: 2px;
  }
  .sec-head p {
    font-size: 13px;
  }
}

/* ===== 滚动淡入动画 ===== */
/* 无 JS 时默认可见，避免白屏；JS 加上 .js 类后才启用淡入 */
.reveal {
  opacity: 1;
  transform: translateY(0);
}
.js .reveal {
  opacity: 0;
  -webkit-transform: translateY(36px);
  transform: translateY(36px);
  -webkit-transition: opacity 1.2s ease, -webkit-transform 1.2s ease;
  -o-transition: opacity 1.2s ease, transform 1.2s ease;
  transition: opacity 1.2s ease, -webkit-transform 1.2s ease, transform 1.2s ease;
}
.js .reveal.visible {
  opacity: 1;
  -webkit-transform: translateY(0);
  transform: translateY(0);
}
/* 兼容减少动画偏好用户 */
@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
    -webkit-transition: none;
    transition: none;
  }
}

/* ===== 老内核降级（.no-flexgap 由 JS 探测添加） =====
   不支持 flex gap 的旧浏览器（如老版微信 X5）：
   所有分区降级为单列堆叠 + 外边距间距，宁可朴素也不乱版 */
.no-flexgap .stats .wrap,
.no-flexgap .svc-grid,
.no-flexgap .flow,
.no-flexgap .why-grid,
.no-flexgap .case-grid,
.no-flexgap .info-grid,
.no-flexgap .flow-strip,
.no-flexgap .contact-cards,
.no-flexgap .foot-grid {
  flex-wrap: wrap;
  gap: 0;
}
.no-flexgap .stats .wrap > *,
.no-flexgap .svc-grid > *,
.no-flexgap .flow > *,
.no-flexgap .why-grid > *,
.no-flexgap .case-grid > *,
.no-flexgap .info-grid > *,
.no-flexgap .flow-strip > *,
.no-flexgap .contact-cards > *,
.no-flexgap .foot-grid > div {
  flex: 0 0 100% !important;
  margin-bottom: 18px;
}
.no-flexgap .stat {
  border-right: none;
}
.no-flexgap .lead .wrap {
  flex-direction: column;
  gap: 0;
}
.no-flexgap .lead .wrap > * {
  margin-bottom: 28px;
}
