/* ===== 基础 ===== */
:root {
  --bg: #fdf6ea;
  --panel: #ffffff;
  --ink: #2b3040;
  --ink-strong: #22305a;
  --muted: #8a7a63;
  --gold: #e2a33c;
  --gold-deep: #b8862f;
  --orange: #de8a2b;
  --line: rgba(195, 152, 80, .35);
  --radius: 16px;
  --serif: Georgia, "Times New Roman", "Songti SC", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: rgba(226, 163, 60, .38); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(195, 145, 60, .45); border-radius: 8px; border: 2px solid var(--bg); }

main, .foot { position: relative; z-index: 2; }

/* ===== 顶部滚动进度条 ===== */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 60;
  pointer-events: none;
}
.progress__bar {
  display: block;
  height: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, rgba(226, 163, 60, .3), #e0912e 60%, #d9702e);
}

/* ===== 氛围背景(彩色光斑) ===== */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.ambient__blob {
  position: absolute;
  display: block;
  border-radius: 50%;
}
.ambient__blob--a {
  width: 62vmax; height: 62vmax;
  top: -22vmax; left: -20vmax;
  background: radial-gradient(circle, rgba(255, 196, 92, .42), transparent 68%);
  animation: driftA 26s ease-in-out infinite alternate;
}
.ambient__blob--b {
  width: 52vmax; height: 52vmax;
  top: 30%; right: -22vmax;
  background: radial-gradient(circle, rgba(255, 142, 138, .3), transparent 68%);
  animation: driftB 32s ease-in-out infinite alternate;
}
.ambient__blob--c {
  width: 58vmax; height: 58vmax;
  bottom: -24vmax; left: -12vmax;
  background: radial-gradient(circle, rgba(110, 170, 255, .28), transparent 68%);
  animation: driftA 38s ease-in-out infinite alternate-reverse;
}

.dust {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.glow {
  position: fixed;
  top: 0; left: 0;
  width: 460px; height: 460px;
  margin: -230px 0 0 -230px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 168, 60, .16), transparent 72%);
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity .7s ease;
  will-change: transform;
}
.glow.is-on { opacity: 1; }

/* ===== 导航 ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(18px, 5vw, 48px);
  border-bottom: 1px solid transparent;
  transition: background .45s ease, border-color .45s ease;
}
.nav.is-scrolled {
  background: rgba(255, 250, 240, .82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(195, 152, 80, .28);
}
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__logo {
  display: block;
  height: 30px;
  width: auto;
  mix-blend-mode: multiply;
}
.nav__name {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: .12em;
  color: var(--ink-strong);
}
.nav__link {
  font-size: 13px;
  letter-spacing: .3em;
  color: #8a6a2a;
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, color .3s ease;
}
.nav__link:hover { color: var(--gold-deep); border-bottom-color: rgba(184, 134, 47, .6); }

/* ===== Hero ===== */
.hero__inner {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 64px 20px 18px;
}
.hero__eyebrow {
  font-size: clamp(11px, 3vw, 13px);
  letter-spacing: .38em;
  text-indent: .38em;
  color: var(--gold-deep);
  opacity: 0;
  animation: fadeUp .9s ease .1s forwards;
}
.hero__title {
  margin-top: 14px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, min(9.5vw, 7.4vh), 66px);
  line-height: 1.1;
  letter-spacing: .06em;
  color: var(--ink-strong);
}
.hero__line { display: block; }
.hero__line--gold {
  color: var(--orange);
  animation: glowPulse 4.6s ease-in-out 2.4s infinite;
}
.ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(.55em) rotate(3deg);
  animation: chIn .95s cubic-bezier(.2, .75, .2, 1) forwards;
  animation-delay: var(--d, 0s);
}
.hero__sub {
  margin-top: 14px;
  font-size: clamp(13px, 3.4vw, 15px);
  letter-spacing: .18em;
  color: var(--muted);
  opacity: 0;
  animation: fadeUp .9s ease 1.15s forwards;
}

/* 首屏系列海报 */
.hero__poster {
  width: min(100%, 800px, calc(48vh * 1.778));
  margin-top: clamp(12px, 2vh, 18px);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(200, 150, 60, .4);
  box-shadow: 0 26px 60px rgba(150, 105, 40, .22), 0 0 60px rgba(255, 190, 90, .28);
  opacity: 0;
  animation: fadeUp 1.1s cubic-bezier(.2, .75, .2, 1) .95s forwards;
  will-change: transform;
}
.hero__poster img { width: 100%; height: auto; }

.hero__cue {
  margin-top: auto;
  padding-top: 10px;
  opacity: 0;
  animation: fadeUp 1s ease 1.7s forwards;
}
.hero__cue-line {
  position: relative;
  display: block;
  width: 1px; height: 34px;
  margin: 0 auto 10px;
  background: linear-gradient(180deg, rgba(184, 134, 47, .9), transparent);
  overflow: hidden;
}
.hero__cue-line::after {
  content: "";
  position: absolute;
  left: -1.5px;
  top: -8px;
  width: 4px; height: 8px;
  border-radius: 2px;
  background: var(--gold);
  animation: cueDrop 2.2s ease-in-out infinite;
}
.hero__cue-text {
  font-size: 10px;
  letter-spacing: .34em;
  text-indent: .34em;
  color: #b08a45;
}

/* 手机端首屏不撑满整屏,压缩留白,让分册区更早出现 */
@media (max-width: 779px) {
  .hero__inner {
    min-height: auto;
    padding-bottom: 34px;
  }
  .hero__cue {
    margin-top: clamp(26px, 4.5vh, 40px);
  }
}

/* ===== 滚动书架 ===== */
.shelf {
  padding: clamp(34px, 6.5vh, 60px) 0 0;
  scroll-margin-top: 80px;
}
.shelf__head {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 clamp(18px, 5vw, 48px) 20px;
}
.shelf__title {
  display: inline-block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 5vw, 34px);
  letter-spacing: .3em;
  text-indent: .3em;
  color: var(--ink-strong);
}
.shelf__badge {
  display: inline-block;
  margin-left: 14px;
  padding: 3px 12px;
  vertical-align: 4px;
  border: 1px solid rgba(195, 152, 80, .55);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--gold-deep);
}
.shelf__line {
  position: absolute;
  left: clamp(18px, 5vw, 48px);
  bottom: 0;
  display: block;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, #e0912e, rgba(224, 145, 46, 0));
  transition: width 1.2s cubic-bezier(.2, .7, .2, 1) .3s;
}
.shelf__head.is-in .shelf__line { width: min(440px, 74%); }

.shelf__stage {
  position: relative;
  margin-top: clamp(14px, 2.6vw, 28px);
}
.shelf__viewport {
  --card-w: clamp(168px, 44vw, 230px);
  position: relative;
  overflow: hidden;
  padding: 28px 0 44px;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}
.shelf__viewport.is-grabbing { cursor: grabbing; }
.shelf__track {
  display: flex;
  align-items: flex-end;
  gap: clamp(18px, 2.6vw, 34px);
  will-change: transform;
}
.slide {
  flex: none;
  width: var(--card-w);
  animation: slideIn .9s cubic-bezier(.2, .7, .2, 1) both;
  animation-delay: calc(var(--i) * 130ms + 120ms);
}
.slide__fx {
  transform-origin: 50% 100%;
  will-change: transform, opacity;
}
/* 居中册:抬升时的投影更强,更有"主角"感 */
.slide.is-center .book__face {
  box-shadow: 0 30px 64px rgba(155, 108, 40, .3), 0 0 42px rgba(240, 178, 70, .36);
  border-color: rgba(195, 145, 55, .65);
}

/* 书架横板 */
.shelf__board {
  position: absolute;
  left: clamp(8px, 3.4vw, 80px);
  right: clamp(8px, 3.4vw, 80px);
  bottom: 28px;
  height: 16px;
  border-radius: 12px;
  background: linear-gradient(180deg, #f6e5c4 0%, #e6cb9a 46%, #d0ac76 100%);
  box-shadow:
    0 14px 30px rgba(150, 105, 40, .3),
    0 4px 10px rgba(150, 105, 40, .22),
    inset 0 1px 0 rgba(255, 255, 255, .9),
    inset 0 -2px 4px rgba(160, 115, 45, .25);
  pointer-events: none;
}

/* 左右切换箭头 */
.shelf__arrow {
  position: absolute;
  top: 46%;
  transform: translateY(-50%);
  z-index: 6;
  display: grid;
  place-items: center;
  width: clamp(40px, 4.6vw, 50px);
  height: clamp(40px, 4.6vw, 50px);
  border: 1px solid rgba(195, 145, 55, .5);
  border-radius: 50%;
  background: rgba(255, 253, 248, .86);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--gold-deep);
  box-shadow: 0 8px 22px rgba(155, 110, 40, .2);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.shelf__arrow:hover {
  background: #fff;
  box-shadow: 0 10px 26px rgba(224, 145, 46, .42);
  transform: translateY(-50%) scale(1.06);
}
.shelf__arrow:active { transform: translateY(-50%) scale(.94); }
.shelf__arrow--prev { left: clamp(6px, 2.6vw, 40px); }
.shelf__arrow--next { right: clamp(6px, 2.6vw, 40px); }

/* 分册圆点:册数多时自动换行,不裁切 */
.shelf__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 10px;
  max-width: min(92vw, 640px);
  margin: clamp(8px, 1.8vh, 16px) auto 0;
}
.shelf__dot {
  position: relative;
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 999px;
  background: rgba(184, 134, 47, .3);
  transition: width .35s cubic-bezier(.2, .7, .2, 1), background .3s ease;
}
.shelf__dot::after {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 999px;
}
.shelf__dot.is-on {
  width: 26px;
  background: linear-gradient(90deg, #e0912e, #d9702e);
}

/* ===== 书本卡片 ===== */
.book {
  position: relative;
  perspective: 1500px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.book:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 6px;
  border-radius: var(--radius);
}

.book__tilt {
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .3s ease-out;
  transform-style: preserve-3d;
}
.book__inner {
  position: relative;
  transform-style: preserve-3d;
  transition: transform .85s cubic-bezier(.25, .8, .25, 1);
}
.book.is-flipped .book__inner { transform: rotateY(180deg); }

.book__face {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(160, 118, 50, .16);
  transition: box-shadow .4s ease, border-color .4s ease;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.book:hover .book__face {
  box-shadow: 0 26px 56px rgba(155, 108, 40, .26), 0 0 34px rgba(240, 178, 70, .3);
  border-color: rgba(195, 145, 55, .6);
}
.book__front { display: flex; flex-direction: column; }
.book__meta { padding: clamp(12px, 3vw, 18px) clamp(12px, 3vw, 18px) clamp(14px, 3vw, 18px); }
.book__meta-top { display: flex; align-items: baseline; gap: 8px; }
.book__num {
  flex: none;
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--gold-deep);
}
.book__title {
  flex: 1;
  min-width: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(14px, 3.5vw, 17px);
  line-height: 1.45;
  letter-spacing: .04em;
  color: var(--ink-strong);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.book__author {
  margin-top: 4px;
  font-size: clamp(10px, 2.6vw, 12px);
  letter-spacing: .08em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.book__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}
.book__more {
  flex: none;
  padding: 4px 12px;
  border: 1px solid rgba(195, 145, 55, .55);
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--gold-deep);
  background: rgba(255, 252, 244, .8);
  transition: background .3s ease, border-color .3s ease;
}
.book__more:hover { background: rgba(245, 220, 160, .45); border-color: rgba(184, 134, 47, .8); }

/* 封面背面 */
.book__back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  padding: clamp(16px, 4.4vw, 24px);
  background: linear-gradient(160deg, #fffdf8 0%, #fbf0da 100%);
  border-color: rgba(200, 150, 60, .45);
}
.back__num { font-size: 11px; letter-spacing: .16em; color: var(--gold-deep); }
.back__title {
  margin-top: 8px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(19px, 4.6vw, 23px);
  letter-spacing: .06em;
  color: var(--ink-strong);
}
.back__author { margin-top: 4px; font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.back__reader { margin-top: 6px; font-size: 11px; letter-spacing: .08em; color: var(--gold-deep); }
.back__intro {
  margin-top: auto;
  padding-top: 12px;
  font-size: 12.5px;
  line-height: 1.85;
  color: #6d5e45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}
@media (min-width: 780px) {
  .back__intro { -webkit-line-clamp: 6; }
}
.back__features { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.back__go {
  padding: 6px 14px;
  border: 1px solid rgba(200, 145, 50, .65);
  border-radius: 999px;
  background: linear-gradient(120deg, #f7cf7d, #eda646);
  color: #5c3d0a;
  font-size: 11px;
  letter-spacing: .12em;
  box-shadow: 0 6px 16px rgba(224, 145, 46, .3);
  transition: box-shadow .3s ease, transform .3s ease;
}
.back__go:hover { box-shadow: 0 8px 22px rgba(224, 145, 46, .45); transform: translateY(-1px); }
.back__foot {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.back__hint { font-size: 10px; letter-spacing: .16em; color: #a08c6d; }

.tag {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid rgba(195, 145, 55, .55);
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--gold-deep);
}
.book .tag { border-color: var(--tint, rgba(195, 145, 55, .55)); color: var(--tint, var(--gold-deep)); }
.book .back__reader { color: var(--tint, var(--gold-deep)); }

/* ===== 封面(占位 + 真实图片) ===== */
.cover {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 23 / 32;
  overflow: hidden;
  background: #f3e7d3;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
}
.cover__ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 9% 7%;
  text-align: center;
  background: linear-gradient(160deg, var(--g1) 0%, var(--g2) 55%, var(--g3) 100%);
}
.cover__ph::after {
  content: "";
  position: absolute;
  inset: 5.5%;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 4px;
  pointer-events: none;
}
.cover__mark {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -54%);
  font-family: var(--serif);
  font-size: 44cqw;
  line-height: 1;
  color: #fff;
  opacity: .45;
}
.cover__series {
  position: relative;
  font-size: 8px;
  font-size: clamp(8px, 3.4cqw, 13px);
  letter-spacing: .22em;
  text-indent: .22em;
  color: rgba(92, 61, 10, .78);
}
.cover__name {
  position: relative;
  font-family: var(--serif);
  font-size: 15px;
  font-size: clamp(15px, 8.5cqw, 34px);
  letter-spacing: .08em;
  line-height: 1.35;
  color: #3c3222;
}
.cover__by {
  position: relative;
  font-size: 9px;
  font-size: clamp(9px, 3.6cqw, 14px);
  letter-spacing: .12em;
  color: rgba(60, 50, 34, .72);
}
.cover__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .8s ease;
  -webkit-user-drag: none;
}
.cover__img.is-loaded { opacity: 1; }
.cover__shine {
  position: absolute;
  top: -60%; left: -30%;
  width: 22%; height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: translateX(-140%) rotate(16deg);
  animation: shine 7.5s ease-in-out infinite;
  animation-delay: var(--sd, 0s);
  pointer-events: none;
}

/* 占位封面渐变由 main.js 依据各分册 tint 生成 */

/* ===== 页脚 / 回顶 ===== */
.foot {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(44px, 9vh, 84px) clamp(18px, 5vw, 48px);
  padding-bottom: calc(clamp(44px, 9vh, 84px) + env(safe-area-inset-bottom));
  text-align: center;
}
.foot__logo {
  display: block;
  width: min(190px, 62%);
  height: auto;
  margin: 0 auto 18px;
  mix-blend-mode: multiply;
}
.foot__note {
  font-size: 11px;
  letter-spacing: .12em;
  color: #9a8a70;
}
.foot__copy {
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: .34em;
  color: #bcae93;
}
.foot__beian {
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: .12em;
}
.foot__beian a,
.foot__beian a:link,
.foot__beian a:visited {
  color: #b7a88c;
  -webkit-text-fill-color: #b7a88c;
  text-decoration: none;
  transition: color .3s ease;
}
.foot__beian a:hover {
  color: var(--gold-deep);
  -webkit-text-fill-color: var(--gold-deep);
}

.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: calc(clamp(14px, 3vw, 28px) + env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1px solid rgba(195, 145, 55, .55);
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--gold-deep);
  box-shadow: 0 8px 22px rgba(155, 110, 40, .18);
  opacity: 0;
  transform: translateY(14px) scale(.9);
  pointer-events: none;
  transition: opacity .45s ease, transform .45s ease, box-shadow .3s ease;
}
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { box-shadow: 0 10px 28px rgba(224, 145, 46, .4); }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 70;
  transform: translate(-50%, 16px);
  max-width: min(86vw, 420px);
  padding: 10px 18px;
  border: 1px solid rgba(200, 150, 60, .6);
  border-radius: 999px;
  background: rgba(255, 253, 248, .96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #8a6a20;
  font-size: 12px;
  letter-spacing: .08em;
  text-align: center;
  box-shadow: 0 12px 32px rgba(155, 110, 40, .22);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ===== 入场 / 滚动揭示 ===== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .85s ease, transform .95s cubic-bezier(.22, .72, .2, 1);
  transition-delay: var(--rd, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }

@keyframes chIn { to { opacity: 1; transform: none; } }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes slideIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes glowPulse {
  0%, 100% { filter: drop-shadow(0 8px 22px rgba(222, 138, 43, .18)); }
  50% { filter: drop-shadow(0 12px 36px rgba(222, 138, 43, .5)); }
}
@keyframes cueDrop {
  0% { transform: translateY(0); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(52px); opacity: 0; }
}
@keyframes driftA {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(6vmax, 7vmax) scale(1.16); }
}
@keyframes driftB {
  from { transform: translate(0, 0) scale(1.12); }
  to { transform: translate(-7vmax, -6vmax) scale(.98); }
}
@keyframes shine {
  0% { transform: translateX(-140%) rotate(16deg); opacity: 0; }
  5% { opacity: .9; }
  24% { transform: translateX(620%) rotate(16deg); opacity: 0; }
  100% { transform: translateX(620%) rotate(16deg); opacity: 0; }
}

/* ===== 降低动态效果偏好 ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .reveal { opacity: 1; transform: none; }
  .dust, .glow { display: none; }
}
