/* ===========================================================
   赛事通体育 · 共享样式表 /assets/site.css
   体系：夜场墨绿底 + 夜场蓝分区，荧光青柠作唯一数据高亮，
   冰蓝 / 暖橙点缀；大圆角胶囊、连续曲线、等宽数字。
   =========================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 108px;
}

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

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

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

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

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

a { color: inherit; }

[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid #C6F24E;
  outline-offset: 3px;
}

/* ---------- 2. Tokens ---------- */
:root {
  --ink-green: #0B1F1C;
  --night-blue: #101C2E;
  --moss-deep: #17302A;
  --cream: #F5F2E9;
  --cream-soft: #D9D6CB;
  --lime: #C6F24E;
  --ice: #7FD6E8;
  --warm: #F28A3C;
  --clay: #B4622F;
  --rock: #8E9C97;
  --steel: #A9B7C4;
  --amber: #FFD166;

  --lime-soft: rgba(198, 242, 78, .14);
  --ice-soft: rgba(127, 214, 232, .14);
  --warm-soft: rgba(242, 138, 60, .16);
  --clay-soft: rgba(180, 98, 47, .22);

  --line: rgba(245, 242, 233, .10);
  --line-strong: rgba(245, 242, 233, .22);

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

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --step-lg: clamp(40px, 6vw, 72px);
  --step-md: clamp(24px, 4vw, 40px);
  --step-sm: 24px;
}

/* ---------- 3. Base ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink-green);
  background-image:
    radial-gradient(920px 520px at 6% -8%, rgba(23, 48, 42, .95), transparent 70%),
    radial-gradient(780px 460px at 97% -4%, rgba(16, 28, 46, .92), transparent 72%);
  background-attachment: fixed;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 细颗粒噪点，只在整体最上层做 4% 叠加 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: .04;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(245, 242, 233, .7) 0 1px,
    transparent 1px 3px
  );
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--cream);
}

p { max-width: 72ch; }

main:focus { outline: none; }

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: .01em;
}

.index-num {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .12em;
  color: var(--ice);
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: .8125rem;
  color: var(--rock);
}

.divider {
  height: 1px;
  border: 0;
  margin: var(--step-md) 0;
  background: linear-gradient(90deg, var(--line-strong), rgba(245, 242, 233, 0));
}

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

/* ---------- 4. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 400;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background: var(--lime);
  color: #08201B;
  font-family: var(--font-display);
  font-size: .875rem;
  font-weight: 800;
  text-decoration: none;
  transform: translate(-50%, -180%);
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

/* ---------- 5. 悬浮胶囊页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  padding: 10px clamp(12px, 3vw, 28px) 0;
  background: linear-gradient(
    to bottom,
    rgba(11, 31, 28, .95) 14%,
    rgba(11, 31, 28, 0)
  );
  transition: padding .28s ease;
}

.site-header[data-compact="true"] { padding-top: 6px; }

.header-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(23, 48, 42, .84);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  transition: padding .28s ease, background .28s ease, box-shadow .28s ease;
}

.site-header[data-compact="true"] .header-shell {
  padding: 5px 8px;
  background: rgba(16, 28, 46, .9);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .42);
}

/* 品牌浮岛 */
.brand-island {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 5px 16px 5px 5px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  color: var(--cream);
  transition: background .2s ease;
}

.brand-island:hover { background: rgba(245, 242, 233, .07); }

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--lime);
  color: #07201B;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  overflow: hidden;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-season {
  max-height: 18px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .06em;
  color: var(--ice);
  white-space: nowrap;
  transition: opacity .2s ease, max-height .24s ease;
}

.site-header[data-compact="true"] .brand-name { display: none; }
.site-header[data-compact="true"] .brand-season { opacity: 0; max-height: 0; }

/* 栏目胶囊 */
.primary-nav { margin-left: auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-list a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: .9375rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  color: var(--cream-soft);
  transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}

.nav-list a:hover {
  color: var(--cream);
  background: rgba(245, 242, 233, .08);
}

.nav-list a[aria-current="page"] {
  color: var(--lime);
  background: var(--lime-soft);
  box-shadow: inset 0 0 0 1px rgba(198, 242, 78, .45);
}

/* 右侧工具区 */
.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin-left: 12px;
}

.site-search {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: clamp(124px, 16vw, 188px);
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(16, 28, 46, .72);
  color: var(--cream);
  font-size: .8125rem;
  transition: width .28s ease, border-color .2s ease;
}

.search-input::placeholder { color: var(--rock); }

.search-input:hover { border-color: var(--line-strong); }

.search-input:focus {
  outline: none;
  border-color: rgba(127, 214, 232, .65);
  box-shadow: 0 0 0 3px var(--ice-soft);
}

.search-input:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; }

.site-header[data-compact="true"] .search-input {
  width: 108px;
  padding-left: 12px;
  padding-right: 12px;
}

.search-count {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--night-blue);
  color: var(--ice);
  font-family: var(--font-mono);
  font-size: .6875rem;
  white-space: nowrap;
  pointer-events: none;
}

.search-count:empty { display: none; }

/* 快捷胶囊 */
.quick-entries {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: .8125rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  color: var(--cream-soft);
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}

.pill:hover {
  color: var(--cream);
  border-color: var(--line-strong);
  background: rgba(245, 242, 233, .07);
}

.pill-ghost { color: var(--steel); }

.pill-solid {
  background: var(--lime);
  border-color: transparent;
  color: #07201B;
  font-weight: 800;
}

.pill-solid:hover {
  background: #D6FF66;
  border-color: transparent;
  color: #07201B;
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--warm);
  box-shadow: 0 0 0 3px var(--warm-soft);
}

.site-header[data-compact="true"] .quick-entries > li:first-child { display: none; }

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(16, 28, 46, .62);
  color: var(--cream);
  font-size: .8125rem;
  font-weight: 700;
}

.nav-toggle-lines {
  position: relative;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .22s ease, top .22s ease;
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle-lines { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines::after { top: 0; transform: rotate(-45deg); }

/* 顶部阅读进度 */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--lime), var(--ice));
  pointer-events: none;
  will-change: transform;
}

/* ---------- 6. 章节刻度轨 ---------- */
.section-rail {
  position: fixed;
  top: 50%;
  right: clamp(8px, 1.2vw, 18px);
  z-index: 90;
  display: grid;
  gap: 10px;
  padding: 14px 10px;
  transform: translateY(-50%);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(16, 28, 46, .74);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.section-rail:empty { display: none; }

.rail-item {
  display: block;
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  background: rgba(245, 242, 233, .22);
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.rail-item:hover { background: rgba(127, 214, 232, .7); }

.rail-item[aria-current="true"] {
  background: var(--lime);
  box-shadow: 0 0 0 4px var(--lime-soft);
  transform: scale(1.15);
}

@media (max-width: 1439px) {
  .section-rail { display: none; }
}

/* ---------- 7. 布局工具 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--step-md); }
.section--lg { padding-block: var(--step-lg); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: var(--step-md);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ice);
}

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

.section-dek {
  max-width: 46ch;
  margin-top: 10px;
  font-size: .9375rem;
  color: var(--steel);
}

.grid { display: grid; gap: var(--step-sm); }
.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)); }

.split-7-5,
.split-8-4,
.split-5-7 {
  display: grid;
  gap: var(--step-md);
  align-items: start;
}

.split-7-5 { grid-template-columns: 7fr 5fr; }
.split-8-4 { grid-template-columns: 8fr 4fr; }
.split-5-7 { grid-template-columns: 5fr 7fr; }

/* ---------- 8. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: rgba(245, 242, 233, .04);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: .9375rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform .18s ease, background .2s ease, color .2s ease,
    border-color .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: var(--lime);
  color: var(--lime);
}

.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--lime);
  border-color: transparent;
  color: #08201B;
}

.btn-primary:hover {
  background: #D6FF66;
  border-color: transparent;
  color: #08201B;
}

.btn-ice {
  border-color: rgba(127, 214, 232, .5);
  background: var(--ice-soft);
  color: var(--ice);
}

.btn-ice:hover {
  border-color: var(--ice);
  background: rgba(127, 214, 232, .22);
  color: var(--ice);
}

/* ---------- 9. 面包屑与正文 ---------- */
.breadcrumb { padding-block: 18px 4px; }

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: .8125rem;
  color: var(--rock);
}

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

.breadcrumb-list li + li::before {
  content: "/";
  color: rgba(142, 156, 151, .55);
}

.breadcrumb-list a {
  text-decoration: none;
  color: var(--steel);
}

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

.breadcrumb-current {
  color: var(--cream);
  font-weight: 600;
}

.content-body { max-width: 74ch; }

.content-body > * + * { margin-top: 1.15em; }

.content-body > h2 { margin-top: 2.4em; }

.content-body h2 { font-size: clamp(1.25rem, 2vw, 1.7rem); }

.content-body > h3 { margin-top: 1.9em; }

.content-body h3 { font-size: 1.125rem; }

.content-body p { color: var(--cream-soft); }

.content-body ul,
.content-body ol {
  display: grid;
  gap: .5em;
  padding-left: 1.35em;
}

.content-body ul { list-style: disc; }
.content-body ol { list-style: decimal; }
.content-body li { color: var(--cream-soft); }
.content-body strong { color: var(--cream); }
.content-body a { color: var(--ice); text-underline-offset: 3px; }

.lead {
  max-width: 60ch;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.7;
  color: var(--cream);
}

/* ---------- 10. 卡片 ---------- */
.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(23, 48, 42, .88), rgba(16, 28, 46, .74));
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(220px 140px at 100% 0%, rgba(198, 242, 78, .07), transparent 70%);
}

.card-meta {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .06em;
  color: var(--rock);
}

.card-title {
  margin-top: 8px;
  font-size: 1.0625rem;
}

.card-body {
  margin-top: 10px;
  font-size: .9375rem;
  color: var(--cream-soft);
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.card-link {
  font-size: .875rem;
  font-weight: 700;
  color: var(--lime);
  text-decoration: none;
}

.card-link:hover { text-decoration: underline; }

/* ---------- 11. 比分条 ---------- */
.score-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(16, 28, 46, .74);
}

.score-team {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .9375rem;
  font-weight: 700;
  color: var(--cream);
}

.score-team--away {
  justify-content: flex-end;
  text-align: right;
}

.score-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--cream);
}

.score-bar--live {
  border-color: rgba(198, 242, 78, .5);
  box-shadow: 0 0 0 1px rgba(198, 242, 78, .18);
}

@media (prefers-reduced-motion: no-preference) {
  .score-bar--live { animation: pulseRing 2s ease-in-out infinite; }
}

@keyframes pulseRing {
  0%, 100% {
    box-shadow: 0 0 0 1px rgba(198, 242, 78, .18), 0 0 16px rgba(198, 242, 78, .08);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(198, 242, 78, .52), 0 0 26px rgba(198, 242, 78, .22);
  }
}

.score-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .08em;
}

.score-state--live {
  background: var(--warm-soft);
  color: var(--warm);
}

.score-state--final {
  background: rgba(142, 156, 151, .16);
  color: var(--rock);
}

.score-star {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--rock);
  transition: color .18s ease, border-color .18s ease, background .18s ease,
    transform .18s ease;
}

.score-star:hover {
  color: var(--warm);
  border-color: rgba(242, 138, 60, .45);
}

.score-star.is-active,
.score-star[aria-pressed="true"] {
  color: var(--warm);
  border-color: rgba(242, 138, 60, .65);
  background: var(--warm-soft);
  transform: scale(1.05);
}

/* ---------- 12. 时间轴 ---------- */
.timeline {
  position: relative;
  display: grid;
  padding-left: 26px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 6px;
  width: 1px;
  background: linear-gradient(to bottom, var(--ice), rgba(127, 214, 232, .1));
}

.timeline-item {
  position: relative;
  padding: 14px 0 14px 18px;
}

.timeline-mark {
  position: absolute;
  top: 20px;
  left: -26px;
  width: 13px;
  height: 13px;
  border: 2px solid var(--ice);
  border-radius: 50%;
  background: var(--ink-green);
}

.timeline-item--warm .timeline-mark { border-color: var(--warm); }

.timeline-time {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: .75rem;
  letter-spacing: .06em;
  color: var(--rock);
}

.timeline-body {
  margin-top: 4px;
  font-size: .9375rem;
  color: var(--cream-soft);
}

/* ---------- 13. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.6;
}

.tag-lime {
  background: var(--lime-soft);
  border-color: rgba(198, 242, 78, .35);
  color: var(--lime);
}

.tag-ice {
  background: var(--ice-soft);
  border-color: rgba(127, 214, 232, .35);
  color: var(--ice);
}

.tag-warm {
  background: var(--warm-soft);
  border-color: rgba(242, 138, 60, .38);
  color: var(--warm);
}

.tag-clay {
  background: var(--clay-soft);
  border-color: rgba(180, 98, 47, .48);
  color: #E3A87C;
}

.tag-rock {
  background: rgba(142, 156, 151, .14);
  border-color: rgba(142, 156, 151, .32);
  color: var(--rock);
}

/* ---------- 14. 图片容器（页面阶段放入 img / picture） ---------- */
.img-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(150deg, rgba(23, 48, 42, .96), rgba(16, 28, 46, .9));
  overflow: hidden;
  isolation: isolate;
}

.img-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 50% 118%, rgba(198, 242, 78, .1), transparent 62%),
    repeating-linear-gradient(90deg, rgba(245, 242, 233, .05) 0 1px, transparent 1px 54px),
    repeating-linear-gradient(0deg, rgba(245, 242, 233, .04) 0 1px, transparent 1px 54px);
}

.img-frame::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  border: 1px dashed rgba(127, 214, 232, .3);
  border-radius: 50%;
  pointer-events: none;
}

.img-frame img,
.img-frame picture {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.img-caption {
  margin-top: 10px;
  font-size: .8125rem;
  color: var(--rock);
}

/* ---------- 15. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: var(--step-lg);
  padding: clamp(40px, 6vw, 72px) 0 28px;
  border-top: 1px solid var(--line);
  background: var(--night-blue);
  color: var(--cream-soft);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  opacity: .9;
  background: linear-gradient(
    90deg,
    var(--lime) 0%,
    var(--ice) 38%,
    var(--clay) 70%,
    var(--warm) 100%
  );
}

.footer-shell {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) 2fr;
  gap: clamp(32px, 5vw, 72px);
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--cream);
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.footer-season {
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .08em;
  color: var(--ice);
}

.footer-tagline {
  margin-top: 14px;
  font-size: .875rem;
  color: var(--steel);
}

.footer-contact-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.footer-contact-item { display: grid; gap: 2px; }

.footer-label {
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .1em;
  color: var(--rock);
}

.footer-value {
  font-size: .8125rem;
  line-height: 1.6;
  color: var(--cream-soft);
  word-break: break-word;
}

.footer-response {
  margin-top: 16px;
  font-size: .75rem;
  line-height: 1.7;
  color: var(--rock);
}

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

.footer-title {
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--rock);
}

.footer-links {
  display: grid;
  gap: 11px;
  margin-top: 18px;
}

.footer-links a {
  font-size: .875rem;
  text-decoration: none;
  color: var(--cream-soft);
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}

.footer-links a:hover {
  color: var(--lime);
  border-bottom-color: rgba(198, 242, 78, .5);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  max-width: var(--wrap);
  margin: clamp(32px, 5vw, 56px) auto 0;
  padding: 20px var(--gutter) 0;
  border-top: 1px solid var(--line);
  font-size: .8125rem;
  color: var(--steel);
}

.footer-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: 62ch;
}

.footer-icp {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--rock);
}

/* ---------- 16. 响应式 ---------- */
@media (max-width: 1200px) {
  .nav-list a { padding: 8px 11px; font-size: .875rem; }
  .pill { padding: 8px 12px; }
}

@media (max-width: 1080px) {
  .header-shell {
    flex-wrap: wrap;
    row-gap: 8px;
    padding: 8px 10px;
  }

  .brand-island { order: 1; padding-right: 10px; }

  .nav-toggle {
    display: inline-flex;
    order: 2;
    margin-left: auto;
  }

  .header-tools {
    order: 3;
    flex: 1 0 100%;
    justify-content: center;
    margin-left: 0;
  }

  .site-search { display: none; }

  .quick-entries { justify-content: center; }

  .primary-nav {
    order: 4;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(16, 28, 46, .97);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, .5);
    transition: max-height .3s ease, opacity .2s ease, transform .3s ease,
      visibility .3s ease;
  }

  .site-header[data-open="true"] .primary-nav {
    max-height: 72vh;
    overflow: auto;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px;
  }

  .nav-list a {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: .9375rem;
  }

  .split-7-5,
  .split-8-4,
  .split-5-7 { grid-template-columns: 1fr; }

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

  .footer-shell { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-dek { max-width: 100%; }

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

  .score-bar {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 6px;
  }

  .score-team--away { justify-content: flex-start; text-align: left; }
}

@media (max-width: 460px) {
  .footer-columns { grid-template-columns: 1fr; }

  .quick-entries .pill {
    padding: 7px 11px;
    font-size: .75rem;
  }

  .brand-name { font-size: .9375rem; }
}

/* ---------- 17. 动效降级 ---------- */
@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;
  }

  .btn:hover,
  .score-star.is-active,
  .rail-item[aria-current="true"] { transform: none; }
}
