/* ========================================================================
   朱凌涛 & 费凡 婚礼 H5 — 样式表
   - 设计 token：奶杏/焦糖/墨黑
   - 移动优先（iPhone 14/15 标准 390px）
   - 6 区块布局：hero / invite / story / gallery / details / end
   ======================================================================== */

/* ========== Design Tokens ========== */
:root {
  --c-cream:    #F5EDE0;   /* 主背景 */
  --c-cream-2:  #EFE4D2;   /* 次背景 */
  --c-caramel:  #8B6F47;   /* 焦糖棕，标题 */
  --c-caramel-l:#B59473;   /* 焦糖浅 */
  --c-ink:      #1A1A1A;   /* 墨黑 */
  --c-ink-2:    #2A2A2A;
  --c-muted:    #8A7E6E;   /* 次要文字 */
  --c-line:     rgba(26,26,26,0.08);
  --c-line-light: rgba(255,255,255,0.12);

  --f-serif: 'Noto Serif SC', 'Songti SC', 'STSong', -apple-system, 'PingFang SC', serif;
  --f-sans:  'Noto Sans SC', -apple-system, 'PingFang SC', 'Hiragino Sans GB', sans-serif;

  --pad-x: 24px;
  --max-w: 480px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --t-fast: 200ms;
  --t-mid:  400ms;
  --t-slow: 800ms;
}

/* ========== Reset & Base ========== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}
body {
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.8;
  color: var(--c-ink);
  background: var(--c-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
}
img { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ========== Scroll Progress ========== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: transparent;
  z-index: 100;
  pointer-events: none;
}
.scroll-progress__bar {
  height: 100%;
  width: 0;
  background: var(--c-caramel);
  transition: width 100ms linear;
}

/* ========== Section Common ========== */
.section {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.section--cream { background: var(--c-cream); }
.section--ink   { background: var(--c-ink); color: #F2EBDF; }
.section--padded { padding-bottom: 0; }

.section__inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px var(--pad-x);
}

.section__eyebrow {
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--c-caramel);
  text-transform: uppercase;
  margin: 0 0 16px;
  text-align: center;
}
.section__eyebrow--light { color: var(--c-caramel-l); }

.section__title {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.3;
  color: var(--c-ink);
  margin: 0 0 48px;
  text-align: center;
  letter-spacing: 0.04em;
}
.section__title--light { color: #F2EBDF; }

/* ========== Reveal (滚动渐入) ========== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================================================
   1. HERO 开场
   ======================================================================== */
.section#hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: stretch;
  color: #F2EBDF;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg-blur {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(20px);
  transform: scale(1.1);
}
.hero__bg-img,
.hero__bg-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero__bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.15) 35%, rgba(0,0,0,0.55) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px var(--pad-x) 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  min-height: 100dvh;
}

.hero__eyebrow {
  font-family: var(--f-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.4em;
  color: rgba(255,255,255,0.85);
  margin: 0;
  text-transform: uppercase;
}

.hero__title {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: 40px;
  line-height: 1.3;
  margin: 24px 0 0;
  letter-spacing: 0.02em;
  text-align: left;
}
.hero__title-line {
  display: block;
}
.hero__title-line--accent {
  margin-top: 12px;
  font-size: 28px;
  font-weight: 400;
  color: rgba(255,255,255,0.92);
  letter-spacing: 0.12em;
}

.hero__meta {
  margin-top: auto;
  margin-bottom: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.2);
  text-align: right;
}
.hero__meta-row {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 14px;
  margin: 0 0 10px;
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.5;
  color: #fff;
  letter-spacing: 0.04em;
}
.hero__meta-row--sub {
  font-family: var(--f-sans);
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.65);
  padding-left: 0;
  margin-bottom: 18px;
  letter-spacing: 0.1em;
}
.hero__meta-label {
  flex-shrink: 0;
  color: var(--c-caramel-l);
  letter-spacing: 0.18em;
  font-size: 12px;
  font-family: var(--f-sans);
  font-weight: 400;
}
.hero__meta-value {
  font-variant-numeric: tabular-nums;
}

/* 倒计时 */
.hero__countdown {
  margin: 28px 0 0;
  text-align: right;
}
.hero__countdown-label {
  font-size: 11px;
  letter-spacing: 0.32em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  margin: 0 0 14px;
  font-weight: 400;
}
.hero__countdown-grid {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 14px;
}
.hero__countdown-cell {
  display: flex;
  align-items: baseline;
  gap: 3px;
  min-width: 38px;
}
.hero__countdown-num {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: 28px;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  /* 数字变化时微小缩放过渡 */
  display: inline-block;
  transition: transform 300ms var(--ease);
}
.hero__countdown-num.tick {
  animation: tickPulse 600ms var(--ease);
}
@keyframes tickPulse {
  0%   { transform: scale(1); opacity: 1; }
  40%  { transform: scale(1.08); opacity: 0.85; }
  100% { transform: scale(1); opacity: 1; }
}
.hero__countdown-unit {
  font-family: var(--f-sans);
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.1em;
}
/* 大屏（iPad/桌面预览）字号提升 */
@media (min-width: 480px) {
  .hero__countdown-num   { font-size: 32px; }
  .hero__countdown-grid  { gap: 18px; }
  .hero__countdown-cell  { min-width: 44px; }
}
/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  .hero__countdown-num.tick { animation: none; }
}

.hero__scroll-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.2em;
  animation: bounce 2.4s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50%      { transform: translateY(4px); opacity: 1; }
}

/* ========================================================================
   2. INVITE 邀请函
   ======================================================================== */
.invite-card {
  border: 1px solid var(--c-line);
  padding: 32px 24px;
  margin-bottom: 48px;
  background: rgba(255,255,255,0.4);
  backdrop-filter: blur(8px);
}
.invite-card__row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.invite-card__label {
  flex-shrink: 0;
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: 14px;
  color: var(--c-caramel);
  letter-spacing: 0.1em;
  padding-top: 4px;
}
.invite-card__value {
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-ink);
}
.invite-card__divider {
  width: 24px;
  height: 1px;
  background: var(--c-caramel);
  margin: 20px 0;
}

.invite-photo {
  position: relative;
  width: 100%;
  margin: 0 auto 48px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--c-cream-2);
}
.invite-photo__blur {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(20px);
  transform: scale(1.1);
}
.invite-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--t-slow) var(--ease);
}
.invite-photo img.lazy:not(.is-loaded) { opacity: 0; }

.invite-words {
  text-align: center;
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 2;
  color: var(--c-ink);
}
.invite-words__line {
  margin: 0;
}
.invite-words__line em {
  font-style: normal;
  color: var(--c-caramel);
  font-weight: 500;
  letter-spacing: 0.08em;
}
.invite-words__break {
  height: 16px;
}

/* ========================================================================
   3. STORY 爱情故事
   ======================================================================== */
.section--ink .section__inner { padding-top: 80px; padding-bottom: 80px; }

.story-words {
  text-align: center;
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 2.2;
  color: rgba(242,235,223,0.85);
  margin-bottom: 56px;
}
.story-words p {
  margin: 0;
}
.story-words__divider {
  margin: 24px auto !important;
  width: 16px;
  text-align: center;
  color: var(--c-caramel-l);
  font-size: 14px;
}
.story-words__final {
  font-size: 18px;
  color: rgba(242,235,223,0.95);
}
.story-words__final em {
  font-style: normal;
  color: var(--c-caramel-l);
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.08em;
}

.story-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.story-gallery__row {
  display: grid;
  gap: 8px;
}
.story-gallery__row--triple {
  grid-template-columns: repeat(3, 1fr);
}
.story-gallery__row--duo {
  grid-template-columns: repeat(2, 1fr);
}

.story-photo {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #2A2A2A;
}
.story-gallery__row--duo .story-photo { aspect-ratio: 4 / 5; }
.story-photo__blur {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(20px);
  transform: scale(1.1);
}
.story-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--t-slow) var(--ease);
}
.story-photo img.lazy:not(.is-loaded) { opacity: 0; }

/* ========================================================================
   4. GALLERY 横滑相册
   ======================================================================== */
.swiper {
  position: relative;
  width: 100%;
  margin: 0 -24px;
  padding: 0 24px;
}
.swiper__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 var(--pad-x) 8px;
}
.swiper__track::-webkit-scrollbar { display: none; }

.swiper__slide {
  position: relative;
  flex: 0 0 calc(100% - 60px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  scroll-snap-align: center;
  background: var(--c-cream-2);
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.swiper__blur {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(20px);
  transform: scale(1.1);
}
.swiper__slide img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--t-slow) var(--ease);
  pointer-events: none; /* 让长按穿透到 .swiper__slide */
}
.swiper__slide img.lazy:not(.is-loaded) { opacity: 0; }

.swiper__dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
}
.swiper__dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-caramel);
  opacity: 0.25;
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.swiper__dots span.is-active {
  opacity: 1;
  transform: scale(1.4);
}

.swiper__hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 11px;
  color: var(--c-muted);
  letter-spacing: 0.2em;
}

/* ========================================================================
   5. DETAILS 细节特写
   ======================================================================== */
.section--padded { padding-bottom: 80px; }

.detail-showcase {
  position: relative;
  width: 100%;
  margin-bottom: 32px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--c-cream-2);
}
.detail-showcase__blur {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(20px);
  transform: scale(1.1);
}
.detail-showcase__img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: breathe 8s ease-in-out infinite;
  transition: opacity var(--t-slow) var(--ease);
}
.detail-showcase__img--a { animation-delay: 0s; }
.detail-showcase__img--b { animation-delay: 2s; }
.detail-showcase__img.lazy:not(.is-loaded) { opacity: 0; }
@keyframes breathe {
  0%, 100% { transform: scale(1.0); }
  50%      { transform: scale(1.03); }
}

.detail-quote {
  text-align: center;
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.9;
  color: var(--c-ink);
  margin: 48px 0;
  letter-spacing: 0.06em;
}
.detail-quote p { margin: 0; }

/* ========================================================================
   6. END 结尾
   ======================================================================== */
.section--end { padding-bottom: 80px; }

.end-words {
  text-align: center;
  font-family: var(--f-sans);
  font-weight: 300;
  margin-bottom: 48px;
}
.end-words__line {
  margin: 0;
  color: rgba(242,235,223,0.85);
}
.end-words__line--big {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: 36px;
  letter-spacing: 0.18em;
  color: var(--c-caramel-l);
  margin: 16px 0 8px !important;
}
.end-words__line--small {
  font-size: 13px;
  letter-spacing: 0.4em;
  color: rgba(242,235,223,0.6);
}

.end-divider {
  width: 32px;
  height: 1px;
  background: var(--c-caramel-l);
  margin: 48px auto;
  opacity: 0.6;
}

.end-nav {
  margin-bottom: 56px;
}
.end-nav__title {
  text-align: center;
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: 13px;
  color: rgba(242,235,223,0.6);
  letter-spacing: 0.3em;
  margin: 0 0 24px;
}
.end-nav__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.end-nav__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 12px;
  border: 1px solid rgba(242,235,223,0.18);
  background: rgba(255,255,255,0.03);
  color: #F2EBDF;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
  min-height: 72px;
}
.end-nav__btn:hover,
.end-nav__btn:focus-visible {
  background: rgba(255,255,255,0.08);
  border-color: var(--c-caramel-l);
  transform: translateY(-2px);
  outline: none;
}
.end-nav__btn-name {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.1em;
}
.end-nav__btn-sub {
  font-size: 11px;
  color: rgba(242,235,223,0.5);
  margin-top: 4px;
  letter-spacing: 0.05em;
}

.end-rsvp {
  text-align: center;
  margin-bottom: 48px;
}
.end-rsvp__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: transparent;
  color: var(--c-caramel-l);
  border: 1px solid var(--c-caramel-l);
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.2em;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.end-rsvp__btn:hover,
.end-rsvp__btn:focus-visible {
  background: var(--c-caramel-l);
  color: var(--c-ink);
  outline: none;
}
.end-rsvp__btn-icon { display: inline-flex; }
.end-rsvp__hint {
  margin: 12px 0 0;
  font-size: 12px;
  color: rgba(242,235,223,0.5);
  letter-spacing: 0.15em;
}

.end-foot {
  text-align: center;
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.4em;
  color: rgba(242,235,223,0.4);
  margin: 32px 0 0;
}

/* ========================================================================
   Music Button
   ======================================================================== */
.music-btn {
  position: fixed;
  right: 20px;
  bottom: 28px;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--c-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-caramel);
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.music-btn:hover { transform: scale(1.06); }
.music-btn:active { transform: scale(0.95); }

.music-btn__icon { display: none; }
.music-btn[aria-pressed="false"] .music-btn__icon--off,
.music-btn[aria-pressed="true"]  .music-btn__icon--on { display: block; }

.music-btn__equalizer {
  display: none;
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 8px;
  align-items: flex-end;
  justify-content: space-between;
}
.music-btn[aria-pressed="true"] .music-btn__equalizer { display: flex; }
.music-btn__equalizer span {
  display: block;
  width: 2px;
  background: var(--c-caramel);
  animation: eq 1s ease-in-out infinite;
}
.music-btn__equalizer span:nth-child(1) { animation-delay: 0s;   height: 30%; }
.music-btn__equalizer span:nth-child(2) { animation-delay: 0.2s; height: 70%; }
.music-btn__equalizer span:nth-child(3) { animation-delay: 0.4s; height: 50%; }
.music-btn__equalizer span:nth-child(4) { animation-delay: 0.6s; height: 90%; }
@keyframes eq {
  0%, 100% { transform: scaleY(0.4); }
  50%      { transform: scaleY(1); }
}

/* ========================================================================
   RSVP Dialog
   ======================================================================== */
.rsvp-dialog {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.rsvp-dialog[hidden] { display: none; }

.rsvp-dialog__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  animation: fadeIn var(--t-mid) var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.rsvp-dialog__panel {
  position: relative;
  width: 100%;
  max-width: var(--max-w);
  background: var(--c-cream);
  padding: 40px 28px 32px;
  border-radius: 20px 20px 0 0;
  max-height: 85vh;
  max-height: 85dvh;
  overflow-y: auto;
  animation: slideUp var(--t-mid) var(--ease);
  box-shadow: 0 -8px 32px rgba(0,0,0,0.15);
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.rsvp-dialog__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border: none;
  background: transparent;
  color: var(--c-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--t-fast) var(--ease);
}
.rsvp-dialog__close:hover { background: rgba(0,0,0,0.05); }

.rsvp-dialog__title {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 8px;
  color: var(--c-ink);
  text-align: center;
  letter-spacing: 0.06em;
}
.rsvp-dialog__sub {
  margin: 0 0 28px;
  font-size: 13px;
  color: var(--c-muted);
  text-align: center;
  letter-spacing: 0.1em;
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.rsvp-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: none;
  padding: 0;
  margin: 0;
}
.rsvp-field__label {
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: 13px;
  color: var(--c-caramel);
  letter-spacing: 0.15em;
}
.rsvp-field__input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--c-line);
  background: rgba(255,255,255,0.5);
  font-family: inherit;
  font-size: 15px;
  color: var(--c-ink);
  outline: none;
  transition: border-color var(--t-fast) var(--ease);
}
.rsvp-field__input:focus { border-color: var(--c-caramel); }

.rsvp-radio {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.rsvp-radio__opt {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 1px solid var(--c-line);
  background: rgba(255,255,255,0.5);
  font-size: 14px;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.rsvp-radio__opt input { display: none; }
.rsvp-radio__opt:has(input:checked) {
  background: var(--c-caramel);
  color: #fff;
  border-color: var(--c-caramel);
}

.rsvp-counter {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  border: 1px solid var(--c-line);
  background: rgba(255,255,255,0.5);
}
.rsvp-counter__btn {
  border: none;
  background: transparent;
  font-size: 20px;
  color: var(--c-caramel);
  transition: background var(--t-fast) var(--ease);
}
.rsvp-counter__btn:hover { background: rgba(139,111,71,0.08); }
.rsvp-counter__val {
  border: none;
  border-left: 1px solid var(--c-line);
  border-right: 1px solid var(--c-line);
  text-align: center;
  font-family: var(--f-serif);
  font-size: 18px;
  background: transparent;
  outline: none;
  -moz-appearance: textfield;
}
.rsvp-counter__val::-webkit-outer-spin-button,
.rsvp-counter__val::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.rsvp-form__submit {
  margin-top: 8px;
  padding: 14px;
  background: var(--c-caramel);
  color: #fff;
  border: none;
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.2em;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.rsvp-form__submit:hover { background: #765E3C; }
.rsvp-form__submit:active { transform: scale(0.98); }
.rsvp-form__hint {
  margin: 4px 0 0;
  font-size: 11px;
  color: var(--c-muted);
  text-align: center;
  letter-spacing: 0.15em;
}

/* ========================================================================
   Toast
   ======================================================================== */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 300;
  padding: 12px 20px;
  background: rgba(26,26,26,0.92);
  color: #F2EBDF;
  font-size: 14px;
  letter-spacing: 0.1em;
  border-radius: 24px;
  opacity: 0;
  transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease);
  pointer-events: none;
  max-width: calc(100vw - 80px);
  text-align: center;
}
.toast[hidden] { display: none; }
.toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ========================================================================
   Long-press Hint
   ======================================================================== */
.longpress-hint {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  animation: fadeIn var(--t-fast) var(--ease);
}
.longpress-hint[hidden] { display: none; }
.longpress-hint__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px 28px;
  background: var(--c-cream);
  color: var(--c-ink);
  border-radius: 16px;
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.1em;
  max-width: 240px;
  text-align: center;
}

/* ========================================================================
   Responsive (iPhone 14/15 标准 390px 优化)
   ======================================================================== */
@media (max-width: 380px) {
  :root { --pad-x: 20px; }
  .hero__title { font-size: 34px; }
  .hero__title-line--accent { font-size: 24px; }
  .section__title { font-size: 28px; }
  .end-words__line--big { font-size: 32px; }
}
@media (min-width: 430px) {
  .hero__title { font-size: 44px; }
  .hero__title-line--accent { font-size: 30px; }
}
@media (min-width: 600px) {
  .section__inner, .hero__content { max-width: 560px; }
}

/* iOS 安全区 */
@supports (padding: max(0px)) {
  .hero__content { padding-bottom: max(32px, env(safe-area-inset-bottom)); }
  .music-btn     { bottom: max(28px, env(safe-area-inset-bottom) + 12px); }
  .rsvp-dialog__panel { padding-bottom: max(32px, env(safe-area-inset-bottom)); }
}

/* 减弱动效偏好 */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .detail-showcase__img { animation: none; }
  .hero__scroll-hint { animation: none; }
  html { scroll-behavior: auto; }
}