/* ==========================================================================
   趣体育赛场 · 共享样式表 /assets/site.css
   赛场导视系统：号码布标题 + 计分牌数据 + 跑道分道线
   ========================================================================== */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 122px;
}
body {
  margin: 0;
  background: var(--chalk);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--green-700); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--orange-600); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--yellow-500); color: var(--ink); }

/* ---------- 2. 变量 ---------- */
:root {
  --green-deep: #0B6B3A;
  --green-darker: #08542E;
  --green-bright: #149E52;
  --orange: #F26A2E;
  --orange-deep: #DE571D;
  --orange-soft: #FFE7D8;
  --blue-deep: #0B2E4F;
  --blue-soft: #DCEFFA;
  --yellow: #FFC72C;
  --chalk: #FAFBF7;
  --ink: #14201A;
  --ink-soft: #45544C;
  --glass: rgba(255, 255, 255, 0.72);
  --line: rgba(20, 32, 26, 0.14);
  --line-strong: rgba(20, 32, 26, 0.32);
  --shell: 1220px;
  --gutter: 24px;
  --radius-s: 8px;
  --radius: 14px;
  --radius-l: 22px;
  --font-display: "Barlow Condensed", "Oswald", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", "Source Han Serif SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "Roboto Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --shadow-1: 0 10px 30px rgba(11, 46, 79, 0.12);
  --shadow-2: 0 20px 48px rgba(11, 46, 79, 0.2);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. 布局容器 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.grid { display: grid; gap: var(--gutter); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- 4. 排版组件 ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 5.4vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  font-style: italic;
  color: var(--ink);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--green-deep);
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--orange);
}
.lede {
  font-family: var(--font-serif);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.7;
  color: var(--ink-soft);
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 24px;
  margin-bottom: 24px;
}
.prose { max-width: 70ch; font-size: 17px; line-height: 1.8; color: var(--ink); }
.prose > * + * { margin-top: 1em; }
.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.15;
  margin-top: 1.7em;
  font-style: italic;
  letter-spacing: -0.01em;
}
.prose h3 {
  font-family: var(--font-display);
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.2;
  margin-top: 1.4em;
  font-style: italic;
}
.prose ul { display: grid; gap: 8px; }
.prose li { position: relative; padding-left: 24px; }
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 11px;
  height: 3px;
  border-radius: 2px;
  background: var(--green-bright);
}
.prose a { color: var(--green-deep); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 5. 按钮与标签 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
              background-color 0.18s var(--ease), color 0.18s var(--ease),
              border-color 0.18s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn--primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 5px 0 var(--green-darker);
}
.btn--primary:hover { background: var(--orange-deep); transform: translateY(-2px); box-shadow: 0 7px 0 var(--green-darker); }
.btn--primary:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--green-darker); }
.btn--compact { padding: 9px 16px; font-size: 15px; }
.btn--ghost {
  background: transparent;
  border-color: var(--green-deep);
  color: var(--green-deep);
  box-shadow: none;
}
.btn--ghost:hover { background: rgba(20, 158, 82, 0.1); transform: translateY(-2px); box-shadow: none; }
.btn--onDark {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.3);
}
.btn--onDark:hover { background: #FFD65C; transform: translateY(-2px); box-shadow: 0 7px 0 rgba(0, 0, 0, 0.3); }

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--orange-soft);
  color: var(--orange-deep);
}
.tag--dark {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #CFE2F0;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.16s var(--ease), border-color 0.16s var(--ease), color 0.16s var(--ease);
}
.chip:hover { border-color: var(--orange); color: var(--orange-deep); }
.chip[aria-pressed="true"] {
  background: var(--blue-soft);
  border-color: var(--blue-deep);
  color: var(--blue-deep);
}

/* ---------- 6. 面板与计分牌 ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 1px 0 rgba(20, 32, 26, 0.04);
}
.panel {
  padding: 24px;
  border-radius: var(--radius-l);
  background: var(--orange-soft);
}
.panel--glass {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow-1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.scoreboard {
  display: grid;
  gap: 12px;
  padding: 18px 20px;
  border-radius: var(--radius);
  border-left: 5px solid var(--orange);
  background: var(--blue-deep);
  color: #EAF4FB;
  font-family: var(--font-mono);
}
.stat { display: grid; gap: 2px; }
.stat__num {
  font-family: var(--font-mono);
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--yellow);
}
.stat__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #8FB8D2;
}

/* ---------- 7. 图片容器基础规则 ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--blue-soft), var(--orange-soft));
  box-shadow: var(--shadow-1);
}
.media__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-soft), var(--orange-soft));
}
.media--wide .media__frame { aspect-ratio: 21 / 9; }
.media--tall .media__frame { aspect-ratio: 4 / 5; }
.media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px 18px;
  color: #fff;
  background: linear-gradient(0deg, rgba(11, 46, 79, 0.88), rgba(11, 46, 79, 0));
}
.media__caption {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.82);
}

/* ---------- 8. 目录 / 面包屑 / 进度 / 显现 / 返回顶部 ---------- */
.toc { position: sticky; top: 118px; font-size: 14px; }
.toc__list { display: grid; gap: 4px; padding-left: 14px; border-left: 2px solid var(--line); }
.toc__link {
  display: block;
  padding: 7px 10px;
  border-radius: var(--radius-s);
  color: var(--ink-soft);
  text-decoration: none;
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease);
}
.toc__link:hover { background: var(--orange-soft); color: var(--ink); text-decoration: none; }
.toc__link[aria-current="true"] {
  background: rgba(20, 158, 82, 0.13);
  box-shadow: inset 3px 0 0 var(--green-bright);
  color: var(--green-darker);
  font-weight: 700;
}
.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.crumb a { color: var(--green-deep); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.progress-rail {
  height: 10px;
  border-radius: 999px;
  background: rgba(11, 46, 79, 0.14);
  overflow: hidden;
}
.progress-rail__fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green-bright), var(--orange));
  transition: width 0.3s var(--ease);
}
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.backtop {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border: none;
  border-radius: 999px;
  background: var(--green-deep);
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: var(--shadow-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}
.backtop[data-shown="true"] { opacity: 1; visibility: visible; transform: none; }
.backtop:hover { background: var(--green-bright); }

/* ---------- 9. 跳转链接 ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: 0 0 10px 10px;
  background: var(--green-deep);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.18s var(--ease);
}
.skip-link:focus { top: 0; text-decoration: none; }

/* ---------- 10. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--chalk);
}
.status-strip {
  background: var(--green-deep);
  color: #E7F6EC;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.status-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 18px;
  min-height: 30px;
  padding-block: 4px;
}
.status-strip__note { display: flex; align-items: center; gap: 8px; }
.status-strip__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 199, 44, 0.25);
}
.status-strip__meta { display: flex; align-items: center; gap: 8px; color: #C4E7D2; }
.status-strip__pin {
  padding: 1px 7px;
  border-radius: 3px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.08em;
}
.command-bar {
  position: relative;
  background: rgba(250, 251, 247, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s var(--ease);
}
.site-header[data-scrolled="true"] .command-bar { box-shadow: 0 12px 30px rgba(11, 46, 79, 0.12); }
.command-bar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(20, 32, 26, 0.08);
}
.command-bar__progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  z-index: 2;
  background: linear-gradient(90deg, var(--green-bright), var(--orange), var(--yellow));
  transition: width 0.12s linear;
}
.command-bar__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 70px;
  padding-block: 10px;
}

/* 品牌 */
.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand__bib {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--green-deep);
  color: #fff;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  transform: rotate(-2deg);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.38), 0 6px 14px rgba(11, 107, 58, 0.28);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.brand__tagline {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--green-deep);
}

/* 导航 */
.site-nav { flex: 1 1 auto; display: flex; justify-content: center; min-width: 0; }
.site-nav__list { display: flex; align-items: center; gap: 2px; }
.site-nav__item { flex: 0 0 auto; }
.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease);
}
.site-nav__link:hover { background: var(--orange-soft); color: var(--green-darker); text-decoration: none; }
.site-nav__index {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--orange);
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 3px;
  border-radius: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s var(--ease);
}
.site-nav__link:hover::after,
.site-nav__link[aria-current="page"]::after { transform: scaleX(1); }
.site-nav__link[aria-current="page"] {
  background: rgba(20, 158, 82, 0.1);
  color: var(--green-darker);
}
.site-nav__foot { display: none; }

/* 命令栏动作区 */
.command-bar__actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; margin-left: auto; }
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--green-darker);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.16s var(--ease), background-color 0.16s var(--ease);
}
.nav-toggle:hover { border-color: var(--orange); background: var(--orange-soft); }
.nav-toggle__bars { display: grid; gap: 3px; width: 18px; }
.nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--green-deep);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.site-header[data-open="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.site-header[data-open="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.nav-toggle__label { line-height: 1; }

/* ---------- 11. 页脚 ---------- */
.site-footer {
  position: relative;
  background: var(--blue-deep);
  color: #DDEBF5;
  font-size: 15px;
}
.site-footer__rail {
  height: 9px;
  background: repeating-linear-gradient(
    90deg,
    var(--orange) 0 24px,
    var(--green-bright) 24px 48px,
    var(--yellow) 48px 58px
  );
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 0.9fr 1.25fr;
  gap: 34px 28px;
  padding-block: 56px 42px;
}
.site-footer__col { min-width: 0; }
.site-footer__title {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--yellow);
  text-transform: uppercase;
}
.site-footer__links { display: grid; gap: 10px; }
.site-footer__link {
  display: inline-block;
  color: #CFE2F0;
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.site-footer__link:hover { color: #fff; border-bottom-color: var(--orange); text-decoration: none; }
.site-footer__link--inline { border-bottom-color: rgba(255, 255, 255, 0.28); }
.site-footer__lead {
  margin-top: 18px;
  max-width: 34ch;
  color: #A9C4D8;
  font-size: 14.5px;
  line-height: 1.7;
}
.site-footer__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.brand--onDark .brand__bib {
  background: var(--orange);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.42), 0 6px 14px rgba(0, 0, 0, 0.32);
}
.brand--onDark .brand__name { color: #fff; }
.brand--onDark .brand__tagline { color: #8FB8D2; }

.footer-contact { display: grid; gap: 12px; }
.footer-contact__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}
.footer-contact__label {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #7FA8C4;
}
.footer-contact__value {
  min-width: 0;
  color: #EAF4FB;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  word-break: break-word;
}
.copy-btn {
  padding: 3px 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  background: transparent;
  color: #CFE2F0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.copy-btn:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.copy-btn[data-copied="true"] {
  background: var(--green-bright);
  border-color: var(--green-bright);
  color: #fff;
}
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 20px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 13px;
  color: #8FB8D2;
}
.site-footer__icp { font-family: var(--font-mono); letter-spacing: 0.04em; }
.site-footer__legal { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.site-footer__note { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; }

/* ---------- 12. 响应式 ---------- */
@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .command-bar__inner { gap: 12px; min-height: 64px; }
  .brand__tagline { display: none; }
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    padding: 12px var(--gutter) 22px;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    background: rgba(250, 251, 247, 0.99);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 48px rgba(11, 46, 79, 0.2);
  }
  .site-header[data-open="true"] .site-nav { display: flex; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .site-nav__item:first-child .site-nav__link { border-top: 1px solid var(--line); }
  .site-nav__link {
    justify-content: flex-start;
    padding: 15px 8px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-size: 17px;
  }
  .site-nav__link::after { display: none; }
  .site-nav__link[aria-current="page"] {
    padding-left: 16px;
    background: linear-gradient(90deg, rgba(20, 158, 82, 0.14), rgba(20, 158, 82, 0));
    box-shadow: inset 4px 0 0 var(--green-bright);
  }
  .site-nav__index { font-size: 12px; }
  .site-nav__foot {
    display: block;
    margin-top: 16px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    line-height: 1.6;
    letter-spacing: 0.08em;
    color: var(--ink-soft);
  }
  .site-footer__top { grid-template-columns: 1fr 1fr; gap: 30px 24px; padding-block: 44px 34px; }
  .site-footer__col--brand { grid-column: 1 / -1; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toc { position: static; }
}

@media (max-width: 900px) {
  .grid--2, .grid--3 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  html { scroll-padding-top: 104px; }
  body { font-size: 16px; }
  .status-strip { font-size: 10.5px; letter-spacing: 0.04em; }
  .status-strip__inner { padding-block: 5px; }
  .command-bar__inner { min-height: 60px; gap: 10px; }
  .brand__bib { width: 38px; height: 38px; border-radius: 9px; font-size: 20px; }
  .brand__name { font-size: 19px; }
  .btn--compact { display: none; }
  .site-footer__top { grid-template-columns: minmax(0, 1fr); padding-block: 36px 26px; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; padding-block: 18px 24px; }
  .site-footer__lead { max-width: none; }
  .backtop { right: 12px; bottom: 12px; padding: 10px 15px; font-size: 14px; }
}

/* ---------- 13. 动效偏好 ---------- */
@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;
  }
  .reveal { opacity: 1; transform: none; }
  .command-bar__progress { transition: none; }
}

/* ---------- 14. 打印 ---------- */
@media print {
  .site-header, .site-footer__rail, .backtop, .skip-link, .copy-btn { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .site-footer { background: #fff; color: #000; border-top: 1px solid #000; }
  .site-footer__title, .site-footer__link, .site-footer__lead,
  .footer-contact__value, .site-footer__note, .site-footer__icp { color: #000; }
}
