/* =========================================================
   GLOBAL / TOKENS
   ========================================================= */
:root{
  --banner-h: 120px;
  --logo-w: 300px;
  --logo-h: 120px;

  /* 三色条 */
  --c1: #111827;
  --c2: #f59e0b;
  --c3: #76c2ec;

  --max-w: 1200px;
  --pad-x: 24px;
}

*{ box-sizing: border-box; }

body{
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Arial, "Noto Sans TC", sans-serif;
  color: #111827;
  background: #ffffff;
}

/* 通用 hr（细线） */
hr{
  border: 0;
  border-top: 1px solid #ddd;
}

/* 页面内容区（如你有用到） */
.page{
  max-width: 1200px;
  margin: 24px auto;
  padding: 0 12px;
}

/* =========================================================
   BANNER / NAV
   ========================================================= */
.banner{
  position: relative;
  height: var(--banner-h);
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

/* 建议桌面也加内边距与宽度约束，避免内容贴边 */
.banner__inner{
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  gap: 16px;
}

/* 主导航：只保留一份定义（你原来重复了两次） */
.nav{
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  flex-wrap: wrap;          /* 窄屏允许换行 */
  justify-content: flex-end;
}

.nav a{
  text-decoration: none;
  color: #111827;
  font-size: 15px;
  padding: 10px 6px;
  border-radius: 8px;
  transition: background .15s ease;
  white-space: nowrap;
}

.nav a:hover{
  background: rgba(0,0,0,.05);
}

/* hover 时底部三色条 */
.banner::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 5px;
  background: linear-gradient(
    to right,
    var(--c1) 0%,
    var(--c1) 33.333%,
    var(--c2) 33.333%,
    var(--c2) 66.666%,
    var(--c3) 66.666%,
    var(--c3) 100%
  );
  opacity: 0;
  transform: translateY(2px);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}
.banner:hover::after{
  opacity: 1;
  transform: translateY(0);
}

/* 语言切换：保留你的“纯文字黑色加粗”，并清理为单一版本 */
.lang-switch{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.lang-switch::before{ content: none !important; }

.lang-toggle,
.lang-toggle:link,
.lang-toggle:visited,
.lang-toggle:hover,
.lang-toggle:active{
  color: #111827 !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.lang-toggle:hover{ opacity: .86; }
.lang-toggle:focus-visible{
  outline: 2px solid rgba(17,24,39,0.25);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Banner 移动端 */
@media (max-width: 768px){
  :root{ --pad-x: 16px; }

  .logo{
    width: 220px;
    height: 88px;
  }

  .banner{
    height: auto;
    min-height: var(--banner-h);
  }

  .banner__inner{
    padding: 14px var(--pad-x);
    align-items: center;
    flex-direction: column;
  }
  .nav{
    justify-content: flex-end;   /* ⭐改为右对齐 */
    flex-wrap: nowrap;           /* ⭐不换行 */
    overflow-x: auto;            /* ⭐可横向滑 */
    gap: 10px;                   /* ⭐间距适中 */
  }

  .nav a{
    flex: 0 0 auto;              /* ⭐防止被压缩 */
    font-size: 14px;
    padding: 8px 8px;
  }
}

/* =========================================================
   FOOTER (ZF) - 你这段整体结构不错，只做去重与顺序整理
   ========================================================= */
.zf-footer{ margin-top: 22px; }

.zf-footer__inner{
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x) 18px;
}

.zf-footer__grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.zf-footer__panel{
  border-radius: 12px;
  padding: 14px 14px 12px;
  color: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.18);
  overflow: hidden;
}
.zf-footer__panel--dark{ background: var(--c1); }
.zf-footer__panel--orange{ background: var(--c2); }
.zf-footer__panel--blue{ background: var(--c3); }

.zf-footer__title{
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 1.0px;
}

.zf-footer__list{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.zf-footer__label{ font-weight: 700; }

.zf-footer__text{
  margin: 0;
  color: rgba(255,255,255,0.92);
  line-height: 1.8;
  font-size: 18px;
  letter-spacing: 0.6px;
}

.zf-footer__link{
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.28);
}
.zf-footer__link:hover{ border-bottom-color: rgba(255,255,255,0.55); }

.zf-footer__rule{
  margin: 10px 0 8px;
  height: 1px;
  background: rgba(255,255,255,0.18);
}
.zf-footer__rule--dark{ background: rgba(0,0,0,0.20); }

.zf-footer__muted{
  margin: 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: rgba(255,255,255,0.78);
}
.zf-footer__muted--dark{ color: rgba(0,0,0,0.78); }

/* QR */
.zf-footer__qrgrid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.zf-footer__qritem{
  margin: 0;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 6px;
}
.zf-footer__qrph{
  width: 118px;
  height: 118px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 1px;
  background: rgba(255,255,255,0.22);
  border: 1px solid rgba(255,255,255,0.28);
  color: rgba(255,255,255,0.90);
}
.zf-footer__qrcap{
  margin: 0;
  font-size: 12.5px;
  color: rgba(255,255,255,0.92);
}

/* Footer Buttons */
.zf-footer__actions{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 10px;
}
.zf-btn{
  height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 12.5px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.35);
  background: transparent;
  color: rgba(255,255,255,0.95);
}
.zf-btn--solid{ background: rgba(0,0,0,0.18); }
.zf-btn--solid:hover{ background: rgba(0,0,0,0.26); }
.zf-btn--ghost:hover{ background: rgba(255,255,255,0.10); }

/* Map card placeholder */
.zf-footer__mapcard{
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.30);
  text-decoration: none;
}
.zf-footer__mapph{
  width: 100%;
  height: 140px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.28), rgba(255,255,255,0.10)),
    repeating-linear-gradient(0deg, rgba(0,0,0,0.10) 0 1px, transparent 1px 12px);
}
.zf-footer__mapov{
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 12px;
  color: #fff;
  background: rgba(0,0,0,0.40);
  border: 1px solid rgba(255,255,255,0.28);
}

/* Bottom disclaimer */
a {
  color: #ffffff;      /* 白色 */
  text-decoration: none;  /* 去掉下划线（可选） */
}

a:hover {
  color: #dddddd;      /* 悬停稍微变灰（建议加） */
}
.zf-footer__bottom{
  text-align: center;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--c1);
  border: 1px solid rgba(255,255,255,0.10);
}
.zf-footer__bottomtext{
  margin: 0;
  color: rgba(255,255,255,0.72);
  font-size: 12px;
  line-height: 1.5;
}

/* Footer responsive */
@media (max-width: 768px){
  .zf-footer__inner{ padding: 0 var(--pad-x) 16px; }
  .zf-footer__grid{ grid-template-columns: 1fr; gap: 12px; }
  .zf-footer__mapph{ height: 170px; }
}

/* Quick links */
.zf-quick{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.zf-quick__item{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  text-decoration: none;

  color: rgba(0,0,0,0.86);
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(0,0,0,0.12);

  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.zf-quick__item:hover{
  background: rgba(255,255,255,0.85);
  border-color: rgba(0,0,0,0.18);
}
.zf-quick__bottom{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.zf-quick__more{
  color: rgba(0,0,0,0.86);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  border-bottom: 1px solid rgba(0,0,0,0.22);
}
.zf-quick__more:hover{ border-bottom-color: rgba(0,0,0,0.40); }
@media (max-width: 768px){
  .zf-quick{ gap: 10px; }
  .zf-quick__item{ height: 36px; font-size: 13px; }
}

/* Left panel form */
.zf-left .zf-footer__title{ margin-bottom: 10px; }
.zf-left__form{ margin: 0; display: grid; gap: 8px; }
.zf-left__row{ display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.zf-left__field{ display: grid; gap: 6px; }
.zf-left__label{
  font-size: 12px;
  font-weight: 800;
  color: rgba(255,255,255,0.78);
}

.zf-left__input,
.zf-left__select{
  width: 100%;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.26);
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.92);
  padding: 0 10px;
  font-size: 13px;
  outline: none;
}
.zf-left__input::placeholder{ color: rgba(255,255,255,0.55); }
.zf-left__input:focus,
.zf-left__select:focus{
  border-color: rgba(255,255,255,0.42);
  background: rgba(255,255,255,0.13);
}

/* select 选项可读性 */
.zf-left__select option{ background: #111827; color: #ffffff; }
.zf-left__select option:disabled{ color: rgba(255,255,255,0.65); }

.zf-left__actions{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.zf-left__btn{
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.92);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 900;
}
.zf-left__btn:hover{ background: rgba(255,255,255,0.18); }
.zf-left__status{ font-size: 12.5px; color: rgba(255,255,255,0.78); }
.zf-left__hint{ margin: 0; font-size: 12px; line-height: 1.4; color: rgba(255,255,255,0.62); }
.zf-left__divider{ margin: 10px 0; height: 1px; background: rgba(255,255,255,0.18); }

.zf-left__list{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.zf-left__item{
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 10px;
  align-items: baseline;
}
.zf-left__k{ font-size: 12.5px; font-weight: 800; color: rgba(255,255,255,0.78); }
.zf-left__v{ font-size: 13px; color: rgba(255,255,255,0.92); line-height: 1.45; }
.zf-left__link{
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.26);
}
.zf-left__link:hover{ border-bottom-color: rgba(255,255,255,0.50); }

.zf-left__note{
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.zf-left__noteText{
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255,255,255,0.68);
}

/* Icon contacts：你原来这里重复多次，我合并为“唯一版本” */
.zf-left-icons{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: nowrap;
  margin-top: 6px;
}
.zf-left-icons > .zf-ic,
.zf-left-icons > .zf-ic--popover{
  flex: 1 1 0;
}

.zf-ic{
  display: grid;
  justify-items: center;
  gap: 6px;
  text-decoration: none;
  color: rgba(255,255,255,0.92);
  position: relative;
}
.zf-ic__btn{
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.26);
  background: rgba(255,255,255,0.10);
  cursor: pointer;
  padding: 0;
  color: rgba(255,255,255,0.92);
  line-height: 0;
  overflow: visible;
}
.zf-ic__btn:hover{
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.35);
}
.zf-ic__svg{
  width: 18px;
  height: 18px;
  fill: currentColor;
  opacity: 0.95;
  display: block;
  overflow: visible;
  shape-rendering: geometricPrecision;
}
.zf-ic__img{
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.zf-ic__cap{
  font-size: 12px;
  line-height: 1;
  color: rgba(255,255,255,0.72);
}

/* WeChat popover */
.zf-ic--popover{ position: relative; }
.zf-pop{
  position: absolute;
  top: 46px;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  padding: 10px 10px 8px;
  border-radius: 12px;
  background: rgba(17,24,39,0.96);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  display: none;
  z-index: 20;
}
.zf-pop__img{
  width: 80%;
  margin: 0 auto;
  height: auto;
  display: block;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
}
.zf-pop__txt{
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.78);
  text-align: center;
}
.zf-ic--popover:hover .zf-pop,
.zf-ic--popover:focus-within .zf-pop{
  display: block;
}

/* Footer 小屏 */
@media (max-width: 768px){
  .zf-left__row{ grid-template-columns: 1fr; }
  .zf-left__item{ grid-template-columns: 78px 1fr; }
}
@media (max-width: 420px){
  .zf-left-icons{ flex-wrap: wrap; }
  .zf-left-icons > .zf-ic,
  .zf-left-icons > .zf-ic--popover{ flex: 1 1 30%; }
  .zf-pop{ width: 150px; }
}

/* =========================================================
   CONSENT GATE (MODAL)
   ========================================================= */
/* =========================================================
   Unified Modal Skin (cg -> same as svc)
   目的：让 普通Y告知书弹窗 与 精准Y服务弹窗 视觉一致
   只改样式，不改JS，不改HTML结构
========================================================= */

/* overlay：同 svc-zoomOverlay */
.cg-overlay{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(2,6,23,.42);
  backdrop-filter: blur(10px);
}

/* 你的 JS 是 overlay.classList.add("show") */
.cg-overlay.show{
  display: flex;
}

/* modal：同 svc-zoomCard 的玻璃渐变卡片 */
.cg-modal{
  width: min(980px, 100%);
  max-height: 86vh;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.25);
  background:
    radial-gradient(900px 520px at 14% 10%, rgba(83,215,255,.30), transparent 55%),
    radial-gradient(820px 520px at 86% 12%, rgba(178,140,255,.26), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(248,250,252,.92));
  box-shadow: 0 24px 66px rgba(0,0,0,.28);
  position: relative;
}

/* 顶部：同 svc-zoomHead */
.cg-header{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;

  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(15,23,42,.10);

  background: rgba(255,255,255,.45);
  backdrop-filter: blur(12px);
}

.cg-brand{
  font-weight: 900;
  font-size: 12px;
  color: rgba(15,23,42,.55);
  letter-spacing: .2px;
}

.cg-title{
  margin: 4px 0 0;
  font-weight: 950;
  font-size: 16.5px;
  color: rgba(15,23,42,.92);
}

.cg-subtitle{
  margin-top: 6px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.6;
  color: rgba(15,23,42,.60);
}

/* 关闭按钮：同 svc-zoomClose */
.cg-x{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.14);
  background: rgba(255,255,255,.80);
  color: rgba(15,23,42,.78);
  font-weight: 950;
  cursor: pointer;
}

/* 内容区：滚动体同 svc-zoomBody */
.cg-body{
  padding: 14px 16px 16px;
  overflow: auto;
  max-height: calc(86vh - 68px);
}

/* 模块块：同 svc-section */
.cg-section{
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.82);
  box-shadow: 0 12px 30px rgba(15,23,42,.08);
  padding: 12px;
  margin-bottom: 12px;
}

.cg-h3{
  margin: 0;
  font-weight: 950;
  font-size: 13px;
  color: rgba(15,23,42,.92);
}

.cg-p{
  margin: 8px 0 0;
  color: rgba(15,23,42,.82);
  font-weight: 700;
  line-height: 1.72;
  font-size: 13.5px;
}

.cg-ol{
  margin: 8px 0 0;
  padding-left: 18px;
  color: rgba(15,23,42,.76);
  font-weight: 650;
  line-height: 1.72;
  font-size: 13px;
}

.cg-ol li{
  margin: 6px 0;
}

.cg-warn{
  color: rgba(220,38,38,.90);
  font-weight: 850;
}

/* 分隔线 */
.cg-hr{
  border: none;
  height: 1px;
  background: rgba(15,23,42,.10);
  margin: 12px 0;
}

/* checkbox 行 */
.cg-check{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.08);
  background: rgba(248,250,252,.72);
  margin-top: 10px;
  font-weight: 700;
  color: rgba(15,23,42,.78);
}

.cg-check input{
  margin-top: 2px;
}

/* 签名输入 */
.cg-sign{
  margin-top: 10px;
  border-radius: 14px;
  border: 1px dashed rgba(15,23,42,.18);
  background: rgba(248,250,252,.86);
  padding: 10px;
}

.cg-sign-label{
  font-weight: 900;
  color: rgba(15,23,42,.72);
  font-size: 12.5px;
}

.cg-input{
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.14);
  background: rgba(255,255,255,.92);
  outline: none;
  font-weight: 800;
  color: rgba(15,23,42,.86);
}

.cg-hint{
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 650;
  color: rgba(15,23,42,.55);
  line-height: 1.6;
}

/* 底部按钮区：同 svc-foot 的按钮感 */
.cg-footer{
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;

  padding: 12px 16px 16px;
  border-top: 1px solid rgba(15,23,42,.10);

  background: rgba(255,255,255,.35);
  backdrop-filter: blur(12px);
}

.cg-btn{
  cursor: pointer;
  border-radius: 999px;
  padding: 10px 12px;
  border: 1px solid rgba(15,23,42,.14);
  background: rgba(255,255,255,.88);
  color: rgba(15,23,42,.82);
  font-weight: 900;
  font-size: 13px;
  box-shadow: 0 10px 28px rgba(15,23,42,.08);
}

.cg-btn.ghost{
  background: rgba(248,250,252,.92);
}

/* 禁用态 */
.cg-btn:disabled{
  opacity: .55;
  cursor: not-allowed;
  box-shadow: none;
}


/* =========================================================
   HERO CAROUSEL (SHELL) - FIXED HEIGHT / RESPONSIVE
   目标：
   1) 轮播高度统一，不随 slide 改变
   2) 手机/平板/电脑 横竖屏都兼容
   3) 内容可读、图片不小、排版稳定
   ========================================================= */

/* 可调：统一高度策略（强烈建议用 clamp） */
:root{
  --hc-h-min: 520px;     /* 最小高度（防止太矮） */
  --hc-h-vh: 78vh;       /* 视口高度占比（自适应） */
  --hc-h-max: 860px;     /* 最大高度（防止太高） */

  /* 内容安全底部（给 dots 留空间，避免挡字） */
  --hc-safe-bottom: 54px;
}

.hero-carousel{
  width: min(1320px, 100%);
  margin: 18px auto 0;
  padding: 0 14px;
}

.hc{
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #f7f8fb;
  box-shadow: 0 20px 60px rgba(0,0,0,.10);

  /* ✅ 统一高度：所有 slide 都在同一个高度里排版 */
  height: clamp(520px, 78vh, 860px);
}

/* 轮播视口：必须 100% 高度 */
.hc__viewport{
  overflow: hidden;
  height: 100%;
}

/* track：跟随容器高度，横向滑动 */
.hc__track{
  display: flex;
  height: 100%;
  transition: transform .55s ease;
  will-change: transform;
}

/* 每个 slide：占满一屏宽 + 占满统一高度 */
.hc__slide{
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
}

/* ✅ 安全底部应该加在 slide 本身，而不是 slide 的第一个子元素 */
.hc__slide{
  padding-bottom: var(--hc-safe-bottom);
  box-sizing: border-box; /* 你全局已有，这里写不写都行 */
}
/* ✅ slide 内容容器占满剩余高度 */
.hc__slide > *{
  height: auto;
}


/* Prev/Next：保留你的玻璃按钮，功能不变 */
.hc__btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 26px;
  line-height: 44px;
  text-align: center;

  background: rgba(255,255,255,0.28);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow: 0 8px 24px rgba(0,0,0,0.14);

  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 2px rgba(0,0,0,0.18);

  z-index: 6;
  opacity: 0.35;
  transition: opacity .18s ease, background .18s ease, transform .12s ease;
}

.hc:hover .hc__btn{ opacity: 0.92; }
.hc__btn:hover{ background: rgba(255,255,255,0.38); }
.hc__btn:active{ transform: translateY(-50%) scale(0.97); }

.hc__btn--prev{ left: 12px; }
.hc__btn--next{ right: 12px; }

/* Dots：位置不变 */
.hc__dots{
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 7;
}

.hc__dot{
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.20);
  background: rgba(255,255,255,.70);
  cursor: pointer;
}

.hc__dot.is-active{
  background: rgba(127,200,238,.95);
  border-color: rgba(127,200,238,.95);
}

/* ✅ 平板/小屏：整体高度略收敛，避免撑爆 */
@media (max-width: 980px){
  :root{
    --hc-h-min: 500px;
    --hc-h-vh: 72vh;
    --hc-h-max: 760px;
    --hc-safe-bottom: 52px;
  }
}

/* ✅ 手机：更紧凑但仍保证可读 */
@media (max-width: 520px){
  :root{
    --hc-h-min: 480px;
    --hc-h-vh: 70vh;
    --hc-h-max: 700px;
    --hc-safe-bottom: 50px;
  }

  .hero-carousel{ padding: 0 10px; }
  .hc__btn--prev{ left: 8px; }
  .hc__btn--next{ right: 8px; }
}

/* ✅ 横屏（尤其手机横屏）：避免高度过低导致拥挤 */
@media (max-height: 520px){
  .hc{
    height: auto;
  }
}

/* =========================================================
   SLIDE 1: LAB INTRO
   ========================================================= */
.hc__slide--intro{
  background: linear-gradient(90deg, #fbfbfd 0%, #f7f8fb 55%, #fbfbfd 100%);
}

.labintro{
  height: 100%;
  width: min(1240px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(16px, 2.6vw, 38px);
  align-items: center;
  padding: clamp(14px, 2vw, 26px);
}

.labintro__left{ position: relative; height: 100%; min-height: 260px; }

.labintro__accent{
  position: absolute;
  height: 5px;
  width: 96px;
  background: linear-gradient(90deg, #7fc8ee 0 55%, #2c2b66 55% 100%);
  border-radius: 2px;
  opacity: .95;
}
.labintro__accent--top{ left: 10px; top: 10px; }
.labintro__accent--bottom{ right: 20px; bottom: 10px; width: 150px; }

.labintro__block--aqua{
  display: none;
}

.labintro__card{
  position: relative;
  left: 0;
  top: 0;
  width: 100%;
  background: #2c2b66;
  border-radius: 8px;
  padding: clamp(14px, 1.8vw, 22px);
  box-shadow: 0 24px 60px rgba(0,0,0,.16);
  display: grid;
  justify-items: center;
  gap: 10px;
  overflow: hidden;       /* 关键：超出卡片的部分不显示 */
  padding-right: 36px;    /* 给右侧角标留一点安全空间 */
}

.brandmark{
  width: 100%;
  max-width: 680px;  /* 你想更大就调大 */
  height: auto;
  display: block;
}


.labintro__cnline{
  color: rgba(127,200,238,.95);
  font-size: clamp(14px, 1.5vw, 20px);
  letter-spacing: 1px;
}

.labintro__kicker{ display:flex; align-items:center; gap: 14px; }
.labintro__kicker-tag{
  background: #7fc8ee;
  color: #fff;
  font-weight: 800;
  letter-spacing: .8px;
  font-size: 12px;
  padding: 4px 10px;
}
.labintro__year{ color: rgba(32,36,49,.26); font-weight: 700; }

.labintro__h1{
  margin: 10px 0 6px;
  font-size: clamp(30px, 3.6vw, 54px);
  letter-spacing: 1px;
  font-weight: 900;
  color: #2b2f3a;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.labintro__bar{ width: 3px; height: 24px; background: #7fc8ee; display:inline-block; }

.labintro__body{
  margin-top: clamp(14px, 2.2vh, 26px);
  color: rgba(32,36,49,.72);
  font-size: clamp(13px, 1.2vw, 15.5px);
  line-height: 2.05;
}
.labintro__body p{ margin: 0 0 12px; }

.labintro__cta{ margin-top: 10px; display:flex; gap: 10px; flex-wrap: wrap; }
.labintro__btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration:none;
  font-weight: 800;
  background: #2c2b66;
  color: #fff;
}
.labintro__btn--ghost{
  background: rgba(44,43,102,.08);
  color: #2c2b66;
  border: 1px solid rgba(44,43,102,.22);
}

/* Slide1 文字区安全边距（避开左右按钮） */
.labintro__right{
  padding-right: 8px;
  padding-left: 0px;
  overflow-y: auto;
}

@media (max-width: 980px){
  .labintro{ grid-template-columns: 1fr; align-items: start; }
  .labintro__left{ min-height: 240px; }
  .labintro__card{ position: relative; left: 0; top: 0; width: 100%; }
  .labintro__block--aqua{ height: 58%; }
  .labintro__right{ padding-left: 0; padding-right: 0; }
}
/* ================================
   Slide 2 / Y Precision 版面协调版
   ================================ */

/* 外层：控制整体版心与左右留白 */
.hc__slide--y2 .y2{
  align-items: stretch;
  position: relative;
  z-index: 1;
  height: 100%;

  /* 版心别太宽，否则文字会“散” */
  width: min(1240px, 100%);
  margin: 0 auto;

  display: grid;

  /* ✅ 关键：右侧图片列给“弹性范围”，避免 auto 挤压文字 */
  grid-template-columns: minmax(420px, 1fr) minmax(360px, 520px);

  /* ✅ 关键：给出更稳定的阅读间距（不会忽大忽小） */
  column-gap: clamp(26px, 4vw, 64px);
  align-items: center;

  /* 上下留白 */
  padding: clamp(22px, 3.2vw, 52px);
  padding-left: clamp(22px, 5vw, 92px);
  padding-right: clamp(18px, 3vw, 60px);
}

/* 左侧文字：收拢“阅读宽度”，让视线聚焦 */
.hc__slide--y2 .y2__left{
  max-width: 60ch;                 /* ✅ 比 72ch 更利于阅读聚焦 */
  padding-right: clamp(10px, 1.2vw, 18px);
  justify-content: center;
  min-height: 0;
}

/* 标题：保留气场，但减少压迫感 */
.hc__slide--y2 .y2__title{
  margin: 0 0 14px;
  font-size: clamp(40px, 4.2vw, 68px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: 1.2px;
  color: var(--y2-title);
}

/* 正文：优化可读性（更舒服、更像“说明文”） */
.hc__slide--y2 .y2__desc{
  margin: 0;

  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.95;
  letter-spacing: 0.8px;
  color: var(--y2-text);

  /* ✅ 关键：长句更好读 */
  text-wrap: pretty;               /* 现代浏览器有效，不支持也不影响 */
}

/* 右侧列：占满高度 + 垂直居中 + 右对齐 */
.hc__slide--y2 .y2__right{
  height: 100%;
  min-height: 0;              /* ✅ 防止被内容撑爆导致奇怪对齐 */
  display: flex;
  align-items: center;        /* ✅ 垂直居中 */
  justify-content: flex-end;  /* ✅ 右对齐 */
  padding-right: 20px;        /* ✅ 你的固定右边距 */
}


.hc__slide--y2 .y2__figure{
  margin: 0;

  /* ✅ 高度随右列可用高度走：上下自然均匀 */
  height: calc(100% - 24px);  /* 24px 是上下留白，你可改 16/32 */
  max-height: 100%;

  /* ✅ 宽度给上限，避免挤压文字 */
  width: min(520px, 100%);

  aspect-ratio: 1280 / 943;
  border-radius: 18px;
  overflow: hidden;
}

.hc__slide--y2 .y2__img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}


/* ✅ 可选：给左右之间一个非常淡的分隔感（提升“协调”）
   如果你不想要这条线，删掉这段即可 */
.hc__slide--y2 .y2__right::before{
  content: "";
  justify-self: start;
  width: 1px;
  height: min(52vh, 420px);
  background: linear-gradient(to bottom,
    rgba(63,70,82,0),
    rgba(63,70,82,.14),
    rgba(63,70,82,0)
  );
  margin-right: clamp(18px, 2.4vw, 34px);
}

/* ================================
   平板/手机：上下排布，保持舒适留白
   ================================ */
@media (max-width: 980px){
  .hc__slide--y2 .y2{
    grid-template-columns: 1fr;
    align-items: start;
    padding: 20px;
    row-gap: 14px;
  }

  .hc__slide--y2 .y2__left{
    max-width: 100%;
    padding-right: 0;
    overflow-y: auto;
  }

  .hc__slide--y2 .y2__right{
    justify-items: start;
    padding-right: 0;
  }

  .hc__slide--y2 .y2__right::before{
    display: none;
  }

  .hc__slide--y2 .y2__figure{
    width: 100%;
    max-width: 820px;
    height: auto;
    border-radius: 16px;
  }
}

/* ===== Slide 3: Full-bleed background image + centered white text ===== */
.hc__slide--s3{
  --s3-title-track: 8px;
  --s3-desc-track: 5px;
  --s3-title-lh: 1.04;
  --s3-desc-lh: 2.05;
  position: relative;
  overflow: hidden;
  color: #fff;

  /* 背景图全屏铺满 */
  background-image: url("assets/hero/hk_bg_s3.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 黑色遮罩：确保白字在任何背景上都清晰 */
.hc__slide--s3::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,.52) 0%,
    rgba(0,0,0,.42) 45%,
    rgba(0,0,0,.52) 100%
  );
  pointer-events: none;
}

.hc__slide--s3 .s3{
  position: relative;
  z-index: 1;
  height: 100%;
  width: min(1240px, 100%);
  margin: 0 auto;

  /* 内容居中 */
  display: grid;
  align-items: center;
  justify-items: center;

  padding: clamp(18px, 3vw, 46px);
  text-align: center;
}

.hc__slide--s3 .s3__content{
  max-width: 64ch; /* 控制行宽，读起来更高级 */
}

.hc__slide--s3 .s3__title{
  font-size: 24px;
}

.hc__slide--s3 .s3__desc{
  font-size: 14px;
}


/* 简约按钮：白色描边 + 轻微玻璃感 */
.hc__slide--s3 .s3__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 42px;
  padding: 0 16px;
  border-radius: 999px;

  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .3px;

  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow: 0 14px 40px rgba(0,0,0,.22);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.hc__slide--s3 .s3__btn:hover{
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.75);
  transform: translateY(-1px);
}

.hc__slide--s3 .s3__btn:active{
  transform: translateY(0);
}
/* ========== Slide 4: NIPT（500px 高度适配 + 淡背景可读） ========== */

.hc__slide--s4 .s4{
  height: 100%;
  width: 100%;
  display: grid;
  grid-template-columns: 1.618fr 1fr;
  gap: clamp(14px, 2.2vw, 28px);
  align-items: stretch;
}

/* 左侧图片 */
.hc__slide--s4 .s4__media{
  position: relative;
  margin: 0;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
}

.hc__slide--s4 .s4__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center; /* 你也可以改成 center top 强调上部 */
  transform: scale(1.03);
}

/* 图片轻微遮罩（淡背景下也能显高级） */
.hc__slide--s4 .s4__imgOverlay{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 500px at 18% 8%, rgba(255,255,255,.16), transparent 62%),
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.22));
  pointer-events: none;
}

/* 右侧内容：做“浅色信息卡”，保证对比度 */
.hc__slide--s4 .s4__content{
  overflow-y:auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;

  /* 关键：给右侧一个轻卡片底色，不然淡背景上淡字必死 */
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 18px;
  padding: clamp(14px, 1.6vw, 20px);
  box-shadow: 0 14px 38px rgba(15,23,42,.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* 标题改深色：淡底就必须深字 */
.hc__slide--s4 .s4__title{
  margin: 0 0 10px;
  font-size: clamp(26px, 3.4vw, 50px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: 0.02em;

  color: #0b1220;
  text-shadow: none;
}

/* 正文改深灰：保证阅读舒适 */
.hc__slide--s4 .s4__desc{
  margin: 0 0 12px;
  font-size: clamp(14.5px, 1.35vw, 17.5px);
  line-height: 1.58;
  letter-spacing: 0.01em;

  color: rgba(11,18,32,.82);
  text-shadow: none;
  max-width: 54ch;
}

/* 要点列表：浅底 + 深字 */
.hc__slide--s4 .s4__points{
  margin: 0;
  padding: 12px 12px;
  list-style: none;

  display: grid;
  gap: 9px;

  background: rgba(15,23,42,.03);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 14px;
}

.hc__slide--s4 .s4__points li{
  position: relative;
  padding-left: 18px;
  font-size: clamp(13.5px, 1.15vw, 15.6px);
  line-height: 1.5;
  color: rgba(11,18,32,.76);
}

.hc__slide--s4 .s4__points li::before{
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(35,130,210,.92);
  box-shadow: 0 10px 22px rgba(35,130,210,.16);
}

/* 移动端改上下 */
@media (max-width: 900px){
  .hc__slide--s4 .s4{
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .hc__slide--s4 .s4__media{
    height: 260px; /* 你轮播500高，下压一点不拥挤 */
    border-radius: 18px;
  }
}
/* =========================================
   ⭐ FINAL FIX（移动端轮播稳定补丁）
   放在 style.css 最底部
   ========================================= */

/* ===== 1. 锁定触摸行为（最关键）===== */
.hc__track{
  touch-action: pan-y;   /* 只允许上下滚，左右交给JS */
}

/* ===== 2. 移动端高度修复 ===== */
@media (max-width:768px){

  /* ⭐ 防止内容被强行撑满导致抖动 */
  .hc__slide > *{
    height: auto !important;
  }

  /* ⭐ 内容区可滚动（核心） */
  .labintro__right,
  .y2__left,
  .s4__content{
    overflow-y: auto;
    max-height: 100%;
    -webkit-overflow-scrolling: touch;
  }

  /* ⭐ 防止滚动穿透（页面乱动） */
  .labintro__right,
  .y2__left,
  .s4__content{
    overscroll-behavior: contain;
  }

  /* ⭐ Slide2 图片高度修复 */
  .y2__figure{
    height: auto !important;
  }

  /* ⭐ Slide整体避免抖动 */
  .hc__slide{
    overflow: hidden;
  }

}

/* ===== 3. 防止全局横向抖动 ===== */
body{
  overflow-x: hidden;
}

/* ===== 4. 图片稳定性（防止加载抖动）===== */
img{
  max-width: 100%;
  height: auto;
  display: block;
}
@media (max-width:768px){

  .labintro__right,
  .y2__left,
  .s4__content{

    overflow-y: auto;

    /* ⭐关键：必须限制高度 */
    max-height: calc(100% - 20px);

    /* ⭐让滚动更丝滑 */
    -webkit-overflow-scrolling: touch;

    /* ⭐防止带动整个页面 */
    overscroll-behavior: contain;
  }

}
