/* ============================================================
   AOA体育 · 共享样式 /assets/site.css
   结构：重置 → 变量 → 排版 → 通用组件 → 头部 → 页脚 → 响应式
   ============================================================ */

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

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

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

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

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

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

a { color: inherit; }

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

/* ---------- 2. 变量 ---------- */
:root {
  /* 色板 */
  --ink-900: #0A1422;
  --ink-800: #121F33;
  --ink-700: #1E2E44;
  --green: #2FA36B;
  --green-light: #8FE3BE;
  --amber: #F2B233;
  --amber-soft: #FFC452;
  --white-cool: #F4F7F5;
  --white-paper: #FFFFFF;
  --mist: #C3CDD6;
  --gravel: #6E7F8C;

  --line: rgba(195, 205, 214, 0.14);
  --line-strong: rgba(195, 205, 214, 0.28);

  /* 字体 */
  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace,
    SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  /* 尺寸 */
  --rail-w: 88px;
  --bar-h: 60px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  --gap: 24px;

  /* 动效 */
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --dur: 200ms;
}

/* ---------- 3. 基础排版 ---------- */
body {
  background: var(--ink-900);
  color: var(--white-cool);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  padding-left: var(--rail-w);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--white-paper);
}

h1 { font-size: clamp(38px, 6vw, 72px); line-height: 1.04; }
h2 { font-size: clamp(24px, 3vw, 40px); }
h3 { font-size: clamp(19px, 2vw, 26px); }
h4 { font-size: 18px; letter-spacing: 0; }

p { max-width: 100%; }

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

::selection {
  background: var(--amber);
  color: #16120A;
}

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

/* ---------- 4. 通用排版辅助 ---------- */
.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 48px);
}

.prose {
  max-width: 720px;
}

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

.lede {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.6;
  color: var(--mist);
  max-width: 640px;
}

.note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--mist);
}

.num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

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

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

/* 展签 */
.plate {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 13px;
}

.plate::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--green);
  flex: none;
}

.plate__no {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--amber);
}

.plate__label {
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--mist);
}

/* 正文内链：下划线自左向右扫过 */
.link {
  position: relative;
  color: var(--green-light);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur) var(--ease);
}

.link:hover,
.link:focus-visible { color: var(--amber); }

.link:hover::after,
.link:focus-visible::after { transform: scaleX(1); }

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 44px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 2px;
  transition:
    background-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.btn--amber {
  background: var(--amber);
  color: #16120A;
  font-weight: 600;
}

.btn--amber:hover,
.btn--amber:focus-visible { background: var(--amber-soft); }

.btn--ghost {
  background: transparent;
  color: var(--white-cool);
  border-color: var(--line-strong);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--amber);
  color: var(--amber);
}

/* ---------- 6. 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 13px;
  color: var(--mist);
}

.crumbs__link {
  color: var(--mist);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.crumbs__link:hover,
.crumbs__link:focus-visible { color: var(--amber); }

.crumbs__sep {
  color: var(--gravel);
  font-family: var(--font-mono);
  font-size: 11px;
}

.crumbs__current {
  color: var(--white-cool);
  font-weight: 500;
}

/* ---------- 7. 网格与章节 ---------- */
.grid {
  display: grid;
  gap: var(--gap);
}

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

.section {
  padding-block: clamp(48px, 7vw, 96px);
}

.section--tight {
  padding-block: clamp(28px, 4vw, 48px);
}

.section + .section {
  border-top: 1px solid var(--line);
}

/* ---------- 8. 图片容器（页面阶段放图） ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--ink-700);
  aspect-ratio: 16 / 9;
}

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

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.04) brightness(0.94);
  transition: transform 240ms var(--ease), filter 240ms var(--ease);
}

.media:hover img,
.media:focus-within img {
  transform: scale(1.02);
  filter: saturate(1) contrast(1.06) brightness(1);
}

.media__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--mist);
  background: linear-gradient(180deg, rgba(10, 20, 34, 0) 0%, rgba(10, 20, 34, 0.86) 100%);
  pointer-events: none;
}

/* ---------- 9. 品牌标记 ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--white-cool);
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: rgba(47, 163, 107, 0.09);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--green-light);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.brand:hover .brand__mark,
.brand:focus-visible .brand__mark {
  border-color: var(--amber);
  background: rgba(242, 178, 51, 0.1);
}

.brand__text {
  display: none;
  flex-direction: column;
  line-height: 1.3;
  min-width: 0;
}

.brand__name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white-paper);
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--gravel);
}

/* ---------- 10. 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--amber);
  color: #16120A;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
  transform: translateY(-200%);
  transition: transform 160ms var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--white-paper);
  outline-offset: 2px;
}

/* ============================================================
   11. 头部 —— 左侧 88px 灯带轨道
   ============================================================ */
.site-header {
  position: relative;
  z-index: 40;
}

/* 桌面端轨道 */
.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail-w);
  background: var(--ink-700);
  border-right: 1px solid var(--line);
  z-index: 45;
  display: flex;
}

/* 贯穿页面的细光路 */
.rail::after {
  content: "";
  position: absolute;
  top: 0;
  right: -1px;
  bottom: 0;
  width: 1px;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(47, 163, 107, 0) 0%,
    rgba(47, 163, 107, 0.72) 16%,
    rgba(47, 163, 107, 0.28) 62%,
    rgba(47, 163, 107, 0) 100%
  );
}

.rail__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 18px 0 20px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}

.rail__inner::-webkit-scrollbar { width: 0; height: 0; }

.rail__brand {
  flex: none;
  margin-bottom: 22px;
}

.rail__nav {
  flex: 0 1 auto;
  width: 100%;
}

.nav-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
}

.nav-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 9px 4px;
  width: 100%;
  color: var(--mist);
  text-decoration: none;
  border-radius: 2px;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.nav-link__no {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gravel);
  transition: color var(--dur) var(--ease);
}

.nav-link__label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--amber);
  background: rgba(242, 178, 51, 0.06);
}

.nav-link:hover .nav-link__no,
.nav-link:focus-visible .nav-link__no { color: var(--amber); }

.nav-link[aria-current="page"] {
  color: var(--amber);
}

.nav-link[aria-current="page"] .nav-link__no {
  color: var(--amber);
}

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -1px;
  width: 2px;
  height: 22px;
  transform: translateY(-50%);
  background: var(--amber);
  border-radius: 1px;
}

.rail__foot {
  flex: none;
  margin-top: auto;
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.rail__cta {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  display: inline-block;
  padding: 16px 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-decoration: none;
  color: var(--amber);
  border: 1px solid rgba(242, 178, 51, 0.45);
  border-radius: 2px;
  background: rgba(242, 178, 51, 0.07);
  transition:
    background-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.rail__cta:hover,
.rail__cta:focus-visible {
  background: var(--amber);
  border-color: var(--amber);
  color: #16120A;
}

.rail__status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  text-align: center;
}

.rail__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-light);
  box-shadow: 0 0 0 3px rgba(143, 227, 190, 0.14);
  flex: none;
}

.rail__status-text {
  font-size: 10px;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: var(--gravel);
}

/* 移动端顶条 */
.mobilebar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--bar-h);
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  background: rgba(10, 20, 34, 0.94);
  border-bottom: 1px solid var(--line);
  z-index: 60;
}

.mobilebar .brand__text { display: flex; }
.mobilebar .brand__mark { width: 36px; height: 36px; font-size: 10px; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
  color: var(--white-cool);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: var(--amber);
  color: var(--amber);
}

.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 20px;
  height: 20px;
  flex: none;
}

.nav-toggle__bars span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: currentColor;
  border-radius: 1px;
  transition: transform var(--dur) var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:first-child {
  transform: translateY(2.75px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:last-child {
  transform: translateY(-2.75px) rotate(-45deg);
}

.nav-toggle__label {
  font-size: 13px;
  letter-spacing: 0.1em;
}

/* 遮罩 */
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(4, 9, 16, 0.74);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease), visibility 0s linear var(--dur);
}

/* 滚动进度光带 */
.progress {
  position: fixed;
  top: 0;
  left: var(--rail-w);
  right: 0;
  height: 2px;
  z-index: 70;
  pointer-events: none;
  background: rgba(195, 205, 214, 0.07);
}

.progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--green) 0%, var(--green-light) 100%);
}

/* ============================================================
   12. 页脚
   ============================================================ */
.site-footer {
  margin-top: clamp(56px, 8vw, 112px);
  padding-block: clamp(44px, 6vw, 72px) 32px;
  background: var(--ink-800);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

.footer-brand .brand__text { display: flex; }
.footer-brand .brand__name { font-size: 16px; }

.footer-tagline {
  max-width: 260px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--mist);
}

.footer-col__title {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--gravel);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-link {
  position: relative;
  display: inline-block;
  min-height: 32px;
  line-height: 32px;
  font-size: 14px;
  color: var(--mist);
  text-decoration: none;
  transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}

.footer-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--amber);
  transform: translateY(-50%);
  transition: width var(--dur) var(--ease);
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--amber);
  padding-left: 14px;
}

.footer-link:hover::before,
.footer-link:focus-visible::before { width: 8px; }

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(36px, 5vw, 64px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-contact__line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
  line-height: 1.6;
}

.footer-contact__k {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--gravel);
}

.footer-contact__v {
  color: var(--white-cool);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.01em;
  word-break: break-all;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
  max-width: 380px;
}

.footer-update {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--mist);
}

.footer-icp,
.footer-copy {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--gravel);
}

/* ============================================================
   13. 显现（由 JS 注入 .js-reveal 后生效）
   ============================================================ */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease);
  will-change: opacity, transform;
}

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

/* ============================================================
   14. 响应式
   ============================================================ */

/* 平板：内容收窄 */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-legal {
    text-align: left;
  }
}

/* 移动端：轨道 → 抽屉 */
@media (max-width: 959px) {
  :root { --rail-w: 0px; }

  body {
    padding-left: 0;
    padding-top: var(--bar-h);
    font-size: 16px;
  }

  .mobilebar { display: flex; }

  .progress {
    left: 0;
    top: var(--bar-h);
  }

  .rail {
    top: var(--bar-h);
    bottom: 0;
    width: 288px;
    max-width: 84vw;
    background: var(--ink-800);
    border-right: 1px solid var(--line-strong);
    box-shadow: var(--shadow);
    z-index: 55;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform var(--dur) var(--ease), visibility 0s linear var(--dur);
  }

  .rail[data-open="true"] {
    transform: none;
    visibility: visible;
    transition: transform var(--dur) var(--ease), visibility 0s linear 0s;
  }

  .rail::after { display: none; }

  .rail__inner {
    align-items: stretch;
    padding: 20px 16px 28px;
    gap: 0;
  }

  .rail__brand { display: none; }

  .rail__nav { width: 100%; }

  .nav-list {
    align-items: stretch;
    gap: 2px;
  }

  .nav-link {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 11px 14px;
    border-left: 1px solid var(--line);
    border-radius: 0 2px 2px 0;
  }

  .nav-link__no { font-size: 11px; width: 20px; }

  .nav-link__label {
    writing-mode: horizontal-tb;
    font-size: 16px;
    letter-spacing: 0.04em;
    line-height: 1.4;
  }

  .nav-link[aria-current="page"]::after {
    top: 8px;
    bottom: 8px;
    right: auto;
    left: 0;
    height: auto;
    width: 2px;
    transform: none;
  }

  .rail__foot {
    align-items: stretch;
    padding-top: 24px;
    margin-top: 24px;
  }

  .rail__cta {
    writing-mode: horizontal-tb;
    display: block;
    padding: 14px 16px;
    text-align: center;
    letter-spacing: 0.1em;
  }

  .rail__status {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 0;
    text-align: left;
  }

  .rail__status-text { font-size: 11px; }

  .rail[data-open="true"] ~ .nav-scrim {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity var(--dur) var(--ease), visibility 0s linear 0s;
  }

  html.nav-open,
  html.nav-open body {
    overflow: hidden;
  }

  .site-footer {
    margin-top: 64px;
    padding-block: 40px 28px;
  }

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

/* 小屏微调 */
@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .footer-meta {
    flex-direction: column;
    gap: 24px;
  }

  .footer-legal {
    max-width: none;
  }

  .footer-contact__v { font-size: 12px; }

  .brand__sub { font-size: 9.5px; }
}

/* ============================================================
   15. 减少动效
   ============================================================ */
@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;
    scroll-behavior: auto !important;
  }

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

  .media:hover img {
    transform: none;
  }
}
