/* ============================================================
   华体育赛事 · 共享样式 /assets/site.css
   墨绿场灯 + 纸白长卷 + 电光蓝强调
   ============================================================ */

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

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

body, figure, blockquote, dl, dd, p, h1, h2, h3, h4, h5, h6, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { 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: #08150F;
  --ink-800: #0F231C;
  --paper-050: #F6F3EC;
  --paper-000: #FCFBF7;
  --volt-500: #1F6BFF;
  --volt-700: #1552CC;
  --volt-200: #8FB6FF;
  --flare-500: #FF6A1F;
  --silver-400: #9AA7A4;
  --silver-200: #D8DEDC;
  --ink-text: #12100C;

  /* 字体 */
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --sans: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* 尺度 */
  --rail-w: 188px;
  --rail-h: 56px;
  --gap: 32px;
  --band-pad: 96px;
  --shadow-card: 0 1px 0 rgba(8, 21, 15, .04), 0 2px 10px rgba(8, 21, 15, .05);
  --rule-dark: rgba(154, 167, 164, .2);
  --rule-light: #D8DEDC;
}

/* ---------- 基础排版 ---------- */
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .01em;
  color: var(--ink-text);
  background: var(--paper-050);
  padding-left: var(--rail-w);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

p { max-width: 42em; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -.005em;
  text-wrap: balance;
}

.num, .u-mono, code, kbd {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

.u-right { text-align: right; }

.u-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

:focus-visible {
  outline: 2px solid var(--volt-500);
  outline-offset: 2px;
}
.site-head :focus-visible { outline-color: var(--volt-200); }

/* ============================================================
   头部 · 侧边轨道
   ============================================================ */
.site-head {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  background: var(--ink-900);
  color: var(--paper-050);
  border-right: 1px solid var(--rule-dark);
  z-index: 60;
}

.skip-link {
  position: absolute;
  left: 10px;
  top: -72px;
  z-index: 120;
  padding: 10px 16px;
  background: var(--volt-500);
  color: var(--paper-000);
  font-size: 14px;
  transition: top .18s ease;
}
.skip-link:focus { top: 10px; }

.head-top {
  padding: 22px 18px 18px;
  border-bottom: 1px solid var(--rule-dark);
  transition: padding .2s ease;
}

.brand {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.brand-glyph {
  flex: none;
  width: 30px;
  height: 30px;
  color: var(--volt-500);
}
.brand-glyph svg { width: 100%; height: 100%; }

.brand-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }

.brand-name {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: .02em;
  color: var(--paper-000);
}

.brand-sub {
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: .12em;
  color: var(--silver-400);
  transition: opacity .2s ease;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  border: 1px solid rgba(154, 167, 164, .34);
  color: var(--paper-050);
  font-size: 13px;
  letter-spacing: .1em;
  transition: border-color .16s ease, color .16s ease;
}
.nav-toggle:hover { border-color: var(--volt-500); color: var(--volt-200); }

.toggle-bars { display: flex; flex-direction: column; gap: 4px; width: 16px; }
.toggle-bars i {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform .2s ease;
}

/* ---------- 导航 ---------- */
.site-nav {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding-top: 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.nav-head {
  padding: 0 18px 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--silver-400);
}

.nav-list { display: flex; flex-direction: column; }

.nav-item { border-top: 1px solid rgba(154, 167, 164, .1); }
.nav-item:last-child { border-bottom: 1px solid rgba(154, 167, 164, .1); }

.nav-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 16px 12px 18px;
  border-left: 2px solid transparent;
  color: rgba(246, 243, 236, .76);
  font-size: 15px;
  line-height: 1.4;
  white-space: nowrap;
  transition: color .16s ease, border-color .16s ease, background-color .16s ease;
}
.nav-link:hover {
  color: var(--paper-000);
  border-left-color: var(--volt-200);
  background: rgba(31, 107, 255, .09);
}
.nav-link[aria-current="page"] {
  color: var(--paper-000);
  border-left-color: var(--volt-500);
  background: linear-gradient(90deg, rgba(31, 107, 255, .26), rgba(31, 107, 255, 0));
}
.nav-link[aria-current="page"] .nav-idx { color: var(--volt-200); }

.nav-idx {
  flex: none;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  color: var(--silver-400);
  transition: color .16s ease;
}

.nav-text { flex: 1 1 auto; }

.nav-foot {
  margin-top: auto;
  padding: 18px 18px 22px;
  border-top: 1px solid var(--rule-dark);
}

.nav-cta {
  display: block;
  padding: 11px 12px;
  border: 1px solid var(--volt-500);
  color: var(--volt-200);
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .08em;
  transition: background-color .16s ease, color .16s ease;
}
.nav-cta:hover { background: var(--volt-500); color: var(--paper-000); }

.nav-note {
  margin-top: 12px;
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--silver-400);
  max-width: none;
}

.head-scrim {
  position: fixed;
  inset: 0;
  background: rgba(8, 21, 15, .68);
  opacity: 0;
  visibility: hidden;
  transition: opacity .24s ease, visibility .24s ease;
  z-index: 65;
}

.head-progress {
  position: fixed;
  top: 0;
  left: var(--rail-w);
  right: 0;
  height: 2px;
  background: rgba(154, 167, 164, .2);
  z-index: 61;
}
.progress-fill {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--volt-500);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .12s linear;
}

/* 滚动收窄 */
.site-head[data-condensed] .head-top { padding: 14px 18px 12px; }
.site-head[data-condensed] .brand-sub { opacity: 0; }

body.nav-locked { overflow: hidden; }

/* ============================================================
   页脚
   ============================================================ */
.site-foot {
  background: var(--ink-900);
  color: var(--silver-400);
  border-top: 1px solid rgba(31, 107, 255, .3);
}

.foot-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 40px 44px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.5fr 1fr;
  gap: 44px 32px;
}

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

.foot-wordmark {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: .02em;
  color: var(--paper-050);
  max-width: none;
}

.foot-tag {
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--silver-400);
  max-width: 26em;
}

.foot-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--silver-400);
  max-width: none;
}

.foot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--flare-500);
  animation: footLive 2.4s ease-in-out infinite;
}
@keyframes footLive { 0%, 100% { opacity: 1; } 50% { opacity: .28; } }

.foot-title {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--paper-050);
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--rule-dark);
}

.foot-list { display: flex; flex-direction: column; gap: 11px; }
.foot-list li { font-size: 14.5px; line-height: 1.6; color: var(--silver-400); word-break: break-word; }

.foot-list a {
  position: relative;
  display: inline-block;
  color: var(--silver-400);
  transition: color .16s ease;
}
.foot-list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--volt-500);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .18s ease;
}
.foot-list a:hover { color: var(--paper-050); }
.foot-list a:hover::after { transform: scaleX(1); }

.foot-list--contact .u-mono { font-size: 13px; color: var(--volt-200); }

.foot-note {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(154, 167, 164, .78);
  max-width: 26em;
}

.foot-base {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 40px 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 32px;
  border-top: 1px solid var(--rule-dark);
  font-size: 12.5px;
  line-height: 1.7;
}
.foot-base p { max-width: none; }
.foot-base p:last-child { color: rgba(154, 167, 164, .72); }

/* ============================================================
   布局基础
   ============================================================ */
.shell {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.band { padding: var(--band-pad) 0; }
.band--dark { background: var(--ink-900); color: var(--paper-050); }
.band--sunken { background: var(--ink-800); color: var(--paper-050); }
.band--paper { background: var(--paper-050); }
.band--card { background: var(--paper-000); }

.band-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--volt-700);
  margin-bottom: 16px;
  max-width: none;
}
.band--dark .band-kicker, .band--sunken .band-kicker { color: var(--volt-200); }

.band-title { font-size: clamp(28px, 4.4vw, 46px); max-width: 24ch; }

.band-lede {
  margin-top: 18px;
  font-size: 16.5px;
  line-height: 1.8;
  color: rgba(18, 16, 12, .74);
  max-width: 38em;
}
.band--dark .band-lede, .band--sunken .band-lede { color: rgba(246, 243, 236, .74); }

.band-head { margin-bottom: 44px; }

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

/* ---------- 面包屑 ---------- */
.crumbs { padding: 26px 0 0; }
.crumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: inherit;
}
.crumbs-list li { display: flex; align-items: center; gap: 10px; }
.crumbs-list li + li::before {
  content: "/";
  opacity: .35;
}
.crumbs-list a { opacity: .62; transition: opacity .16s ease; }
.crumbs-list a:hover { opacity: 1; }
.crumbs-list [aria-current="page"] { opacity: .95; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid transparent;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}
.btn--primary { background: var(--volt-500); color: var(--paper-000); border-color: var(--volt-500); }
.btn--primary:hover { background: transparent; color: var(--volt-700); }
.band--dark .btn--primary:hover, .band--sunken .btn--primary:hover { color: var(--volt-200); }

.btn--ghost { border-color: currentColor; color: inherit; }
.btn--ghost:hover { border-color: var(--volt-500); color: var(--volt-700); }
.band--dark .btn--ghost:hover, .band--sunken .btn--ghost:hover { color: var(--volt-200); }

.btn--link {
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--volt-500);
  color: var(--volt-700);
  font-size: 14px;
}
.band--dark .btn--link, .band--sunken .btn--link { color: var(--volt-200); }
.btn--link:hover { color: var(--flare-500); border-bottom-color: var(--flare-500); }

/* ---------- 卡片 ---------- */
.card {
  background: var(--paper-000);
  border: 1px solid var(--silver-200);
  box-shadow: var(--shadow-card);
  padding: 24px;
  transition: border-color .16s ease;
}
.card:hover { border-color: var(--volt-500); }

.card--dark {
  background: var(--ink-800);
  border-color: var(--rule-dark);
  color: var(--paper-050);
  box-shadow: none;
}

.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.card-title { font-size: 19px; font-weight: 700; }

.card-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--silver-400);
  white-space: nowrap;
}

.card-rule { height: 1px; background: var(--silver-200); border: 0; margin: 18px 0; }
.card--dark .card-rule { background: var(--rule-dark); }

/* ---------- 数据 ---------- */
.num { font-weight: 600; }

.stat-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(154, 167, 164, .24);
}
.stat-key { font-size: 13.5px; opacity: .72; }
.stat-val { font-family: var(--mono); font-weight: 600; font-size: 16px; letter-spacing: .02em; white-space: nowrap; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid currentColor;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  white-space: nowrap;
}
.tag--volt { color: var(--volt-700); }
.band--dark .tag--volt, .band--sunken .tag--volt { color: var(--volt-200); }
.tag--flare { color: var(--flare-500); }

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--flare-500);
  flex: none;
}
.dot--pulse { animation: dotPulse 2.4s ease-in-out infinite; }
@keyframes dotPulse { 0%, 100% { opacity: 1; } 50% { opacity: .28; } }

/* ---------- 目录索引 ---------- */
.idx-list { display: flex; flex-direction: column; }
.idx-item {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(154, 167, 164, .24);
}
.idx-num {
  flex: none;
  width: 30px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--silver-400);
}
.idx-text { flex: 1 1 auto; font-size: 15.5px; line-height: 1.7; }

/* ---------- 图形容器 ---------- */
.media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--ink-800);
  border: 1px solid var(--rule-dark);
  overflow: hidden;
}
.media-frame > svg,
.media-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--panel { aspect-ratio: 21 / 9; }

.media-cap {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--silver-400);
  max-width: none;
}

/* ---------- 进入视口 ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1080px) {
  :root { --band-pad: 80px; }
  .foot-grid { grid-template-columns: 1.5fr 1fr 1.4fr; padding: 64px 32px 40px; }
  .foot-base { padding: 20px 32px 30px; }
}

@media (max-width: 960px) {
  :root { --rail-w: 0px; --gap: 20px; --band-pad: 64px; }

  body { padding-left: 0; padding-top: var(--rail-h); }

  .site-head {
    inset: 0 0 auto 0;
    width: auto;
    height: var(--rail-h);
    flex-direction: row;
    align-items: center;
    border-right: 0;
    border-bottom: 1px solid var(--rule-dark);
  }

  .head-top {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: var(--rail-h);
    padding: 0 16px;
    border-bottom: 0;
  }
  .site-head[data-condensed] .head-top { padding: 0 16px; }

  .brand { align-items: center; gap: 10px; }
  .brand-glyph { width: 26px; height: 26px; }
  .brand-name { font-size: 16.5px; }
  .brand-sub { display: none; }

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

  .site-nav {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: min(86vw, 340px);
    padding-top: var(--rail-h);
    background: var(--ink-900);
    border-right: 1px solid var(--rule-dark);
    transform: translateX(-102%);
    transition: transform .28s cubic-bezier(.4, 0, .2, 1);
    z-index: 70;
  }
  .site-head[data-open] .site-nav { transform: none; }

  .nav-head { padding-top: 8px; }

  .head-scrim { z-index: 65; }
  .site-head[data-open] .head-scrim { opacity: 1; visibility: visible; }

  .site-head[data-open] .toggle-bars i:first-child { transform: translateY(2.75px) rotate(45deg); }
  .site-head[data-open] .toggle-bars i:last-child { transform: translateY(-2.75px) rotate(-45deg); }

  .head-progress { left: 0; }

  .shell { padding: 0 20px; }

  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .col-4, .col-5, .col-6, .col-7, .col-8, .col-12 { grid-column: span 4; }

  .band-head { margin-bottom: 32px; }
  .band-title { font-size: clamp(26px, 7vw, 34px); }
  .band-lede { font-size: 16px; }

  .foot-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; padding: 56px 20px 36px; }
  .foot-base { flex-direction: column; padding: 20px 20px 28px; }
}

@media (max-width: 620px) {
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .card { padding: 20px; }
  .btn { width: 100%; justify-content: center; }
  .btn--link { width: auto; justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .progress-fill { transition: none; }
}
