/* ============================================================
   /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, figure, blockquote,
ul, ol, dl, dd, fieldset { margin: 0; }

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

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

button { font: inherit; color: inherit; background: none; border: 0; }
a { color: inherit; }
input, select, textarea { font: inherit; }

::selection {
  background: var(--cyan);
  color: var(--ink-900);
}

/* ---------- 2. 变量 ---------- */
:root {
  /* 色彩 */
  --ink-900: #080D26;
  --ink-850: #0A1030;
  --ink-800: #0D1434;
  --ink-700: #111A44;
  --ink-600: #18225A;
  --line: #243070;
  --cyan: #00E5D0;
  --cyan-soft: #7CFCEF;
  --cyan-dim: rgba(0, 229, 208, 0.12);
  --amber: #FFB020;
  --amber-dim: rgba(255, 176, 32, 0.14);
  --white: #F2F5FF;
  --muted: #9EABD0;
  --light-gray: #D6DEF5;
  --paper: #EDF1FC;
  --paper-ink: #0B1230;
  --paper-muted: #47527A;

  /* 尺度 */
  --rail-w: 272px;
  --header-h: 64px;
  --edge: 2px solid var(--line);
  --wide: 1180px;

  /* 字体 */
  --font-display: "Archivo Narrow", "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
}

/* ---------- 3. 基础排版 ---------- */
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--ink-900);
  background-image:
    linear-gradient(to right, rgba(36, 48, 112, 0.24) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(36, 48, 112, 0.24) 1px, transparent 1px);
  background-size: 72px 72px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (min-width: 768px) {
  body { font-size: 17px; }
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0.02em;
  color: var(--white);
}

h1 { font-size: clamp(34px, 7.2vw, 68px); }
h2 { font-size: clamp(24px, 4vw, 40px); }
h3 { font-size: clamp(19px, 2.6vw, 25px); line-height: 1.25; }
h4 { font-size: clamp(16px, 2vw, 19px); line-height: 1.35; }

p { max-width: 36em; }

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

code, kbd, samp {
  font-family: var(--font-mono);
  font-size: 0.92em;
  letter-spacing: 0.02em;
}

hr {
  border: 0;
  border-top: var(--edge);
  margin: 0;
}

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

#main-content { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- 4. 跳转链接 ---------- */
.skip-link {
  position: absolute;
  top: -96px;
  left: 14px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--cyan);
  color: var(--ink-900);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  border: 2px solid var(--ink-900);
  transition: top 0.2s ease;
}

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

/* ---------- 5. 品牌组件 ---------- */
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--white);
  min-width: 0;
  max-width: 100%;
}

.brand__mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid var(--cyan);
  background: var(--cyan-dim);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand__text {
  display: block;
  min-width: 0;
}

.brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.15;
  white-space: nowrap;
}

.brand__desc {
  display: block;
  font-size: 10px;
  line-height: 1.45;
  letter-spacing: 0.03em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand:hover .brand__mark {
  background: var(--cyan);
  color: var(--ink-900);
}

@media (max-width: 479px) {
  .brand__desc { display: none; }
  .brand__mark { width: 34px; height: 34px; font-size: 13px; }
}

/* ---------- 6. 页头（移动优先：sticky 顶栏） ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(8, 13, 38, 0.96);
  border-bottom: var(--edge);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: var(--header-h);
  padding: 0 clamp(16px, 4vw, 28px);
}

/* 抽屉按钮 */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 2px solid var(--line);
  background: var(--ink-700);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

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

.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 18px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: var(--cyan);
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- 7. 导航（移动端抽屉） ---------- */
.site-nav {
  position: fixed;
  top: var(--header-h);
  right: 0;
  bottom: 0;
  z-index: 55;
  width: min(86vw, 360px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 18px 18px 34px;
  background: var(--ink-850);
  border-left: var(--edge);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(102%);
  visibility: hidden;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.28s linear;
}

.site-header[data-open] .site-nav {
  transform: translateX(0);
  visibility: visible;
}

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

.site-nav__list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__link {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 8px 14px 12px;
  border-left: 3px solid transparent;
  border-bottom: 1px solid rgba(36, 48, 112, 0.85);
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.site-nav__item:last-child .site-nav__link { border-bottom: 0; }

.site-nav__num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.site-nav__label { white-space: nowrap; }

.site-nav__link:hover,
.site-nav__link:focus-visible {
  color: var(--cyan-soft);
  border-left-color: var(--line);
  background: rgba(0, 229, 208, 0.05);
}

.site-nav__link[aria-current="page"] {
  color: var(--cyan);
  border-left-color: var(--cyan);
  background: var(--cyan-dim);
}

.site-nav__link[aria-current="page"] .site-nav__num { color: var(--cyan); }

/* 轨道底部工具区 */
.rail-tools {
  margin-top: auto;
  padding-top: 10px;
  display: grid;
  gap: 12px;
}

.version-switch {
  display: flex;
  border: 2px solid var(--line);
  background: var(--ink-800);
}

.version-switch__btn {
  flex: 1 1 50%;
  padding: 9px 6px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.version-switch__btn + .version-switch__btn {
  border-left: 2px solid var(--line);
}

.version-switch__btn:hover { color: var(--white); }

.version-switch__btn[aria-pressed="true"] {
  background: var(--cyan);
  color: var(--ink-900);
  font-weight: 700;
}

.rail-cta {
  display: block;
  padding: 11px 14px;
  background: var(--amber);
  color: #1A1000;
  text-align: center;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.08em;
  border: 2px solid #1A1000;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.rail-cta:hover {
  background: #FFC85A;
  transform: translate(-2px, -2px);
}

/* ---------- 8. 阅读进度条 ---------- */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 90;
  background: var(--line);
  pointer-events: none;
}

.read-progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

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

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--rail-w);
    display: flex;
    flex-direction: column;
    padding-bottom: 20px;
    background: var(--ink-850);
    border-bottom: 0;
    border-right: var(--edge);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .site-header__bar {
    display: block;
    height: auto;
    padding: 22px 20px 18px;
    border-bottom: var(--edge);
  }

  .nav-toggle { display: none; }

  .site-nav {
    position: static;
    width: auto;
    transform: none;
    visibility: visible;
    overflow: visible;
    border-left: 0;
    background: transparent;
    padding: 16px 12px 0;
    flex: 1 1 auto;
    transition: none;
  }

  .site-header[data-open] .site-nav { transform: none; }

  .site-nav__link {
    padding: 12px 10px;
    border-bottom: 0;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--muted);
  }

  .site-nav__item + .site-nav__item { margin-top: 2px; }

  .rail-tools { padding: 16px 2px 0; }

  .read-progress { left: var(--rail-w); }

  #main-content { scroll-margin-top: 24px; }
}

/* ---------- 10. 通用容器与分段 ---------- */
.container {
  width: 100%;
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: clamp(18px, 4.5vw, 44px);
}

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

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

.prose {
  max-width: 40em;
}

.prose p,
.prose li {
  color: var(--light-gray);
}

.prose p + p,
.prose ul + p,
.prose p + ul { margin-top: 1em; }

.lead {
  font-size: clamp(17px, 2.1vw, 21px);
  line-height: 1.68;
  color: var(--light-gray);
  max-width: 32em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--cyan);
}

/* 编号章节头 */
.chapter-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin-bottom: 22px;
  padding-top: 16px;
  border-top: var(--edge);
}

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

.chapter-head__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.4vw, 34px);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.chapter-head__note {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.03em;
}

/* ---------- 11. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: 2px solid var(--line);
  background: transparent;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

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

.btn--primary {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink-900);
}

.btn--primary:hover {
  background: var(--cyan-soft);
  border-color: var(--cyan-soft);
}

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

.btn--amber {
  background: var(--amber);
  border-color: var(--amber);
  color: #1A1000;
}

.btn--amber:hover { background: #FFC85A; border-color: #FFC85A; }

.btn--hard { box-shadow: 5px 5px 0 var(--line); }
.btn--hard:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--line); }

/* ---------- 12. 卡片 ---------- */
.card {
  background: var(--ink-800);
  border: var(--edge);
  padding: clamp(18px, 2.6vw, 26px);
}

.card__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--cyan);
}

.card__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.25;
  margin: 10px 0 8px;
  color: var(--white);
}

.card__text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.card--hard { box-shadow: 6px 6px 0 rgba(36, 48, 112, 0.75); }

/* ---------- 13. 数据看板 ---------- */
.stat-row {
  display: grid;
  gap: 18px 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .stat-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.stat {
  border-left: 3px solid var(--cyan);
  padding-left: 12px;
}

.stat__value {
  font-family: var(--font-mono);
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--white);
}

.stat__label {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ---------- 14. 网格 ---------- */
.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 24px);
}

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

.grid--split { grid-template-columns: 1fr; }

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

@media (min-width: 900px) {
  .grid--split { grid-template-columns: 1.7fr 1fr; gap: 28px; }
}

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

/* ---------- 15. 媒体容器（页面阶段放图） ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  border: var(--edge);
  background-color: var(--ink-700);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(36, 48, 112, 0.55) 0 2px,
    transparent 2px 14px
  );
  aspect-ratio: 16 / 9;
}

.media > img,
.media > picture,
.media > picture > img,
.media > video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.media__tag {
  position: absolute;
  top: 0;
  left: 0;
  padding: 6px 12px;
  background: var(--cyan);
  color: var(--ink-900);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.media__caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 10px 14px;
  background: rgba(8, 13, 38, 0.88);
  color: var(--light-gray);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}

/* ---------- 16. 过滤与标签 ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 2px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.chip:hover {
  color: var(--white);
  border-color: var(--cyan);
}

.chip[aria-pressed="true"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink-900);
  font-weight: 700;
}

.tag {
  display: inline-block;
  padding: 3px 9px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.tag--cyan { border-color: var(--cyan); color: var(--cyan); }
.tag--amber { border-color: var(--amber); color: var(--amber); }

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

.breadcrumb__link {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

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

.breadcrumb__current { color: var(--white); }

/* ---------- 18. 浅底长文分区 ---------- */
.paper-section {
  background: var(--paper);
  color: var(--paper-ink);
  border-block: var(--edge);
}

.paper-section h1,
.paper-section h2,
.paper-section h3,
.paper-section h4 { color: var(--paper-ink); }

.paper-section p,
.paper-section li,
.paper-section .lead,
.paper-section .prose p,
.paper-section .prose li { color: var(--paper-muted); }

.paper-section .chapter-head { border-top-color: var(--paper-ink); }
.paper-section .chapter-head__num { color: #00796F; }
.paper-section .chapter-head__note { color: var(--paper-muted); }

.paper-section a { color: #00796F; }

/* ---------- 19. 显现动画 ---------- */
[data-reveal] {
  transition: opacity 0.34s ease, transform 0.34s ease;
}

html[data-motion="on"] [data-reveal]:not(.is-in) {
  opacity: 0;
  transform: translateY(12px);
}

/* ---------- 20. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(36px, 6vw, 72px);
  border-top: var(--edge);
  background: var(--ink-850);
  padding: clamp(34px, 5.5vw, 62px) clamp(18px, 4.5vw, 44px) 26px;
}

.footer__inner {
  max-width: var(--wide);
  margin-inline: auto;
}

.footer__grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
  }
}

.brand--footer { margin-bottom: 16px; }

.footer__tagline {
  max-width: 30em;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 18px;
}

.footer__tagline--tight { margin-bottom: 0; margin-top: 16px; }

.footer__meta {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__meta-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
}

.footer__meta-label {
  padding: 2px 8px;
  border: 1px solid var(--line);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.footer__meta-value {
  color: var(--white);
  word-break: break-all;
}

.footer__heading {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.footer__links {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__link {
  display: inline-block;
  padding: 5px 0;
  color: var(--white);
  text-decoration: none;
  font-size: 15px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer__link:hover,
.footer__link:focus-visible {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.footer__legal {
  margin-top: clamp(30px, 5vw, 48px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.footer__legal-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
}

.footer__icp { word-break: break-word; }

.footer__copyright { color: var(--white); }

/* ---------- 21. 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: var(--cyan);
  color: var(--ink-900);
  border: 2px solid var(--ink-900);
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.to-top[data-visible] {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.to-top:hover { background: var(--cyan-soft); }

@media (min-width: 1024px) {
  .to-top { right: 26px; bottom: 26px; }
}

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

  [data-reveal],
  [data-reveal].is-in {
    opacity: 1 !important;
    transform: none !important;
  }

  .site-nav { transition: none; }
  .read-progress__bar { transition: none; }
}
