/* ============================================================
   刘尚恒 & 李胜男 · 婚礼邀请函
   电影感 / 质感 / 高端动效  —  纯原生实现，零依赖
   ============================================================ */

:root {
  --bg: #0a0a0c;
  --bg-soft: #111114;
  --gold: #d8b271;
  --gold-bright: #e9c98a;
  --cream: #f3ece0;
  --ink: rgba(244, 238, 228, 0.88);
  --ink-dim: rgba(244, 238, 228, 0.55);
  --line: rgba(216, 178, 113, 0.28);
  --font-display: 'Cormorant Garamond', 'Noto Serif SC', 'Songti SC', 'STSong', Georgia, serif;
  --font-body: 'Noto Serif SC', 'Songti SC', 'Source Han Serif SC', 'STSong', serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}
/* 封面展示期锁定页面滚动，避免背后内容被滑动；进入后由 JS 移除 */
body.no-scroll { overflow: hidden; height: 100%; }

img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ---------- 电影质感叠层 ---------- */
.grain {
  position: fixed; inset: 0; z-index: 900; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.6s steps(2) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  50% { transform: translate(-3%, 2%); }
  100% { transform: translate(2%, -2%); }
}
.vignette {
  position: fixed; inset: 0; z-index: 901; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 52%, rgba(0,0,0,0.55) 100%);
}
.letterbox {
  position: fixed; left: 0; right: 0; height: 0; background: #000; z-index: 902; pointer-events: none;
  transition: height 1.1s var(--ease);
}
.letterbox.top { top: 0; }
.letterbox.bottom { bottom: 0; }
body.opened .letterbox.top,
body.opened .letterbox.bottom { height: 0; }
body:not(.opened) .letterbox.top,
body:not(.opened) .letterbox.bottom { height: 6vh; }

/* ---------- 滚动进度 ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 800;
  background: rgba(255,255,255,0.06); opacity: 0; transition: opacity 0.6s;
}
body.opened .scroll-progress { opacity: 1; }
.scroll-progress span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-bright));
  box-shadow: 0 0 8px var(--gold);
}

/* ---------- 入场封面 ---------- */
.cover {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(40,33,22,0.55), transparent 60%),
    linear-gradient(160deg, #0c0b0a 0%, #060606 60%, #0a0807 100%);
  text-align: center; padding: 8vh 24px;
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease);
}
.cover.hide { opacity: 0; transform: scale(1.06); filter: blur(6px); pointer-events: none; }
.cover-inner { position: relative; z-index: 2; max-width: 560px; }
.cover-kicker {
  font-family: var(--font-display); letter-spacing: 0.5em; font-size: 13px;
  color: var(--gold); text-transform: uppercase; margin-bottom: 22px; padding-left: 0.5em;
  opacity: 0; animation: fadeUp 1s var(--ease) 0.2s forwards;
}
.cover-names {
  font-family: var(--font-display); font-weight: 500; color: var(--cream);
  font-size: clamp(40px, 13vw, 86px); line-height: 1.05; letter-spacing: 0.04em;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  opacity: 0; animation: fadeUp 1s var(--ease) 0.45s forwards;
}
.cover-names i { font-style: italic; color: var(--gold); font-size: 0.5em; margin: 2px 0; }
.cover-date {
  font-family: var(--font-display); letter-spacing: 0.42em; color: var(--gold-bright);
  font-size: clamp(15px, 4.4vw, 22px); margin: 22px 0 14px; padding-left: 0.42em;
  opacity: 0; animation: fadeUp 1s var(--ease) 0.7s forwards;
}
.cover-rule {
  width: 0; height: 1px; margin: 0 auto 18px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: ruleGrow 1.2s var(--ease) 0.95s forwards;
}
.cover-sub {
  font-size: 15px; color: var(--ink-dim); letter-spacing: 0.16em;
  opacity: 0; animation: fadeUp 1s var(--ease) 1.1s forwards;
}
.enter-btn {
  margin-top: 34px; padding: 15px 46px; border: 1px solid var(--line);
  border-radius: 999px; color: var(--cream); font-size: 16px; letter-spacing: 0.28em;
  background: rgba(216,178,113,0.06); backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px); position: relative; overflow: hidden;
  transition: all 0.5s var(--ease);
  opacity: 0; animation: fadeUp 1s var(--ease) 1.3s forwards;
}
.enter-btn:not([disabled]):hover {
  border-color: var(--gold); color: #fff;
  box-shadow: 0 0 30px rgba(216,178,113,0.25); background: rgba(216,178,113,0.12);
}
.enter-btn:disabled { opacity: 0.4; cursor: default; letter-spacing: 0.18em; }
.enter-btn::after {
  content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-20deg); animation: sheen 3.2s ease-in-out infinite;
}
.cover-progress {
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px; z-index: 3;
  background: rgba(255,255,255,0.05);
}
.cover-progress span { display: block; height: 100%; width: 0%; background: var(--gold); transition: width 0.3s linear; }

/* 封面粒子 */
.cover-particles { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.cover-particles i {
  position: absolute; bottom: -10px; width: 3px; height: 3px; border-radius: 50%;
  background: var(--gold); opacity: 0; box-shadow: 0 0 6px var(--gold);
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  0% { transform: translateY(0) scale(0.6); opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.5; }
  100% { transform: translateY(-105vh) scale(1); opacity: 0; }
}

/* ---------- 通用 reveal ---------- */
.reveal { opacity: 0; transform: translateY(38px); filter: blur(6px); transition: opacity 1.6s var(--ease), transform 1.6s var(--ease), filter 1.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* ---------- 章节通用 ---------- */
.chapter { position: relative; padding: 8vh 24px; max-width: 880px; margin: 0 auto; }
.section-label { text-align: center; margin-bottom: 36px; }
.section-label span {
  font-family: var(--font-display); letter-spacing: 0.5em; font-size: 13px; color: var(--gold);
  text-transform: uppercase; padding-left: 0.5em; position: relative;
}
.section-label span::before, .section-label span::after {
  content: ''; position: absolute; top: 50%; width: 34px; height: 1px; background: var(--line);
}
.section-label span::before { right: 100%; margin-right: 14px; }
.section-label span::after { left: 100%; margin-left: 14px; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; height: 100dvh; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hero-bg {
  position: absolute; inset: -6% -6% -6% -6%; background-size: cover; background-position: center;
  transform: scale(1.08); animation: kenburns 22s ease-out forwards; will-change: transform;
}
@keyframes kenburns {
  0% { transform: scale(1.18) translate(0, 0); }
  100% { transform: scale(1.04) translate(-2%, -2%); }
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.18) 38%, rgba(0,0,0,0.35) 70%, rgba(0,0,0,0.78) 100%),
    radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.5) 100%);
}
.hero-content { position: relative; z-index: 2; text-align: center; padding: 0 24px; will-change: transform; }
.hero-kicker { font-family: var(--font-display); letter-spacing: 0.55em; font-size: 14px; color: var(--gold); text-transform: uppercase; margin-bottom: 18px; padding-left: 0.55em; }
.hero-names { font-family: var(--font-display); font-weight: 500; color: var(--cream); font-size: clamp(38px, 11vw, 78px); line-height: 1.08; letter-spacing: 0.05em; text-shadow: 0 4px 30px rgba(0,0,0,0.5); }
.hero-names span { color: var(--gold); font-style: italic; font-size: 0.6em; margin: 0 0.25em; vertical-align: middle; }
.hero-date { font-family: var(--font-display); letter-spacing: 0.34em; color: var(--gold-bright); font-size: clamp(15px, 4vw, 21px); margin-top: 18px; padding-left: 0.34em; }
.hero-place { color: var(--ink-dim); letter-spacing: 0.3em; font-size: 13px; margin-top: 10px; }
.scroll-cue {
  position: absolute; bottom: calc(28px + var(--safe-b)); left: 50%; transform: translateX(-50%);
  z-index: 3; color: var(--ink-dim); font-size: 12px; letter-spacing: 0.2em; text-align: center;
}
.scroll-cue span {
  display: block; width: 1px; height: 38px; margin: 0 auto 10px;
  background: linear-gradient(180deg, var(--gold), transparent); position: relative; overflow: hidden;
}
.scroll-cue span::after {
  content: ''; position: absolute; top: -38px; left: 0; width: 1px; height: 38px; background: var(--gold-bright);
  animation: cueDown 1.8s var(--ease) infinite;
}
@keyframes cueDown { 0% { top: -38px; } 60%,100% { top: 38px; } }

/* ---------- 序章 ---------- */
.intro { text-align: center; }
.intro-line { color: var(--ink-dim); letter-spacing: 0.22em; font-size: 15px; margin: 14px 0; }
.intro-line.big {
  font-family: var(--font-display); color: var(--cream); font-size: clamp(26px, 7vw, 44px);
  line-height: 1.4; letter-spacing: 0.08em; margin: 30px 0; font-weight: 400;
}

/* ---------- 相册（按色彩章节） ---------- */
.gal-chapter { padding: 9vh 0 4vh; }
.gal-head { text-align: center; padding: 0 24px; margin-bottom: 30px; }
.gal-head .gal-en { font-family: var(--font-display); letter-spacing: 0.5em; font-size: 12px; color: var(--gold); padding-left: 0.5em; }
.gal-head .gal-title { font-family: var(--font-display); color: var(--cream); font-size: clamp(28px, 8vw, 52px); margin: 8px 0 6px; font-weight: 500; }
.gal-head .gal-desc { color: var(--ink-dim); font-size: 13px; letter-spacing: 0.18em; }
.gal-head .gal-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-bottom: 14px; box-shadow: 0 0 12px currentColor; }

.gal-grid { column-count: 2; column-gap: 10px; padding: 0 10px; }
@media (min-width: 760px) { .gal-grid { column-count: 3; column-gap: 14px; padding: 0 18px; } }

.photo {
  position: relative; break-inside: avoid; margin-bottom: 10px; border-radius: 4px; overflow: hidden;
  background: #16161a; cursor: pointer; opacity: 0; transform: translateY(40px) scale(0.96);
  transition: opacity 1.5s var(--ease), transform 1.5s var(--ease), box-shadow 0.6s var(--ease);
  box-shadow: 0 6px 24px rgba(0,0,0,0.45);
}
@media (min-width: 760px) { .photo { margin-bottom: 14px; } }
.photo.in { opacity: 1; transform: none; }
.photo img { width: 100%; height: auto; display: block; transition: transform 1.2s var(--ease), filter 0.8s var(--ease); filter: saturate(0.92) contrast(1.02); }
.photo::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), inset 0 0 60px rgba(0,0,0,0.25);
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.28));
}
.photo:hover img { transform: scale(1.06); filter: saturate(1.06) contrast(1.05); }
.photo .photo-tint {
  position: absolute; inset: 0; mix-blend-mode: soft-light; opacity: 0.5; pointer-events: none;
  background: radial-gradient(circle at 30% 20%, var(--tint, transparent), transparent 70%);
}

/* jiaolou：横向自动滑动展示（自动滚动 + 支持手动左右滑动/拖拽） */
.gal-carousel { position: relative; overflow-x: auto; overflow-y: hidden; padding: 4px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); scrollbar-width: none; -ms-overflow-style: none; cursor: grab; touch-action: pan-y; -webkit-overflow-scrolling: touch; scroll-behavior: auto; }
.gal-carousel::-webkit-scrollbar { display: none; }
.gal-carousel.dragging { cursor: grabbing; }
.gal-carousel.dragging * { user-select: none; -webkit-user-select: none; }
.gal-track { display: flex; gap: 12px; width: max-content; will-change: scroll-position; }
.gal-slide {
  position: relative; flex: 0 0 auto; height: 46vh; max-height: 420px; border-radius: 4px; overflow: hidden;
  background: #16161a; cursor: pointer; box-shadow: 0 6px 24px rgba(0,0,0,0.45);
  opacity: 0; transform: translateY(30px) scale(0.97); transition: opacity 1.5s var(--ease), transform 1.5s var(--ease);
}
@media (min-width: 760px) { .gal-slide { height: 52vh; max-height: 460px; } }

.gal-slide.in { opacity: 1; transform: none; }
  .gal-slide img { height: 100%; width: auto; max-width: none; display: block; transition: transform 1.2s var(--ease), filter 0.8s var(--ease); filter: saturate(0.92) contrast(1.02); }
.gal-slide::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), inset 0 0 60px rgba(0,0,0,0.25); background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.28)); }
.gal-slide:hover img { transform: scale(1.05); filter: saturate(1.06) contrast(1.05); }
@media (prefers-reduced-motion: reduce) { .gal-slide { opacity: 1; transform: none; } }

/* ---------- 详情 ---------- */
.detail-card {
  max-width: 560px; margin: 0 auto; padding: 40px 28px; border-radius: 8px; text-align: center;
  background: linear-gradient(160deg, rgba(28,26,22,0.7), rgba(12,12,14,0.7));
  border: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
}
.detail-row { display: flex; flex-direction: column; gap: 6px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
.detail-row:last-of-type { border-bottom: none; }
.detail-label { font-family: var(--font-display); letter-spacing: 0.4em; font-size: 12px; color: var(--gold); text-transform: uppercase; padding-left: 0.4em; }
.detail-val { color: var(--cream); font-size: 17px; letter-spacing: 0.06em; line-height: 1.6; }
.map-btn {
  display: inline-block; margin-top: 28px; padding: 13px 40px; border-radius: 999px;
  border: 1px solid var(--gold); color: var(--gold-bright); letter-spacing: 0.26em; font-size: 14px;
  transition: all 0.5s var(--ease); position: relative; overflow: hidden;
}
.map-btn:hover { background: var(--gold); color: #1a140a; box-shadow: 0 0 30px rgba(216,178,113,0.4); }

/* ---------- 结尾 ---------- */
.ending { text-align: center; padding-bottom: calc(20vh + var(--safe-b)); }
.ending-names { font-family: var(--font-display); color: var(--cream); font-size: clamp(30px, 9vw, 56px); font-weight: 500; }
.ending-names span { color: var(--gold); font-style: italic; font-size: 0.6em; margin: 0 0.25em; }
.ending-thanks { color: var(--ink-dim); letter-spacing: 0.18em; margin-top: 22px; font-size: 15px; }
.ending-sign { color: var(--gold); letter-spacing: 0.4em; margin-top: 30px; font-family: var(--font-display); }
.site-beian { margin-top: 28px; font-size: 12px; letter-spacing: 0.12em; color: var(--ink-dim); }
.site-beian a { color: var(--ink-dim); transition: color 0.3s var(--ease); }
.site-beian a:hover { color: var(--gold); }

/* ---------- 赴约登记 RSVP ---------- */
.guest-form { max-width: 460px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.gf-row input {
  width: 100%; padding: 15px 18px; border-radius: 999px; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14); color: var(--cream); font-size: 16px; letter-spacing: 0.04em; outline: none;
  transition: border-color 0.4s var(--ease);
}
.gf-row input:focus { border-color: var(--gold); }
.gf-row input::placeholder { color: rgba(244,238,228,0.4); }
.gf-submit {
  margin-top: 6px; padding: 15px; border-radius: 999px; background: var(--gold); color: #1a140a;
  font-weight: 500; letter-spacing: 0.2em; font-size: 15px; transition: all 0.4s var(--ease);
}
.gf-submit:hover { background: var(--gold-bright); box-shadow: 0 0 26px rgba(216,178,113,0.4); }
.gf-submit:disabled { opacity: 0.6; }
.gf-msg { text-align: center; font-size: 13px; letter-spacing: 0.1em; min-height: 18px; }
.gf-msg.ok { color: var(--gold-bright); }
.gf-msg.err { color: #e79bb0; }

/* ---------- 弹幕层 ---------- */
.danmaku-layer { position: fixed; inset: 0; z-index: 700; pointer-events: none; overflow: hidden; }
.dm {
  position: absolute; left: 0; white-space: nowrap; font-size: 16px; font-weight: 400;
  color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.7), 0 0 10px rgba(0,0,0,0.4);
  will-change: transform; padding: 2px 6px;
}
.dm::before { content: '💬 '; opacity: 0.6; }

/* ---------- 控制按钮 ---------- */
.controls {
  position: fixed; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(20px + var(--safe-b));
  z-index: 950; display: flex; flex-direction: column; gap: 12px; align-items: center;
}
.ctrl-btn {
  width: 50px; height: 50px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(20,18,16,0.6); border: 1px solid var(--line); color: var(--cream);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: all 0.4s var(--ease);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
.ctrl-btn .ctrl-ico { font-size: 19px; line-height: 1; }
.ctrl-btn .ctrl-tip { font-size: 9px; letter-spacing: 0.1em; margin-top: 2px; color: var(--ink-dim); }
.ctrl-btn:hover { border-color: var(--gold); color: #fff; transform: translateY(-2px); }
.ctrl-btn.off { opacity: 0.5; }
.ctrl-btn.playing .ctrl-ico { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.15); opacity: 0.75; } }

/* ---------- 弹幕输入面板 ---------- */
.danmaku-panel {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 960;
  background: linear-gradient(180deg, rgba(14,13,12,0.92), rgba(8,8,9,0.98));
  border-top: 1px solid var(--line); padding: calc(18px + var(--safe-b)) 18px 18px;
  transform: translateY(110%); transition: transform 0.5s var(--ease); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.danmaku-panel.show { transform: translateY(0); }
.dp-head { font-family: var(--font-display); letter-spacing: 0.3em; color: var(--gold); font-size: 14px; margin-bottom: 14px; text-align: center; position: relative; }
.dp-close { position: absolute; right: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; color: var(--ink-dim); font-size: 15px; border: 1px solid rgba(255,255,255,0.12); transition: all 0.3s var(--ease); }
.dp-close:hover { color: #fff; border-color: var(--gold); }
.dp-row { display: flex; gap: 10px; }
.dp-row input {
  flex: 1; padding: 13px 16px; border-radius: 999px; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12); color: var(--cream); font-size: 15px; outline: none;
}
.dp-row input:focus { border-color: var(--gold); }
.dp-row button {
  padding: 0 26px; border-radius: 999px; background: var(--gold); color: #1a140a; font-weight: 500;
  letter-spacing: 0.1em; font-size: 14px; transition: all 0.4s var(--ease);
}
.dp-row button:hover { background: var(--gold-bright); box-shadow: 0 0 20px rgba(216,178,113,0.4); }
.dp-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; justify-content: center; }
.dp-presets span {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-dim);
  font-size: 13px; letter-spacing: 0.06em; transition: all 0.3s var(--ease);
}
.dp-presets span:hover { color: var(--cream); border-color: var(--gold); }

/* ---------- 灯箱 ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 970; background: rgba(0,0,0,0.94);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease);
}
.lightbox.show { opacity: 1; pointer-events: auto; }
.lightbox.closing { transition: opacity 0.12s var(--ease); } /* 关闭时快速淡出，避免遮罩长时间盖住背景轮播 */
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 4px; box-shadow: 0 20px 80px rgba(0,0,0,0.8); transform: scale(0.96); transition: transform 0.4s var(--ease); }
.lightbox.show img { transform: scale(1); }
.lb-close {
  position: absolute; top: calc(18px + var(--safe-t)); right: 18px; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); color: #fff; font-size: 18px;
}

/* ---------- 动效关键帧 ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes ruleGrow { from { width: 0; } to { width: 160px; } }
@keyframes sheen { 0% { left: -120%; } 60%,100% { left: 160%; } }

/* ---------- 减弱动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  .grain, .cover-particles, .scroll-cue span::after, .ctrl-btn.playing .ctrl-ico, .enter-btn::after { animation: none !important; }
  .hero-bg { animation: none !important; transform: scale(1.04); }
  .reveal { transition: opacity 0.6s ease; transform: none; filter: none; }
  .photo { transition: opacity 0.6s ease; transform: none; }
  * { scroll-behavior: auto !important; }
}

/* ---------- 大屏排版 ---------- */
@media (min-width: 1024px) {
  .chapter { padding: 16vh 24px; }
  .hero-names { font-size: 88px; }
}
