/* ============================================================
   球速体育CN · 共享样式表  /assets/site.css
   深场墨绿 / 球场绿 / 奶油纸 / 荧光黄绿 / 裁判红 / 黄牌黄
   ============================================================ */

/* ---------- 01. 基础重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

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

ul[class],
ol[class] {
  list-style: none;
  padding-left: 0;
}

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

a { color: inherit; }

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

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

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

/* ---------- 02. 设计变量 ---------- */
:root {
  --ink: #071812;
  --pitch: #0B3B2E;
  --paper: #F3EBD8;
  --chalk: #FAF7EE;
  --volt: #C8FF3D;
  --volt-soft: #D8FF74;
  --red: #E23D28;
  --yellow: #FFC53D;
  --brown: #2A1D12;
  --moss: #8FA79A;
  --board: #1A2B23;

  --line: rgba(250, 247, 238, .14);
  --line-strong: rgba(250, 247, 238, .30);
  --line-ink: rgba(42, 29, 18, .18);

  --header-h: 78px;
  --shell: 1280px;
  --radius: 3px;

  --font-display: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow-card: 0 24px 48px -36px rgba(0, 0, 0, .95);
  --shadow-paper: 0 22px 44px -32px rgba(7, 24, 18, .55);
}

/* ---------- 03. 页面基底与中文排版 ---------- */
body {
  padding-top: var(--header-h);
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 560px at 86% -6%, rgba(11, 59, 46, .92), transparent 72%),
    radial-gradient(760px 420px at 2% 104%, rgba(26, 43, 35, .85), transparent 70%),
    repeating-linear-gradient(96deg, rgba(200, 255, 61, .028) 0 1px, transparent 1px 184px);
  color: var(--chalk);
  font-family: var(--font-body);
  font-size: clamp(15px, .6rem + .5vw, 17px);
  line-height: 1.75;
  letter-spacing: .012em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.16;
  text-wrap: balance;
}

p { text-wrap: pretty; }

#main-content {
  scroll-margin-top: calc(var(--header-h) + 18px);
}

/* ---------- 04. 布局工具 ---------- */
.container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 56px);
}

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

.section--paper {
  background: var(--paper);
  color: var(--brown);
  border-block: 1px solid var(--line-ink);
}

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 34px);
}

.grid--7-5 { grid-template-columns: 7fr 5fr; }
.grid--8-4 { grid-template-columns: 8fr 4fr; }
.grid--5-7 { grid-template-columns: 5fr 7fr; }

.stack {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.6vw, 22px);
}

.rule {
  height: 1px;
  border: 0;
  background: var(--line);
  margin-block: clamp(18px, 2.4vw, 30px);
}

.section--paper .rule { background: var(--line-ink); }

.muted { color: var(--moss); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- 05. 文字组件 ---------- */
.prose {
  max-width: 36em;
  color: inherit;
}

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

.prose h2 {
  font-size: clamp(24px, 2.6vw, 34px);
  margin-top: 1.6em;
}

.prose h3 {
  font-size: clamp(19px, 1.8vw, 23px);
  margin-top: 1.4em;
}

.prose ul,
.prose ol {
  padding-left: 1.35em;
  list-style: disc;
}

.prose li + li { margin-top: .45em; }

.prose a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--volt);
}

.section--paper .prose a { border-bottom-color: var(--red); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--volt);
}

.section--paper .eyebrow { color: var(--red); }

.annotation {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  line-height: 1.6;
  color: var(--moss);
  text-transform: uppercase;
}

.annotation--vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: .34em;
}

.chapter-no {
  font-family: var(--font-mono);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 600;
  line-height: 1;
  color: rgba(200, 255, 61, .55);
  font-variant-numeric: tabular-nums;
}

.numeric {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

/* ---------- 06. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.2;
  text-decoration: none;
  background: transparent;
  color: inherit;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .2s var(--ease),
              box-shadow .2s var(--ease);
}

.btn--accent {
  background: var(--volt);
  border-color: var(--volt);
  color: #07180F;
  box-shadow: 0 10px 24px -18px rgba(200, 255, 61, .9);
}

.btn--accent:hover {
  background: var(--volt-soft);
  border-color: var(--volt-soft);
  transform: translateY(-1px);
  box-shadow: 0 16px 30px -16px rgba(200, 255, 61, .7);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--chalk);
}

.btn--ghost:hover {
  border-color: var(--volt);
  color: var(--volt);
  transform: translateY(-1px);
}

.btn--ink {
  background: var(--brown);
  border-color: var(--brown);
  color: var(--paper);
}

.btn--ink:hover {
  background: #3B2917;
  border-color: #3B2917;
  transform: translateY(-1px);
}

.btn--sm {
  padding: 8px 13px;
  font-size: 12.5px;
  letter-spacing: .06em;
}

/* ---------- 07. 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: -90px;
  left: 16px;
  z-index: 200;
  padding: 11px 20px;
  background: var(--volt);
  color: #07180F;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  text-decoration: none;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top .18s var(--ease);
}

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

/* ---------- 08. 头部外壳 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .25s var(--ease), border-color .25s var(--ease),
              box-shadow .25s var(--ease);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(7, 24, 18, .82), rgba(7, 24, 18, 0));
  opacity: 1;
  transition: opacity .25s var(--ease);
}

.site-header[data-scrolled="true"] {
  background-color: rgba(11, 59, 46, .97);
  border-bottom-color: var(--line);
  box-shadow: 0 18px 34px -26px rgba(0, 0, 0, .95);
}

.site-header[data-scrolled="true"]::before { opacity: 0; }

.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 2px;
  overflow: hidden;
  background: rgba(250, 247, 238, .07);
}

.header-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--volt), var(--yellow));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .12s linear;
}

.header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 34px);
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 56px);
  height: var(--header-h);
}

/* ---------- 09. 品牌字标 ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--chalk);
}

.brand__mark {
  position: relative;
  width: 30px;
  height: 24px;
  flex: 0 0 auto;
  background-image:
    linear-gradient(var(--volt), var(--volt)),
    linear-gradient(var(--volt), var(--volt)),
    linear-gradient(var(--red), var(--red));
  background-repeat: no-repeat;
  background-size: 17px 3px, 23px 3px, 12px 3px;
  background-position: 6px 2px, 0 10px, 10px 18px;
  transform: skewX(-18deg);
  transition: transform .25s var(--ease);
}

.brand:hover .brand__mark { transform: skewX(-18deg) translateX(2px); }

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}

.brand__name {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.35vw, 21px);
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--chalk);
}

.brand__cn {
  margin-left: 2px;
  font-family: var(--font-mono);
  font-size: .68em;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--volt);
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--moss);
}

/* ---------- 10. 主导航 ---------- */
.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.2vw, 22px);
  margin-left: auto;
}

.primary-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(2px, .8vw, 16px);
  flex-wrap: nowrap;
}

.primary-nav__item { display: flex; }

.primary-nav__link {
  position: relative;
  display: inline-block;
  padding: 9px 2px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--chalk);
  text-decoration: none;
  opacity: .78;
  transition: opacity .2s var(--ease), color .2s var(--ease);
}

.primary-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 3px;
  height: 2px;
  background: var(--volt);
  transform: skewX(-20deg);
  transition: right .22s var(--ease);
}

.primary-nav__link:hover,
.primary-nav__link:focus-visible {
  opacity: 1;
  color: var(--volt);
}

.primary-nav__link:hover::after,
.primary-nav__link:focus-visible::after { right: 0; }

.primary-nav__link[aria-current="page"] {
  opacity: 1;
  color: var(--volt);
}

.primary-nav__link[aria-current="page"]::after { right: 0; }

.nav-note {
  display: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.6;
  letter-spacing: .04em;
  color: var(--moss);
}

/* ---------- 11. 服务台耳 ---------- */
.nav-support {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-left: clamp(10px, 1.4vw, 20px);
  border-left: 1px solid var(--line);
  line-height: 1.2;
}

.nav-support__label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--red);
}

.nav-support__mail {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .01em;
  color: var(--moss);
  white-space: nowrap;
}

.header-cta {
  flex: 0 0 auto;
  padding: 10px 16px;
  font-size: 13px;
}

/* ---------- 12. 移动导航开关 ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  padding: 9px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(7, 24, 18, .45);
  color: var(--chalk);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: var(--volt);
  color: var(--volt);
}

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
}

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

.nav-toggle__bars span:nth-child(2) { width: 70%; }

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

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

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

.nav-toggle__text { line-height: 1; }

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

/* ---------- 13. 面板与标签 ---------- */
.board {
  position: relative;
  background: var(--board);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: clamp(18px, 2.4vw, 30px);
}

.board--paper {
  background: var(--paper);
  border-color: var(--line-ink);
  color: var(--brown);
  box-shadow: var(--shadow-paper);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.6;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag--red {
  color: #FF6A55;
  border-color: rgba(226, 61, 40, .55);
  background: rgba(226, 61, 40, .14);
}

.tag--yellow {
  color: var(--yellow);
  border-color: rgba(255, 197, 61, .5);
  background: rgba(255, 197, 61, .12);
}

.tag--volt {
  color: var(--volt);
  border-color: rgba(200, 255, 61, .5);
  background: rgba(200, 255, 61, .1);
}

/* ---------- 14. 数据块 ---------- */
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.section--paper .stat { border-top-color: var(--line-ink); }

.stat__num {
  font-family: var(--font-mono);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 600;
  line-height: 1;
  color: var(--volt);
  font-variant-numeric: tabular-nums;
}

.section--paper .stat__num { color: var(--red); }

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

/* ---------- 15. 面包屑 ---------- */
.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--moss);
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55em;
}

.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: .55em;
}

.breadcrumbs__item + .breadcrumbs__item::before {
  content: "/";
  color: rgba(143, 167, 154, .55);
}

.breadcrumbs__link {
  color: var(--moss);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.breadcrumbs__link:hover,
.breadcrumbs__link:focus-visible {
  color: var(--volt);
  border-bottom-color: currentColor;
}

.breadcrumbs__current { color: var(--chalk); }

/* ---------- 16. 图像容器基础（页面阶段放占位） ---------- */
.media {
  position: relative;
  overflow: hidden;
  display: block;
  aspect-ratio: 16 / 9;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--board);
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s var(--ease);
}

.media:hover img { transform: scale(1.035); }

.media--portrait { aspect-ratio: 4 / 5; }
.media--square { aspect-ratio: 1 / 1; }

.media--placeholder {
  background-image:
    repeating-linear-gradient(122deg, rgba(200, 255, 61, .1) 0 2px, transparent 2px 26px),
    radial-gradient(120% 100% at 20% 0%, rgba(11, 59, 46, .95), rgba(7, 24, 18, 1));
}

.media__cap {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--moss);
}

.section--paper .media { border-color: var(--line-ink); }
.section--paper .media__cap { color: #6E6250; }

/* ---------- 17. 侧边速览条 ---------- */
.rail {
  position: sticky;
  top: calc(var(--header-h) + 26px);
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
}

.rail__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0 9px 13px;
  border-left: 1px solid var(--line);
  color: var(--moss);
  text-decoration: none;
  transition: color .2s var(--ease), border-color .2s var(--ease), padding-left .2s var(--ease);
}

.rail__link:hover,
.rail__link:focus-visible {
  color: var(--chalk);
  border-left-color: var(--line-strong);
  padding-left: 17px;
}

.rail__link.is-active {
  color: var(--volt);
  border-left-color: var(--volt);
  padding-left: 17px;
}

/* ---------- 18. 页脚记录板 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  background: linear-gradient(180deg, var(--pitch) 0%, var(--ink) 100%);
  border-top: 1px solid var(--line-strong);
  color: var(--chalk);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(115deg,
    rgba(200, 255, 61, .05) 0 1px,
    transparent 1px 148px);
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr .85fr 1.35fr;
  gap: clamp(26px, 4vw, 64px);
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 76px) clamp(16px, 4vw, 56px) clamp(26px, 3vw, 40px);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.footer-tagline {
  max-width: 15em;
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(250, 247, 238, .78);
}

.footer-rule {
  display: block;
  width: 64px;
  height: 3px;
  background-image:
    linear-gradient(var(--volt), var(--volt)),
    linear-gradient(var(--red), var(--red));
  background-repeat: no-repeat;
  background-size: 34px 3px, 18px 3px;
  background-position: 0 0, 40px 0;
  transform: skewX(-20deg);
}

.footer-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--volt);
  margin-bottom: 16px;
}

.footer-nav__list {
  display: grid;
  gap: 10px;
}

.footer-nav__link {
  display: inline-block;
  font-size: 14px;
  color: rgba(250, 247, 238, .8);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}

.footer-nav__link:hover,
.footer-nav__link:focus-visible {
  color: var(--volt);
  border-bottom-color: currentColor;
  transform: translateX(3px);
}

.footer-contact__list { display: grid; }

.footer-contact__row {
  display: grid;
  grid-template-columns: 4.2em 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(250, 247, 238, .12);
  font-size: 13px;
}

.footer-contact__row:first-child { border-top: 1px dashed rgba(250, 247, 238, .12); }

.footer-contact__row dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  color: var(--moss);
  padding-top: 3px;
}

.footer-contact__row dd {
  margin: 0;
  color: var(--chalk);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.footer-base {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 16px clamp(16px, 4vw, 56px) 30px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--moss);
}

.footer-base__copy,
.footer-base__note { margin: 0; }

/* ---------- 19. 平板与移动端 ---------- */
@media (max-width: 1240px) {
  .nav-support { display: none; }
}

@media (max-width: 1080px) {
  :root { --header-h: 66px; }

  .nav-toggle { display: inline-flex; }

  .header-cta { display: none; }

  .header-inner { gap: 12px; }

  .primary-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 99;
    display: block;
    margin-left: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 14px clamp(16px, 5vw, 32px) 26px;
    background: var(--pitch);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line-strong);
    box-shadow: 0 28px 44px -28px rgba(0, 0, 0, .95);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s var(--ease);
  }

  .primary-nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .primary-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .primary-nav__item { display: block; }

  .primary-nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    font-size: 17px;
    border-bottom: 1px solid var(--line);
    opacity: .92;
  }

  .primary-nav__link::after { display: none; }

  .primary-nav__link[aria-current="page"] {
    color: var(--volt);
    box-shadow: inset 3px 0 0 var(--volt);
    padding-left: 12px;
  }

  .nav-note {
    display: block;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed rgba(250, 247, 238, .16);
  }

  .grid--7-5,
  .grid--8-4,
  .grid--5-7 { grid-template-columns: 1fr; }

  .rail {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 11px;
  }

  .rail__link {
    border-left: 0;
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 7px 11px;
  }

  .rail__link:hover,
  .rail__link:focus-visible,
  .rail__link.is-active {
    padding-left: 11px;
    border-color: var(--volt);
  }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .footer-contact { grid-column: auto; }
  .footer-base { flex-direction: column; }
  .footer-tagline { max-width: none; }
  .btn { padding: 11px 17px; }
}

@media (max-width: 420px) {
  .brand__sub { display: none; }
  .nav-toggle__text { display: none; }
  .nav-toggle { padding: 9px 11px; }
}

/* ---------- 20. 降低动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  .media:hover img { transform: none; }
  .btn:hover { transform: none; }
  .footer-nav__link:hover { transform: none; }
  .brand:hover .brand__mark { transform: skewX(-18deg); }
}
