/* ==========================================================================
   悟空体育看台 · 共享样式表 /assets/site.css
   数字看台：金色轨道 + 奶油纸画布 + 夜间页脚
   ========================================================================== */

/* ---------- 01. 变量 ---------- */
:root {
  --paper: #F6EFDF;
  --ink: #111111;
  --brown: #2A211A;
  --night: #0B0D10;
  --gold: #F5B301;
  --gold-lift: #FFC61A;
  --gold-ink: #7A5A00;
  --red: #C4372B;
  --slate: #6F859B;
  --mist: #E4EBF1;
  --line: #D5CCBB;
  --glass: rgba(255, 255, 255, .68);

  --rail-w: 252px;
  --topbar-h: 56px;
  --shell: 1180px;

  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-display: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", SFMono-Regular, Consolas, "Liberation Mono", monospace;

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

/* ---------- 02. 重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 18px);
  background-color: var(--night);
}

body {
  margin: 0;
  padding-top: var(--topbar-h);
  min-height: 100vh;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(42, 33, 26, .055) 1px, transparent 1px);
  background-size: 3px 3px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.78;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .55em;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.012em;
  color: var(--brown);
}

h1 { font-size: clamp(30px, 4.4vw, 52px); font-weight: 900; }
h2 { font-size: clamp(23px, 2.8vw, 34px); }
h3 { font-size: clamp(18px, 2vw, 23px); }

p { margin: 0 0 1.05em; }

img, svg { max-width: 100%; }

a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: var(--gold);
}

ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(11, 13, 16, .42);
  border-radius: 2px;
}

/* ---------- 03. 通用原子 ---------- */
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

.eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--slate);
}

.rule {
  height: 0;
  margin: 28px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.shell {
  width: min(100%, var(--shell));
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 48px);
}

.stack > * + * { margin-top: 1.1em; }

.grid-12 {
  display: grid;
  gap: clamp(18px, 2.6vw, 34px);
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.85;
  color: #1F1B17;
}
.prose > h2 { margin-top: 1.6em; }
.prose > h2:first-child { margin-top: 0; }
.prose > p { margin-bottom: 1.15em; }
.prose a { font-weight: 600; }

/* ---------- 04. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.btn--gold {
  background: var(--gold);
  color: var(--ink);
  box-shadow: inset 0 -3px 0 rgba(196, 55, 43, .55);
}
.btn--gold:hover {
  background: var(--gold-lift);
  box-shadow: inset 0 0 0 2px rgba(17, 17, 17, .28);
}

.btn--ink {
  background: var(--ink);
  color: var(--paper);
}
.btn--ink:hover {
  background: var(--brown);
  box-shadow: inset 0 0 0 2px var(--gold);
}

.btn--ghost {
  background: transparent;
  color: currentColor;
  border-color: currentColor;
}
.btn--ghost:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.btn--red {
  background: var(--red);
  color: #FFFFFF;
}
.btn--red:hover {
  background: #A82C22;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .28);
}

/* ---------- 05. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brown);
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 2px;
}
.tag--gold {
  background: rgba(245, 179, 1, .16);
  border-color: rgba(245, 179, 1, .55);
  color: var(--gold-ink);
}
.tag--red {
  background: rgba(196, 55, 43, .1);
  border-color: rgba(196, 55, 43, .38);
  color: var(--red);
}

/* ---------- 06. 面包屑 ---------- */
.crumbs {
  margin: 22px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--slate);
}
.crumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.crumbs__list a {
  color: var(--slate);
  text-decoration: none;
}
.crumbs__list a:hover,
.crumbs__list a:focus-visible {
  color: var(--ink);
  text-decoration: underline;
}
.crumbs__list [aria-current="page"] {
  color: var(--brown);
  font-weight: 700;
}
.crumbs__sep { color: var(--line); }

/* ---------- 07. 图片容器 ---------- */
.figure-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--mist);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
}
.figure-frame__media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background:
    linear-gradient(135deg, rgba(111, 133, 155, .32), rgba(11, 13, 16, .08) 58%, rgba(245, 179, 1, .14)),
    var(--mist);
}
.figure-frame__caption {
  display: block;
  padding: 10px 34px 10px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  line-height: 1.6;
  color: var(--slate);
  background: rgba(255, 255, 255, .62);
  border-top: 1px solid var(--line);
}

/* ---------- 08. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  padding: 12px 20px;
  background: var(--gold);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
  text-decoration: none;
  border-radius: 2px;
  box-shadow: 0 10px 28px rgba(11, 13, 16, .42);
  transform: translateY(-220%);
  transition: transform .2s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); }

/* ---------- 09. 头部骨架 ---------- */
.stand-header {
  position: relative;
  z-index: 70;
}

/* 顶部赛程速览条 */
.stand-top {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 12px;
  padding-inline: clamp(14px, 2.4vw, 26px);
  background: rgba(11, 13, 16, .94);
  color: var(--paper);
  border-bottom: 1px solid rgba(245, 179, 1, .32);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  backdrop-filter: blur(12px) saturate(1.3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--paper);
  text-decoration: none;
}
.brand__mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
  border-radius: 2px;
  box-shadow: inset 0 -3px 0 var(--red);
}
.brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.25;
  color: var(--paper);
  white-space: nowrap;
}
.brand__desc {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  line-height: 1.45;
  color: rgba(246, 239, 223, .58);
  white-space: nowrap;
}

.stand-top__status {
  margin: 0 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  line-height: 1;
  color: rgba(246, 239, 223, .7);
  white-space: nowrap;
}
.stand-top__batch { color: var(--gold); }
.stand-top__batch b { font-weight: 700; }
.stand-top__dot {
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(196, 55, 43, .22);
}
.stand-top__refresh { color: rgba(246, 239, 223, .55); }

/* 移动端目录按钮 */
.nav-toggle {
  display: none;
  flex: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(245, 179, 1, .1);
  border: 1px solid rgba(245, 179, 1, .55);
  border-radius: 2px;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav-toggle:hover { background: rgba(245, 179, 1, .22); }
.nav-toggle__bars {
  display: grid;
  gap: 3px;
  width: 15px;
}
.nav-toggle__bars i {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.stand-header[data-open] .nav-toggle {
  background: var(--gold);
  color: var(--ink);
}
.stand-header[data-open] .nav-toggle__bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.stand-header[data-open] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.stand-header[data-open] .nav-toggle__bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* 阅读进度 */
.read-progress {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  right: 0;
  height: 3px;
  z-index: 88;
  background: rgba(17, 17, 17, .08);
  pointer-events: none;
}
.read-progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--red) 92%);
  transition: width .12s linear;
}

/* 左侧轨道 */
.stand-rail {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  bottom: 0;
  z-index: 85;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  padding: 26px 20px 30px;
  background-color: var(--ink);
  background-image: linear-gradient(180deg, rgba(245, 179, 1, .08), transparent 38%);
  color: var(--paper);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 179, 1, .45) transparent;
}
.stand-rail::-webkit-scrollbar { width: 6px; }
.stand-rail::-webkit-scrollbar-thumb {
  background: rgba(245, 179, 1, .45);
  border-radius: 3px;
}

.stand-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.stand-nav__eyebrow {
  margin: 0 0 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  color: rgba(245, 179, 1, .72);
}
.stand-nav__list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}
.stand-nav__item { border-top: 1px solid rgba(246, 239, 223, .1); }
.stand-nav__item:last-child { border-bottom: 1px solid rgba(246, 239, 223, .1); }

.stand-nav__link {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 11px 6px 11px 0;
  color: rgba(246, 239, 223, .76);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1.4;
  text-decoration: none;
  transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}
.stand-nav__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 2px;
  background: var(--gold);
  transform: translateY(-50%);
  transition: width var(--dur) var(--ease);
}
.stand-nav__link:hover,
.stand-nav__link:focus-visible {
  color: var(--paper);
  padding-left: 14px;
}
.stand-nav__link:hover::before,
.stand-nav__link:focus-visible::before { width: 10px; }

.stand-nav__num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  color: rgba(246, 239, 223, .38);
  transition: color var(--dur) var(--ease);
}
.stand-nav__label { min-width: 0; }

.stand-nav__link[aria-current="page"] {
  color: var(--paper);
  padding-left: 14px;
  background: linear-gradient(90deg, rgba(245, 179, 1, .2), rgba(245, 179, 1, 0) 84%);
  box-shadow: inset 3px 0 0 var(--gold);
}
.stand-nav__link[aria-current="page"]::before { width: 0; }
.stand-nav__link[aria-current="page"] .stand-nav__num { color: var(--gold); }

.stand-nav__cta {
  width: 100%;
  margin-top: 4px;
}
.stand-nav__note {
  margin: 0;
  padding-top: 12px;
  font-size: 12px;
  line-height: 1.65;
  color: rgba(246, 239, 223, .46);
  border-top: 1px solid rgba(246, 239, 223, .1);
}

/* 桌面端：金箍棒分隔线 + 主体左偏移 */
@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }

  .stand-header::after {
    content: "";
    position: fixed;
    top: var(--topbar-h);
    left: var(--rail-w);
    bottom: 0;
    width: 2px;
    z-index: 86;
    background: linear-gradient(180deg, transparent, var(--gold) 8%, var(--gold) 92%, transparent);
    opacity: .6;
    pointer-events: none;
  }
}

/* 移动端：潮汐抽屉 */
@media (max-width: 1023px) {
  .nav-toggle { display: inline-flex; }

  .stand-rail {
    top: var(--topbar-h);
    left: 0;
    right: 0;
    bottom: auto;
    width: auto;
    max-height: calc(100vh - var(--topbar-h));
    max-height: calc(100dvh - var(--topbar-h));
    padding: 20px clamp(16px, 4vw, 28px) 26px;
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 24px 56px rgba(11, 13, 16, .48);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur) var(--ease), transform .26s var(--ease), visibility .26s;
  }
  .stand-header[data-open] .stand-rail {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .read-progress { left: 0; }
}

@media (max-width: 760px) {
  .stand-top__refresh { display: none; }
}

@media (max-width: 540px) {
  .brand__desc { display: none; }
  .stand-top__dot { display: none; }
  .nav-toggle { padding: 8px 10px; letter-spacing: .06em; }
}

/* ---------- 10. 页脚 ---------- */
.stand-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 110px);
  padding: clamp(44px, 6vw, 78px) clamp(20px, 4vw, 56px) 26px;
  background: var(--night);
  color: rgba(246, 239, 223, .78);
  border-top: 3px solid var(--gold);
  overflow: hidden;
}
.stand-footer::before {
  content: "";
  position: absolute;
  top: -190px;
  right: -130px;
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, rgba(245, 179, 1, .17), transparent 62%);
  pointer-events: none;
}
.stand-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(246, 239, 223, .035) 0 1px,
    transparent 1px 15px
  );
  pointer-events: none;
}

.stand-footer__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(28px, 4vw, 60px);
  max-width: 1200px;
  margin-inline: auto;
}

.stand-footer__wordmark {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 72px);
  font-weight: 900;
  line-height: .92;
  letter-spacing: .05em;
  color: var(--gold);
}
.stand-footer__name {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--paper);
}
.stand-footer__tagline {
  margin: 0 0 14px;
  max-width: 30ch;
  font-size: 14.5px;
  line-height: 1.75;
  color: rgba(246, 239, 223, .74);
}
.stand-footer__meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  line-height: 1.75;
  color: rgba(246, 239, 223, .42);
}

.stand-footer__head {
  margin: 0 0 14px;
  padding-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid rgba(245, 179, 1, .3);
}

.stand-footer__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.stand-footer__list a {
  display: block;
  padding: 5px 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(246, 239, 223, .74);
  text-decoration: none;
  transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}
.stand-footer__list a:hover,
.stand-footer__list a:focus-visible {
  color: var(--gold);
  padding-left: 6px;
}

.stand-footer__contact-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.stand-footer__contact-list li {
  display: grid;
  gap: 1px;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(246, 239, 223, .8);
  overflow-wrap: anywhere;
}
.stand-footer__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  color: rgba(246, 239, 223, .42);
}

.stand-footer__base {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  max-width: 1200px;
  margin: clamp(30px, 4vw, 52px) auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(246, 239, 223, .14);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .05em;
  color: rgba(246, 239, 223, .45);
}
.stand-footer__base p { margin: 0; }
.stand-footer__copy { color: rgba(246, 239, 223, .6); }
.stand-footer__icp { color: rgba(246, 239, 223, .62); }
.stand-footer__base .stand-footer__note { margin-left: auto; }

@media (max-width: 960px) {
  .stand-footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .stand-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .stand-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .stand-footer__base .stand-footer__note { margin-left: 0; }
}

/* ---------- 11. 滚动显现（无 JS 时默认可见） ---------- */
@media (prefers-reduced-motion: no-preference) {
  html[data-reveal="on"] [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .5s var(--ease), transform .5s var(--ease);
  }
  html[data-reveal="on"] [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 12. 减弱动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
