/* ==========================================================================
   8868赛场 — 共享层 /assets/site.css
   深空墨底 + 面板黑模块 + 荧光青信号色，粗边框硬阴影的夜间赛场数据语言
   ========================================================================== */

:root {
  --ink: #05070A;
  --panel: #0B1015;
  --grid: #1A2229;
  --muted: #8A98A6;
  --paper: #EAEFF3;
  --cyan: #35F5D0;
  --cyan-deep: #0E5F55;
  --orange: #FF8A2B;
  --red: #FF3B4E;
  --reverse: #F4F7F8;

  --font-display: "Archivo Narrow", "Oswald", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --shell: 1280px;
  --shadow-hard: 6px 6px 0 0 var(--grid);
  --shadow-press: 4px 4px 0 0 var(--grid);
  --line: 1px solid var(--grid);
  --line-bold: 2px solid var(--grid);
  --header-pad: 16px;
}

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

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--paper);
}

h1 { font-size: clamp(34px, 5.4vw, 68px); }
h2 { font-size: clamp(26px, 3.4vw, 40px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); }

p { margin: 0 0 1.1em; }

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--paper); }

strong { color: var(--paper); font-weight: 700; }

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

#main-content {
  display: block;
  scroll-margin-top: 96px;
}

/* --- 布局底座 -------------------------------------------------------------- */
.shell {
  width: min(var(--shell), 100% - 48px);
  margin-inline: auto;
}

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

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

.grid--auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.prose {
  max-width: 62ch;
  color: var(--paper);
}

.prose > p:last-child { margin-bottom: 0; }

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

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.mono--cyan { color: var(--cyan); }
.mono--orange { color: var(--orange); }
.mono--red { color: var(--red); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid var(--cyan-deep);
  background: rgba(14, 95, 85, 0.35);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --- 按钮 ----------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 2px solid var(--cyan);
  background: var(--cyan);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-press);
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease;
}

.btn:hover {
  color: var(--ink);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 0 var(--grid);
}

.btn--ghost {
  background: transparent;
  color: var(--cyan);
}

.btn--ghost:hover {
  background: var(--cyan-deep);
  color: var(--paper);
  border-color: var(--cyan);
}

/* --- 面包屑 --------------------------------------------------------------- */
.breadcrumb { padding: 18px 0 0; }

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.breadcrumb__item { display: inline-flex; align-items: center; gap: 10px; }

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: var(--grid);
}

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

/* --- 章节头 / 刻度带 ------------------------------------------------------- */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: var(--line-bold);
  margin-bottom: 28px;
}

.section-head__num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--cyan);
}

.section-head__title {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
}

.section-head__note {
  margin: 0 0 0 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.chapter-band {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
  margin: 56px 0;
  border-top: var(--line-bold);
  border-bottom: var(--line-bold);
}

.chapter-band__num {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--cyan);
}

.chapter-band__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.chapter-band__fill {
  flex: 1 1 auto;
  min-width: 40px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--grid) 0 8px, transparent 8px 16px);
}

/* --- 卡片 / 数据块 -------------------------------------------------------- */
.card {
  background: var(--panel);
  border: var(--line-bold);
  box-shadow: var(--shadow-hard);
  padding: 22px;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.card:hover {
  border-color: var(--cyan);
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-press);
}

.card--accent { border-color: var(--cyan-deep); }

.card > :last-child { margin-bottom: 0; }

.metric {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.metric__value {
  font-family: var(--font-mono);
  font-size: clamp(30px, 4.6vw, 52px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

.metric__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.metric--orange .metric__value { color: var(--orange); }
.metric--red .metric__value { color: var(--red); }

/* --- 图片容器（页面阶段放置 <img>） -------------------------------------- */
.figure {
  position: relative;
  margin: 0;
  background: var(--panel);
  border: var(--line-bold);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
}

.figure__media {
  aspect-ratio: 16 / 9;
  background: var(--ink);
}

.figure__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure__media--placeholder {
  background:
    repeating-linear-gradient(135deg, rgba(53, 245, 208, 0.07) 0 2px, transparent 2px 14px),
    var(--panel);
}

.figure__caption {
  padding: 10px 14px;
  border-top: var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.figure--wide .figure__media { aspect-ratio: 21 / 9; }
.figure--tall .figure__media { aspect-ratio: 4 / 5; }
.figure--square .figure__media { aspect-ratio: 1 / 1; }

/* --- 折叠面板 ------------------------------------------------------------- */
.fold {
  background: var(--panel);
  border: var(--line-bold);
}

.fold + .fold { margin-top: -2px; }

.fold__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--paper);
  list-style: none;
}

.fold__summary::-webkit-details-marker { display: none; }

.fold__summary::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--cyan);
}

.fold[open] .fold__summary { border-bottom: var(--line); }
.fold[open] .fold__summary::after { content: "–"; }

.fold__body {
  padding: 16px 18px;
  color: var(--muted);
}

.fold__body > :last-child { margin-bottom: 0; }

/* --- 章节轨 / 显现 --------------------------------------------------------- */
.chapter-rail__link {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  border-left: 2px solid var(--grid);
  padding: 6px 0 6px 12px;
}

.chapter-rail__link.is-current {
  color: var(--cyan);
  border-left-color: var(--cyan);
}

.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 280ms ease, transform 280ms ease;
}

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

/* --- 跳转链接 ------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 10px 16px;
  border: 2px solid var(--ink);
  background: var(--cyan);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: top 180ms ease;
}

.skip-link:focus {
  top: 12px;
  color: var(--ink);
}

/* ==========================================================================
   头部
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--ink);
  border-bottom: var(--line-bold);
}

.progress-rail {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--grid);
}

.progress-rail__fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--cyan);
  transition: width 120ms linear;
}

.header-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: var(--header-pad);
  transition: padding-block 180ms ease;
}

.site-header[data-condensed] { --header-pad: 8px; }

/* 品牌锁合体 */
.brand-lockup {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.brand-lockup__name {
  position: relative;
  padding-left: 16px;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--paper);
  white-space: nowrap;
}

.brand-lockup__name::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 20px;
  transform: translateY(-50%);
  background: var(--cyan);
}

.brand-lockup__name:hover { color: var(--cyan); }

.brand-lockup__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-lockup__domain {
  color: var(--paper);
  font-weight: 700;
}

.brand-lockup__tag {
  padding: 2px 7px;
  border: 1px solid var(--cyan-deep);
  background: rgba(14, 95, 85, 0.35);
  color: var(--cyan);
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: var(--line-bold);
  background: var(--panel);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.nav-toggle[aria-expanded="true"] {
  border-color: var(--cyan);
  color: var(--cyan);
}

.nav-toggle__bars {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 -6px 0 var(--cyan), 0 6px 0 var(--cyan);
}

/* 分置导航 */
.nav-rail {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.nav-rail__list {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.nav-rail__link {
  display: block;
  padding: 8px 12px 6px;
  border-bottom: 2px solid transparent;
  color: var(--paper);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  transition: color 180ms ease, border-color 180ms ease;
}

.nav-rail__link:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan-deep);
}

.nav-rail__link[aria-current="page"] {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.nav-rail__cta { flex: 0 0 auto; }

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  margin-top: 96px;
  padding-top: 56px;
  border-top: var(--line-bold);
  background: var(--panel);
  color: var(--paper);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 32px 28px;
  padding-bottom: 40px;
}

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

.footer-col--brand { padding-right: 12px; }

.footer-brand {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.footer-domain {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--cyan);
}

.footer-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 34ch;
}

.footer-col__title {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.footer-list li { line-height: 1.6; }

.footer-list a {
  color: var(--paper);
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

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

.footer-list--plain { color: var(--muted); }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0 24px;
  border-top: var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.footer-legal__icp {
  margin: 0;
  color: var(--paper);
}

.footer-legal__copy { margin: 0; }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1200px) {
  .nav-rail__list {
    overflow-x: auto;
    scrollbar-width: none;
  }
  .nav-rail__list::-webkit-scrollbar { display: none; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 28px 20px; }
}

@media (max-width: 980px) {
  :root { --header-pad: 12px; }

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

  .nav-rail {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - 100%);
    overflow-y: auto;
    padding: 6px 0 18px;
    background: var(--panel);
    border-bottom: 2px solid var(--cyan);
  }

  .site-header[data-open] .nav-rail { display: flex; }

  .nav-rail__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-inline: 24px;
    overflow: visible;
  }

  .nav-rail__link {
    padding: 13px 0;
    border-bottom: var(--line);
    border-left: 2px solid transparent;
    font-size: 15px;
  }

  .nav-rail__link:hover,
  .nav-rail__link[aria-current="page"] {
    border-bottom-color: var(--grid);
    border-left-color: var(--cyan);
    padding-left: 12px;
  }

  .nav-rail__cta {
    margin: 16px 24px 0;
    justify-content: center;
  }

  .grid--12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-col--brand { grid-column: 1 / -1; padding-right: 0; }
  .footer-desc { max-width: none; }

  .chapter-band { margin: 40px 0; }
}

@media (max-width: 640px) {
  .shell { width: min(var(--shell), 100% - 32px); }

  body { font-size: 15px; }

  .brand-lockup__name { font-size: 22px; }
  .brand-lockup__name::before { height: 16px; }
  .brand-lockup__meta { font-size: 10px; gap: 8px; }

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

  .section-head__note { margin-left: 0; }

  .card { padding: 18px; }
  .figure,
  .card,
  .fold { box-shadow: var(--shadow-press); }

  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-legal { justify-content: flex-start; }
  .site-footer { margin-top: 64px; padding-top: 40px; }
}

/* ==========================================================================
   动效降级
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .has-js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .progress-rail__fill { transition: none; }
}
