/* ==========================================================================
   博奥体育看台 · 共享站点样式 /assets/site.css
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body,
h1, h2, h3, h4, h5, h6,
p, ol, ul, li, figure, figcaption, blockquote, dl, dd {
  margin: 0;
}

ol, ul { padding: 0; list-style: none; }

img, svg, video { display: block; max-width: 100%; height: auto; }

button, input, select, textarea { font: inherit; color: inherit; }

button { background: none; border: 0; padding: 0; cursor: pointer; }

a { color: inherit; text-decoration: none; }

/* ---------- 2. Tokens ---------- */
:root {
  /* 色彩 */
  --ink: #05070F;
  --indigo: #0B1230;
  --indigo-2: #131C4A;
  --neon: #28E0B9;
  --signal: #5DF2D6;
  --ember: #FF5A36;
  --silver: #C9C3B8;
  --stone: #8B8F8A;
  --moss: #5E7A5A;
  --clay: #B86B4B;
  --paper: #F4EFE4;

  /* 字体 */
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Source Han Sans SC", "Noto Sans SC", "Alibaba PuHuiTi",
    system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "IBM Plex Mono", "Roboto Mono",
    "SFMono-Regular", Menlo, Consolas, monospace;

  /* 尺度 */
  --rail: clamp(16px, 4vw, 56px);
  --shell: 1440px;
  --gutter: clamp(18px, 3.2vw, 48px);
  --line: 1px solid rgba(201, 195, 184, 0.2);
  --line-soft: 1px solid rgba(201, 195, 184, 0.12);
  --line-strong: 1px solid rgba(201, 195, 184, 0.42);

  /* 动效 */
  --ease: cubic-bezier(0.22, 0.7, 0.24, 1);
  --dur: 0.55s;

  /* 切角 */
  --cut: 22px;
  --cut-sm: 14px;
}

/* ---------- 3. 中文排版与基底 ---------- */
body {
  background-color: var(--indigo);
  background-image:
    radial-gradient(90rem 40rem at 88% -12%, rgba(40, 224, 185, 0.1), transparent 62%),
    radial-gradient(70rem 36rem at -10% 8%, rgba(255, 90, 54, 0.08), transparent 58%);
  background-repeat: no-repeat;
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(38px, 6.4vw, 92px); line-height: 1.04; }
h2 { font-size: clamp(26px, 3.6vw, 44px); }
h3 { font-size: clamp(20px, 2.2vw, 28px); }
h4 { font-size: 18px; font-weight: 500; letter-spacing: 0.02em; }

p { text-wrap: pretty; }

strong, b { font-weight: 600; color: var(--paper); }

::selection { background: var(--neon); color: var(--ink); }

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 1px;
}

body.is-nav-open { overflow: hidden; }

/* ---------- 4. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: -140px;
  left: 16px;
  z-index: 900;
  padding: 12px 20px;
  background: var(--neon);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  clip-path: polygon(0 0, 100% 0, 100% 62%, calc(100% - 12px) 100%, 0 100%);
  transition: top 0.22s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible { top: 16px; }

/* ==========================================================================
   5. 站点头部 · 框架式导航
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--indigo);
  border-bottom: var(--line);
  box-shadow: 0 18px 40px -32px rgba(5, 7, 15, 0.9);
}

/* --- 5.1 细线状态栏 --- */
.statusline {
  border-bottom: 1px solid rgba(201, 195, 184, 0.12);
  background: rgba(5, 7, 15, 0.5);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
}

.statusline__inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 6px var(--rail);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
}

.statusline__mark {
  color: var(--silver);
  white-space: nowrap;
}

.statusline__entry {
  color: var(--neon);
  letter-spacing: 0.08em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.statusline__clock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--silver);
  white-space: nowrap;
}

.statusline__sep { color: rgba(201, 195, 184, 0.35); }

/* --- 5.2 主框架 --- */
.frame {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 0 var(--rail);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(14px, 2.2vw, 40px);
  min-height: 72px;
}

/* --- 5.3 品牌签 --- */
.brandsig {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 10px;
  min-height: 44px;
}

.brandsig__glyph {
  flex: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 300;
  line-height: 1;
  color: var(--neon);
  border: 1px solid rgba(40, 224, 185, 0.55);
  background:
    linear-gradient(150deg, rgba(40, 224, 185, 0.22), rgba(40, 224, 185, 0) 72%);
  clip-path: polygon(0 0, 100% 0, 100% 68%, 68% 100%, 0 100%);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.brandsig:hover .brandsig__glyph { color: var(--signal); border-color: var(--signal); }

.brandsig__body { display: block; }

.brandsig__text {
  display: block;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.16em;
  line-height: 1.3;
  color: var(--paper);
}

.brandsig__sub {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
}

/* --- 5.4 阶梯索引导航 --- */
.stairnav {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: clamp(10px, 1.6vw, 28px);
  min-width: 0;
}

.stairnav__cap {
  display: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--stone);
}

.stairnav__list {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: clamp(10px, 1.4vw, 26px);
  min-width: 0;
}

.stairnav__item { display: block; }

.stairnav__link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 8px 0 calc(8px + var(--step, 0) * 3px);
  border-bottom: 1px solid rgba(201, 195, 184, 0.26);
  color: var(--silver);
  transform: translateY(calc(var(--step, 0) * -3.2px));
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease),
    transform 0.28s var(--ease);
}

.stairnav__num {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--stone);
  transition: color 0.25s var(--ease);
}

.stairnav__label {
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.stairnav__link:hover,
.stairnav__link:focus-visible {
  color: var(--paper);
  border-bottom-color: var(--ember);
  transform: translateY(calc(var(--step, 0) * -3.2px - 3px));
}

.stairnav__link:hover .stairnav__num { color: var(--ember); }

.stairnav__link[aria-current="page"] {
  color: var(--neon);
  border-bottom-color: var(--neon);
  border-bottom-width: 2px;
}

.stairnav__link[aria-current="page"] .stairnav__num { color: var(--neon); }

.stairnav__cta { display: none; }

.frame__cta { flex: none; }

/* --- 5.5 移动导航按钮 --- */
.navtoggle {
  display: none;
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 300;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 20px;
  background: var(--ember);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%, 0 14px);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.navtoggle:active { background: var(--signal); }

.navtoggle__bars {
  display: grid;
  gap: 3px;
  width: 16px;
}

.navtoggle__bars span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  transition: transform 0.28s var(--ease), opacity 0.2s var(--ease);
}

.navtoggle[aria-expanded="true"] .navtoggle__bars span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.navtoggle[aria-expanded="true"] .navtoggle__bars span:nth-child(2) { opacity: 0; }

.navtoggle[aria-expanded="true"] .navtoggle__bars span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* --- 5.6 滚动进度尺 --- */
.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}

.scroll-meter > span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--neon), var(--signal) 55%, var(--ember));
  transition: width 0.12s linear;
}

/* ==========================================================================
   6. 站点页脚
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 9vw, 140px);
  background: var(--indigo);
  border-top: var(--line-soft);
  color: var(--paper);
}

.footer__edge {
  height: 20px;
  background: linear-gradient(90deg, var(--neon) 0%, var(--signal) 26%, var(--silver) 60%, var(--ember) 100%);
  opacity: 0.85;
  clip-path: polygon(
    0 100%, 0 60%,
    8% 60%, 8% 26%,
    18% 26%, 18% 72%,
    30% 72%, 30% 42%,
    42% 42%, 42% 88%,
    54% 88%, 54% 34%,
    66% 34%, 66% 64%,
    78% 64%, 78% 20%,
    90% 20%, 90% 54%,
    100% 54%, 100% 100%
  );
}

.footer__main {
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(38px, 5.4vw, 76px) var(--rail) clamp(26px, 4vw, 52px);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: clamp(26px, 4vw, 60px);
}

.footer__mark {
  font-size: clamp(24px, 2.8vw, 38px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: 0.05em;
  color: var(--paper);
}

.footer__summary {
  margin-top: 14px;
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(244, 239, 228, 0.72);
}

.footer__meta {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--neon);
}

.footer__col { min-width: 0; }

.footer__title {
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: var(--line-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--stone);
}

.footer__list { display: grid; gap: 4px; }

.footer__link {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-height: 34px;
  font-size: 15px;
  color: rgba(244, 239, 228, 0.82);
  transition: color 0.22s var(--ease), gap 0.22s var(--ease);
}

.footer__link::before {
  content: "";
  width: 0;
  height: 1px;
  background: var(--neon);
  transition: width 0.24s var(--ease);
}

.footer__link:hover,
.footer__link:focus-visible { color: var(--neon); gap: 8px; }

.footer__link:hover::before,
.footer__link:focus-visible::before { width: 12px; }

.footer__link[aria-current="page"] { color: var(--neon); font-weight: 500; }

.footer__contact {
  display: grid;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: rgba(244, 239, 228, 0.78);
}

.footer__contact span { display: block; overflow-wrap: anywhere; }

.footer__contact span:first-child { color: var(--signal); }

.footer__base {
  background: var(--ink);
  border-top: 1px solid rgba(201, 195, 184, 0.14);
}

.footer__base-inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 18px var(--rail);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--stone);
}

.footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer__legal-links a { transition: color 0.2s var(--ease); }
.footer__legal-links a:hover,
.footer__legal-links a:focus-visible { color: var(--neon); }

.footer__icp { color: rgba(139, 143, 138, 0.85); }

/* ==========================================================================
   7. 通用按钮 / 标签
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 22px;
  background: var(--ember);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.3;
  clip-path: polygon(0 0, 100% 0, 100% 62%, calc(100% - 13px) 100%, 0 100%);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    color 0.25s var(--ease);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  background: var(--signal);
}

.btn:active { transform: translateY(0); }

.btn--neon { background: var(--neon); color: var(--ink); }
.btn--neon:hover,
.btn--neon:focus-visible { background: var(--signal); }

.btn--ghost {
  background: rgba(201, 195, 184, 0.08);
  color: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(201, 195, 184, 0.45);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: rgba(40, 224, 185, 0.14);
  color: var(--signal);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid rgba(201, 195, 184, 0.32);
  background: transparent;
  color: var(--silver);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.5;
}

.chip--neon {
  border-color: rgba(40, 224, 185, 0.6);
  background: rgba(40, 224, 185, 0.1);
  color: var(--neon);
}

.chip--moss {
  border-color: rgba(94, 122, 90, 0.72);
  background: rgba(94, 122, 90, 0.24);
  color: #A8C7A2;
}

.chip--clay {
  border-color: rgba(184, 107, 75, 0.72);
  background: rgba(184, 107, 75, 0.22);
  color: #E8A98C;
}

.chip--ember {
  border-color: rgba(255, 90, 54, 0.7);
  background: rgba(255, 90, 54, 0.14);
  color: var(--ember);
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--indigo-2);
  border-left: 2px solid var(--clay);
  color: var(--silver);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

/* ==========================================================================
   8. 布局容器与网格
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--rail);
}

.container--narrow { max-width: 880px; }

.section { padding-block: clamp(40px, 6vw, 88px); }

.stack { display: grid; gap: var(--gutter); }

.grid { display: grid; gap: var(--gutter); }

.grid--cards {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid--split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }

.grid--split-rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }

.rule {
  height: 1px;
  border: 0;
  margin-block: clamp(28px, 5vw, 56px);
  background: rgba(201, 195, 184, 0.18);
}

.band {
  height: 6px;
  background: repeating-linear-gradient(
    115deg,
    var(--neon) 0 2px,
    transparent 2px 10px
  );
  opacity: 0.55;
}

/* ==========================================================================
   9. 文本构件
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--neon);
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 26px;
  height: 1px;
  background: currentColor;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 32px;
  padding-bottom: 18px;
  margin-bottom: clamp(24px, 4vw, 44px);
  border-bottom: var(--line);
}

.section-head__title {
  font-size: clamp(26px, 3.6vw, 44px);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.85;
  color: rgba(244, 239, 228, 0.84);
}

.prose > * + * { margin-top: 1.1em; }

.prose h2 { margin-top: 1.8em; color: var(--paper); }
.prose h3 { margin-top: 1.5em; color: var(--paper); }

.prose a {
  color: var(--neon);
  border-bottom: 1px solid rgba(40, 224, 185, 0.45);
  transition: border-color 0.2s var(--ease);
}

.prose a:hover { border-bottom-color: var(--neon); }

.prose ul,
.prose ol { padding-left: 1.2em; }
.prose ul { list-style: square; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.5em; }
.prose li::marker { color: var(--neon); }

/* ==========================================================================
   10. 面板
   ========================================================================== */
.panel {
  position: relative;
  padding: clamp(20px, 3vw, 36px);
  background: var(--indigo-2);
  border: 1px solid rgba(201, 195, 184, 0.16);
  clip-path: polygon(
    0 0,
    calc(100% - var(--cut)) 0,
    100% var(--cut),
    100% 100%,
    var(--cut) 100%,
    0 calc(100% - var(--cut))
  );
}

.panel--indigo { background: var(--indigo-2); }

.panel--paper {
  background: var(--paper);
  color: var(--ink);
  border-color: rgba(5, 7, 15, 0.12);
}

.panel--paper :where(h1, h2, h3, h4, p, li, dd, dt) { color: inherit; }
.panel--paper .eyebrow { color: var(--clay); }
.panel--paper .rule { background: rgba(5, 7, 15, 0.14); }

.panel--moss {
  background: var(--moss);
  border-color: rgba(244, 239, 228, 0.24);
}

.panel--clay {
  background: var(--clay);
  border-color: rgba(244, 239, 228, 0.28);
}

/* ==========================================================================
   11. 数据与图片容器
   ========================================================================== */
.stat { display: grid; gap: 4px; }

.stat__value {
  font-family: var(--font-mono);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--paper);
}

.stat__value--ember { color: var(--ember); }

.stat__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
}

.media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background-color: var(--indigo-2);
  background-image:
    linear-gradient(135deg, rgba(19, 28, 74, 0.95), rgba(11, 18, 48, 0.98)),
    repeating-linear-gradient(
      115deg,
      rgba(40, 224, 185, 0.16) 0 1px,
      transparent 1px 14px
    );
  border: 1px solid rgba(201, 195, 184, 0.16);
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 26px),
    calc(100% - 26px) 100%,
    0 100%
  );
}

.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 4 / 5; }
.media--square { aspect-ratio: 1 / 1; }

.media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease);
}

.media:hover .media__img { transform: scale(1.03); }

.media__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  line-height: 1.6;
  color: var(--paper);
  background: linear-gradient(0deg, rgba(5, 7, 15, 0.88), rgba(5, 7, 15, 0));
}

/* ==========================================================================
   12. 面包屑
   ========================================================================== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--stone);
}

.breadcrumb a {
  color: var(--silver);
  transition: color 0.2s var(--ease);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible { color: var(--neon); }

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb li + li::before {
  content: "/";
  color: rgba(201, 195, 184, 0.32);
}

.breadcrumb [aria-current="page"] { color: var(--neon); }

/* ==========================================================================
   13. 滚动显现
   ========================================================================== */
[data-reveal] { opacity: 1; transform: none; }

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.62s var(--ease), transform 0.62s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* ==========================================================================
   14. 响应式
   ========================================================================== */
@media (max-width: 1180px) {
  .stairnav__label { font-size: 13px; }
  .stairnav__link { padding-bottom: calc(7px + var(--step, 0) * 2.4px); }
}

@media (max-width: 1000px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer__col:last-child { grid-column: 1 / -1; }
  .footer__contact {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

/* --- 平板 / 手机：框架导航转底部抽屉 --- */
@media (max-width: 960px) {
  html { scroll-padding-top: 96px; }

  .statusline__entry { display: none; }

  .frame {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 62px;
    gap: 12px;
  }

  .frame__cta { display: none; }

  .brandsig__text { font-size: 14px; letter-spacing: 0.12em; }
  .brandsig__sub { letter-spacing: 0.16em; }

  .navtoggle { display: inline-flex; }

  .stairnav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 250;
    display: block;
    max-height: 84vh;
    overflow-y: auto;
    padding: 22px var(--rail) 104px;
    background:
      linear-gradient(180deg, rgba(19, 28, 74, 0.99) 0%, rgba(5, 7, 15, 0.995) 100%);
    border-top: 1px solid rgba(40, 224, 185, 0.4);
    transform: translateY(105%);
    visibility: hidden;
    transition: transform 0.45s var(--ease), visibility 0.45s var(--ease);
  }

  .stairnav[data-open] {
    transform: translateY(0);
    visibility: visible;
  }

  .stairnav__cap { display: block; margin-bottom: 10px; }

  .stairnav__list {
    display: block;
    border-top: var(--line-soft);
  }

  .stairnav__item { border-bottom: var(--line-soft); }

  .stairnav__link {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 0;
    transform: none;
    font-size: 19px;
    font-weight: 300;
    color: var(--paper);
  }

  .stairnav__link:hover,
  .stairnav__link:focus-visible { transform: none; color: var(--neon); }

  .stairnav__label { font-size: 19px; letter-spacing: 0.04em; }

  .stairnav__num {
    order: 5;
    font-size: 11px;
    color: var(--stone);
  }

  .stairnav__link[aria-current="page"] { border-bottom: 0; }

  .stairnav__link[aria-current="page"] .stairnav__label::after {
    content: "· 当前";
    margin-left: 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    color: var(--neon);
  }

  .stairnav__cta {
    display: inline-flex;
    margin-top: 22px;
    width: 100%;
    max-width: 320px;
  }

  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__col:last-child { grid-column: auto; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__contact { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; line-height: 1.8; }

  .grid--split,
  .grid--split-rev { grid-template-columns: 1fr; }

  .grid--cards { grid-template-columns: 1fr; }

  .footer__grid { grid-template-columns: 1fr; }
  .footer__brand { grid-column: auto; }

  .footer__base-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer__legal-links { gap: 8px 16px; }

  .media { aspect-ratio: 4 / 3; }
  .media--wide { aspect-ratio: 16 / 9; }

  .panel { --cut: 16px; }
}

/* --- 动效降级 --- */
@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;
    scroll-behavior: auto !important;
  }

  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .stairnav__link { transform: none !important; }
  .stairnav__link:hover,
  .stairnav__link:focus-visible { transform: none !important; }
  .btn:hover,
  .btn:focus-visible { transform: none !important; }
  .media:hover .media__img { transform: none !important; }
}
