/* ==========================================================================
   星空体育 · /assets/site.css
   夜间天文台 × 赛事数据舱：暗场、粗边框、等宽数据、星轨轨道
   ========================================================================== */

/* 1. Reset ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }

/* 2. Tokens ---------------------------------------------------------------- */
:root {
  --void: #070B18;
  --pod: #0E1526;
  --pod-2: #131C31;
  --silver: #C9D2E3;
  --rock: #8C93A3;
  --bone: #F2EFE6;
  --orange: #FF7A3C;
  --green: #2FD8B4;
  --gold: #E8C36A;
  --moss: #5C7A5E;
  --clay: #B4694A;

  --line: rgba(201, 210, 227, .16);
  --line-2: rgba(201, 210, 227, .34);
  --edge: 2px solid var(--line-2);
  --shadow: 8px 8px 0 rgba(3, 6, 14, .72);

  --font-display: "Arial Narrow", "Helvetica Neue Condensed", "PingFang SC", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "DejaVu Sans Mono", monospace;

  --wrap: 1220px;
  --gutter: clamp(18px, 4vw, 40px);
  --head-h: 72px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* 3. Base ------------------------------------------------------------------ */
body {
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--void);
  background-image:
    radial-gradient(1200px 620px at 80% -12%, rgba(47, 216, 180, .09), transparent 62%),
    radial-gradient(900px 500px at 8% 4%, rgba(232, 195, 106, .07), transparent 66%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .014) 0 1px, transparent 1px 5px);
  color: var(--silver);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: .01em;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--bone);
  line-height: 1.08;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(40px, 9vw, 96px); }
h2 { font-size: clamp(26px, 4.4vw, 46px); }
h3 { font-size: clamp(20px, 2.6vw, 28px); font-weight: 700; }
p { max-width: 68ch; }
strong { color: var(--bone); font-weight: 700; }

::selection { background: var(--gold); color: var(--void); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* 4. 无障碍工具 ------------------------------------------------------------ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 400;
  transform: translateY(-180%);
  padding: 10px 16px;
  border: 2px solid var(--void);
  background: var(--gold);
  color: var(--void);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .12em;
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* 5. 布局与章节 ------------------------------------------------------------ */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.page-top { padding-top: calc(var(--head-h) + 26px); }
.section { position: relative; padding: clamp(46px, 7vw, 96px) 0; }
.section--tight { padding: clamp(28px, 4vw, 52px) 0; }
.zone--pod {
  background: var(--pod);
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-9 { grid-column: span 9; }
.span-12 { grid-column: span 12; }

.sec-head { margin-bottom: clamp(22px, 3.4vw, 42px); }
.sec-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--rock);
}
.sec-label::before { content: ""; width: 28px; height: 2px; background: var(--clay); }
.sec-title { margin-top: 14px; }
.sec-note { margin-top: 14px; max-width: 62ch; color: var(--rock); font-size: 15px; line-height: 1.8; }

.rule-track {
  position: relative;
  height: 2px;
  margin: 0;
  background: linear-gradient(90deg, var(--green), var(--line) 42%, var(--line));
}
.rule-track__node {
  position: absolute;
  top: -3px;
  width: 8px; height: 8px;
  transform: translateX(-50%);
  border: 2px solid var(--clay);
  border-radius: 50%;
  background: var(--void);
}

/* 6. 按钮 / 标签 / 筛选 ---------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 2px solid var(--line-2);
  background: var(--pod);
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .14em;
  transition: transform .18s var(--ease), background-color .2s, color .2s, border-color .2s, box-shadow .18s var(--ease);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 rgba(0, 0, 0, .6); }
.btn:active { transform: none; box-shadow: none; }
.btn--honor { background: var(--gold); border-color: var(--gold); color: var(--void); }
.btn--honor:hover { background: #f3d68f; border-color: #f3d68f; }
.btn--ghost { background: transparent; }
.btn--ghost:hover { border-color: var(--green); color: var(--green); }
.btn--block { width: 100%; }

.chip-set { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 2px solid var(--line-2);
  background: transparent;
  color: var(--silver);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  transition: color .2s, border-color .2s, background-color .2s;
}
.chip:hover { color: var(--bone); border-color: var(--bone); }
.chip[aria-pressed="true"] { background: var(--bone); border-color: var(--bone); color: var(--void); }
.chip__count { font-size: 11px; opacity: .72; font-variant-numeric: tabular-nums; }

[data-filtered="out"] { display: none !important; }

.tag {
  display: inline-block;
  padding: 4px 9px;
  border: 2px solid var(--line-2);
  color: var(--silver);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.tag--clay { border-color: var(--clay); color: #e2a689; }
.tag--moss { border-color: var(--moss); color: #a9c3aa; }
.tag--honor { border-color: var(--gold); color: var(--gold); }

.exhibit-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  background: var(--gold);
  color: var(--void);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.exhibit-label--clay { background: var(--clay); color: var(--bone); }

/* 7. 数据卡片与区间条 ------------------------------------------------------ */
.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 26px);
  border: 2px solid var(--line-2);
  background: var(--pod);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.card:hover, .card:focus-within {
  transform: translate(-4px, -4px);
  box-shadow: var(--shadow);
  border-color: var(--bone);
}
.card__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--rock);
}
.card__title { margin-top: 10px; font-size: clamp(19px, 2.2vw, 24px); font-weight: 700; line-height: 1.24; }
.card__num {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: clamp(30px, 4.6vw, 52px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--bone);
  font-variant-numeric: tabular-nums;
}
.card__body { margin-top: 12px; font-size: 14.5px; line-height: 1.75; color: var(--silver); }
.card__meta {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--rock);
}
.card--sub { border-color: rgba(255, 122, 60, .55); }
.card--sub .card__num { color: var(--orange); }
.card--poss { border-color: rgba(47, 216, 180, .55); }
.card--poss .card__num { color: var(--green); }
.card--honor { border-color: rgba(232, 195, 106, .55); }
.card--honor .card__num { color: var(--gold); }

.bar {
  position: relative;
  height: 10px;
  margin-top: 14px;
  border: 1px solid var(--line-2);
  background: rgba(201, 210, 227, .08);
  overflow: hidden;
}
.bar__fill {
  display: block;
  width: 0;
  height: 100%;
  background: var(--green);
  transition: width .6s var(--ease);
}
.bar--sub .bar__fill { background: var(--orange); }
.bar--honor .bar__fill { background: var(--gold); }

/* 8. 图片容器（供页面阶段放置占位） --------------------------------------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 2px solid var(--line-2);
  background: var(--pod-2);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.88) contrast(1.08) brightness(.94); }
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 4px);
}
.media-frame__cap {
  position: absolute;
  left: 0; bottom: 0;
  z-index: 2;
  padding: 6px 10px;
  border-top: 2px solid var(--line-2);
  border-right: 2px solid var(--line-2);
  background: rgba(7, 11, 24, .88);
  color: var(--silver);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
}

/* 9. 面包屑 ---------------------------------------------------------------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  color: var(--rock);
}
.crumbs__item a { color: var(--silver); border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.crumbs__item a:hover { color: var(--bone); border-bottom-color: var(--green); }
.crumbs__item[aria-current="page"] { color: var(--gold); }
.crumbs__sep { color: var(--line-2); }

/* 10. 结尾 CTA 轨道 -------------------------------------------------------- */
.cta-track {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: clamp(24px, 4vw, 44px);
  border: 2px solid var(--line-2);
  background: linear-gradient(118deg, var(--pod) 0%, #0b1223 62%);
  box-shadow: var(--shadow);
}
.cta-track__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(22px, 3.2vw, 34px); line-height: 1.12; }
.cta-track__text { margin-top: 8px; max-width: 46ch; font-size: 14.5px; color: var(--rock); }
.cta-track__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* 11. 页头 ---------------------------------------------------------------- */
.site-head {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 2px solid transparent;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s var(--ease);
}
.site-head[data-scrolled="true"] {
  background: rgba(14, 21, 38, .95);
  border-bottom-color: var(--line-2);
  backdrop-filter: blur(10px);
}

.head-track {
  position: absolute;
  left: 0; right: 0;
  bottom: -2px;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}
.head-track__fill {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--green), var(--gold) 55%, var(--orange));
}

.head-inner {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--head-h);
}

.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-mark {
  position: relative;
  flex: 0 0 auto;
  width: 26px; height: 26px;
  border: 2px solid var(--silver);
  border-radius: 50%;
}
.brand-mark::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 6px; height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--gold);
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: -7px -11px;
  border: 2px solid transparent;
  border-top-color: var(--green);
  border-radius: 50%;
  transform: rotate(-26deg);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: .06em;
  color: var(--bone);
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--rock);
}

.head-note {
  max-width: 300px;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--rock);
  transition: max-width .4s var(--ease), opacity .3s var(--ease);
}
.site-head[data-scrolled="true"] .head-note { max-width: 0; opacity: 0; }

.site-nav { margin-left: auto; display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: clamp(10px, 1.5vw, 24px); }
.nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 2px;
  color: var(--silver);
  font-size: 14.5px;
  letter-spacing: .04em;
  transition: color .2s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 2px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width .28s var(--ease), background-color .2s;
}
.nav-link:hover { color: var(--bone); }
.nav-link:hover::after { width: 100%; }
.nav-link[aria-current="page"] { color: var(--bone); }
.nav-link[aria-current="page"]::after { width: 100%; background: var(--orange); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 2px solid var(--line-2);
  background: rgba(14, 21, 38, .72);
}
.nav-toggle__bars { position: relative; display: block; width: 18px; height: 2px; background: var(--bone); }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px; height: 2px;
  background: var(--bone);
  transition: transform .25s var(--ease), top .25s var(--ease), background-color .25s;
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); background: var(--gold); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); background: var(--gold); }
.nav-toggle__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; color: var(--silver); }

.head-cta { padding: 9px 16px; font-size: 12px; }

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(7, 11, 24, .76);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}
.nav-scrim[data-visible="true"] { opacity: 1; pointer-events: auto; }

/* 12. 页脚 ---------------------------------------------------------------- */
.site-foot {
  position: relative;
  margin-top: clamp(56px, 9vw, 120px);
  border-top: 2px solid var(--line-2);
  background: var(--pod);
}
.site-foot::before {
  content: "";
  position: absolute;
  top: -2px; left: 0;
  width: min(42%, 440px);
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--orange), transparent);
}
.foot-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.35fr;
  gap: clamp(24px, 3.4vw, 48px);
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(38px, 6vw, 68px) var(--gutter) clamp(26px, 4vw, 44px);
}
.foot-brand .brand-mark { width: 30px; height: 30px; }
.foot-line { margin-top: 16px; max-width: 34ch; color: var(--silver); font-size: 14.5px; }
.foot-icp {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--rock);
}
.foot-title {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--rock);
}
.foot-list li + li { margin-top: 9px; }
.foot-list a {
  font-size: 14.5px;
  color: var(--silver);
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.foot-list a:hover { color: var(--bone); border-bottom-color: var(--orange); }
.foot-contact { margin-top: 12px; }
.foot-contact--addr { font-size: 13.5px; color: var(--rock); max-width: 26ch; }
.foot-note { margin-top: 14px; max-width: 32ch; font-size: 12.5px; line-height: 1.72; color: var(--rock); }

.copy-chip {
  padding: 1px 0;
  border-bottom: 2px dashed var(--line-2);
  color: var(--silver);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .04em;
  text-align: left;
  transition: color .2s, border-color .2s;
}
.copy-chip:hover { color: var(--green); border-bottom-color: var(--green); }
.copy-chip[data-copied="true"] { color: var(--gold); border-bottom-color: var(--gold); }
.copy-chip[data-copied="true"]::after {
  content: " 已复制";
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--gold);
}

.foot-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 18px var(--gutter) 28px;
  border-top: 2px solid var(--line);
  color: var(--rock);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
}
.foot-ver { color: var(--clay); }

/* 13. 显现状态 ------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
[data-reveal][data-in="true"] { opacity: 1; transform: none; }

html[data-nav-open="true"] { overflow: hidden; }

/* 14. 响应式 -------------------------------------------------------------- */
@media (max-width: 1199px) {
  .head-note { display: none; }
}

@media (max-width: 1023px) {
  .site-nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    left: auto;
    z-index: 120;
    display: block;
    width: min(86vw, 360px);
    margin-left: 0;
    padding: calc(var(--head-h) + 26px) clamp(20px, 5vw, 30px) 32px;
    overflow-y: auto;
    border-left: 2px solid var(--line-2);
    background: var(--pod);
    box-shadow: -18px 0 44px rgba(0, 0, 0, .6);
    transform: translateX(102%);
    transition: transform .36s var(--ease);
  }
  .site-nav[data-open="true"] { transform: translateX(0); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link {
    display: block;
    padding: 14px 4px;
    border-bottom: 2px solid var(--line);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 19px;
    letter-spacing: .02em;
  }
  .nav-link::after { bottom: 0; }
  .brand { margin-right: auto; }
  .head-cta { order: 1; }
  .nav-toggle { display: inline-flex; order: 2; }
}

@media (max-width: 900px) {
  .span-3, .span-4, .span-5 { grid-column: span 6; }
  .span-6, .span-7, .span-8, .span-9 { grid-column: span 12; }
  .foot-inner { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .span-3, .span-4, .span-5 { grid-column: span 12; }
  .foot-inner { grid-template-columns: 1fr; }
  .foot-note, .foot-contact--addr { max-width: none; }
  .cta-track__actions { width: 100%; }
  .cta-track__actions .btn { flex: 1 1 auto; }
}

@media (min-width: 1024px) {
  .nav-scrim { display: none; }
}

/* 15. 减动效 --------------------------------------------------------------- */
@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 !important; transform: none !important; }
  .bar__fill { transition: none !important; }
}
