/* ============================================================
   开心体育看台 · /assets/site.css
   共享外壳：reset / 变量 / 中文排版 / 头部 / 页脚 / 通用组件
   ============================================================ */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, p, ul, ol, figure, blockquote, dl, dd, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
main { display: block; }

/* ---------- 2. 变量 ---------- */
:root {
  --paper: #F7F2E7;
  --paper-2: #EDE6D6;
  --paper-3: #FFE6D6;
  --white: #FFFFFF;
  --ink: #101216;
  --ink-2: #16233A;
  --orange: #FF6A1A;
  --orange-deep: #C9420A;
  --blue: #1B4DFF;
  --blue-deep: #0E2A8A;
  --neon: #C3FF3F;
  --muted: #4C535C;

  --line: rgba(16, 18, 22, 0.14);
  --line-2: rgba(16, 18, 22, 0.30);
  --grid-line: rgba(16, 18, 22, 0.05);
  --line-inv: rgba(247, 242, 231, 0.18);

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

  --wrap: 1320px;
  --gutter: 24px;
  --header-h: 74px;
  --r: 3px;

  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 48px;
  --sp-6: 72px;

  --shadow-print: 6px 6px 0 rgba(16, 18, 22, 0.12);
  --shadow-lift: 10px 10px 0 rgba(16, 18, 22, 0.16);
}

@media (max-width: 1080px) { :root { --header-h: 68px; --gutter: 20px; } }
@media (max-width: 560px) { :root { --header-h: 62px; --gutter: 14px; } }

/* ---------- 3. 中文排版与底色 ---------- */
body {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { line-height: 1.16; letter-spacing: -0.02em; font-weight: 900; }
h1 { font-size: clamp(34px, 5vw, 72px); }
h2 { font-size: clamp(26px, 3.4vw, 40px); }
h3 { font-size: clamp(20px, 2.2vw, 24px); letter-spacing: -0.01em; }
h4 { font-size: 18px; font-weight: 800; }
p { max-width: 42em; }
strong, b { font-weight: 800; }

a { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--orange-deep); }

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

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

/* ---------- 4. 布局容器 ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.section { padding-block: var(--sp-6); }
.section--tight { padding-block: var(--sp-5); }
.stack { display: grid; gap: var(--sp-2); }
.stack--lg { display: grid; gap: var(--sp-4); }
.text-center { text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- 5. 跳过导航 / 进度条 ---------- */
.skip-link {
  position: absolute; left: 12px; top: -70px; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: 11px 20px; font-weight: 800; font-size: 15px;
  border-radius: 0 0 var(--r) var(--r);
  text-decoration: none; transition: top 0.18s ease;
}
.skip-link:focus { top: 0; color: var(--neon); }

.scroll-progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--orange), var(--neon));
  z-index: 130; transition: width 0.12s linear;
}

/* ---------- 6. 头部：赛况走带 ---------- */
.header-rail { background: var(--ink); color: var(--paper); font-size: 13px; }
.header-rail-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; min-height: 38px; }
.live-strip { display: flex; align-items: center; gap: 8px; margin: 0; max-width: none; font-family: var(--font-mono); letter-spacing: 0.04em; }
.live-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--neon); box-shadow: 0 0 10px rgba(195, 255, 63, 0.9); animation: kx-pulse 1.8s ease-in-out infinite; }
@keyframes kx-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.78); } }
.live-label { color: var(--neon); font-weight: 700; }
.live-text { color: rgba(247, 242, 231, 0.74); }
.header-quick { display: flex; gap: 20px; font-size: 13px; }
.header-quick a { color: rgba(247, 242, 231, 0.84); text-decoration: none; border-bottom: 1px solid transparent; padding-bottom: 1px; }
.header-quick a:hover { color: var(--white); border-bottom-color: var(--orange); }
.header-quick a:focus-visible { outline-color: var(--neon); }

/* ---------- 7. 头部：吸顶主栏 ---------- */
.header-main { position: sticky; top: 0; z-index: 90; background: var(--paper); border-bottom: 2px solid var(--ink); }
.header-main-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-mark {
  width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center;
  background: var(--ink); color: var(--neon);
  font-family: var(--font-mono); font-size: 15px; font-weight: 700; letter-spacing: 0.02em;
  border-radius: 2px; box-shadow: inset 0 -3px 0 var(--orange);
}
.brand-text { display: flex; flex-direction: column; gap: 1px; }
.brand-name { font-size: 19px; font-weight: 900; letter-spacing: -0.01em; line-height: 1.2; color: var(--ink); }
.brand-tag { font-size: 11.5px; letter-spacing: 0.14em; color: var(--muted); }
.brand:hover .brand-tag { color: var(--orange-deep); }

.nav-toggle {
  display: none; align-items: center; gap: 9px;
  padding: 9px 14px; background: var(--white); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 2px;
  font-size: 14px; font-weight: 800; cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.nav-toggle:hover { background: var(--paper-2); }
.nav-toggle-text { letter-spacing: 0.08em; }
.nav-toggle-bars { position: relative; display: block; width: 18px; height: 2px; background: var(--ink); transition: background 0.2s ease; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); transition: transform 0.22s ease, top 0.22s ease, background 0.22s ease; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); background: var(--neon); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); background: var(--neon); }

.site-nav { display: flex; align-items: center; gap: 14px; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-list a {
  position: relative; display: block; padding: 9px 13px;
  font-size: 15px; font-weight: 800; color: var(--ink-2);
  text-decoration: none; border-radius: 2px;
  transition: background 0.18s ease, color 0.18s ease;
}
.nav-list a:hover { background: var(--paper-2); color: var(--blue); }
.nav-list a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.nav-list a[aria-current="page"]:hover { background: var(--ink); color: var(--paper); }
.nav-list a[aria-current="page"]::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 2px; background: var(--neon); }
.nav-cta { margin-left: 6px; padding: 11px 18px; font-size: 14.5px; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; top: calc(100% + 2px); left: 0; right: 0; z-index: 95;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border: 2px solid var(--ink); border-top: none;
    border-radius: 0 0 var(--r) var(--r);
    box-shadow: 0 22px 34px rgba(16, 18, 22, 0.22);
    padding: 8px 14px 18px;
    max-height: calc(100vh - var(--header-h) - 50px); overflow: auto;
  }
  .site-nav[data-open] { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a { padding: 14px 12px; font-size: 16px; border-radius: 0; border-bottom: 1px dashed var(--line-2); }
  .nav-list a[aria-current="page"] { border-bottom-color: transparent; }
  .nav-list a[aria-current="page"]::after { left: auto; right: 12px; bottom: 12px; width: 26px; }
  .nav-cta { margin: 16px 0 0; justify-content: center; padding: 14px 18px; }
}
@media (max-width: 720px) { .header-quick { display: none; } }
@media (max-width: 560px) {
  .live-text { display: none; }
  .brand-mark { width: 38px; height: 38px; font-size: 13px; }
  .brand-name { font-size: 17px; }
  .brand-tag { font-size: 10.5px; letter-spacing: 0.1em; }
}

/* ---------- 8. 页脚 ---------- */
.site-footer { position: relative; background: var(--ink); color: var(--paper); margin-top: var(--sp-6); }
.site-footer::before { content: ""; display: block; height: 6px; background: repeating-linear-gradient(90deg, var(--orange) 0 48px, var(--blue) 48px 96px, var(--neon) 96px 110px); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; padding-block: 52px 40px; }
.footer-brand .brand { color: var(--paper); }
.footer-brand .brand-name { color: var(--paper); }
.footer-brand .brand-tag { color: rgba(247, 242, 231, 0.6); }
.footer-line { margin: 16px 0 18px; font-size: 14.5px; line-height: 1.75; color: rgba(247, 242, 231, 0.72); max-width: 34em; }
.footer-contact { display: grid; gap: 9px; font-size: 13.5px; }
.footer-contact li { display: grid; grid-template-columns: 76px 1fr; gap: 10px; align-items: baseline; }
.footer-key { color: var(--neon); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; }
.footer-value { color: rgba(247, 242, 231, 0.84); word-break: break-word; }
.footer-col { display: grid; gap: 0; align-content: start; min-width: 0; }
.footer-title { position: relative; display: block; font-size: 13px; font-weight: 800; letter-spacing: 0.16em; color: var(--neon); padding-left: 12px; margin-bottom: 16px; }
.footer-title::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 3px; background: var(--orange); }
.footer-list { display: grid; gap: 10px; font-size: 14.5px; }
.footer-list a { color: rgba(247, 242, 231, 0.8); text-decoration: none; border-bottom: 1px solid transparent; padding-bottom: 1px; }
.footer-list a:hover { color: var(--white); border-bottom-color: var(--orange); }
.footer-list a:focus-visible { outline-color: var(--neon); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-top: 1px solid var(--line-inv); padding-block: 18px 26px; font-size: 12.5px; color: rgba(247, 242, 231, 0.64); }
.footer-legal p { max-width: none; }
.footer-copy { font-family: var(--font-mono); letter-spacing: 0.04em; }

.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 80;
  width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--orange); color: var(--ink); border: 2px solid var(--ink);
  border-radius: var(--r); font-size: 18px; font-weight: 900; cursor: pointer;
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity 0.22s ease, transform 0.22s ease, background 0.18s ease;
}
.to-top:hover { background: var(--neon); }
.to-top.is-active { opacity: 1; pointer-events: auto; transform: none; }

@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; padding-block: 42px 34px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } .footer-contact li { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- 9. 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border: 2px solid var(--ink); border-radius: 2px;
  background: var(--white); color: var(--ink); font-size: 15px; font-weight: 800;
  line-height: 1.1; text-decoration: none; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); color: var(--ink); }
.btn:active { transform: translate(0, 0); box-shadow: 2px 2px 0 var(--ink); }
.btn--primary { background: var(--orange); color: var(--ink); }
.btn--primary:hover { background: var(--orange); color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { color: var(--neon); }
.btn--blue { background: var(--blue); border-color: var(--blue-deep); color: #fff; }
.btn--blue:hover { color: #fff; }
.btn--ghost { background: transparent; }
.btn--sm { padding: 8px 14px; font-size: 13.5px; }

/* ---------- 10. 标签 / 斜切吊牌 ---------- */
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; background: var(--paper-2); border: 1px solid var(--line-2); color: var(--ink-2); border-radius: 2px; white-space: nowrap; }
.tag--orange { background: var(--orange); border-color: var(--orange-deep); color: var(--ink); }
.tag--blue { background: var(--blue); border-color: var(--blue-deep); color: #fff; }
.tag--neon { background: var(--neon); border-color: var(--ink); color: var(--ink); }

.label-cut { display: inline-block; padding: 5px 14px; background: var(--orange); color: var(--ink); font-size: 13px; font-weight: 900; letter-spacing: 0.04em; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.label-cut--blue { background: var(--blue); color: #fff; }
.label-cut--neon { background: var(--neon); color: var(--ink); }

/* ---------- 11. 纸层卡片 / 框景 / 看板 ---------- */
.card {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  background: var(--white); border: 2px solid var(--ink); border-radius: var(--r);
  padding: 20px; box-shadow: var(--shadow-print);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.card:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-lift); }
.card--paper { background: var(--paper-2); }
.card--flush { padding: 0; overflow: hidden; }
.card-title { font-size: 20px; font-weight: 900; letter-spacing: -0.01em; }
.card-meta { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); letter-spacing: 0.04em; }

.ruled { position: relative; border: 2px solid var(--ink); background: var(--paper); border-radius: var(--r); padding: clamp(20px, 3vw, 36px); }
.ruled::before { content: ""; position: absolute; top: -11px; left: 22px; right: 22px; height: 9px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 14px); }
.ruled::after { content: ""; position: absolute; left: -11px; top: 22px; bottom: 22px; width: 9px; background: repeating-linear-gradient(180deg, var(--ink) 0 2px, transparent 2px 14px); }

.board { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); border-radius: var(--r); padding: clamp(22px, 3vw, 40px); }
.board--deep { background: var(--ink-2); }
.board::after { content: ""; position: absolute; top: 0; bottom: 0; left: -55%; width: 45%; background: linear-gradient(100deg, transparent, rgba(255, 106, 26, 0.28), transparent); transform: skewX(-12deg); animation: kx-sweep 8s linear infinite; pointer-events: none; }
@keyframes kx-sweep { 0% { left: -55%; } 100% { left: 112%; } }
.board > * { position: relative; z-index: 1; }
.board-title { color: var(--white); }
.board .lede { color: rgba(247, 242, 231, 0.76); }
.board .card-meta, .board .stat-label { color: rgba(247, 242, 231, 0.62); }
.board a { color: var(--neon); }

/* ---------- 12. 章节头 / 文本 ---------- */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; border-bottom: 2px solid var(--ink); padding-bottom: 14px; margin-bottom: 28px; }
.section-kicker { display: block; font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.2em; color: var(--orange-deep); margin-bottom: 6px; }
.section-title { font-size: clamp(26px, 3.4vw, 40px); font-weight: 900; letter-spacing: -0.02em; }
.section-note { font-size: 13.5px; color: var(--muted); max-width: 32em; }
.lede { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.8; color: var(--muted); }

.prose { max-width: 42em; }
.prose h2 { margin-top: 1.6em; margin-bottom: 0.5em; font-size: clamp(22px, 2.6vw, 30px); }
.prose h3 { margin-top: 1.4em; margin-bottom: 0.4em; }
.prose p + p { margin-top: 1em; }
.prose ul { list-style: disc; padding-left: 1.3em; display: grid; gap: 0.5em; }

.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.crumbs li { display: flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: "/"; color: var(--line-2); }
.crumbs a { color: var(--blue-deep); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- 13. 网格 / 分屏 ---------- */
.grid { display: grid; gap: 18px; }
.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--dense { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }

.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.split--flip { grid-template-columns: 7fr 5fr; }
.split--wide { grid-template-columns: 4fr 8fr; }

@media (max-width: 960px) {
  .split, .split--flip, .split--wide { grid-template-columns: 1fr; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .grid--dense { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* ---------- 14. 图片容器 ---------- */
.media { position: relative; display: block; overflow: hidden; background: var(--paper-2); border: 2px solid var(--ink); border-radius: var(--r); }
.media img, .media svg { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.media:hover img { transform: scale(1.04); }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--3x4 { aspect-ratio: 3 / 4; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--wide { aspect-ratio: 21 / 9; }
.media--frame::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(247, 242, 231, 0.55); pointer-events: none; }
.media--placeholder {
  display: grid; place-items: center; aspect-ratio: 16 / 9; padding: 16px; text-align: center;
  background-image: repeating-linear-gradient(135deg, var(--paper-2) 0 14px, var(--paper) 14px 28px);
  color: var(--muted); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em;
}
.media--placeholder span { position: relative; background: var(--paper); border: 1px solid var(--line-2); padding: 4px 10px; border-radius: 2px; }

/* ---------- 15. 筛选按钮 ---------- */
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 22px; }
.filter-bar__label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; color: var(--muted); margin-right: 4px; }
.chip {
  appearance: none; border: 2px solid var(--ink); border-radius: 999px;
  background: var(--white); color: var(--ink);
  font-size: 14px; font-weight: 800; padding: 8px 16px; cursor: pointer; white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.chip:hover { background: var(--paper-2); transform: translateY(-1px); }
.chip[aria-pressed="true"] { background: var(--blue); border-color: var(--blue-deep); color: #fff; }
.chip[aria-pressed="true"]:hover { background: var(--blue-deep); }
.filter-count { margin-left: auto; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }

/* ---------- 16. 记分牌数字 ---------- */
.stat-row { display: flex; flex-wrap: wrap; gap: clamp(18px, 4vw, 48px); }
.stat { display: grid; gap: 2px; }
.stat-value { font-family: var(--font-mono); font-weight: 700; font-size: clamp(26px, 3vw, 40px); line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-value--glow { color: var(--neon); text-shadow: 0 0 14px rgba(195, 255, 63, 0.55); }
.stat-value--orange { color: var(--orange); text-shadow: 0 0 14px rgba(255, 106, 26, 0.5); }
.stat-label { font-size: 12.5px; letter-spacing: 0.14em; color: var(--muted); }
.board .stat-value { color: var(--white); }

.mono { font-family: var(--font-mono); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 0.03em; }
.glow-neon { color: var(--neon); text-shadow: 0 0 12px rgba(195, 255, 63, 0.6); }
.vert-note { writing-mode: vertical-rl; text-orientation: mixed; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.34em; color: var(--muted); }

/* ---------- 17. 二级吸顶导航 ---------- */
.subnav { position: sticky; top: var(--header-h); z-index: 60; background: var(--paper); border-block: 2px solid var(--ink); margin-bottom: 28px; }
.subnav-inner { display: flex; flex-wrap: wrap; gap: 4px; padding-block: 10px; overflow-x: auto; }
.subnav a { padding: 6px 12px; font-size: 14px; font-weight: 700; color: var(--ink-2); text-decoration: none; border-radius: 2px; white-space: nowrap; }
.subnav a:hover { background: var(--paper-2); color: var(--blue); }
.subnav a[aria-current="page"], .subnav a[aria-current="true"] { background: var(--blue); color: #fff; }

/* ---------- 18. 入场显现 ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.3, 1), transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1); }
html.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 19. 减少动效 ---------- */
@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; }
  html.js [data-reveal] { opacity: 1; transform: none; }
  .board::after { display: none; }
  .live-dot { animation: none; }
  .media:hover img { transform: none; }
}
