/* ==========================================================================
   中欧体育主站 — 共享样式表 /assets/site.css
   夜间球场监控室 × 档案库：午夜基底 + 墨绿面板 + 荧光青交互 + 信号橙动作
   ========================================================================== */

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

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

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

ul, ol { padding: 0; }

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

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

/* ---------- 2. 变量 ---------- */
:root {
  /* 色彩系统 */
  --ink: #060F14;
  --moss: #0B2A24;
  --moss-lift: #12453A;
  --navy: #0D1B33;
  --signal: #FF6A1F;
  --signal-soft: #FF8347;
  --cyan: #2BE0C8;
  --lime: #C6F24E;
  --amber: #FFB020;
  --text: #F1F6F3;
  --text-soft: rgba(241, 246, 243, 0.78);
  --muted: #93A8A2;

  /* 线与面 */
  --line: rgba(43, 224, 200, 0.16);
  --line-soft: rgba(147, 168, 162, 0.2);
  --line-strong: rgba(43, 224, 200, 0.4);

  /* 字体栈 */
  --font-display: 'Archivo Narrow', 'Oswald', 'Source Han Sans SC Medium', 'Noto Sans SC', sans-serif;
  --font-mono: 'IBM Plex Mono', 'JetBrains Mono', 'Roboto Mono', ui-monospace, monospace;
  --font-body: 'Inter', 'Noto Sans SC', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-index: 'Inter', 'Noto Sans SC', system-ui, sans-serif;

  /* 动效 */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur: 260ms;
  --dur-fast: 200ms;

  /* 尺寸 */
  --header-h: 76px;
  --shell-max: 1440px;
  --shell-pad: 28px;
  --cut-lg: 18px;
  --cut-sm: 10px;

  /* 切角形状 */
  --clip-cut-lg: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  --clip-cut-sm: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  --clip-cut-xs: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

/* ---------- 3. 基础排版 ---------- */
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 夜间球场细线网格，全局置于内容之下 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(43, 224, 200, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 224, 200, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.22) 50%, rgba(0, 0, 0, 0.7));
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.22) 50%, rgba(0, 0, 0, 0.7));
}

.site-header,
.site-footer,
main,
.page-main {
  position: relative;
  z-index: 1;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

p { max-width: 68ch; }

a {
  color: var(--cyan);
  text-decoration-color: rgba(43, 224, 200, 0.45);
  text-underline-offset: 3px;
}

strong { font-weight: 600; }

code, kbd, samp {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

::selection {
  background: var(--cyan);
  color: #04120F;
}

/* ---------- 4. 布局容器 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--shell-pad);
}

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

/* ---------- 5. 跳至主内容 ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -72px;
  z-index: 300;
  display: inline-block;
  padding: 11px 20px;
  background: var(--cyan);
  color: #04120F;
  font-family: var(--font-index);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  clip-path: var(--clip-cut-xs);
  transition: top var(--dur) var(--ease);
}

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

/* ---------- 6. 头部 / 命令栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(180deg, rgba(13, 27, 51, 0.96), rgba(6, 15, 20, 0.9));
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}

.site-header.is-scrolled {
  background: linear-gradient(180deg, rgba(13, 27, 51, 0.99), rgba(6, 15, 20, 0.96));
  box-shadow: 0 20px 44px -30px rgba(0, 0, 0, 0.95);
}

.header-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
}

.scroll-rail {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--lime) 55%, var(--signal));
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: block;
  flex: none;
  width: 34px;
  height: 34px;
  background: var(--moss-lift);
  clip-path: polygon(0 0, 100% 0, 100% 64%, 64% 100%, 0 100%);
}

.brand-mark i {
  position: absolute;
  left: 7px;
  display: block;
  height: 2px;
  background: var(--cyan);
}

.brand-mark i:nth-child(1) { top: 9px; width: 15px; }
.brand-mark i:nth-child(2) { top: 16px; width: 9px; background: var(--lime); }
.brand-mark i:nth-child(3) { top: 23px; width: 13px; background: var(--signal); }

.brand-text { display: block; min-width: 0; }

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-sub {
  display: block;
  font-family: var(--font-index);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* 移动端检索入口（桌面隐藏） */
.header-search {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  background: rgba(43, 224, 200, 0.08);
  color: var(--cyan);
  font-family: var(--font-index);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  clip-path: var(--clip-cut-xs);
  transition: background var(--dur) var(--ease);
}

.header-search:hover { background: rgba(43, 224, 200, 0.18); }

.header-search-mark {
  position: relative;
  display: block;
  width: 11px;
  height: 11px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.header-search-mark::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 6px;
  height: 1.5px;
  background: currentColor;
  transform: rotate(45deg);
}

/* 移动端导航按钮（桌面隐藏） */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border: 0;
  background: rgba(43, 224, 200, 0.08);
  color: var(--cyan);
  font-family: var(--font-index);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: var(--clip-cut-xs);
  transition: background var(--dur) var(--ease);
}

.nav-toggle:hover { background: rgba(43, 224, 200, 0.18); }

.nav-toggle-mark {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
}

.nav-toggle-mark::before,
.nav-toggle-mark::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.nav-toggle-mark::before {
  top: 0;
  box-shadow: 0 4.5px 0 currentColor;
}

.nav-toggle-mark::after { bottom: 0; }

.nav-toggle[aria-expanded="true"] .nav-toggle-mark::before {
  transform: translateY(4.5px) rotate(45deg);
  box-shadow: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-mark::after {
  transform: translateY(-4.5px) rotate(-45deg);
}

/* 导航 */
.site-nav { display: block; min-width: 0; }

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 2px;
  list-style: none;
}

.nav-item { position: relative; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 9px 12px;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.4);
  transform-origin: 0 50%;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.nav-link:hover { color: var(--text); }

.nav-link:hover::after {
  opacity: 0.5;
  transform: none;
}

.nav-idx {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(147, 168, 162, 0.7);
  transition: color var(--dur) var(--ease);
}

.nav-label {
  font-size: 14px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav-link[aria-current="page"] {
  color: var(--cyan);
  background: rgba(43, 224, 200, 0.08);
}

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

.nav-link[aria-current="page"]::after {
  opacity: 1;
  transform: none;
}

.nav-status { display: none; }

.status-dot {
  display: block;
  width: 7px;
  height: 7px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(43, 224, 200, 0.18);
}

.nav-actions { display: none; }

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 0;
  background: none;
  font-family: var(--font-index);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  clip-path: var(--clip-cut-sm);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn-signal {
  background: var(--signal);
  color: #120703;
}

.btn-signal:hover { background: var(--signal-soft); }

.btn-ghost {
  background: rgba(43, 224, 200, 0.08);
  color: var(--cyan);
  box-shadow: inset 0 0 0 1px rgba(43, 224, 200, 0.45);
}

.btn-ghost:hover {
  background: rgba(43, 224, 200, 0.18);
  box-shadow: inset 0 0 0 1px var(--cyan);
}

.btn-solid {
  background: var(--moss-lift);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(43, 224, 200, 0.2);
}

.btn-solid:hover {
  background: #17574A;
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

/* ---------- 8. 页脚 ---------- */
.site-footer {
  margin-top: 88px;
  background: linear-gradient(180deg, #08131C 0%, #0A1826 42%, var(--navy) 100%);
  border-top: 1px solid var(--line-strong);
  position: relative;
  z-index: 1;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 180px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.footer-shell { padding-block: 56px 28px; }

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.6fr);
  gap: 48px;
}

.footer-brand { min-width: 0; }

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-brand-line {
  margin-top: 8px;
  font-family: var(--font-index);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer-note {
  margin-top: 18px;
  max-width: 42ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
}

.footer-stamp {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--lime);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.footer-col { min-width: 0; }

.footer-col-title {
  font-family: var(--font-index);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.footer-links {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  list-style: none;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-soft);
  text-decoration: none;
  transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}

.footer-links a:hover {
  color: var(--cyan);
  padding-left: 5px;
}

.footer-contact {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  display: grid;
  gap: 6px;
}

.footer-contact-line {
  font-size: 14px;
  color: var(--text-soft);
  max-width: none;
}

.footer-hours {
  font-family: var(--font-index);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--amber);
  max-width: none;
}

.footer-legal {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(147, 168, 162, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

.footer-legal-item {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ---------- 9. 排版工具 ---------- */
.eyebrow {
  display: block;
  font-family: var(--font-index);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.display {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 96px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.lede {
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-soft);
}

.prose {
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.75;
}

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

.prose p { max-width: 68ch; }

.prose h2 {
  font-size: clamp(24px, 3vw, 32px);
  color: var(--text);
  margin-top: 1.8em;
}

.prose h3 {
  font-size: 20px;
  color: var(--cyan);
  margin-top: 1.6em;
}

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

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

.prose li::marker { color: var(--cyan); }

/* ---------- 10. 区块标题 ---------- */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 28px;
  padding-bottom: 14px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line-soft);
}

.section-kicker {
  display: block;
  font-family: var(--font-index);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 48px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.section-note {
  max-width: 40ch;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- 11. 网格 ---------- */
.grid {
  display: grid;
  gap: 20px;
}

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

.grid-sidebar {
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
}

/* ---------- 12. 面板与标签 ---------- */
.panel {
  position: relative;
  padding: 22px;
  background: var(--moss);
  clip-path: var(--clip-cut-lg);
}

.panel--navy { background: var(--navy); }
.panel--lift { background: var(--moss-lift); }

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  background: rgba(147, 168, 162, 0.14);
  color: var(--muted);
}

.tag--lime { background: var(--lime); color: #10210A; }
.tag--signal { background: var(--signal); color: #1A0A02; }
.tag--cyan { background: rgba(43, 224, 200, 0.16); color: var(--cyan); }
.tag--amber { background: rgba(255, 176, 32, 0.16); color: var(--amber); }

/* ---------- 13. 数据组件 ---------- */
.stat { display: grid; gap: 6px; }

.stat-value {
  font-family: var(--font-mono);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--lime);
}

.stat-label {
  font-family: var(--font-index);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.score-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: rgba(11, 42, 36, 0.72);
  border-left: 3px solid rgba(198, 242, 78, 0.5);
  color: var(--text);
  text-decoration: none;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}

.score-strip:hover {
  background: var(--moss-lift);
  border-left-color: var(--lime);
  transform: translateX(3px);
}

.score-strip-year {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--lime);
  white-space: nowrap;
}

.score-strip-teams {
  font-size: 14px;
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score-strip-score {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  white-space: nowrap;
}

/* ---------- 14. 卡片 ---------- */
.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: rgba(11, 42, 36, 0.6);
  border-top: 2px solid rgba(43, 224, 200, 0.28);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}

.card:hover {
  background: rgba(18, 69, 58, 0.74);
  border-top-color: var(--cyan);
  transform: translateY(-3px);
}

.card-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.card-meta {
  font-family: var(--font-index);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.card-body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: none;
}

/* ---------- 15. 筛选栏 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px;
  background: var(--navy);
  border: 1px solid var(--line-soft);
}

.filter-btn {
  appearance: none;
  padding: 7px 14px;
  border: 1px solid rgba(43, 224, 200, 0.24);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}

.filter-btn:hover {
  color: var(--text);
  border-color: var(--cyan);
}

.filter-btn.is-active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04120F;
}

/* ---------- 16. 章节目录 ---------- */
.toc {
  display: grid;
  gap: 2px;
  list-style: none;
}

.toc-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 12px;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}

.toc-link:hover {
  color: var(--text);
  background: rgba(43, 224, 200, 0.06);
}

.toc-link.is-current {
  color: var(--cyan);
  border-left-color: var(--cyan);
  background: rgba(43, 224, 200, 0.08);
}

.toc-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: rgba(147, 168, 162, 0.8);
  transition: color var(--dur) var(--ease);
}

.toc-link.is-current .toc-num { color: var(--cyan); }

/* ---------- 17. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-index);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.breadcrumb a:hover { color: var(--cyan); }

.breadcrumb-sep {
  color: rgba(147, 168, 162, 0.45);
}

/* ---------- 18. 图片容器（页面阶段放图） ---------- */
.media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  background-color: var(--navy);
  background-image:
    linear-gradient(135deg, rgba(43, 224, 200, 0.1), rgba(13, 27, 51, 0.65)),
    repeating-linear-gradient(90deg, rgba(147, 168, 162, 0.08) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(0deg, rgba(147, 168, 162, 0.06) 0 1px, transparent 1px 44px);
}

.media-frame > img,
.media-frame > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 3 / 4; }

/* ---------- 19. 返回顶部 ---------- */
.back-to-top {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border: 0;
  background: var(--navy);
  color: var(--cyan);
  box-shadow: inset 0 0 0 1px rgba(43, 224, 200, 0.45);
  font-family: var(--font-index);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: var(--clip-cut-xs);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
              visibility var(--dur) var(--ease), background var(--dur) var(--ease);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-to-top:hover { background: var(--moss-lift); }

.back-to-top-mark {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1;
}

/* ---------- 20. 焦点与可访问性 ---------- */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.nav-link:focus-visible,
.toc-link:focus-visible,
.footer-links a:focus-visible {
  outline-offset: 2px;
}

[hidden] { display: none !important; }

/* ---------- 21. 响应式 ---------- */
@media (max-width: 1360px) {
  .header-actions .btn-ghost { display: none; }
}

@media (max-width: 1180px) {
  .grid-sidebar { grid-template-columns: minmax(0, 1fr) 280px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1080px) {
  :root {
    --shell-pad: 20px;
    --header-h: 68px;
  }

  .header-shell {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
  }

  .header-actions { display: none; }
  .header-search { display: inline-flex; }
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 18px 20px 26px;
    background: linear-gradient(180deg, #0A1826, #08131C);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
                visibility var(--dur) var(--ease);
  }

  .site-nav[data-open="true"] {
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
  }

  .nav-item { border-bottom: 1px solid rgba(147, 168, 162, 0.14); }

  .nav-link {
    width: 100%;
    padding: 15px 4px;
    justify-content: flex-start;
  }

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

  .nav-status {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 18px;
    font-family: var(--font-index);
    font-size: 12px;
    letter-spacing: 0.06em;
    max-width: none;
    color: var(--muted);
  }

  .nav-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
  }

  .footer-top { grid-template-columns: minmax(0, 1fr); gap: 36px; }

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

  .grid-sidebar { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  :root { --shell-pad: 16px; }

  body { font-size: 15px; }

  .brand-mark { width: 30px; height: 30px; }
  .brand-name { font-size: 17px; }
  .brand-sub { font-size: 10px; letter-spacing: 0.1em; }

  .nav-toggle-text { display: none; }
  .header-search-text { display: none; }

  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: minmax(0, 1fr); }

  .footer-cols { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .footer-shell { padding-block: 40px 22px; }
  .footer-brand-name { font-size: 26px; }
  .footer-legal { flex-direction: column; gap: 6px; }

  .score-strip {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "year score"
      "teams teams";
    row-gap: 8px;
  }

  .score-strip-year { grid-area: year; }
  .score-strip-teams { grid-area: teams; white-space: normal; }
  .score-strip-score { grid-area: score; text-align: right; }

  .lede { font-size: 15px; }
}

/* ---------- 22. 降低动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .score-strip:hover,
  .card:hover { transform: none; }

  .back-to-top { transform: none; }
}
