/* ==========================================================================
   全民体育看台 /assets/site.css — 共享外壳与基础组件
   ========================================================================== */

/* 1. reset ---------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background-color: var(--ink);
  background-image: repeating-linear-gradient(90deg, rgba(74, 107, 98, .1) 0 1px, transparent 1px 96px);
  background-attachment: fixed;
  color: var(--mist);
  font-family: var(--font-head);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
i, em { font-style: normal; }
[hidden] { display: none !important; }

/* 2. tokens --------------------------------------------------------------- */
:root {
  --ink: #0A1E19;
  --panel: #123029;
  --board: #071512;
  --cyan: #35F0C0;
  --mist: #9FE8D2;
  --orange: #FF5A36;
  --amber: #FFC24B;
  --ticket: #EFE6D6;
  --line: #4A6B62;

  --rail-w: 104px;
  --cut: 14px;
  --wrap-w: 1180px;
  --gutter: clamp(16px, 3vw, 40px);

  --font-num: "Barlow Condensed", "Oswald", "Noto Sans SC", system-ui, sans-serif;
  --font-head: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "Roboto Mono", "SFMono-Regular", "Noto Sans SC", monospace;

  --cut-tr: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  --cut-sm: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

/* 3. 中文排版 ------------------------------------------------------------- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; letter-spacing: -.02em; color: #fff; }
h1 { font-size: clamp(2rem, 5.4vw, 3.75rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.5rem); }
p { max-width: 64ch; }
p + p { margin-top: .9em; }

.tilt { transform: skewX(-1.5deg); }

.num {
  font-family: var(--font-num);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: .88;
  letter-spacing: .005em;
  color: var(--cyan);
}
.num--xl { font-size: clamp(48px, 12vw, 140px); }
.num--lg { font-size: clamp(38px, 6vw, 76px); }
.num--sm { font-size: clamp(26px, 3.2vw, 40px); }

.label {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .08em;
  color: var(--mist);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--orange);
  transform: skewX(-24deg);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  padding-bottom: 14px;
  margin-bottom: 26px;
  border-bottom: 1px solid rgba(74, 107, 98, .55);
}

/* 4. 布局容器 ------------------------------------------------------------- */
.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap-w));
  margin-inline: auto;
}

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

.rail-layout {
  display: grid;
  grid-template-columns: var(--rail-w) minmax(0, 1fr);
  align-items: start;
  width: min(100% - 2 * var(--gutter), var(--wrap-w));
  margin-inline: auto;
}
.rail-layout__main { padding-left: clamp(0px, 3vw, 36px); min-width: 0; }

/* 5. 按钮 ----------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1;
  clip-path: var(--cut-sm);
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.btn--accent { background: var(--orange); color: #210A03; }
.btn--accent:hover { background: #FF7A5C; transform: translateY(-1px); }
.btn--primary { background: var(--cyan); color: #04231A; }
.btn--primary:hover { background: #6BFFD7; transform: translateY(-1px); }
.btn--ghost {
  color: var(--mist);
  background: rgba(18, 48, 41, .7);
  box-shadow: inset 0 0 0 1px rgba(159, 232, 210, .35);
}
.btn--ghost:hover { color: var(--cyan); box-shadow: inset 0 0 0 1px var(--cyan); }

/* 6. 头部外壳 ------------------------------------------------------------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10, 30, 25, .95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(74, 107, 98, .55);
}
.masthead__progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(53, 240, 192, .7);
  transition: width .12s linear;
}

.masthead__top-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 0;
  transition: padding .25s ease;
}
.masthead.is-compact .masthead__top-inner { padding: 6px 0; }
.masthead.is-compact .brand-mark__meta { opacity: 0; }

.brand-mark { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand-mark__glyph {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  background:
    linear-gradient(135deg, var(--cyan) 0 44%, transparent 44%),
    linear-gradient(135deg, #1B4A3E 0 100%),
    var(--orange);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}
.brand-mark__text { display: block; }
.brand-mark__name {
  display: block;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #fff;
  transform: skewX(-1.5deg);
}
.brand-mark__meta {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--cyan);
  transition: opacity .25s ease;
}

.line-strip {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  padding: 4px 0;
  border-top: 1px solid rgba(74, 107, 98, .45);
  border-bottom: 1px solid rgba(74, 107, 98, .45);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.line-strip__track {
  display: flex;
  gap: 26px;
  width: max-content;
  animation: line-marquee 48s linear infinite;
}
.line-strip__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--mist);
  white-space: nowrap;
}
.line-strip__dot {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(53, 240, 192, .8);
}
@keyframes line-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.masthead__actions { flex: 0 0 auto; }

.masthead__bar {
  background: var(--panel);
  border-top: 1px solid rgba(74, 107, 98, .45);
}
.masthead__bar-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}
.masthead__meta {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--line);
  white-space: nowrap;
}

/* 7. 报站条导航 ----------------------------------------------------------- */
.site-nav { flex: 1 1 auto; min-width: 0; }
.site-nav__list { display: flex; flex-wrap: wrap; align-items: stretch; gap: 2px; }
.site-nav__item { display: flex; }
.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 12px 14px 15px;
  font-size: 15px;
  font-weight: 600;
  color: var(--mist);
  transition: color .18s ease, background-color .18s ease;
}
.site-nav__code {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--line);
  transition: color .18s ease;
}
.site-nav__link:hover { color: var(--cyan); background: rgba(53, 240, 192, .07); }
.site-nav__link:hover .site-nav__code { color: var(--cyan); }
.site-nav__link[aria-current="page"] { color: #fff; background: rgba(255, 90, 54, .1); }
.site-nav__link[aria-current="page"] .site-nav__code { color: var(--orange); }
.site-nav__link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  background: var(--orange);
}
.site-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  top: 9px;
  right: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 8px rgba(255, 90, 54, .9);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--mist);
  background: rgba(10, 30, 25, .9);
  clip-path: var(--cut-sm);
}
.nav-toggle__bars {
  width: 18px;
  height: 12px;
  background:
    linear-gradient(var(--cyan), var(--cyan)) 0 0 / 100% 2px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) 0 5px / 100% 2px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) 0 10px / 100% 2px no-repeat;
}
.nav-toggle[aria-expanded="true"] { color: var(--cyan); box-shadow: inset 0 0 0 1px var(--cyan); }

/* 8. 左轨时间轴 ----------------------------------------------------------- */
.rail {
  position: sticky;
  top: 132px;
  align-self: start;
  padding: 34px 20px 34px 0;
}
.rail__caption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--orange);
  margin-bottom: 16px;
}
.rail__stops {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-left: 16px;
}
.rail__stops::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), rgba(74, 107, 98, .2));
}
.rail__stop {
  position: relative;
  color: var(--line);
  transition: color .2s ease;
}
.rail__stop::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: inset 0 0 0 2px var(--line);
}
.rail__stop.is-current { color: #fff; }
.rail__stop.is-current::before {
  background: var(--amber);
  box-shadow: 0 0 10px rgba(255, 194, 75, .85);
}
.rail__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: inherit;
  opacity: .8;
}
.rail__value { display: block; font-size: 14px; font-weight: 600; }

/* 9. 面板与数据组件 ------------------------------------------------------- */
.panel {
  position: relative;
  padding: 26px 24px;
  background: var(--panel);
  clip-path: var(--cut-tr);
}
.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), rgba(53, 240, 192, 0));
}
.panel--board { background: var(--board); }
.panel--board::before { background: linear-gradient(90deg, var(--orange), rgba(255, 90, 54, 0)); }
.panel--ticket {
  background: var(--ticket);
  color: #123029;
  background-image:
    radial-gradient(circle at 0 50%, rgba(10, 30, 25, .9) 0 5px, transparent 5px),
    radial-gradient(circle at 100% 50%, rgba(10, 30, 25, .9) 0 5px, transparent 5px);
  background-size: 100% 24px;
  background-repeat: no-repeat;
  background-position: 0 12px, 100% 12px;
}
.panel--ticket h2,
.panel--ticket h3 { color: #0A1E19; }

.stat {
  padding: 16px 18px;
  background: var(--board);
  color: #fff;
  clip-path: var(--cut-tr);
}
.stat__value {
  font-family: var(--font-num);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  line-height: 1;
  color: var(--cyan);
}
.stat__label {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--mist);
  opacity: .85;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--mist);
  background: rgba(10, 30, 25, .75);
  box-shadow: inset 0 0 0 1px rgba(74, 107, 98, .8);
}
.chip--amber { color: var(--amber); box-shadow: inset 0 0 0 1px rgba(255, 194, 75, .6); }
.chip--amber::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  animation: chip-breathe 2.6s ease-out 1;
}
@keyframes chip-breathe {
  0% { box-shadow: 0 0 0 0 rgba(255, 194, 75, .7); }
  100% { box-shadow: 0 0 0 10px rgba(255, 194, 75, 0); }
}

.tag {
  display: inline-block;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: #04231A;
  background: var(--cyan);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}

.trail {
  height: 1px;
  margin: 42px 0;
  background: linear-gradient(90deg, var(--cyan), rgba(53, 240, 192, .06) 55%, var(--orange));
  transform: skewY(-.6deg);
}

/* 10. 图片容器 ------------------------------------------------------------ */
.frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--panel), var(--board));
  clip-path: var(--cut-tr);
}
.frame > img,
.frame > svg { width: 100%; height: 100%; object-fit: cover; }
.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 30, 25, 0) 42%, rgba(7, 21, 18, .8)),
    repeating-linear-gradient(90deg, rgba(53, 240, 192, .08) 0 1px, transparent 1px 26px);
}
.frame--wide { aspect-ratio: 16 / 9; }
.frame--photo { aspect-ratio: 4 / 3; }
.frame--tall { aspect-ratio: 3 / 4; }
.frame__cap {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--mist);
}

/* 11. 筛选条 -------------------------------------------------------------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-btn {
  padding: 9px 15px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--mist);
  background: rgba(18, 48, 41, .85);
  clip-path: var(--cut-sm);
  box-shadow: inset 0 0 0 1px rgba(74, 107, 98, .85);
  transition: background-color .18s ease, color .18s ease;
}
.filter-btn:hover { color: #fff; box-shadow: inset 0 0 0 1px var(--cyan); }
.filter-btn[aria-pressed="true"] {
  background: var(--cyan);
  color: #04231A;
  box-shadow: none;
}

/* 12. 面包屑 -------------------------------------------------------------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 20px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--line);
}
.breadcrumb a { color: var(--mist); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb__sep { color: var(--line); }

/* 13. 页脚 ---------------------------------------------------------------- */
.site-footer {
  position: relative;
  margin-top: 72px;
  background: var(--board);
  border-top: 1px solid rgba(74, 107, 98, .5);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), rgba(53, 240, 192, .04) 45%, var(--orange));
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1.35fr;
  gap: 34px;
  padding: 58px 0 40px;
}
.footer__brand-name {
  display: inline-block;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #fff;
  transform: skewX(-1.5deg);
}
.footer__note {
  max-width: 40ch;
  margin-top: 12px;
  font-size: 14px;
  color: var(--mist);
  opacity: .82;
}
.footer__icp {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--mist);
  opacity: .72;
}
.footer__title {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--cyan);
}
.footer__list { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer__list a {
  color: var(--mist);
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.footer__list a:hover { color: #fff; border-color: var(--orange); }

.footer__contact { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.footer__contact li { display: grid; gap: 2px; }
.footer__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--line);
}
.footer__value { color: var(--mist); word-break: break-word; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 0 30px;
  border-top: 1px solid rgba(74, 107, 98, .4);
  background-image: repeating-linear-gradient(90deg, rgba(74, 107, 98, .35) 0 1px, transparent 1px 14px);
  background-repeat: repeat-x;
  background-position: 0 0;
  background-size: auto 10px;
  font-size: 13px;
}
.footer__copy { color: var(--mist); opacity: .8; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__legal a { color: var(--mist); border-bottom: 1px solid rgba(74, 107, 98, .8); }
.footer__legal a:hover { color: var(--cyan); border-color: var(--cyan); }

/* 14. 通用工具 ------------------------------------------------------------ */
.skip-link {
  position: absolute;
  left: 16px;
  top: -70px;
  z-index: 200;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 700;
  color: #04231A;
  background: var(--cyan);
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

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

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .55s ease var(--reveal-delay, 0ms), transform .55s ease var(--reveal-delay, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

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

/* 15. 响应式 -------------------------------------------------------------- */
@media (min-width: 1041px) {
  .masthead__bar-inner::before {
    content: "";
    width: var(--rail-w);
    align-self: stretch;
    margin-right: 16px;
    border-right: 1px solid rgba(74, 107, 98, .5);
    background: linear-gradient(180deg, rgba(53, 240, 192, .22), rgba(53, 240, 192, 0));
  }
}

@media (max-width: 1040px) {
  .rail-layout { grid-template-columns: minmax(0, 1fr); }
  .rail-layout__main { padding-left: 0; }
  .rail {
    position: static;
    padding: 16px 0 14px;
    border-bottom: 1px solid rgba(74, 107, 98, .45);
    overflow-x: auto;
  }
  .rail__caption { margin-bottom: 10px; }
  .rail__stops { flex-direction: row; gap: 20px; padding-left: 0; }
  .rail__stops::before { display: none; }
  .rail__stop { flex: 0 0 auto; }
  .rail__stop::before { position: static; display: inline-block; margin-right: 6px; }
  .grid--12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__col--brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .masthead__top-inner { flex-wrap: wrap; gap: 12px; }
  .line-strip { order: 3; flex: 1 0 100%; }
  .nav-toggle { display: inline-flex; }
  .masthead__meta { display: none; }
  .site-nav {
    position: absolute;
    left: calc(-1 * var(--gutter));
    right: calc(-1 * var(--gutter));
    top: 100%;
    max-height: 0;
    overflow: hidden;
    background: var(--ink);
    border-top: 1px solid rgba(74, 107, 98, .5);
    border-bottom: 1px solid rgba(74, 107, 98, .5);
    transition: max-height .3s ease;
  }
  .site-nav[data-open] { max-height: 460px; }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__link {
    width: 100%;
    padding: 15px var(--gutter);
    border-bottom: 1px solid rgba(74, 107, 98, .22);
  }
  .site-nav__link[aria-current="page"]::before { left: var(--gutter); right: var(--gutter); bottom: 8px; }
  .masthead__bar-inner { min-height: 52px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid--12 { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 44px 0 32px; }
  .brand-mark__meta { font-size: 10px; }
  .masthead__actions .btn { padding: 10px 13px; font-size: 13px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* 16. reduced motion ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .line-strip__track { animation: none; }
  .masthead__progress { transition: none; }
}
