/* =========================================================
   婚礼请柬 · 现代极简 + 轻奢
   配色：米白 / 浅灰 / 金色点缀
   ========================================================= */

@font-face {
  font-family: "WeddingSerif";
  src: url("../fonts/wedding-serif-subset.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ivory: #f7f4ee;
  --ivory-deep: #f1ece2;
  --paper: #ebe4d7;
  --ink: #2b2823;
  --ink-soft: #4a443a;
  --muted: #6f675c;
  --gold: #b2935f;
  --gold-deep: #8f7447;
  --line: rgba(43, 40, 35, 0.14);
  --line-soft: rgba(43, 40, 35, 0.08);
  --serif: "WeddingSerif", "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
  --sans: "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --sat: 0px;
  --sab: 0px;
  --sal: 0px;
  --sar: 0px;
  --app-height: 100vh;
}

@supports (padding: constant(safe-area-inset-top)) {
  :root {
    --sat: constant(safe-area-inset-top);
    --sab: constant(safe-area-inset-bottom);
    --sal: constant(safe-area-inset-left);
    --sar: constant(safe-area-inset-right);
  }
}

@supports (padding: env(safe-area-inset-top)) {
  :root {
    --sat: env(safe-area-inset-top);
    --sab: env(safe-area-inset-bottom);
    --sal: env(safe-area-inset-left);
    --sar: env(safe-area-inset-right);
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: manipulation;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html.is-wechat,
html.is-wechat body {
  -webkit-text-size-adjust: 100% !important;
  text-size-adjust: 100% !important;
  -webkit-overflow-scrolling: touch;
}

body.is-locked {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
}

img { max-width: 100%; height: auto; }

.js img.lazy {
  opacity: 0;
  transition: opacity 0.75s var(--ease);
}

.js img.lazy.is-loaded { opacity: 1; }

.js img.lazy.is-error { opacity: 0.4; }

a { color: inherit; }

::selection { background: rgba(178, 147, 95, 0.25); }

:focus-visible {
  outline: 1px solid var(--gold-deep);
  outline-offset: 3px;
}

/* 纸张颗粒质感（很轻，不抢内容） */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.page {
  position: relative;
  margin: 0 auto;
  overflow: hidden;
  background: var(--ivory);
  padding-left: var(--sal);
  padding-right: var(--sar);
}

main { display: block; }

/* ---------- 顶部阅读进度 ---------- */
.progress {
  position: fixed;
  top: var(--sat);
  left: var(--sal);
  right: var(--sar);
  max-width: 640px;
  margin: 0 auto;
  height: 2px;
  z-index: 110;
  pointer-events: none;
}

.progress span {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, rgba(178, 147, 95, 0.15), var(--gold));
  transition: transform 0.15s linear;
}

/* ---------- 通用文字 ---------- */
.eyebrow {
  margin: 0;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold-deep);
  line-height: 1.6;
}

.section {
  position: relative;
  padding: 82px 24px;
}

.sec-head {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.sec-head h2 {
  margin: 12px 0 0;
  font-size: clamp(24px, 6.8vw, 30px);
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.5;
}

.sec-head h2:first-child {
  margin-top: 0;
}

.sec-head__en {
  margin: 12px 0 0;
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: 0.44em;
  color: rgba(111, 103, 92, 0.72);
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 150px;
  margin: 18px auto 0;
}

.ornament span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(178, 147, 95, 0.55), transparent);
}

.ornament i {
  width: 5px;
  height: 5px;
  border: 1px solid rgba(178, 147, 95, 0.8);
  transform: rotate(45deg);
}

/* ---------- 进入 / 滚动动画 ---------- */
.js .reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes heartPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

@keyframes wishIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 封面 ---------- */
.cover {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  min-height: var(--app-height);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
  background: #2a3a1c;
}

.cover__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.cover__media picture,
.cover__media img {
  display: block;
  width: 100%;
  height: 100%;
}

.cover__media img {
  object-fit: cover;
  object-position: 72% 58%;
  filter: saturate(0.92) contrast(1.02);
  transform: scale(1.1);
  animation: coverDrift 22s linear forwards;
}

@keyframes coverDrift {
  from { transform: scale(1.1); }
  to { transform: scale(1) translate3d(0, -1.2%, 0); }
}

.cover__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg,
      rgba(24, 20, 16, 0.28) 0%,
      rgba(24, 20, 16, 0.04) 18%,
      rgba(247, 244, 238, 0) 42%,
      rgba(247, 244, 238, 0.5) 66%,
      rgba(247, 244, 238, 0.9) 82%,
      var(--ivory) 95%);
}

.cover__frame {
  position: absolute;
  inset: 13px;
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(250, 247, 240, 0.42);
}

.cover__frame::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(184, 150, 94, 0.28);
}

.cover__body {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 0 30px calc(28px + var(--sab));
  text-align: center;
}

.cover__eyebrow {
  animation: rise 1s var(--ease) 0.15s both;
}

.names {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  margin: 14px 0 0;
  font-size: clamp(38px, 10.5vw, 52px);
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.3;
  animation: rise 1.1s var(--ease) 0.45s both;
}

.names__amp {
  font-size: 0.4em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--gold-deep);
  transform: translateY(-0.12em);
}

.cover__rule {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  margin: 18px auto 0;
  animation: rise 1s var(--ease) 1.05s both;
}

.cover__rule::before,
.cover__rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(143, 116, 71, 0.5);
}

.cover__rule i {
  width: 5px;
  height: 5px;
  margin: 0 10px;
  border: 1px solid var(--gold-deep);
  transform: rotate(45deg);
}

.cover__date {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  margin: 16px 0 0;
  font-size: 14px;
  letter-spacing: 0.28em;
  animation: rise 1s var(--ease) 1.45s both;
}

.cover__date em {
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.cover__lunar,
.cal__lunar,
.footer__lunar {
  margin: 8px 0 0;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--gold-deep);
}

.cover__lunar {
  animation: rise 1s var(--ease) 1.85s both;
}

.cover__quote {
  margin: 10px 0 0;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--muted);
  animation: rise 1s var(--ease) 0.72s both;
}

.scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: 0.36em;
  text-decoration: none;
  color: var(--gold-deep);
  animation: rise 1s var(--ease) 2.2s both;
}

.scroll-cue i {
  width: 1px;
  height: 26px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: cue 2.4s ease-in-out infinite;
}

@keyframes cue {
  0%, 100% { transform: scaleY(0.55); transform-origin: 50% 0; opacity: 0.5; }
  50% { transform: scaleY(1); transform-origin: 50% 0; opacity: 1; }
}

/* ---------- 新人头像 ---------- */
.couple {
  padding-bottom: 56px;
}

.couple__pair {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(28px, 8vw, 52px);
  max-width: 460px;
  margin: 40px auto 0;
}

.couple__person {
  width: clamp(118px, 36vw, 156px);
  margin: 0;
  text-align: center;
}

.couple__avatar {
  padding: 5px;
  border: 1px solid rgba(178, 147, 95, 0.75);
  border-radius: 50%;
  background: #fbf8f2;
  box-shadow: 0 18px 36px -24px rgba(43, 40, 35, 0.55);
}

.couple__avatar picture {
  display: block;
  overflow: hidden;
  border-radius: 50%;
  background: #e6dfd2;
}

.couple__avatar img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.couple__role {
  margin: 16px 0 0;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--ink);
}

.couple__name {
  margin: 8px 0 0;
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: 0.18em;
}

.couple__zh {
  margin: 2px 0 0;
  font-size: 12px;
  letter-spacing: 0.42em;
  color: var(--muted);
}

.couple__heart {
  position: absolute;
  left: 50%;
  top: calc(clamp(118px, 36vw, 156px) * 0.58);
  z-index: 1;
  color: #9a3d3d;
  line-height: 0;
  transform: translate(-50%, -50%);
}

.js .couple__heart {
  animation: heartIn 0.9s var(--ease) 0.2s both;
}

@keyframes heartIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.couple__line {
  max-width: 320px;
  margin: 28px auto 0;
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

.story__couple {
  padding: 36px 24px 72px;
}

.story__couple .couple__pair {
  margin-top: 0;
}

/* ---------- 邀请函 ---------- */
.invitation {
  padding-top: 28px;
  padding-bottom: 64px;
}

.invitation__card {
  position: relative;
  max-width: 470px;
  margin: 28px auto 0;
  padding: 32px 22px 36px;
  background-color: #fbf8f2;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 30%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #fbf8f2 0%, #f3ecdf 100%);
  border: 1px solid rgba(178, 147, 95, 0.28);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 26px 48px -30px rgba(43, 40, 35, 0.62),
    0 8px 16px -12px rgba(43, 40, 35, 0.28);
}

.invitation__card::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(178, 147, 95, 0.18);
  pointer-events: none;
}

.invitation__photo {
  position: relative;
  margin: 0 0 34px;
}

.invitation__photo picture {
  position: relative;
  z-index: 1;
  display: block;
  background: #e6dfd2;
  box-shadow: 0 26px 50px -32px rgba(43, 40, 35, 0.5);
}

.invitation__photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.invitation__photo-line {
  position: absolute;
  inset: 14px -10px -14px 10px;
  border: 1px solid rgba(178, 147, 95, 0.4);
  z-index: 0;
}

.invitation__text {
  padding: 0 6px;
  text-align: center;
}

.invitation__text p {
  margin: 0 0 15px;
  font-size: 14.5px;
  line-height: 2.05;
  color: var(--ink-soft);
}

.salutation {
  margin-bottom: 20px !important;
  font-size: 15px !important;
  letter-spacing: 0.12em;
  color: var(--gold-deep) !important;
}

.invitation__note {
  margin-top: 26px !important;
  font-size: 13px !important;
  letter-spacing: 0.05em;
  color: var(--muted) !important;
}

.signature {
  margin: 30px 0 0 !important;
  font-size: 17px;
  letter-spacing: 0.16em;
  color: var(--ink) !important;
}

.signature span {
  display: inline-block;
  margin-left: 10px;
  font-size: 9px;
  letter-spacing: 0.26em;
  color: var(--gold-deep);
  vertical-align: middle;
}

/* ---------- 婚礼详情 ---------- */
.details {
  background: #2c2824;
  color: #f4efe6;
  border-top: 0;
  border-bottom: 0;
}

.cal {
  position: relative;
  max-width: 360px;
  margin: 36px auto 0;
  padding: 26px 16px 18px;
  text-align: center;
  background: linear-gradient(180deg, #fdfbf7, #f6f1e8);
  border: 1px solid var(--line);
}

.cal::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(178, 147, 95, 0.24);
  pointer-events: none;
}

.cal__head {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
}

.cal__year {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 16px;
  letter-spacing: 0.2em;
  color: rgba(143, 116, 71, 0.78);
}

.cal__month {
  margin: 0;
  line-height: 0.9;
}

.cal__month b {
  font-size: 52px;
  font-weight: 400;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.cal__month span {
  margin-left: 2px;
  font-size: 18px;
  letter-spacing: 0.12em;
}

.cal__weeks,
.cal__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.cal__weeks {
  margin: 18px 10px 0;
  padding: 6px 0;
  border-radius: 999px;
  background: #3a342c;
  color: #f6f1e6;
  font-size: 12px;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

.cal__days {
  margin: 8px 6px 0;
  font-variant-numeric: tabular-nums;
}

.cal__days li {
  display: grid;
  place-items: center;
  height: 34px;
  font-size: 14px;
  color: var(--ink-soft);
}

.cal__days span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.cal__days .is-mark {
  background: var(--gold-deep);
  color: #f7f4ee;
}

.cal__foot {
  margin: 12px 14px 0;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}

.countdown {
  max-width: 400px;
  margin: 24px auto 0;
  text-align: center;
}

.countdown__label {
  margin: 0;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.28em;
  color: var(--muted);
}

.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
}

.countdown__grid > div {
  padding: 13px 4px 11px;
  border-right: 1px solid var(--line-soft);
}

.countdown__grid > div:last-child { border-right: 0; }

.countdown__grid b {
  display: block;
  font-size: clamp(20px, 5.6vw, 26px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.countdown__grid span {
  display: block;
  margin-top: 3px;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.venue {
  max-width: 400px;
  margin: 42px auto 0;
  text-align: center;
}

.venue h3 {
  margin: 8px 0 0;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.6;
}

.venue__room[hidden] {
  display: none;
}

.venue__room {
  margin: 2px 0 0;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

.venue__addr {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}

.venue__tip {
  margin: 8px 0 0;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: rgba(111, 103, 92, 0.72);
}

.venue__actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
              border-color 0.3s var(--ease), transform 0.2s var(--ease);
}

.btn:active { transform: scale(0.97); }

.btn--solid {
  background: var(--ink);
  border-color: var(--ink);
  color: #f7f3ea;
}

.btn--solid:hover {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(43, 40, 35, 0.3);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold-deep);
}

.timeline {
  max-width: 400px;
  margin: 46px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
}

.timeline__title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0;
}

.timeline__title span {
  font-size: 13px;
  letter-spacing: 0.18em;
}

.timeline__title em {
  font-family: var(--sans);
  font-style: normal;
  font-size: 8px;
  letter-spacing: 0.3em;
  color: var(--gold-deep);
}

.timeline__list {
  margin: 18px 0 0;
  padding: 0 0 0 4px;
  list-style: none;
}

.timeline__list li {
  position: relative;
  display: flex;
  gap: 24px;
  padding: 0 0 22px 22px;
}

.timeline__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

.timeline__list li::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 18px;
  bottom: 0;
  width: 1px;
  background: var(--line-soft);
}

.timeline__list li:last-child { padding-bottom: 0; }
.timeline__list li:last-child::after { display: none; }

.timeline__list time {
  flex: none;
  width: 58px;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--gold-deep);
  font-variant-numeric: tabular-nums;
}

.timeline__list span {
  font-size: 13.5px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

/* ---------- 图文过渡 ---------- */
.interlude {
  position: relative;
  display: grid;
  place-items: end center;
  height: 62svh;
  min-height: 420px;
  max-height: 620px;
  overflow: hidden;
  isolation: isolate;
}

.interlude__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #e6dfd2;
}

.interlude__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  filter: brightness(0.84) saturate(0.9);
}

.interlude__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg,
    rgba(26, 22, 18, 0.34) 0%,
    rgba(26, 22, 18, 0.16) 42%,
    rgba(26, 22, 18, 0.5) 100%);
}

.interlude blockquote {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0 28px clamp(40px, 7vh, 64px);
  text-align: center;
  color: #fcf8f0;
}

.interlude blockquote .eyebrow {
  color: rgba(247, 239, 225, 0.75);
}

.interlude__quote {
  margin: 16px 0 20px;
  font-size: clamp(27px, 7.6vw, 34px);
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: 0.18em;
  text-shadow: 0 2px 26px rgba(0, 0, 0, 0.35);
}

.interlude__cite {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.3em;
  color: rgba(247, 239, 225, 0.75);
}

/* ---------- 相册 ---------- */
.gallery__intro {
  max-width: 420px;
  margin: 18px auto 0;
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.gallery__flow {
  max-width: 470px;
  margin: 28px auto 0;
}

.gallery__chapter + .gallery__chapter {
  margin-top: 40px;
}

.gallery__chapter > * + * {
  margin-top: 8px;
}

.gallery__chapter > .gallery__label + * {
  margin-top: 14px;
}

.gallery__label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  color: var(--gold-deep);
}

.gallery__label span {
  letter-spacing: 0.34em;
  margin-right: -0.34em;
}

.gallery__label::before,
.gallery__label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(178, 147, 95, 0.55), transparent);
}

.gallery__row {
  display: grid;
  gap: 8px;
  align-items: start;
}

.gallery__row--split {
  grid-template-columns: minmax(0, 1.7fr) minmax(72px, 0.8fr);
  align-items: center;
}

.gallery__row--asymm,
.gallery__row--pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery__stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.gallery__aside {
  margin: 0;
  writing-mode: vertical-rl;
  text-align: center;
  font-size: 15px;
  letter-spacing: 0.46em;
  text-indent: 0.46em;
  color: var(--ink-soft);
}

.gallery__chapter > .gallery__foot {
  margin-top: 14px;
}

.gallery__foot {
  margin: 0;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: var(--gold-deep);
}

.tile {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 1px;
  overflow: hidden;
  background: #e3dbcd;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
}

.tile--wide { aspect-ratio: 3 / 2; }
.tile--portrait { aspect-ratio: 2 / 3; }
.tile--natural { aspect-ratio: 5 / 4; }
.tile--feature { aspect-ratio: 4 / 5; }

.tile--hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 32%;
  background: linear-gradient(180deg, transparent, rgba(26, 22, 18, 0.42));
  pointer-events: none;
}

.tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, 50% 42%);
  opacity: 0;
  pointer-events: none;
  -webkit-touch-callout: none;
  transition: opacity 0.8s ease;
}

.tile img.is-loaded {
  opacity: 1;
}

.tile__cap {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 2;
  font-size: 14px;
  letter-spacing: 0.22em;
  color: rgba(252, 248, 240, 0.94);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.gallery__hint {
  margin: 22px 0 0;
  text-align: center;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: rgba(111, 103, 92, 0.75);
}

/* ---------- 祝福留言 ---------- */
.wishes {
  background: linear-gradient(180deg, #f7f4ee 0%, #f1ebdf 100%);
  border-top: 1px solid var(--line-soft);
}

.wishes__intro {
  max-width: 420px;
  margin: 20px auto 30px;
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.wish-form {
  position: relative;
  max-width: 470px;
  margin: 0 auto;
  padding: 22px 20px 24px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -48px rgba(43, 40, 35, 0.55);
}

.wish-form::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(178, 147, 95, 0.16);
  pointer-events: none;
}

.field {
  position: relative;
  margin-bottom: 20px;
}

.field label {
  display: block;
  margin-bottom: 4px;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.field input,
.field textarea,
.field select {
  display: block;
  width: 100%;
  padding: 8px 0 10px;
  border: 0;
  border-bottom: 1px solid rgba(43, 40, 35, 0.2);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.8;
  outline: none;
  transition: border-color 0.3s var(--ease);
}

.field textarea {
  min-height: 78px;
  padding-right: 44px;
  resize: none;
}

.field select {
  appearance: none;
}

.btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.rsvp__choice {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.rsvp__choice legend {
  margin-bottom: 8px;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.28em;
  color: var(--gold-deep);
}

.rsvp__choice label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 18px;
  font-size: 15px;
  letter-spacing: 0.06em;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.admin {
  max-width: 640px;
  min-height: 100vh;
  padding: 48px 24px 72px;
}

.admin h1 {
  margin: 12px 0 0;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.admin__lead,
.admin__msg,
.admin__summary {
  color: var(--muted);
  letter-spacing: 0.04em;
}

.admin__gate {
  margin-top: 28px;
}

.admin__summary {
  margin: 22px 0 0;
  color: var(--ink);
}

.admin__list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.admin__card {
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line-soft);
}

.admin__card h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.admin__card p,
.admin__card time {
  margin: 6px 0 0;
  color: var(--ink-soft);
}

.admin__card time {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-bottom-color: var(--gold);
}

.field input::placeholder,
.field textarea::placeholder {
  font-size: 13px;
  letter-spacing: 0.05em;
  color: #a9a093;
}

.counter {
  position: absolute;
  right: 2px;
  bottom: 8px;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: #a9a093;
}

.counter b { font-weight: 400; }

.wish-form__submit {
  width: 100%;
  margin-top: 2px;
}

.wish-list {
  display: grid;
  gap: 10px;
  max-width: 470px;
  margin: 26px auto 0;
}

.wish {
  padding: 17px 18px 12px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line-soft);
}

.wish.is-new {
  animation: wishIn 0.6s var(--ease) both;
}

.wish__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.wish__name {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: #3b362f;
}

.wish__avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(178, 147, 95, 0.35);
  border-radius: 50%;
  background: #efe8da;
  font-size: 11px;
  letter-spacing: 0;
  color: var(--gold-deep);
}

.wish__name span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wish__time {
  flex: none;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: #a9a093;
}

.wish__text {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.95;
  color: var(--ink-soft);
  word-break: break-word;
}

.wish__like {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  margin-top: 7px;
  padding: 4px 0;
  border: 0;
  background: none;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: #a9a093;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.3s var(--ease);
}

.wish__like svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s var(--ease);
}

.wish__like:hover { color: var(--gold-deep); }

.wish__like.is-liked { color: var(--gold-deep); }
.wish__like.is-liked svg { fill: currentColor; animation: heartPop 0.45s var(--ease); }

.wishes__note {
  max-width: 470px;
  margin: 22px auto 0;
  text-align: center;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: rgba(111, 103, 92, 0.72);
}

/* ---------- 页脚 ---------- */
.footer {
  padding: 62px 24px calc(88px + var(--sab));
  text-align: center;
  background: var(--ivory-deep);
  border-top: 1px solid var(--line-soft);
}

.footer__seal {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 20px;
  border: 1px solid rgba(178, 147, 95, 0.55);
  font-size: 22px;
  color: var(--gold-deep);
}

.footer__seal::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(178, 147, 95, 0.3);
}

.footer__names {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.2em;
}

.footer__date {
  margin: 6px 0 0;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--muted);
}

.footer__lunar {
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.18em;
}

.footer__line {
  margin: 14px 0 0;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.footer__top {
  display: inline-block;
  margin-top: 22px;
  padding: 6px 0;
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: 0.3em;
  text-decoration: none;
  color: var(--gold-deep);
}

/* ---------- 音乐按钮 ---------- */
.music-btn {
  position: fixed;
  top: calc(14px + var(--sat));
  right: calc(14px + var(--sar));
  z-index: 115;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(143, 116, 71, 0.45);
  border-radius: 50%;
  background: rgba(247, 244, 238, 0.8);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--gold-deep);
  cursor: pointer;
  box-shadow: 0 8px 24px -10px rgba(43, 40, 35, 0.35);
  -webkit-tap-highlight-color: transparent;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.music-btn:active { transform: scale(0.94); }

.music-btn__ring {
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(178, 147, 95, 0.35);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.music-note {
  width: 18px;
  height: 18px;
  position: relative;
  z-index: 1;
  opacity: 0.55;
  transition: opacity 0.3s var(--ease);
}

.music-btn::before {
  content: "";
  position: absolute;
  z-index: 2;
  width: 20px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
  transform: rotate(-45deg);
  transition: opacity 0.3s var(--ease);
}

.music-btn.is-playing .music-note {
  opacity: 1;
  animation: notePulse 2.6s ease-in-out infinite;
}

.music-btn.is-playing::before { opacity: 0; }

@keyframes notePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.music-btn.is-playing .music-btn__ring {
  opacity: 1;
  border-color: rgba(178, 147, 95, 0.16);
  border-top-color: rgba(178, 147, 95, 0.7);
  animation: spin 5s linear infinite;
}

.music-btn.is-disabled { display: none; }

.music-hint {
  position: fixed;
  top: auto;
  bottom: calc(18px + var(--sab));
  left: calc(16px + var(--sal));
  right: auto;
  z-index: 114;
  padding: 7px 12px;
  border: 1px solid rgba(178, 147, 95, 0.32);
  border-radius: 999px;
  background: rgba(247, 244, 238, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--gold-deep);
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.1em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  box-shadow: 0 10px 24px -18px rgba(43, 40, 35, 0.45);
}

.music-hint.is-show {
  opacity: 1;
  transform: none;
}

/* ---------- 提示 ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + var(--sab));
  z-index: 120;
  max-width: calc(100vw - 40px - var(--sal) - var(--sar));
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(43, 40, 35, 0.92);
  color: #f7f2e8;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.toast.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- 照片查看器 ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: center;
  padding:
    calc(58px + var(--sat))
    calc(12px + var(--sar))
    calc(44px + var(--sab))
    calc(12px + var(--sal));
  background: rgba(20, 18, 15, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }

.lightbox__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
}

.lightbox__imgwrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.lightbox__imgwrap img {
  display: block;
  max-width: min(94vw, 920px);
  max-height: 78vh;
  max-height: 78svh;
  max-height: 78dvh;
  -webkit-touch-callout: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  object-fit: contain;
  opacity: 0;
  transform: scale(0.985);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.lightbox__imgwrap img.is-loaded {
  opacity: 1;
  transform: none;
}

.lightbox figcaption {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(248, 244, 237, 0.8);
}

#lbCounter {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(248, 244, 237, 0.5);
}

.lightbox__close,
.lightbox__arrow {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.3s ease;
}

.lightbox__close:hover,
.lightbox__arrow:hover { color: #fff; }

.lightbox__close {
  top: calc(8px + var(--sat));
  right: calc(8px + var(--sar));
  width: 44px;
  height: 44px;
  font-size: 28px;
  line-height: 1;
}

.lightbox__arrow {
  top: 50%;
  width: 44px;
  height: 64px;
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1;
  transform: translateY(-50%);
}

.lightbox__arrow--prev { left: calc(2px + var(--sal)); }
.lightbox__arrow--next { right: calc(2px + var(--sar)); }

.lightbox__hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(14px + var(--sab));
  margin: 0;
  text-align: center;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- 赴宴须知 ---------- */
.guide {
  max-width: 400px;
  margin: 42px auto 0;
}

.guide__list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.guide__list li {
  display: grid;
  grid-template-columns: 4.5em 1fr;
  gap: 8px 12px;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
}

.guide__list li:last-child {
  border-bottom: 1px solid var(--line-soft);
}

.guide__list span {
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--gold-deep);
}

.guide__list p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* ---------- 详情深色带 ---------- */
.details .sec-head h2,
.details .venue h3,
.details .countdown__grid b {
  color: #f7f4ee;
}

.details .eyebrow,
.details .timeline__title em,
.details .guide__list span,
.details .timeline__list time {
  color: #e4d2aa;
}

.details .venue__room,
.details .timeline__list span,
.details .guide__list p,
.details .timeline__title span {
  color: rgba(244, 239, 230, 0.88);
}

.details .countdown__label,
.details .venue__addr,
.details .venue__tip,
.details .countdown__grid span {
  color: rgba(244, 239, 230, 0.62);
}

.details .ornament span {
  background: linear-gradient(90deg, transparent, rgba(228, 210, 170, 0.75), transparent);
}

.details .ornament i {
  border-color: rgba(228, 210, 170, 0.85);
}

.details .cal {
  color: var(--ink);
  box-shadow: 0 24px 40px -28px rgba(0, 0, 0, 0.7);
}

.details .cal__month b,
.details .cal__month span {
  color: var(--ink);
}

.details .countdown__grid {
  border-color: rgba(244, 239, 230, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.details .countdown__grid > div {
  border-right-color: rgba(244, 239, 230, 0.12);
}

.details .timeline,
.details .guide__list li {
  border-color: rgba(244, 239, 230, 0.14);
}

.details .timeline__list li::after {
  background: rgba(244, 239, 230, 0.16);
}

.details .btn--solid {
  background: #f4efe6;
  border-color: #f4efe6;
  color: #2c2824;
}

.details .btn--solid:hover {
  background: #e7d7b0;
  border-color: #e7d7b0;
  color: #2c2824;
}

.details .btn--ghost {
  border-color: rgba(244, 239, 230, 0.38);
  color: #f4efe6;
}

.details .btn--ghost:hover {
  border-color: #e4d2aa;
  color: #f7f4ee;
}

.venue__map {
  position: relative;
  display: block;
  max-width: 400px;
  margin: 18px auto 0;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid rgba(244, 239, 230, 0.22);
}

.venue__map picture,
.venue__map img {
  display: block;
  width: 100%;
}

.venue__map img {
  height: 196px;
  object-fit: cover;
  object-position: center 46%;
}

.venue__map span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 9px;
  background: rgba(44, 40, 36, 0.78);
  color: #f7f4ee;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.14em;
  line-height: 1.4;
}

/* ---------- 祝福飘字 ---------- */
.wish-sky {
  max-width: 520px;
  margin: 26px auto 8px;
}

.wish-sky__bar {
  display: flex;
  justify-content: flex-end;
}

.wish-sky__toggle {
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--gold-deep);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  cursor: pointer;
}

.wish-lanes {
  margin-top: 8px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.wish-sky.is-off .wish-lanes {
  display: none;
}

.wish-lane {
  overflow: hidden;
  margin: 8px 0;
}

.wish-lane__track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: wishDrift var(--dur, 32s) linear infinite;
}

.wish-lane:nth-child(2) .wish-lane__track {
  animation-duration: calc(var(--dur, 32s) + 6s);
}

.wish-sky:hover .wish-lane__track {
  animation-play-state: paused;
}

.wish-lane__track span {
  flex: none;
  padding: 6px 14px;
  border: 1px solid rgba(178, 147, 95, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: 0.04em;
  line-height: 1.6;
  white-space: nowrap;
}

@keyframes wishDrift {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- 出席入口 ---------- */
.action-dock {
  position: fixed;
  right: calc(16px + var(--sar));
  bottom: calc(16px + var(--sab));
  z-index: 90;
  display: flex;
  overflow: hidden;
  border-radius: 999px;
  box-shadow: 0 12px 28px -16px rgba(43, 40, 35, 0.7);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.action-dock a {
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.action-dock__nav {
  background: rgba(247, 244, 238, 0.96);
  color: #2c2824;
}

.action-dock__rsvp {
  background: #2c2824;
  color: #f7f4ee;
}

.action-dock a[hidden],
.action-dock__rsvp.is-hidden { display: none !important; }

.action-dock.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

html.is-sealed .action-dock {
  opacity: 0;
  pointer-events: none;
}

/* ---------- 拆信开场 ---------- */
.envelope {
  display: none;
}

html.is-sealed .envelope {
  position: fixed;
  inset: 0;
  z-index: 112;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: auto;
  background:
    radial-gradient(circle at 50% 42%, #f3ecdf 0%, #e4dccf 58%, #d9d0c1 100%);
  opacity: 1;
  transition: opacity 0.72s var(--ease);
}

html.is-sealed body {
  position: fixed;
  inset: 0;
  width: 100%;
  overflow: hidden;
}

html.is-sealed .progress {
  opacity: 0;
}

html.is-sealed .envelope.is-leaving {
  opacity: 0;
  pointer-events: none;
}

html.is-sealed .music-hint {
  display: none;
}

.envelope__scene {
  width: min(420px, 100%);
  margin: auto;
  padding: calc(28px + var(--sat)) 24px calc(28px + var(--sab));
  text-align: center;
}

.envelope__mail {
  position: relative;
  width: min(320px, 84vw);
  height: 214px;
  margin: 26px auto 0;
  perspective: 900px;
}

.envelope__letter {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 126px;
  z-index: 1;
  height: 88px;
  padding: 12px 12px 8px;
  overflow: hidden;
  background: #fbf8f2;
  line-height: 1.4;
  box-shadow: 0 10px 24px -18px rgba(43, 40, 35, 0.45);
  transform: none;
  transition: transform 0.9s var(--ease) 0.28s;
}

.envelope.is-opening .envelope__letter {
  transform: translateY(-122px);
}

.envelope__back {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #d5c6ae;
  border-radius: 2px 2px 8px 8px;
  box-shadow: 0 18px 34px -22px rgba(43, 40, 35, 0.55);
}

.envelope__pocket {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(43, 40, 35, 0.05), transparent 26%),
    linear-gradient(165deg, #f4ecdf 0%, #e5d7c2 100%);
  clip-path: polygon(0 46%, 50% 72%, 100% 46%, 100% 100%, 0 100%);
}

.envelope__flap {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 4;
  height: 58%;
  background: linear-gradient(180deg, #f7f1e6 0%, #e6d5bc 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: center top;
  transition: transform 0.85s var(--ease);
  filter: drop-shadow(0 8px 6px rgba(43, 40, 35, 0.08));
}

.envelope.is-opening .envelope__flap {
  z-index: 0;
  transform: rotateX(188deg);
  transition: transform 0.85s var(--ease), z-index 0s linear 0.42s;
}

.envelope__names {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 170px;
  z-index: 3;
  margin: 0;
  font-size: clamp(20px, 5.6vw, 26px);
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.35;
  pointer-events: none;
}

.envelope__open {
  position: absolute;
  left: 50%;
  top: 124px;
  z-index: 5;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transform: translate(-50%, -50%);
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.envelope.is-opening .envelope__open {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.86);
}

.envelope.is-opening .seal {
  animation: none;
}

.envelope__names span {
  display: inline-block;
  margin: 0 0.28em;
  font-family: var(--sans);
  font-size: 0.55em;
  letter-spacing: 0;
  color: var(--gold-deep);
}

.envelope__date {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.18em;
}

.envelope__lunar,
.envelope__letter-line {
  margin: 4px 0 0;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--gold-deep);
}

.envelope__to,
.envelope__meta {
  margin: 14px 0 0;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
}

.envelope__meta {
  margin-top: 4px;
  color: var(--muted);
}

.seal {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #c6aa74 0%, #8f7447 46%, #6d5732 80%);
  color: #f7f3ea;
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: 0;
  line-height: 1;
  box-shadow:
    0 14px 28px -16px rgba(80, 58, 24, 0.8),
    inset 0 0 0 1px rgba(255, 244, 220, 0.35),
    inset 0 0 0 7px rgba(90, 66, 32, 0.28);
  animation: sealPulse 2.8s ease-in-out infinite;
}

.envelope__open:active .seal {
  transform: scale(0.94);
}

.envelope__mail {
  cursor: pointer;
}

.envelope__open-label {
  margin: 16px 0 0;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--gold-deep);
  cursor: pointer;
}

@keyframes sealPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}

/* ---------- 桌面端：居中卡片 ---------- */
@media (min-width: 700px) {
  body {
    background: radial-gradient(circle at 50% 0%, #efe9dd 0%, #ded6c8 70%, #d5cbbc 100%);
  }

  .page {
    max-width: 640px;
    box-shadow: 0 40px 100px -40px rgba(43, 40, 35, 0.55);
  }

  .music-btn {
    right: calc(50% - 306px);
    top: calc(24px + var(--sat));
    width: 44px;
    height: 44px;
  }

  .music-hint {
    top: auto;
    bottom: calc(18px + var(--sab));
    left: max(16px, calc(50% - 304px));
    right: auto;
  }

  .section { padding-left: 40px; padding-right: 40px; }

  .cover__body { padding-bottom: calc(32px + var(--sab)); }

  .lightbox__arrow--prev { left: max(var(--sal), calc(50% - 470px)); }
  .lightbox__arrow--next { right: max(var(--sar), calc(50% - 470px)); }

  .action-dock { right: max(16px, calc(50% - 304px)); }
}

@media (min-width: 1000px) {
  .section { padding-top: 96px; padding-bottom: 96px; }
}

/* ---------- 小屏 / 矮屏 / 横屏 ---------- */
@media (max-width: 480px) {
  .section { padding-left: 20px; padding-right: 20px; }
  .names { max-width: 100%; }
}

@media (max-height: 640px) {
  .cover__body { padding-top: 16px; }
  .cover__quote { display: none; }
  .scroll-cue { margin-top: 14px; }
  .names { font-size: 34px; }
  .cover__date { margin-top: 10px; }
}

@media (max-height: 520px) and (orientation: landscape) {
  .cover {
    min-height: 0;
    padding-top: var(--sat);
  }

  .section { padding-top: 48px; padding-bottom: 48px; }
  .names { font-size: 32px; }
  .lightbox__imgwrap img { max-height: 68dvh; }
}

@media (max-width: 360px) {
  .section { padding-left: 16px; padding-right: 16px; }
  .names {
    gap: 0.2em;
    font-size: clamp(30px, 9vw, 36px);
    letter-spacing: 0.08em;
  }
  .sec-head h2,
  .interlude__quote { letter-spacing: 0.1em; }
  .cover__body { padding-left: 18px; padding-right: 18px; }
  .cal { padding-left: 8px; padding-right: 8px; }
  .cal__month b { font-size: 44px; }
  .venue__actions { gap: 8px; }
  .btn { padding: 0 14px; letter-spacing: 0.12em; }
  .couple__pair { gap: 18px; }
}

@media (max-width: 320px) {
  .countdown__grid > div { padding-left: 2px; padding-right: 2px; }
  .footer__names { letter-spacing: 0.12em; }
}

/* ---------- 减少动态效果 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .cover__media img,
  .wish-lane__track {
    animation: none !important;
    transform: none !important;
  }
}