/* ============================================================
   德赢体育看台 — /assets/site.css
   共享外壳与通用组件：reset / 变量 / 中文排版 / 头部 / 页脚 / 基础组件
   ============================================================ */

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

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

/* ---------- 变量 ---------- */
:root {
  /* 色彩：近单色深墨绿体系 + 三色强调 */
  --ink-900: #0C1F1A;
  --ink-800: #14302A;
  --glass: rgba(30, 59, 51, .72);
  --paper: #F4F1E8;
  --red: #D7263D;
  --red-deep: #8C1424;
  --yellow: #F2C230;
  --mint: #3BE8B0;
  --muted: #A8BDB4;
  --deep: #08110E;
  --on-paper: #1B2B26;

  --line: rgba(168, 189, 180, .22);
  --line-soft: rgba(168, 189, 180, .12);
  --line-strong: rgba(168, 189, 180, .4);

  /* 字体 */
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
  --font-hand: "Xingkai SC", "STKaiti", "KaiTi", "Kaiti SC", "楷体", cursive;

  /* 尺度 */
  --wrap: 1280px;
  --gutter: clamp(16px, 3.4vw, 40px);
  --radius: 3px;
  --header-h: 64px;
  --ease: cubic-bezier(.22, .7, .3, 1);
}

/* ---------- 中文排版基底 ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .01em;
  color: rgba(244, 241, 232, .9);
  background: var(--ink-900);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.1;
  color: var(--paper);
  text-wrap: balance;
}

p { text-wrap: pretty; }

::selection { background: var(--red); color: #fff; }

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  left: 14px;
  top: -80px;
  z-index: 300;
  display: inline-block;
  padding: 10px 18px;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  border-radius: 2px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 14px; }

/* ============================================================
   头部 — 紧凑命令栏
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(8, 17, 14, .97) 0%, rgba(12, 31, 26, .95) 100%);
  border-bottom: 1px solid var(--line);
  color: var(--paper);
}

.read-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(244, 241, 232, .07);
  z-index: 2;
  pointer-events: none;
}
.read-progress-bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--red) 0%, var(--yellow) 100%);
  transform-origin: left center;
}

.header-inner {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
}

/* 品牌牌面 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 6px 0;
  order: 1;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  background: var(--red);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.16; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: -.01em;
  color: var(--paper);
}
.brand-line {
  font-size: 10.5px;
  letter-spacing: .06em;
  color: var(--muted);
}

/* 版块索引提示 */
.header-index {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 4px 9px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 2px;
  white-space: nowrap;
  background: rgba(30, 59, 51, .45);
}
.header-index-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px rgba(59, 232, 176, .8);
}

/* 导航 */
.site-nav { margin-left: auto; order: 4; }
.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(0px, .5vw, 8px);
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 9px 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--muted);
  transition: color .18s var(--ease);
}
.nav-num {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .04em;
  color: rgba(168, 189, 180, .55);
  transition: color .18s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 2px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .2s var(--ease);
}
.nav-link:hover,
.nav-link:focus-visible { color: var(--paper); }
.nav-link:hover::after,
.nav-link:focus-visible::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--paper); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-link[aria-current="page"] .nav-num { color: var(--yellow); }

/* 操作区 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  order: 3;
}
.utility-badge {
  padding: 4px 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 2px;
  white-space: nowrap;
}

/* 移动开关 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--paper);
  background: rgba(30, 59, 51, .7);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  order: 2;
}
.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 14px;
}
.nav-toggle-bars i {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: var(--paper);
  transition: transform .2s var(--ease), opacity .18s var(--ease);
}
.nav-toggle-text { line-height: 1; }

.site-header[data-open="true"] .nav-toggle {
  border-color: var(--mint);
  color: var(--mint);
}
.site-header[data-open="true"] .nav-toggle-bars i { background: var(--mint); }
.site-header[data-open="true"] .nav-toggle-bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle-bars i:nth-child(2) { opacity: 0; }
.site-header[data-open="true"] .nav-toggle-bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ============================================================
   页脚 — 档案夹分层
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 96px);
  background: var(--deep);
  border-top: 1px solid rgba(59, 232, 176, .16);
  color: var(--paper);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red) 0%, var(--yellow) 42%, rgba(59, 232, 176, 0) 100%);
  opacity: .9;
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(24px, 4vw, 36px);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 42ch;
}
.brand--footer { padding: 0; }
.brand--footer .brand-mark { background: var(--red-deep); }
.footer-brand-line {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.5;
  letter-spacing: .01em;
  color: var(--paper);
}
.footer-contact-line {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.95;
  letter-spacing: .02em;
  color: var(--muted);
}
.footer-contact-note {
  font-family: var(--font-hand);
  font-size: 12.5px;
  letter-spacing: .02em;
  color: rgba(242, 194, 48, .85);
}

.footer-col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--muted);
}
.footer-col-title::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px rgba(215, 38, 61, .7);
}
.footer-list { display: flex; flex-direction: column; gap: 1px; }
.footer-link {
  display: inline-block;
  padding: 6px 0;
  font-size: 13.5px;
  color: rgba(244, 241, 232, .78);
  transition: color .18s var(--ease), transform .18s var(--ease);
}
.footer-link:hover,
.footer-link:focus-visible {
  color: var(--mint);
  transform: translateX(3px);
}
.footer-link[aria-current="page"] { color: var(--paper); box-shadow: inset 0 -1px 0 var(--red); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px 24px;
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  line-height: 1.8;
  color: rgba(168, 189, 180, .78);
}
.footer-legal {
  font-family: var(--font-mono);
  letter-spacing: .02em;
  font-size: 11.5px;
}
.footer-meta {
  font-family: var(--font-mono);
  letter-spacing: .06em;
  font-size: 11.5px;
  color: rgba(168, 189, 180, .6);
}

/* 右下角固定入口 */
.float-stack {
  position: fixed;
  right: clamp(10px, 2vw, 22px);
  bottom: clamp(14px, 3vh, 28px);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.float-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--muted);
  background: rgba(12, 31, 26, .88);
  border: 1px solid rgba(59, 232, 176, .28);
  border-radius: 2px;
  transition: color .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}
.float-link:hover,
.float-link:focus-visible {
  color: var(--mint);
  border-color: var(--mint);
  background: rgba(20, 48, 42, .95);
}
.float-link-top {
  width: 38px;
  height: 38px;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 15px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.float-link-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

/* ============================================================
   通用组件
   ============================================================ */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-narrow { max-width: 820px; }

#main-content { display: block; outline: none; }

.section { padding-block: clamp(36px, 6.5vw, 84px); }

.band {
  position: relative;
  background: var(--ink-800);
  border-block: 1px solid var(--line);
}

.on-paper { background: var(--paper); color: var(--on-paper); }
.on-paper h1, .on-paper h2, .on-paper h3 { color: #10201B; }

.link-mint {
  color: var(--mint);
  border-bottom: 1px solid rgba(59, 232, 176, .45);
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.link-mint:hover, .link-mint:focus-visible { color: var(--paper); border-color: var(--paper); }

/* 小节编号标签 */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--muted);
}
.section-label b { color: var(--yellow); font-weight: 700; }
.section-label::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--red);
}

/* 面包屑 */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-block: 14px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--muted);
}
.crumbs a { color: var(--muted); transition: color .18s var(--ease); }
.crumbs a:hover, .crumbs a:focus-visible { color: var(--mint); }
.crumb-sep { color: rgba(168, 189, 180, .38); }
.crumbs [aria-current="page"] { color: var(--paper); }

/* 正文 */
.prose {
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(244, 241, 232, .86);
}
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: clamp(20px, 2.6vw, 27px); margin-top: 1.9em; }
.prose h3 { font-size: 1.08rem; margin-top: 1.5em; color: var(--paper); }
.prose ul, .prose ol { display: flex; flex-direction: column; gap: .5em; }
.prose li { position: relative; padding-left: 18px; }
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .8em;
  width: 7px;
  height: 2px;
  background: var(--red);
}
.on-paper .prose { color: #2C3D37; }
.on-paper .prose h3 { color: #10201B; }

/* 网格 */
.grid { display: grid; gap: clamp(14px, 2.2vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.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-12 { grid-column: span 12; }

/* 卡片 */
.card {
  padding: clamp(16px, 2.4vw, 26px);
  background: var(--ink-800);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.card-glass {
  background: var(--glass);
  border-color: rgba(59, 232, 176, .18);
}
.card-paper {
  background: var(--paper);
  color: var(--on-paper);
  border: 1px solid rgba(12, 31, 26, .14);
}
.card-paper h2, .card-paper h3 { color: #10201B; }
.card-sticker {
  background: rgba(30, 59, 51, .92);
  border: 1px solid rgba(242, 194, 48, .42);
  border-radius: 2px;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, .38);
  transform: rotate(-.6deg);
}

/* 标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  color: var(--muted);
  background: rgba(30, 59, 51, .7);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  white-space: nowrap;
}
.tag-red {
  background: rgba(215, 38, 61, .9);
  border-color: transparent;
  color: #fff;
  font-weight: 700;
}
.tag-yellow {
  background: var(--yellow);
  border-color: transparent;
  color: #2A2209;
  font-weight: 700;
}
.tag-mint {
  background: rgba(59, 232, 176, .14);
  border-color: rgba(59, 232, 176, .42);
  color: var(--mint);
}
.tag-hand {
  font-family: var(--font-hand);
  font-size: 13px;
  letter-spacing: .02em;
  padding: 3px 10px;
  background: var(--yellow);
  border: 0;
  color: #2A2209;
  transform: rotate(-1.4deg);
  box-shadow: 0 2px 0 rgba(0, 0, 0, .28);
}

/* 图片容器基础规则（页面阶段放置图片占位） */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #14302A 0%, #0A1A16 100%);
}
.media > img,
.media > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--empty {
  background-image:
    repeating-linear-gradient(135deg, rgba(59, 232, 176, .07) 0 2px, transparent 2px 11px),
    linear-gradient(160deg, #14302A 0%, #0A1A16 100%);
}
.media--empty::before {
  content: "看台影像 · 边线 / 座椅 / 裁判牌 / 战术板局部";
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .06em;
  color: rgba(168, 189, 180, .55);
}
.media--shade::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 17, 14, 0) 46%, rgba(8, 17, 14, .78) 100%);
}
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-3x4 { aspect-ratio: 3 / 4; }
.ratio-1x1 { aspect-ratio: 1 / 1; }
.media-caption {
  display: block;
  margin-top: 8px;
  font-family: var(--font-hand);
  font-size: 12.5px;
  letter-spacing: .02em;
  color: var(--muted);
}

/* 数据 */
.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  color: var(--mint);
}
.num-lg {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1;
  letter-spacing: .01em;
  color: var(--paper);
}
.num-cap {
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  color: var(--muted);
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 18px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .02em;
  border: 1px solid transparent;
  border-radius: 2px;
  white-space: nowrap;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 8px 13px; font-size: 12.5px; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover,
.btn-primary:focus-visible { background: var(--red-deep); color: #fff; }
.btn-ghost {
  background: rgba(30, 59, 51, .55);
  border-color: var(--line-strong);
  color: var(--paper);
}
.btn-ghost:hover,
.btn-ghost:focus-visible { border-color: var(--mint); color: var(--mint); }
.btn-tint { background: var(--mint); color: #062018; font-weight: 800; }
.btn-tint:hover,
.btn-tint:focus-visible { background: #2AD2A0; color: #062018; }

/* 章节目录 */
.toc { display: flex; flex-direction: column; gap: 1px; }
.toc-link {
  position: relative;
  display: block;
  padding: 7px 10px 7px 14px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  transition: color .18s var(--ease);
}
.toc-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 15px;
  background: var(--red);
  transform: translateY(-50%) scaleY(0);
  transition: transform .18s var(--ease);
}
.toc-link:hover,
.toc-link:focus-visible { color: var(--paper); }
.toc-link[aria-current="true"] { color: var(--mint); }
.toc-link[aria-current="true"]::before { transform: translateY(-50%) scaleY(1); }

/* 显现（仅在 JS 标记 has-reveal 时生效） */
html.has-reveal [data-reveal] {
  opacity: 0;
  transform: translate3d(-14px, 0, 0);
}
html.has-reveal [data-reveal="up"] { transform: translate3d(0, 16px, 0); }
html.has-reveal [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity .5s var(--ease), transform .55s var(--ease);
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1159px) {
  .header-index { display: none; }
  .utility-badge { display: none; }
  .nav-toggle { display: inline-flex; margin-left: auto; }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    background: rgba(11, 28, 23, .985);
    border-top: 1px solid rgba(59, 232, 176, .2);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 26px 52px rgba(0, 0, 0, .6);
    transition: max-height .28s var(--ease), opacity .2s var(--ease);
  }
  .site-header[data-open="true"] .site-nav {
    max-height: min(72vh, 560px);
    opacity: 1;
    overflow-y: auto;
    pointer-events: auto;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px var(--gutter) 18px;
  }
  .nav-item { border-bottom: 1px solid var(--line-soft); }
  .nav-item:last-child { border-bottom: 0; }
  .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 14px 4px;
    font-size: 15px;
    border-left: 3px solid transparent;
  }
  .nav-link::after { display: none; }
  .nav-link[aria-current="page"] {
    color: var(--paper);
    border-left-color: var(--red);
    padding-left: 11px;
  }
  .nav-num { font-size: 10.5px; }
}

@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .span-4, .span-5, .span-6, .span-7 { grid-column: span 12; }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  :root { --header-h: 58px; }
  .brand-line { display: none; }
  .brand-mark { width: 30px; height: 30px; font-size: 11px; }
  .brand-name { font-size: 14px; }
  .nav-toggle { padding: 7px 9px; }
  .nav-toggle-text { display: none; }
  .float-link { font-size: 11px; padding: 8px 10px; }
  .float-link-top { width: 34px; height: 34px; }

  .footer-grid { gap: 22px 16px; }
  .footer-col:last-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
}

/* ============================================================
   减少动效
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  html.has-reveal [data-reveal],
  html.has-reveal [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }
  .float-link-top {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
  .footer-link:hover,
  .footer-link:focus-visible { transform: none; }
}
