/* =========================================================
   9博体育赛事 · 全站共享样式 /assets/site.css
   底色：深墨绿  ·  面板：炭黑  ·  强调：荧光草绿 / 信号橙 / 琥珀
   ========================================================= */

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

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

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

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

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

table { border-collapse: collapse; width: 100%; }

/* ---------- 变量 ---------- */
:root {
  --ink-900: #0C1F1A;   /* 深墨绿 主背景 */
  --ink-800: #141712;   /* 炭黑 面板底 */
  --stone:   #2C332B;   /* 岩灰 分隔线 */
  --moss:    #3E5C46;   /* 苔绿 次级色块 */
  --lime:    #86F2A8;   /* 荧光草绿 主强调 */
  --signal:  #FF7A2F;   /* 信号橙 次强调 */
  --amber:   #F2B34B;   /* 琥珀 比分与时间 */
  --clay:    #B8653F;   /* 陶土 章节编号 */
  --bone:    #F4F1E8;   /* 米白 正文 */
  --haze:    #9FB3A6;   /* 雾绿灰 注释 */

  --bg: var(--ink-900);
  --panel: var(--ink-800);
  --line: var(--stone);
  --text: var(--bone);
  --text-soft: var(--haze);

  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --cut: 14px;
  --wrap: 1240px;
  --gutter: clamp(16px, 3.2vw, 40px);
  --header-h: 76px;
  --header-h-sm: 60px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: .18s;
}

/* ---------- 基础排版 ---------- */
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--bone);
}

h1 { font-size: clamp(28px, 4vw, 56px); }
h2 { font-size: clamp(22px, 2.8vw, 36px); }
h3 { font-size: clamp(18px, 2vw, 24px); }

p { color: var(--bone); }

small { font-size: 13px; color: var(--haze); }

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

/* ---------- 焦点 ---------- */
:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

#main-content { scroll-margin-top: calc(var(--header-h) + 12px); }

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  left: 50%;
  top: -80px;
  transform: translateX(-50%);
  z-index: 220;
  padding: 10px 20px;
  background: var(--lime);
  color: var(--ink-900);
  font-size: 14px;
  font-weight: 700;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  transition: top var(--dur) var(--ease);
}

.skip-link:focus { top: 12px; }

/* ---------- 滚动进度条（JS 注入） ---------- */
.scroll-progress {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  z-index: 210;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--lime), var(--amber) 58%, var(--signal));
  pointer-events: none;
}

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

.grid {
  display: grid;
  gap: var(--gap, 20px);
}

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

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--stack-gap, 20px);
}

/* ---------- 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--ink-900);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  min-height: var(--header-h);
  transition: min-height var(--dur) var(--ease);
}

.site-header[data-shrunk] .site-header__inner { min-height: var(--header-h-sm); }

.site-header[data-shrunk] {
  background: rgba(12, 31, 26, .97);
  box-shadow: 0 1px 0 var(--line), 0 12px 30px -24px rgba(0, 0, 0, .9);
}

/* 品牌锁定区 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  transition: opacity var(--dur) var(--ease);
}

.brand:hover { opacity: .86; }

.brand__mark {
  flex: none;
  width: 11px;
  height: 28px;
  background: var(--lime);
  clip-path: polygon(0 0, 100% 0, 100% 74%, 50% 100%, 0 74%);
}

.brand__text { display: block; min-width: 0; }

.brand__name {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--bone);
  white-space: nowrap;
}

.brand__sub {
  display: block;
  font-family: var(--font-serif);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .06em;
  color: var(--haze);
  white-space: nowrap;
}

.brand--footer { margin-bottom: 16px; }
.brand--footer .brand__mark { background: var(--amber); }

/* 三轴切换条 */
.axis-switch {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: var(--ink-800);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  border-top: 1px solid var(--line);
}

.axis-switch__label {
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--clay);
  padding: 0 12px 0 8px;
  white-space: nowrap;
}

.axis-switch__btn {
  font-size: 13px;
  line-height: 1;
  padding: 7px 12px;
  color: var(--haze);
  white-space: nowrap;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.axis-switch__btn:hover { color: var(--bone); }

.axis-switch__btn[aria-pressed="true"] {
  background: var(--moss);
  color: var(--bone);
  box-shadow: inset 0 -2px 0 var(--lime);
}

/* 主导航 */
.site-nav { justify-self: end; min-width: 0; }

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.3vw, 20px);
}

.site-nav__list a {
  position: relative;
  display: inline-block;
  padding: 8px 2px;
  font-size: 14px;
  line-height: 1.3;
  color: var(--haze);
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}

.site-nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur) var(--ease);
}

.site-nav__list a:hover { color: var(--bone); }
.site-nav__list a:hover::after { transform: scaleX(1); }

.site-nav__list a[aria-current="page"] { color: var(--lime); }
.site-nav__list a[aria-current="page"]::after { transform: scaleX(1); }

/* 页头右侧动作区 */
.site-header__actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

/* 移动端菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  font-size: 13px;
  color: var(--bone);
  box-shadow: inset 0 0 0 1px var(--stone);
  transition: box-shadow var(--dur) var(--ease), color var(--dur) var(--ease);
}

.nav-toggle:hover { box-shadow: inset 0 0 0 1px var(--lime); color: var(--lime); }

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 11px;
}

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

.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { top: 9px; }

.site-header[data-open] .nav-toggle__bars::before { top: 4px; transform: rotate(45deg); }
.site-header[data-open] .nav-toggle__bars::after { top: 4px; transform: rotate(-45deg); }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink-900);
  background: var(--lime);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.btn:hover { transform: translateY(-2px); background: #9dfabb; }
.btn:active { transform: translateY(0); }

.btn--signal { background: var(--signal); color: #180D04; }
.btn--signal:hover { background: #ff9257; }

.btn--ghost {
  background: transparent;
  color: var(--bone);
  box-shadow: inset 0 0 0 1px var(--stone);
}

.btn--ghost:hover {
  color: var(--lime);
  background: rgba(134, 242, 168, .06);
  box-shadow: inset 0 0 0 1px var(--lime);
}

.btn--sm { padding: 10px 15px; font-size: 13px; }

/* ---------- 面板与切角 ---------- */
.panel {
  position: relative;
  background: var(--panel);
  padding: clamp(18px, 2.6vw, 30px);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}

.panel--plain { clip-path: none; }
.panel--wide { padding: clamp(24px, 4vw, 48px); }
.panel--moss { background: var(--moss); }
.panel--stone { background: var(--stone); }

.panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 3px;
  background: var(--clay);
}

.panel--moss::before { background: var(--amber); }

.panel__no {
  display: inline-block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--clay);
}

.cut {
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}

.cut--lg {
  --cut: 28px;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}

/* ---------- 文字工具 ---------- */
.section-label {
  display: inline-block;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .18em;
  color: var(--clay);
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: clamp(48px, 8vw, 120px);
  line-height: .92;
  letter-spacing: -.04em;
  color: var(--amber);
}

.divider {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, var(--stone), rgba(44, 51, 43, 0));
}

.note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--haze);
}

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .06em;
  color: var(--bone);
  background: var(--moss);
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 0 100%);
}

.tag--clay { background: var(--clay); }
.tag--signal { background: var(--signal); color: #180D04; }

.tag--outline {
  background: transparent;
  color: var(--haze);
  box-shadow: inset 0 0 0 1px var(--stone);
}

/* ---------- 正文容器 ---------- */
.prose {
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.75;
  color: var(--bone);
}

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

.prose h2 {
  margin-top: 1.9em;
  font-size: clamp(22px, 2.6vw, 30px);
}

.prose h3 {
  margin-top: 1.5em;
  font-size: clamp(17px, 1.8vw, 21px);
  color: var(--bone);
}

.prose a {
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.prose ul li,
.prose ol li {
  position: relative;
  padding-left: 20px;
  margin-top: .55em;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 9px;
  height: 1px;
  background: var(--lime);
}

.prose ol { counter-reset: prose-ol; }

.prose ol li::before {
  counter-increment: prose-ol;
  content: counter(prose-ol, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: .1em;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--clay);
}

.prose strong { color: var(--amber); font-weight: 700; }

/* ---------- 面包屑 ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--haze);
}

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

.breadcrumbs li + li::before {
  content: "/";
  color: var(--stone);
}

.breadcrumbs a { color: var(--haze); transition: color var(--dur) var(--ease); }
.breadcrumbs a:hover { color: var(--lime); }
.breadcrumbs [aria-current="page"] { color: var(--bone); }

/* ---------- 图片容器 ---------- */
.media-frame {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--ink-800);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}

.media-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.6) contrast(1.06) brightness(.88);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .12;
  background-image:
    linear-gradient(var(--stone) 1px, transparent 1px),
    linear-gradient(90deg, var(--stone) 1px, transparent 1px);
  background-size: 34px 34px;
}

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

.media-frame__cap {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  padding: 8px 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--haze);
  background: rgba(12, 31, 26, .84);
}

/* ---------- 显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

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

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: clamp(48px, 8vw, 96px);
  background: var(--ink-800);
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  padding-top: clamp(40px, 6vw, 76px);
  padding-bottom: 18px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: clamp(24px, 3.6vw, 60px);
}

.footer-col { min-width: 0; }

.footer-col__title {
  margin-bottom: 16px;
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--clay);
}

.footer-note {
  font-size: 13px;
  line-height: 1.7;
  color: var(--haze);
}

.footer-list li {
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--haze);
}

.footer-list li:last-child { margin-bottom: 0; }

.footer-list a {
  color: var(--haze);
  transition: color var(--dur) var(--ease);
}

.footer-list a:hover { color: var(--lime); }

.footer-list--contact li { word-break: break-word; }

.footer-timeline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px clamp(14px, 2vw, 32px);
  margin-top: clamp(32px, 5vw, 56px);
  padding-block: 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.footer-timeline__lead {
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: .14em;
  color: var(--clay);
  white-space: nowrap;
}

.footer-timeline__ticks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px clamp(12px, 2vw, 26px);
}

.footer-timeline__ticks li {
  position: relative;
  padding-left: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--haze);
}

.footer-timeline__ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 1px;
  background: var(--lime);
  transform: translateY(-50%);
}

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 18px 4px;
  font-size: 13px;
  color: var(--haze);
}

.site-footer__base p { color: var(--haze); }
.site-footer__base .mono { color: var(--haze); }

/* ---------- 响应式 ---------- */
@media (max-width: 1120px) {
  .axis-switch { display: none; }

  .site-header__inner {
    grid-template-columns: 1fr auto;
    min-height: var(--header-h-sm);
  }

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

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 130;
    display: none;
    max-height: calc(100vh - var(--header-h-sm));
    overflow-y: auto;
    background: var(--ink-800);
    border-bottom: 1px solid var(--line);
  }

  .site-header[data-open] .site-nav { display: block; }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px var(--gutter) 18px;
  }

  .site-nav__list li { border-bottom: 1px solid var(--stone); }
  .site-nav__list li:last-child { border-bottom: 0; }

  .site-nav__list a {
    display: block;
    padding: 15px 0;
    font-size: 16px;
    white-space: normal;
  }

  .site-nav__list a::after { display: none; }
  .site-nav__list a[aria-current="page"] { color: var(--lime); }
}

@media (max-width: 900px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }

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

@media (max-width: 640px) {
  :root { --cut: 10px; }

  body { font-size: 15px; }

  .brand__name { font-size: 15px; }
  .brand__sub { font-size: 11px; letter-spacing: .04em; }

  .site-header__actions .btn--sm { padding: 9px 12px; font-size: 12px; }
  .nav-toggle__text { display: none; }

  .site-footer__grid { grid-template-columns: 1fr; }

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

  .site-footer__base { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .site-header__actions .btn--sm { display: none; }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

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

  .btn:hover { transform: none; }
}
