/* ===================================================
   许超 & 程昱 · 数字婚礼邀请函
   Design: French Vintage / Châteaux Style
   法式复古 · 经典庄园 · 高级克制
   =================================================== */

:root {
  /* 色彩 — 法式复古体系 */
  --color-cream: #FAF9F6;
  --color-charcoal: #2C2C2C;
  --color-accent-gold: #D4AF37;
  --color-accent-burgundy: #800020;

  /* 中性层级由 Charcoal 派生，不引入额外品牌色 */
  --color-muted: rgba(44, 44, 44, 0.52);
  --color-hairline: rgba(44, 44, 44, 0.14);

  /* 浅色 hairline 预留给后续深色底章节 */
  --color-hairline-light: rgba(250, 249, 246, 0.42);

  /* 信封折痕：比 hairline 更淡，只暗示纸张交叠 */
  --color-crease: rgba(44, 44, 44, 0.1);
  --color-crease-highlight: rgba(255, 255, 255, 0.62);

  /* 字体 — 本地西文 + 请柬中文子集，不走 Google */
  --font-display: 'Playfair Display', 'Noto Serif SC', 'Songti SC', 'STSong', serif;
  --font-numeral: 'Cormorant Garamond', 'Playfair Display', 'Noto Serif SC', Georgia, serif;
  --font-body: 'Jost', 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  --font-script: 'Great Vibes', 'Snell Roundhand', 'Palatino Linotype', cursive;

  /* 字间距 — 大标题 0.2em–0.5em */
  --tracking-display: 0.42em;
  --tracking-title: 0.24em;
  --tracking-label: 0.3em;
  --tracking-body: 0.08em;

  --ease-out: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-fold: cubic-bezier(0.22, 0.08, 0.18, 1);
  --duration-normal: 600ms;
  --duration-slow: 800ms;
  --duration-open: 920ms;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

html,
body {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

html,
body,
#app {
  height: 100%;
}

#app {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
}

/* 启缄前锁在封面；启缄后纵向展开后续章节 */
body:not(.is-envelope-opened) {
  overflow: hidden;
}

body.is-envelope-opened {
  height: auto;
  overflow-y: auto;
  background: #12110f;
}

body.is-envelope-opened #app {
  height: auto;
}

html:has(body.is-envelope-opened) {
  height: auto;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  letter-spacing: var(--tracking-body);
  color: var(--color-charcoal);
  background: #12110f;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* 背景乐开关：角落文字符，避开封面 pointer-events: none */
.audio-toggle {
  position: fixed;
  top: calc(14px + var(--safe-top));
  right: 16px;
  z-index: 20;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--color-charcoal);
  opacity: 0.45;
  pointer-events: auto;
  touch-action: manipulation;
}

.audio-toggle[hidden] {
  display: none;
}

.audio-toggle__mark {
  font-family: var(--font-display);
  font-size: 16px;
  font-style: italic;
  line-height: 1;
  letter-spacing: 0;
}

.audio-toggle.is-muted {
  opacity: 0.28;
}

.audio-toggle.is-muted .audio-toggle__mark {
  position: relative;
}

.audio-toggle.is-muted .audio-toggle__mark::after {
  content: '';
  position: absolute;
  left: -3px;
  right: -3px;
  top: 50%;
  height: 1px;
  background: var(--color-charcoal);
  transform: rotate(-28deg);
}

body.is-lightbox-open .audio-toggle {
  visibility: hidden;
  pointer-events: none;
}

/* ===================================================
   01 Cover · 序章·叩门
   未拆封的实体法式信封：深 V 翻盖 + 尖端火漆印
   =================================================== */

.cover,
.cover-section {
  --flap-inset: 0px;
  --flap-top: 0px;
  --flap-depth: 33vh;
  --flap-depth: 33dvh;
  --flap-angle: 50deg;
  --flap-angle: atan(calc(var(--flap-depth) / 50vw));
  --flap-fill: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(245, 242, 238, 0.15) 100%);
  --flap-cast: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.25));
  position: fixed;
  inset: 0;
  z-index: 8;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: transparent;
  container-type: inline-size;
  perspective: 1600px;
  perspective-origin: 50% 0;
}

/* 喷泉合影底层：裁去左侧多余植株，让牵手两人落在画面中轴 */
.cover-bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/photos/8f74bb834f0c7aec01ec0801fd4d3293.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 72% 46%;
  pointer-events: none;
  transition: filter 720ms 280ms var(--ease-out), opacity 720ms 280ms var(--ease-out);
}

.cover-bg-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.28);
  background-image: radial-gradient(ellipse at 50% 42%, transparent 40%, rgba(0, 0, 0, 0.28) 100%);
  pointer-events: none;
}

/* 半透明磨砂信封：奶油白透出底层合影
   毛玻璃放在伪元素上，避免 backdrop-filter 压扁 V 盖的 3D 翻转 */
.envelope-wrapper {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 1600px;
  perspective-origin: 50% 0;
  transition: opacity 780ms 380ms var(--ease-out);
}

/* 300g 棉纸：径向噪点网格 + 纤维颗粒 */
.paper-texture {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(44, 44, 44, 0.055) 0.55px, transparent 0.65px),
    radial-gradient(circle, rgba(44, 44, 44, 0.03) 0.45px, transparent 0.55px),
    radial-gradient(circle, rgba(250, 249, 246, 0.55) 0.4px, transparent 0.55px);
  background-size: 3px 3px, 5px 5px, 4px 4px;
  background-position: 0 0, 1.5px 1.5px, 0.8px 2.2px;
  mix-blend-mode: multiply;
  opacity: 0.28;
  transition: opacity 700ms 640ms var(--ease-out);
}

.paper-texture::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.4;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='f' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ── 法式压花暗纹：对角枝蔓，无色凹凸压印 ── */

.cover__emboss {
  position: absolute;
  z-index: 1;
  width: 108px;
  height: 108px;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 180' fill='none' stroke='%232C2C2C' stroke-width='1.05' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 14c38 4 68 36 70 76 2 34-22 62-52 56-22-4-26-32-4-38 20-6 42 12 38 34-4 24-30 38-52 28'/%3E%3Cpath d='M84 90c22-14 50-8 60 16 9 22-6 44-28 44-16 0-26-14-18-26 8-12 28-8 30 6'/%3E%3Cpath d='M50 40c18-18 50-20 64 2 12 18 2 40-18 36-16-3-20-22-6-28 10-5 22 4 18 14'/%3E%3Cpath d='M14 14c8 36 6 72-2 98'/%3E%3C/svg%3E");
  opacity: 0.08;
  mix-blend-mode: multiply;
  transition: opacity 700ms 640ms var(--ease-out);
  filter:
    drop-shadow(0.7px 0.9px 0 rgba(255, 255, 255, 0.95))
    drop-shadow(-0.5px -0.4px 0 rgba(44, 44, 44, 0.12));
  -webkit-mask-image: linear-gradient(135deg, #000 28%, transparent 72%);
          mask-image: linear-gradient(135deg, #000 28%, transparent 72%);
}

.cover__emboss--tl {
  top: 18px;
  left: 14px;
}

.cover__emboss--br {
  right: 10px;
  bottom: 36px;
  transform: rotate(180deg);
}

/* ── 信纸层（翻盖之下）── */

.cover__sheet {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  transition: opacity 700ms 640ms var(--ease-out);
}

/* ── 信封 V 型翻盖：透光棉纸 + 物理压缝 ──
   矩形 .envelope-flap 不能铺底色（否则盖住两侧人像）。
   霜面在 .cover__flap-plane；外投阴影在 ::before。
   二者都 clip 成 V，火漆印作为兄弟节点悬在尖端外。 */

.envelope-flap {
  position: absolute;
  top: var(--flap-top);
  left: var(--flap-inset);
  right: var(--flap-inset);
  width: 100%;
  height: 33%;
  height: var(--flap-depth);
  z-index: 5;
  pointer-events: none;
  background: transparent;
  transform-origin: top center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition:
    transform var(--duration-open) 180ms var(--ease-fold),
    opacity 720ms 420ms var(--ease-out);
}

.envelope-flap::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: rgba(28, 22, 18, 0.12);
  filter:
    var(--flap-cast)
    drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2))
    drop-shadow(0 1px 0 rgba(0, 0, 0, 0.18));
  pointer-events: none;
}

.cover__flap-plane {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: var(--flap-fill);
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.8),
    inset 0 -2px 5px rgba(0, 0, 0, 0.15);
}

.cover__flap-plane::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, transparent 22%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, transparent 58%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  pointer-events: none;
}

.cover__flap-crease {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.cover__flap-crease::before,
.cover__flap-crease::after {
  content: '';
  position: absolute;
  top: 0;
  width: calc(50% / cos(var(--flap-angle)));
  height: 1px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow:
    0 -1px 0 rgba(255, 255, 255, 0.8),
    0 1px 0 rgba(0, 0, 0, 0.38),
    0 3px 0 rgba(0, 0, 0, 0.08),
    0 10px 18px rgba(0, 0, 0, 0.22);
}

.cover__flap-crease::before {
  left: 0;
  transform-origin: left center;
  transform: rotate(var(--flap-angle));
}

.cover__flap-crease::after {
  right: 0;
  transform-origin: right center;
  transform: rotate(calc(var(--flap-angle) * -1));
}

/* ── French Boiserie 双线框：外粗内细，间隔 4px ── */

.cover__frame {
  position: absolute;
  inset: 10px;
  z-index: 4;
  pointer-events: none;
  border: 1px solid var(--color-hairline-light);
  transition: opacity 600ms 700ms var(--ease-out);
}

.cover__frame::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(250, 249, 246, 0.22);
}

.cover__corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 0 solid var(--color-hairline-light);
}

.cover__corner--tl {
  top: 8px;
  left: 8px;
  border-top-width: 1px;
  border-left-width: 1px;
}

.cover__corner--tr {
  top: 8px;
  right: 8px;
  border-top-width: 1px;
  border-right-width: 1px;
}

.cover__corner--bl {
  bottom: 8px;
  left: 8px;
  border-bottom-width: 1px;
  border-left-width: 1px;
}

.cover__corner--br {
  bottom: 8px;
  right: 8px;
  border-bottom-width: 1px;
  border-right-width: 1px;
}

/* ── 信纸排版：姓名落在火漆印下方 ── */

.cover-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  margin: 0;
  padding:
    calc(var(--flap-depth) + 94px)
    24px
    calc(20px + var(--safe-bottom));
  text-align: center;
  color: var(--color-cream);
}

.cover__lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 20.5rem;
  margin: 0 auto;
}

.cover__eyebrow {
  position: absolute;
  top: calc(18px + var(--safe-top));
  left: 0;
  right: 0;
  z-index: 3;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--color-cream);
  padding-left: 0.42em;
  text-align: center;
  pointer-events: none;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.handwriting-greeting {
  margin: 0 0 20px;
  font-family: var(--font-script);
  font-size: 24px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.4;
  letter-spacing: 0.06em;
  color: rgba(250, 249, 246, 0.94);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.cover__couple {
  display: flex;
  align-items: baseline;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.46em;
  color: var(--color-cream);
  padding-left: 0.46em;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.4);
}

.cover__amp {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  letter-spacing: 0;
  color: var(--color-cream);
  margin: 0 0.5em 0 0.08em;
}

.cover__rule {
  display: block;
  width: 22px;
  height: 1px;
  margin: 20px 0 18px;
  background: rgba(250, 249, 246, 0.45);
}

.cover__date {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.32em;
  color: var(--color-cream);
  padding-left: 0.32em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

.cover__hour {
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.28em;
  color: rgba(250, 249, 246, 0.72);
  padding-left: 0.28em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

.cover__venue {
  margin-top: 16px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.38em;
  color: var(--color-cream);
  padding-left: 0.38em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

.venue-sub {
  margin-top: 18px;
  max-width: 18em;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.7;
  letter-spacing: 0.14em;
  color: rgba(250, 249, 246, 0.72);
  padding-left: 0.14em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

/* ── 火漆印：钉在 V 折尖端 ── */

.wax-seal {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 0;
  transform: translate(-50%, 48%);
  pointer-events: auto;
  touch-action: manipulation;
}

.wax-seal:focus-visible {
  outline: none;
}

.wax-seal:focus-visible .cover__seal-wax {
  box-shadow:
    0 8px 20px rgba(60, 10, 12, 0.55),
    inset 0 3px 6px rgba(255, 255, 255, 0.35),
    inset 0 -3px 6px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(128, 0, 32, 0.35);
}

.cover__seal-wax {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background:
    radial-gradient(circle at 32% 28%, rgba(250, 249, 246, 0.32), transparent 42%),
    radial-gradient(circle at 68% 78%, rgba(40, 0, 10, 0.48), transparent 52%),
    var(--color-accent-burgundy);
  border-radius: 47% 53% 49% 51% / 52% 46% 54% 48%;
  box-shadow:
    0 8px 20px rgba(60, 10, 12, 0.5),
    inset 0 3px 6px rgba(255, 255, 255, 0.3),
    inset 0 -3px 6px rgba(0, 0, 0, 0.5);
  transition: transform 280ms var(--ease-out);
}

.cover__seal-wax::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(250, 249, 246, 0.4);
  border-radius: 46% 54% 48% 52% / 50% 47% 53% 50%;
}

.cover__seal-wax::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 49% 51% 46% 54% / 47% 53% 48% 52%;
  box-shadow: inset 0 0 0 1px rgba(90, 0, 20, 0.18);
  pointer-events: none;
}

.wax-seal:hover .cover__seal-wax,
.wax-seal:focus-visible .cover__seal-wax {
  transform: scale(1.05);
}

.wax-seal:active .cover__seal-wax {
  transform: scale(0.9);
}

.cover__seal-monogram {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  color: var(--color-cream);
}

.cover__seal-monogram i {
  font-style: italic;
  font-size: 7px;
  vertical-align: 2px;
  margin: 0 0.5px;
  opacity: 0.85;
}

.cover__seal-hint {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  width: max-content;
  max-width: calc(100vw - 32px);
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.08em;
  color: #fff8eb;
  padding: 8px 16px;
  border: 1px solid rgba(255, 248, 235, 0.4);
  border-radius: 24px;
  background: rgba(24, 31, 25, 0.72);
  pointer-events: auto;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

/* ── 启缄：火漆按压 → 翻盖掀起并淡出 ── */

body.is-envelope-opened .cover {
  pointer-events: none;
}

body.is-envelope-opened .cover__seal-wax {
  transform: scale(0.88);
}

body.is-envelope-opened .envelope-flap {
  transform: rotateX(180deg);
  opacity: 0;
}

body.is-envelope-opened .envelope-wrapper {
  opacity: 0;
}

body.is-envelope-opened .cover-bg-image {
  filter: none;
}

body.is-envelope-opened .audio-toggle {
  color: var(--color-cream);
}

.cover.is-open {
  height: 0;
  min-height: 0;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  overflow: hidden;
  z-index: -1;
  transition:
    opacity 480ms var(--ease-out),
    visibility 0s 480ms;
}

@media (prefers-reduced-motion: reduce) {
  .cover__seal-wax,
  .envelope-flap,
  .envelope-wrapper,
  .cover-bg-image,
  .cover.is-open {
    transition: none;
  }

  body.is-envelope-opened .envelope-flap {
    transform: none;
  }

  body.is-envelope-opened .envelope-wrapper,
  body.is-envelope-opened .cover {
    opacity: 0;
  }

  .cover.is-open {
    height: 0;
    min-height: 0;
  }
}

/* ── 小屏防呆：667px 高度以下收紧纵向节奏 ── */

@media (max-height: 680px) {
  .cover,
  .cover-section {
    --flap-depth: 30vh;
    --flap-depth: 30dvh;
  }

  .cover-content {
    padding-top: calc(var(--flap-depth) + 94px);
    padding-bottom: calc(18px + var(--safe-bottom));
  }

  .cover__eyebrow {
    top: calc(14px + var(--safe-top));
  }

  .handwriting-greeting {
    margin-bottom: 16px;
    font-size: 20px;
  }

  .cover__rule {
    margin: 16px 0;
  }

  .cover__venue {
    margin-top: 10px;
  }

  .venue-sub {
    margin-top: 10px;
    font-size: 8px;
  }

  .cover__emboss {
    width: 96px;
    height: 96px;
    opacity: 0.07;
  }
}

/* ===================================================
   02 Couple · 新人介绍（阶段 2 占位）
   =================================================== */

.couple {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  background: transparent;
  pointer-events: none;
}

body.is-envelope-opened .couple {
  opacity: 0;
  visibility: hidden;
}

.couple__mark {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: var(--tracking-display);
  color: var(--color-cream);
  padding-left: var(--tracking-display);
  opacity: 0.28;
}

/* ===================================================
   全局暗调流光 — 封面合影延展为沉浸底
   =================================================== */

.lumen {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #12110f;
}

.lumen__bloom {
  position: absolute;
  inset: -18%;
  background-image: url('../assets/photos/8f74bb834f0c7aec01ec0801fd4d3293.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 72% 46%;
  filter: blur(36px) saturate(0.62) brightness(0.38);
  transform: scale(1.12);
  opacity: 0.9;
  animation: lumen-drift 42s ease-in-out infinite alternate;
}

.lumen__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 18% 8%, rgba(212, 175, 55, 0.09), transparent 42%),
    radial-gradient(ellipse at 88% 72%, rgba(250, 249, 246, 0.07), transparent 46%),
    radial-gradient(ellipse at 50% 100%, rgba(8, 7, 6, 0.72), transparent 52%),
    linear-gradient(180deg, rgba(12, 11, 10, 0.28), rgba(12, 11, 10, 0.62));
  animation: lumen-glow 22s ease-in-out infinite alternate;
}

.lumen__grain {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image:
    radial-gradient(circle, rgba(250, 249, 246, 0.35) 0.5px, transparent 0.65px),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' 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");
  background-size: 3px 3px, 180px 180px;
}

@keyframes lumen-drift {
  from { transform: scale(1.12) translate3d(-1.4%, -0.8%, 0); }
  to { transform: scale(1.18) translate3d(1.6%, 1.1%, 0); }
}

@keyframes lumen-glow {
  from { opacity: 0.82; }
  to { opacity: 1; }
}

@keyframes story-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lumen__bloom,
  .lumen__glow {
    animation: none;
  }
}

/* ===================================================
   02 Our Story · 图文交错杂志时间线
   =================================================== */

.chapter--story {
  --color-hairline: var(--color-hairline-light);
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 88px 20px calc(72px + var(--safe-bottom));
  color: var(--color-cream);
  background: transparent;
  opacity: 0;
}

.chapter--story.is-revealed {
  opacity: 1;
  transition: opacity 720ms var(--ease-out);
}

#story .section-title {
  margin: 0 0 64px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: var(--tracking-display);
  text-align: center;
  text-transform: uppercase;
  color: var(--color-cream);
  padding-left: var(--tracking-display);
}

.timeline {
  position: relative;
  list-style: none;
  max-width: 348px;
  margin: 0 auto;
  padding: 8px 0 28px;
}

.timeline::before,
.timeline::after {
  content: none;
  display: none !important;
}

.timeline__node {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 18px;
  align-items: start;
  width: 100%;
  margin: 0;
  padding: 0 0 64px;
}

.timeline__node:last-child {
  padding-bottom: 12px;
}

.timeline__node::after {
  content: '';
  position: absolute;
  top: 1.15em;
  left: 50%;
  z-index: 1;
  width: 11px;
  height: 1px;
  background: var(--color-hairline);
  transform: translateX(-50%);
}

.timeline__node--wedding::after {
  width: 18px;
  background: var(--color-accent-gold);
}

.timeline__copy {
  position: relative;
  z-index: 1;
  padding: 6px 12px 0 0;
  text-align: right;
}

.timeline__node:nth-child(even) .timeline__copy {
  order: 2;
  padding: 6px 0 0 12px;
  text-align: left;
}

.timeline__date {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.28em;
  color: var(--color-cream);
}

.timeline__en {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
  letter-spacing: 0.14em;
  color: var(--color-cream);
}

.timeline__zh {
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 300;
  line-height: 1.85;
  letter-spacing: 0.12em;
  color: rgba(250, 249, 246, 0.62);
}

.timeline__frame {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 168px;
  margin: 0;
  justify-self: start;
  padding: 5px;
  border: 1px solid var(--color-hairline);
  background: #141310;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
}

.timeline__node:nth-child(even) .timeline__frame {
  order: 1;
  justify-self: end;
}

.timeline__frame::before {
  content: '';
  position: absolute;
  inset: 8px;
  z-index: 1;
  border: 1px solid rgba(250, 249, 246, 0.22);
  pointer-events: none;
}

.timeline__frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: 50% 50%;
  filter: saturate(0.88) contrast(1.04) brightness(0.92);
}

.timeline__node--stack {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline__node--stack .timeline__copy,
.timeline__node--stack.timeline__node:nth-child(even) .timeline__copy {
  order: 0;
  width: 100%;
  padding: 6px 12px 16px;
  text-align: center;
}

.timeline__node--stack .timeline__frame,
.timeline__node--stack.timeline__node:nth-child(even) .timeline__frame {
  order: 0;
  justify-self: center;
}

.timeline__frame--landscape {
  width: min(100%, 280px);
  max-width: 280px;
}

.timeline__node--stack .timeline__date,
#story-10-04 .timeline__date {
  margin-bottom: 18px;
}

.timeline__node--stack .timeline__en,
#story-10-04 .timeline__en {
  margin-top: 0;
}

.chapter--story.is-revealed .timeline__node {
  animation: story-in 700ms var(--ease-out) both;
}

.chapter--story.is-revealed .timeline__node:nth-child(1) { animation-delay: 60ms; }
.chapter--story.is-revealed .timeline__node:nth-child(2) { animation-delay: 140ms; }
.chapter--story.is-revealed .timeline__node:nth-child(3) { animation-delay: 220ms; }
.chapter--story.is-revealed .timeline__node:nth-child(4) { animation-delay: 300ms; }
.chapter--story.is-revealed .timeline__node:nth-child(5) { animation-delay: 380ms; }

.chapter--story.is-revealed .countdown {
  animation: story-in 800ms var(--ease-out) 520ms both;
}

@media (prefers-reduced-motion: reduce) {
  .chapter--story,
  .chapter--story.is-revealed .timeline__node,
  .chapter--story.is-revealed .countdown {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }
}

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

/* ===================================================
   03 Countdown · 倒计时与大日子闭环
   =================================================== */

.countdown {
  position: relative;
  max-width: 340px;
  margin: 96px auto 0;
  padding: 8px 0 0;
  color: var(--color-cream);
}

.countdown::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  margin: 0 0 36px;
  background: var(--color-hairline-light);
}

.countdown__kicker {
  margin: 0 0 10px;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: var(--tracking-display);
  text-transform: uppercase;
  color: rgba(250, 249, 246, 0.58);
  padding-left: var(--tracking-display);
}

.countdown__verse {
  margin: 0 0 32px;
  max-width: 14em;
  font-family: var(--font-script);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: rgba(250, 249, 246, 0.82);
}

.countdown__panel {
  position: relative;
  padding: 28px 16px 24px;
  border: 1px solid var(--color-hairline-light);
}

.countdown__panel::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(250, 249, 246, 0.18);
  pointer-events: none;
}

.countdown__corner {
  position: absolute;
  z-index: 1;
  width: 12px;
  height: 12px;
  border: 0 solid rgba(250, 249, 246, 0.48);
  pointer-events: none;
}

.countdown__corner--tl {
  top: 10px;
  left: 10px;
  border-top-width: 1px;
  border-left-width: 1px;
}

.countdown__corner--tr {
  top: 10px;
  right: 10px;
  border-top-width: 1px;
  border-right-width: 1px;
}

.countdown__corner--bl {
  bottom: 10px;
  left: 10px;
  border-bottom-width: 1px;
  border-left-width: 1px;
}

.countdown__corner--br {
  bottom: 10px;
  right: 10px;
  border-bottom-width: 1px;
  border-right-width: 1px;
}

.countdown__clock {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 0;
  align-items: start;
}

.countdown__unit {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 0 4px;
}

.countdown__unit + .countdown__unit::before {
  content: '';
  position: absolute;
  top: 0.42em;
  left: 0;
  width: 1px;
  height: 1.15em;
  background: rgba(250, 249, 246, 0.18);
}

.countdown__value {
  display: block;
  font-family: var(--font-numeral);
  font-size: 40px;
  font-weight: 400;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--color-cream);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22),
    0 10px 22px rgba(0, 0, 0, 0.42),
    0 0 26px rgba(250, 249, 246, 0.16);
}

.countdown__label {
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(250, 249, 246, 0.42);
  padding-left: 0.28em;
}

.countdown__date {
  margin: 36px 0 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.36em;
  text-align: center;
  color: var(--color-cream);
  padding-left: 0.36em;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.16),
    0 12px 28px rgba(0, 0, 0, 0.38),
    0 0 32px rgba(250, 249, 246, 0.14);
}

.countdown__epilogue {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.18em;
  text-align: center;
  color: rgba(250, 249, 246, 0.52);
  padding-left: 0.18em;
}

.countdown__monogram {
  margin: 28px auto 0;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-align: center;
  color: rgba(212, 175, 55, 0.72);
  padding-left: 0.22em;
}

.countdown__monogram i {
  font-style: italic;
  font-size: 9px;
  margin: 0 0.15em;
  opacity: 0.8;
}

@media (max-width: 359px) {
  .countdown__value {
    font-size: 32px;
  }

  .countdown__date {
    font-size: 22px;
  }
}

/* ===================================================
   04 Gallery · 独立影像相片簿
   =================================================== */

.chapter--gallery {
  --color-hairline: var(--color-hairline-light);
  --gallery-card-w: min(72vw, 286px);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 80px 24px calc(64px + var(--safe-bottom));
  color: var(--color-cream);
  background: transparent;
  opacity: 0;
}

body.is-envelope-opened .chapter--gallery {
  opacity: 1;
  transition: opacity 720ms 140ms var(--ease-out);
}

#gallery .section-title {
  margin: 0 0 48px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: var(--tracking-display);
  text-align: center;
  text-transform: uppercase;
  color: var(--color-cream);
  padding-left: var(--tracking-display);
}

.gallery-deck {
  position: relative;
  width: var(--gallery-card-w);
  max-width: 100%;
  max-height: min(68vh, 560px);
  margin: 0 auto;
  padding: 0 36px 36px 0;
}

.gallery-stack {
  position: relative;
  width: 100%;
  max-height: min(64vh, 520px);
  /* 不再锁 3:4，避免横向合照被裁切 */
  touch-action: none;
}

.gallery-card {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-height: inherit;
  padding: 6px;
  overflow: hidden;
  border: 1px solid var(--color-hairline);
  border-radius: 4px;
  background: #141310;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.38),
    0 2px 8px rgba(0, 0, 0, 0.22);
  cursor: grab;
  transform-origin: center center;
  transition:
    transform 520ms var(--ease-out),
    opacity 520ms var(--ease-out),
    filter 520ms var(--ease-out);
}

.gallery-card::before {
  content: '';
  position: absolute;
  inset: 10px;
  z-index: 1;
  border: 1px solid rgba(250, 249, 246, 0.2);
  border-radius: 2px;
  pointer-events: none;
}

.gallery-card.is-front {
  position: relative;
  height: auto;
  z-index: 5;
  opacity: 1;
  cursor: zoom-in;
  transform: translate3d(0, 0, 0) scale(1);
  filter: none;
}

.gallery-card.is-next {
  z-index: 3;
  opacity: 0.95;
  transform: translate3d(18px, 14px, 0) scale(0.96);
  filter: brightness(0.86);
  pointer-events: none;
}

.gallery-card.is-after {
  z-index: 2;
  opacity: 0.78;
  transform: translate3d(36px, 28px, 0) scale(0.92);
  filter: brightness(0.68);
  pointer-events: none;
}

.gallery-card.is-prev {
  z-index: 4;
  opacity: 0;
  transform: translate3d(-28%, 0, 0) scale(0.98);
  pointer-events: none;
}

.gallery-card.is-idle {
  z-index: 1;
  opacity: 0;
  transform: translate3d(28px, 20px, 0) scale(0.92);
  pointer-events: none;
}

.gallery-stack.is-dragging .gallery-card {
  transition: none;
}

.gallery-card:focus-visible {
  outline: none;
  border-color: rgba(250, 249, 246, 0.42);
}

.gallery-card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(64vh, 520px);
  object-fit: contain;
  object-position: center;
  border-radius: 2px;
  filter: saturate(0.88) contrast(1.04) brightness(0.92);
  pointer-events: none;
}

.gallery-index {
  margin-top: 28px;
  font-family: var(--font-numeral);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-align: center;
  color: rgba(250, 249, 246, 0.42);
  padding-left: 0.32em;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: calc(56px + var(--safe-top)) 20px calc(28px + var(--safe-bottom));
  background: rgba(8, 7, 6, 0.97);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  cursor: zoom-out;
  transition:
    opacity 480ms var(--ease-out),
    visibility 0s 480ms;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 480ms var(--ease-out),
    visibility 0s;
}

.lightbox__close {
  position: absolute;
  top: calc(12px + var(--safe-top));
  right: 12px;
  z-index: 1;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--color-cream);
  opacity: 0.5;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  cursor: pointer;
  transition: opacity 280ms var(--ease-out);
}

.lightbox__close:hover,
.lightbox__close:focus-visible {
  opacity: 0.92;
  outline: none;
}

.lightbox__stage {
  margin: 0;
  cursor: default;
}

.lightbox__image {
  display: block;
  width: auto;
  height: auto;
  max-width: min(94vw, 980px);
  max-height: calc(100dvh - 96px);
  object-fit: contain;
  border: 1px solid var(--color-hairline-light);
  border-radius: 3px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  filter: saturate(0.94) contrast(1.02) brightness(0.96);
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 520ms var(--ease-out),
    transform 520ms var(--ease-out);
}

.lightbox.is-open .lightbox__image {
  opacity: 1;
  transform: none;
}

.lightbox.is-dragging .lightbox__image {
  transition: none;
}

.lightbox__caption {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.14em;
  text-align: center;
  color: rgba(250, 249, 246, 0.52);
  padding-left: 0.14em;
}

.lightbox__caption[hidden] {
  display: none;
}

body.is-lightbox-open,
body.is-envelope-opened.is-lightbox-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .chapter--gallery,
  body.is-envelope-opened .chapter--gallery,
  .lightbox,
  .lightbox.is-open,
  .lightbox__image,
  .lightbox.is-open .lightbox__image {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .gallery-card {
    transition: none;
  }

  .lightbox:not(.is-open) {
    opacity: 0;
  }
}

/* ===================================================
   05 Wishes · 弹幕祝福互动区
   =================================================== */

.chapter--wishes {
  --color-hairline: var(--color-hairline-light);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 80px 22px calc(36px + var(--safe-bottom));
  color: var(--color-cream);
  background: transparent;
  opacity: 0;
}

body.is-envelope-opened .chapter--wishes {
  opacity: 1;
  transition: opacity 720ms 180ms var(--ease-out);
}

#wishes .section-title {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: var(--tracking-display);
  text-align: center;
  text-transform: uppercase;
  color: var(--color-cream);
  padding-left: var(--tracking-display);
}

/* 静态铺排为基础形态；JS 就绪后加 .is-live 切换为滚动轨道 */
.danmu-container {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 10px;
  flex: 1 1 auto;
  width: calc(100% + 44px);
  margin: 0 -22px;
  padding: 0 22px;
  min-height: 46vh;
  min-height: 46dvh;
  overflow: hidden;
}

.danmu-container.is-live {
  display: block;
  padding: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

.danmu-item {
  max-width: 280px;
  padding: 8px 15px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 300;
  line-height: 1.55;
  letter-spacing: 0.06em;
  color: rgba(250, 249, 246, 0.92);
  word-break: break-word;
  overflow-wrap: anywhere;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  cursor: context-menu;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.danmu-item:focus-visible {
  outline: 2px solid rgba(238, 222, 184, 0.9);
  outline-offset: 3px;
}

.danmu-empty {
  margin: auto;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: var(--tracking-label);
  text-align: center;
  color: rgba(250, 249, 246, 0.34);
  padding-left: var(--tracking-label);
}

.danmu-empty[hidden] {
  display: none;
}

.danmu-container.is-live .danmu-empty {
  position: absolute;
  top: 50%;
  left: 22px;
  right: 22px;
  margin: 0;
  transform: translateY(-50%);
}

.danmu-item--fresh {
  border-color: rgba(238, 222, 184, 0.42);
  box-shadow:
    0 4px 15px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(238, 222, 184, 0.14);
}

/* 轨道：四行均匀分布，JS 逐条分配并控制同轨间距 */
.danmu-container.is-live .danmu-item {
  position: absolute;
  left: 100%;
  width: -webkit-max-content;
  width: max-content;
  max-width: min(280px, 74vw);
  animation: float 20s linear 1 forwards;
  will-change: transform;
}

.danmu-container.is-live .danmu-item[data-track="1"] { top: 15%; }
.danmu-container.is-live .danmu-item[data-track="2"] { top: 35%; }
.danmu-container.is-live .danmu-item[data-track="3"] { top: 55%; }
.danmu-container.is-live .danmu-item[data-track="4"] { top: 75%; }

@keyframes float {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(calc(var(--danmu-travel, 120vw) * -1), 0, 0); }
}

.wish-composer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 420px;
  margin: 28px auto 0;
}

.wish-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wish-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wish-field__label {
  font-size: 9px;
  font-weight: 300;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: rgba(250, 249, 246, 0.42);
  padding-left: var(--tracking-label);
}

.wish-input {
  width: 100%;
  padding: 11px 12px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: var(--tracking-body);
  color: var(--color-cream);
  background: rgba(250, 249, 246, 0.03);
  border: 1px solid var(--color-hairline);
  border-radius: 2px;
  outline: none;
  -webkit-appearance: none;
          appearance: none;
}

.wish-input::placeholder {
  color: rgba(250, 249, 246, 0.28);
}

.wish-input:focus {
  border-color: rgba(250, 249, 246, 0.55);
}

.wish-input.is-invalid {
  border-color: rgba(232, 214, 168, 0.55);
}

.wish-submit-btn {
  align-self: flex-start;
  margin-top: 4px;
  padding: 10px 18px 10px calc(18px + 0.28em);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(250, 249, 246, 0.86);
  background: transparent;
  border: 1px solid var(--color-hairline);
  border-radius: 2px;
  transition: background 280ms var(--ease-out), border-color 280ms var(--ease-out);
}

.wish-submit-btn:hover,
.wish-submit-btn:focus-visible {
  background: rgba(250, 249, 246, 0.06);
  border-color: rgba(250, 249, 246, 0.55);
}

.wish-submit-btn:active {
  transform: translateY(1px);
}

.wish-hint {
  min-height: 1.2em;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(232, 214, 168, 0.78);
}

.wish-admin-link {
  display: inline-block;
  margin-top: 24px;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: rgba(250, 249, 246, 0.54);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.wish-admin-link:focus-visible {
  outline: 2px solid rgba(250, 249, 246, 0.72);
  outline-offset: 4px;
}

.wish-book {
  list-style: none;
  width: 100%;
  max-width: 420px;
  max-height: 42vh;
  margin: 28px auto 0;
  padding: 8px 0 0;
  overflow: auto;
  border-top: 1px solid var(--color-hairline);
}

.wish-book:empty,
.wish-book[hidden] {
  display: none !important;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
}

.wish-book__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(250, 249, 246, 0.08);
}

.wish-book__name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.08em;
  color: rgba(238, 222, 184, 0.88);
}

.wish-book__message {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: rgba(250, 249, 246, 0.82);
  word-break: break-word;
}

@media (prefers-reduced-motion: reduce) {
  .chapter--wishes {
    opacity: 1;
    transition: none;
  }

  .danmu-item {
    animation: none;
    transform: none;
  }
}

/* ===================================================
   06 Navigation & Venue · 酒店导航与温馨落幕
   =================================================== */

.chapter--venue {
  --color-hairline: var(--color-hairline-light);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 56px 28px calc(36px + var(--safe-bottom));
  color: var(--color-cream);
  background: transparent;
  opacity: 0;
}

body.is-envelope-opened .chapter--venue {
  opacity: 1;
  transition: opacity 720ms 240ms var(--ease-out);
}

#venue .section-title {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: var(--tracking-display);
  text-align: left;
  text-transform: uppercase;
  color: var(--color-cream);
  padding-left: var(--tracking-display);
}

.venue__folio {
  max-width: 22rem;
}

.venue__kicker {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.18em;
  color: rgba(250, 249, 246, 0.58);
}

.venue__date {
  margin-top: 14px;
  font-family: var(--font-numeral);
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.22em;
  color: var(--color-cream);
  padding-left: 0.22em;
}

.venue__hour {
  margin-top: 12px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.28em;
  color: rgba(250, 249, 246, 0.72);
  padding-left: 0.28em;
}

.venue__occasion {
  margin-top: 16px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: rgba(250, 249, 246, 0.48);
  padding-left: 0.38em;
}

.venue__place {
  margin-top: 28px;
  margin-left: auto;
  max-width: 16.5rem;
  text-align: right;
}

.venue__hotel {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.46em;
  color: var(--color-cream);
  padding-right: 0;
}

.venue__address {
  margin-top: 14px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 300;
  font-style: normal;
  line-height: 1.9;
  letter-spacing: 0.12em;
  color: rgba(250, 249, 246, 0.62);
}

.venue__gate {
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.28em;
  color: rgba(232, 214, 168, 0.72);
}

.venue__wayfinding {
  /* 顶开上半页信息，把导航落到屏高下四分之一 */
  margin-top: auto;
  align-self: flex-start;
  width: min(17.5rem, 100%);
}

.venue__maps {
  display: flex;
  gap: 12px;
}

.venue__map {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 7px;
  min-height: 64px;
  padding: 16px 12px 14px 16px;
  text-decoration: none;
  color: var(--color-cream);
  border: 1px solid rgba(250, 249, 246, 0.28);
  background:
    linear-gradient(180deg, rgba(250, 249, 246, 0.05), rgba(250, 249, 246, 0.015));
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  -webkit-tap-highlight-color: transparent;
  transition:
    border-color 280ms var(--ease-out),
    background 280ms var(--ease-out),
    transform 280ms var(--ease-out);
}

.venue__map::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(212, 175, 55, 0.32);
  pointer-events: none;
}

.venue__map-en {
  font-family: var(--font-display);
  font-size: 9px;
  font-style: italic;
  letter-spacing: 0.28em;
  color: rgba(232, 214, 168, 0.82);
  padding-left: 0.28em;
}

.venue__map-zh {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.28em;
  padding-left: 0.28em;
}

.venue__map:hover,
.venue__map:focus-visible {
  border-color: rgba(250, 249, 246, 0.58);
  background: rgba(250, 249, 246, 0.06);
  outline: none;
}

.venue__map:active {
  transform: translateY(1px);
}

/* 复制地址：文字链，不与地图入口抢视觉 */
.venue__nav-alt {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding-left: 2px;
}

.venue__nav-link {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.26em;
  color: rgba(250, 249, 246, 0.5);
  text-decoration: none;
  padding-left: 0.26em;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--color-hairline-light);
  transition: color 240ms var(--ease-out), border-color 240ms var(--ease-out);
}

.venue__nav-link:hover,
.venue__nav-link:focus-visible {
  color: var(--color-cream);
  border-bottom-color: rgba(212, 175, 55, 0.6);
  outline: none;
}

.venue__nav-hint {
  margin-top: 16px;
  max-width: 19rem;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 300;
  line-height: 1.9;
  letter-spacing: 0.1em;
  color: rgba(250, 249, 246, 0.34);
}

.venue__close {
  margin-top: 20px;
  padding-top: 12px;
  text-align: center;
}

.venue__rule {
  display: block;
  width: 28px;
  height: 1px;
  margin: 0 auto 28px;
  background: var(--color-hairline-light);
}

.venue__mono {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.48em;
  color: rgba(250, 249, 246, 0.72);
  padding-left: 0.48em;
}

.venue__wish {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.22em;
  line-height: 1.8;
  color: rgba(250, 249, 246, 0.38);
  padding-left: 0.22em;
}

@media (prefers-reduced-motion: reduce) {
  .chapter--venue,
  body.is-envelope-opened .chapter--venue {
    opacity: 1;
    transition: none;
  }
}
