/* =========================================================
   KAIYUN 开云体育入口 — /assets/site.css
   共享外壳：重置、变量、排版、页头、页脚、基础组件
   ========================================================= */

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

:root {
  /* 色彩 */
  --ink: #0B0F17;
  --panel: #141A24;
  --line: #2A3340;
  --paper: #F2EFE7;
  --neon: #00E5A0;
  --amber: #FF6B35;
  --blue: #3A86FF;
  --clay: #C2603A;
  --muted: #9AA4B2;
  --neon-deep: #063A2C;

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

  /* 度量 */
  --wrap: 1240px;
  --gutter: clamp(16px, 3vw, 32px);
  --cut: 18px;
  --cut-sm: 10px;
  --cut-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  --cut-path-sm: polygon(0 0, calc(100% - var(--cut-sm)) 0, 100% var(--cut-sm), 100% 100%, 0 100%);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

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

/* 夜场环境光：固定装饰层，不参与滚动 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1100px 620px at 84% -14%, rgba(0, 229, 160, .08), transparent 62%),
    radial-gradient(900px 520px at 4% 104%, rgba(58, 134, 255, .07), transparent 60%),
    repeating-linear-gradient(90deg, rgba(42, 51, 64, .18) 0 1px, transparent 1px 120px);
}

#main-content { position: relative; z-index: 1; display: block; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.012em;
}

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0; left: 0;
  z-index: 200;
  transform: translateY(-130%);
  padding: 12px 20px;
  background: var(--neon);
  color: var(--neon-deep);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  transition: transform .16s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ===================== 页头 ===================== */

.site-header {
  position: relative;
  z-index: 20;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0, 229, 160, .55) 26%,
    rgba(58, 134, 255, .45) 68%,
    transparent 100%);
  pointer-events: none;
}

.header-frame {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(16px, 2.4vw, 24px) var(--gutter) 0;
}

.header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 16px;
}

.brand {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.brand-link {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  text-decoration: none;
  color: var(--paper);
}
.brand-mark {
  font-family: var(--font-mono);
  font-size: clamp(1.12rem, 2.2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: .2em;
  line-height: 1;
  transition: color .16s var(--ease);
}
.brand-link:hover .brand-mark,
.brand-link:focus-visible .brand-mark { color: var(--neon); }
.brand-cn {
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--muted);
}
.brand-sync {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--muted);
  line-height: 1.4;
}
.sync-dot {
  width: 6px;
  height: 6px;
  flex: none;
  background: var(--neon);
  box-shadow: 0 0 8px rgba(0, 229, 160, .85);
}

.header-quick {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.quick-link {
  display: inline-block;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid transparent;
  border-bottom-color: var(--line);
  transition: color .16s var(--ease), border-color .16s var(--ease), background-color .16s var(--ease);
}
.quick-link:hover,
.quick-link:focus-visible {
  color: var(--neon);
  border-color: var(--line);
  border-bottom-color: var(--neon);
  background: rgba(0, 229, 160, .06);
}
.quick-link[aria-current="page"] {
  color: var(--neon);
  border-bottom-color: var(--neon);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  cursor: pointer;
  transition: border-color .16s var(--ease), color .16s var(--ease), background-color .16s var(--ease);
}
.nav-toggle:hover { border-color: var(--neon); color: var(--neon); }
.nav-toggle[aria-expanded="true"] {
  border-color: var(--neon);
  color: var(--neon);
  background: rgba(0, 229, 160, .08);
}
.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 16px;
}
.nav-toggle-bars span {
  display: block;
  height: 2px;
  background: currentColor;
}
.nav-toggle-bars span:nth-child(2) { width: 72%; }
.nav-toggle-text {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
}

.site-nav {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  counter-reset: navidx;
}
.nav-item { display: flex; }

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 13px clamp(10px, 1.8vw, 22px);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .09em;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .16s var(--ease), background-color .16s var(--ease), border-color .16s var(--ease);
}
.nav-link::before {
  counter-increment: navidx;
  content: counter(navidx, decimal-leading-zero);
  margin-right: 9px;
  font-size: 10px;
  letter-spacing: .06em;
  color: rgba(154, 164, 178, .5);
  font-variant-numeric: tabular-nums;
}
.nav-link:hover { color: var(--paper); background: rgba(242, 239, 231, .045); }
.nav-link[aria-current="page"] {
  color: var(--neon);
  border-bottom-color: var(--neon);
  background: rgba(0, 229, 160, .05);
}
.nav-link[aria-current="page"]::before { color: rgba(0, 229, 160, .7); }

.nav-aside {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-aside-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 6px 12px;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}
.nav-aside-link:hover,
.nav-aside-link:focus-visible { color: var(--neon); border-color: var(--neon); }

@keyframes navIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

/* ===================== 页脚 ===================== */

.site-footer {
  position: relative;
  z-index: 20;
  margin-top: clamp(48px, 8vw, 96px);
  background: var(--panel);
  border-top: 1px solid var(--line);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 107, 53, .5) 38%,
    rgba(0, 229, 160, .5) 64%,
    transparent 100%);
  pointer-events: none;
}

.footer-frame {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 64px) var(--gutter) 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: clamp(24px, 3vw, 44px);
}

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

.footer-title {
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--neon);
}

.footer-brand-mark {
  margin: 0 0 4px;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--paper);
}
.footer-brand-cn {
  margin: 0 0 16px;
  font-size: .85rem;
  letter-spacing: .08em;
  color: var(--muted);
}
.footer-note {
  margin: 0;
  max-width: 32ch;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color .16s var(--ease);
}
.footer-link::before {
  content: "";
  width: 10px;
  height: 1px;
  flex: none;
  background: var(--line);
  transition: width .16s var(--ease), background-color .16s var(--ease);
}
.footer-link:hover { color: var(--paper); }
.footer-link:hover::before { width: 18px; background: var(--neon); }

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.contact-item { display: grid; gap: 3px; }
.contact-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--muted);
}
.contact-value {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
  color: var(--paper);
  word-break: break-word;
  font-variant-numeric: tabular-nums;
}

.footer-legal {
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
}
.legal-item { display: inline-block; }
.legal-link {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}
.legal-link:hover { color: var(--neon); border-bottom-color: var(--neon); }

/* ===================== 通用容器与网格 ===================== */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 32px);
}
.col-main { grid-column: 1 / span 7; }
.col-side { grid-column: 10 / span 3; }
.col-wide { grid-column: 1 / -1; }
.col-half { grid-column: span 6; }

.rule {
  height: 1px;
  border: 0;
  margin: clamp(28px, 4vw, 44px) 0;
  background: var(--line);
}
.rule--dash { background: none; border-top: 1px dashed var(--line); height: 0; }

.muted { color: var(--muted); }
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ===================== 章节头部 ===================== */

.section-head { margin: 0 0 clamp(20px, 3vw, 30px); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--neon);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  flex: none;
  background: var(--neon);
}
.section-title {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.015em;
  color: var(--paper);
}
.section-note {
  margin: 0;
  max-width: 62ch;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--muted);
}

/* ===================== 切角面板 ===================== */

.panel {
  position: relative;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line);
  clip-path: var(--cut-path);
  padding: clamp(18px, 2.2vw, 26px);
}
.panel--flush { padding: 0; }
.panel--ink { background: var(--ink); }

/* ===================== 按钮 ===================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .1em;
  text-decoration: none;
  cursor: pointer;
  clip-path: var(--cut-path-sm);
  transition: background-color .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease);
}
.btn--primary {
  background: var(--neon);
  border-color: var(--neon);
  color: var(--neon-deep);
  font-weight: 700;
}
.btn--primary:hover { background: #4DEDB8; border-color: #4DEDB8; }
.btn--ghost:hover {
  border-color: var(--neon);
  color: var(--neon);
  background: rgba(0, 229, 160, .07);
}
.btn--amber { border-color: var(--amber); color: var(--amber); }
.btn--amber:hover { background: var(--amber); color: #1A0D06; }

/* ===================== 标签 ===================== */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  line-height: 1.6;
  color: var(--muted);
  border: 1px solid var(--line);
}
.tag--neon { color: var(--neon); border-color: rgba(0, 229, 160, .45); background: rgba(0, 229, 160, .07); }
.tag--amber { color: var(--amber); border-color: rgba(255, 107, 53, .45); background: rgba(255, 107, 53, .07); }
.tag--blue { color: var(--blue); border-color: rgba(58, 134, 255, .45); background: rgba(58, 134, 255, .07); }

/* ===================== 数据条 ===================== */

.data-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.data-cell {
  background: var(--panel);
  padding: clamp(16px, 2vw, 22px);
  display: grid;
  gap: 8px;
  align-content: start;
}
.data-num {
  font-family: var(--font-mono);
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--neon);
  font-variant-numeric: tabular-nums;
}
.data-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--muted);
}
.data-note {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

/* ===================== 分段切换 ===================== */

.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  background: var(--panel);
}
.seg-btn {
  appearance: none;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  padding: 11px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--muted);
  cursor: pointer;
  transition: color .16s var(--ease), background-color .16s var(--ease), border-color .16s var(--ease);
}
.seg-btn:hover { color: var(--paper); }
.seg-btn[aria-selected="true"] {
  color: var(--neon);
  background: var(--neon-deep);
  border-bottom-color: var(--neon);
}

/* ===================== 粘性锚点索引 ===================== */

.anchor-index {
  position: sticky;
  top: 28px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}
.anchor-title {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--muted);
}
.anchor-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.anchor-link {
  display: block;
  padding: 6px 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  text-decoration: none;
  transition: color .16s var(--ease);
}
.anchor-link::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 2px;
  margin-right: 9px;
  vertical-align: middle;
  background: var(--line);
  transition: background-color .16s var(--ease), width .16s var(--ease);
}
.anchor-link:hover { color: var(--paper); }
.anchor-link[aria-current="true"] { color: var(--neon); }
.anchor-link[aria-current="true"]::before { background: var(--neon); width: 18px; }

/* ===================== 图片容器（页面阶段放置） ===================== */

.media-frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(150deg, #141A24 0%, #0B0F17 100%);
  box-shadow: inset 0 0 0 1px var(--line);
  clip-path: var(--cut-path);
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame picture,
.media-frame img {
  display: block;
  width: 100%;
  height: 100%;
}
.media-frame img {
  object-fit: cover;
  object-position: center;
  filter: saturate(.92) contrast(1.06);
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11, 15, 23, 0) 42%, rgba(11, 15, 23, .74) 100%),
    linear-gradient(90deg, rgba(0, 229, 160, .07), transparent 42%);
}
.media-caption {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .05em;
  color: var(--muted);
}

/* ===================== 扫描线（框景首屏用） ===================== */

.scan {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}
.scan::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  top: -30%;
  height: 120px;
  background: linear-gradient(180deg, rgba(0, 229, 160, 0), rgba(0, 229, 160, .16), rgba(0, 229, 160, 0));
  animation: scanOnce .9s var(--ease) 1 both;
}
@keyframes scanOnce {
  from { top: -26%; }
  to { top: 108%; }
}

/* ===================== 进度条与返回顶部 ===================== */

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  z-index: 120;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--neon) 0%, var(--blue) 55%, var(--amber) 100%);
  will-change: transform;
}

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 110;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  clip-path: var(--cut-path-sm);
  transition: opacity .2s var(--ease), visibility .2s var(--ease), color .16s var(--ease), border-color .16s var(--ease);
}
.to-top[data-visible] { opacity: 1; visibility: visible; }
.to-top:hover { color: var(--neon); border-color: var(--neon); }

/* ===================== 显现 ===================== */

.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ===================== 响应式：平板 ===================== */

@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .col-main,
  .col-side,
  .col-half { grid-column: 1 / -1; }
}

/* ===================== 响应式：移动 ===================== */

@media (max-width: 900px) {
  .header-top {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 14px;
  }
  .brand { grid-column: 1; }
  .nav-toggle { display: inline-flex; grid-column: 2; justify-self: end; }
  .header-quick { display: none; }

  .site-nav { display: none; }
  .site-nav[data-open] {
    display: block;
    animation: navIn .2s var(--ease) both;
  }

  .nav-list {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
    -webkit-overflow-scrolling: touch;
  }
  .nav-list::-webkit-scrollbar { height: 3px; }
  .nav-list::-webkit-scrollbar-track { background: transparent; }
  .nav-list::-webkit-scrollbar-thumb { background: var(--line); }
  .nav-link { white-space: nowrap; padding: 13px 16px; }

  .nav-aside {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 16px;
    border-top: 1px dashed var(--line);
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }
  .nav-aside-link { white-space: nowrap; }
}

@media (max-width: 620px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; align-items: flex-start; gap: 8px; }
  .segmented { width: 100%; }
  .seg-btn { flex: 1 1 auto; padding: 11px 14px; text-align: center; }
  .to-top { right: 14px; bottom: 14px; }
}

/* ===================== 减弱动效 ===================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .scan::after { display: none; }
}
