/* =========================================================
   潘天伦 & 邓小叶 · 婚礼请帖
   开场：写实纸质信封 + 红色火漆 → 书信
   正文：深紫星夜，香槟金点缀
   ========================================================= */
:root {
  --night: #140b26;
  --violet: #3b2270;
  --purple: #6a48b0;
  --text: #efe8ff;
  --muted: rgba(233, 225, 255, .74);
  --gold: #d8bf8a;
  --paper: #e9e3ec;
  --cream: #f6f0e6;
  --aged: #ecdcb9;
  --ink: #3d2c48;
  --ink-brown: #33210f;
  /* 行书：志莽行书（SIL OFL，已按实际用字裁剪），系统行楷/楷体兜底 */
  --hand: "XingShu", "STXingkai", "Xingkai SC", "华文行楷", "Kaiti SC", "STKaiti", "KaiTi", serif;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", serif;
  /* 正文：清晰稳定的系统黑体（各平台自带，无需加载网络字体） */
  --sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", "Source Han Sans SC", "Hiragino Sans GB", sans-serif;
  --en: "Didot", "Bodoni 72", "Playfair Display", "Georgia", "Times New Roman", serif;
  --script: "Snell Roundhand", "Segoe Script", "Brush Script MT", "ScriptEn", cursive;
  --grain: 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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  --neb-a: rgba(124, 82, 214, .5);
  --neb-b: rgba(64, 96, 210, .3);
  --base-1: #1f1139;
  --base-2: #110a20;
  --accent: var(--gold);
  --ph: radial-gradient(ellipse 70% 40% at 50% 92%, rgba(255, 255, 255, .8), transparent 70%), linear-gradient(180deg, #24154a, #8a72d6);
  --ph-ink: rgba(255, 255, 255, .6);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
@font-face { font-family: "XingShu"; src: url("assets/fonts/xingshu.woff2") format("woff2"); font-display: swap; }
/* 宋体标题（思源宋体粗体，仅「见字如面」四字）与英文手写体兜底（Dancing Script），手机无宋体/手写体时也能显示 */
@font-face { font-family: "SongTitle"; src: url("assets/fonts/songti-title.woff2") format("woff2"); font-display: block; }
@font-face { font-family: "ScriptEn"; src: url("assets/fonts/script-en.woff2") format("woff2"); font-display: swap; }
html, body { height: 100%; }
body {
  font-family: var(--serif);
  color: var(--text);
  background: var(--night);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font-family: inherit; }

.label { font-family: var(--en); font-size: 10px; letter-spacing: .45em; text-transform: uppercase; color: var(--accent); }
.label::before, .label::after { content: ""; display: inline-block; width: 22px; height: 1px; margin: 0 10px; vertical-align: middle; background: currentColor; opacity: .6; }
h2 { margin: 10px 0 16px; font-size: 22px; font-weight: 400; letter-spacing: .35em; color: #fff; }

/* 星云背景（正文各页） */
.intro, .page {
  background:
    radial-gradient(1px 1px at 20px 30px, rgba(255, 255, 255, .9), transparent) 0 0 / 180px 180px,
    radial-gradient(1px 1px at 95px 125px, rgba(255, 255, 255, .7), transparent) 0 0 / 180px 180px,
    radial-gradient(1.5px 1.5px at 150px 60px, rgba(225, 210, 255, .95), transparent) 0 0 / 180px 180px,
    radial-gradient(1px 1px at 60px 170px, rgba(255, 255, 255, .6), transparent) 0 0 / 240px 240px,
    radial-gradient(ellipse 90% 55% at 15% 22%, var(--neb-a), transparent 70%),
    radial-gradient(ellipse 80% 60% at 90% 78%, var(--neb-b), transparent 70%),
    linear-gradient(180deg, var(--base-1), var(--base-2));
}
/* 丝绒桌面（开场 + 书信页） */
.velvet {
  background-color: #140b26;
  background-image: var(--grain), radial-gradient(ellipse 85% 65% at 50% 40%, #4d2e7c 0, #2a1648 52%, #120a22 100%);
  background-size: 160px 160px, 100% 100%;
  background-blend-mode: soft-light, normal;
}

/* 纸张质感 */
.paper {
  background-color: var(--paper);
  background-image: var(--grain), var(--emboss, none), linear-gradient(160deg, rgba(255, 255, 255, .4), rgba(0, 0, 0, .06));
  background-size: 160px 160px, 96px 96px, 100% 100%;
  background-blend-mode: soft-light, normal, normal;
}

/* =========================================================
   开场：写实信封
   ========================================================= */
.intro {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  transition: opacity 1s ease .3s;
}
.intro.zoom { opacity: 0; pointer-events: none; }
.intro-tip { font-size: 12px; letter-spacing: .5em; color: var(--gold); animation: breath 2.4s ease-in-out infinite; transition: opacity .4s; }
.intro.opening .intro-tip { opacity: 0; animation: none; }

.scene { transform: perspective(1200px) rotateX(7deg); transition: transform 1.2s cubic-bezier(.5, 0, .3, 1), opacity 1s ease .2s; }
.intro.zoom .scene { transform: perspective(1200px) rotateX(0) translateY(12%) scale(2.3); opacity: 0; }

.envelope { position: relative; width: min(84vw, 330px); aspect-ratio: .74; cursor: pointer; transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.envelope.out { transform: translateY(24%); }
.envelope::after {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: -22px;
  z-index: -1;
  height: 36px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .6), transparent 70%);
  filter: blur(6px);
}
/* 信封内衬：深紫底 + 金色细纹 */
.env-back, .flap::after {
  background:
    repeating-linear-gradient(45deg, rgba(216, 191, 138, .22) 0 1px, transparent 1px 10px),
    repeating-linear-gradient(-45deg, rgba(216, 191, 138, .22) 0 1px, transparent 1px 10px),
    linear-gradient(180deg, #4a2a66, #2c1745);
}
.env-back { position: absolute; inset: 0; border-radius: 3px; box-shadow: inset 0 0 30px rgba(0, 0, 0, .5); }

/* 泛黄书卷纸：米黄底 + 纤维颗粒 + 中心提亮 + 边缘做旧 + 零星霉斑 */
.env-letter, .sheet {
  background-color: var(--aged);
  background-image:
    var(--grain),
    radial-gradient(ellipse 70% 60% at 50% 42%, rgba(255, 249, 228, .6) 0, transparent 70%),
    radial-gradient(ellipse at 50% 50%, transparent 52%, rgba(139, 92, 38, .32) 100%),
    radial-gradient(circle at 16% 20%, rgba(150, 100, 40, .14) 0 6px, transparent 20px),
    radial-gradient(circle at 84% 64%, rgba(150, 100, 40, .12) 0 9px, transparent 26px),
    radial-gradient(circle at 72% 10%, rgba(150, 100, 40, .1) 0 4px, transparent 13px),
    radial-gradient(circle at 28% 88%, rgba(150, 100, 40, .11) 0 5px, transparent 17px),
    radial-gradient(ellipse 40% 20% at 90% 96%, rgba(140, 95, 40, .16), transparent 70%),
    linear-gradient(172deg, rgba(255, 250, 235, .25), rgba(130, 90, 40, .08));
  background-size: 160px 160px, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
  background-blend-mode: multiply, normal, normal, normal, normal, normal, normal, normal, normal;
}
.env-letter {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 5%;
  height: 88%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 13%;
  gap: 8px;
  color: var(--ink);
  text-align: center;
  box-shadow: 0 0 0 1px rgba(120, 100, 80, .15), 0 -4px 12px rgba(0, 0, 0, .15);
  transition: transform 1.2s cubic-bezier(.2, .8, .2, 1);
}
.env-letter .script { font-family: var(--script); font-size: 30px; color: #6b4a2a; }
.el-names { font-family: var(--hand); font-size: 24px; letter-spacing: .06em; color: var(--ink-brown); }
.el-date { font-family: var(--en); font-size: 11px; letter-spacing: .3em; color: #8a6a3c; }

.env-front { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.fold { position: absolute; inset: 0; filter: drop-shadow(0 -1px 2px rgba(40, 20, 50, .28)); }
.fold i { position: absolute; inset: 0; }
.fold i::after { content: ""; position: absolute; inset: 0; }
.fold-l { clip-path: polygon(0 0, 54% 56%, 0 100%); }
.fold-l::after { background: linear-gradient(90deg, rgba(255, 255, 255, .22), rgba(0, 0, 0, .03)); }
.fold-r { clip-path: polygon(100% 0, 46% 56%, 100% 100%); }
.fold-r::after { background: linear-gradient(270deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, .02)); }
.fold-b { clip-path: polygon(0 100%, 50% 47%, 100% 100%); }
.fold-b::after { background: linear-gradient(0deg, rgba(0, 0, 0, .06), rgba(255, 255, 255, .16)); }
.env-script {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 9%;
  font-family: var(--script);
  font-size: 30px;
  color: #4b3554;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .6);
}

.flap-wrap {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 58%;
  z-index: 4;
  perspective: 1000px;
  filter: drop-shadow(0 4px 5px rgba(30, 10, 40, .35));
}
.flap { position: absolute; inset: 0; transform-origin: top; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.flap::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .25), rgba(0, 0, 0, .06)); }
.flap::after { content: ""; position: absolute; inset: 0; opacity: 0; }
.envelope.open .flap { animation: flapOpen 1s ease-in-out forwards; }
.envelope.open .flap::after { animation: linerIn 1s linear forwards; }
.envelope.out .flap-wrap { z-index: 1; }
.envelope.out .env-letter { transform: translateY(-50%); }

/* 红色火漆：裂成两半 */
.seal {
  position: absolute;
  left: 50%;
  top: 58%;
  z-index: 5;
  width: 78px;
  height: 78px;
  margin: -39px 0 0 -39px;
  filter: drop-shadow(0 5px 6px rgba(40, 0, 10, .5));
  animation: sealPulse 2.2s ease-in-out infinite;
}
.seal-half {
  position: absolute;
  inset: 0;
  border-radius: 47% 53% 50% 50% / 52% 46% 54% 48%;
  background: radial-gradient(circle at 34% 28%, #ea6372, #b51f37 46%, #82101f 80%, #6a0a18);
  transition: transform .8s cubic-bezier(.4, 0, .6, 1), opacity .8s ease;
}
.seal-half::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  box-shadow: inset 0 2px 4px rgba(60, 0, 10, .55), inset 0 -1px 2px rgba(255, 170, 170, .25), 0 1px 0 rgba(255, 190, 190, .35);
}
.seal-half b {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--script);
  font-size: 22px;
  font-weight: 400;
  color: #861126;
  text-shadow: 0 1px 0 rgba(255, 170, 170, .55), 0 -1px 0 rgba(60, 0, 10, .55);
}
.seal-half.l { clip-path: polygon(0 0, 54% 0, 46% 28%, 56% 52%, 44% 76%, 52% 100%, 0 100%); }
.seal-half.r { clip-path: polygon(54% 0, 100% 0, 100% 100%, 52% 100%, 44% 76%, 56% 52%, 46% 28%); }
.seal.crack { animation: none; }
.seal.crack .l { transform: translate(-14px, 26px) rotate(-24deg); opacity: 0; }
.seal.crack .r { transform: translate(14px, 30px) rotate(20deg); opacity: 0; }

/* =========================================================
   翻页容器
   ========================================================= */
.pages { height: 100vh; height: 100dvh; overflow-y: auto; scroll-snap-type: y mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.pages::-webkit-scrollbar { display: none; }
.page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 24px 48px;
  text-align: center;
  overflow: hidden;
}
:where(.page > *) { position: relative; z-index: 2; }
.next-hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  z-index: 3;
  width: 11px;
  height: 11px;
  margin-left: -5.5px;
  border-left: 1px solid var(--gold);
  border-top: 1px solid var(--gold);
  opacity: .7;
  transform: rotate(45deg);
  animation: hint 1.8s ease-in-out infinite;
}
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s ease, transform 1.1s ease; }
.page.in .reveal { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .2s; }
.reveal.d2 { transition-delay: .4s; }
.reveal.d3 { transition-delay: .6s; }

/* 贯穿旅途与婚纱篇的「路线」虚线 */
.route { position: absolute; left: 16px; top: 0; bottom: 0; z-index: 1; width: 0; border-left: 1px dashed rgba(216, 191, 138, .32); pointer-events: none; }
.route::after { content: ""; position: absolute; left: -4.5px; top: 18%; width: 8px; height: 8px; border-radius: 50%; background: var(--tone, var(--gold)); box-shadow: 0 0 10px var(--tone, var(--gold)); }

/* =========================================================
   书信页：写实信纸
   ========================================================= */
.sheet-stack { position: relative; width: min(86vw, 350px); }
.sheet-shadow { filter: drop-shadow(0 22px 26px rgba(0, 0, 0, .5)) drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
.sheet-shadow:first-child { position: absolute; inset: 0; transform: rotate(3.2deg) translate(8px, 10px); }
.sheet-shadow:nth-child(2) { position: relative; transform: rotate(-1deg); }
.sheet-under { height: 100%; }
.sheet-main { position: relative; padding: 30px 28px 42px; color: var(--ink-brown); text-align: left; }
/* 信纸金边：外细金线 + 内虚线，顶部留白放装饰 */
.sheet-main::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(154, 116, 54, .7); pointer-events: none; box-shadow: inset 0 0 0 4px rgba(246, 240, 230, .5), inset 0 0 0 5px rgba(154, 116, 54, .3); }
.sheet-main::after { content: ""; position: absolute; inset: 17px; border: 1px solid rgba(154, 116, 54, .28); pointer-events: none; }
.letter-ornament { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 4px 0 12px; }
.letter-ornament span { width: 46px; height: 1px; background: linear-gradient(90deg, transparent, rgba(154, 116, 54, .8)); }
.letter-ornament span:last-child { transform: scaleX(-1); }
.letter-ornament i { font-style: normal; font-size: 15px; color: #a17b3a; text-shadow: 0 1px 0 rgba(255, 250, 232, .8); }
.ink-title { margin: 0 0 14px; font-family: "SongTitle", var(--serif); font-size: 32px; font-weight: 700; letter-spacing: .2em; text-indent: .2em; text-align: center; color: var(--ink-brown); }
.ink-title::after { content: ""; display: block; width: 40px; height: 1px; margin: 6px auto 0; background: rgba(120, 80, 35, .45); }
.greet { font-family: var(--sans); font-size: 20px; font-weight: 500; line-height: 1.8; }
.letter-body { font-family: var(--sans); font-size: 18px; line-height: 1.9; letter-spacing: .02em; white-space: pre-line; color: #3b2814; }
.sign { margin-top: 12px; text-align: right; font-family: var(--hand); font-size: 24px; }
.sign-date { text-align: right; font-family: var(--hand); font-size: 17px; letter-spacing: .02em; color: #7a5a30; }
.sprig { position: absolute; right: 30px; bottom: -34px; z-index: 3; width: 60px; transform: rotate(28deg); filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .35)); }
.seal-mini { left: auto; top: auto; right: 6px; bottom: -30px; width: 64px; height: 64px; margin: 0; animation: none; transform: rotate(-12deg); }
.seal-mini .seal-half b { font-size: 18px; }

/* =========================================================
   封面
   ========================================================= */
.hero { --neb-a: rgba(140, 95, 230, .55); --neb-b: rgba(216, 170, 110, .22); }
.drapes {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 14px, rgba(0, 0, 0, .08) 14px 30px);
  -webkit-mask: linear-gradient(180deg, #000 0, #000 45%, transparent 85%);
  mask: linear-gradient(180deg, #000 0, #000 45%, transparent 85%);
}
.floor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 26%;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 50% 0, rgba(195, 170, 255, .38), transparent 75%),
    repeating-linear-gradient(180deg, rgba(200, 180, 255, .14) 0 1px, transparent 1px 13px);
  -webkit-mask: linear-gradient(180deg, #000, transparent);
  mask: linear-gradient(180deg, #000, transparent);
}
.vertical-en { position: absolute; left: 14px; top: 9%; writing-mode: vertical-rl; font-family: var(--en); font-size: 26px; letter-spacing: .5em; color: rgba(233, 225, 255, .22); }
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero-arch { width: min(78vw, 330px); aspect-ratio: 3 / 4.2; margin: 26px 0 30px; }
.hero h1 { font-family: var(--hand); font-size: 38px; font-weight: 400; letter-spacing: .06em; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.hero h1 i, .finale .names i { margin: 0 .3em; font-family: var(--script); font-size: 1.1em; color: var(--gold); }
.hero h1 i { font-size: .7em; }
.hero-date { margin-top: 8px; font-family: var(--serif); font-size: 16px; letter-spacing: .06em; color: rgba(255, 255, 255, .88); }
.hero-date small { font-family: var(--hand); font-size: 16px; letter-spacing: .06em; }
.hero-date small, .info dd small { display: block; margin-top: 4px; font-size: 12px; letter-spacing: .25em; color: var(--gold); }

.arch { position: relative; border-radius: 999px 999px 4px 4px; box-shadow: 0 0 0 1px rgba(216, 191, 138, .85), 0 0 34px rgba(185, 160, 255, .35), 0 0 90px rgba(120, 80, 220, .35); }
.arch::before { content: ""; position: absolute; inset: -11px; border: 1px solid rgba(216, 191, 138, .45); border-radius: inherit; pointer-events: none; }

/* 照片 / 占位 */
.photo {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: inherit;
  background: var(--ph);
}
.photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.ph-label { font-size: 11px; letter-spacing: .25em; color: var(--ph-ink); }
.frame-gold { box-shadow: 0 0 0 1px rgba(216, 191, 138, .7), 0 16px 34px rgba(0, 0, 0, .5); }
.slot { width: 100%; height: 100%; border-radius: inherit; }
.pol .slot { height: auto; aspect-ratio: 1; }
.bigstamp { position: relative; }
.pm b { font-weight: 400; }
.pm.long b { font-size: 12px; letter-spacing: .05em; }
.bridge { white-space: pre-line; }
.jr-photo.small .tape.t2 { top: -10px; left: 28%; right: auto; }

/* =========================================================
   邮戳 / 邮票（旅途五站共用）
   ========================================================= */
.pm {
  --pm: rgba(216, 191, 138, .85);
  position: absolute;
  z-index: 5;
  width: 84px;
  height: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--pm);
  border-radius: 50%;
  color: var(--pm);
  font-size: 15px;
  letter-spacing: .2em;
  transform: rotate(var(--rot, -14deg));
  pointer-events: none;
}
.pm::before { content: ""; position: absolute; inset: 5px; border: 1px dashed var(--pm); border-radius: 50%; }
.pm::after { content: ""; position: absolute; left: 92%; top: 32%; width: 60px; height: 36%; background: repeating-linear-gradient(180deg, var(--pm) 0 1.5px, transparent 1.5px 7px); opacity: .75; }
.pm small { font-family: var(--en); font-size: 7.5px; letter-spacing: .08em; }
.pm em { font-family: var(--en); font-size: 8px; font-style: normal; opacity: .85; }
.pm.ink { --pm: rgba(74, 44, 110, .62); }
.pm.red { --pm: rgba(160, 40, 60, .6); }
.pm.rust { --pm: rgba(150, 70, 30, .55); }

.stamp { width: 72px; height: 86px; padding: 5px; background: radial-gradient(circle at 4px 4px, transparent 3px, #fff 3.5px) -4px -4px / 8px 8px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .22)); }
.stamp-in { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; font-size: 26px; text-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.stamp-in small { margin-top: 2px; font-family: var(--en); font-size: 7px; letter-spacing: .1em; }

/* =========================================================
   旅途五站：五种版式
   ========================================================= */
.stop { --tone: var(--gold); }
.stop[data-tone="wall"] { --neb-b: rgba(217, 163, 95, .3); --tone: #e0b273; }
.stop[data-tone="mist"] { --neb-b: rgba(140, 190, 165, .3); --tone: #a9d1bb; }
.stop[data-tone="snow"] { --neb-b: rgba(190, 215, 245, .32); --tone: #d7e6f7; }
.stop[data-tone="desert"] { --neb-b: rgba(242, 150, 90, .34); --tone: #f2a46b; }
.stop[data-tone="lake"] { --neb-b: rgba(90, 170, 230, .34); --tone: #86c3ec; }
.stop .label { color: var(--tone); }
.stop h3 { margin: 8px 0 10px; font-size: 20px; font-weight: 400; letter-spacing: .25em; color: #fff; }
.stop .txt { max-width: 320px; margin: 0 auto; font-size: 14px; line-height: 2; color: var(--muted); }
.stop-text { margin-top: 24px; }
.story-head { margin-bottom: 26px; }
.story-head .sub { font-size: 11px; letter-spacing: .3em; color: var(--muted); }

/* ① 明信片 */
.pc-wrap { filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .5)); transform: rotate(-2.5deg); }
.pc {
  position: relative;
  width: min(88vw, 350px);
  padding: 12px 12px 16px;
  background-color: #f7f1e6;
  background-image: var(--grain);
  background-size: 160px 160px;
  background-blend-mode: soft-light;
  text-align: left;
}
.pc-photo { aspect-ratio: 3 / 2; }
.pc-photo .photo { border-radius: 0; }
.pc-body { display: flex; gap: 12px; margin-top: 12px; }
.pc-text { flex: 1; padding-right: 10px; border-right: 1px solid rgba(74, 44, 110, .2); }
.pc-text h3 { margin: 0 0 6px; font-size: 16px; color: #3b2270; letter-spacing: .15em; }
.pc-text .txt { margin: 0; font-size: 13px; line-height: 1.85; color: #4d3f63; }
.pc-side { position: relative; width: 92px; display: flex; flex-direction: column; align-items: flex-end; }
.pc-side .pm { right: 26px; top: 34px; }
.addr { width: 100%; height: 1px; margin-top: 16px; background: rgba(74, 44, 110, .25); }
.addr:first-of-type { margin-top: 26px; }
.pc-inset { position: absolute; right: -12px; top: -26px; width: 32%; aspect-ratio: 1; padding: 4px; background: #fff; transform: rotate(7deg); box-shadow: 0 8px 16px rgba(0, 0, 0, .35); }
.pc-inset::before { content: ""; position: absolute; left: 30%; top: -9px; z-index: 2; width: 44px; height: 16px; background: rgba(240, 225, 190, .75); transform: rotate(-6deg); }

/* ② 电影票 + 胶片 */
.ticket-wrap { filter: drop-shadow(0 14px 26px rgba(0, 0, 0, .5)); transform: rotate(2deg); }
.ticket {
  position: relative;
  display: flex;
  width: min(86vw, 340px);
  height: 124px;
  background-color: #f3e7d3;
  background-image: var(--grain);
  background-size: 160px 160px;
  background-blend-mode: soft-light;
  -webkit-mask: radial-gradient(circle at 72% 0, transparent 10px, #000 10.5px) top / 100% 51% no-repeat, radial-gradient(circle at 72% 100%, transparent 10px, #000 10.5px) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle at 72% 0, transparent 10px, #000 10.5px) top / 100% 51% no-repeat, radial-gradient(circle at 72% 100%, transparent 10px, #000 10.5px) bottom / 100% 51% no-repeat;
}
.tk-main { flex: 0 0 72%; padding: 16px 18px; border-right: 2px dashed rgba(74, 44, 110, .3); text-align: left; color: #3b2270; }
.tk-title { font-size: 22px; letter-spacing: .3em; }
.tk-sub { font-family: var(--en); font-size: 9px; letter-spacing: .3em; color: #8a6a4a; }
.tk-meta { display: flex; gap: 14px; margin-top: 14px; font-size: 11px; letter-spacing: .1em; color: #5a4a72; }
.tk-stub { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-family: var(--en); font-size: 12px; letter-spacing: .25em; color: #b8924f; }
.ticket-wrap .pm { right: 23%; top: 30px; --rot: 14deg; }
.film {
  position: relative;
  display: flex;
  gap: 6px;
  width: min(90vw, 350px);
  margin-top: 24px;
  padding: 16px 8px;
  background: #0b0810;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .5);
  transform: rotate(-1.5deg);
}
.film::before, .film::after { content: ""; position: absolute; left: 6px; right: 6px; height: 6px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .7) 0 7px, transparent 7px 14px); }
.film::before { top: 5px; }
.film::after { bottom: 5px; }
.frame { flex: 1; aspect-ratio: 4 / 3; }
.frame .photo { border-radius: 0; }
/* 庐山竖图放进 4:3 胶片格：上移裁切窗口，保留人脸与心形阳光 */
.film .frame:nth-child(1) .photo img { object-position: 50% 28%; }
.film .frame:nth-child(2) .photo img { object-position: 50% 34%; }
/* 泸沽湖圆形容器：横图裁成圆，偏右下以包含湖心岛 */
.ripples .rp .photo img { object-position: 60% 60%; }

/* ③ 拍立得 + 飘雪 */
.snow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .75;
  background-image:
    radial-gradient(2px 2px at 20px 30px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 80px 70px, rgba(255, 255, 255, .8), transparent),
    radial-gradient(2.5px 2.5px at 140px 20px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 50px 120px, rgba(255, 255, 255, .7), transparent);
  background-size: 180px 160px;
  animation: snow 16s linear infinite;
}
.pol-stack { position: relative; width: min(86vw, 330px); height: min(50vh, 370px); }
.pol { position: absolute; width: 56%; margin: 0; padding: 8px 8px 34px; background: #fbfaf7; box-shadow: 0 14px 28px rgba(0, 0, 0, .45); }
.pol .slot { aspect-ratio: 1; }
.pol .photo { border-radius: 0; }
.pol figcaption { position: absolute; left: 0; right: 0; bottom: 8px; font-size: 13px; letter-spacing: .3em; color: #4a3a52; text-align: center; }
.pol.p0 { left: -2%; top: -2%; z-index: 4; transform: rotate(-6deg); }
.pol.p1 { right: -5%; top: 11%; z-index: 3; transform: rotate(5deg); }
.pol.p2 { left: 12%; bottom: -3%; z-index: 2; width: 50%; transform: rotate(-2deg); }
.pol-stack[data-n="1"] .p0 { left: 20%; top: 8%; width: 62%; }
.pol-stack .pm { right: 2%; top: -6%; }

/* ④ 旅行手账 */
.journal-wrap { filter: drop-shadow(0 16px 28px rgba(0, 0, 0, .5)); transform: rotate(-1.5deg); }
.journal {
  position: relative;
  width: min(88vw, 340px);
  padding: 26px 22px 26px;
  background-color: #eadcc2;
  background-image: var(--grain), repeating-linear-gradient(180deg, transparent 0 27px, rgba(120, 90, 60, .2) 27px 28px);
  background-size: 160px 160px, 100% 100%;
  background-blend-mode: soft-light, normal;
  text-align: left;
}
.jr-photos { position: relative; height: 230px; margin-bottom: 12px; }
.jr-photos[data-n="1"] { height: 190px; }
.jr-photo { position: absolute; left: 0; top: 0; width: 70%; aspect-ratio: 4 / 3; padding: 5px; background: #fff; box-shadow: 0 6px 14px rgba(0, 0, 0, .3); transform: rotate(-3deg); }
.jr-photo .photo { border-radius: 0; }
.jr-photo.small { left: auto; right: 0; top: 8%; width: 38%; aspect-ratio: 1; transform: rotate(6deg); }
.jr-photo.small.s3 { top: auto; bottom: 4%; right: 4%; width: 34%; transform: rotate(-7deg); }
.tape { position: absolute; z-index: 3; width: 66px; height: 18px; background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .25) 0 4px, transparent 4px 8px), rgba(242, 164, 107, .62); }
.tape.t1 { left: 18%; top: -8px; transform: rotate(-8deg); }
.tape.t2 { right: 6%; top: 2%; transform: rotate(14deg); }
.tape.t3 { right: 8%; bottom: -8px; transform: rotate(-12deg); }
.jr-sun { position: absolute; right: 10px; top: 6px; width: 40px; height: 40px; border: 1.5px solid #d46b3a; border-radius: 50%; }
.jr-sun::after { content: ""; position: absolute; left: -16px; right: -16px; top: 50%; height: 1.5px; background: #d46b3a; }
.journal h3 { margin: 4px 0 2px; font-size: 18px; letter-spacing: .2em; color: #7a3e1d; }
.journal .txt { margin: 0; font-size: 14px; line-height: 28px; color: #5a4434; }
.journal .label { color: #a85f30; }
.journal .pm { right: -20px; top: -26px; --rot: 16deg; }

/* ⑤ 大邮票 + 涟漪圆片 */
.bigstamp-wrap { position: relative; filter: drop-shadow(0 16px 28px rgba(0, 0, 0, .5)); transform: rotate(-3deg); }
.bigstamp { width: min(62vw, 240px); aspect-ratio: 4 / 5; padding: 10px; background: radial-gradient(circle at 6px 6px, transparent 5px, #fbfaf7 5.5px) -6px -6px / 12px 12px; }
.bigstamp .slot { position: relative; width: 100%; height: 100%; }
.bigstamp .photo { border-radius: 0; }
.bs-name { position: absolute; left: 20px; top: 20px; z-index: 3; writing-mode: vertical-rl; font-size: 13px; letter-spacing: .35em; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .45); }
.bs-val { position: absolute; right: 20px; bottom: 18px; z-index: 3; font-family: var(--en); font-size: 18px; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .45); }
.bigstamp-wrap .pm { right: -40px; top: -24px; }
.ripples { display: flex; gap: 18px; justify-content: center; margin-top: 24px; }
.rp { width: min(24vw, 92px); aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 1px rgba(216, 191, 138, .6), 0 0 0 7px rgba(134, 195, 236, .12), 0 10px 20px rgba(0, 0, 0, .4); }

/* =========================================================
   婚纱篇：从清晨到月升的一天
   ========================================================= */
/* 各章配色取自照片：晨光玫瑰金 / 湖水松石绿 / 林间苔绿 / 绣球粉紫 */
[data-theme="white"] { --neb-a: rgba(245, 160, 175, .32); --neb-b: rgba(150, 120, 220, .3); --base-1: #2b1a45; --base-2: #140c24; --accent: #f4c9b6; --ph: linear-gradient(180deg, #3a2a66, #f0b9a8); }
[data-theme="black"] { --neb-a: rgba(80, 125, 88, .38); --neb-b: rgba(40, 62, 46, .5); --base-1: #0e1712; --base-2: #050806; --accent: #d9c79a; --ph: linear-gradient(180deg, #13201a, #4a5e46); }
[data-theme="pink"] { --neb-a: rgba(235, 140, 195, .4); --neb-b: rgba(170, 125, 225, .36); --base-1: #2c1233; --base-2: #150818; --accent: #f5b8d6; --ph: linear-gradient(180deg, #3e1840, #e2a2c8); }
[data-theme="blue"] { --neb-a: rgba(80, 205, 212, .34); --neb-b: rgba(95, 140, 230, .3); --base-1: #0c2233; --base-2: #06111c; --accent: #8fe3e6; --ph: linear-gradient(180deg, #0f2b3d, #6fd0d6); }
.album { --tone: var(--accent); }
.album::before, .album::after { content: ""; position: absolute; pointer-events: none; }
.time-tag {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin-bottom: 12px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-size: 18px;
  transform: rotate(-10deg);
}
.time-tag small { font-family: var(--en); font-size: 7.5px; letter-spacing: .2em; }
.diary { font-size: 14px; line-height: 2.1; white-space: pre-line; color: var(--muted); }
.bridge { margin-top: 10px; font-size: 13px; line-height: 1.9; letter-spacing: .12em; color: rgba(255, 255, 255, .85); }
.bg-word { position: absolute; z-index: 0; font-family: var(--script); font-size: 88px; line-height: 1; color: var(--accent); opacity: .1; white-space: nowrap; pointer-events: none; }

/* =========================================================
   序章：走进旅途前的心里话
   ========================================================= */
.prologue { --neb-a: rgba(150, 105, 220, .35); --neb-b: rgba(90, 120, 210, .28); justify-content: flex-end; align-items: center; padding: 0 0 60px; text-align: left; }
.pl-glow { position: absolute; left: 50%; top: 28%; width: 120vw; height: 60vh; transform: translateX(-50%); background: radial-gradient(ellipse at center, rgba(216,191,138,.12), transparent 65%); pointer-events: none; }
/* 照片占上部，两人完整可见；渐变过渡到下方深色文字区 */
.pl-bg { position: absolute; left: 0; right: 0; top: 0; height: 50%; z-index: 0; }
.pl-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 28% center; display: block; }
.pl-veil { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(10,8,28,.1) 0%, transparent 30%, rgba(10,8,28,.35) 50%, #100a22 66%, #100a22 100%); }
.pl-inner { position: relative; z-index: 2; width: min(88vw, 380px); }
.prologue .label { text-align: left; letter-spacing: .18em; }
.prologue h2 { margin: 10px 0 12px; font-family: var(--serif); font-size: 19px; font-weight: 400; letter-spacing: .08em; line-height: 1.5; color: #fff; }
.pl-text { font-family: var(--serif); font-size: 13px; line-height: 1.85; letter-spacing: .02em; color: rgba(255,255,255,.92); text-align: left; }

/* =========================================================
   婚纱篇：每组两个下滑页
   —— 主视觉页（ab-*）+ 拼接画廊页（gal-*）
   ========================================================= */
.ab-page, .gal-page { padding: 0; justify-content: center; }
.ab-stage { position: absolute; inset: 0; z-index: 0; }
.ab-hero { position: absolute; overflow: hidden; }
.ab-pic { width: 100%; height: 100%; }
.ab-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ab-cap { position: relative; z-index: 2; width: min(90vw, 400px); display: flex; flex-direction: column; align-items: center; }
.ab-cap .diary { max-width: 320px; }
.ab-row { display: flex; align-items: flex-start; gap: 16px; text-align: left; }
.ab-row .time-tag { flex: none; }

/* —— 主视觉页四组造型 —— */
/* 晨：满屏横幅，文字压在底部渐变上 */
/* 晨/暮满屏背景：文字集中在上方天空与山体区，下部人物与花海完全留白 */
.ab-white, .ab-pink { text-align: left; justify-content: flex-start; padding: 56px 0 70px; }
.ab-white .ab-hero.full, .ab-pink .ab-hero.full { inset: 0; }
.ab-white .ab-veil, .ab-pink .ab-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,8,28,.72) 0, rgba(14,8,28,.42) 22%, rgba(14,8,28,.12) 42%, rgba(14,8,28,0) 58%, rgba(14,8,28,.15) 82%, rgba(14,8,28,.55) 100%); }
.ab-white .ab-cap, .ab-pink .ab-cap { align-items: flex-start; padding: 0 28px; margin: 0 auto; width: min(90vw, 400px); }
.ab-white .ab-cap .label, .ab-pink .ab-cap .label { color: var(--accent); }
.ab-white .bridge, .ab-pink .bridge { font-size: 13px; line-height: 1.8; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
/* 日记紧接引子留在上方，时间章同行靠下，避开下方人物 */
.ab-diary-block { margin-top: 14px; }
.ab-white .diary, .ab-pink .diary { font-size: 13px; line-height: 1.8; color: rgba(255,255,255,.95); text-shadow: 0 1px 7px rgba(0,0,0,.75); }
.ab-time-row { margin-top: 10px; }
.ab-time-row .time-tag { width: 42px; height: 42px; font-size: 14px; }
/* 暮满屏背景里的花体水印 */
.ab-pink .bg-word { top: 30%; left: -8px; opacity: .08; }

/* 午：拱形画框居中，像一轮明月里的湖 */
.ab-blue .ab-hero.arch { left: 50%; top: 12%; width: min(74vw, 300px); height: min(74vw, 300px); transform: translateX(-50%); border-radius: 50% 50% 46% 46% / 56% 56% 44% 44%; box-shadow: 0 0 0 1px rgba(216,191,138,.5), 0 0 0 8px rgba(143,227,230,.1), 0 24px 50px rgba(0,0,0,.5); }
.ab-blue .ab-hero.arch::after { content: ""; position: absolute; inset: -18px; border: 1px dashed rgba(143,227,230,.35); border-radius: 50%; }
.ab-blue .ab-cap { margin-top: min(106vw, 445px); }
.ab-blue .bg-word { top: 3%; right: 2%; }
.ab-blue .diary { text-align: center; }
.ab-blue .time-tag { margin-top: 16px; }

/* 午后：竖幅照片靠左，竖排日记靠右 */
.ab-black .ab-hero.split { left: 6%; top: 14%; width: min(54vw, 220px); aspect-ratio: 7 / 11; height: auto; box-shadow: 0 0 0 1px rgba(216,191,138,.7), 0 20px 44px rgba(0,0,0,.6); border-radius: 4px; }
.ab-black .ab-hero.split img { object-fit: cover; }
.ab-black .ab-cap.side { position: absolute; right: 2%; top: 22%; width: min(30vw, 120px); align-items: flex-end; }
.ab-black .diary { writing-mode: vertical-rl; height: min(56vh, 400px); text-align: left; font-size: 14px; line-height: 2.2; letter-spacing: .25em; color: #e8e2d0; }
.ab-black .time-tag { margin-top: 18px; }
.ab-black::after { left: 0; right: 0; bottom: 0; height: 80px; background: conic-gradient(from 166deg at 50% 0, #030604 0deg 28deg, transparent 28deg) 0 100% / 42px 80px repeat-x, conic-gradient(from 165deg at 50% 0, #0d1a11 0deg 30deg, transparent 30deg) 16px 100% / 30px 56px repeat-x; }


/* —— 静态人像拼贴页：错落有致，留白与贴图交错 —— */
.col-page { justify-content: center; }
.collage { position: relative; width: min(92vw, 420px); height: min(80vh, 640px); margin: 0 auto; }
.col-fig { position: absolute; margin: 0; overflow: hidden; background: var(--ph); box-shadow: 0 14px 34px rgba(0,0,0,.5); cursor: zoom-in; }
.col-fig::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(216,191,138,.5); pointer-events: none; }
.col-fig img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; user-select: none; }
/* 可选背景图：铺在拼贴页下方作衬底 */
.col-bg { position: absolute; left: 0; right: 0; bottom: 6%; height: 46%; z-index: 0; overflow: hidden; border-radius: 4px; box-shadow: 0 14px 34px rgba(0,0,0,.5); }
.col-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,8,28,.1), rgba(14,8,28,.55)); }
.col-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.col-caption { position: absolute; bottom: 2%; left: 0; right: 0; z-index: 3; text-align: center; font-family: var(--serif); font-size: 17px; letter-spacing: .12em; color: #f3e3d0; text-shadow: 0 2px 8px rgba(0,0,0,.9); }

/* 晨（白纱）：顶部横幅主照，下方两幅金山竖照压在横幅底边（只盖住马腿与草地），人脸均不被遮挡 */
/* 晨/午/午后/暮：统一 9:16 画布，子图用百分比定位，3:4 竖图宽 a% 对应高 0.75a% */
.collage-white, .collage-blue, .collage-black, .collage-pink { --cw: min(98vw, 460px, 50vh); width: var(--cw); height: calc(var(--cw) * 16 / 9); }
.collage-white .col-2 { left: 0; top: 0; width: 100%; height: 37.5%; z-index: 1; }
.collage-white .col-2 img { object-position: 60% 30%; }
.collage-white .col-1 { left: 0; top: 34%; width: 52%; height: 46%; transform: rotate(-2deg); z-index: 2; }
.collage-white .col-1 img { object-position: 50% 5%; }
.collage-white .col-3 { right: 0; top: 37%; width: 50%; height: 46%; transform: rotate(2deg); z-index: 3; }
.collage-white .col-3 img { object-position: 50% 50%; }
.collage-white .col-caption { bottom: 1%; font-size: 18px; }
/* 午（蓝纱）：拱形主照在左、新娘单人照在右，下方大幅方照压住两张的裙摆 */
.collage-blue .col-1 { left: 0; top: 1%; width: 62%; height: 46.5%; transform: rotate(-2deg); border-radius: 999px 999px 6px 6px; z-index: 1; }
.collage-blue .col-2 { right: 0; top: 6%; width: 48%; height: 36%; transform: rotate(2.5deg); z-index: 2; }
.collage-blue .col-3 { left: 8%; top: 40%; width: 84%; height: 46%; transform: rotate(1.5deg); z-index: 3; }
.collage-blue .col-3 img { object-position: 50% 30%; }
/* 午后（黑纱）：四张错落叠压——闭眼拥持大片在左上，立林单人照在右上，下排两张压住上排底边 */
.collage-black .col-3 { left: 0; top: 0; width: 60%; height: 45%; transform: rotate(-2deg); z-index: 1; }
.collage-black .col-1 { right: 0; top: 7%; width: 44%; height: 33%; transform: rotate(3deg); z-index: 2; }
.collage-black .col-4 { right: 0; top: 38%; width: 58%; height: 43.5%; transform: rotate(2deg); z-index: 3; }
.collage-black .col-2 { left: 1%; top: 42%; width: 44%; height: 33%; transform: rotate(-3deg); z-index: 4; }
.collage-black .col-caption { bottom: 1%; }
/* 暮（粉黛）：双人主照在左上，花冠拱形特写压在右侧绣球花上，下方大幅自拍压住裙摆 */
.collage-pink .col-2 { left: 0; top: 1%; width: 62%; height: 46.5%; transform: rotate(-2deg); z-index: 1; }
.collage-pink .col-1 { right: 0; top: 5%; width: 50%; height: 37.5%; transform: rotate(2deg); border-radius: 999px 999px 6px 6px; z-index: 2; }
.collage-pink .col-3 { left: 7%; top: 40%; width: 86%; height: 46%; transform: rotate(1.5deg); z-index: 3; }
.collage-pink .col-3 img { object-position: 50% 25%; }
.collage-pink .col-caption { bottom: 1%; }
/* 祁连首张拍立得：牵手奔跑的竖图裁成方形，保留两人身影 */
.pol.p0 .photo img { object-position: 50% 85%; }

/* =========================================================
   婚礼信息 / 回执 / 结尾
   ========================================================= */
.info { --neb-a: rgba(150, 100, 235, .5); }
.calendar { width: min(80vw, 300px); margin-bottom: 18px; padding: 14px 14px 10px; border: 1px solid rgba(216, 191, 138, .35); border-radius: 4px; background: rgba(255, 255, 255, .06); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cal-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid rgba(216, 191, 138, .25); }
.cal-head b { font-size: 16px; font-weight: 400; letter-spacing: .15em; color: #fff; }
.cal-head span { font-family: var(--en); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; font-size: 12px; }
.cal-grid span { position: relative; height: 26px; line-height: 26px; color: var(--muted); }
.cal-grid .wk { color: var(--gold); opacity: .8; }
.cal-grid .day { z-index: 0; color: #2a1748; font-weight: 700; }
.cal-grid .day::before { content: ""; position: absolute; left: 50%; top: 50%; z-index: -1; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fbefd0, #d8bf8a 55%, #b8924f); }
.info dl { display: grid; grid-template-columns: auto 1fr; gap: 12px 14px; width: min(80vw, 300px); margin-bottom: 18px; font-size: 14px; text-align: left; }
.info dt { color: var(--gold); letter-spacing: .2em; }
.info dd { color: #fff; line-height: 1.6; }
.countdown { display: flex; gap: 10px; justify-content: center; margin-bottom: 20px; }
.countdown div { width: 58px; padding: 7px 0; border: 1px solid rgba(216, 191, 138, .3); border-radius: 3px; background: rgba(255, 255, 255, .05); }
.countdown b { display: block; font-family: var(--en); font-size: 22px; font-weight: 400; color: #fff; }
.countdown small { font-size: 10px; color: var(--gold); }
.countdown p { font-size: 15px; letter-spacing: .2em; color: var(--gold); }
.btn { display: inline-block; padding: 11px 36px; border: none; border-radius: 2px; background: linear-gradient(135deg, #f4e3b8, #c9a35f); color: #2a1748; font-size: 14px; letter-spacing: .3em; text-decoration: none; box-shadow: 0 8px 24px rgba(0, 0, 0, .4), 0 0 20px rgba(216, 191, 138, .25); cursor: pointer; }

.card { width: min(88vw, 360px); padding: 30px 22px 20px; border: 1px solid rgba(216, 191, 138, .4); background: rgba(255, 255, 255, .06); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
#rsvp-form { display: flex; flex-direction: column; gap: 12px; }
#rsvp-form input[name="name"], #rsvp-form select, #rsvp-form textarea { padding: 12px 14px; border: 1px solid rgba(216, 191, 138, .3); border-radius: 2px; background: rgba(255, 255, 255, .06); color: #fff; font-size: 15px; -webkit-appearance: none; appearance: none; }
#rsvp-form ::placeholder { color: rgba(233, 225, 255, .45); }
#rsvp-form option { color: #2a1748; }
#rsvp-form textarea { min-height: 84px; resize: vertical; }
.seg { display: flex; gap: 10px; }
.seg label { flex: 1; position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 11px 0; border: 1px solid rgba(216, 191, 138, .3); border-radius: 2px; color: var(--muted); transition: all .25s; }
.seg input:checked + span { border-color: var(--gold); background: linear-gradient(135deg, #f4e3b8, #c9a35f); color: #2a1748; }
.form-msg { min-height: 20px; font-size: 13px; color: var(--gold); }

.finale { --neb-a: rgba(160, 110, 240, .55); --neb-b: rgba(80, 110, 230, .35); justify-content: flex-end; padding-bottom: 64px; }
.finale-photo { position: absolute; inset: 0; z-index: 0; }
.finale-photo .photo { border-radius: 0; }
.finale-photo img { cursor: default; object-position: center 35%; }
.finale-veil { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(14, 10, 40, .55) 0, rgba(18, 12, 48, .35) 30%, rgba(16, 10, 40, .82) 62%, rgba(12, 8, 30, .95) 100%); }
.finale-text { margin: 6px 0 26px; font-size: 14px; line-height: 2.2; white-space: pre-line; color: var(--muted); }
.finale .names { font-size: 22px; letter-spacing: .25em; color: #fff; }
.finale .date { margin-top: 8px; font-family: var(--en); font-size: 12px; letter-spacing: .35em; color: var(--gold); }
.xi { position: absolute; top: 46%; left: 50%; font-size: 260px; line-height: 1; color: rgba(216, 191, 138, .06); transform: translate(-50%, -50%); pointer-events: none; }
.credit { position: absolute; bottom: 18px; left: 0; right: 0; font-size: 10px; letter-spacing: .1em; color: rgba(233, 225, 255, .35); }

/* =========================================================
   装饰：水晶紫蝶 / 星尘
   ========================================================= */
.butterflies { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.bf { position: absolute; left: var(--x); top: var(--y); animation: drift var(--d, 9s) ease-in-out var(--delay, 0s) infinite alternate; }
.bf-body { position: relative; display: block; width: 30px; height: 24px; perspective: 120px; transform: rotate(var(--r, -15deg)) scale(var(--s, 1)); filter: drop-shadow(0 0 5px rgba(220, 200, 255, .9)) drop-shadow(0 0 14px rgba(150, 110, 255, .7)); }
.bf-body i { position: absolute; top: 0; width: 50%; height: 100%; background: radial-gradient(circle at 60% 40%, #fff 0 10%, #dccbff 28%, #9d7bf2 60%, rgba(110, 70, 220, .55) 88%); }
.bf-body i:first-child { left: 0; border-radius: 80% 20% 30% 70% / 70% 30% 70% 30%; transform-origin: 100% 50%; animation: flapL var(--f, .3s) ease-in-out infinite alternate; }
.bf-body i:last-child { right: 0; border-radius: 20% 80% 70% 30% / 30% 70% 30% 70%; transform-origin: 0 50%; animation: flapR var(--f, .3s) ease-in-out infinite alternate; }
.sparkles { position: fixed; inset: 0; z-index: 20; overflow: hidden; pointer-events: none; }
.spark { position: absolute; bottom: -10px; left: var(--x); width: var(--w); height: var(--w); border-radius: 50%; background: #fff; box-shadow: 0 0 6px 2px rgba(200, 180, 255, .8); opacity: 0; animation: rise var(--d) linear var(--delay) infinite; }

/* 音乐按钮 */
.music-btn { position: fixed; top: 14px; right: 14px; z-index: 60; width: 36px; height: 36px; border: 1px solid rgba(216, 191, 138, .7); border-radius: 50%; background: rgba(20, 11, 38, .55); color: var(--gold); font-size: 16px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.music-btn .note { display: inline-block; font-style: normal; }
.music-btn.playing .note { animation: spin 4s linear infinite; }
.music-tip { position: absolute; right: 44px; top: 50%; padding: 5px 10px; border: 1px solid rgba(216, 191, 138, .5); border-radius: 12px; background: rgba(20, 11, 38, .8); color: var(--gold); font-size: 11px; letter-spacing: .1em; white-space: nowrap; opacity: 0; pointer-events: none; transform: translateY(-50%); transition: opacity .4s; }
.music-btn.need-tap .music-tip { opacity: 1; animation: breath 2s ease-in-out infinite; }

.lightbox { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; background: rgba(10, 6, 20, .94); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 94vw; max-height: 88vh; box-shadow: 0 0 0 1px rgba(216, 191, 138, .5); }

/* =========================================================
   动画
   ========================================================= */
@keyframes flapOpen {
  0% { transform: rotateX(0); filter: brightness(1); }
  50% { filter: brightness(.7); }
  100% { transform: rotateX(180deg); filter: brightness(.95); }
}
@keyframes linerIn { 0%, 49% { opacity: 0; } 51%, 100% { opacity: 1; } }
@keyframes sealPulse { 50% { transform: scale(1.05); } }
@keyframes breath { 50% { opacity: .4; } }
@keyframes hint { 50% { transform: translateY(-8px) rotate(45deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes flapL { to { transform: rotateY(70deg); } }
@keyframes flapR { to { transform: rotateY(-70deg); } }
@keyframes drift { 0% { transform: translate(0, 0); } 33% { transform: translate(40px, -50px); } 66% { transform: translate(-20px, -90px); } 100% { transform: translate(30px, -130px); } }
@keyframes rise { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: .9; } 85% { opacity: .5; } 100% { transform: translate(24px, -105vh); opacity: 0; } }
@keyframes snow { to { background-position: 40px 640px, 20px 640px, -30px 640px, 10px 640px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01s !important; animation-iteration-count: 1 !important; transition-duration: .01s !important; }
}
