/* ==========================================================================
   星空体育主站 · 共享样式 /assets/site.css
   深空蓝黑画布 + 框架式导航 + 编辑部纸层
   ========================================================================== */

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

/* ---------- tokens ---------- */
:root {
  --ink-deep: #0A1424;
  --ink-night: #050A12;
  --paper: #F2E9DA;
  --paper-bone: #FBF6EC;
  --cyan: #2FE3B5;
  --gold: #E8B457;
  --sky-violet: #6E86C8;
  --brick: #D2553F;
  --grid: #22334D;
  --mist: #93A4BB;

  --rail-w: 236px;
  --topbar-h: 64px;
  --gutter: clamp(20px, 3.6vw, 56px);
  --maxw: 1320px;

  --font-display: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

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

/* ---------- base ---------- */
body {
  background-color: var(--ink-deep);
  background-image:
    repeating-linear-gradient(90deg, rgba(34, 51, 77, .30) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(180deg, rgba(34, 51, 77, .18) 0 1px, transparent 1px 96px);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  padding-top: var(--topbar-h);
  -webkit-font-smoothing: antialiased;
}
#main-content { display: block; outline: none; }

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

::selection { background: var(--cyan); color: var(--ink-night); }

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  top: -80px;
  left: 14px;
  z-index: 300;
  display: inline-block;
  padding: 10px 20px;
  background: var(--cyan);
  color: var(--ink-night);
  font-size: 14px;
  letter-spacing: .08em;
  text-decoration: none;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- header shell ---------- */
.site-header { position: relative; z-index: 60; }

.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 90;
  background: rgba(34, 51, 77, .8);
  pointer-events: none;
}
.progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--sky-violet) 55%, var(--gold));
}

/* ---------- topbar ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  z-index: 80;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.2vw, 32px);
  padding: 2px clamp(16px, 2.6vw, 32px) 0;
  background: var(--ink-night);
  border-bottom: 1px solid var(--grid);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  text-decoration: none;
  min-width: 0;
}
.brand::before {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  background:
    linear-gradient(var(--cyan), var(--cyan)) center / 12px 1px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) center / 1px 12px no-repeat;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: .12em;
  color: var(--paper-bone);
  white-space: nowrap;
}
.brand__sub {
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--mist);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar__coord {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  white-space: nowrap;
}
.topbar__coord-label { color: var(--gold); }
.topbar__coord-value { color: var(--mist); }

.topbar__mail {
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid var(--grid);
  padding-bottom: 2px;
  white-space: nowrap;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.topbar__mail:hover { color: var(--cyan); border-bottom-color: var(--cyan); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid var(--grid);
  color: var(--paper-bone);
  font-size: 13px;
  letter-spacing: .12em;
  cursor: pointer;
  transition: border-color .18s var(--ease);
}
.nav-toggle:hover { border-color: var(--cyan); }
.nav-toggle__bars {
  display: block;
  width: 16px;
  height: 10px;
  background:
    linear-gradient(var(--cyan) 0 2px, transparent 2px 4px, var(--cyan) 4px 6px, transparent 6px 8px, var(--cyan) 8px 10px);
}
.nav-toggle__text { line-height: 1; }

/* ---------- left rail ---------- */
.rail {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  bottom: 0;
  width: var(--rail-w);
  z-index: 70;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px 18px 24px;
  overflow-y: auto;
  border-right: 1px solid var(--grid);
  background-image:
    repeating-linear-gradient(180deg, rgba(34, 51, 77, .55) 0 1px, transparent 1px 58px),
    linear-gradient(180deg, #0A1424 0%, #050A12 100%);
}
.rail__caption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .26em;
  color: var(--mist);
  opacity: .8;
  padding-left: 14px;
}
.rail__list { margin-top: 20px; display: flex; flex-direction: column; gap: 2px; }
.rail__link {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 11px 12px 11px 12px;
  border-left: 2px solid transparent;
  color: var(--mist);
  text-decoration: none;
  transition: color .18s var(--ease), border-color .18s var(--ease), background-color .18s var(--ease);
}
.rail__link:hover {
  color: var(--paper-bone);
  background-color: rgba(47, 227, 181, .07);
}
.rail__link[aria-current="page"],
.rail__link[data-active="true"] {
  color: var(--paper-bone);
  border-left-color: var(--cyan);
  background-image: linear-gradient(90deg, rgba(47, 227, 181, .16), rgba(47, 227, 181, 0) 78%);
}
.rail__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--gold);
  flex: none;
}
.rail__link[aria-current="page"] .rail__num,
.rail__link[data-active="true"] .rail__num { color: var(--cyan); }
.rail__label { font-size: 15px; letter-spacing: .08em; }

.rail__foot { padding: 22px 12px 0; }
.rail__rule {
  display: block;
  width: 34px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  margin-bottom: 12px;
}
.rail__note {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: .1em;
  color: var(--mist);
  opacity: .72;
}

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  background: var(--ink-night);
  border-top: 1px solid var(--grid);
  color: var(--mist);
  padding: clamp(42px, 6vw, 76px) var(--gutter) 26px;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--sky-violet) 48%, var(--gold));
  opacity: .85;
}
.footer__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(240px, 1.35fr) 1.5fr 1.3fr;
  gap: clamp(26px, 4vw, 60px);
}
.footer__mark {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: .14em;
  color: var(--paper-bone);
  margin-bottom: 14px;
}
.footer__claim {
  font-size: 14.5px;
  line-height: 1.8;
  max-width: 32ch;
  color: var(--mist);
}
.footer__cta { margin-top: 20px; }
.footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 3vw, 40px); }
.footer__title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .26em;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer__list { display: grid; gap: 9px; }
.footer__list a {
  font-size: 14.5px;
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.footer__list a:hover { color: var(--cyan); border-bottom-color: var(--cyan); }

.contact-list { display: grid; gap: 12px; }
.contact-list > li { display: flex; align-items: baseline; gap: 10px; font-size: 14px; flex-wrap: wrap; }
.contact-list__key {
  flex: none;
  width: 40px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--gold);
}
.contact-list__val { color: var(--paper); word-break: break-all; line-height: 1.7; }
.copy-btn {
  flex: none;
  padding: 2px 8px;
  border: 1px solid var(--grid);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  cursor: pointer;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.copy-btn:hover { color: var(--cyan); border-color: var(--cyan); }
.footer__note {
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.8;
  opacity: .7;
}

.footer__strip {
  max-width: var(--maxw);
  margin: clamp(30px, 4vw, 48px) auto 0;
  padding: 14px 0;
  border-top: 1px solid var(--grid);
  border-bottom: 1px solid var(--grid);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--mist);
  opacity: .62;
}
.footer__strip-item { white-space: nowrap; }

.footer__legal {
  max-width: var(--maxw);
  margin: 18px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: 12.5px;
  letter-spacing: .04em;
}
.footer__legal-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.footer__legal-line a { color: var(--mist); text-decoration: none; }
.footer__legal-line a:hover { color: var(--cyan); }
.footer__icp { font-family: var(--font-mono); letter-spacing: .1em; }
.footer__sep { color: var(--grid); }

/* ==========================================================================
   通用组件（页面阶段使用）
   ========================================================================== */

/* ---------- 容器与节奏 ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section { position: relative; padding: clamp(48px, 7vw, 100px) 0; }
.section--paper {
  background: var(--paper);
  color: var(--ink-deep);
  border-top: 1px solid rgba(10, 20, 36, .35);
  border-bottom: 1px solid rgba(10, 20, 36, .35);
}
.section--night { background: var(--ink-night); }
.rule { height: 1px; border: 0; margin: 0; background: var(--grid); }

/* ---------- 12 栏网格 ---------- */
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 30px); }
.col-2 { grid-column: span 2; }
.col-3 { grid-column: span 3; }
.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; }

/* ---------- 排版 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .26em;
  color: var(--gold);
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
}
.section--paper .eyebrow { color: var(--brick); }
.section--paper .eyebrow::before { background: var(--brick); }

.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(46px, 8.4vw, 124px);
  line-height: .92;
  letter-spacing: -.01em;
  color: var(--paper-bone);
}
.section--paper .display { color: var(--ink-deep); }
.hl { font-style: normal; color: var(--cyan); }
.hl--gold { font-style: normal; color: var(--gold); }

.section-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(24px, 2.9vw, 38px);
  line-height: 1.35;
  letter-spacing: .02em;
  color: var(--paper-bone);
}
.section--paper .section-title { color: var(--ink-deep); }

.lede {
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.85;
  color: var(--mist);
  max-width: 62ch;
}
.section--paper .lede { color: #4A5568; }

.annot {
  font-size: 13px;
  line-height: 1.8;
  color: var(--mist);
  opacity: .78;
}
.section--paper .annot { color: #5A6478; opacity: 1; }

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

.prose { font-size: 16.5px; line-height: 1.85; color: inherit; }
.prose p { margin-bottom: 1.2em; max-width: 68ch; }
.prose ul, .prose ol { list-style: square; padding-left: 1.3em; margin-bottom: 1.2em; }
.prose li { margin-bottom: .4em; }

/* ---------- 信息块 ---------- */
.panel-paper {
  position: relative;
  background: var(--paper);
  color: var(--ink-deep);
  border: 1px solid rgba(10, 20, 36, .55);
  box-shadow: 8px 8px 0 rgba(5, 10, 18, .55);
  padding: clamp(18px, 2.4vw, 30px);
}
.panel-paper .annot { color: #5A6478; opacity: 1; }

.stamp {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--brick);
  color: var(--brick);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  line-height: 1.6;
}

.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: .06em;
  color: var(--cyan);
}
.section--paper .stat__value { color: var(--ink-deep); }
.stat__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--mist);
}
.section--paper .stat__label { color: #5A6478; }

.coord-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--mist);
}
.coord-strip span { white-space: nowrap; }

.crumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  padding-top: 26px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--mist);
}
.crumb a { color: var(--mist); text-decoration: none; border-bottom: 1px solid transparent; }
.crumb a:hover { color: var(--cyan); border-bottom-color: var(--cyan); }
.crumb__sep { color: var(--grid); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  border: 1px solid var(--cyan);
  background: transparent;
  color: var(--paper-bone);
  font-size: 15px;
  letter-spacing: .08em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.btn:hover { background: var(--cyan); color: var(--ink-night); }
.btn--solid { background: var(--cyan); border-color: var(--cyan); color: var(--ink-night); font-weight: 600; }
.btn--solid:hover { background: var(--gold); border-color: var(--gold); color: var(--ink-night); }
.btn--ghost { border-color: var(--grid); color: var(--mist); }
.btn--ghost:hover { background: transparent; border-color: var(--gold); color: var(--gold); }
.btn--ink { border-color: var(--ink-deep); color: var(--ink-deep); }
.btn--ink:hover { background: var(--ink-deep); color: var(--paper-bone); }

/* ---------- 标签页 ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--grid);
}
.tab {
  padding: 12px 20px;
  border-bottom: 2px solid transparent;
  color: var(--mist);
  font-size: 15px;
  letter-spacing: .08em;
  cursor: pointer;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.tab:hover { color: var(--paper-bone); }
.tab[aria-selected="true"] { color: var(--paper-bone); border-bottom-color: var(--cyan); }
.tabpanel[hidden] { display: none; }

/* ---------- 折叠 ---------- */
.fold {
  border: 1px solid var(--grid);
  border-bottom: 0;
  background: rgba(5, 10, 18, .62);
}
.fold:last-of-type { border-bottom: 1px solid var(--grid); }
.fold > summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px;
  cursor: pointer;
  color: var(--paper-bone);
  font-size: 15.5px;
  letter-spacing: .04em;
  list-style: none;
}
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--gold);
  flex: none;
}
.fold[open] > summary::after { content: "–"; }
.fold__body {
  padding: 0 20px 20px;
  font-size: 15px;
  color: var(--mist);
}

/* ---------- 图片容器 ---------- */
.figure { margin: 0; }
.figure__frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--grid);
  background-color: var(--ink-night);
  background-image:
    repeating-linear-gradient(90deg, rgba(34, 51, 77, .55) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(180deg, rgba(34, 51, 77, .55) 0 1px, transparent 1px 64px),
    linear-gradient(140deg, rgba(110, 134, 200, .22), rgba(5, 10, 18, .95) 70%);
}
.figure__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 10, 18, 0) 55%, rgba(5, 10, 18, .55));
}
.figure__img { width: 100%; height: 100%; object-fit: cover; }
.figure__cap {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--mist);
  opacity: .72;
}
.figure--wide .figure__frame { aspect-ratio: 16 / 9; }
.figure--tall .figure__frame { aspect-ratio: 3 / 4; }
.figure--square .figure__frame { aspect-ratio: 1 / 1; }
.figure--panorama .figure__frame { aspect-ratio: 21 / 9; }

/* ---------- 进入动效 ---------- */
[data-reveal] { transition: opacity .28s var(--ease), transform .28s var(--ease); }
html.reveal-ready [data-reveal] { opacity: 0; transform: translateY(12px); }
html.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1180px) {
  .topbar__mail { display: none; }
}

@media (max-width: 1023px) {
  :root { --topbar-h: 58px; }
  body { background-image: none; }

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

  .rail {
    top: var(--topbar-h);
    left: 0;
    right: 0;
    bottom: auto;
    width: auto;
    max-height: calc(100vh - var(--topbar-h));
    border-right: 0;
    border-bottom: 1px solid var(--grid);
    box-shadow: 0 22px 40px rgba(5, 10, 18, .7);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-14px);
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s linear;
  }
  .rail[data-open] {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

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

  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: span 2; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .brand__sub { display: none; }
  .topbar { gap: 10px; }

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

  .footer__grid { grid-template-columns: 1fr; }
  .footer__brand { grid-column: auto; }
  .footer__nav { grid-template-columns: 1fr; }
  .footer__legal { flex-direction: column; }
  .figure--panorama .figure__frame { aspect-ratio: 16 / 9; }
}

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