/* ===========================================================
   333体育 · /assets/site.css
   共享外壳：导播台墨绿导览轨道 + 沙白纸面正文 + 深墨页脚
   =========================================================== */

:root {
  /* 色彩 */
  --ink: #07241F;
  --ink-2: #0E4036;
  --grass: #1E6B58;
  --neon: #39F2D0;
  --mist: #B8FFEF;
  --amber: #E8A317;
  --amber-hi: #F7BE45;
  --paper: #F3EBDD;
  --paper-hi: #FBF7EF;
  --muted: #4F5F58;
  --muted-dark: #9DB8B0;
  --coral: #F26B4B;
  --ink-text: #1A2A24;

  /* 尺寸 */
  --rail: 236px;
  --gutter: clamp(16px, 4vw, 52px);
  --measure: 1240px;
  --radius-lg: 26px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --pill: 999px;

  /* 字体 */
  --font-display: "Barlow Condensed", "Oswald", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "Roboto Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

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

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

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

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

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

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

a { color: var(--grass); }

/* ---------- 中文排版基础 ---------- */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-text);
  background: var(--paper);
  text-underline-offset: 0.22em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(34px, 5vw, 72px); }
h2 { font-size: clamp(26px, 3.5vw, 46px); }
h3 { font-size: clamp(20px, 2.2vw, 28px); }

p { text-wrap: pretty; }

/* ---------- 焦点与可访问性 ---------- */
:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  display: inline-block;
  padding: 12px 22px;
  background: var(--amber);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus,
.skip-link:focus-visible {
  left: 0;
  outline-offset: 0;
}

/* ===========================================================
   头部：导览轨道
   =========================================================== */
.rail {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid rgba(30, 107, 88, 0.55);
}

.rail__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
}

/* 品牌 */
.brand {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-right: auto;
  text-decoration: none;
  color: inherit;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 25px;
  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--paper);
  transition: color 0.18s ease;
}

.brand__sig {
  font-family: var(--font-serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--mist);
  opacity: 0.78;
}

.brand:hover .brand__name { color: var(--neon); }

/* 状态胶囊 */
.rail__status {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid rgba(57, 242, 208, 0.38);
  border-radius: var(--pill);
  background: rgba(57, 242, 208, 0.08);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--mist);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 0 3px rgba(57, 242, 208, 0.18);
  flex: none;
}

/* 移动导航按钮 */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 15px;
  border: 1px solid rgba(184, 255, 239, 0.35);
  border-radius: var(--pill);
  color: var(--mist);
  font-size: 13px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
  border-color: var(--neon);
  color: var(--neon);
  background: rgba(57, 242, 208, 0.1);
}

.nav-toggle__bars {
  display: block;
  width: 16px;
  height: 10px;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 50% / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat;
}

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

/* 导航 */
.nav {
  display: none;
  width: 100%;
}

.rail[data-open="true"] .nav {
  display: block;
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px dashed rgba(30, 107, 88, 0.6);
}

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

.nav__item { min-width: 0; }

.nav__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 2px;
  text-decoration: none;
  color: var(--paper);
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid rgba(30, 107, 88, 0.32);
  transition: color 0.18s ease, padding-left 0.18s ease;
}

.nav__link:hover { color: var(--neon); }

.nav__idx {
  flex: none;
  min-width: 22px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--neon);
  opacity: 0.65;
  transition: opacity 0.18s ease;
}

.nav__label { min-width: 0; }

.nav__link[aria-current="page"] {
  color: var(--neon);
  font-weight: 700;
}

.nav__link[aria-current="page"] .nav__idx {
  opacity: 1;
  color: var(--ink);
  background: var(--neon);
  border-radius: 4px;
  padding: 1px 5px;
  min-width: 0;
}

/* 入口按钮 */
.rail__cta {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--pill);
  background: var(--amber);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.rail[data-open="true"] .rail__cta {
  display: inline-flex;
  width: 100%;
  margin-top: 12px;
}

.rail__cta:hover {
  background: var(--amber-hi);
  box-shadow: 0 0 0 4px rgba(232, 163, 23, 0.2);
}

/* 装饰刻度 / 进度 */
.rail__scale { display: none; }
.rail__progress { display: none; }

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

  .rail {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--rail);
    border-bottom: 0;
    border-right: 1px solid rgba(30, 107, 88, 0.55);
  }

  .rail__inner {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    height: 100%;
    padding: 32px 22px 26px;
    gap: 0;
    overflow: hidden;
  }

  .brand { margin-right: 0; }

  .brand__name { font-size: 31px; }

  .rail__status {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 16px;
  }

  .nav-toggle { display: none; }

  .nav {
    display: block;
    width: auto;
    flex: 1 1 auto;
    min-height: 0;
    margin-top: 26px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--grass) transparent;
  }

  .rail[data-open="true"] .nav {
    margin-top: 26px;
    padding-top: 0;
    border-top: 0;
  }

  .nav__link {
    padding: 11px 0;
    font-size: 14.5px;
    border-bottom: 1px solid rgba(30, 107, 88, 0.36);
  }

  .nav__link:hover { padding-left: 6px; }

  .rail__cta {
    display: inline-flex;
    width: 100%;
    margin-top: 22px;
  }

  .rail[data-open="true"] .rail__cta {
    display: inline-flex;
    width: 100%;
    margin-top: 22px;
  }

  .rail__scale {
    display: block;
    position: absolute;
    top: 120px;
    bottom: 120px;
    right: 9px;
    width: 2px;
    background-image: repeating-linear-gradient(
      to bottom,
      rgba(30, 107, 88, 0.85) 0 2px,
      transparent 2px 11px
    );
    pointer-events: none;
  }

  .rail__progress {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 0;
    background: var(--neon);
    box-shadow: 0 0 14px rgba(57, 242, 208, 0.75);
    pointer-events: none;
    transition: height 0.08s linear;
  }
}

/* ===========================================================
   页脚
   =========================================================== */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 96px);
  padding: clamp(38px, 6vw, 72px) var(--gutter) 0;
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid rgba(57, 242, 208, 0.22);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--neon) 0 27%, var(--amber) 27% 41%, var(--grass) 41% 100%);
  opacity: 0.75;
}

.footer__grid {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr);
  max-width: var(--measure);
  margin-inline: auto;
}

.footer__brand { min-width: 0; }

.footer__line {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(21px, 2.6vw, 30px);
  line-height: 1.28;
  letter-spacing: 0.01em;
  color: var(--paper);
}

.footer__summary {
  margin-top: 14px;
  max-width: 34em;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--muted-dark);
}

.footer__title {
  margin-bottom: 14px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--amber);
}

.footer__list li + li { margin-top: 10px; }

.footer__list a {
  display: inline-block;
  font-size: 14.5px;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.footer__list a:hover {
  color: var(--neon);
  border-bottom-color: rgba(57, 242, 208, 0.55);
}

.footer__nav--legal .footer__title { color: var(--mist); }

.footer__contact { min-width: 0; }

.footer__dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px 14px;
  font-size: 14px;
  line-height: 1.7;
}

.footer__dl dt {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted-dark);
  padding-top: 4px;
}

.footer__dl dd {
  color: var(--mist);
  word-break: break-word;
}

.footer__note {
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.75;
  color: rgba(184, 255, 239, 0.58);
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  max-width: var(--measure);
  margin: clamp(30px, 5vw, 54px) auto 0;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(30, 107, 88, 0.5);
  font-size: 12.5px;
  color: var(--muted-dark);
}

.footer__copy,
.footer__icp {
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}

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

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1.55fr 0.75fr 0.75fr 1.3fr;
    gap: 42px;
  }
}

/* ===========================================================
   通用组件
   =========================================================== */
.shell {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(34px, 6vw, 76px); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.2em;
  color: var(--grass);
  margin-bottom: 12px;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease,
              border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn--amber { background: var(--amber); color: var(--ink); }
.btn--amber:hover { background: var(--amber-hi); }

.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--ink-2); }

.btn--neon { background: var(--neon); color: var(--ink); }
.btn--neon:hover { background: var(--mist); }

.btn--ghost {
  background: transparent;
  border-color: rgba(30, 107, 88, 0.55);
  color: var(--ink);
}
.btn--ghost:hover {
  border-color: var(--grass);
  background: rgba(30, 107, 88, 0.08);
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }

.breadcrumb li + li::before {
  content: "›";
  opacity: 0.55;
  color: var(--grass);
}

.breadcrumb a {
  color: var(--grass);
  text-decoration: none;
  transition: color 0.18s ease;
}

.breadcrumb a:hover { color: var(--ink); }

/* 网格 */
.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
  grid-template-columns: minmax(0, 1fr);
}

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

@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--sidebar {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    gap: clamp(24px, 3vw, 44px);
  }
}

/* 面板 */
.panel {
  background: var(--paper-hi);
  border: 1px solid rgba(30, 107, 88, 0.18);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 3vw, 32px);
}

.panel--ink {
  background: var(--ink-2);
  border-color: rgba(57, 242, 208, 0.22);
  color: var(--paper);
}

.panel--ink h2,
.panel--ink h3 { color: var(--paper); }

/* 图例胶囊 */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border: 1px solid rgba(30, 107, 88, 0.45);
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.45);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--grass);
  transition: background-color 0.18s ease, color 0.18s ease,
              border-color 0.18s ease;
}

.chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.chip--live {
  color: var(--coral);
  border-color: rgba(242, 107, 75, 0.5);
  background: rgba(242, 107, 75, 0.1);
}

.chip--neon {
  color: var(--ink);
  background: var(--mist);
  border-color: transparent;
}

/* 长文 */
.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink-text);
}

.prose > * + * { margin-top: 1.05em; }

.prose h2 {
  margin-top: 1.8em;
  font-size: clamp(24px, 3vw, 34px);
}

.prose h3 { margin-top: 1.5em; }

.prose ul,
.prose ol {
  padding-left: 1.3em;
  list-style: disc;
}

.prose ol { list-style: decimal; }

.prose li + li { margin-top: 0.5em; }

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

.prose a:hover { color: var(--ink); background: var(--mist); }

.prose blockquote {
  padding: 14px 0 14px 20px;
  border-left: 3px solid var(--neon);
  font-family: var(--font-serif);
  color: var(--ink-2);
}

/* 图片容器（页面阶段放实际图片） */
.media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  border-radius: var(--radius-md);
  background: var(--ink-2);
  border: 1px solid rgba(30, 107, 88, 0.35);
}

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

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(7, 36, 31, 0.16) 0 1px,
    transparent 1px 4px
  );
  opacity: 0.55;
}

.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 3 / 4; }

.media__glow {
  position: absolute;
  inset: auto -18% -35% -18%;
  height: 70%;
  background: radial-gradient(
    ellipse at 50% 100%,
    rgba(57, 242, 208, 0.34) 0%,
    rgba(57, 242, 208, 0) 68%
  );
  pointer-events: none;
}

/* 减少动态 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
