/* =========================================================
   婚礼请柬 · 现代极简 + 轻奢
   配色：米白 / 浅灰 / 金色点缀
   ========================================================= */

@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);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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;
}

body.is-locked { overflow: hidden; }

img { max-width: 100%; }

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.035;
  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);
}

main { display: block; }

/* ---------- 顶部阅读进度 ---------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  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__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: translateY(26px);
  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 coverZoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.1); }
}

@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;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
  background: #b7aa98;
}

.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: 50% 38%;
  filter: saturate(0.92) contrast(1.02);
  animation: coverZoom 26s var(--ease) both;
  will-change: transform;
}

.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(22px + env(safe-area-inset-bottom));
  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.3s 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) 0.5s 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) 0.6s both;
}

.cover__date em {
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.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) 0.9s 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; }
}

/* ---------- 邀请函 ---------- */
.invitation {
  padding-top: 86px;
}

.invitation__card {
  position: relative;
  max-width: 470px;
  margin: 38px auto 0;
  padding: 16px 16px 38px;
  background: linear-gradient(180deg, #fbf8f2 0%, #f6f1e6 100%);
  border: 1px solid var(--line-soft);
}

.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;
  box-shadow: 0 26px 50px -32px rgba(43, 40, 35, 0.5);
}

.invitation__photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 37%;
}

.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: linear-gradient(180deg, #f7f4ee 0%, #f2ede3 55%, #f7f4ee 100%);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.date-card {
  position: relative;
  max-width: 330px;
  margin: 36px auto 0;
  padding: 26px 20px 22px;
  text-align: center;
  background: linear-gradient(180deg, #fdfbf7, #f6f1e8);
  border: 1px solid var(--line);
}

.date-card::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(178, 147, 95, 0.24);
  pointer-events: none;
}

.date-card__month {
  margin: 0;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.36em;
  color: var(--gold-deep);
}

.date-card__day {
  margin: 2px 0 0;
  font-size: 76px;
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
}

.date-card__week {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--muted);
}

.date-card__time {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  letter-spacing: 0.18em;
}

.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 {
  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: 74svh;
  min-height: 460px;
  max-height: 700px;
  overflow: hidden;
  isolation: isolate;
}

.interlude__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.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__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-width: 470px;
  margin: 34px auto 0;
}

.tile {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 1px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #e3dbcd;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}

.tile--wide {
  grid-column: span 2;
  aspect-ratio: 3 / 2;
}

.tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 0.8s ease, transform 1.2s var(--ease);
}

.tile img.is-loaded {
  opacity: 1;
  transform: none;
}

.tile:hover img { transform: scale(1.035); }

.tile__num {
  position: absolute;
  left: 9px;
  top: 8px;
  z-index: 2;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.tile--seal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  cursor: default;
  background: linear-gradient(145deg, #f8f3e8, #ece3d3);
  border: 1px solid rgba(178, 147, 95, 0.22);
}

.seal-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(178, 147, 95, 0.55);
  border-radius: 50%;
  font-size: 22px;
  color: var(--gold-deep);
}

.seal-ring::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(178, 147, 95, 0.3);
  border-radius: 50%;
}

.tile--seal p {
  margin: 0;
  font-family: var(--sans);
  font-size: 8px;
  line-height: 2.1;
  letter-spacing: 0.28em;
  text-align: center;
  color: var(--gold-deep);
}

.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 {
  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: 15px;
  line-height: 1.8;
  outline: none;
  transition: border-color 0.3s var(--ease);
}

.field textarea {
  min-height: 78px;
  padding-right: 44px;
  resize: none;
}

.field input:focus,
.field textarea: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(38px + env(safe-area-inset-bottom));
  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__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 + env(safe-area-inset-top));
  right: 14px;
  z-index: 115;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  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: calc(64px + env(safe-area-inset-top));
  right: 12px;
  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 + env(safe-area-inset-bottom));
  z-index: 120;
  max-width: calc(100vw - 40px);
  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 + env(safe-area-inset-top)) 12px calc(44px + env(safe-area-inset-bottom));
  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(86vw, 880px);
  max-height: 69svh;
  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 + env(safe-area-inset-top));
  right: 8px;
  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: 2px; }
.lightbox__arrow--next { right: 2px; }

.lightbox__hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(14px + env(safe-area-inset-bottom));
  margin: 0;
  text-align: center;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- 桌面端：居中卡片 ---------- */
@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: 24px;
    width: 44px;
    height: 44px;
  }

  .music-hint {
    top: 76px;
    right: calc(50% - 308px);
  }

  .section { padding-left: 40px; padding-right: 40px; }

  .cover__body { padding-bottom: 32px; }

  .lightbox__arrow--prev { left: calc(50% - 470px); }
  .lightbox__arrow--next { right: calc(50% - 470px); }
}

@media (min-width: 1000px) {
  .section { padding-top: 96px; padding-bottom: 96px; }
}

/* ---------- 小屏 / 矮屏 ---------- */
@media (max-height: 640px) {
  .cover__body { padding-top: 24vh; }
  .cover__quote { display: none; }
  .scroll-cue { margin-top: 14px; }
  .names { font-size: 34px; }
  .cover__date { margin-top: 10px; }
}

@media (max-width: 360px) {
  .names { gap: 0.25em; letter-spacing: 0.1em; }
  .venue__actions { gap: 8px; }
  .btn { padding: 0 18px; }
}

/* ---------- 减少动态效果 ---------- */
@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;
  }
}