/* ==========================================================================
   李嘉宇 & 陈雨孜 · 婚礼电子请柬样式表
   设计基准：PLAN-NEON.md（昼夜双幕：象牙棉纸 + 暖曜石深底）
   硬性约束：
   1. 零外链图片与字体（纯系统字体栈，衬线严格使用 "Songti SC","STSong","Noto Serif SC",serif）
   2. 香槟金 #B08D57 仅作浅底细线/边框/徽记；浅底可读香槟文字使用 #876841；深底使用丝绒浅香槟 #C8AE7D
   3. 全站仅一处勃艮第火漆红 #6B1D28（第 6 节回执提交按钮 / 提交后的圆形火漆印章，互斥呈现）
   4. 全站动效严格仅操作 transform 与 opacity，并完整尊重 prefers-reduced-motion
   ========================================================================== */

:root {
  /* A. 浅底棉纸体系（昼幕） */
  --bg-ivory: #F7F3EC;
  --bg-ivory-subtle: #EFE9DF;
  --bg-stage-desktop: #EAE3D7;
  --ink-primary: #1C1B18;
  --ink-secondary: #5E5A53;
  --ink-muted: #736D63;
  --gold-text-light: #876841;
  --gold-hairline: #B08D57;
  --rule-subtle: #D9D0C1;

  /* B. 深底曜石体系（夜幕） */
  --bg-obsidian: #141412;
  --bg-obsidian-subtle: #1E1D1A;
  --ink-on-dark: #F3EEE5;
  --ink-on-dark-sub: #ADA69A;
  --gold-on-dark: #C8AE7D;
  --rule-on-dark: rgba(200, 174, 125, 0.22);

  /* C. 全站唯一仪式点缀色（勃艮第火漆红，<1.5% 面积） */
  --accent-wax: #6B1D28;

  /* 字体栈（零外部 CDN，纯系统字体） */
  --font-serif: "Songti SC", "STSong", "Noto Serif SC", serif;
  --font-serif-latin: "Baskerville", "Didot", "Georgia", "Songti SC", "STSong", "Noto Serif SC", serif;
  --font-sans: "PingFang SC", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, "Noto Sans SC", sans-serif;

  /* 空间与版心 */
  --sheet-max: 440px;
  --page-margin: clamp(24px, 7.2vw, 32px);
  --section-space: clamp(96px, 23vw, 116px);

  /* 动效缓动曲线 */
  --ease-editorial: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-curtain: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-hairline: cubic-bezier(0.25, 1, 0.5, 1);

  /* 静态手工棉纸微噪点（纯内联 Data URI SVG，零外部请求） */
  --paper-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   基础重置与全局质感
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background-color: var(--bg-stage-desktop);
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--ink-primary);
  background-color: var(--bg-stage-desktop);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-drawer-open {
  overflow: hidden;
}

h1, h2, h3, p, figure, figcaption, dl, dt, dd, ol, ul, li, fieldset {
  margin: 0;
  padding: 0;
}

ol, ul {
  list-style: none;
}

fieldset {
  border: 0;
  min-width: 0;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

[hidden] {
  display: none !important;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.tabular-nums {
  font-variant-numeric: lining-nums tabular-nums;
}

.is-hidden {
  display: none !important;
}

/* --------------------------------------------------------------------------
   手机优先与桌面端居中纸笺画幅（max-width: 440px）
   -------------------------------------------------------------------------- */
.editorial-sheet {
  position: relative;
  width: 100%;
  max-width: var(--sheet-max);
  margin: 0 auto;
  background-color: var(--bg-ivory);
  overflow-x: clip;
}

@media (min-width: 480px) {
  body {
    padding: 0 20px;
  }

  .editorial-sheet {
    border-left: 1px solid rgba(176, 141, 87, 0.2);
    border-right: 1px solid rgba(176, 141, 87, 0.2);
  }
}

.section-inner {
  position: relative;
  z-index: 1;
  padding-left: var(--page-margin);
  padding-right: var(--page-margin);
}

/* --------------------------------------------------------------------------
   昼夜双幕背景体系（象牙棉纸浅底 vs 暖曜石深底）
   -------------------------------------------------------------------------- */
.section-paper {
  position: relative;
  background-color: var(--bg-ivory);
  color: var(--ink-primary);
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}

.section-paper::before,
body[data-hero-theme="ivory-framed"] .section-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--paper-grain);
  background-size: 180px 180px;
  opacity: 0.036;
  pointer-events: none;
  z-index: 0;
}

.section-obsidian {
  position: relative;
  background-color: var(--bg-obsidian);
  color: var(--ink-on-dark);
}

/* --------------------------------------------------------------------------
   公共排版体系（L1–L7 严格按 PLAN-NEON §2.3 执行）
   -------------------------------------------------------------------------- */
.micro-label {
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow-gold {
  color: var(--gold-text-light);
}

.eyebrow-on-dark {
  color: var(--gold-on-dark);
}

.section-header {
  margin-bottom: 40px;
}

.section-header--center {
  text-align: center;
}

.section-title {
  margin-top: 12px;
  font-family: var(--font-serif);
  font-size: clamp(21px, 5.8vw, 26px);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.18em;
  color: var(--ink-primary);
}

.section-header--center .section-title {
  padding-left: 0.18em;
}

.section-title--on-dark {
  color: var(--ink-on-dark);
  font-size: clamp(19px, 5.2vw, 23px);
  letter-spacing: 0.14em;
}

.narrative-line {
  font-family: var(--font-serif);
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.06em;
  color: var(--ink-primary);
}

/* 双层发丝分隔线（视觉 0.5px + 居中 4px 空心微菱形） */
.hairline-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 176px;
  margin: 0 auto 32px;
}

.hairline-bar {
  flex: 1;
  height: 1px;
  background-color: var(--gold-hairline);
  transform: scale3d(1, 0.5, 1);
}

.hairline-bar:first-child {
  transform-origin: right center;
}

.hairline-bar:last-child {
  transform-origin: left center;
}

.hairline-diamond {
  width: 5px;
  height: 5px;
  border: 1px solid var(--gold-hairline);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.rule-subtle-line {
  width: 100%;
  height: 1px;
  background-color: var(--rule-subtle);
  transform: scaleY(0.5);
  margin: 40px 0;
}

/* --------------------------------------------------------------------------
   右上角固定背景音乐静音/取消静音开关（香槟金细线小圆钮，全滚动位置常驻）
   -------------------------------------------------------------------------- */
.bgm-toggle {
  position: fixed;
  top: calc(14px + env(safe-area-inset-top, 0px));
  right: max(14px, calc(50% - var(--sheet-max) / 2 + 14px));
  z-index: 35;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(176, 141, 87, 0.62);
  background-color: rgba(247, 243, 236, 0.88);
  color: var(--gold-text-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: opacity 220ms ease-out, transform 220ms ease-out;
}

/* 扩大隐形触控热区至 44x44px，保持视觉精巧且单手易点 */
.bgm-toggle::after {
  content: "";
  position: absolute;
  inset: -6px;
}

.bgm-toggle:active {
  opacity: 0.7;
  transform: scale(0.94);
}

.bgm-toggle:focus-visible {
  outline: 1px solid var(--gold-hairline);
  outline-offset: 2px;
}

.bgm-toggle.is-muted {
  border-color: rgba(176, 141, 87, 0.42);
  color: var(--ink-muted);
}

.bgm-toggle.is-on-dark {
  border-color: rgba(200, 174, 125, 0.56);
  background-color: rgba(20, 20, 18, 0.72);
  color: var(--gold-on-dark);
}

.bgm-toggle.is-on-dark.is-muted {
  border-color: rgba(200, 174, 125, 0.34);
  color: var(--ink-on-dark-sub);
}

.bgm-icon {
  width: 15px;
  height: 15px;
  pointer-events: none;
}

.bgm-toggle .bgm-icon--off {
  display: none;
}

.bgm-toggle.is-muted .bgm-icon--on {
  display: none;
}

.bgm-toggle.is-muted .bgm-icon--off {
  display: block;
}

/* --------------------------------------------------------------------------
   第 1 节：杂志封面与单一启封（The Cover）
   -------------------------------------------------------------------------- */
.section-cover {
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(22px + env(safe-area-inset-top, 0px)) var(--page-margin) calc(22px + env(safe-area-inset-bottom, 0px));
  background-color: var(--bg-ivory);
  color: var(--ink-primary);
  overflow: hidden;
}

/* 顶部极淡暖香槟冬夜天光（Suna Health 启发，零炫光） */
.cover-skylight {
  position: absolute;
  top: -12%;
  left: -10%;
  right: -10%;
  height: 44%;
  background: radial-gradient(ellipse 72% 72% at 50% 0%, rgba(200, 174, 125, 0.2) 0%, rgba(200, 174, 125, 0.06) 48%, rgba(200, 174, 125, 0) 100%);
  pointer-events: none;
  z-index: 0;
}

.cover-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink-muted);
  padding-right: 40px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(176, 141, 87, 0.24);
}

.cover-topbar .micro-label {
  white-space: nowrap;
}

/* 图位 P1：浅底棉纸装裱模式（默认 3:4，视觉重心微抬以避开微信底栏，兼容小屏微信视口） */
.photo-slot--p1 {
  position: relative;
  z-index: 2;
  width: min(64%, 252px, 34svh);
  aspect-ratio: 3 / 4;
  margin: auto;
  overflow: hidden;
  border: 1px solid rgba(176, 141, 87, 0.36);
  background-color: var(--bg-ivory-subtle);
  transition: transform 1050ms var(--ease-curtain), opacity 850ms var(--ease-editorial);
}

.photo-plate-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  color: var(--ink-on-dark);
}

.photo-slot--p1 .plate-corner-tag {
  right: 16px;
  bottom: 14px;
}

.photo-placeholder--p1 {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(158deg, #F3EDE2 0%, #ECE4D7 54%, #E4DACA 100%);
  color: var(--gold-hairline);
}

.p1-center-crest {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.monogram-cover {
  width: 46%;
  height: auto;
  color: var(--gold-hairline);
}

.cover-scrim {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.cover-identity {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: 22px;
  margin-bottom: 16px;
}

.cover-eyebrow {
  color: var(--gold-text-light);
  letter-spacing: 0.24em;
  padding-left: 0.24em;
}

.cover-names {
  margin-top: 14px;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: clamp(28px, 8vw, 36px);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: 0.26em;
  padding-left: 0.26em;
  color: var(--ink-primary);
}

.couple-amp {
  font-family: var(--font-serif-latin);
  font-style: italic;
  font-weight: 300;
  font-size: 0.78em;
  letter-spacing: 0;
  margin: 0 0.42em 0 0.16em;
  color: var(--gold-text-light);
}

.cover-subtitle {
  margin-top: 14px;
  font-family: var(--font-serif);
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.12em;
  padding-left: 0.12em;
  color: var(--ink-secondary);
}

.cover-action {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.cover-open-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 8px 20px 4px;
  color: var(--ink-primary);
  transition: opacity 420ms var(--ease-editorial), transform 420ms var(--ease-editorial);
}

.cover-open-btn:active {
  opacity: 0.65;
  transform: translate3d(0, 2px, 0);
}

.cover-open-stem {
  width: 1px;
  height: 26px;
  background-color: var(--gold-hairline);
  transform: scaleX(0.5);
}

.cover-open-zh {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.24em;
  padding-left: 0.24em;
  color: var(--ink-primary);
}

.cover-open-en {
  font-size: 9.5px;
  letter-spacing: 0.28em;
  padding-left: 0.28em;
  color: var(--gold-text-light);
}

/* 启封请柬瞬间微幅抬升反馈（仅动 transform / opacity） */
body.is-cover-opening .photo-slot--p1 {
  transform: translate3d(0, -10px, 0) scale(0.992);
  opacity: 0.86;
}

body.is-cover-opening .cover-open-btn {
  opacity: 0.45;
  transform: translate3d(0, 4px, 0);
}

/* --- 首屏深底主题预设（供婚纱照到位后零返工切换：PLAN-NEON §5.3） --- */
body[data-hero-theme="obsidian-fullbleed"] .section-cover,
body[data-hero-theme="obsidian-framed"] .section-cover {
  background-color: var(--bg-obsidian);
  color: var(--ink-on-dark);
}

body[data-hero-theme="obsidian-fullbleed"] .cover-topbar,
body[data-hero-theme="obsidian-framed"] .cover-topbar {
  color: var(--ink-on-dark-sub);
  border-bottom-color: var(--rule-on-dark);
}

body[data-hero-theme="obsidian-fullbleed"] .photo-placeholder--p1,
body[data-hero-theme="obsidian-framed"] .photo-placeholder--p1 {
  background: linear-gradient(162deg, #211F1B 0%, #181714 55%, #141412 100%);
  color: var(--gold-on-dark);
}

body[data-hero-theme="obsidian-fullbleed"] .monogram-cover,
body[data-hero-theme="obsidian-framed"] .monogram-cover {
  color: var(--gold-on-dark);
}

body[data-hero-theme="obsidian-fullbleed"] .cover-eyebrow,
body[data-hero-theme="obsidian-framed"] .cover-eyebrow,
body[data-hero-theme="obsidian-fullbleed"] .couple-amp,
body[data-hero-theme="obsidian-framed"] .couple-amp,
body[data-hero-theme="obsidian-fullbleed"] .cover-open-en,
body[data-hero-theme="obsidian-framed"] .cover-open-en {
  color: var(--gold-on-dark);
}

body[data-hero-theme="obsidian-fullbleed"] .cover-names,
body[data-hero-theme="obsidian-framed"] .cover-names,
body[data-hero-theme="obsidian-fullbleed"] .cover-open-zh,
body[data-hero-theme="obsidian-framed"] .cover-open-zh {
  color: var(--ink-on-dark);
}

body[data-hero-theme="obsidian-fullbleed"] .cover-subtitle,
body[data-hero-theme="obsidian-framed"] .cover-subtitle {
  color: var(--ink-on-dark-sub);
}

body[data-hero-theme="obsidian-fullbleed"] .cover-open-stem,
body[data-hero-theme="obsidian-framed"] .cover-open-stem {
  background-color: var(--gold-on-dark);
}

body[data-hero-theme="obsidian-framed"] .photo-slot--p1 {
  border-color: rgba(200, 174, 125, 0.42);
  background-color: var(--bg-obsidian-subtle);
}

body[data-hero-theme="obsidian-fullbleed"] .photo-slot--p1 {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  margin: 0;
  border: 0;
  z-index: 1;
}

body[data-hero-theme="obsidian-fullbleed"] .photo-plate-frame--p1 {
  display: none;
}

body[data-hero-theme="obsidian-fullbleed"] .cover-scrim {
  display: block;
  background: linear-gradient(
    to bottom,
    rgba(20, 20, 18, 0.32) 0%,
    rgba(20, 20, 18, 0.04) 36%,
    rgba(20, 20, 18, 0.68) 82%,
    rgba(20, 20, 18, 0.82) 100%
  );
}

body[data-hero-theme="obsidian-fullbleed"] .cover-identity {
  margin-top: auto;
}

/* --------------------------------------------------------------------------
   第 2 节：正式邀约与时间刻度（The Invitation & Countdown）
   -------------------------------------------------------------------------- */
.section-invitation {
  text-align: center;
}

.invitation-crest {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.monogram-inline {
  width: 48px;
  height: 34px;
  color: var(--gold-hairline);
}

.invitation-letter {
  max-width: 316px;
  margin: 0 auto 44px;
}

.invitation-letter .narrative-line + .narrative-line {
  margin-top: 8px;
}

.invitation-facts {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.fact-label {
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.fact-value {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.08em;
  color: var(--ink-primary);
}

.fact-value--accent {
  color: var(--gold-text-light);
}

.fact-value--venue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.fact-venue-name {
  display: block;
  font-size: clamp(13.5px, 3.85vw, 16px);
  letter-spacing: 0.02em;
  text-wrap: balance;
}

.fact-venue-address {
  display: block;
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.55;
  letter-spacing: 0.04em;
  color: var(--ink-secondary);
}

/* 实时倒计时带（天 · 时 · 分） */
.countdown-block {
  padding-top: 4px;
}

.countdown-caption {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  padding-left: 0.16em;
  color: var(--ink-muted);
  margin-bottom: 20px;
}

.countdown-grid {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 16px;
}

.countdown-unit {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: 68px;
}

.countdown-num {
  font-family: var(--font-serif-latin);
  font-size: clamp(34px, 9.5vw, 44px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: 0.04em;
  color: var(--ink-primary);
  transition: opacity 250ms ease-out;
}

.countdown-num.is-ticking {
  opacity: 0.25;
}

.countdown-label {
  margin-top: 8px;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  padding-left: 0.16em;
  color: var(--ink-muted);
}

.countdown-sep {
  font-family: var(--font-serif-latin);
  font-size: 22px;
  color: var(--gold-hairline);
  transform: translateY(-14px);
}

.countdown-milestone {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.14em;
  color: var(--gold-text-light);
}

/* --------------------------------------------------------------------------
   第 3 节：我们的章节（The Story：竖向标尺轴线）
   -------------------------------------------------------------------------- */
.section-chapters {
  padding-top: 12px;
}

.timeline {
  position: relative;
  padding-left: 26px;
}

/* 贯通 0.5px 竖向暖纸标尺轴线 */
.timeline::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 3px;
  width: 1px;
  background-color: var(--rule-subtle);
  transform: scaleX(0.5);
  transform-origin: left center;
}

.timeline-node {
  position: relative;
  padding-bottom: 64px;
  transition: opacity 400ms ease-out;
}

.timeline-node--last {
  padding-bottom: 8px;
}

html.js-motion .timeline-node {
  opacity: 0.38;
}

html.js-motion .timeline-node.is-active {
  opacity: 1;
}

.timeline-dot {
  position: absolute;
  left: -26px;
  top: 10px;
  width: 7px;
  height: 7px;
  background-color: var(--bg-ivory);
  border: 1px solid var(--gold-hairline);
  transform: rotate(45deg) scale(0.8);
  opacity: 0.55;
  transition: transform 400ms ease-out, opacity 400ms ease-out;
}

.timeline-node.is-active .timeline-dot {
  transform: rotate(45deg) scale(1.06);
  opacity: 1;
  background-color: var(--gold-hairline);
}

.timeline-year {
  font-family: var(--font-serif-latin);
  font-size: clamp(26px, 7.2vw, 32px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: 0.05em;
  color: var(--ink-primary);
  margin-bottom: 12px;
}

.timeline-copy {
  max-width: 310px;
}

.timeline-copy .narrative-line {
  color: var(--ink-secondary);
}

.photo-slot--p2 {
  margin-top: 26px;
  width: 88%;
  margin-left: auto;
}

.photo-slot--p3 {
  margin-top: 28px;
  width: 100%;
}

/* --------------------------------------------------------------------------
   通用照片槽位、比例容器与占位图版（全站无卡片边框、无投影）
   -------------------------------------------------------------------------- */
.photo-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: var(--bg-ivory-subtle);
}

.photo-frame--4x3 {
  aspect-ratio: 4 / 3;
}

.photo-frame--3x4 {
  aspect-ratio: 3 / 4;
}

.photo-frame--3x2 {
  aspect-ratio: 3 / 2;
}

.photo-frame--oval {
  aspect-ratio: 3 / 4;
  border-radius: 50%;
  border: 1px solid rgba(200, 174, 125, 0.44);
  background-color: var(--bg-obsidian-subtle);
  isolation: isolate;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

/* 保留原占位框双椭圆香槟细线语言（不遮挡照片主体） */
.photo-frame--oval::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px solid rgba(200, 174, 125, 0.26);
  pointer-events: none;
  z-index: 2;
}

/* 保留原占位图版浅/深底发丝描边语言（零卡片投影） */
.photo-frame--framed-light {
  border: 1px solid rgba(176, 141, 87, 0.3);
}

.photo-frame--framed-light::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(247, 243, 236, 0.36);
  pointer-events: none;
  z-index: 2;
}

.photo-frame--framed-dark {
  border: 1px solid rgba(200, 174, 125, 0.28);
}

.photo-frame--framed-dark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(200, 174, 125, 0.2);
  pointer-events: none;
  z-index: 2;
}

.photo-frame--bleed-dark {
  border-top: 1px solid rgba(200, 174, 125, 0.24);
  border-bottom: 1px solid rgba(200, 174, 125, 0.24);
}

.photo-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
}

.photo-placeholder--p2 {
  background: linear-gradient(142deg, #F1EBE1 0%, #EAE2D5 58%, #E4DACB 100%);
}

.photo-placeholder--p3 {
  background: linear-gradient(164deg, #EFE9DF 0%, #E6DECF 56%, #DDD3C2 100%);
}

.photo-placeholder--p4 {
  background: linear-gradient(165deg, #24211C 0%, #1B1A17 52%, #141412 100%);
}

.photo-placeholder--p5 {
  background: linear-gradient(156deg, #25221D 0%, #1C1A17 58%, #151412 100%);
}

.photo-placeholder--p6 {
  background: radial-gradient(circle at 50% 42%, #29241D 0%, #1B1916 64%, #151412 100%);
}

.placeholder-svg {
  width: 100%;
  height: 100%;
}

/* 实拍替换后的 img 通用样式与各槽位裁切焦点 */
.photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
}

.photo-img--p1 {
  object-position: 50% 35%;
}

.photo-img--p2 {
  object-position: 55% 55%;
}

.photo-img--p3 {
  object-position: 18% 15%;
}

.photo-img--p4 {
  object-position: 50% 54%;
}

.photo-img--p5 {
  object-position: 50% 50%;
}

.photo-img--p6 {
  object-position: 30% 45%;
}

/* 视差专用容器（仅用于 P3 与 P4，严格限制在 ±14px 内） */
.parallax-frame {
  overflow: hidden;
}

.parallax-media {
  width: 100%;
  height: calc(100% + 28px);
  margin-top: -14px;
  will-change: transform;
}

/* P3 保护顶部人物发际余量，视差收敛至 ±8px */
.parallax-media--gentle {
  height: calc(100% + 16px);
  margin-top: -8px;
}

/* 其余图位入屏静定 scale(1.04 -> 1.00) */
html.js-motion [data-settle] .photo-placeholder,
html.js-motion [data-settle] .photo-img {
  transform: scale(1.04);
  opacity: 0.86;
  transition: transform 1200ms ease-out, opacity 900ms ease-out;
}

html.js-motion [data-settle].is-visible .photo-placeholder,
html.js-motion [data-settle].is-visible .photo-img {
  transform: scale(1);
  opacity: 1;
}

.plate-corner-tag {
  position: absolute;
  right: 12px;
  bottom: 10px;
  z-index: 3;
  font-family: var(--font-sans);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  color: var(--ink-muted);
  opacity: 0.82;
  pointer-events: none;
}

.photo-frame--framed-light .plate-corner-tag,
.photo-frame--framed-dark .plate-corner-tag {
  right: 15px;
  bottom: 13px;
}

.plate-corner-tag--dark {
  color: var(--gold-on-dark);
  opacity: 0.68;
}

/* 实拍照片右下角明暗自适应，无笨重底框但保持清晰可读 */
.plate-corner-tag--on-photo-dark {
  color: rgba(243, 238, 229, 0.94);
  opacity: 1;
  text-shadow: 0 1px 3px rgba(20, 20, 18, 0.82), 0 0 8px rgba(20, 20, 18, 0.48);
}

.plate-corner-tag--dark.plate-corner-tag--on-photo-dark {
  color: rgba(226, 206, 168, 0.94);
  opacity: 1;
  text-shadow: 0 1px 3px rgba(20, 20, 18, 0.84), 0 0 8px rgba(20, 20, 18, 0.5);
}

.plate-corner-tag--on-photo-light {
  color: rgba(28, 27, 24, 0.82);
  opacity: 1;
  text-shadow: 0 1px 4px rgba(247, 243, 236, 0.92);
}

/* 博物馆图版式正斜体图注 */
.photo-caption {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 10px;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--ink-muted);
}

.photo-caption--dark {
  color: var(--ink-on-dark-sub);
}

.photo-caption--inset {
  padding-left: var(--page-margin);
  padding-right: var(--page-margin);
}

.photo-caption--center {
  justify-content: center;
}

.caption-fig {
  font-family: var(--font-serif-latin);
  font-style: italic;
  font-size: 12.5px;
  letter-spacing: 0.04em;
}

.caption-note {
  font-family: var(--font-sans);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   第 4 节：冬夜影集画廊（The Editorial Gallery · 暖曜石深底 #141412）
   -------------------------------------------------------------------------- */
.section-gallery {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}

.gallery-header-wrap {
  margin-bottom: 40px;
}

.gallery-header-wrap .section-header {
  margin-bottom: 0;
}

.gallery-subline {
  margin-top: 8px;
  font-family: var(--font-serif-latin);
  font-style: italic;
  font-size: 13.5px;
  letter-spacing: 0.08em;
  color: var(--ink-on-dark-sub);
}

.photo-slot--p4 {
  width: 100%;
  margin-bottom: 56px;
}

.photo-slot--p4 .photo-frame {
  background-color: var(--bg-obsidian-subtle);
}

/* 非对称双图组：P5 占 62% + P6 椭圆占 34% 错落悬空 */
.gallery-diptych {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4%;
}

.photo-slot--p5 {
  flex: 0 0 62%;
}

.photo-slot--p5 .photo-frame {
  background-color: var(--bg-obsidian-subtle);
}

.photo-slot--p6 {
  flex: 0 0 34%;
  margin-top: 64px;
}

/* 若 P6 隐藏，P5 优雅居中呈现 */
.gallery-diptych:has(.photo-slot--p6.is-hidden) {
  justify-content: center;
}

.gallery-diptych:has(.photo-slot--p6.is-hidden) .photo-slot--p5 {
  flex: 0 0 78%;
}

.p6-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.monogram-oval {
  width: 44%;
  height: auto;
  color: var(--gold-on-dark);
  opacity: 0.65;
}

/* --------------------------------------------------------------------------
   第 5 节：晚宴时刻与赴约指引（The Evening & Venue · 私宴菜单排版）
   -------------------------------------------------------------------------- */
.section-venue {
  text-align: center;
}

.block-sublabel {
  color: var(--ink-muted);
  margin-bottom: 22px;
}

.schedule-block {
  max-width: 320px;
  margin: 0 auto;
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.schedule-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.schedule-time {
  font-family: var(--font-serif-latin);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--gold-text-light);
  text-align: right;
  min-width: 68px;
}

.schedule-leader {
  flex: 1;
  height: 1px;
  background-color: var(--rule-subtle);
  transform: translateY(-4px) scaleY(0.5);
}

.schedule-name {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--ink-primary);
}

.schedule-courtesy {
  margin-top: 18px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  letter-spacing: 0.1em;
  color: var(--ink-secondary);
}

.venue-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 44px auto 40px;
  max-width: 240px;
}

.rule-subtle-segment {
  flex: 1;
  height: 1px;
  background-color: var(--rule-subtle);
  transform: scaleY(0.5);
}

.compass-icon {
  width: 30px;
  height: 30px;
  color: var(--gold-hairline);
  flex-shrink: 0;
}

.venue-name {
  font-family: var(--font-serif);
  font-size: clamp(14px, 3.9vw, 17px);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: var(--ink-primary);
  text-wrap: balance;
}

.venue-address {
  margin-top: 6px;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.05em;
  color: var(--ink-secondary);
}

.venue-date {
  margin-top: 10px;
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.venue-actions {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.btn-outline-ink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 196px;
  min-height: 46px;
  padding: 11px 28px;
  border: 1px solid var(--gold-hairline);
  border-radius: 2px;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.2em;
  padding-left: calc(28px + 0.2em);
  color: var(--ink-primary);
  background-color: transparent;
  transition: opacity 220ms ease-out, transform 220ms ease-out;
}

.btn-outline-ink:active {
  opacity: 0.72;
  transform: scale(0.985);
}

.venue-secondary-links {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.text-link-gold {
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--gold-text-light);
  padding: 6px 4px;
  border-bottom: 1px solid rgba(135, 104, 65, 0.32);
  transition: opacity 200ms ease-out;
}

.text-link-gold:active {
  opacity: 0.6;
}

.link-dot {
  color: var(--gold-hairline);
  font-size: 12px;
}

/* --------------------------------------------------------------------------
   第 6 节：敬候回音（R.S.V.P. · 唯一勃艮第火漆红落点）
   -------------------------------------------------------------------------- */
.section-rsvp {
  padding-top: 12px;
}

.rsvp-lead {
  margin-top: 16px;
  font-family: var(--font-serif);
  font-size: 14.5px;
  line-height: 1.85;
  letter-spacing: 0.06em;
  color: var(--ink-secondary);
}

.rsvp-stationery {
  background-color: var(--bg-ivory-subtle);
  border: 1px solid var(--rule-subtle);
  border-radius: 2px;
  padding: 32px 22px 34px;
}

.rsvp-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.form-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.form-field {
  display: flex;
  flex-direction: column;
}

.field-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 10px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  letter-spacing: 0.08em;
  color: var(--ink-secondary);
}

.field-req,
.field-opt {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
}

/* 硬性 >= 16px 防止 iOS 微信聚焦强制缩放 */
.field-input,
.field-textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--ink-primary);
  background-color: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule-subtle);
  border-radius: 0;
  padding: 10px 2px;
  appearance: none;
  -webkit-appearance: none;
}

.field-input::placeholder,
.field-textarea::placeholder {
  color: var(--ink-muted);
  font-size: 14.5px;
  opacity: 0.8;
}

.field-input:focus,
.field-textarea:focus {
  outline: none;
  border-bottom-color: var(--gold-text-light);
}

.field-input--sub {
  margin-top: 12px;
}

.field-textarea {
  border: 1px solid var(--rule-subtle);
  border-radius: 2px;
  background-color: rgba(247, 243, 236, 0.55);
  padding: 12px;
  resize: vertical;
  min-height: 92px;
}

.field-textarea:focus {
  border-color: var(--gold-text-light);
}

.field-error {
  min-height: 18px;
  margin-top: 6px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--gold-text-light);
}

/* 极简双栏细框点选（出席意向） */
.choice-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.choice-box,
.choice-chip,
.diet-tag {
  position: relative;
  display: block;
  cursor: pointer;
}

.choice-box input,
.choice-chip input,
.diet-tag input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.choice-box-face {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 48px;
  padding: 10px 8px;
  border: 1px solid var(--rule-subtle);
  border-radius: 2px;
  background-color: var(--bg-ivory);
  font-family: var(--font-serif);
  font-size: 14.5px;
  line-height: 1.35;
  letter-spacing: 0.06em;
  color: var(--ink-secondary);
}

.choice-box input:checked + .choice-box-face {
  border-color: var(--ink-primary);
  background-color: var(--ink-primary);
  color: var(--bg-ivory);
}

.choice-box input:focus-visible + .choice-box-face,
.choice-chip input:focus-visible + .choice-chip-face,
.diet-tag input:focus-visible + .diet-tag-face {
  outline: 1px solid var(--gold-text-light);
  outline-offset: 2px;
}

/* 同行人数单选 */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.55fr);
  gap: 8px;
}

.choice-chip-face {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  height: 100%;
  padding: 8px 4px;
  border: 1px solid var(--rule-subtle);
  border-radius: 2px;
  background-color: var(--bg-ivory);
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--ink-secondary);
}

.choice-chip input:checked + .choice-chip-face {
  border-color: var(--ink-primary);
  background-color: var(--ink-primary);
  color: var(--bg-ivory);
}

/* 饮食忌口轻标签 */
.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.diet-tag-face {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--rule-subtle);
  border-radius: 2px;
  background-color: var(--bg-ivory);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-secondary);
}

.diet-tag input:checked + .diet-tag-face {
  border-color: var(--gold-text-light);
  background-color: rgba(135, 104, 65, 0.1);
  color: var(--ink-primary);
}

.textarea-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--ink-muted);
}

.form-submit-wrap {
  padding-top: 6px;
}

/* 全站唯一一处勃艮第火漆红 #6B1D28：回执确认按钮 */
.btn-wax-submit {
  width: 100%;
  min-height: 50px;
  padding: 13px 24px;
  border-radius: 2px;
  background-color: var(--accent-wax);
  color: var(--bg-ivory);
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.24em;
  padding-left: calc(24px + 0.24em);
  transition: opacity 220ms ease-out, transform 220ms ease-out;
}

.btn-wax-submit:active {
  opacity: 0.88;
  transform: scale(0.99);
}

.btn-wax-submit:disabled {
  opacity: 0.62;
  cursor: not-allowed;
  transform: none;
}

.form-submit-error {
  margin-top: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(135, 104, 65, 0.42);
  border-radius: 2px;
  background-color: var(--bg-ivory);
  text-align: center;
  font-size: 13px;
  line-height: 1.65;
  letter-spacing: 0.04em;
  color: var(--gold-text-light);
}

/* --- 提交成功：专属电子赴约凭证卡 + 勃艮第火漆印章 --- */
.rsvp-voucher {
  position: relative;
  text-align: center;
  padding: 16px 8px 10px;
  border: 1px solid rgba(176, 141, 87, 0.32);
  background-color: var(--bg-ivory);
}

.rsvp-voucher.is-entering {
  animation: voucher-enter 480ms var(--ease-editorial) both;
}

@keyframes voucher-enter {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* 圆形勃艮第火漆印（与提交按钮互斥，全站任一时刻严格仅 1 处酒红） */
.wax-seal {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 6px auto 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 32%, #7D2633 0%, var(--accent-wax) 62%, #57151F 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--bg-ivory);
}

.wax-seal.is-stamping {
  animation: wax-stamp 550ms var(--ease-editorial) both;
}

.wax-seal-ring {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px solid rgba(247, 243, 236, 0.34);
  pointer-events: none;
}

.wax-seal-monogram {
  position: relative;
  z-index: 1;
  width: 36px;
  height: auto;
  color: var(--bg-ivory);
}

/* 印面单次斜向掠光（仅动 transform / opacity） */
.wax-seal-sheen {
  position: absolute;
  top: -10%;
  bottom: -10%;
  left: 0;
  width: 44%;
  background: linear-gradient(90deg, rgba(247, 243, 236, 0) 0%, rgba(247, 243, 236, 0.45) 50%, rgba(247, 243, 236, 0) 100%);
  opacity: 0;
  transform: translate3d(-150%, 0, 0) skewX(-24deg);
  pointer-events: none;
}

.wax-seal.is-stamping .wax-seal-sheen {
  animation: wax-sheen 700ms var(--ease-editorial) 460ms 1 forwards;
}

@keyframes wax-stamp {
  0% {
    opacity: 0;
    transform: scale(1.12);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes wax-sheen {
  0% {
    opacity: 0;
    transform: translate3d(-150%, 0, 0) skewX(-24deg);
  }
  30% {
    opacity: 0.48;
  }
  100% {
    opacity: 0;
    transform: translate3d(260%, 0, 0) skewX(-24deg);
  }
}

.voucher-eyebrow {
  color: var(--gold-text-light);
}

.voucher-title {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--ink-primary);
}

.voucher-subtitle {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: var(--ink-secondary);
}

.voucher-details {
  margin: 22px 6px 0;
  padding: 18px 4px;
  border-top: 1px solid var(--rule-subtle);
  border-bottom: 1px solid var(--rule-subtle);
}

.voucher-detail-line {
  font-family: var(--font-serif);
  font-size: 14.5px;
  line-height: 1.75;
  letter-spacing: 0.06em;
  color: var(--ink-primary);
}

.voucher-detail-venue {
  margin-top: 4px;
  font-size: clamp(12.5px, 3.25vw, 14px);
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.voucher-detail-addr {
  margin-top: 2px;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--ink-secondary);
}

.voucher-notes {
  margin: 16px 14px 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-secondary);
}

.voucher-actions {
  margin-top: 24px;
  padding-bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

/* --- 回执已截止提示卡（通用提示，不含任何日期） --- */
.rsvp-closed {
  text-align: center;
  padding: 28px 14px 24px;
  border: 1px solid rgba(176, 141, 87, 0.32);
  background-color: var(--bg-ivory);
}

.rsvp-closed-eyebrow {
  color: var(--gold-text-light);
}

.rsvp-closed-title {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.14em;
  padding-left: 0.14em;
  color: var(--ink-primary);
}

.rsvp-closed-desc {
  margin-top: 12px;
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.85;
  letter-spacing: 0.06em;
  color: var(--ink-secondary);
}

/* --------------------------------------------------------------------------
   第 7 节：尾声封底（The Colophon · 暖曜石深底 #141412 · 80%+ 负空间）
   -------------------------------------------------------------------------- */
.section-colophon {
  min-height: 62svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 96px;
  padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  text-align: center;
}

.colophon-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.monogram-colophon {
  width: 54px;
  height: auto;
  color: var(--gold-on-dark);
  opacity: 0.88;
}

.colophon-rule {
  width: 48px;
  margin: 34px auto;
}

.colophon-rule-bar {
  display: block;
  width: 100%;
  height: 1px;
  background-color: var(--gold-on-dark);
  transform: scale3d(1, 0.5, 1);
  transform-origin: center;
}

.colophon-ending {
  font-family: var(--font-serif);
  font-size: clamp(21px, 5.8vw, 25px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.16em;
  padding-left: 0.16em;
  color: var(--ink-on-dark);
}

.colophon-archive {
  margin-top: 72px;
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: var(--ink-on-dark-sub);
  opacity: 0.62;
}

.colophon-credit {
  margin-top: 10px;
  font-family: var(--font-sans);
  font-size: 10px;
  line-height: 1.65;
  letter-spacing: 0.04em;
  color: var(--ink-on-dark-sub);
  opacity: 0.56;
  max-width: 100%;
  overflow-wrap: break-word;
}

/* --------------------------------------------------------------------------
   场馆导航底部棉纸抽屉（零内嵌彩色地图）
   -------------------------------------------------------------------------- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  visibility: hidden;
}

.drawer-overlay.is-open {
  pointer-events: auto;
  visibility: visible;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(20, 20, 18, 0.52);
  opacity: 0;
  transition: opacity 280ms var(--ease-editorial);
}

.drawer-overlay.is-open .drawer-backdrop {
  opacity: 1;
}

.drawer-sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--sheet-max);
  background-color: var(--bg-ivory);
  border-top: 1px solid var(--gold-hairline);
  border-radius: 2px 2px 0 0;
  padding: 14px var(--page-margin) calc(22px + env(safe-area-inset-bottom, 0px));
  transform: translate3d(0, 100%, 0);
  transition: transform 340ms var(--ease-editorial);
}

.drawer-overlay.is-open .drawer-sheet {
  transform: translate3d(0, 0, 0);
}

.drawer-handle {
  width: 36px;
  height: 2px;
  background-color: var(--rule-subtle);
  margin: 0 auto 18px;
}

.drawer-eyebrow {
  text-align: center;
  color: var(--gold-text-light);
}

.drawer-title {
  margin-top: 8px;
  text-align: center;
  font-family: var(--font-serif);
  font-size: clamp(14px, 3.85vw, 16.5px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--ink-primary);
  text-wrap: balance;
}

.drawer-address {
  margin-top: 4px;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.55;
  letter-spacing: 0.04em;
  color: var(--ink-secondary);
}

.drawer-hint {
  margin-top: 8px;
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-muted);
}

.drawer-list {
  margin-top: 20px;
  border-top: 1px solid var(--rule-subtle);
}

.drawer-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 4px;
  border-bottom: 1px solid var(--rule-subtle);
  text-align: left;
  transition: opacity 180ms ease-out;
}

.drawer-item:active {
  opacity: 0.58;
}

.drawer-item-title {
  font-family: var(--font-serif);
  font-size: 15.5px;
  letter-spacing: 0.08em;
  color: var(--ink-primary);
}

.drawer-item-sub {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.drawer-item--copy .drawer-item-sub {
  color: var(--gold-text-light);
}

.drawer-cancel {
  width: 100%;
  margin-top: 14px;
  min-height: 44px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  letter-spacing: 0.14em;
  color: var(--ink-secondary);
}

/* --------------------------------------------------------------------------
   轻提示浮层（Toast）
   -------------------------------------------------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  max-width: min(88vw, 360px);
  padding: 11px 18px;
  border-radius: 2px;
  border: 1px solid rgba(200, 174, 125, 0.36);
  background-color: var(--bg-obsidian);
  color: var(--ink-on-dark);
  font-size: 13px;
  line-height: 1.55;
  letter-spacing: 0.04em;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50%, 10px, 0);
  transition: opacity 260ms var(--ease-editorial), transform 260ms var(--ease-editorial);
}

.toast.is-visible {
  opacity: 1;
  transform: translate3d(-50%, 0, 0);
}

/* --------------------------------------------------------------------------
   渐进增强显影动效（仅在 html.js-motion 时启用，严格只动 transform / opacity）
   -------------------------------------------------------------------------- */

/* 1. 首屏四拍合焦节奏（Suna Health 启发，纯 transform + opacity） */
html.js-motion .cover-beat {
  opacity: 0;
  transform: translate3d(0, 10px, 0) scale(0.99);
  transition: opacity 900ms var(--ease-editorial), transform 900ms var(--ease-editorial);
}

html.js-motion body.is-cover-ready .cover-beat {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

html.js-motion body.is-cover-ready .cover-beat--1 {
  transition-delay: 180ms;
}

html.js-motion body.is-cover-ready .cover-beat--2 {
  transition-delay: 320ms;
}

html.js-motion body.is-cover-ready .cover-beat--3 {
  transition-delay: 460ms;
}

html.js-motion body.is-cover-ready .cover-beat--4 {
  transition-delay: 600ms;
}

/* 3. 细金线从中心向左右生长 */
html.js-motion [data-hairline] .hairline-bar,
html.js-motion [data-hairline] .colophon-rule-bar {
  opacity: 0.35;
  transform: scale3d(0, 0.5, 1);
  transition: transform 820ms var(--ease-hairline), opacity 820ms var(--ease-hairline);
}

html.js-motion [data-hairline].is-visible .hairline-bar,
html.js-motion [data-hairline].is-visible .colophon-rule-bar {
  opacity: 1;
  transform: scale3d(1, 0.5, 1);
}

html.js-motion [data-hairline] .hairline-diamond {
  opacity: 0;
  transform: rotate(45deg) scale(0.45);
  transition: opacity 420ms var(--ease-editorial) 220ms, transform 420ms var(--ease-editorial) 220ms;
}

html.js-motion [data-hairline].is-visible .hairline-diamond {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

/* 4. 滚动逐行遮罩显影（位移严格 <= 14px，零回弹） */
.line-mask {
  display: block;
  overflow: hidden;
}

.line-inner {
  display: block;
}

html.js-motion [data-reveal-lines] .line-inner {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity 650ms var(--ease-editorial), transform 650ms var(--ease-editorial);
}

html.js-motion [data-reveal-lines].is-visible .line-inner {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

html.js-motion [data-reveal-lines].is-visible .narrative-line:nth-child(2) .line-inner {
  transition-delay: 90ms;
}

html.js-motion [data-reveal-lines].is-visible .narrative-line:nth-child(3) .line-inner {
  transition-delay: 180ms;
}

/* 常规模块沉静入屏 */
html.js-motion [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition: opacity 650ms var(--ease-editorial), transform 650ms var(--ease-editorial);
}

html.js-motion [data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* --------------------------------------------------------------------------
   微信小屏（<= 374px，含 360px 宽）与短视口防溢出/防遮挡微调
   -------------------------------------------------------------------------- */
@media (max-width: 374px) {
  .cover-topbar {
    padding-right: 42px;
  }

  .cover-topbar .micro-label {
    font-size: 10px;
    letter-spacing: 0.14em;
  }

  .cover-subtitle {
    font-size: 12.5px;
    letter-spacing: 0.08em;
    padding-left: 0.08em;
  }
}

@media (max-height: 660px) {
  .bgm-toggle {
    top: calc(12px + env(safe-area-inset-top, 0px));
  }

  .section-cover {
    padding-top: calc(18px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }

  .cover-topbar {
    padding-bottom: 11px;
  }

  .photo-slot--p1 {
    width: min(56%, 224px, 29svh);
  }

  .cover-identity {
    margin-top: 14px;
    margin-bottom: 10px;
  }

  .cover-names {
    margin-top: 10px;
  }

  .cover-subtitle {
    margin-top: 10px;
  }

  .cover-open-stem {
    height: 18px;
  }
}

@media (max-height: 580px) {
  .photo-slot--p1 {
    width: min(50%, 196px, 25svh);
  }

  .cover-identity {
    margin-top: 10px;
    margin-bottom: 8px;
  }

  .cover-names {
    margin-top: 8px;
    font-size: clamp(25px, 7.2vw, 31px);
  }

  .cover-subtitle {
    margin-top: 8px;
  }

  .cover-open-btn {
    gap: 5px;
    padding: 4px 16px 2px;
  }

  .cover-open-stem {
    height: 14px;
  }
}

/* --------------------------------------------------------------------------
   尊重系统弱动效设置（prefers-reduced-motion: reduce）
   全部退化为 200ms 温和透明度淡入，禁用位移与视差
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .bgm-toggle {
    transition: opacity 200ms ease-out !important;
  }

  .bgm-toggle:active {
    transform: none;
  }

  html.js-motion .cover-beat,
  html.js-motion [data-reveal],
  html.js-motion [data-reveal-lines] .line-inner,
  html.js-motion [data-settle] .photo-placeholder,
  html.js-motion [data-settle] .photo-img,
  html.js-motion [data-hairline] .hairline-bar,
  html.js-motion [data-hairline] .colophon-rule-bar,
  html.js-motion [data-hairline] .hairline-diamond {
    transform: none !important;
    transition: opacity 200ms ease-out !important;
    transition-delay: 0ms !important;
  }

  html.js-motion [data-hairline] .hairline-bar,
  html.js-motion [data-hairline] .colophon-rule-bar {
    transform: scaleY(0.5) !important;
  }

  html.js-motion [data-hairline] .hairline-diamond {
    transform: rotate(45deg) !important;
  }

  .parallax-media,
  .parallax-media--gentle {
    height: 100%;
    margin-top: 0;
    transform: none !important;
  }

  .wax-seal.is-stamping,
  .rsvp-voucher.is-entering {
    animation: none !important;
  }

  .wax-seal.is-stamping .wax-seal-sheen {
    animation: none !important;
    opacity: 0 !important;
  }

  .drawer-sheet,
  .toast {
    transition: opacity 200ms ease-out !important;
  }
}
