/* =========================================================
   NG体育 · 共享样式表 /assets/site.css
   设计内核：深夜赛场指挥台 —— 深墨绿底、荧光青数据线、
   橙红比分点、等宽索引 + 窄体大标题的战术板阅读节奏。
   ========================================================= */

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

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

body, h1, h2, h3, h4, h5, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #0B1F1A;
  --ink-deep: #081713;
  --panel: #123129;
  --panel-2: #16382F;
  --glass: rgba(18, 49, 41, .62);
  --cyan: #2FE6C8;
  --cyan-soft: #7FF3DE;
  --ember: #FF5A2B;
  --clay: #B4714E;
  --moss: #5A7A5F;
  --stone: #2A3336;
  --paper: #F3EFE6;
  --white: #FFFFFF;

  --hairline: rgba(127, 243, 222, .16);
  --hairline-strong: rgba(127, 243, 222, .40);
  --text-muted: rgba(243, 239, 230, .68);
  --text-faint: rgba(243, 239, 230, .48);

  --font-display: "Barlow Condensed", "HarmonyOS Sans SC", "Noto Sans SC", system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "HarmonyOS Sans SC", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1180px;
  --gutter: clamp(16px, 4.5vw, 36px);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow-card: 0 20px 44px -28px rgba(0, 0, 0, .85);
  --header-h: 112px;
}

/* ---------- 3. 基础排版 ---------- */
body {
  background-color: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

/* 球门网网格：固定在最底层，永不遮挡内容 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(47, 230, 200, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 230, 200, .05) 1px, transparent 1px);
  background-size: 88px 88px;
  background-position: center top;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
  color: var(--paper);
}

h1 { font-size: clamp(28px, 5.2vw, 46px); }
h2 { font-size: clamp(22px, 3.6vw, 32px); }
h3 { font-size: clamp(17px, 2.2vw, 21px); }

p { max-width: 72ch; }

strong { color: var(--paper); font-weight: 700; }

::selection { background: rgba(47, 230, 200, .28); color: var(--white); }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.num,
[data-number] {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: -.01em;
}

#main-content { display: block; scroll-margin-top: 132px; }

/* ---------- 4. 跳至正文 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--cyan);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  border-radius: var(--radius-pill);
  transform: translateY(-160%);
  transition: transform .18s var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); }

/* ---------- 5. 头部：居中刊头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(11, 31, 26, .94);
  border-bottom: 1px solid var(--hairline);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.read-progress {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(127, 243, 222, .12);
  overflow: hidden;
}
.read-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(47, 230, 200, .7);
  transition: width .12s linear;
}

.header-inner {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* 刊头：品牌居中、主张居中、栏目在其下展开 */
.masthead {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 0 6px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}
.brand-mark {
  align-self: center;
  padding: 3px 7px;
  background: var(--cyan);
  color: var(--ink-deep);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  border-radius: 4px;
}
.brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 3.4vw, 32px);
  letter-spacing: -.01em;
  color: var(--white);
}
.brand:hover .brand-text { color: var(--cyan-soft); }

.masthead-motto {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .26em;
  color: rgba(127, 243, 222, .62);
  max-width: none;
}

/* 移动导航按钮：桌面隐藏 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  background: transparent;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-pill);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.nav-toggle:hover { border-color: var(--cyan); color: var(--cyan); }
.nav-toggle-icon {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 10px;
}
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform .2s var(--ease);
}
.nav-toggle-icon::before { top: 0; }
.nav-toggle-icon::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after { transform: translateY(-4.5px) rotate(-45deg); }

/* 刊头下沿：四个核心栏目 + 右侧次级入口 */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3.4vw, 44px);
  margin-top: 10px;
  padding: 8px 0 12px;
  border-top: 1px solid var(--hairline);
}

.nav-core {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2.6vw, 32px);
}
.nav-core a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 8px 2px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--paper);
}
.nav-index {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--moss);
  transition: color .2s var(--ease);
}
.nav-core a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s var(--ease);
}
.nav-core a:hover::after,
.nav-core a:focus-visible::after { transform: scaleX(1); }
.nav-core a:hover .nav-index { color: var(--cyan-soft); }
.nav-core a[aria-current="page"] { color: var(--cyan); }
.nav-core a[aria-current="page"] .nav-index { color: var(--cyan); }
.nav-core a[aria-current="page"]::after { transform: scaleX(1); }

.nav-side {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-left: clamp(12px, 3vw, 32px);
  border-left: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
}
.nav-side a {
  display: inline-block;
  padding: 6px 0;
  color: var(--text-muted);
  transition: color .2s var(--ease);
}
.nav-side a:hover { color: var(--cyan-soft); }
.nav-side a[aria-current="page"] { color: var(--cyan); }

/* ---------- 6. 布局容器与章节 ---------- */
.container {
  position: relative;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 760px; }

.section { position: relative; padding: clamp(44px, 7vw, 84px) 0; }
.section--tight { padding-block: clamp(26px, 4vw, 46px); }
.section--panel {
  background: var(--panel);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--cyan);
  opacity: .7;
}
.section-title { margin-top: 10px; }
.section-lead {
  margin-top: 12px;
  max-width: 64ch;
  color: var(--text-muted);
  font-size: 15px;
}

/* 章节：编号 + 色带，纵向叙事长卷的基本单位 */
.chapter { position: relative; }
.chapter + .chapter { margin-top: clamp(34px, 6vw, 72px); }
.chapter-band {
  height: 3px;
  width: 100%;
  background: var(--moss);
  border-radius: 2px;
  margin-bottom: 16px;
  transition: background-color .3s var(--ease);
}
.chapter-marker {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--moss);
  transition: color .3s var(--ease);
}
.chapter-marker::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hairline);
}
.chapter-index { color: var(--cyan-soft); }
.chapter-title { margin-top: 12px; }
.chapter[data-chapter].is-active .chapter-band { background: var(--cyan); }
.chapter[data-chapter].is-active .chapter-marker { color: var(--cyan); }

/* ---------- 7. 网格 ---------- */
.grid { display: grid; gap: clamp(14px, 2vw, 20px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--asym { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.grid--asym-wide { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }

/* ---------- 8. 按钮与标签 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s var(--ease),
              border-color .2s var(--ease), color .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); border-color: var(--cyan); color: var(--white); }
.btn--primary { background: var(--cyan); border-color: var(--cyan); color: var(--ink-deep); }
.btn--primary:hover { background: var(--cyan-soft); border-color: var(--cyan-soft); color: var(--ink-deep); }
.btn--ghost { border-color: rgba(47, 230, 200, .45); color: var(--cyan-soft); }
.btn--quiet { border-color: transparent; color: var(--text-muted); padding-inline: 12px; }
.btn--score { border-color: rgba(255, 90, 43, .6); color: var(--ember); }
.btn--score:hover { border-color: var(--ember); color: var(--ember); }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 4px 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  background: var(--glass);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--text-muted);
  white-space: nowrap;
  scroll-snap-align: start;
  transition: border-color .2s var(--ease), color .2s var(--ease), background-color .2s var(--ease);
}
.chip:hover { border-color: var(--hairline-strong); color: var(--paper); }
.chip--active {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(47, 230, 200, .08);
}

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--moss);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.tag--live { background: var(--ember); color: var(--white); }
.tag--index { background: rgba(127, 243, 222, .14); color: var(--cyan-soft); }

/* ---------- 9. 卡片 ---------- */
.card {
  position: relative;
  padding: clamp(16px, 2.4vw, 24px);
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform .22s var(--ease), border-color .22s var(--ease), background-color .22s var(--ease);
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--hairline-strong);
  background: var(--panel-2);
}
.card--glass {
  background: var(--glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--moss);
}
.card-title { font-size: 18px; }
.card-text { margin-top: 8px; color: var(--text-muted); font-size: 14px; }
.card-score {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1;
  color: var(--white);
  letter-spacing: -.02em;
}
.card-score--change { color: var(--ember); }

/* ---------- 10. 标签页 / 折叠面板 ---------- */
.tablist {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  border-bottom: 1px solid var(--hairline);
  scrollbar-width: none;
}
.tablist::-webkit-scrollbar { display: none; }
.tab {
  min-height: 44px;
  padding: 8px 16px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  white-space: nowrap;
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.tab:hover { color: var(--paper); }
.tab[aria-selected="true"] { color: var(--cyan); border-bottom-color: var(--cyan); }
.tabpanel { padding-top: 20px; }
.tabpanel[hidden] { display: none; }

.fold {
  padding: 0 16px;
  background: var(--glass);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}
.fold + .fold { margin-top: 10px; }
.fold summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  color: var(--paper);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.fold summary::-webkit-details-marker { display: none; }
.fold summary::before {
  content: "+";
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--cyan);
}
.fold[open] summary::before { content: "–"; }
.fold-body {
  padding-bottom: 16px;
  max-width: 62ch;
  color: var(--text-muted);
  font-size: 14px;
}

/* ---------- 11. 图片容器基础规则 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}
.media-frame > img,
.media-frame > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--net::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(11, 31, 26, .32) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 31, 26, .32) 1px, transparent 1px);
  background-size: 28px 28px;
}
.media-frame-tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 10px;
  background: rgba(8, 23, 19, .78);
  color: var(--cyan-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  border-radius: 4px;
}
.media-caption {
  margin-top: 10px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
}

/* ---------- 12. 面包屑 / 正文 ---------- */
.breadcrumbs {
  padding-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--text-faint);
}
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumbs li::after { content: "/"; margin-left: 8px; color: var(--moss); }
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--cyan-soft); }
.breadcrumbs [aria-current="page"] { color: var(--cyan); }

.prose {
  max-width: 68ch;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.75;
}
.prose--narrow { max-width: 62ch; }
.prose h2, .prose h3 { margin-top: 1.8em; color: var(--paper); }
.prose p { margin-top: 1em; }
.prose ul, .prose ol { margin-top: 1em; padding-left: 1.2em; list-style: disc; }
.prose li { margin-top: 6px; }
.prose li::marker { color: var(--cyan); }
.prose a { color: var(--cyan-soft); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 13. 滚动显现与章节高亮 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 14. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 96px);
  background: var(--ink-deep);
  border-top: 1px solid var(--hairline);
  color: var(--paper);
}
.footer-inner {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(34px, 5vw, 56px) var(--gutter) 28px;
}

.footer-tier {
  padding-bottom: 26px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--hairline);
}
.footer-tier:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.footer-tier--nav {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(0, 1.7fr);
  gap: 28px;
}
.footer-brand-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -.01em;
  color: var(--white);
}
.footer-tagline {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--moss);
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 28px;
}
.footer-links { display: grid; gap: 10px; }
.footer-links a {
  display: inline-block;
  padding: 4px 0;
  color: var(--text-muted);
  font-size: 14px;
  transition: color .2s var(--ease);
}
.footer-links a:hover { color: var(--cyan-soft); }

.footer-tier-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 16px;
}
.contact-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.contact-list { display: grid; gap: 12px; }
.contact-item {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px 12px;
  font-size: 14px;
}
.contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--moss);
}
.contact-value {
  font-family: var(--font-mono);
  color: var(--paper);
  word-break: break-word;
}
.contact-value--text {
  font-family: var(--font-body);
  color: var(--text-muted);
  line-height: 1.6;
}
.copy-btn {
  min-height: 32px;
  padding: 4px 12px;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.copy-btn:hover { border-color: var(--cyan); color: var(--cyan); }

.footer-note {
  padding-left: 14px;
  border-left: 2px solid var(--moss);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
  max-width: 46ch;
}

.footer-tier--legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--text-faint);
}
.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
}
.legal-links a {
  display: inline-block;
  padding: 4px 0;
  color: var(--text-faint);
  transition: color .2s var(--ease);
}
.legal-links a:hover { color: var(--cyan-soft); }

/* ---------- 15. 响应式：平板 ---------- */
@media (max-width: 960px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--asym,
  .grid--asym-wide { grid-template-columns: 1fr; }
  .footer-tier--nav { grid-template-columns: 1fr; gap: 20px; }
  .contact-wrap { grid-template-columns: 1fr; }
}

/* ---------- 16. 响应式：手机（含 [data-open] 状态） ---------- */
@media (max-width: 880px) {
  .masthead {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0 8px;
  }
  .brand-text { font-size: 21px; }
  .brand-mark { font-size: 10px; }
  .masthead-motto { display: none; }
  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: block;
    margin-top: 0;
    padding: 0 0 4px;
    border-top: 1px solid var(--hairline);
  }
  .nav-core {
    gap: 8px;
    overflow-x: auto;
    padding: 10px 0 12px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .nav-core::-webkit-scrollbar { display: none; }
  .nav-core li { flex: 0 0 auto; }
  .nav-core a {
    align-items: center;
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-pill);
    background: var(--glass);
    font-size: 14px;
    scroll-snap-align: start;
  }
  .nav-core a::after { display: none; }
  .nav-core a[aria-current="page"] {
    border-color: var(--cyan);
    background: rgba(47, 230, 200, .1);
  }

  .nav-side {
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding-left: 0;
    padding-bottom: 0;
    border-left: 0;
    transition: max-height .28s var(--ease), opacity .2s linear, padding-bottom .28s var(--ease);
  }
  .site-nav[data-open] .nav-side {
    max-height: 280px;
    opacity: 1;
    padding-bottom: 12px;
  }
  .nav-side li + li { border-top: 1px solid var(--hairline); }
  .nav-side a {
    display: block;
    min-height: 44px;
    padding: 12px 4px;
    font-size: 13px;
    color: var(--paper);
  }

  :root { --header-h: 118px; }
  #main-content { scroll-margin-top: 128px; }
}

@media (max-width: 640px) {
  .grid--2,
  .grid--3 { grid-template-columns: 1fr; }
  .prose { font-size: 14.5px; }
  .contact-item { grid-template-columns: 1fr; gap: 2px; }
  .contact-item .copy-btn { justify-self: start; margin-top: 6px; }
  .footer-tier--legal { flex-direction: column; align-items: flex-start; }
}

/* ---------- 17. 无障碍：减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .btn:hover,
  .card:hover { transform: none; }
}
