/* ============================================
   AIC 艾瑞洁 · 公共样式文件
   设计系统 + Header + Footer + Buttons
   ============================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* Colors */
  --ink: #0A1628;
  --ink-2: #1B2A41;
  --ink-3: #0F1E36;
  --steel: #3D4F6B;
  --mute: #6B7A95;
  --line: #E3E8F0;
  --bg: #F5F7FA;
  --bg-2: #FAFBFC;
  --white: #FFFFFF;
  --accent: #0052D9;
  --accent-deep: #003BA0;
  --accent-light: #E8F0FE;
  --accent-bright: #4A90FF;
  --warn: #FF6B00;
  --ok: #00A86B;
  --danger: #D92D20;

  /* Radius - 统一 12px */
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-sm: 8px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(10, 22, 40, 0.06);
  --shadow-md: 0 12px 32px -12px rgba(10, 22, 40, 0.18);
  --shadow-lg: 0 24px 60px -20px rgba(10, 22, 40, 0.3);
  --shadow-accent: 0 16px 40px -16px rgba(0, 82, 217, 0.35);

  /* Transitions */
  --t-fast: 0.15s ease;
  --t-base: 0.25s ease;
  --t-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* Container */
  --container: 1320px;
}

/* ---------- Reset ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.mono { font-family: "JetBrains Mono", "Courier New", monospace; }
.display { font-family: "Barlow Condensed", "Noto Sans SC", sans-serif; font-weight: 700; letter-spacing: -0.01em; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Container ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--r);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--t-base);
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  background: var(--ink-2);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 12.5px;
}

.btn-lg {
  padding: 15px 30px;
  font-size: 15px;
}

/* ---------- Top Announcement Bar ---------- */
.topbar {
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 9px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-left {
  display: flex;
  gap: 24px;
  color: #A8B5C7;
}

.topbar-left .live {
  color: #fff;
  display: flex;
  align-items: center;
}

.topbar-left .live::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00FF88;
  margin-right: 8px;
  box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.6); }
  70% { box-shadow: 0 0 0 6px rgba(0, 255, 136, 0); }
}

.topbar-right {
  display: flex;
  gap: 20px;
  color: #A8B5C7;
}

.topbar-right a:hover { color: #fff; }

/* ---------- Main Nav ---------- */
.nav {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 40px;
  height: 40px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: -0.02em;
  font-family: "Barlow Condensed", sans-serif;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.logo-text span {
  font-size: 11px;
  color: var(--mute);
  letter-spacing: 0.1em;
}

.nav-menu {
  display: flex;
  gap: 12px;
  list-style: none;
}

.nav-menu > li > a {
  display: block;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  padding: 28px 6px;
  position: relative;
  transition: color var(--t-base);
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
  color: var(--accent);
}

.nav-menu > li > a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ---------- Mobile Menu Toggle ---------- */
.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.mobile-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all var(--t-base);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.breadcrumb-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--mute);
}

.breadcrumb a {
  transition: color var(--t-base);
}

.breadcrumb a:hover { color: var(--accent); }

.breadcrumb .sep {
  color: var(--line);
  font-size: 11px;
}

.breadcrumb .current {
  color: var(--ink);
  font-weight: 500;
}

/* ---------- Section Common ---------- */
section {
  scroll-margin-top: 90px;
}

.section-head {
  margin-bottom: 56px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}

.section-head .left { flex: 1; }

.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.2em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.section-head h2 {
  font-family: "Barlow Condensed", "Noto Sans SC", sans-serif;
  font-size: 46px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.section-head .desc {
  font-size: 15px;
  color: var(--mute);
  max-width: 440px;
  line-height: 1.75;
}

/* ---------- Footer ---------- */
footer {
  background: #050B16;
  color: #A8B5C7;
  padding: 64px 0 24px;
}

.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px 48px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand .logo-mark {
  background: #fff;
  color: var(--ink);
}

.footer-brand .logo-text strong,
.footer-brand .logo-text span {
  color: #fff;
}

.footer-brand p {
  font-size: 13px;
  color: #7A8AA8;
  margin-top: 18px;
  max-width: 340px;
  line-height: 1.75;
}

.footer-col h6 {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.1em;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  padding: 6px 0;
  font-size: 13px;
}

.footer-col a {
  transition: color var(--t-base);
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px 32px 0;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #5A6A85;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Floating Sidebar ---------- */
.float-side {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.float-btn {
  background: #fff;
  width: 60px;
  height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--steel);
  transition: all var(--t-base);
  gap: 3px;
  border: none;
}

.float-btn:hover {
  background: var(--accent);
  color: #fff;
}

.float-btn span { font-size: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav-menu { display: none; }
  .mobile-toggle { display: flex; }
  .topbar-left { display: none; }

  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px 32px;
    border-bottom: 1px solid var(--line);
    gap: 0;
    box-shadow: var(--shadow-md);
  }

  .nav-menu.open > li > a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-menu.open > li.has-mega {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center;
    border-bottom: 1px solid var(--line);
  }

  .nav-menu.open > li.has-mega > a {
    border-bottom: 0;
  }

  .nav-menu.open > li.has-mega > .mega-toggle {
    width: 44px;
    min-height: 48px;
    margin-left: 0;
    padding: 0;
    justify-self: end;
  }

  .nav-menu.open > li.has-mega > .mega-menu {
    grid-column: 1 / -1;
    position: static;
    padding-top: 0;
    max-height: 0;
    overflow: hidden;
    transform: none;
    transition: max-height .22s ease, opacity .18s ease, visibility .18s;
  }

  .nav-menu.open > li.has-mega.is-open > .mega-menu {
    /* JS(setState) 会按真实内容高度设精确 maxHeight；此值仅作无 JS 兜底，留足余量防截断 */
    max-height: 2000px;
    margin-bottom: 12px;
  }

  /* 折叠态为内联手风琴，无 tab/卡片间隙；禁用间隙桥，避免其遮挡链接点击 */
  .nav-menu.open .mega-panel::before { display: none; }

  .nav-menu.open .mega-inner {
    max-width: none;
    padding: 0;
  }

  .nav-menu.open .mega-panel,
  .nav-menu.open .mega-panel.panel-1,
  .nav-menu.open .mega-panel.panel-2,
  .nav-menu.open .mega-panel.panel-3 {
    width: 100%;
    padding: 16px;
    box-shadow: none;
  }

  .nav-menu.open .mega-cols,
  .nav-menu.open .mega-cols.cols-1,
  .nav-menu.open .mega-cols.cols-2,
  .nav-menu.open .mega-cols.cols-3 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .nav-menu.open .mega-foot {
    flex-wrap: wrap;
    gap: 5px 10px;
  }

  .nav-menu.open .mf-desc {
    flex-basis: 100%;
    white-space: normal;
  }
}

@media (max-width: 1024px) {
  .float-side { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head h2 { font-size: 36px; }
}

@media (max-width: 640px) {
  .nav-cta .btn { display: none; }
  .container { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }
  .topbar-inner { padding: 9px 20px; }
  .section-head h2 { font-size: 30px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; }
}

/* ============================================
   Mega Menu (global, injected by main.js)
   暗色玻璃浮层卡片 · 图标化栏目 · 致密紧凑
   表面色集中在 .mega-menu 的 --mm-* 变量，便于切换深/浅主题
   ============================================ */
.nav-menu > li.has-mega { position: static; display: flex; align-items: center; }
.nav-menu > li.has-mega.is-open > a { color: var(--accent); }

/* chevron 披露按钮：触屏 / 键盘 disclosure 入口，与相邻链接等高构成连续触发区 */
.mega-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: -2px;
  padding: 28px 6px;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--ink);
  line-height: 0;
  -webkit-appearance: none;
  appearance: none;
}
.mega-toggle:hover { color: var(--accent); }
.mega-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.mega-caret {
  width: 6px;
  height: 6px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: 0.45;
  transition: transform var(--t-base), opacity var(--t-base);
}
.nav-menu > li.has-mega.is-open .mega-caret {
  opacity: 1;
  transform: translateY(1px) rotate(-135deg);
}

/* 定位层：全宽透明，仅用于把浮层卡片对齐到容器栅格 */
.mega-menu {
  --mm-bg: linear-gradient(168deg, #FFFFFF 0%, #FAFBFD 100%);
  --mm-border: var(--line);
  --mm-head: var(--ink);
  --mm-text: #46577A;
  --mm-text-hover: var(--accent);
  --mm-row-hover: var(--bg);
  --mm-ico-bg: var(--accent-light);
  --mm-accent: var(--accent);

  position: absolute;
  left: 0;
  right: 0;
  top: 74px;
  padding-top: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  z-index: 99;
  /* 全宽定位层只是用来对齐卡片，本身不可命中：
     卡片以外的「空白」区域 hover/点击都穿透到页面本体，
     使 mouseleave 与外部点击关闭逻辑正常生效（卡片右侧空白不再吞事件）。 */
  pointer-events: none;
}

.nav-menu > li.has-mega.is-open .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.mega-panel {
  position: relative; /* 作为 ::before 间隙桥的定位上下文 */
  background: var(--mm-bg);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid var(--mm-border);
  border-radius: var(--r-lg);
  box-shadow: 0 26px 56px -26px rgba(10,22,40,0.30), 0 6px 16px -10px rgba(10,22,40,0.10);
  padding: 20px 22px 16px;
  pointer-events: auto; /* 仅可见卡片接收事件 */
}

/* 桥接 tab 与卡片之间的 12px 透明间隙：命中此伪元素仍属卡片范围，
   鼠标从 tab 垂直下移不再穿透到页面而误触 mouseleave 提前关闭 */
.mega-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}

.mega-panel.panel-1 { width: 300px; }
.mega-panel.panel-2 { width: 518px; }
.mega-panel.panel-3 { width: 698px; }

.mega-cols {
  display: grid;
  gap: 30px;
}

.mega-cols.cols-1 { grid-template-columns: 1fr; }
.mega-cols.cols-2 { grid-template-columns: repeat(2, 222px); }
.mega-cols.cols-3 { grid-template-columns: repeat(3, 198px); }

.mega-col h6 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--mm-head);
  letter-spacing: 0.01em;
  margin-bottom: 7px;
}

/* 同一列内的第二组标题，与上方列表保持致密而清晰的间隔 */
.mega-col h6:not(:first-child) {
  margin-top: 16px;
}

.mega-col h6 .mh-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 7px;
  background: var(--mm-ico-bg);
  color: var(--mm-accent);
}

.mega-col h6 .mh-ico svg { width: 15px; height: 15px; }

.mega-col h6 small {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--mm-accent);
  background: var(--mm-ico-bg);
  padding: 2px 6px;
  border-radius: 5px;
  margin-left: 2px;
}

.mega-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.mega-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  margin: 0 -10px;
  border-radius: 7px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--mm-text);
  font-weight: 400;
  transition: background var(--t-fast), color var(--t-fast);
}

.mega-link:hover {
  background: var(--mm-row-hover);
  color: var(--mm-text-hover);
}

.mega-link .arrow {
  color: var(--mm-accent);
  font-size: 9px;
  margin-right: -2px;
}

.mega-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
  letter-spacing: 0.05em;
  margin-left: auto;
  white-space: nowrap;
}

.mega-tag.flagship { background: var(--accent); color: #fff; }
.mega-tag.hot { background: #FFE8DC; color: var(--warn); }
.mega-tag.new { background: #DDF6E5; color: var(--ok); }
.mega-tag.power { background: var(--accent-light); color: var(--accent); }
.mega-tag.custom { background: #FCE7F6; color: #C11574; }

/* 底部紧凑 CTA 条（由原占整列的大促销卡重构而来） */
.mega-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: 10px;
  background: linear-gradient(100deg, var(--accent-light) 0%, rgba(232,240,254,0.45) 100%);
  border: 1px solid rgba(0,82,217,0.16);
  transition: border-color var(--t-base), background var(--t-base);
}

.mega-foot:hover {
  border-color: rgba(0,82,217,0.34);
  background: linear-gradient(100deg, #DAE6FE 0%, rgba(232,240,254,0.7) 100%);
}

.mf-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mm-accent);
  flex: 0 0 auto;
}

.mf-title {
  font-family: "Barlow Condensed", "Noto Sans SC", sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
  flex: 0 0 auto;
}

.mf-desc {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12px;
  color: var(--mm-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mf-cta {
  flex: 0 0 auto;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--mm-accent);
  white-space: nowrap;
}

/* 单列菜单（服务支持）：底部 CTA 条可换行，避免描述在窄浮层里被 ellipsis 截断 */
.mega-panel.panel-1 .mega-foot { flex-wrap: wrap; gap: 5px 10px; }
.mega-panel.panel-1 .mf-desc { white-space: normal; flex-basis: 100%; }

/* 折叠菜单内的 mega 由上方 responsive 规则转为内联 disclosure，不再隐藏入口。 */

/* ============================================================
   留资弹窗 + 企业微信浮层（LeadWidget）
   ============================================================ */

/* 浮窗在移动端也保留（右下角咨询/企业微信入口） */
@media (max-width: 1024px) {
  .float-side { display: flex !important; right: 12px; bottom: 12px; }
  .float-btn { width: 52px; height: 52px; }
}

a.float-btn { text-decoration: none; }
.float-btn.is-wechat:hover { background: #07C160; }

/* 企业微信浮层 */
.wechat-pop {
  position: fixed;
  right: 92px;
  bottom: 24px;
  z-index: 60;
  width: 248px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  padding: 18px;
  display: none;
}
.wechat-pop.open { display: block; }
.wechat-pop h5 { font-size: 14px; margin: 0 0 4px; color: var(--ink); }
.wechat-pop p { font-size: 12px; color: var(--mute); margin: 0 0 12px; }
.wechat-qr {
  width: 180px;
  height: 180px;
  margin: 0 auto;
  border-radius: 10px;
  background:
    linear-gradient(135deg, #f0f3f8 25%, transparent 25%) -10px 0/20px 20px,
    linear-gradient(225deg, #f0f3f8 25%, transparent 25%) -10px 0/20px 20px,
    #fff;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12px;
  color: var(--mute);
  padding: 12px;
  line-height: 1.6;
}
/* 企业微信二维码：后台配了真图就显示图并隐藏占位文字；未配置保留占位（site-config.js 按 data-cfg-src 注入 src） */
.wechat-qr img { display: none; width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.wechat-qr img[src] { display: block; }
.wechat-qr img[src] + .qr-ph { display: none; }
.wechat-pop .close-x {
  position: absolute; top: 8px; right: 12px;
  border: none; background: none; cursor: pointer;
  font-size: 18px; color: var(--mute); line-height: 1;
}

/* 留资弹窗 */
.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 22, 40, 0.55);
  backdrop-filter: blur(2px);
}
.lead-modal.open { display: flex; }
.lead-dialog {
  width: 100%;
  max-width: 460px;
  max-height: 92vh;
  overflow-y: auto;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  position: relative;
}
.lead-dialog .close-x {
  position: absolute; top: 14px; right: 16px;
  border: none; background: none; cursor: pointer;
  font-size: 22px; color: var(--mute); line-height: 1;
}
.lead-dialog .eyebrow { font-size: 11px; letter-spacing: 0.16em; color: var(--accent-bright); font-weight: 600; }
.lead-dialog h3 { font-size: 20px; margin: 6px 0 4px; color: var(--ink); }
.lead-dialog .sub { font-size: 12.5px; color: var(--mute); margin-bottom: 18px; }
.lead-field { margin-bottom: 12px; }
.lead-field label { display: block; font-size: 12.5px; color: var(--steel); margin-bottom: 5px; }
.lead-field .req { color: var(--danger); }
.lead-field input,
.lead-field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: var(--r-sm); font-size: 14px; font-family: inherit; color: var(--ink);
}
.lead-field input:focus, .lead-field textarea:focus { outline: none; border-color: var(--accent-bright); }
.lead-field textarea { resize: vertical; min-height: 72px; }
.lead-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lead-submit {
  width: 100%; padding: 12px; border: none; border-radius: var(--r-sm);
  background: var(--accent); color: #fff; font-size: 15px; font-weight: 600;
  cursor: pointer; font-family: inherit; margin-top: 4px;
}
.lead-submit:hover { background: var(--accent-deep); }
.lead-submit:disabled { opacity: 0.6; cursor: default; }
.lead-msg { font-size: 13px; margin-top: 12px; text-align: center; min-height: 18px; }
.lead-msg.ok { color: var(--ok); }
.lead-msg.err { color: var(--danger); }
.lead-success { text-align: center; padding: 24px 8px; display: none; }
.lead-success .tick {
  width: 56px; height: 56px; border-radius: 50%; background: var(--ok); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 30px; margin: 0 auto 14px;
}
.lead-success h4 { font-size: 18px; color: var(--ink); margin-bottom: 6px; }
.lead-success p { font-size: 13px; color: var(--mute); }

@media (max-width: 480px) {
  .lead-row { grid-template-columns: 1fr; }
  .wechat-pop { right: 12px; bottom: 80px; }
}

/* ---------- 证书 / 报告预览弹层 ---------- */
.cert-modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 22, 40, 0.6);
  backdrop-filter: blur(2px);
}
.cert-modal.open { display: flex; }
.cert-dialog {
  width: 100%;
  max-width: 720px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  position: relative;
}
.cert-dialog .close-x {
  position: absolute; top: 12px; right: 14px;
  border: none; background: none; cursor: pointer;
  font-size: 22px; color: var(--mute); line-height: 1; z-index: 2;
}
.cert-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding-right: 30px; margin-bottom: 14px;
}
.cert-head .cert-title { font-size: 16px; color: var(--ink); margin: 0; }
.cert-head .cert-download { flex: none; white-space: nowrap; }
.cert-stage {
  flex: 1; min-height: 0; overflow: auto;
  background: var(--bg); border-radius: var(--r-sm);
  border: 1px solid var(--line); text-align: center;
}
.cert-img { max-width: 100%; height: auto; display: block; margin: 0 auto; }
.cert-note { font-size: 12.5px; color: var(--mute); margin: 12px 0 0; }

@media (max-width: 480px) {
  .cert-dialog { padding: 16px; }
  .cert-head { flex-direction: column; align-items: stretch; padding-right: 24px; }
  .cert-head .cert-download { width: 100%; text-align: center; }
}

/* ============================================
   滚动动效系统（迁移自首屏设计稿：导航/进度条/入场/无障碍）
   说明：入场隐藏态仅在 <html class="js-anim"> 时生效（由各页 <head>
   内联脚本在支持 IntersectionObserver 且未开启"减弱动态效果"时提前打标），
   无 JS / 不支持 / 减弱动效时元素正常显示，保证可访问性兜底。
   ============================================ */

/* —— 顶部滚动进度条（由 main.js 注入 .scroll-progress 元素） —— */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 200;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  pointer-events: none;
  will-change: width;
}

/* —— 导航滚动抬升（白底实色导航，下滚后加投影、去描边） —— */
.nav.scrolled {
  box-shadow: 0 6px 22px -12px rgba(10, 22, 40, 0.30);
  border-bottom-color: transparent;
}

/* —— 元素进入视口：淡入上浮 —— */
html.js-anim .section-head,
html.js-anim .adv-card,
html.js-anim .pain-card,
html.js-anim .scen-card,
html.js-anim .tech-content,
html.js-anim .tech-visual,
html.js-anim .resource-master,
html.js-anim .resource-card,
html.js-anim .timeline-node,
html.js-anim .w-card,
html.js-anim .w-stat,
html.js-anim .ac-about,
html.js-anim .ac-form-col {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-d, 0s);
  will-change: opacity, transform;
}

html.js-anim .section-head.in-view,
html.js-anim .adv-card.in-view,
html.js-anim .pain-card.in-view,
html.js-anim .scen-card.in-view,
html.js-anim .tech-content.in-view,
html.js-anim .tech-visual.in-view,
html.js-anim .resource-master.in-view,
html.js-anim .resource-card.in-view,
html.js-anim .timeline-node.in-view,
html.js-anim .w-card.in-view,
html.js-anim .w-stat.in-view,
html.js-anim .ac-about.in-view,
html.js-anim .ac-form-col.in-view {
  opacity: 1;
  transform: none;
}

/* —— 无障碍：尊重系统"减弱动态效果"。正常情况下减弱动效时 <html> 不会加 js-anim，
   入场元素本就不会被隐藏；此处为无条件安全网，强制呈现可见态并去除过渡。 —— */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-progress { display: none; }
  .section-head,
  .adv-card,
  .pain-card,
  .scen-card,
  .tech-content,
  .tech-visual,
  .resource-master,
  .resource-card,
  .timeline-node,
  .w-card,
  .w-stat,
  .ac-about,
  .ac-form-col {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
