/* ============================================================
   火狐体育中文站 · /assets/site.css
   共享外壳：reset / tokens / 排版 / 页头 / 页脚 / 基础组件
   ============================================================ */

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

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

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

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

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

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

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

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

table { border-collapse: collapse; width: 100%; }

hr { border: 0; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #1A1A1A;
  --rock: #24282C;
  --stone: #3B4147;
  --bone: #F4EFE6;
  --orange: #FF6B1A;
  --lava: #D7263D;
  --cyan: #00E5C7;
  --steel: #2C3E50;
  --clay: #B56A4A;
  --moss: #6F7D5C;

  --bone-72: rgba(244, 239, 230, 0.72);
  --bone-52: rgba(244, 239, 230, 0.52);
  --bone-34: rgba(244, 239, 230, 0.34);
  --line: rgba(59, 65, 71, 0.85);
  --line-soft: rgba(59, 65, 71, 0.55);
  --orange-14: rgba(255, 107, 26, 0.14);

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

  --gutter: clamp(16px, 4vw, 40px);
  --gap: clamp(16px, 2.4vw, 32px);
  --shell-max: 1360px;
  --radius: 2px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 190ms;
}

/* ---------- 3. Base / 中文排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    radial-gradient(90rem 42rem at 84% -12%, rgba(255, 107, 26, 0.16), transparent 62%),
    radial-gradient(58rem 30rem at 6% 0%, rgba(0, 229, 199, 0.06), transparent 58%),
    radial-gradient(70rem 40rem at 50% 108%, rgba(44, 62, 80, 0.5), transparent 70%);
  background-repeat: no-repeat;
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.12;
  mix-blend-mode: soft-light;
  background-image: radial-gradient(rgba(244, 239, 230, 0.9) 0.5px, transparent 0.5px);
  background-size: 3px 3px;
}

main { display: block; }

#main-content { scroll-margin-top: 140px; }

p { max-width: 68ch; }

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

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

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--ink), 0 0 0 5px var(--bone);
  border-radius: var(--radius);
}

/* ---------- 4. 排版工具 ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--bone);
}

.display--heavy {
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.stat-number {
  font-family: var(--font-mono);
  font-weight: 700;
  font-style: italic;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: -0.03em;
  color: var(--cyan);
  text-shadow: 0 0 26px rgba(0, 229, 199, 0.32);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone-52);
}

.section-label::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--orange);
}

.lede {
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.75;
  color: var(--bone-72);
  max-width: 54ch;
}

.muted { color: var(--bone-52); }

.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;
}

/* ---------- 5. 布局 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.grid--halves { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--thirds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--sidebar { grid-template-columns: minmax(220px, 28%) minmax(0, 1fr); }

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

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.divider {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, var(--line), transparent 82%);
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}

.btn--primary {
  background: var(--orange);
  color: var(--ink);
  border-color: var(--orange);
  clip-path: polygon(0 0, 100% 0, 100% 68%, calc(100% - 12px) 100%, 0 100%);
  padding-right: 28px;
}

.btn--primary:hover,
.btn--primary:active {
  background: var(--bone);
  border-color: var(--bone);
  color: var(--ink);
}

.btn--ghost {
  background: transparent;
  color: var(--bone);
  border-color: var(--stone);
}

.btn--ghost:hover,
.btn--ghost:active {
  border-color: var(--orange);
  color: var(--orange);
}

.btn--quiet {
  background: rgba(244, 239, 230, 0.06);
  color: var(--bone-72);
  border-color: transparent;
}

.btn--quiet:hover,
.btn--quiet:active {
  background: rgba(255, 107, 26, 0.16);
  color: var(--bone);
}

/* ---------- 7. 跳转链 ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--orange);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius);
  transform: translateY(-160%);
  transition: transform var(--dur) var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
}

/* ---------- 8. 页头（框架式导航） ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background:
    linear-gradient(180deg, rgba(26, 26, 26, 0.98) 0%, rgba(26, 26, 26, 0.94) 100%);
  border-bottom: 1px solid var(--stone);
  color: var(--bone);
  box-shadow: 0 18px 40px -34px rgba(0, 0, 0, 0.95);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--orange) 0%, var(--lava) 52%, rgba(215, 38, 61, 0) 100%);
  pointer-events: none;
}

.header-rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: 6px var(--gutter);
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-34);
}

.rail-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--moss);
  max-width: none;
}

.rail-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 229, 199, 0.14);
}

.rail-meta {
  color: var(--bone-34);
  max-width: none;
}

.header-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 3vw, 44px);
  padding-block: 14px;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 4px;
  border-radius: var(--radius);
  transition: opacity var(--dur) var(--ease);
}

.brand:hover { opacity: 0.86; }

.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  background: linear-gradient(140deg, var(--orange) 0%, var(--lava) 100%);
  clip-path: polygon(50% 0%, 100% 27%, 100% 73%, 50% 100%, 0% 73%, 0% 27%);
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 8px;
  background: var(--ink);
  clip-path: polygon(0 0, 100% 50%, 0 100%, 26% 50%);
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-line {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--bone);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  line-height: 1.2;
  color: var(--bone-34);
}

/* 导航 */
.site-nav {
  justify-self: center;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 26px);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 2px;
  font-size: 14px;
  font-weight: 500;
  color: var(--bone-72);
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 200ms var(--ease);
}

.nav-link:hover,
.nav-link:active {
  color: var(--bone);
}

.nav-link:hover::after,
.nav-link:active::after {
  transform: scaleX(1);
}

.nav-link[aria-current="page"] {
  color: var(--bone);
  font-weight: 600;
}

.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-link[aria-current="page"] .nav-link__no {
  color: var(--orange);
}

.nav-link__no {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--bone-34);
  transition: color var(--dur) var(--ease);
}

/* 订阅按钮 */
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 26px 11px 20px;
  background: var(--orange);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  clip-path: polygon(0 0, 100% 0, 100% 66%, calc(100% - 12px) 100%, 0 100%);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.header-cta:hover,
.header-cta:active {
  background: var(--bone);
  color: var(--ink);
}

.nav-cta {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  margin-top: 20px;
  background: var(--orange);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  clip-path: polygon(0 0, 100% 0, 100% 74%, calc(100% - 14px) 100%, 0 100%);
}

/* 移动按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  color: var(--bone);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
  border-color: var(--orange);
  color: var(--orange);
}

.nav-toggle__bar {
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

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

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

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

/* 滚动进度 */
.progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--orange-14);
  overflow: hidden;
}

.progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--orange) 0%, var(--lava) 55%, var(--cyan) 100%);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 120ms linear;
}

/* ---------- 9. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 128px);
  background:
    linear-gradient(180deg, #1A1A1A 0%, #17181A 55%, #121315 100%);
  border-top: 1px solid var(--stone);
  color: var(--bone-72);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--orange) 0%, var(--lava) 42%, rgba(215, 38, 61, 0) 88%);
}

.footer-shell {
  padding-block: clamp(40px, 6vw, 76px) clamp(28px, 3vw, 40px);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 1.9fr);
  gap: clamp(28px, 4vw, 64px);
  padding-bottom: clamp(28px, 4vw, 48px);
  border-bottom: 1px dashed var(--line-soft);
}

.footer-brand {
  display: grid;
  gap: 12px;
  align-content: start;
  max-width: 34ch;
}

.footer-brand__mark {
  width: 30px;
  height: 30px;
  background: linear-gradient(140deg, var(--orange) 0%, var(--lava) 100%);
  clip-path: polygon(50% 0%, 100% 27%, 100% 73%, 50% 100%, 0% 73%, 0% 27%);
}

.footer-brand__title {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.3;
  color: var(--bone);
  max-width: none;
}

.footer-brand__note {
  font-size: 13px;
  line-height: 1.8;
  color: var(--bone-52);
  max-width: 32ch;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}

.footer-col__title {
  margin-bottom: 14px;
  padding-left: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-34);
  border-left: 2px solid var(--orange);
  line-height: 1.4;
  max-width: none;
}

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

.footer-list a {
  position: relative;
  display: inline-block;
  font-size: 14px;
  color: var(--bone-72);
  transition: color var(--dur) var(--ease);
}

.footer-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 200ms var(--ease);
}

.footer-list a:hover,
.footer-list a:active {
  color: var(--bone);
}

.footer-list a:hover::after,
.footer-list a:active::after {
  transform: scaleX(1);
}

.footer-contact {
  display: grid;
  gap: 6px;
  padding-block: clamp(24px, 3vw, 34px) clamp(20px, 3vw, 28px);
}

.footer-contact__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-34);
  max-width: none;
}

.footer-contact__line {
  font-size: 13px;
  line-height: 1.8;
  color: var(--bone-52);
  letter-spacing: 0.01em;
  max-width: 62ch;
}

.footer-contact__line:first-of-type {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--bone-72);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: clamp(16px, 2vw, 22px);
  border-top: 1px solid rgba(59, 65, 71, 0.8);
}

.footer-copy,
.footer-icp {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--bone-34);
  max-width: none;
}

.footer-icp {
  color: var(--bone-52);
}

/* ---------- 10. 面包屑 ---------- */
.breadcrumbs {
  padding-block: clamp(16px, 2vw, 24px) 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone-34);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

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

.breadcrumbs li + li::before {
  content: "／";
  color: var(--stone);
}

.breadcrumbs a {
  color: var(--bone-52);
  transition: color var(--dur) var(--ease);
}

.breadcrumbs a:hover { color: var(--orange); }

.breadcrumbs [aria-current="page"] {
  color: var(--bone);
  letter-spacing: 0.12em;
}

/* ---------- 11. 基础组件 ---------- */
.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  background: linear-gradient(180deg, rgba(36, 40, 44, 0.96) 0%, rgba(26, 26, 26, 0.98) 100%);
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(244, 239, 230, 0.04), 0 22px 44px -34px rgba(0, 0, 0, 0.95);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 16px;
  height: 16px;
  border-top: 2px solid var(--orange);
  border-left: 2px solid var(--orange);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  pointer-events: none;
}

.card:hover { border-color: var(--orange); }

.card:hover::before { opacity: 1; }

.panel {
  padding: clamp(18px, 2.4vw, 28px);
  background: linear-gradient(160deg, rgba(44, 62, 80, 0.55) 0%, rgba(36, 40, 44, 0.9) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--clay);
  border-radius: var(--radius);
}

.tag--moss { background: var(--moss); color: var(--bone); }
.tag--lava { background: var(--lava); color: var(--bone); }
.tag--steel { background: var(--steel); color: var(--bone); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}

.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(0, 229, 199, 0.16);
}

.status--warn { color: var(--lava); }
.status--warn::before { box-shadow: 0 0 0 3px rgba(215, 38, 61, 0.18); }
.status--done { color: var(--moss); }
.status--done::before { box-shadow: 0 0 0 3px rgba(111, 125, 92, 0.2); }

/* 图片容器基础规则（页面阶段放置 img / 内联 SVG） */
.media {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(150deg, #24282C 0%, #1A1A1A 58%, #2C3E50 100%);
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255, 107, 26, 0.16) 0%, transparent 46%),
    radial-gradient(60% 60% at 88% 12%, rgba(0, 229, 199, 0.12), transparent 70%);
}

.media img,
.media svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3  { aspect-ratio: 4 / 3; }
.media--1x1  { aspect-ratio: 1 / 1; }
.media--21x9 { aspect-ratio: 21 / 9; }

.prose {
  max-width: 72ch;
  font-size: 16px;
  line-height: 1.85;
  color: var(--bone-72);
}

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

.prose h2 {
  margin-top: 2.2em;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--bone);
}

.prose h3 {
  margin-top: 1.8em;
  font-size: 17px;
  font-weight: 600;
  color: var(--bone);
}

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

.prose ol { list-style: decimal; }

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

.prose a {
  color: var(--orange);
  border-bottom: 1px solid rgba(255, 107, 26, 0.45);
  transition: border-color var(--dur) var(--ease);
}

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

/* ---------- 12. 响应式 ---------- */
@media (max-width: 1080px) {
  .brand-sub { display: none; }
  .nav-list { gap: 12px; }
  .nav-link { font-size: 13px; }
}

@media (max-width: 960px) {
  .grid--sidebar { grid-template-columns: minmax(0, 1fr); }
  .grid--thirds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .header-main {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding-block: 12px;
  }

  .header-cta { display: none; }

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

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    justify-self: stretch;
    padding: 14px var(--gutter) 24px;
    background: linear-gradient(180deg, #24282C 0%, #1A1A1A 100%);
    border-top: 1px solid var(--stone);
    border-bottom: 1px solid var(--stone);
    box-shadow: 0 26px 48px -30px rgba(0, 0, 0, 0.95);
    max-height: calc(100vh - 110px);
    overflow-y: auto;
  }

  .site-nav[data-open] {
    display: block;
    animation: nav-drop 200ms var(--ease);
  }

  @keyframes nav-drop {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 14px 4px;
    font-size: 16px;
    border-bottom: 1px solid var(--line-soft);
  }

  .nav-link::after { display: none; }

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

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

  .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .grid--halves,
  .grid--thirds { grid-template-columns: minmax(0, 1fr); }

  .footer-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .header-rail { font-size: 10px; letter-spacing: 0.1em; }
  .rail-meta { display: none; }
  .brand-line { font-size: 14px; }
  .brand-mark { width: 30px; height: 30px; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .breadcrumbs { font-size: 10px; }
}

@media (max-width: 380px) {
  .brand-sub { display: none; }
  .footer-nav { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 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;
    scroll-behavior: auto !important;
  }

  .site-nav[data-open] { animation: none; }
  .progress__bar { transition: none; }
}
