/* ==========================================================================
   必一赛场 · 共享样式 /assets/site.css
   夜间球场指挥台：深墨绿外壳 + 暖纸色纸面 + 荧光柠檬黄哨声标记
   ========================================================================== */

:root {
  --ink: #0B1F1A;
  --night: #0A1B2A;
  --grass: #1F6B45;
  --lime: #D7FF3F;
  --steel: #C7D0CC;
  --paper: #F2E9D8;
  --mist: #E9EFEA;
  --moss: #16352A;
  --signal: #FF6B35;
  --ink-soft: #12211C;

  --font-display: "Barlow Condensed", "Oswald", "Noto Sans SC", "PingFang SC", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "Roboto Mono", "Noto Sans Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-body: "Noto Sans SC", "Source Han Sans SC", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;

  --shell: 1240px;
  --gutter: clamp(16px, 4vw, 44px);
  --rule: 2px;
  --shadow-hard: 8px 8px 0 rgba(0, 0, 0, .34);
  --shadow-soft: 6px 6px 0 rgba(0, 0, 0, .28);
  --header-h: 70px;
}

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

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

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    radial-gradient(120% 70% at 100% 0%, rgba(31, 107, 69, .26), transparent 58%),
    radial-gradient(90% 60% at 0% 100%, rgba(10, 27, 42, .9), transparent 62%);
  background-attachment: fixed;
  color: var(--mist);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: .012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button { font: inherit; color: inherit; background: none; border: 0; }

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

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: .02em;
  color: var(--mist);
}

a { color: inherit; text-decoration: none; }
strong { font-weight: 700; color: var(--paper); }

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

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

.section { padding-block: clamp(32px, 5.5vw, 72px); }
.page-body { padding-block: clamp(20px, 3.6vw, 44px); }

.grid { display: grid; gap: clamp(14px, 2.4vw, 28px); }
.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)); }

/* ---------- 排版工具 ---------- */
.display-xl {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 7vw, 86px);
  line-height: .96;
  letter-spacing: .01em;
  color: var(--mist);
}

.h-section {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 3.2vw, 40px);
  line-height: 1.06;
  letter-spacing: .02em;
}

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

/* ---------- 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  transform: translateY(-200%);
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .04em;
  padding: 10px 18px;
  border: var(--rule) solid var(--ink);
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: var(--rule) solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 5px 5px 0 rgba(31, 107, 69, .8);
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, color .16s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 rgba(31, 107, 69, .95); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(31, 107, 69, .95); }

.btn--lime {
  background: var(--lime);
  border-color: var(--ink);
  color: var(--ink);
}
.btn--lime:hover { background: #e4ff6b; }

.btn--ghost {
  background: transparent;
  border-color: var(--steel);
  color: var(--mist);
  box-shadow: 5px 5px 0 rgba(199, 208, 204, .18);
}
.btn--ghost:hover {
  border-color: var(--lime);
  color: var(--lime);
  box-shadow: 7px 7px 0 rgba(215, 255, 63, .26);
}

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--grass);
  background: rgba(31, 107, 69, .26);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  line-height: 1.6;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag--lime {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
  font-weight: 700;
}
.tag--signal {
  background: rgba(255, 107, 53, .16);
  border-color: var(--signal);
  color: #FFB79E;
}

/* ---------- 卡片容器 ---------- */
.archive-card {
  background: var(--paper);
  color: var(--ink-soft);
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 rgba(31, 107, 69, .85);
  padding: clamp(16px, 2.2vw, 26px);
}
.archive-card h2,
.archive-card h3 { color: var(--ink); }
.archive-card a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.panel {
  background: var(--moss);
  border: var(--rule) solid var(--grass);
  box-shadow: var(--shadow-soft);
  padding: clamp(16px, 2.4vw, 28px);
  color: var(--mist);
}

/* ---------- 图片容器基础规则 ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  margin: 0;
  border: 3px solid var(--grass);
  background-color: var(--night);
  background-image:
    radial-gradient(120% 90% at 70% 0%, rgba(215, 255, 63, .16), transparent 60%),
    repeating-linear-gradient(90deg, rgba(199, 208, 204, .08) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(199, 208, 204, .08) 0 1px, transparent 1px 64px);
  box-shadow: var(--shadow-hard);
}
.media-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame > figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: 100%;
  padding: 8px 12px;
  background: rgba(11, 31, 26, .88);
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .09em;
  line-height: 1.5;
}
.media-frame--paper {
  background-color: var(--paper);
  background-image: none;
  border-color: var(--ink);
  box-shadow: 8px 8px 0 rgba(31, 107, 69, .85);
}

.ratio-1x1 { aspect-ratio: 1 / 1; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-21x9 { aspect-ratio: 21 / 9; }

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding-block: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: rgba(199, 208, 204, .7);
}
.breadcrumb a {
  color: var(--steel);
  border-bottom: 1px solid transparent;
  transition: color .16s ease, border-color .16s ease;
}
.breadcrumb a:hover { color: var(--lime); border-bottom-color: var(--lime); }
.breadcrumb__sep { color: rgba(199, 208, 204, .38); }
.breadcrumb [aria-current="page"] { color: var(--lime); }

/* ---------- 长文正文 ---------- */
.prose {
  max-width: 70ch;
  font-size: 16px;
  line-height: 1.85;
  color: #DCE5E0;
}
.prose p + p { margin-top: 1em; }
.prose h2 {
  margin-top: 1.8em;
  font-size: clamp(22px, 2.6vw, 30px);
  color: var(--mist);
}
.prose h3 {
  margin-top: 1.4em;
  font-size: clamp(18px, 2vw, 22px);
  color: var(--lime);
}
.prose ul {
  margin-top: .9em;
  padding-left: 1.25em;
  list-style: disc;
  display: grid;
  gap: .4em;
}
.prose a {
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose blockquote {
  margin: 1.6em 0;
  padding: 14px 18px;
  border-left: 4px solid var(--lime);
  background: rgba(31, 107, 69, .2);
  color: var(--mist);
}

/* ==========================================================================
   页头
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  padding-top: 3px;
  background: var(--ink);
  background-image: linear-gradient(90deg, rgba(31, 107, 69, .34), transparent 52%);
  border-bottom: 3px solid var(--grass);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(90deg, rgba(199, 208, 204, .045) 0 1px, transparent 1px 76px);
}

.read-progress {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  overflow: hidden;
  background: rgba(199, 208, 204, .16);
}
.read-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--grass), var(--lime));
  transition: transform .12s linear;
}

.header-shell {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2vw, 30px);
  min-height: var(--header-h);
  max-width: var(--shell);
  margin-inline: auto;
  padding: 0 var(--gutter);
}

.header-lead {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 20px);
  min-width: 0;
}
.header-trail {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--mist);
}
.brand__lamp {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: var(--rule) solid var(--grass);
  background-color: var(--moss);
  background-image: radial-gradient(circle at 50% 0%, rgba(215, 255, 63, .34), transparent 72%);
  color: var(--lime);
  transition: border-color .18s ease, color .18s ease;
}
.brand__lamp svg { width: 22px; height: 22px; display: block; }
.brand:hover .brand__lamp { border-color: var(--lime); }
.brand__stack {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  line-height: 1.05;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--mist);
  white-space: nowrap;
}
.brand__meta {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .2em;
  color: var(--steel);
  text-transform: uppercase;
  white-space: nowrap;
}

/* 常驻查赛程入口 */
.cta-schedule {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 8px 15px;
  background: var(--lime);
  color: var(--ink);
  border: var(--rule) solid var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.3;
  box-shadow: 4px 4px 0 var(--grass);
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.cta-schedule::after { content: "→"; font-family: var(--font-mono); }
.cta-schedule:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--grass);
  background: #e4ff6b;
}
.cta-schedule:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--grass);
}

/* 栏目索引 */
.site-nav { display: block; }
.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.4vw, 22px);
}
.site-nav__item { display: block; }
.site-nav__link {
  position: relative;
  display: inline-block;
  padding: 8px 2px 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--steel);
  white-space: nowrap;
  transition: color .16s ease;
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .18s ease;
}
.site-nav__link:hover { color: var(--mist); }
.site-nav__link:hover::after { transform: scaleX(1); }
.site-nav__link[aria-current="page"] { color: var(--mist); }
.site-nav__link[aria-current="page"]::after { transform: scaleX(1); }

/* 移动端抽屉按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: var(--rule) solid rgba(199, 208, 204, .42);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  cursor: pointer;
  transition: border-color .16s ease, color .16s ease;
}
.nav-toggle:hover { border-color: var(--lime); color: var(--lime); }
.nav-toggle__bars {
  display: grid;
  gap: 3px;
  width: 16px;
}
.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: var(--lime);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.nav-toggle__text { line-height: 1; }

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  position: relative;
  background: var(--ink);
  border-top: 5px solid var(--grass);
  padding: clamp(32px, 5vw, 60px) 0 clamp(20px, 3vw, 32px);
  color: var(--steel);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(180deg, rgba(31, 107, 69, .22), transparent 42%),
    repeating-linear-gradient(90deg, rgba(199, 208, 204, .05) 0 1px, transparent 1px 88px);
}
.site-footer > .shell { position: relative; z-index: 1; }

.footer-cards {
  display: grid;
  grid-template-columns: 1.45fr .9fr 1.35fr .95fr;
  gap: clamp(12px, 1.8vw, 22px);
  align-items: start;
}

.footer-card {
  padding: clamp(14px, 1.8vw, 20px);
  background: rgba(22, 53, 42, .62);
  border: var(--rule) solid rgba(31, 107, 69, .78);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, .3);
}
.footer-card--brand {
  background-image: linear-gradient(150deg, rgba(31, 107, 69, .5), rgba(22, 53, 42, .8));
  border-left: 4px solid var(--lime);
}
.footer-card--legal { background: rgba(10, 27, 42, .78); }

.footer-card__brand {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1.05;
  color: var(--mist);
}
.footer-card__lead {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  line-height: 1.9;
  color: var(--lime);
}
.footer-card__note {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.75;
  color: rgba(199, 208, 204, .82);
}
.footer-card__title {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(215, 255, 63, .26);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--lime);
}
.footer-card__icp {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: .06em;
  color: var(--mist);
}
.footer-card__link {
  display: inline-block;
  margin-top: 14px;
  padding: 7px 13px;
  background: var(--lime);
  color: var(--ink);
  border: var(--rule) solid var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .38);
  transition: transform .16s ease, box-shadow .16s ease;
}
.footer-card__link:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, .45);
}

.footer-list {
  display: grid;
  gap: 7px;
  font-size: 14px;
}
.footer-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-block: 2px;
  color: var(--steel);
  transition: color .16s ease;
}
.footer-list a::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 2px;
  background: var(--grass);
  transition: background-color .16s ease, width .16s ease;
}
.footer-list a:hover { color: var(--lime); }
.footer-list a:hover::before { width: 12px; background: var(--lime); }

.footer-list--facts { gap: 10px; font-size: 13px; }
.footer-list--facts li { display: grid; gap: 2px; }
.footer-list__key {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(215, 255, 63, .78);
}
.footer-list__val {
  color: var(--mist);
  line-height: 1.6;
  word-break: break-word;
}

.footer-list--legal { margin-top: 12px; font-size: 13px; }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: clamp(20px, 3vw, 34px);
  padding-top: 16px;
  border-top: var(--rule) solid rgba(199, 208, 204, .18);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: rgba(199, 208, 204, .72);
}

/* ==========================================================================
   动效协议（脚本驱动）
   ========================================================================== */
html.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}
html.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-spy-link] {
  transition: color .16s ease, border-color .16s ease, background-color .16s ease;
}
[data-spy-link].is-active {
  color: var(--lime);
  border-color: var(--lime);
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1000px) {
  .footer-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .header-shell { min-height: 62px; }

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

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    max-height: 72vh;
    overflow-y: auto;
    background: var(--night);
    border-bottom: 3px solid var(--grass);
    box-shadow: 0 22px 44px rgba(0, 0, 0, .5);
  }
  .site-nav[data-open] { display: block; }
  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 18px;
  }
  .site-nav__link {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid rgba(199, 208, 204, .14);
    font-size: 16px;
  }
  .site-nav__link::after { display: none; }
  .site-nav__link[aria-current="page"] { color: var(--lime); }

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

@media (max-width: 700px) {
  .footer-cards { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }
  .header-shell { gap: 10px; }
  .brand__lamp { width: 34px; height: 34px; }
  .brand__name { font-size: 19px; }
  .brand__meta { font-size: 8px; letter-spacing: .16em; }
  .cta-schedule { padding: 7px 11px; font-size: 13px; }
}

@media (max-width: 400px) {
  .brand__meta { display: none; }
  .brand__lamp { width: 30px; height: 30px; }
  .brand__lamp svg { width: 18px; height: 18px; }
  .brand__name { font-size: 17px; letter-spacing: .06em; }
  .cta-schedule { padding: 6px 9px; font-size: 12px; }
  .nav-toggle { padding: 6px 8px; font-size: 11px; letter-spacing: .1em; }
}

/* ==========================================================================
   减少动效
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  html.reveal-ready [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
  .btn:hover,
  .cta-schedule:hover,
  .footer-card__link:hover { transform: none; }
}
