/* ==========================================================================
   金宝博赛场 · 共享站点样式 /assets/site.css
   Bento 信息板 · 悬浮胶囊导航 · 精密刻度语言 · 深底脉冲色彩
   ========================================================================== */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body, h1, h2, h3, h4, h5, p, ul, ol, li, figure, figcaption, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video, canvas { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; border-spacing: 0; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid #3DE1F0;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #05121F;
  --graphite: #0C1E30;
  --glass: rgba(23, 51, 80, 0.60);
  --glass-strong: rgba(12, 30, 48, 0.95);
  --neon: #3DE1F0;
  --electric: #2C7DFF;
  --lava: #FF6B2C;
  --acid: #B6FF3D;
  --violet: #8A5CFF;
  --text: #E8F1FA;
  --muted: #9FB3C8;
  --rule: #24405C;

  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-body: var(--font-display);
  --font-mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, "Courier New", monospace;

  --shell: 1240px;
  --gutter: clamp(16px, 3vw, 28px);
  --r-card: 14px;
  --r-data: 6px;
  --r-pill: 999px;

  --t-fast: 0.18s cubic-bezier(0.3, 0.7, 0.4, 1);
  --t-mid: 0.28s cubic-bezier(0.3, 0.7, 0.4, 1);
}

/* ---------- 3. 中文排版基线 ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    radial-gradient(900px 520px at 84% -10%, rgba(44, 125, 255, 0.20), transparent 62%),
    radial-gradient(680px 440px at 2% 4%, rgba(61, 225, 240, 0.13), transparent 60%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-weight: 900; line-height: 1.12; letter-spacing: -0.015em; }
h1 { font-size: clamp(32px, 5.6vw, 62px); }
h2 { font-size: clamp(26px, 4.2vw, 46px); }
h3 { font-size: clamp(19px, 2.4vw, 26px); }
h4 { font-size: clamp(16px, 1.8vw, 19px); font-weight: 800; }
p { line-height: 1.75; }
strong, b { font-weight: 800; }
[id] { scroll-margin-top: clamp(84px, 12vh, 128px); }

/* ---------- 4. 工具与布局基元 ---------- */
.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: 36em; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.stack { display: grid; gap: clamp(12px, 1.6vw, 20px); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.section { padding-block: clamp(40px, 6vw, 76px); }
.section--tight { padding-block: clamp(24px, 4vw, 46px); }

.section-head { position: relative; display: grid; gap: 10px; margin-bottom: clamp(20px, 3vw, 34px); }
.section-head__eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--neon);
}
.section-head__eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--neon); flex: 0 0 auto; }
.section-title { font-size: clamp(26px, 4.4vw, 52px); font-weight: 900; line-height: 1.08; letter-spacing: -0.015em; color: var(--text); }
.section-lede { max-width: 36em; font-size: 16px; line-height: 1.75; color: var(--muted); }
.display-xl { font-size: clamp(34px, 7.4vw, 72px); font-weight: 900; line-height: 1.02; letter-spacing: -0.03em; }

/* 章节之间的数据刻度线 */
.tick-rule { display: flex; align-items: flex-end; gap: 16px; margin-block: clamp(30px, 5vw, 60px); }
.tick-rule::before,
.tick-rule::after {
  content: ""; flex: 1 1 0; height: 9px;
  border-bottom: 1px solid var(--rule);
  background-image: repeating-linear-gradient(90deg, var(--rule) 0 1px, transparent 1px 15px);
  background-repeat: repeat-x; background-position: left bottom;
}
.tick-rule__label {
  flex: 0 0 auto; white-space: nowrap; text-transform: uppercase;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.24em; color: var(--muted);
}

/* ---------- 5. 卡片与栅格 ---------- */
.grid-bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(12px, 1.5vw, 18px); }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-9 { grid-column: span 9; }
.span-12 { grid-column: span 12; }

.panel {
  position: relative;
  padding: clamp(16px, 2.1vw, 24px);
  background: var(--graphite);
  border: 1px solid rgba(61, 225, 240, 0.12);
  border-radius: var(--r-card);
}
.panel--glass {
  background: var(--glass);
  border-color: rgba(61, 225, 240, 0.20);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
}
.panel--focus {
  border-color: var(--neon);
  box-shadow: 0 0 0 1px rgba(61, 225, 240, 0.35), 0 28px 70px -34px rgba(61, 225, 240, 0.75);
}
.panel--data { border-radius: var(--r-data); }
.panel__title { font-size: clamp(18px, 2.2vw, 24px); font-weight: 800; line-height: 1.25; letter-spacing: -0.01em; }
.panel__meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--muted); }

/* ---------- 6. 按钮与链接 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border: 1px solid transparent; border-radius: var(--r-pill);
  font-size: 15px; font-weight: 800; line-height: 1.2; cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.btn--primary { background: linear-gradient(120deg, var(--neon), var(--electric)); color: #04121C; box-shadow: 0 14px 34px -18px rgba(61, 225, 240, 0.95); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 18px 40px -16px rgba(61, 225, 240, 1); }
.btn--ghost { background: rgba(61, 225, 240, 0.07); border-color: rgba(61, 225, 240, 0.35); color: var(--neon); }
.btn--ghost:hover { background: rgba(61, 225, 240, 0.15); }
.btn--acid { background: var(--acid); color: #08180A; box-shadow: 0 14px 34px -20px rgba(182, 255, 61, 0.9); }
.btn--acid:hover { transform: translateY(-1px); }
.btn--small { padding: 9px 16px; font-size: 13.5px; }

/* ---------- 7. 面包屑 ---------- */
.breadcrumbs { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--muted); }
.breadcrumbs > ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.breadcrumbs a { color: var(--muted); transition: color var(--t-fast); }
.breadcrumbs a:hover { color: var(--neon); }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--rule); }
.breadcrumbs [aria-current="page"] { color: var(--text); }

/* ---------- 8. 图片容器（页面阶段投放图片） ---------- */
.media-figure { display: grid; gap: 8px; }
.media-frame {
  position: relative; isolation: isolate; overflow: hidden;
  border: 1px solid rgba(61, 225, 240, 0.16);
  border-radius: var(--r-card);
  background: linear-gradient(150deg, #0C1E30, #050F1B 72%);
  aspect-ratio: 16 / 9;
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05) contrast(1.06); }
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--contain img { object-fit: contain; padding: 6%; }
.media-frame::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(115deg, rgba(61, 225, 240, 0.07) 0 1px, transparent 1px 9px);
  mix-blend-mode: screen; opacity: 0.55;
}
.media-frame__caption {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  display: inline-flex; padding: 4px 9px;
  border: 1px solid rgba(61, 225, 240, 0.20); border-radius: var(--r-data);
  background: rgba(5, 18, 31, 0.78);
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; color: var(--muted);
}
.media-figure figcaption { font-size: 12.5px; line-height: 1.6; color: var(--muted); }

/* ---------- 9. 档位、数字与注脚 ---------- */
.tier {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border: 1px solid currentColor; border-radius: var(--r-data);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
}
.tier--1, .tier--2 { color: var(--lava); }
.tier--3 { color: var(--electric); }
.tier--4 { color: var(--neon); }
.tier--5 { color: var(--acid); }

.data-num {
  padding: 0 3px; border-radius: 3px;
  font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 700; color: var(--text);
  background: linear-gradient(180deg, transparent 58%, rgba(61, 225, 240, 0.18) 58%);
}
.data-num--acid { background: linear-gradient(180deg, transparent 58%, rgba(182, 255, 61, 0.22) 58%); }
.data-num--lava { background: linear-gradient(180deg, transparent 58%, rgba(255, 107, 44, 0.24) 58%); }

.annotation { font-family: var(--font-mono); font-size: 12.5px; line-height: 1.6; letter-spacing: 0.12em; color: var(--muted); }
.annotation--vertical { writing-mode: vertical-rl; text-orientation: mixed; letter-spacing: 0.3em; }
.annotation--tilt { display: inline-block; transform: rotate(-8deg); transform-origin: left bottom; }

/* ---------- 10. 分段切换与标签页 ---------- */
.segmented {
  display: inline-flex; gap: 4px; max-width: 100%; padding: 4px; overflow-x: auto;
  border: 1px solid rgba(61, 225, 240, 0.18); border-radius: var(--r-pill);
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  scrollbar-width: none;
}
.segmented::-webkit-scrollbar { display: none; }
.segmented__tab {
  appearance: none; padding: 8px 16px; border: 1px solid transparent; border-radius: var(--r-pill);
  background: transparent; color: var(--muted);
  font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer;
  transition: color var(--t-fast), background var(--t-fast);
}
.segmented__tab:hover { color: var(--text); }
.segmented__tab[aria-selected="true"] { background: var(--neon); color: #04121C; font-weight: 800; }
.tab-panel { padding-top: clamp(16px, 2.4vw, 26px); }

/* ---------- 11. 参数表 ---------- */
.spec-wrap {
  overflow: hidden; border: 1px solid rgba(61, 225, 240, 0.16);
  border-radius: var(--r-card); background: var(--graphite);
}
.spec-scroll { max-height: min(72vh, 660px); overflow: auto; }
.spec-table { width: 100%; min-width: 560px; font-size: 14px; }
.spec-table th, .spec-table td { padding: 11px 15px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.spec-table thead th {
  position: sticky; top: 0; z-index: 2;
  background: #0A1B2C; color: var(--neon);
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; letter-spacing: 0.16em; white-space: nowrap;
}
.spec-table tbody tr:hover { background: rgba(61, 225, 240, 0.05); }
.spec-table td.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--text); }
.spec-wrap.is-zoomed .spec-table { font-size: 17px; }
.spec-wrap.is-zoomed .spec-table th,
.spec-wrap.is-zoomed .spec-table td { padding: 15px 18px; }

/* ---------- 12. 跳转链接与滚动进度 ---------- */
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 200;
  padding: 10px 20px; border-radius: var(--r-pill);
  background: var(--neon); color: #04121C; font-size: 14px; font-weight: 800;
  transform: translateY(-180%);
  transition: transform var(--t-mid);
}
.skip-link:focus { transform: translateY(0); }

.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 130;
  height: 2px; pointer-events: none; background: rgba(36, 64, 92, 0.5);
}
.scroll-progress__bar {
  display: block; width: 100%; height: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--electric), var(--neon) 60%, var(--acid));
  box-shadow: 0 0 12px rgba(61, 225, 240, 0.8);
}

/* ---------- 13. 头部：悬浮胶囊导航浮岛 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 110;
  padding: clamp(10px, 1.4vw, 16px) var(--gutter);
  transition: padding var(--t-mid);
}
.site-header[data-scrolled] { padding-top: 6px; padding-bottom: 6px; }

.header-shell {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  width: 100%; max-width: var(--shell); margin-inline: auto;
  padding: 8px 10px 8px 18px;
  border: 1px solid rgba(61, 225, 240, 0.18);
  border-radius: var(--r-pill);
  background: var(--glass);
  box-shadow: 0 18px 44px -26px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(232, 241, 250, 0.06);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  transition: background var(--t-mid), border-color var(--t-mid), padding var(--t-mid);
}
.site-header[data-scrolled] .header-shell {
  padding-block: 6px;
  background: rgba(12, 30, 48, 0.88);
  border-color: rgba(61, 225, 240, 0.32);
}

.brand-mark { display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto; padding: 4px 2px; }
.brand-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 0 4px rgba(61, 225, 240, 0.14), 0 0 14px rgba(61, 225, 240, 0.9);
  animation: beat-pulse 2.8s ease-in-out infinite;
}
.brand-name { font-size: 17px; font-weight: 900; letter-spacing: 0.01em; white-space: nowrap; color: var(--text); }
.brand-signature {
  flex: 0 0 auto; margin-left: 2px; padding-left: 12px;
  border-left: 1px solid var(--rule);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em; color: var(--muted); white-space: nowrap;
}

.primary-nav { flex: 1 1 auto; min-width: 0; }
.nav-track { display: flex; align-items: center; gap: 4px; padding: 2px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.nav-track::-webkit-scrollbar { display: none; }
.nav-capsule {
  display: inline-flex; align-items: center;
  padding: 8px 14px; border: 1px solid transparent; border-radius: var(--r-pill);
  color: var(--muted); font-size: 14px; line-height: 1.2; white-space: nowrap;
  transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast);
}
.nav-capsule:hover { color: var(--text); background: rgba(61, 225, 240, 0.09); border-color: rgba(61, 225, 240, 0.28); }
.nav-capsule[aria-current="page"] {
  background: var(--neon); color: #04121C; font-weight: 800; border-color: var(--neon);
  box-shadow: 0 8px 22px -10px rgba(61, 225, 240, 0.9);
}

.nav-cta {
  flex: 0 0 auto; display: inline-flex; align-items: center;
  padding: 9px 18px; border-radius: var(--r-pill);
  background: linear-gradient(120deg, var(--neon), var(--electric));
  color: #04121C; font-size: 14px; font-weight: 800; white-space: nowrap;
  box-shadow: 0 10px 26px -14px rgba(61, 225, 240, 0.95);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -12px rgba(61, 225, 240, 1); }

.nav-toggle {
  display: none; flex: 0 0 auto; align-items: center; gap: 9px;
  padding: 8px 14px; border: 1px solid rgba(61, 225, 240, 0.30); border-radius: var(--r-pill);
  background: rgba(61, 225, 240, 0.08); color: var(--text);
  font-size: 13px; font-weight: 700; cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.nav-toggle:hover { background: rgba(61, 225, 240, 0.16); }
.nav-toggle__bars { display: inline-flex; flex-direction: column; gap: 4px; width: 16px; }
.nav-toggle__bars i { display: block; height: 2px; width: 16px; border-radius: 2px; background: var(--neon); transition: transform var(--t-mid), width var(--t-mid); }
.nav-toggle__bars i:last-child { width: 11px; }
.site-header[data-open] .nav-toggle__bars i:first-child { transform: translateY(3px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars i:last-child { width: 16px; transform: translateY(-3px) rotate(-45deg); }

@keyframes beat-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.42; transform: scale(0.78); }
}

/* ---------- 14. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 112px);
  border-top: 1px solid var(--rule);
  background: linear-gradient(180deg, var(--ink) 0%, #040E18 100%);
}
.site-footer::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 9px; pointer-events: none;
  background-image: repeating-linear-gradient(90deg, var(--rule) 0 1px, transparent 1px 18px);
  background-position: left top; opacity: 0.85;
}
.footer-shell { max-width: var(--shell); margin-inline: auto; padding: clamp(44px, 6vw, 78px) var(--gutter) 26px; }

.footer-top {
  display: grid; grid-template-columns: minmax(240px, 1fr) minmax(0, 2.5fr);
  gap: clamp(24px, 4vw, 52px); align-items: start;
}
.footer-brand { display: grid; gap: 12px; max-width: 34ch; }
.footer-mark { font-size: 22px; font-weight: 900; letter-spacing: 0.01em; color: var(--text); }
.footer-signature { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--neon); }
.footer-note { font-size: 14px; line-height: 1.75; color: var(--muted); }
.footer-pulse {
  display: inline-flex; align-items: center; gap: 8px; justify-self: start;
  padding: 6px 12px; border: 1px solid rgba(182, 255, 61, 0.35); border-radius: var(--r-pill);
  background: rgba(182, 255, 61, 0.08); color: var(--acid);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em;
}
.footer-pulse i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--acid);
  box-shadow: 0 0 10px rgba(182, 255, 61, 0.9);
  animation: beat-pulse 2.8s ease-in-out infinite;
}

.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.footer-card {
  padding: 16px 14px;
  border: 1px solid rgba(61, 225, 240, 0.14); border-radius: var(--r-card);
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: border-color var(--t-mid), background var(--t-mid);
}
.footer-card:hover { border-color: rgba(61, 225, 240, 0.34); background: rgba(23, 51, 80, 0.78); }
.footer-card__title { margin-bottom: 12px; font-size: 12px; font-weight: 800; letter-spacing: 0.2em; color: var(--neon); }
.footer-list { display: grid; gap: 9px; }
.footer-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted); font-size: 14px;
  transition: color var(--t-fast), transform var(--t-fast);
}
.footer-link::before {
  content: ""; flex: 0 0 auto; width: 5px; height: 5px; border-radius: 1px;
  background: currentColor; opacity: 0.45;
  transition: background var(--t-fast), opacity var(--t-fast);
}
.footer-link:hover { color: var(--text); transform: translateX(2px); }
.footer-link:hover::before { background: var(--neon); opacity: 1; }

.footer-contact {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px 24px; margin-top: clamp(24px, 3.5vw, 40px); padding: 18px;
  border: 1px solid rgba(61, 225, 240, 0.16); border-radius: var(--r-card);
  background: linear-gradient(120deg, rgba(23, 51, 80, 0.70), rgba(12, 30, 48, 0.50));
}
.footer-contact__item { display: grid; gap: 4px; }
.footer-contact__key { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; color: var(--neon); }
.footer-contact__val { font-size: 14px; line-height: 1.65; color: var(--text); word-break: break-word; }

.footer-legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px;
  margin-top: 22px; padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 12px; color: var(--muted);
}
.footer-legal__icp { font-family: var(--font-mono); letter-spacing: 0.08em; }

/* ---------- 15. 渐入显现 ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.32s ease, transform 0.32s ease;
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 16. 响应式 ---------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1020px) {
  .brand-signature { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-cta { margin-left: auto; padding: 9px 14px; font-size: 13px; }

  .primary-nav {
    position: absolute; left: 0; right: 0; top: calc(100% + 10px);
    display: block; flex: none;
    max-height: 0; overflow: hidden;
    padding: 8px;
    border: 1px solid rgba(61, 225, 240, 0.24); border-radius: 20px;
    background: var(--glass-strong);
    box-shadow: 0 30px 60px -30px #000;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    opacity: 0; visibility: hidden;
    transition: opacity var(--t-mid), max-height 0.34s ease, visibility var(--t-mid);
  }
  .site-header[data-open] .primary-nav { opacity: 1; visibility: visible; max-height: min(70vh, 460px); overflow-y: auto; }
  .nav-track { flex-direction: column; align-items: stretch; gap: 2px; padding: 0; overflow: visible; }
  .nav-capsule { width: 100%; padding: 13px 16px; border-radius: 12px; font-size: 15px; }
  .nav-capsule[aria-current="page"] { box-shadow: none; }

  .footer-top { grid-template-columns: 1fr; }

  .span-3, .span-4, .span-5 { grid-column: span 6; }
  .span-7, .span-8, .span-9 { grid-column: span 12; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .span-3, .span-4, .span-5, .span-6, .span-7, .span-8, .span-9, .span-12 { grid-column: span 12; }
  .footer-legal { justify-content: flex-start; }
}

@media (max-width: 520px) {
  .header-shell { gap: 8px; padding-left: 14px; }
  .brand-name { font-size: 15px; }
  .nav-toggle__label { display: none; }
  .nav-cta { padding: 9px 12px; font-size: 12.5px; }
}

@media (max-width: 460px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- 17. 减弱动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .brand-dot, .footer-pulse i { animation: none; opacity: 1; transform: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .scroll-progress__bar { box-shadow: none; }
}
