/* =========================================================
   开心体育 · Site Kit
   /assets/site.css —— reset / 变量 / 排版 / 头部 / 页脚 / 通用组件
   ========================================================= */

/* ---------- 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, figure, blockquote, dl, dd, ul, ol { margin: 0; }

ul, ol { list-style: none; }

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

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

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

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

[hidden] { display: none !important; }

/* ---------- 2. 设计变量 ---------- */
:root {
  /* 色彩体系 */
  --ink-deep: #061A16;
  --field-deep: #0B2B24;
  --board-green: #123D33;
  --neon: #35F2C8;
  --teal-line: #18B894;
  --goal-orange: #FF8A3D;
  --loss-magenta: #C7477A;
  --check-yellow: #FFD166;
  --paper: #F4F1E8;
  --body-muted: #C9D6D0;
  --border-grey: #6B8F84;
  --ink-on-paper: #0A1714;

  /* 语义色 */
  --surface-1: #07201B;
  --surface-2: var(--field-deep);
  --surface-3: var(--board-green);
  --text-primary: var(--paper);
  --text-secondary: var(--body-muted);
  --text-quiet: rgba(201, 214, 208, .66);
  --line-soft: rgba(107, 143, 132, .24);
  --line-mid: rgba(107, 143, 132, .42);

  /* 字体 */
  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --font-body: Inter, "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

  /* 尺寸 */
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 12px;

  /* 动效 */
  --ease: cubic-bezier(.22, .68, 0, 1);
  --dur-fast: .18s;
  --dur-mid: .34s;

  /* 头部高度参考 */
  --header-offset: 118px;
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink-deep);
  background-image:
    radial-gradient(900px 520px at 10% -6%, rgba(18, 61, 51, .82), transparent 62%),
    radial-gradient(760px 460px at 94% 2%, rgba(53, 242, 200, .07), transparent 64%);
  background-repeat: no-repeat;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .01em;
  color: var(--text-primary);
}

p { text-wrap: pretty; }

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

code, kbd, samp, pre { font-family: var(--font-mono); }

::selection {
  background: rgba(53, 242, 200, .28);
  color: var(--paper);
}

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

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--neon);
  color: var(--ink-deep);
  font-weight: 700;
  font-size: .875rem;
  border-radius: var(--radius-sm);
  transform: translateY(-180%);
  transition: transform var(--dur-fast) var(--ease);
}
.skip-link:focus-visible {
  transform: translateY(0);
  outline-offset: 2px;
}

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

.container--narrow {
  max-width: 880px;
}

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 32px);
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

/* ---------- 5. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  isolation: isolate;
  background: linear-gradient(180deg, #07201B 0%, #061A16 100%);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 20px 44px -36px rgba(0, 0, 0, .95);
  color: var(--text-primary);
}

/* 上层条带 */
.header-rail {
  background: rgba(6, 26, 22, .66);
  border-bottom: 1px dashed rgba(107, 143, 132, .22);
}

.rail-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 8px var(--gutter);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  line-height: 1.4;
  color: var(--text-quiet);
}

.rail-edition {
  color: var(--neon);
  letter-spacing: .12em;
}

.rail-divider {
  width: 26px;
  height: 1px;
  background: var(--line-mid);
  flex: none;
}

.rail-tagline {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rail-quick {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid rgba(53, 242, 200, .34);
  border-radius: 999px;
  color: var(--neon);
  letter-spacing: .06em;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.rail-quick:hover,
.rail-quick:focus-visible {
  background: rgba(53, 242, 200, .12);
  border-color: var(--neon);
}

.rail-quick-arrow {
  font-size: .85em;
  line-height: 1;
}

/* 主层 */
.header-main {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand-mark {
  position: relative;
  width: 40px;
  height: 40px;
  flex: none;
  border: 1px solid var(--teal-line);
  background:
    linear-gradient(140deg, rgba(53, 242, 200, .18) 0%, rgba(53, 242, 200, 0) 62%),
    var(--surface-1);
  overflow: hidden;
}

.brand-mark-line {
  position: absolute;
  top: 6px; bottom: 6px; left: 50%;
  width: 2px;
  background: var(--neon);
  transform: translateX(-50%) skewY(-14deg);
  box-shadow: 0 0 12px rgba(53, 242, 200, .5);
}

.brand-mark-dot {
  position: absolute;
  top: 5px; right: 5px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--goal-orange);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .06em;
  color: var(--paper);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .16em;
  line-height: 1.2;
  color: rgba(201, 214, 208, .6);
}

/* 主导航 */
.primary-nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  width: 100%;
}
.nav-list::-webkit-scrollbar { display: none; }

.nav-item { flex: none; }

.nav-link {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 10px 12px;
  border-bottom: 2px solid transparent;
  color: rgba(244, 241, 232, .82);
  font-size: .92rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              background-color var(--dur-fast) var(--ease);
}

.nav-index {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .08em;
  color: rgba(53, 242, 200, .52);
  transition: color var(--dur-fast) var(--ease);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--paper);
  border-bottom-color: var(--teal-line);
}

.nav-link:hover .nav-index,
.nav-link:focus-visible .nav-index { color: var(--neon); }

.nav-link[aria-current="page"] {
  color: var(--neon);
  border-bottom-color: var(--neon);
  background: rgba(53, 242, 200, .07);
}

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

.nav-foot {
  display: none;
  padding: 16px 4px 0;
  margin-top: 12px;
  border-top: 1px dashed rgba(107, 143, 132, .28);
}

.nav-foot-label {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .16em;
  color: rgba(53, 242, 200, .7);
  text-transform: uppercase;
}

.nav-foot-value {
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: .04em;
  color: var(--text-secondary);
  word-break: break-all;
}

/* 动作区 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  margin-left: auto;
}

.header-cta { white-space: nowrap; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-mid);
  border-radius: var(--radius-sm);
  background: rgba(18, 61, 51, .5);
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.nav-toggle:hover { border-color: var(--teal-line); }

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 20px;
  height: 14px;
}

.nav-toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--neon);
  border-radius: 2px;
  transition: transform var(--dur-fast) var(--ease),
              opacity var(--dur-fast) var(--ease),
              top var(--dur-fast) var(--ease);
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 6px; }
.nav-toggle-bars span:nth-child(3) { top: 12px; }

.site-header[data-open="true"] .nav-toggle-bars span:nth-child(1) {
  top: 6px;
  transform: 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) {
  top: 6px;
  transform: rotate(-45deg);
}

/* 滚动进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(53, 242, 200, .1);
  overflow: hidden;
  pointer-events: none;
}

.scroll-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--teal-line), var(--neon) 60%, var(--check-yellow));
}

/* ---------- 6. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 104px);
  color: var(--text-secondary);
  background:
    radial-gradient(1100px 420px at 86% -12%, rgba(53, 242, 200, .1), transparent 62%),
    radial-gradient(700px 320px at 4% 0%, rgba(199, 71, 122, .08), transparent 60%),
    linear-gradient(180deg, var(--field-deep) 0%, var(--ink-deep) 72%);
  border-top: 1px solid rgba(53, 242, 200, .24);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--teal-line) 0 40px,
    transparent 40px 56px
  );
  opacity: .5;
}

.footer-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(38px, 6vw, 76px) var(--gutter) clamp(24px, 4vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(24px, 4vw, 56px);
}

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

.brand--footer {
  gap: 10px;
  margin-bottom: 6px;
}

.brand--footer .brand-mark {
  width: 34px;
  height: 34px;
}

.brand--footer .brand-name {
  font-size: 1.2rem;
  letter-spacing: .08em;
}

.footer-brand-line {
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .1em;
  color: var(--neon);
}

.footer-brand-note {
  font-size: .82rem;
  line-height: 1.6;
  color: var(--text-quiet);
  max-width: 30ch;
}

.footer-heading {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--paper);
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.footer-heading-index {
  color: rgba(53, 242, 200, .8);
  font-size: .66rem;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0;
}

.footer-link {
  display: inline-block;
  padding: 5px 0;
  font-size: .9rem;
  color: rgba(201, 214, 208, .82);
  border-bottom: 1px solid transparent;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.footer-link:hover,
.footer-link:focus-visible {
  color: var(--neon);
  border-bottom-color: rgba(53, 242, 200, .5);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
}

.footer-contact-item {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "label copy"
    "value copy";
  align-items: center;
  gap: 2px 10px;
}

.footer-contact-label {
  grid-area: label;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .16em;
  color: rgba(53, 242, 200, .62);
  text-transform: uppercase;
}

.footer-contact-value {
  grid-area: value;
  font-family: var(--font-mono);
  font-size: .82rem;
  line-height: 1.5;
  color: var(--text-secondary);
  word-break: break-word;
}

.copy-btn {
  grid-area: copy;
  align-self: center;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .1em;
  color: var(--teal-line);
  border: 1px solid rgba(24, 184, 148, .42);
  border-radius: 999px;
  transition: color var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}
.copy-btn:hover,
.copy-btn:focus-visible {
  color: var(--ink-deep);
  background: var(--neon);
  border-color: var(--neon);
}

.copy-status {
  margin-top: 12px;
  min-height: 1.2em;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--check-yellow);
}

.footer-bottom {
  max-width: var(--container);
  margin-inline: auto;
  padding: 16px var(--gutter) 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  border-top: 1px solid var(--line-soft);
}

.footer-meta {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  color: rgba(201, 214, 208, .56);
}
.footer-meta:last-child { margin-left: auto; }

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--neon);
  color: var(--ink-deep);
  border-color: var(--neon);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: #6BFFDC;
  border-color: #6BFFDC;
}

.btn--ghost {
  background: transparent;
  color: var(--neon);
  border-color: rgba(53, 242, 200, .48);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: rgba(53, 242, 200, .12);
  border-color: var(--neon);
}

.btn--quiet {
  background: var(--surface-3);
  color: var(--paper);
  border-color: var(--line-mid);
}
.btn--quiet:hover,
.btn--quiet:focus-visible {
  border-color: var(--teal-line);
  color: var(--neon);
}

/* ---------- 8. 标签 / 引导词 ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal-line);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  line-height: 1.6;
  border: 1px solid var(--line-mid);
  border-radius: 999px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.tag--goal {
  color: var(--goal-orange);
  border-color: rgba(255, 138, 61, .45);
  background: rgba(255, 138, 61, .1);
}

.tag--loss {
  color: #F08AB2;
  border-color: rgba(199, 71, 122, .45);
  background: rgba(199, 71, 122, .12);
}

.tag--check {
  color: var(--ink-deep);
  background: var(--check-yellow);
  border-color: var(--check-yellow);
  font-weight: 700;
}

.tag--teal {
  color: var(--neon);
  border-color: rgba(53, 242, 200, .45);
  background: rgba(53, 242, 200, .1);
}

/* ---------- 9. 章节体系 ---------- */
.section {
  padding-block: clamp(40px, 6vw, 84px);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 32px;
  padding-bottom: 16px;
  margin-bottom: clamp(20px, 3vw, 36px);
  border-bottom: 1px solid var(--line-soft);
}

.section-index {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.02em;
  color: rgba(53, 242, 200, .34);
}

.section-title {
  font-size: clamp(1.35rem, 2.6vw, 2.1rem);
  margin-top: 6px;
}

.section-note {
  font-size: .86rem;
  color: var(--text-quiet);
  max-width: 46ch;
}

.rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, var(--line-mid), transparent);
  margin-block: clamp(20px, 3vw, 36px);
}

/* ---------- 10. 面包屑 ---------- */
.breadcrumb {
  padding-block: 18px;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  color: var(--text-quiet);
}

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

.breadcrumb-list > li + li::before {
  content: "/";
  color: rgba(107, 143, 132, .7);
}

.breadcrumb-link {
  color: var(--text-secondary);
  border-bottom: 1px solid transparent;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.breadcrumb-link:hover,
.breadcrumb-link:focus-visible {
  color: var(--neon);
  border-bottom-color: rgba(53, 242, 200, .5);
}

.breadcrumb-list > li[aria-current="page"] { color: var(--neon); }

/* ---------- 11. 卡片 ---------- */
.paper-card {
  position: relative;
  padding: clamp(20px, 3vw, 34px);
  background: var(--paper);
  color: var(--ink-on-paper);
  border: 1px solid rgba(10, 23, 20, .16);
  border-radius: var(--radius-md);
  box-shadow:
    6px 6px 0 rgba(18, 61, 51, .55),
    0 24px 48px -34px rgba(0, 0, 0, .85);
}

.paper-card h1,
.paper-card h2,
.paper-card h3,
.paper-card h4 { color: var(--ink-on-paper); }

.paper-card p { color: #26382F; }

.paper-card .eyebrow { color: #12796A; }

.paper-card .rule { background: linear-gradient(90deg, rgba(10, 23, 20, .28), transparent); }

.paper-card .tag {
  color: #1D4A3E;
  border-color: rgba(10, 23, 20, .26);
}

.paper-card .tag--check {
  color: var(--ink-deep);
  border-color: var(--check-yellow);
}

.note-card {
  position: relative;
  padding: 16px 18px 16px 22px;
  background: rgba(18, 61, 51, .42);
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--teal-line);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: .88rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.note-card > :first-child { margin-top: 0; }
.note-card > :last-child { margin-bottom: 0; }

/* ---------- 12. 数据展示 ---------- */
.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-num {
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--neon);
  font-variant-numeric: tabular-nums;
}

.stat-num--goal { color: var(--goal-orange); }
.stat-num--loss { color: var(--loss-magenta); }
.stat-num--check { color: var(--check-yellow); }

.stat-label {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-quiet);
}

/* ---------- 13. 图片容器 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-soft);
  background:
    radial-gradient(120% 120% at 20% 0%, rgba(53, 242, 200, .16), transparent 58%),
    linear-gradient(150deg, var(--board-green) 0%, var(--ink-deep) 100%);
  aspect-ratio: 16 / 10;
}

.media-frame > img,
.media-frame > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(.82) contrast(1.04);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 50%, rgba(6, 26, 22, .55) 100%);
}

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

.media-frame-caption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .12em;
  color: rgba(244, 241, 232, .78);
}

/* ---------- 14. 正文 ---------- */
.prose {
  font-size: 1rem;
  line-height: 1.78;
  color: var(--text-secondary);
}

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

.prose h2,
.prose h3,
.prose h4 { margin-top: 1.8em; }

.prose h2 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); }
.prose h3 { font-size: clamp(1.1rem, 1.8vw, 1.3rem); }

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

.prose ul { list-style: none; }

.prose ul > li {
  position: relative;
  padding-left: .2em;
}

.prose ul > li::before {
  content: "";
  position: absolute;
  left: -1em;
  top: .72em;
  width: 6px;
  height: 6px;
  background: var(--teal-line);
  border-radius: 1px;
  transform: rotate(45deg);
}

.prose ol { list-style: decimal; }
.prose ol > li::marker { color: var(--teal-line); font-family: var(--font-mono); }

.prose strong { color: var(--paper); }

.prose a {
  color: var(--neon);
  border-bottom: 1px solid rgba(53, 242, 200, .42);
}
.prose a:hover { border-bottom-color: var(--neon); }

.prose blockquote {
  padding: 14px 0 14px 20px;
  border-left: 2px solid var(--check-yellow);
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--paper);
}

/* ---------- 15. 筛选 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0;
}

.filter-btn {
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--text-secondary);
  background: rgba(18, 61, 51, .55);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}

.filter-btn:hover,
.filter-btn:focus-visible {
  color: var(--paper);
  border-color: var(--teal-line);
}

.filter-btn[aria-pressed="true"] {
  color: var(--ink-deep);
  background: var(--neon);
  border-color: var(--neon);
  font-weight: 700;
}

[data-filter-item][hidden] { display: none !important; }

[data-filter-empty] {
  padding: 24px;
  text-align: center;
  font-size: .9rem;
  color: var(--text-quiet);
  border: 1px dashed var(--line-mid);
  border-radius: var(--radius-md);
}

/* ---------- 16. 显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity .52s var(--ease) var(--reveal-delay, 0s),
    transform .52s var(--ease) var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* ---------- 17. 响应式 ---------- */
@media (max-width: 1080px) {
  .nav-link { padding: 10px 9px; font-size: .86rem; }
  .brand-sub { display: none; }
  .footer-inner {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  }
  .footer-col--contact { grid-column: 1 / -1; }
  .footer-col--contact .footer-contact-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px 32px;
  }
  .footer-col--contact .footer-contact-item {
    grid-template-columns: auto auto;
    grid-template-areas:
      "label label"
      "value copy";
    gap: 2px 10px;
  }
}

@media (max-width: 900px) {
  :root { --header-offset: 112px; }

  .rail-tagline,
  .rail-divider { display: none; }

  .rail-inner { padding-block: 7px; }

  .header-inner {
    min-height: 60px;
    gap: 10px;
  }

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

  .header-cta { display: none; }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    max-height: calc(100dvh - var(--header-offset));
    overflow-y: auto;
    padding: 10px var(--gutter) 26px;
    background: linear-gradient(180deg, #08211C 0%, #061A16 100%);
    border-bottom: 1px solid rgba(53, 242, 200, .28);
    box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .95);
    z-index: 5;
  }

  .site-header[data-open="true"] .primary-nav { display: flex; }

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

  .nav-item { border-bottom: 1px solid var(--line-soft); }

  .nav-link {
    display: flex;
    width: 100%;
    padding: 14px 2px;
    font-size: 1rem;
    border-bottom: 0;
    border-left: 2px solid transparent;
    padding-left: 10px;
  }

  .nav-link[aria-current="page"] {
    border-left-color: var(--neon);
    border-bottom-color: transparent;
  }

  .nav-foot { display: block; }
}

@media (max-width: 720px) {
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .footer-col--contact { grid-column: auto; }

  .footer-col--contact .footer-contact-list { flex-direction: column; }

  .footer-meta:last-child { margin-left: 0; }

  .footer-bottom { gap: 6px 20px; }
}

@media (max-width: 480px) {
  .rail-edition { letter-spacing: .06em; font-size: .66rem; }
  .rail-quick span:first-child { display: none; }
  .rail-quick::before { content: "赛后核对"; }
  .rail-quick { padding: 3px 9px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-name { font-size: 1.12rem; }
  .section-head { align-items: flex-start; }
}

/* ---------- 18. 动效偏好 ---------- */
@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;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .scroll-progress-bar { transition: none; }
}

/* ---------- 19. 打印 ---------- */
@media print {
  .site-header,
  .site-footer,
  .scroll-progress,
  .nav-toggle { display: none !important; }

  body {
    background: #fff;
    color: #111;
  }

  .paper-card { box-shadow: none; }
}
