﻿/* ==========================================================================
   Components · 通用组件（按钮 / 头部 / 页脚 / 面包屑 / 表单 / 浮窗 / 弹窗 / 文章）
   所有页面必须复用这里的类，不要另造同类样式。
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 按钮
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--c-brand);
  --btn-fg: var(--c-white);
  --btn-bd: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-btn);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease),
    color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn .icon { width: 17px; height: 17px; transition: transform 0.2s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--c-brand); color: var(--c-white); box-shadow: 0 10px 24px rgba(36, 104, 242, 0.28); }
.btn--primary:hover { background: var(--c-brand-600); color: var(--c-white); box-shadow: 0 14px 30px rgba(36, 104, 242, 0.34); }

.btn--light { background: var(--c-white); color: var(--c-brand-700); box-shadow: 0 12px 28px rgba(2, 18, 44, 0.22); }
.btn--light:hover { background: #f2f8ff; color: var(--c-brand-700); }

.btn--outline { background: transparent; color: var(--c-brand-ink); border-color: var(--c-brand-200); }
.btn--outline:hover { background: var(--c-brand-050); border-color: var(--c-brand-ink); color: var(--c-brand-600); }

.btn--ghost { background: rgba(255, 255, 255, 0.06); color: var(--c-white); border-color: rgba(255, 255, 255, 0.34); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.6); color: var(--c-white); }

.btn--soft { background: var(--c-brand-050); color: var(--c-brand-700); }
.btn--soft:hover { background: var(--c-brand-100); color: var(--c-brand-700); }

.btn--dark { background: var(--c-ink); color: var(--c-white); }
.btn--dark:hover { background: #14325c; color: var(--c-white); }

.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn--lg { min-height: 54px; padding: 0 32px; font-size: 16px; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: 0.55; pointer-events: none; }

/* 文字箭头链接 */
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--c-brand-ink);
  font-size: 14.5px;
  font-weight: 600;
}
.link-more .icon { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.link-more:hover .icon { transform: translateX(4px); }
.link-more--light { color: #bcd8ff; }
.link-more--light:hover { color: var(--c-white); }

/* --------------------------------------------------------------------------
   2. 标签 / 徽章
   -------------------------------------------------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border: 1px solid var(--c-line-2);
  border-radius: var(--r-btn);
  background: var(--c-white);
  color: var(--c-text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
}
.chip .icon { width: 14px; height: 14px; color: var(--c-brand-ink); }
.chip--brand { background: var(--c-brand-050); border-color: var(--c-brand-100); color: var(--c-brand-700); }
.chip--light { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.22); color: rgba(232, 242, 255, 0.92); }
.chip--light .icon { color: #7cc6ff; }
.chip--ok { background: var(--c-ok-bg); border-color: transparent; color: var(--c-ok); }
.chip--warn { background: var(--c-warn-bg); border-color: transparent; color: var(--c-warn); }
.chip--pending { background: var(--c-warn-bg); border-color: transparent; color: var(--c-warn); }
.chip--plan { background: var(--c-soft-2); border-color: transparent; color: var(--c-muted); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--c-brand-050);
  color: var(--c-brand-700);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge--light { background: rgba(255, 255, 255, 0.12); color: var(--c-white); backdrop-filter: blur(8px); }
.badge--gold { background: #fbf3e4; color: #9a7126; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }

/* --------------------------------------------------------------------------
   3. 头部导航
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid transparent;
  box-shadow: 0 6px 24px rgba(9, 30, 66, 0.12);
  backdrop-filter: saturate(180%) blur(14px);
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.header.is-scrolled {
  border-bottom-color: var(--c-line);
  box-shadow: 0 8px 30px rgba(9, 30, 66, 0.07);
  background: rgba(255, 255, 255, 0.97);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; color: var(--c-ink); }
.brand:hover { color: var(--c-ink); }
.brand__logo { width: auto; height: 46px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-size: 19px; font-weight: 700; letter-spacing: 0.02em; color: var(--c-ink); }
.brand__text em {
  margin-top: 3px;
  font-family: var(--font-en);
  font-size: 9.5px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.13em;
  color: var(--c-faint);
  white-space: nowrap;
}

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: clamp(6px, 1.4vw, 22px); }
.nav__link {
  position: relative;
  display: block;
  padding: 10px 6px;
  color: var(--c-ink-800);
  font-size: 15.5px;
  font-weight: 500;
  white-space: nowrap;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--c-brand);
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}
.nav__link:hover { color: var(--c-brand-ink); }
.nav__link:hover::after, .nav__link.is-active::after { width: 18px; }
.nav__link.is-active { color: var(--c-brand-ink); font-weight: 600; }
.nav__foot { display: none; }

.header__actions { display: flex; align-items: center; gap: 16px; flex: none; }
.header__cta { min-height: 42px; padding: 0 20px; font-size: 14px; }
.header__ai {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border: 1px solid var(--c-brand-100);
  border-radius: 50%;
  background: var(--c-brand-050);
  color: var(--c-brand-ink);
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.header__ai:hover { background: var(--c-brand-100); border-color: var(--c-brand-200); }
.header__ai .icon { width: 19px; height: 19px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background: var(--c-white);
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--c-ink);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.header.is-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-2px) rotate(-45deg); }

@media (max-width: 1560px) {
  .header__ai { display: grid; }
}
@media (max-width: 1120px) {
  .header__inner { gap: 14px; }
  .nav__list { gap: 8px; }
  .nav__link { padding-inline: 4px; font-size: 15px; }
  .header__actions { gap: 10px; }
  .header__cta { padding: 0 16px; }
  .header__ai { display: grid; }
}
@media (max-width: 1060px) {
  }
@media (max-width: 980px) {
  .header__inner { justify-content: space-between; gap: 12px; }
  .header__cta, .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: 12px var(--gutter) 32px;
    background: var(--c-white);
    border-bottom: 1px solid var(--c-line);
    box-shadow: 0 30px 60px rgba(9, 30, 66, 0.14);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
  }
  .header.is-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link {
    padding: 15px 8px;
    font-size: 17px;
    border-bottom: 1px solid var(--c-soft-2);
  }
  .nav__link::after { display: none; }
  .nav__foot { display: grid; gap: 10px; margin-top: 22px; }
  }
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .header__inner { min-height: var(--header-h); }
  .brand__logo { height: 40px; }
  .brand__text strong { font-size: 17px; }
  .brand__text em { font-size: 8.5px; }
  .nav-toggle { width: 40px; height: 40px; }
}

/* --------------------------------------------------------------------------
   4. 页内子导航（sticky + scrollspy，第二阶段新增共享组件）
   用法：
   <nav class="subnav" data-subnav aria-label="页面导航">
     <div class="container subnav__inner">
       <a class="subnav__link" href="#data" data-subnav-link>服务数据</a> …
            </div>
   </nav>
   -------------------------------------------------------------------------- */
.subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--c-line);
  backdrop-filter: saturate(180%) blur(12px);
  transition: box-shadow 0.25s var(--ease);
}
.subnav.is-stuck { box-shadow: 0 10px 26px rgba(9, 30, 66, 0.07); }
.subnav__inner {
  display: flex;
  align-items: center;
  gap: clamp(2px, 1vw, 10px);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.subnav__inner::-webkit-scrollbar { display: none; }
@media (max-width: 760px) {
  .subnav__inner {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 20px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 20px), transparent);
  }
}
.subnav__link {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  padding: 0 14px;
  color: var(--c-muted);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.subnav__link:hover { color: var(--c-brand-ink); }
.subnav__link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: transparent;
  transition: background 0.25s var(--ease);
}
.subnav__link.is-active { color: var(--c-brand-ink); font-weight: 600; }
.subnav__link.is-active::after { background: var(--c-brand); }
.subnav__aside { margin-left: auto; display: flex; align-items: center; gap: 14px; padding-left: 12px; }
@media (max-width: 760px) {
  .subnav__link { min-height: 52px; padding: 0 10px; font-size: 13.5px; }
  .subnav__link::after { left: 10px; right: 10px; }
  .subnav__aside { display: none; }
}

/* --------------------------------------------------------------------------
   5. 面包屑 + 内页 Hero
   -------------------------------------------------------------------------- */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--c-muted); }
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: var(--c-faint); }
.breadcrumb a { color: inherit; }
.breadcrumb a:hover { color: var(--c-brand-ink); }
.breadcrumb--light { color: rgba(198, 218, 245, 0.72); }
.breadcrumb--light li + li::before { color: rgba(198, 218, 245, 0.32); }
.breadcrumb--light a:hover { color: var(--c-white); }

.page-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 440px;
  padding: clamp(30px, 4vw, 44px) 0;
  color: rgba(226, 238, 255, 0.82);
  background: var(--grad-hero);
  overflow: hidden;
}
.page-hero__bg { position: absolute; inset: 0; pointer-events: none; }
.page-hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 78% 72% at 62% 30%, #000 8%, transparent 74%);
}
.page-hero__bg::after {
  content: "";
  position: absolute;
  top: -240px;
  right: -120px;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(36, 104, 242, 0.5), transparent 64%);
  filter: blur(20px);
}
.page-hero__inner {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
}
.page-hero__copy { max-width: 940px; }
.page-hero--textonly { min-height: 400px; }

.page-hero .breadcrumb { margin-bottom: clamp(20px, 2.8vw, 32px); }
.page-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: #8fd0ff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.page-hero__eyebrow::before { content: ""; width: 20px; height: 2px; background: #8fd0ff; border-radius: 2px; }
.page-hero h1 {
  max-width: 820px;
  color: var(--c-white);
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.18;
  font-weight: var(--font-weight-bold);
  text-shadow: var(--shadow-title-soft);
  letter-spacing: -0.02em;
}
.page-hero__lead {
  max-width: 620px;
  margin-top: 18px;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.8;
  color: rgba(214, 230, 250, 0.84);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.page-hero .chips { margin-top: 24px; }
.page-hero .chip { text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45); }
@media (max-width: 980px) {
  .page-hero { min-height: 0; padding: clamp(26px, 5vw, 36px) 0 clamp(36px, 6vw, 48px); }
  .page-hero__copy { max-width: none; }
  .page-hero h1 { font-size: clamp(27px, 5.2vw, 34px); }
}
@media (max-width: 560px) {
  .page-hero .chips { gap: 8px; }
}

/* --------------------------------------------------------------------------
   5. 页脚
   -------------------------------------------------------------------------- */
.footer {
  position: relative;
  padding-top: clamp(48px, 5.4vw, 76px);
  color: rgba(188, 210, 238, 0.7);
  background: var(--c-dark);
  font-size: 14px;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  top: -260px;
  left: -120px;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 120, 230, 0.18), transparent 65%);
  pointer-events: none;
}
.footer__main {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 2.3fr);
  gap: clamp(28px, 4.4vw, 68px);
  padding-bottom: clamp(28px, 3.4vw, 44px);
}
.footer__brand .brand__logo { height: 44px; filter: brightness(0) invert(1); }
.footer__brand .brand__text strong { color: var(--c-white); }
.footer__brand .brand__text em { color: rgba(186, 208, 238, 0.86); }
.footer__desc { max-width: 330px; margin-top: 20px; line-height: 1.9; color: rgba(196, 216, 242, 0.82); }
.footer__contact { display: grid; gap: 12px; margin-top: 24px; }
.footer__contact li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.6; }
.footer__contact .icon { width: 16px; height: 16px; margin-top: 4px; color: #7cc6ff; }
.footer__contact a { color: rgba(226, 238, 255, 0.92); }
.footer__contact a:hover { color: var(--c-white); }
.footer__contact strong { font-family: var(--font-num); font-size: 16px; color: var(--c-white); letter-spacing: 0.02em; }
.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 40px);
}
.footer__col h3 {
  margin-bottom: 16px;
  color: var(--c-white);
  font-size: 15px;
  font-weight: 600;
}
.footer__col ul { display: grid; gap: 10px; }
.footer__col a { color: rgba(205, 222, 243, 0.85); font-size: 13.5px; }
.footer__col a:hover { color: var(--c-white); }

.platform-links {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 26px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.platform-links__label { color: rgba(186, 208, 236, 0.8); font-size: 13px; }
.platform-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 6px;
  border: 1px solid transparent;
  border-radius: var(--r-btn);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(208, 224, 245, 0.86);
  font-size: 13px;
  cursor: pointer;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}
.platform-item:hover { color: var(--c-white); background: rgba(255, 255, 255, 0.09); transform: translateY(-2px); }
.platform-item .icon { width: 15px; height: 15px; }
.platform-item__ic {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: #9dc6ff;
}
.platform-item__ic .icon { width: 14px; height: 14px; }

.footer__bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 20px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(199, 217, 239, 0.82);
  font-size: 12.5px;
}
.footer__bottom a { color: inherit; }
.footer__bottom a:hover { color: var(--c-white); }
.footer__legal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }

@media (max-width: 980px) {
  .footer__main { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
}
@media (max-width: 560px) {
  .footer__cols { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* --------------------------------------------------------------------------
   6. 二维码弹窗
   -------------------------------------------------------------------------- */
.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 14, 30, 0.72);
  backdrop-filter: blur(6px);
}
.qr-modal[hidden] { display: none; }
.qr-modal__panel {
  position: relative;
  width: min(340px, 92vw);
  padding: 30px 28px 24px;
  border-radius: var(--r-5);
  background: var(--c-white);
  text-align: center;
  box-shadow: var(--sh-3);
}
.qr-modal__panel img { width: 210px; height: 210px; margin: 0 auto 14px; border-radius: var(--radius-lg); background: var(--c-white); }
.qr-modal__panel h3 { font-size: 17px; }
.qr-modal__panel p { margin-top: 6px; color: var(--c-muted); font-size: 13px; }
.qr-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--c-soft);
  color: var(--c-muted);
  cursor: pointer;
}
.qr-modal__close:hover { background: var(--c-soft-2); color: var(--c-ink); }

/* --------------------------------------------------------------------------
   7. 右侧悬浮栏 + AI 助手
   -------------------------------------------------------------------------- */
.float-rail {
  position: fixed;
  right: 18px;
  bottom: 28px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.float-rail__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background: var(--c-white);
  color: var(--c-ink);
  font-size: 11px;
  line-height: 1.1;
  cursor: pointer;
  box-shadow: var(--sh-2);
  transition: transform 0.28s var(--ease), color 0.28s var(--ease), background 0.28s var(--ease),
    border-color 0.28s var(--ease);
}
.float-rail__btn .icon { width: 21px; height: 21px; }
.float-rail__btn:hover { transform: translateY(-3px); color: var(--c-brand-ink); border-color: var(--c-brand-200); }
.float-rail__btn--brand { background: var(--c-brand); border-color: var(--c-brand-ink); color: var(--c-white); }
.float-rail__btn--brand:hover { background: var(--c-brand-600); color: var(--c-white); }
.float-rail__btn[hidden] { display: none; }

.assistant {
  position: fixed;
  right: 18px;
  bottom: 96px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  width: min(370px, calc(100vw - 32px));
  max-height: min(620px, calc(100dvh - 120px));
  border-radius: var(--radius-lg);
  background: var(--c-white);
  box-shadow: 0 30px 80px rgba(6, 24, 47, 0.28);
  overflow: hidden;
  transform-origin: right bottom;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease-out), visibility 0.3s;
}
.assistant[hidden] { display: flex; opacity: 0; visibility: hidden; transform: translateY(12px) scale(0.97); pointer-events: none; }
.assistant__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  color: var(--c-white);
  background: var(--grad-brand);
}
.assistant__avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.16);
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.assistant__head h3 { color: var(--c-white); font-size: 15px; }
.assistant__head p { margin-top: 2px; color: rgba(255, 255, 255, 0.72); font-size: 11.5px; }
.assistant__close {
  display: grid;
  place-items: center;
  flex: none;
  margin-left: auto;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--c-white);
  line-height: 1;
  cursor: pointer;
}
.assistant__close .icon {
  display: block;
  width: 16px;
  height: 16px;
  margin: 0;
}
.assistant__close:hover { background: rgba(255, 255, 255, 0.24); }
.assistant__body {
  flex: 1;
  min-height: 180px;
  overflow-y: auto;
  padding: 16px;
  background: var(--c-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}
.msg {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  font-size: 13.5px;
  line-height: 1.7;
  word-break: break-word;
  white-space: pre-line;
}
.assistant__online {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  background: #46e0a0;
  box-shadow: 0 0 0 3px rgba(70, 224, 160, 0.22);
  vertical-align: 1px;
}
.msg--bot { align-self: flex-start; background: var(--c-white); color: var(--c-text); border: 1px solid var(--c-line); border-bottom-left-radius: 4px; }
.msg--user { align-self: flex-end; background: var(--c-brand); color: var(--c-white); border-bottom-right-radius: 4px; }
.msg--bot strong { color: var(--c-brand-700); }
.msg--typing { display: inline-flex; gap: 4px; }
.msg--typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--c-faint); animation: typing 1.2s infinite ease-in-out; }
.msg--typing i:nth-child(2) { animation-delay: 0.15s; }
.msg--typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-2px); opacity: 1; } }
.assistant__quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.assistant__quick button {
  padding: 6px 12px;
  border: 1px solid var(--c-brand-100);
  border-radius: var(--r-btn);
  background: var(--c-white);
  color: var(--c-brand-700);
  font-size: 12px;
  cursor: pointer;
}
.assistant__quick button:hover { background: var(--c-brand-050); }
.assistant__form { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--c-line); background: var(--c-white); }
.assistant__form input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--c-line-2);
  border-radius: var(--r-btn);
  font-size: 13.5px;
  color: var(--c-ink);
  outline: none;
}
.assistant__form input:focus { border-color: var(--c-brand-ink); box-shadow: 0 0 0 3px var(--c-brand-050); }
.assistant__form button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--c-brand);
  color: var(--c-white);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.assistant__form button:hover { background: var(--c-brand-600); }
.assistant__form .icon { width: 17px; height: 17px; }
.assistant__note { margin: 0; padding: 0 14px 12px; background: var(--c-white); color: var(--c-faint); font-size: 11px; line-height: 1.5; }

@media (max-width: 768px) {
  .footer__bottom { padding-bottom: 26px; }
}
@media (max-width: 640px) {
  .float-rail { right: 12px; bottom: 16px; gap: 8px; }
  .float-rail__btn { width: 50px; height: 50px; border-radius: var(--radius-lg); font-size: 10px; }
  .assistant { right: 12px; bottom: 76px; left: 12px; width: auto; max-height: calc(100dvh - 100px); }
}

/* --------------------------------------------------------------------------
   8. 表单
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 18px; }
.form[hidden], .form__success[hidden], .form__summary[hidden] { display: none; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field__label { color: var(--c-ink); font-size: 13.5px; font-weight: 600; }
.field__label i { margin-left: 2px; color: #c62828; font-style: normal; }
.field__hint { color: var(--c-faint); font-size: 12px; font-weight: 400; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--c-line-2);
  border-radius: var(--r-3);
  background: var(--c-white);
  color: var(--c-ink);
  font-family: inherit;
  font-size: 14.5px;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field textarea { min-height: 132px; resize: vertical; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235f7590' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.field input::placeholder, .field textarea::placeholder { color: var(--c-faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--c-brand-ink);
  box-shadow: 0 0 0 3px var(--c-brand-050);
}
.field__err { display: none; color: #d64545; font-size: 12px; }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #e08a8a; background: #fffafa; }
.field.has-error .field__err { display: block; }

.check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--c-muted); line-height: 1.7; cursor: pointer; }
.check input { flex: none; width: 17px; height: 17px; margin-top: 3px; accent-color: var(--c-brand-ink); }
.check a { text-decoration: underline; text-underline-offset: 2px; }
.check.has-error { color: #d64545; }
.check__err { display: none; margin-left: 4px; color: #d64545; font-size: 12px; }
.check.has-error .check__err { display: inline; }

.form__summary {
  padding: 10px 14px;
  border-radius: var(--r-3);
  background: #fff3f3;
  border: 1px solid #f3cccc;
  color: #b42318;
  font-size: 13px;
  line-height: 1.6;
}
.form__summary[hidden] { display: none; }

.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form__foot p { color: var(--c-faint); font-size: 12.5px; }
.form__success {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  border: 1px solid #b9e6d3;
  border-radius: var(--r-4);
  background: var(--c-ok-bg);
}
.form__success .icon { width: 24px; height: 24px; color: var(--c-ok); flex: none; margin-top: 2px; }
.form__success h3 { font-size: 16px; }
.form__success p { margin-top: 4px; color: #2f6b56; font-size: 13.5px; line-height: 1.75; }

@media (max-width: 700px) {
  .form__grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   9. 标签页 / 筛选
   -------------------------------------------------------------------------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab {
  padding: 9px 18px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-btn);
  background: var(--c-white);
  color: var(--c-text);
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.tab:hover { border-color: var(--c-brand-200); color: var(--c-brand-ink); }
.tab.is-active { background: var(--c-brand); border-color: var(--c-brand-ink); color: var(--c-white); box-shadow: 0 8px 18px rgba(36, 104, 242, 0.22); }
.tab--light { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.2); color: rgba(226, 238, 255, 0.8); }
.tab--light.is-active { background: var(--c-white); border-color: var(--c-white); color: var(--c-brand-700); }

/* --------------------------------------------------------------------------
   10. FAQ 手风琴
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: 12px; }
.faq__item {
  border: 1px solid var(--c-line);
  border-radius: var(--r-4);
  background: var(--c-white);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.faq__item.is-open { border-color: var(--c-brand-200); box-shadow: var(--sh-1); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 18px 22px;
  border: 0;
  background: none;
  color: var(--c-ink);
  font-size: 15.5px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.faq__q .icon { width: 18px; height: 18px; color: var(--c-brand-ink); transition: transform 0.3s var(--ease); }
.faq__item.is-open .faq__q .icon { transform: rotate(45deg); }
.faq__a { padding: 0 22px 20px; color: var(--c-muted); font-size: 14.5px; line-height: 1.9; }

/* --------------------------------------------------------------------------
   11. 表格（资质矩阵）
   -------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border-radius: var(--r-4); border: 1px solid var(--c-line); background: var(--c-white); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 0; }
.table th, .table td { padding: 15px 18px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--c-line); }
.table th {
  background: var(--c-soft);
  color: var(--c-ink);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fafcff; }
.table td strong { color: var(--c-ink); font-weight: 600; }
.table--compact th,
.table--compact td { padding: 11px 18px; }
.table--compact { font-size: 13.5px; }
@media (max-width: 700px) {
  .table-wrap { border: 0; background: none; overflow: visible; }
  .table { min-width: 0; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  /* 移动端卡片化：每行一张卡，卡内「label | value」两列，比 label 占一行更紧凑 */
  .table tr {
    border: 1px solid var(--c-line);
    border-radius: var(--r-3);
    background: var(--c-white);
    margin-bottom: 8px;
    padding: 6px 12px;
  }
  .table td {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 4px 10px;
    align-items: baseline;
    border: 0;
    padding: 5px 0;
  }
  .table td::before {
    content: attr(data-label);
    margin: 0;
    padding-top: 2px;
    color: var(--c-faint);
    font-size: 11.5px;
    line-height: 1.5;
  }
  .table td > .chip,
  .table td > .badge { justify-self: start; width: auto; }
  .table--compact tr { padding: 4px 10px; }
  .table--compact td { padding: 4px 0; }
}

/* --------------------------------------------------------------------------
   11.1 卡片 / 媒体通用工具（第二阶段共享类，页面优先复用）
   -------------------------------------------------------------------------- */
.card-flex { display: flex; flex-direction: column; height: 100%; }
.card-foot { margin-top: auto; }
.media { position: relative; overflow: hidden; background: var(--c-soft-2); }
.media > img { width: 100%; height: 100%; object-fit: cover; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--16x10 { aspect-ratio: 16 / 10; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--3x4 { aspect-ratio: 3 / 4; }
.media--3x2 { aspect-ratio: 3 / 2; }
.media--cinema { aspect-ratio: 21 / 9; }
.measure { max-width: var(--measure); }
.stack-sm > * + * { margin-top: 10px; }
.stack > * + * { margin-top: 18px; }

/* --------------------------------------------------------------------------
   12. 文章正文（新闻详情 / 隐私政策）
   -------------------------------------------------------------------------- */
.prose { max-width: 780px; color: var(--c-text); font-size: 16px; line-height: 2; }
.prose > * + * { margin-top: 18px; }
.prose h2 { margin-top: 40px; font-size: clamp(20px, 2vw, 25px); color: var(--c-ink); }
.prose h3 { margin-top: 30px; font-size: 18px; }
.prose ul, .prose ol { padding-left: 22px; display: grid; gap: 8px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li::marker { color: var(--c-brand-ink); }
.prose strong { color: var(--c-ink); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote {
  padding: 16px 20px;
  border-left: 3px solid var(--c-brand);
  border-radius: 0 var(--r-3) var(--r-3) 0;
  background: var(--c-brand-050);
  color: var(--c-brand-900);
}
.prose img { border-radius: var(--r-4); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; }
.prose th, .prose td { border: 1px solid var(--c-line); padding: 10px 14px; text-align: left; }
.prose th { background: var(--c-soft); }

/* --------------------------------------------------------------------------
   13. 图片灯箱
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: 32px;
  background: rgba(3, 12, 26, 0.88);
  backdrop-filter: blur(8px);
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 84vh; border-radius: var(--r-4); box-shadow: var(--sh-3); }
.lightbox__cap { margin-top: 14px; color: rgba(226, 238, 255, 0.75); font-size: 13px; text-align: center; }
.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--c-white);
  font-size: 20px;
  cursor: pointer;
}

/* 悬浮栏不再按宽度隐藏，低高度屏幕仅做紧凑化 */


/* --------------------------------------------------------------------------
   11.2 折叠披露（<details> 渐进式披露，第二阶段共享组件）
   用法：
   <details class="disclosure disclosure--link" data-disclosure>
     <summary><span class="disclosure__label" data-open="收起详情" data-closed="查看挑战 · 做法 · 结果">查看挑战 · 做法 · 结果</span></summary>
     <div class="disclosure__body">…（内容保留在 DOM，打印时展开）…</div>
   </details>
   JS 自动：0.28s 高度动效、labels 切换、reduced-motion 瞬时、打印展开。
   -------------------------------------------------------------------------- */
.disclosure { border: 1px solid var(--c-line); border-radius: var(--r-3); background: var(--c-white); }
.disclosure > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  list-style: none;
  cursor: pointer;
  color: var(--c-brand-ink);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
}
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary::after {
  content: "+";
  margin-left: auto;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  color: var(--c-brand-ink);
  transition: transform 0.28s var(--ease);
}
.disclosure[open] > summary::after { transform: rotate(45deg); }
.disclosure__body { padding: 0 16px 16px; color: var(--c-text); font-size: 13.5px; line-height: 1.85; }
.disclosure__body > * + * { margin-top: 10px; }
.disclosure--link { border: 0; border-radius: 0; background: transparent; }
.disclosure--link > summary { padding: 0; color: var(--c-brand-ink); }
.disclosure--link > summary::after { margin-left: 6px; font-size: 16px; }
.disclosure--link > summary:hover { color: var(--c-brand-600); }
.disclosure--link .disclosure__body { padding: 10px 0 0; }
.disclosure__body[hidden] { display: none; }
@media print {
  .disclosure > summary { display: none !important; }
  .disclosure > .disclosure__body,
  .disclosure:not([open]) > .disclosure__body { display: block !important; height: auto !important; overflow: visible !important; }
}

/* --------------------------------------------------------------------------
   11.3 宽表横向滚动容器（≥5 列宽表；≤4 列小表仍用 .table 移动卡片化）
   -------------------------------------------------------------------------- */
.table-wrap--scroll {
  position: relative;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.table-wrap--scroll .table { min-width: 760px; }
.table-wrap--scroll th:first-child,
.table-wrap--scroll td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--c-white);
  box-shadow: 1px 0 0 var(--c-line);
}
.table-wrap--scroll thead th:first-child { background: var(--c-soft); z-index: 2; }
.table-wrap--scroll::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 36px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.92));
}
@media (max-width: 700px) {
  .table-wrap--scroll { overflow-x: auto; }
  .table-wrap--scroll .table { display: table; min-width: 720px; font-size: 13px; }
  .table-wrap--scroll .table thead { display: table-header-group; }
  .table-wrap--scroll .table tbody { display: table-row-group; }
  .table-wrap--scroll .table tr { display: table-row; border: 0; margin: 0; padding: 0; background: none; }
  .table-wrap--scroll .table th,
  .table-wrap--scroll .table td { display: table-cell; padding: 10px 12px; }
  .table-wrap--scroll .table td::before { display: none; }
}


/* --------------------------------------------------------------------------
   13. Mega Menu（全宽下拉导航 · 第三阶段）
   -------------------------------------------------------------------------- */
.nav__item { position: relative; }
.nav__item.has-mega > .nav__link {
  padding-right: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1px center;
}
.nav__item.has-mega.is-open > .nav__link { color: var(--c-brand-ink); }
.nav__item.has-mega.is-open > .nav__link::after { width: 18px; }
.mega {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--header-h);
  z-index: 99;
  background: var(--c-white);
  border-top: 1px solid var(--c-line);
  box-shadow: 0 24px 60px rgba(15, 35, 80, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}
.nav__item.has-mega.is-open > .mega { opacity: 1; visibility: visible; transform: none; }
.mega__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 2.28fr);
  gap: 0;
  padding-block: 36px;
}
.mega__aside {
  display: flex;
  flex-direction: column;
  padding-right: clamp(24px, 3vw, 44px);
  border-right: 1px solid var(--c-line);
}
.mega__eyebrow { color: var(--c-brand-ink); font-family: var(--font-en); font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.mega__title { margin-top: 8px; font-size: 24px; color: var(--c-ink); }
.mega__lead { margin-top: 10px; max-width: 34ch; color: var(--c-muted); font-size: 14px; line-height: 1.75; }
.mega__contacts { display: grid; gap: 8px; margin-top: auto; padding-top: 22px; color: var(--c-text); font-size: 13px; }
.mega__contacts span { display: inline-flex; align-items: center; gap: 8px; }
.mega__contacts .icon { width: 15px; height: 15px; color: var(--c-brand-ink); }
.mega__cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--c-brand-ink); font-size: 14px; font-weight: 600; }
.mega__cta .icon { width: 15px; height: 15px; transition: transform 0.2s var(--ease); }
.mega__cta:hover .icon { transform: translateX(3px); }
.mega__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-left: clamp(24px, 3vw, 44px);
  align-content: start;
}
.mega-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 24px;
  background: var(--c-soft);
  border: 1px solid transparent;
  border-radius: var(--r-card);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.mega-card:hover { background: var(--c-white); border-color: var(--c-brand-ink); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(36, 104, 242, 0.12); }
.mega-card__title { font-size: 16px; font-weight: 700; color: var(--c-ink); }
.mega-card__desc { font-size: 13px; color: var(--c-muted); line-height: 1.6; }
.mega-card__arrow { position: absolute; right: 18px; top: 22px; width: 16px; height: 16px; color: var(--c-brand-ink); opacity: 0.45; }
.mega__cards .mega-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 980px) {
  .mega {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: 0;
    background: transparent;
    display: none;
  }
  .nav__item.has-mega.is-open > .mega { display: block; }
  .mega__inner { display: block; padding: 0 0 10px; }
  .mega__aside { display: none; }
  .mega__cards { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 0 0 8px 8px; }
  .mega-card { padding: 10px 12px; gap: 2px; }
  .mega-card__title { font-size: 14px; }
  .mega-card__desc { font-size: 12px; }
  .mega-card__arrow { display: none; }
}






/* --------------------------------------------------------------------------
   右侧悬浮窗：AI 助手 + 商务微信；二维码弹窗
   -------------------------------------------------------------------------- */
.float-rail {
  right: 24px;
  bottom: 80px;
  gap: 12px;
}
.float-rail__btn {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  font-size: 12px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.10);
}
.float-rail__btn .icon { width: 22px; height: 22px; }

.wechat-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 15, 40, 0.62);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.wechat-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.wechat-modal {
  position: relative;
  width: min(340px, 100%);
  padding: 32px 28px 28px;
  border-radius: var(--radius-lg);
  background: var(--c-white);
  box-shadow: 0 24px 70px rgba(5, 15, 40, 0.28);
  text-align: center;
  transform: translateY(16px);
  transition: transform 0.3s var(--ease);
}
.wechat-modal-overlay.active .wechat-modal { transform: translateY(0); }
.wechat-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--c-faint);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.wechat-modal__close:hover { color: var(--c-ink); background: var(--c-soft-2); }
.wechat-modal h3 { margin-bottom: 18px; color: var(--c-ink); font-size: 19px; }
.wechat-modal__qr {
  width: 200px;
  height: 200px;
  margin: 0 auto 16px;
  padding: 8px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  background: var(--c-slate);
}
.wechat-modal__qr img { width: 100%; height: 100%; object-fit: contain; }
.wechat-modal p { color: var(--c-muted); font-size: 13px; line-height: 1.7; }
body.is-modal-open { overflow: hidden; }

@media (max-width: 640px) {
  .float-rail { right: 12px; bottom: 16px; gap: 8px; }
  .float-rail__btn { width: 52px; height: 52px; border-radius: var(--radius-lg); font-size: 10px; }
  .wechat-modal { padding: 28px 20px 22px; }
  .wechat-modal__qr { width: 180px; height: 180px; }
}

/* 右侧悬浮栏：固定定位、最高层级、低高度适配 */
.float-rail {
  position: fixed;
  right: 24px;
  bottom: 80px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform: translateZ(0);
}
.assistant { z-index: 10000; }
.wechat-modal-overlay { z-index: 10001; }

@media (max-height: 800px) {
  .float-rail {
    bottom: 60px;
    gap: 8px;
  }
  .float-rail__btn {
    width: 56px;
    height: 56px;
  }
}
@media (max-width: 640px) {
  .float-rail {
    right: 16px;
    bottom: 24px;
    gap: 8px;
  }
  .float-rail__btn {
    width: 50px;
    height: 50px;
  }
}

/* --------------------------------------------------------------------------
 Mega Menu · 新闻中心 2×2 新闻卡片
 -------------------------------------------------------------------------- */
.mega__cards--news {
  grid-auto-rows: 101px;
  align-content: stretch;
}
.mega-news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 14px 20px;
  border-radius: var(--r-card);
  background: var(--c-soft);
  text-decoration: none;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.mega-news-card:hover {
  background: var(--c-white);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(36, 104, 242, 0.12);
}
.mega-news-card__top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.mega-news-card__tag {
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--c-brand-050);
  color: var(--c-brand-ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}
.mega-news-card__tag.is-hot {
  background: rgba(229, 72, 77, 0.1);
  color: #e5484d;
}
.mega-news-card__date {
  color: var(--c-faint);
  font-size: 12px;
}
.mega-news-card__title {
  display: -webkit-box;
  max-width: 100%;
  padding-right: 22px;
  overflow: hidden;
  color: var(--c-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s var(--ease);
}
.mega-news-card:hover .mega-news-card__title { color: var(--c-brand-ink); }
.mega-news-card__arrow {
  position: absolute;
  right: 18px;
  bottom: 12px;
  width: 15px;
  height: 16px;
  color: var(--c-faint);
  transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}
.mega-news-card:hover .mega-news-card__arrow {
  color: var(--c-brand);
  transform: translateX(4px);
}
@media (max-width: 980px) {
  .mega__cards--news { grid-auto-rows: auto; }
  .mega-news-card { min-height: 0; padding: 12px 14px; }
  .mega-news-card__title { font-size: 14px; }
  .mega-news-card__arrow { display: none; }
}

/* 导航四套下拉菜单：统一 2x2 卡片规格 */
.mega-card {
  min-height: 101px;
  gap: 4px;
  padding: 16px 20px;
}
.mega-card__title {
  display: -webkit-box;
  padding-right: 18px;
  overflow: hidden;
  font-size: 15.5px;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.mega-card__desc {
  display: -webkit-box;
  overflow: hidden;
  font-size: 12.5px;
  line-height: 1.5;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.mega-card__arrow { top: 18px; }
@media (max-width: 980px) {
  .mega-card { min-height: 0; }
}

/* Lightbox 上一张 / 下一张 / 计数器 */
.lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--c-white);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.lightbox__nav:hover {
  border-color: transparent;
  background: var(--c-brand);
  transform: translateY(-50%) scale(1.07);
}
.lightbox__nav .icon { width: 22px; height: 22px; }
.lightbox__nav--prev { left: 36px; }
.lightbox__nav--next { right: 36px; }
.lightbox__nav[hidden] { display: none; }
.lightbox__counter {
  position: absolute;
  bottom: 28px;
  left: 50%;
  z-index: 2;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-num);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  transform: translateX(-50%);
}
.lightbox__counter[hidden] { display: none; }
@media (max-width: 768px) {
  .lightbox__nav { width: 42px; height: 42px; }
  .lightbox__nav .icon { width: 18px; height: 18px; }
  .lightbox__nav--prev { left: 12px; }
  .lightbox__nav--next { right: 12px; }
  .lightbox__counter { bottom: 18px; }
}

/* 图片灯箱层级高于浮动客服 */
.lightbox { z-index: 9999; }

/* 灯箱大图完整展示，不裁剪 */
.lightbox figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: min(1180px, 92vw);
  max-height: 88vh;
  margin: 0;
}
.lightbox img {
  width: auto !important;
  height: auto !important;
  max-width: min(1100px, 92vw) !important;
  max-height: 82vh !important;
  object-fit: contain !important;
  background: transparent;
}

/* 巨型菜单入口卡片：无副标题，单行垂直居中 */
.mega-card {
  flex-direction: row;
  align-items: center;
  min-height: 58px;
  gap: 0;
  padding: 16px 46px 16px 20px;
}
.mega-card__title {
  display: block;
  padding-right: 0;
  overflow: visible;
  font-size: 15.5px;
  line-height: 1.4;
  -webkit-line-clamp: unset;
}
.mega-card__arrow {
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
}
.mega-card:hover .mega-card__arrow { transform: translateY(-50%) translateX(4px); }
@media (max-width: 980px) {
  .mega-card {
    min-height: 0;
    padding: 12px 14px;
  }
  .mega-card__title { font-size: 14px; }
}

/* 内页 Banner：复用首页机柜实景图 + 左侧深色渐变 */
.page-hero {
  background-color: var(--c-dark);
  background-image:
    radial-gradient(58% 78% at 72% 44%, rgba(0, 229, 255, 0.14) 0%, rgba(0, 229, 255, 0.04) 34%, transparent 64%),
    radial-gradient(54% 76% at 20% 44%, rgba(30, 92, 200, 0.18) 0%, rgba(14, 52, 124, 0.07) 46%, transparent 72%),
    radial-gradient(44% 62% at 88% 16%, rgba(36, 104, 242, 0.18) 0%, rgba(36, 104, 242, 0.05) 42%, transparent 66%),
    linear-gradient(90deg,
      rgba(7, 24, 62, 0.94) 0%,
      rgba(10, 34, 82, 0.76) 40%,
      rgba(13, 44, 100, 0.24) 78%,
      rgba(8, 22, 54, 0.08) 100%),
    url('/assets/img/hero/hero-1.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.page-hero__bg::before,
.page-hero__bg::after {
  display: none;
}
.page-hero__inner { z-index: 2; }

/* 内页面包屑：Banner 下方，左侧对齐 */
.page-breadcrumb-bar {
  background: var(--c-bg);
  padding: 18px 0 0;
}
.page-breadcrumb ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.page-breadcrumb li { display: inline-flex; align-items: center; }
.page-breadcrumb__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--c-faint);
  font-size: 13px;
  line-height: 1.5;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.page-breadcrumb__link:hover {
  color: var(--c-brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.page-breadcrumb__home { width: 14px; height: 14px; }
.page-breadcrumb__sep {
  margin: 0 10px;
  color: var(--c-line-2);
  font-size: 12px;
  user-select: none;
}
.page-breadcrumb__current {
  color: var(--c-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}
@media (max-width: 640px) {
  .page-breadcrumb-bar { padding-top: 14px; }
  .page-breadcrumb__sep { margin: 0 7px; }
}

/* Footer：与顶部导航对齐的三列结构 */
.footer__cols {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3.2vw, 48px);
}
.footer__col h3 {
  margin-bottom: 18px;
  color: var(--c-white);
  font-size: 16px;
  font-weight: 700;
}
.footer__col ul { gap: 11px; }
.footer__col a {
  color: rgba(205, 222, 243, 0.78);
  font-size: 13.5px;
}
.footer__col a:hover { color: var(--c-brand-200); }
@media (max-width: 980px) {
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .footer__cols { grid-template-columns: 1fr; }
}

/* Footer：公安备案 */
.footer__police {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer__police img {
  width: 20px;
  height: 22px;
  object-fit: contain;
}

/* 图片加载失败：灰底占位，避免出现破图图标 */
img.is-img-error {
  object-fit: contain !important;
  background: var(--c-soft-2, #eef2f7);
  color: transparent;
}

/* ==========================================================================
   QA：素材类型区分 —— 文档/证书完整显示，二维码保持正方形
   ========================================================================== */
.h-cert-pane img,
.main-image-box img,
.thumb-box img,
.cert-card img,
#mainCertImg {
  object-fit: contain;
  background: var(--c-soft-2);
}
.qr-modal__panel img,
#qrModalImage,
.wechat-modal__qr img {
  object-fit: contain;
}
.wechat-modal__qr {
  aspect-ratio: 1 / 1;
}

/* 灯箱：大图加载完成前的灰底 Loading 占位 */
.lightbox figure { position: relative; }
.lightbox figure.is-loading::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border: 3px solid rgba(255, 255, 255, 0.24);
  border-top-color: var(--c-white);
  border-radius: 50%;
  z-index: 2;
  animation: lightbox-spin 0.8s linear infinite;
}
.lightbox figure.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--radius-lg);
  background: rgba(9, 18, 36, 0.42);
}
.lightbox figure.is-loading img { opacity: 0; }
@keyframes lightbox-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .lightbox figure.is-loading::before { animation: none; }
}

/* QA：素材类型显式类名 */
.media-doc {
  object-fit: contain;
  background: var(--color-bg-secondary);
}
.media-qr {
  object-fit: contain;
}
