/* ===== 婚礼请柬 —— 经典浪漫简约风 ===== */
:root {
  --ivory: #fbf6ee;
  --blush: #f6ece4;
  --gold: #b8925a;
  --gold-dark: #8a6a3d;
  --ink: #463a2a;
  --ink-soft: #9b8b76;
  --serif: "Georgia", "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

html {
  height: 100%;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  -webkit-scroll-snap-type: y mandatory;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

/* ===== 页面 ===== */
.page {
  height: 100vh;
  height: 100svh;
  min-height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 56px 28px 72px;
  overflow: hidden;
}

.kicker {
  font-size: 13px;
  letter-spacing: 6px;
  color: var(--gold-dark);
  margin-bottom: 26px;
}

/* ===== 封面 ===== */
.cover {
  background: radial-gradient(120% 90% at 50% 0%, #fffdf8 0%, var(--ivory) 55%, var(--blush) 100%);
}
.cover-frame {
  border: 1px solid rgba(184, 146, 90, .55);
  outline: 1px solid rgba(184, 146, 90, .25);
  outline-offset: 6px;
  border-radius: 2px;
  padding: 46px 30px 40px;
  width: 100%;
  max-width: 340px;
}
.cover-kicker {
  font-size: 12px;
  letter-spacing: 10px;
  color: var(--gold-dark);
  margin-bottom: 34px;
}
.names {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--serif);
  font-weight: 400;
}
.name {
  font-size: 34px;
  letter-spacing: 8px;
  color: var(--ink);
  line-height: 1.25;
}
.heart {
  color: var(--gold);
  font-size: 22px;
  line-height: 1;
  margin: 6px 0;
}
.divider {
  width: 72px;
  height: 1px;
  background: var(--gold);
  position: relative;
  margin: 26px auto;
}
.divider::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 7px; height: 7px;
  background: var(--gold);
  transform: translate(-50%, -50%) rotate(45deg);
}
.we-marry {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 8px;
  color: var(--ink);
  margin-bottom: 16px;
}
.cover-date {
  font-size: 14px;
  letter-spacing: 3px;
  color: var(--ink-soft);
}
.swipe-hint {
  position: absolute;
  bottom: 26px;
  left: 0; right: 0;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--ink-soft);
}

/* ===== 邀请页 ===== */
.invite-text {
  font-size: 16px;
  line-height: 2.2;
  color: var(--ink);
  letter-spacing: 2px;
  max-width: 320px;
  margin-bottom: 40px;
}
.timeline { width: 100%; max-width: 300px; }
.t-item { position: relative; padding-bottom: 34px; }
.t-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 50%; top: 18px; bottom: 0;
  width: 1px;
  background: linear-gradient(var(--gold), rgba(184, 146, 90, .25));
  transform: translateX(-50%);
}
.t-dot {
  display: block;
  width: 10px; height: 10px;
  margin: 0 auto 14px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(184, 146, 90, .15);
  position: relative;
  z-index: 1;
}
.t-item h3 {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 4px;
  font-weight: 400;
  margin-bottom: 8px;
}
.t-item p {
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--ink-soft);
}

/* ===== 新人页 ===== */
.couple-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  margin: 12px 0 34px;
}
.person h2 {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: 6px;
  font-weight: 400;
  margin-bottom: 8px;
}
.person .role {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--gold-dark);
  border: 1px solid var(--gold);
  padding: 3px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.person p {
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--ink-soft);
}
.amp { color: var(--gold); font-size: 24px; }
.couple-note {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--ink-soft);
  max-width: 280px;
  line-height: 1.9;
}

/* ===== 相册页 ===== */
.carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 440px;
  padding: 8px 6px;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 78%;
  scroll-snap-align: center;
  margin: 0;
}
.slide img {
  display: block;
  width: 100%;
  height: 56vh;
  max-height: 440px;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid rgba(184, 146, 90, .35);
  padding: 4px;
  background: #fff;
}
.carousel-ui {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.counter {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--gold-dark);
}
.swipe-tip {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--ink-soft);
}

/* ===== 信息页 ===== */
.info-card {
  width: 100%;
  max-width: 320px;
  border: 1px solid rgba(184, 146, 90, .4);
  border-radius: 4px;
  background: #fffdf8;
  padding: 26px 22px;
  text-align: left;
  margin-bottom: 24px;
}
.info-row {
  display: flex;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(184, 146, 90, .3);
}
.info-row:last-child { border-bottom: none; }
.info-label {
  flex: 0 0 58px;
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--gold-dark);
  padding-top: 2px;
}
.info-val {
  flex: 1;
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 1px;
}
.nav-btn {
  display: inline-block;
  font-size: 15px;
  letter-spacing: 4px;
  color: #fff;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  padding: 14px 34px;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(184, 146, 90, .35);
}
.info-foot {
  margin-top: 24px;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--ink-soft);
}

/* ===== 音乐按钮 / 圆点 ===== */
.music-btn {
  position: fixed;
  top: 18px; right: 18px;
  z-index: 50;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(184, 146, 90, .5);
  background: rgba(255, 253, 248, .9);
  color: var(--gold-dark);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.music-btn.playing {
  color: var(--gold);
  animation: spin 6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.dots {
  position: fixed;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(138, 106, 61, .25);
  transition: all .3s;
}
.dot.on {
  background: var(--gold);
  height: 18px;
  border-radius: 4px;
}

/* ===== 进入动画 ===== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .9s ease, transform .9s ease;
}
.page.in-view .reveal { opacity: 1; transform: translateY(0); }
.reveal[data-d="1"] { transition-delay: .05s; }
.reveal[data-d="2"] { transition-delay: .15s; }
.reveal[data-d="3"] { transition-delay: .25s; }
.reveal[data-d="4"] { transition-delay: .35s; }
.reveal[data-d="5"] { transition-delay: .45s; }
.reveal[data-d="6"] { transition-delay: .55s; }
.reveal[data-d="7"] { transition-delay: .65s; }
.reveal[data-d="8"] { transition-delay: .75s; }
