/* =========================================================
   亚博赛场 · 共享样式 /assets/site.css
   比赛日导播台 × 展览画册
   ========================================================= */

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

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

body { margin: 0; }

img,
picture,
svg,
video { max-width: 100%; display: block; }

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

table { border-collapse: collapse; width: 100%; }

/* ---------- 2. Tokens ---------- */
:root {
  --night: #0A1A2F;
  --night-mid: #14304F;
  --orange: #FF5A1F;
  --orange-lit: #FF8A4C;
  --green: #12B76A;
  --paper: #F8F6F0;
  --ink: #151A21;
  --fog: #66707C;
  --line: #D9DEE6;
  --white: #FFFFFF;

  --rail-w: 88px;
  --topbar-h: 58px;
  --maxw: 1280px;
  --readw: 680px;

  --font-sans: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --hair: 1px solid var(--line);
  --shadow-1: 0 1px 0 rgba(10, 26, 47, .04), 0 12px 30px -24px rgba(10, 26, 47, .55);
}

/* ---------- 3. Base typography ---------- */
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  padding-top: var(--topbar-h);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.15;
}

h1 { font-size: clamp(32px, 6vw, 56px); }
h2 { font-size: clamp(24px, 3.6vw, 38px); }
h3 { font-size: 20px; line-height: 1.35; }
h4 { font-size: 17px; line-height: 1.4; }

.display {
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.02;
  font-size: clamp(36px, 6.4vw, 68px);
}

.title-lg {
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.12;
  font-size: clamp(26px, 3.8vw, 42px);
}

.title-md {
  font-weight: 900;
  letter-spacing: -.01em;
  line-height: 1.2;
  font-size: clamp(20px, 2.4vw, 26px);
}

.title-sm {
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
  font-size: 17px;
}

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

.lead {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.7;
  color: var(--fog);
  max-width: var(--readw);
}

.note {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--fog);
  letter-spacing: .02em;
}

.prose {
  max-width: var(--readw);
  font-size: 16.5px;
  line-height: 1.8;
}

.prose p + p { margin-top: 1.1em; }

.prose a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.prose a:hover { color: var(--orange-lit); }

.prose strong { font-weight: 700; }

::selection {
  background: var(--orange);
  color: #fff;
}

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

/* ---------- 4. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: 20px;
}

.container--read {
  max-width: var(--readw);
}

@media (min-width: 768px) {
  .container { padding-inline: 40px; }
  .container--read { padding-inline: 0; }
}

@media (min-width: 1024px) {
  .container { padding-inline: 48px; }
}

.section {
  padding-block: 56px;
}

.section--tight {
  padding-block: 32px;
}

@media (min-width: 768px) {
  .section { padding-block: 80px; }
  .section--tight { padding-block: 44px; }
}

.section--night {
  background: var(--night);
  color: rgba(248, 246, 240, .86);
}

.section--night .lead { color: rgba(248, 246, 240, .68); }
.section--night .note { color: rgba(248, 246, 240, .58); }
.section--night .title-lg,
.section--night .title-md,
.section--night .display { color: var(--paper); }

.stack > * + * { margin-top: 16px; }

.grid {
  display: grid;
  gap: 24px;
}

.grid--2,
.grid--3 {
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

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

.tex-grid {
  background-image:
    linear-gradient(rgba(217, 222, 230, .55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 222, 230, .55) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: center;
}

/* ---------- 5. Small components ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fog);
}

.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--orange);
  flex: none;
}

.eyebrow--light { color: rgba(248, 246, 240, .62); }

.chip {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding-inline: 10px;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--fog);
  background: var(--white);
  border: var(--hair);
  border-radius: 2px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--green);
}

.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding-inline: 22px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  border: 1px solid transparent;
  border-radius: 2px;
  transition:
    background-color .18s var(--ease),
    border-color .18s var(--ease),
    color .18s var(--ease),
    transform .18s var(--ease);
}

.btn--primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.btn--primary:hover {
  background: var(--orange-lit);
  border-color: var(--orange-lit);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(248, 246, 240, .34);
  color: var(--paper);
}

.btn--ghost:hover {
  border-color: var(--paper);
  transform: translateY(-2px);
}

.btn--ink {
  background: var(--night);
  border-color: var(--night);
  color: var(--paper);
}

.btn--ink:hover {
  background: var(--night-mid);
  border-color: var(--night-mid);
  transform: translateY(-2px);
}

.panel {
  position: relative;
  background: var(--white);
  border: var(--hair);
  border-radius: 2px;
  padding: 24px;
  box-shadow: var(--shadow-1);
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}

.panel:hover {
  transform: translateY(-2px);
  border-color: #B9C1CC;
}

.panel--dark {
  background: var(--night-mid);
  border-color: rgba(248, 246, 240, .16);
  color: rgba(248, 246, 240, .82);
}

.panel__title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: 10px;
}

.board {
  position: relative;
  background: var(--night);
  color: var(--paper);
  border: 1px solid rgba(248, 246, 240, .14);
  border-radius: 2px;
  padding: 22px 24px;
}

.board::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(248, 246, 240, .08);
  pointer-events: none;
}

.board__num {
  display: block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  color: var(--orange);
  letter-spacing: .02em;
}

.board__label {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: .16em;
  color: rgba(248, 246, 240, .58);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--fog);
}

.breadcrumb a {
  color: var(--fog);
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}

.breadcrumb a:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.breadcrumb__sep {
  color: var(--line);
}

.breadcrumb [aria-current="page"] {
  color: var(--ink);
}

/* 图片容器：页面阶段放入 <img> 即可 */
.media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: var(--hair);
  border-radius: 2px;
  background-color: var(--night-mid);
  background-image:
    linear-gradient(rgba(248, 246, 240, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248, 246, 240, .07) 1px, transparent 1px);
  background-size: 24px 24px;
}

.media > img,
.media > picture,
.media > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 3 / 4; }

.media--slant {
  border: 0;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%);
}

.media__tag {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--paper);
  background: var(--night);
}

/* ---------- 6. Header ---------- */
.site-header {
  position: relative;
  z-index: 130;
}

.skip-link {
  position: fixed;
  top: -72px;
  left: 12px;
  z-index: 200;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--orange);
  border-radius: 2px;
  transition: top .18s var(--ease);
}

.skip-link:focus {
  top: 12px;
}

/* 阅读进度 */
.readbar {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  right: 0;
  height: 3px;
  z-index: 100;
  background: rgba(10, 26, 47, .1);
  pointer-events: none;
  transition: opacity .2s var(--ease);
}

.readbar[data-visible="false"] { opacity: 0; }

.readbar__fill {
  display: block;
  width: 0;
  height: 100%;
  background: var(--orange);
}

/* 移动顶栏 */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-h);
  z-index: 130;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px 0 16px;
  background: var(--night);
  color: var(--paper);
  border-bottom: 1px solid rgba(248, 246, 240, .1);
}

.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.topbar__mark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  background: var(--orange);
  border-radius: 2px;
}

.topbar__word {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.topbar__season {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: rgba(248, 246, 240, .55);
  white-space: nowrap;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding-inline: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #fff;
  background: var(--orange);
  border-radius: 2px;
  transition: background-color .18s var(--ease);
}

.nav-toggle:hover { background: var(--orange-lit); }

.nav-toggle__icon {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
  flex: none;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  transition: transform .2s var(--ease), top .2s var(--ease);
}

.nav-toggle__icon::before { top: 1px; }
.nav-toggle__icon::after { top: 9px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before {
  top: 5px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after {
  top: 5px;
  transform: rotate(-45deg);
}

.nav-toggle__label { line-height: 1; }

/* 侧轨 / 抽屉 */
.rail {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  bottom: 0;
  width: min(84vw, 320px);
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 20px 28px;
  overflow-y: auto;
  background: var(--night);
  color: var(--paper);
  border-right: 1px solid rgba(248, 246, 240, .1);
  transform: translateX(-102%);
  transition: transform .22s var(--ease);
}

.rail[data-open="true"] { transform: translateX(0); }

.rail__top { display: none; }

.rail__season {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: .1em;
  color: rgba(248, 246, 240, .6);
}

.rail__dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--green);
}

.rail__nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.rail__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.rail__link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 13px 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  color: rgba(248, 246, 240, .7);
  border-bottom: 1px solid rgba(248, 246, 240, .08);
  border-radius: 2px;
  transition:
    color .18s var(--ease),
    background-color .18s var(--ease),
    box-shadow .18s var(--ease);
}

.rail__link:hover {
  color: var(--paper);
  background: rgba(248, 246, 240, .07);
}

.rail__link[aria-current="page"] {
  color: #fff;
  background: rgba(255, 90, 31, .14);
  box-shadow: inset 3px 0 0 var(--orange);
}

.rail__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.rail__cta {
  display: grid;
  place-items: center;
  height: 40px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .03em;
  text-align: center;
  color: var(--paper);
  border: 1px solid rgba(248, 246, 240, .34);
  border-radius: 2px;
  transition:
    background-color .18s var(--ease),
    border-color .18s var(--ease),
    color .18s var(--ease);
}

.rail__cta:hover {
  border-color: var(--paper);
  background: rgba(248, 246, 240, .1);
}

.rail__cta--key {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.rail__cta--key:hover {
  background: var(--orange-lit);
  border-color: var(--orange-lit);
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(10, 26, 47, .58);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s var(--ease);
}

.scrim[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 379px) {
  .topbar__season { display: none; }
}

/* 桌面：固定侧轨 */
@media (min-width: 1024px) {
  body {
    padding-top: 0;
    padding-left: var(--rail-w);
  }

  .topbar { display: none; }

  .readbar {
    top: 0;
    left: var(--rail-w);
  }

  .rail {
    top: 0;
    width: var(--rail-w);
    padding: 20px 0 22px;
    align-items: center;
    gap: 14px;
    overflow: visible;
    transform: none;
    border-right: 1px solid rgba(248, 246, 240, .12);
  }

  .rail__top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .rail__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .rail__mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    font-size: 15px;
    font-weight: 900;
    color: #fff;
    background: var(--orange);
    border-radius: 2px;
  }

  .rail__word {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--paper);
    white-space: nowrap;
  }

  .rail__season {
    flex-direction: column;
    gap: 8px;
    writing-mode: vertical-rl;
    font-size: 10px;
    letter-spacing: .12em;
    color: rgba(248, 246, 240, .5);
    max-height: 140px;
    overflow: hidden;
  }

  .rail__dot { width: 5px; height: 5px; }

  .rail__nav {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    overflow-y: auto;
    padding-block: 4px;
  }

  .rail__list {
    align-items: center;
    width: 100%;
    gap: 2px;
  }

  .rail__link {
    display: inline-block;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    padding: 9px 7px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .18em;
    line-height: 1;
    color: rgba(248, 246, 240, .66);
    border-bottom: 0;
    border-radius: 2px;
  }

  .rail__link[aria-current="page"] {
    color: #fff;
    background: rgba(255, 90, 31, .16);
    box-shadow: inset 0 3px 0 var(--orange);
  }

  .rail__actions {
    grid-template-columns: 1fr;
    gap: 6px;
    width: 100%;
    padding-inline: 10px;
  }

  .rail__cta {
    height: 34px;
    font-size: 12px;
    letter-spacing: 0;
  }

  .scrim { display: none; }
}

@media (min-width: 1024px) and (max-height: 820px) {
  .rail__season { display: none; }
}

@media (max-width: 1023.98px) {
  body.is-nav-open { overflow: hidden; }
}

/* ---------- 7. Footer ---------- */
.site-footer {
  background: var(--night);
  color: rgba(248, 246, 240, .78);
  border-top: 4px solid var(--orange);
}

.footer-band {
  padding-block: 40px;
  padding-inline: max(20px, calc((100% - var(--maxw)) / 2));
}

@media (min-width: 768px) {
  .footer-band { padding-block: 52px; }
}

.footer-band--lead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-bottom: 1px solid rgba(248, 246, 240, .1);
}

.footer-lead {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
}

.footer-brand__mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  background: var(--orange);
  border-radius: 2px;
}

.footer-brand__word {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.01em;
}

.footer-brand__line {
  font-size: 12.5px;
  letter-spacing: .06em;
  color: rgba(248, 246, 240, .58);
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-band--cols {
  background: var(--night-mid);
  border-bottom: 1px solid rgba(248, 246, 240, .1);
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding-bottom: 22px;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(248, 246, 240, .14);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .02em;
  color: rgba(248, 246, 240, .72);
}

.footer-contact__item { display: inline-flex; flex-wrap: wrap; }

.footer-contact__key {
  margin-right: 8px;
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--orange-lit);
}

.footer-cols {
  display: grid;
  gap: 30px;
}

@media (min-width: 760px) {
  .footer-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px 40px;
  }
}

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

.footer-col__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.4;
  color: var(--paper);
}

.footer-col__title::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  background: var(--orange);
}

.footer-list {
  display: grid;
  gap: 9px;
  font-size: 13.5px;
  color: rgba(248, 246, 240, .6);
}

.footer-list a {
  color: rgba(248, 246, 240, .74);
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}

.footer-list a:hover {
  color: var(--paper);
  border-bottom-color: var(--orange);
}

.footer-band--legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 22px;
  font-size: 12px;
  color: rgba(248, 246, 240, .5);
}

.footer-legal {
  font-family: var(--font-mono);
  letter-spacing: .06em;
}

.footer-sign { letter-spacing: .02em; }

/* ---------- 8. 阅读辅助动效 ---------- */
.is-reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}

.is-reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-spy-link] {
  transition: color .18s var(--ease), border-color .18s var(--ease);
}

[data-spy-link][aria-current="true"] {
  color: var(--orange);
}

/* ---------- 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;
  }

  .is-reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .panel:hover,
  .btn:hover {
    transform: none;
  }
}
