/* =========================================================
   乐竞中心 · 共享样式表 /assets/site.css
   高原夜赛：深靛数据底噪 + 暖纸面板 + 金橙比分锚点
   ========================================================= */

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

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

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

ul, ol { list-style: none; }

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

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

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

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

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

/* ---------- 2. 变量 ---------- */
:root {
  --indigo: #101A33;
  --night: #0A1122;
  --paper: #EFE6D6;
  --paper-white: #F7F3EA;
  --ink: #1B1F27;
  --gold: #F5A623;
  --agate: #C8402F;
  --turq: #2FA39A;
  --slate: #8A97B0;
  --glow: #FFD98A;

  --line: rgba(138, 151, 176, 0.28);
  --line-strong: rgba(138, 151, 176, 0.52);
  --wash: rgba(245, 166, 35, 0.07);

  --rail-w: 268px;
  --topbar-h: 58px;
  --maxw: 1280px;
  --gap: 24px;

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-num: ui-monospace, "SFMono-Regular", "Roboto Mono", Menlo, Consolas, "Courier New", monospace;

  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --scroll-progress: 0;
}

/* ---------- 3. 基础排版与底色 ---------- */
body {
  background-color: var(--indigo);
  background-image:
    repeating-linear-gradient(0deg, rgba(138, 151, 176, 0.05) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(90deg, rgba(138, 151, 176, 0.05) 0 1px, transparent 1px 96px);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.8;
  min-height: 100vh;
  padding-top: var(--topbar-h);
  overflow-x: hidden;
}

html.nav-open { overflow: hidden; }

@media (min-width: 980px) {
  body {
    padding-top: 0;
    padding-left: var(--rail-w);
  }
}

p { max-width: 38em; }

.display {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.section__title {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.lede {
  font-size: 18px;
  line-height: 1.8;
  color: rgba(239, 230, 214, 0.8);
  max-width: 36em;
}

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

.note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--slate);
  letter-spacing: 0.02em;
}

.vertical-note {
  writing-mode: vertical-rl;
  font-size: 12px;
  letter-spacing: 0.34em;
  color: var(--slate);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--gold);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}

/* ---------- 4. 布局骨架 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.container--narrow { max-width: 60rem; }

.section { padding-block: clamp(56px, 8vw, 112px); }
.section--tight { padding-block: clamp(32px, 4vw, 56px); }
.section--night { background: var(--night); }
.section--paper { background: var(--paper); color: var(--ink); }
.section--paper .note { color: #5A6272; }
.section--paper .lede { color: rgba(27, 31, 39, 0.78); }

.breath { height: clamp(56px, 10vw, 140px); }

.grid { display: grid; gap: var(--gap); }

.grid--12 { display: grid; gap: var(--gap); grid-template-columns: 1fr; }

@media (min-width: 768px) {
  .grid--12 { grid-template-columns: repeat(12, 1fr); }
  .span-4 { grid-column: span 4; }
  .span-5 { grid-column: span 5; }
  .span-7 { grid-column: span 7; }
  .span-8 { grid-column: span 8; }
  .span-12 { grid-column: span 12; }
}

.split { display: grid; gap: 32px; }

@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 7fr; gap: 48px; }
}

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

.rule--accent {
  width: 72px;
  height: 3px;
  border: 0;
  background: linear-gradient(90deg, var(--gold), var(--agate));
}

/* ---------- 5. 通用组件 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid var(--line-strong);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--paper);
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.btn:hover { transform: translateY(-2px); }

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

.btn--gold:hover {
  background: var(--glow);
  border-color: var(--glow);
}

.btn--ghost { background: transparent; }

.btn--ghost:hover {
  background: var(--wash);
  border-color: var(--gold);
  color: var(--glow);
}

.btn--block { width: 100%; }

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--line);
}

.tab {
  padding: 10px 16px;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  font-weight: 700;
  color: var(--slate);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.tab:hover { color: var(--paper); }

.tab[aria-selected="true"],
.tab.is-active {
  color: var(--paper);
  border-bottom-color: var(--gold);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--slate);
}

.crumbs__link { color: var(--slate); transition: color 0.18s var(--ease); }
.crumbs__link:hover { color: var(--glow); }
.crumbs__sep { color: rgba(138, 151, 176, 0.5); }
.crumbs__current { color: var(--paper); }

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

.accordion__item { border-bottom: 1px solid var(--line); }

.accordion__trigger {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 0;
  text-align: left;
  font-size: 17px;
  font-weight: 700;
}

.accordion__trigger::after {
  content: "＋";
  flex: none;
  color: var(--gold);
  font-size: 16px;
  line-height: 1.4;
}

.accordion__trigger[aria-expanded="true"]::after { content: "－"; }

.accordion__panel { padding-bottom: 20px; }
.accordion__panel[hidden] { display: none; }

/* 面板 */
.panel {
  background: rgba(247, 243, 234, 0.035);
  border: 1px solid var(--line);
  padding: clamp(20px, 3vw, 32px);
}

.panel--paper {
  background: var(--paper);
  color: var(--ink);
  border-color: rgba(27, 31, 39, 0.14);
}

.panel--cut {
  -webkit-clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.panel--paper .panel__head { border-bottom-color: rgba(27, 31, 39, 0.16); }

.panel__body { font-size: 16px; }

.panel__meta {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--slate);
}

.panel--paper .note,
.panel--paper .panel__meta { color: #5A6272; }

/* 编辑部目录 */
.index-list { border-top: 1px solid var(--line); }

.index-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 18px 14px;
  border-bottom: 1px solid var(--line);
  border-left: 2px solid transparent;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease),
    transform 0.18s var(--ease);
}

.index-item:hover {
  background: var(--wash);
  border-left-color: var(--gold);
  transform: translateY(-2px);
}

.index-item__no {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--slate);
  padding-top: 5px;
}

.index-item__title { font-size: 17px; font-weight: 700; }

.index-item__desc {
  margin-top: 4px;
  font-size: 14px;
  color: var(--slate);
}

/* 比分锚点 */
.score {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.score__value {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: clamp(56px, 9vw, 160px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--gold);
}

.score__unit {
  font-size: 13px;
  letter-spacing: 0.24em;
  color: var(--slate);
}

.score__sub {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--slate);
}

/* 时间线 */
.timeline {
  display: flex;
  flex-direction: column;
  margin-left: 5px;
  border-left: 1px solid var(--line);
}

.timeline__item {
  position: relative;
  padding: 0 0 28px 28px;
}

.timeline__item:last-child { padding-bottom: 0; }

.timeline__dot {
  position: absolute;
  left: -5px;
  top: 8px;
  width: 9px;
  height: 9px;
  background: var(--indigo);
  border: 1px solid var(--slate);
  transform: rotate(45deg);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.timeline__item.is-visible .timeline__dot {
  background: var(--gold);
  border-color: var(--gold);
}

.timeline__mark {
  display: block;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--gold);
}

/* 统计条 */
.stat { display: flex; flex-direction: column; gap: 10px; }

.stat__row {
  display: grid;
  grid-template-columns: minmax(72px, 110px) 1fr auto;
  align-items: center;
  gap: 12px;
}

.stat__label { font-size: 14px; }

.stat__track {
  position: relative;
  height: 8px;
  background: rgba(138, 151, 176, 0.16);
  overflow: hidden;
}

.stat__fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gold);
  transition: width 0.6s var(--ease);
}

.stat__fill--home { background: var(--agate); }
.stat__fill--away { background: var(--turq); }

.stat__val {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  font-weight: 800;
  color: var(--gold);
}

/* 图片容器 */
.media {
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, #0A1122 0%, #132043 58%, #1B2A52 100%);
  border: 1px solid var(--line);
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 16%, rgba(245, 166, 35, 0.28), transparent 46%),
    repeating-linear-gradient(115deg, rgba(247, 243, 234, 0.05) 0 1px, transparent 1px 14px);
}

.media__img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.media__caption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--slate);
}

/* ---------- 6. 页头 · 侧边轨道导航 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  width: 100%;
  height: var(--topbar-h);
}

@media (min-width: 980px) {
  .site-header {
    width: var(--rail-w);
    height: 100vh;
    background: linear-gradient(180deg, #0C1730 0%, var(--night) 72%);
    border-right: 1px solid var(--line);
  }
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 120;
  padding: 10px 16px;
  background: var(--glow);
  color: var(--night);
  font-size: 14px;
  font-weight: 800;
  transform: translateY(-180%);
  transition: transform 0.18s var(--ease);
}

.skip-link:focus { transform: translateY(0); }

/* 顶部栏（移动端） */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
  padding: 0 18px;
  background: var(--night);
  border-bottom: 1px solid var(--line);
}

@media (min-width: 980px) {
  .topbar { display: none; }
}

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

.brand__glyph {
  flex: none;
  width: 22px;
  height: 22px;
  background: conic-gradient(from 200deg, var(--gold), var(--agate) 45%, var(--turq) 72%, var(--gold));
  -webkit-clip-path: polygon(50% 0, 100% 28%, 100% 72%, 50% 100%, 0 72%, 0 28%);
  clip-path: polygon(50% 0, 100% 28%, 100% 72%, 50% 100%, 0 72%, 0 28%);
}

.brand__name {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.brand__text {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.brand__line {
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.26em;
  color: var(--slate);
  max-width: none;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  font-size: 14px;
  font-weight: 700;
  color: var(--paper);
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.nav-toggle:hover { border-color: var(--gold); color: var(--glow); }

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
}

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

.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { bottom: 0; }

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

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

/* 轨道 / 抽屉 */
.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 95;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: min(84vw, 320px);
  padding: 24px 20px;
  background: var(--indigo);
  border-right: 1px solid var(--line);
  transform: translateX(-102%);
  transition: transform 0.24s var(--ease);
  overflow-y: auto;
}

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

@media (min-width: 980px) {
  .rail {
    position: relative;
    inset: auto;
    z-index: auto;
    width: 100%;
    height: 100%;
    padding: 30px 22px 22px;
    gap: 22px;
    background: transparent;
    border-right: 0;
    transform: none;
    overflow: visible;
  }
}

.rail__head { flex: none; }

.rail__marker { display: none; }

@media (min-width: 980px) {
  .rail__marker {
    display: block;
    position: absolute;
    top: 34px;
    right: 14px;
    margin: 0;
    writing-mode: vertical-rl;
    font-size: 12px;
    letter-spacing: 0.36em;
    color: rgba(138, 151, 176, 0.75);
    white-space: nowrap;
  }
}

.rail__nav { flex: 1 1 auto; }

.rail__kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--slate);
  text-transform: uppercase;
  max-width: none;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 14px;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 11px 14px;
  border-left: 2px solid transparent;
  color: var(--paper);
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease),
    color 0.18s var(--ease);
}

.nav-link__idx {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  color: var(--slate);
  letter-spacing: 0.05em;
}

.nav-link__label {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-link:hover {
  background: var(--wash);
  border-left-color: var(--gold);
  color: var(--glow);
}

.nav-link:hover .nav-link__idx { color: var(--gold); }

.nav-link[aria-current="page"] {
  border-left-color: var(--gold);
  color: var(--paper-white);
}

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

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 6px;
  height: 6px;
  transform: translateY(-50%) rotate(45deg);
  background: var(--gold);
}

.rail__foot {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.rail__util {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rail__util li {
  padding: 3px 9px;
  border: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--slate);
}

.rail__note {
  font-size: 12px;
  line-height: 1.6;
  color: var(--slate);
  max-width: none;
}

/* 遮罩 */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(10, 17, 34, 0.72);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s var(--ease), visibility 0.24s var(--ease);
}

.scrim[data-open] {
  opacity: 1;
  visibility: visible;
}

@media (min-width: 980px) {
  .scrim { display: none; }
}

/* 滚动进度 */
.progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: rgba(138, 151, 176, 0.16);
  pointer-events: none;
}

.progress::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: calc(var(--scroll-progress) * 100%);
  background: linear-gradient(90deg, var(--agate), var(--gold));
}

@media (min-width: 980px) {
  .progress {
    left: auto;
    top: 0;
    bottom: 0;
    right: -1px;
    width: 3px;
    height: auto;
  }

  .progress::after {
    left: 0;
    right: 0;
    top: 0;
    bottom: auto;
    width: auto;
    height: calc(var(--scroll-progress) * 100%);
    background: linear-gradient(180deg, var(--agate), var(--gold));
  }
}

/* ---------- 7. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 10vw, 120px);
  background: var(--night);
  color: var(--paper);
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  display: block;
  height: 44px;
  background: linear-gradient(100deg, rgba(245, 166, 35, 0.16), rgba(47, 163, 154, 0.12) 55%, transparent);
  -webkit-clip-path: polygon(0 100%, 100% 0, 100% 100%);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.footer__inner {
  display: grid;
  gap: 40px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(40px, 5vw, 72px) 24px 28px;
}

@media (min-width: 900px) {
  .footer__inner {
    grid-template-columns: minmax(220px, 1.1fr) minmax(0, 2fr) minmax(230px, 1.2fr);
    gap: 48px;
  }
}

.footer__wordmark {
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.01em;
  max-width: none;
}

.footer__tagline {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--slate);
  max-width: 30ch;
}

.footer__source {
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(138, 151, 176, 0.72);
  max-width: none;
}

.footer__cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

@media (min-width: 560px) {
  .footer__cols { grid-template-columns: repeat(3, 1fr); }
}

.footer__heading {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--gold);
}

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

.footer__link {
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  font-size: 15px;
  color: var(--paper);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.footer__link:hover {
  color: var(--glow);
  border-bottom-color: var(--gold);
}

.contact-list li {
  display: flex;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(138, 151, 176, 0.22);
}

.contact-list li:last-child { border-bottom: 0; }

.contact-list__key {
  flex: none;
  min-width: 64px;
  padding-top: 2px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--slate);
}

.contact-list__val {
  font-size: 15px;
  line-height: 1.6;
  word-break: break-all;
}

.footer__note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--slate);
  max-width: 34ch;
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 20px 24px 44px;
  border-top: 1px solid var(--line);
}

.footer__copy,
.footer__filing,
.footer__datanote {
  font-size: 13px;
  color: var(--slate);
  max-width: none;
}

.footer__filing { color: var(--paper); letter-spacing: 0.04em; }

.totop {
  margin-left: auto;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  font-size: 13px;
  font-weight: 700;
  color: var(--paper);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s var(--ease), visibility 0.2s var(--ease),
    background-color 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

.totop[data-show] { opacity: 1; visibility: visible; }

.totop:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--night);
}

/* ---------- 8. 显现与焦点 ---------- */
:focus-visible {
  outline: 2px solid var(--glow);
  outline-offset: 2px;
}

html.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

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

/* ---------- 9. 减少动效 ---------- */
@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;
  }

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

  .btn:hover,
  .index-item:hover { transform: none; }
}
