/* ============================================================
   168体育赛 — /assets/site.css
   共享外壳：reset / 变量 / 中文排版 / 头部 / 页脚 / 基础组件
   ============================================================ */

:root {
  --pitch-900: #08251C;
  --pitch-600: #17694B;
  --pitch-700: #125640;
  --turf-300: #4FB07E;
  --turf-050: #E8F2EC;
  --chalk: #F6F8F6;
  --card-red: #D62B31;
  --card-yellow: #F5C518;
  --card-yellow-dark: #DCB110;
  --ink-900: #0E1512;
  --slate-500: #5A6A64;
  --line-300: #C9D8D0;

  --rail-w: 76px;
  --content-max: 1240px;
  --gutter: clamp(1rem, 3.2vw, 2.6rem);
  --dur: 160ms;

  --font-display: "Barlow Condensed", "Noto Sans SC", "PingFang SC", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, "SFMono-Regular", "Courier New", monospace;
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--chalk);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button { font: inherit; color: inherit; }

a {
  color: var(--pitch-600);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover { color: var(--pitch-700); }

/* ---------- 中文排版三级节奏 ---------- */
h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  color: var(--ink-900);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.02;
}

h2 {
  font-family: var(--font-display);
  font-size: 1.9rem;
}

h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

p { margin: 0 0 1em; }

strong { font-weight: 700; }

small { font-size: 0.82rem; color: var(--slate-500); }

code, kbd, samp, .num {
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0;
}

hr {
  border: 0;
  border-top: 1px solid var(--line-300);
  margin: 2rem 0;
}

/* ---------- focus ---------- */
:where(a, button, input, select, summary, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--card-red);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 300;
  padding: 0.6rem 1rem;
  background: var(--pitch-900);
  color: var(--chalk);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border-radius: 2px;
  transform: translateY(-160%);
  transition: transform var(--dur) ease;
}

.skip-link:focus {
  transform: translateY(0);
  color: var(--chalk);
}

/* ============================================================
   外壳布局：左轨 + 正文
   ============================================================ */
.site-shell {
  display: grid;
  grid-template-columns: var(--rail-w) minmax(0, 1fr);
  min-height: 100vh;
}

.site-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* ---------- 品牌轨道 ---------- */
.brand-rail {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 0 1.6rem;
  background: var(--pitch-900);
  color: var(--chalk);
  border-right: 1px solid rgba(246, 248, 246, 0.12);
  z-index: 70;
}

.rail-mark {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.2em;
  color: var(--chalk);
  text-decoration: none;
  padding: 0.2rem 0;
}

.rail-mark:hover { color: var(--turf-300); }

.rail-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.rail-dots {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.3rem;
  border-top: 1px solid rgba(246, 248, 246, 0.18);
}

.rail-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: block;
}

.rail-dot--a { background: var(--turf-300); }

.rail-dot--b { background: var(--card-yellow); }

.rail-legend {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-align: center;
  color: rgba(246, 248, 246, 0.62);
}

/* ============================================================
   头部
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--chalk);
  border-bottom: 1px solid var(--line-300);
  transition: box-shadow var(--dur) ease;
}

.site-header::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--pitch-600) 0 62%,
    var(--card-yellow) 62% 100%
  );
}

.site-header[data-scrolled] {
  box-shadow: 0 10px 26px rgba(8, 37, 28, 0.09);
}

.header-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  display: block;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--pitch-600), var(--turf-300) 58%, var(--card-yellow));
  pointer-events: none;
  z-index: 2;
}

/* ---------- 刊头 ---------- */
.masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: clamp(0.7rem, 1.6vw, 1.05rem) var(--gutter) clamp(0.5rem, 1.2vw, 0.8rem);
  transition: padding var(--dur) ease;
}

.site-header[data-scrolled] .masthead {
  padding-top: 0.45rem;
  padding-bottom: 0.35rem;
}

.masthead-start { justify-self: start; }

.masthead-end {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.season-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.22rem 0.55rem;
  background: var(--turf-050);
  border: 1px solid var(--line-300);
  border-radius: 2px;
  color: var(--pitch-600);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.season-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--turf-300);
}

.brand {
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--pitch-900);
}

.brand:hover { color: var(--pitch-600); }

.brand-name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
}

.brand-sub {
  margin-top: 0.32rem;
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: var(--slate-500);
  white-space: nowrap;
}

/* ---------- 路径 chip ---------- */
.path-switch {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.path-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.72rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur) ease, border-color var(--dur) ease,
    color var(--dur) ease, transform var(--dur) ease;
}

.path-chip:hover { transform: translateY(-1px); }

.path-chip--a {
  background: var(--pitch-600);
  color: #fff;
}

.path-chip--a:hover {
  background: var(--pitch-700);
  color: #fff;
}

.path-chip--b {
  background: var(--card-yellow);
  color: var(--ink-900);
  border-color: var(--card-yellow-dark);
}

.path-chip--b:hover {
  background: #E6B713;
  color: var(--ink-900);
}

/* ---------- 移动导航按钮 ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0.35rem 0.7rem;
  background: transparent;
  border: 1px solid var(--line-300);
  border-radius: 2px;
  color: var(--pitch-900);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color var(--dur) ease, background-color var(--dur) ease;
}

.nav-toggle:hover { border-color: var(--pitch-600); }

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: background-color var(--dur) ease;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: transform var(--dur) ease, top var(--dur) ease;
}

.nav-toggle-bars::before { top: -5px; }

.nav-toggle-bars::after { top: 5px; }

.nav-toggle.is-open .nav-toggle-bars { background: transparent; }

.nav-toggle.is-open .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-toggle-label { line-height: 1; }

/* ---------- 主导航 ---------- */
.primary-nav {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 var(--gutter);
  border-top: 1px solid var(--line-300);
}

.nav-list {
  display: flex;
  align-items: stretch;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-list::-webkit-scrollbar { display: none; }

.nav-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.85rem;
  border-bottom: 2px solid transparent;
  color: var(--slate-500);
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur) ease, border-color var(--dur) ease,
    background-color var(--dur) ease;
}

.nav-link:hover {
  color: var(--pitch-900);
  background: var(--turf-050);
  border-bottom-color: var(--turf-300);
}

.nav-link[aria-current="page"] {
  color: var(--pitch-900);
  font-weight: 700;
  border-bottom-color: var(--card-red);
}

.nav-tools {
  display: flex;
  align-items: stretch;
  gap: 0.4rem;
  flex: 0 0 auto;
}

.nav-tool {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.75rem;
  border-left: 1px solid var(--line-300);
  color: var(--slate-500);
  font-size: 0.85rem;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur) ease, background-color var(--dur) ease;
}

.nav-tool:hover {
  color: var(--pitch-600);
  background: var(--turf-050);
}

.nav-tool--accent {
  color: var(--pitch-600);
  font-weight: 700;
}

@media (max-width: 1240px) {
  .path-chip { padding: 0.38rem 0.6rem; font-size: 0.82rem; }
  .nav-link { padding: 0 0.68rem; font-size: 0.92rem; }
}

/* ============================================================
   移动 / 平板断点
   ============================================================ */
@media (max-width: 900px) {
  .site-shell { grid-template-columns: minmax(0, 1fr); }

  .brand-rail {
    position: static;
    height: auto;
    min-height: 44px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 var(--gutter);
    border-right: 0;
    border-bottom: 1px solid rgba(246, 248, 246, 0.14);
  }

  .rail-mark {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    letter-spacing: 0.12em;
    font-size: 0.98rem;
  }

  .rail-meta {
    flex-direction: row;
    align-items: center;
    gap: 0.7rem;
  }

  .rail-dots {
    flex-direction: row;
    padding: 0;
    border-top: 0;
    border-left: 1px solid rgba(246, 248, 246, 0.2);
    padding-left: 0.7rem;
  }

  .rail-legend {
    font-size: 0.62rem;
    line-height: 1.2;
    text-align: left;
  }

  .rail-legend br { display: none; }

  .rail-legend::after { content: " 路径"; }

  .masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .masthead-start { display: none; }

  .path-switch { display: none; }

  .brand { justify-self: start; align-items: flex-start; }

  .brand-sub { font-size: 0.6rem; letter-spacing: 0.24em; }

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

  .primary-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 72vh;
    overflow-y: auto;
    padding: 0.4rem var(--gutter) 1rem;
    background: var(--chalk);
    border-top: 1px solid var(--line-300);
  }

  .primary-nav[data-open] { display: flex; }

  .nav-list {
    flex-direction: column;
    overflow: visible;
  }

  .nav-link {
    min-height: 48px;
    padding: 0 0.25rem;
    border-bottom: 1px solid var(--line-300);
    border-left: 3px solid transparent;
    font-size: 1rem;
  }

  .nav-link:hover { background: transparent; }

  .nav-link[aria-current="page"] {
    padding-left: 0.65rem;
    background: var(--turf-050);
    border-bottom-color: var(--line-300);
    border-left-color: var(--card-red);
  }

  .nav-tools {
    flex-direction: row;
    gap: 1.25rem;
    padding-top: 0.85rem;
  }

  .nav-tool {
    min-height: 40px;
    padding: 0;
    border-left: 0;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .brand-name { font-size: 1.35rem; }
  .nav-toggle-label { display: none; }
  .nav-toggle { padding: 0.35rem 0.55rem; }
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: clamp(2.5rem, 6vw, 5rem);
  background: var(--pitch-900);
  color: rgba(246, 248, 246, 0.78);
}

.footer-band {
  display: flex;
  height: 5px;
}

.footer-band-a {
  flex: 0 0 62%;
  background: var(--turf-300);
}

.footer-band-b {
  flex: 1 1 auto;
  background: var(--card-yellow);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: clamp(1.5rem, 3vw, 2.75rem);
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3rem) var(--gutter);
  border-bottom: 1px solid rgba(246, 248, 246, 0.12);
}

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

.footer-mark {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--chalk);
  text-decoration: none;
}

.footer-mark:hover { color: var(--card-yellow); }

.footer-note {
  margin: 0;
  max-width: 26rem;
  font-size: 0.86rem;
  line-height: 1.7;
  color: rgba(246, 248, 246, 0.64);
}

.footer-icp {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  color: var(--turf-300);
}

.footer-col-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--card-yellow);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-list a {
  color: rgba(246, 248, 246, 0.78);
  font-size: 0.92rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) ease, border-color var(--dur) ease;
}

.footer-list a:hover {
  color: var(--chalk);
  border-bottom-color: var(--turf-300);
}

.footer-contact li {
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(246, 248, 246, 0.7);
  word-break: break-word;
}

.footer-contact a { color: var(--chalk); }

.footer-legal {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 1.15rem var(--gutter) 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  font-size: 0.76rem;
  line-height: 1.7;
  color: rgba(246, 248, 246, 0.55);
}

.footer-legal p { margin: 0; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.footer-links a {
  color: rgba(246, 248, 246, 0.7);
  text-decoration: none;
  border-bottom: 1px solid rgba(246, 248, 246, 0.28);
  transition: color var(--dur) ease, border-color var(--dur) ease;
}

.footer-links a:hover {
  color: var(--card-yellow);
  border-bottom-color: var(--card-yellow);
}

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col--contact { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; }
  .footer-links { margin-left: 0; }
}

/* ---------- 回到顶部 ---------- */
.to-top {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.8rem;
  background: var(--chalk);
  border: 1px solid var(--line-300);
  border-radius: 2px;
  color: var(--pitch-900);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--dur) ease, transform var(--dur) ease,
    visibility var(--dur) ease, border-color var(--dur) ease;
}

.to-top::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 6px solid currentColor;
}

.to-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover { border-color: var(--pitch-600); }

/* ============================================================
   通用页面容器与骨架
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.page-main {
  display: block;
  flex: 1 1 auto;
}

#main-content { scroll-margin-top: 6rem; }

.section { padding-block: clamp(2rem, 5vw, 3.6rem); }

.section--tight { padding-block: clamp(1.25rem, 3vw, 2rem); }

.section--dense { padding-block: clamp(0.75rem, 2vw, 1.25rem); }

.prose { max-width: 46rem; }

.prose p { margin-bottom: 1.1em; }

.lede {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  line-height: 1.8;
  color: var(--slate-500);
  max-width: 42rem;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--pitch-600);
}

.rule {
  height: 1px;
  border: 0;
  background: var(--line-300);
  margin: 0;
}

/* ---------- 页面标题区 + 路径徽标 ---------- */
.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem 1rem;
  padding-block: clamp(1.6rem, 4vw, 2.8rem) clamp(0.8rem, 2vw, 1.4rem);
}

.page-head h1 { margin: 0; }

.path-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.5rem;
  border: 1px solid var(--line-300);
  border-radius: 2px;
  background: var(--turf-050);
  color: var(--pitch-600);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.path-badge--b {
  background: var(--card-yellow);
  border-color: var(--card-yellow-dark);
  color: var(--ink-900);
}

.path-badge--shared {
  background: transparent;
  color: var(--slate-500);
}

/* ---------- 面包屑 ---------- */
.breadcrumb { padding-block: 0.9rem 0; }

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--slate-500);
}

.breadcrumb-item { display: inline-flex; align-items: center; gap: 0.4rem; }

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: var(--line-300);
}

.breadcrumb-list a {
  color: var(--slate-500);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) ease, border-color var(--dur) ease;
}

.breadcrumb-list a:hover {
  color: var(--pitch-600);
  border-bottom-color: var(--turf-300);
}

.breadcrumb-list [aria-current="page"] { color: var(--ink-900); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.66rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur) ease, color var(--dur) ease,
    border-color var(--dur) ease, transform var(--dur) ease;
}

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

.btn--primary {
  background: var(--pitch-600);
  color: #fff;
}

.btn--primary:hover {
  background: var(--pitch-700);
  color: #fff;
}

.btn--legacy {
  background: var(--card-yellow);
  color: var(--ink-900);
  border-color: var(--card-yellow-dark);
}

.btn--legacy:hover {
  background: #E6B713;
  color: var(--ink-900);
}

.btn--ghost {
  background: transparent;
  color: var(--pitch-900);
  border-color: var(--line-300);
}

.btn--ghost:hover {
  color: var(--pitch-600);
  border-color: var(--pitch-600);
}

/* ---------- 展签牌 ---------- */
.card {
  position: relative;
  padding: clamp(1rem, 2vw, 1.4rem);
  background: var(--chalk);
  border: 1px solid var(--line-300);
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(8, 37, 28, 0.05);
  transition: transform var(--dur) ease, border-color var(--dur) ease,
    box-shadow var(--dur) ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--turf-300);
  box-shadow: 0 8px 22px rgba(8, 37, 28, 0.09);
}

.card h3 { margin-bottom: 0.4rem; }

.card p { margin-bottom: 0; color: var(--slate-500); font-size: 0.92rem; }

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.14rem 0.46rem;
  border-radius: 2px;
  background: var(--turf-050);
  border: 1px solid var(--line-300);
  color: var(--pitch-600);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.tag--red {
  background: var(--card-red);
  border-color: var(--card-red);
  color: #fff;
}

.tag--yellow {
  background: var(--card-yellow);
  border-color: var(--card-yellow-dark);
  color: var(--ink-900);
}

/* ---------- 比分牌横条 ---------- */
.score-strip {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 0.9rem;
  background: var(--pitch-900);
  color: var(--chalk);
  border-radius: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.score-strip::-webkit-scrollbar { display: none; }

.score-strip-value {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  flex: 0 0 auto;
}

.score-strip-label {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(246, 248, 246, 0.66);
  white-space: nowrap;
  flex: 0 0 auto;
}

/* ---------- 图片容器基础规则 ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-300);
  border-radius: 2px;
  background:
    linear-gradient(118deg, transparent 47%, rgba(79, 176, 126, 0.22) 47% 48%, transparent 48%),
    linear-gradient(135deg, rgba(23, 105, 75, 0.08), rgba(245, 197, 24, 0.12)),
    var(--turf-050);
}

.media-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--tall { aspect-ratio: 3 / 4; }

.media-frame--wide { aspect-ratio: 21 / 9; }

.media-frame--diagonal {
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
}

.media-frame figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 0.4rem 0.6rem;
  background: rgba(8, 37, 28, 0.82);
  color: rgba(246, 248, 246, 0.86);
  font-size: 0.74rem;
  line-height: 1.5;
}

/* ---------- 网格 ---------- */
.grid {
  display: grid;
  gap: clamp(1rem, 2.4vw, 1.8rem);
}

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

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

.grid--asym { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }

@media (max-width: 900px) {
  .grid--2,
  .grid--3,
  .grid--asym { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 显现 ---------- */
[data-reveal].reveal-wait {
  opacity: 0;
  transform: translateY(10px);
}

[data-reveal].reveal-in {
  opacity: 1;
  transform: none;
  transition: opacity 320ms ease, transform 320ms ease;
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  .path-chip:hover,
  .card:hover,
  .btn:active { transform: none; }

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