:root {
  --red-deep: #7f161c;
  --red-main: #b4262d;
  --red-bright: #d4383f;
  --gold-dark: #9c722c;
  --gold-main: #d4a857;
  --gold-light: #f5dfaa;
  --cream-bg: #fff9f0;
  --cream-card: #fffdf9;
  --ink-main: #3a2320;
  --ink-muted: #7c5b55;
  --border-gold: rgba(212, 168, 87, 0.45);
  --shadow-soft: 0 12px 32px rgba(127, 22, 28, 0.12);
  --font-serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  min-height: 100%;
  background: #6c1217;
  color: var(--ink-main);
  font-family: var(--font-sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.locked {
  overflow: hidden;
  height: 100vh;
}

/* 花瓣飘落画布 */
#petalCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 50;
}

/* 右上角悬浮按钮 */
.floating-controls {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  right: 14px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.float-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-light);
  background: rgba(127, 22, 28, 0.84);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, background 0.2s ease;
}

.float-btn:active {
  transform: scale(0.92);
}

.float-poster {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.music-icon.playing {
  display: inline-block;
  animation: spinSlow 4s linear infinite;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ================= 信封开场交互 ================= */
.envelope-stage {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
  background:
    radial-gradient(circle at 50% 25%, #b4262d 0%, #7d151b 58%, #4d0a0e 100%);
  transition: opacity 0.75s ease, transform 0.75s ease;
  touch-action: pan-x;
}

.envelope-stage.is-fading {
  opacity: 0;
  transform: scale(1.06);
  pointer-events: none;
}

.envelope-stage.is-hidden {
  display: none;
}

.stage-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image:
    radial-gradient(circle at 20% 20%, var(--gold-light) 1px, transparent 1px),
    radial-gradient(circle at 80% 35%, var(--gold-light) 1.5px, transparent 1.5px),
    radial-gradient(circle at 35% 75%, var(--gold-light) 1px, transparent 1px);
  background-size: 90px 90px;
  pointer-events: none;
}

.stage-top-badge {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 34px;
  padding: 6px 18px;
  border-radius: 999px;
  border: 1px solid rgba(245, 223, 170, 0.45);
  background: rgba(77, 10, 14, 0.35);
  color: var(--gold-light);
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 3px;
}

.badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-main);
}

/* 信封容器 */
.envelope-wrapper {
  position: relative;
  width: min(320px, 84vw);
  height: 248px;
  margin-top: 72px;
  perspective: 1100px;
  cursor: pointer;
}

.envelope-shadow {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -20px;
  height: 26px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.48), transparent 72%);
  border-radius: 50%;
}

.envelope-back {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(160deg, #971c22, #6f1015);
  border: 1px solid rgba(245, 223, 170, 0.35);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.42);
}

/* 半露出来的内页卡片 */
.letter-preview {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 24px;
  height: 300px;
  background: var(--cream-bg);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 10px 26px rgba(45, 6, 9, 0.32);
  transform: translateY(-58px);
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
  z-index: 2;
}

.letter-inner-border {
  width: 100%;
  height: 100%;
  border: 1.5px solid var(--gold-main);
  border-radius: 8px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(212, 168, 87, 0.14), transparent 62%),
    var(--cream-bg);
}

.letter-mini-header {
  font-size: 9px;
  letter-spacing: 2.5px;
  color: var(--gold-dark);
  margin-bottom: 8px;
}

.letter-photo-stage {
  position: relative;
  width: 100%;
  max-width: 230px;
  aspect-ratio: 3 / 2;
  margin: 4px auto 6px;
  border-radius: 10px;
  padding: 3px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-main), #b4262d);
  box-shadow: 0 6px 16px rgba(180, 38, 45, 0.22);
}

.letter-main-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 7px;
  display: block;
}

.env-chibi {
  position: absolute;
  bottom: -16px;
  width: 54px;
  height: 54px;
  pointer-events: none;
  filter: drop-shadow(0 3px 6px rgba(90, 12, 16, 0.35));
}

.env-chibi-left {
  left: -14px;
  transform: rotate(-8deg);
  animation: wiggleLeft 3.2s ease-in-out infinite;
}

.env-chibi-right {
  right: -14px;
  transform: rotate(8deg);
  animation: wiggleRight 3.2s ease-in-out infinite;
}

.letter-mini-title {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--red-main);
  letter-spacing: 3px;
}

.letter-mini-names {
  margin-top: 4px;
  font-family: var(--font-serif);
  font-size: 13px;
  color: var(--ink-main);
}

.heart-amp {
  color: var(--gold-dark);
  margin: 0 4px;
}

.letter-mini-date {
  margin-top: 4px;
  font-size: 11px;
  color: var(--ink-muted);
}

/* 信封正面口袋 */
.envelope-front {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  overflow: hidden;
  z-index: 4;
  pointer-events: none;
}

.envelope-pocket-left,
.envelope-pocket-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 55%;
  background: linear-gradient(135deg, #c12b32, #991c22);
}

.envelope-pocket-left {
  left: 0;
  clip-path: polygon(0 18%, 100% 56%, 0 100%);
  border-left: 1px solid rgba(245, 223, 170, 0.25);
}

.envelope-pocket-right {
  right: 0;
  clip-path: polygon(100% 18%, 0 56%, 100% 100%);
  border-right: 1px solid rgba(245, 223, 170, 0.25);
}

.envelope-pocket-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 62%;
  background: linear-gradient(180deg, #b8282f 0%, #8e181e 100%);
  clip-path: polygon(0 100%, 50% 12%, 100% 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 22px;
}

.pocket-gold-line {
  width: 58%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  margin-bottom: 8px;
  opacity: 0.7;
}

.pocket-label {
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 6px;
  color: var(--gold-light);
  padding-left: 6px;
}

/* 信封上盖（半开状态露出一半内页） */
.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 52%;
  background: linear-gradient(180deg, #a61f26, #84141a);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  transform: rotateX(155deg);
  z-index: 1;
  transition: transform 0.7s ease;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

/* 金色火漆印章 */
.wax-seal {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: none;
  background: radial-gradient(circle at 32% 30%, #fff0c2 0%, #e1b55d 45%, #a87725 100%);
  box-shadow:
    0 8px 20px rgba(40, 5, 7, 0.45),
    inset 0 2px 4px rgba(255, 255, 255, 0.75),
    inset 0 -3px 6px rgba(107, 68, 12, 0.55);
  z-index: 6;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulseSeal 2.2s ease-in-out infinite;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.wax-seal-ring {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1.5px dashed rgba(127, 22, 28, 0.5);
}

.wax-seal-char {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 900;
  color: var(--red-deep);
  text-shadow: 0 1px 0 rgba(255, 244, 210, 0.8);
}

@keyframes pulseSeal {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.06); }
}

/* 展开动画态 */
.envelope-wrapper.is-opening .wax-seal {
  animation: none;
  transform: translate(-50%, -50%) scale(1.35);
  opacity: 0;
}

.envelope-wrapper.is-opening .letter-preview {
  transform: translateY(-210px) scale(1.05);
}

.open-hint {
  position: relative;
  z-index: 2;
  margin-top: 44px;
  text-align: center;
  color: var(--gold-light);
  font-size: 13px;
  letter-spacing: 1px;
  opacity: 0.92;
}

.swipe-arrows {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 8px;
}

.swipe-arrows span {
  display: block;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--gold-light);
  border-left: 2px solid var(--gold-light);
  transform: rotate(45deg);
  margin: -3px 0;
  animation: arrowUp 1.5s infinite;
}

.swipe-arrows span:nth-child(2) {
  animation-delay: 0.25s;
}

@keyframes arrowUp {
  0% { opacity: 0; transform: rotate(45deg) translate(4px, 4px); }
  50% { opacity: 1; }
  100% { opacity: 0; transform: rotate(45deg) translate(-4px, -4px); }
}

/* ================= 正文主容器 ================= */
.invitation-main {
  min-height: 100vh;
  padding: 18px 12px 48px;
  background:
    radial-gradient(circle at 50% 0%, #9b1d24 0%, #6c1217 48%, #4b0a0e 100%);
  opacity: 0;
  transition: opacity 0.65s ease;
}

.invitation-main.is-visible {
  opacity: 1;
}

.phone-container {
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* 通用卡片样式 */
.hero-section,
.card-section {
  position: relative;
  background: var(--cream-bg);
  border-radius: 20px;
  padding: 28px 20px;
  border: 1.5px solid var(--gold-main);
  box-shadow:
    var(--shadow-soft),
    inset 0 0 0 4px rgba(212, 168, 87, 0.14);
  overflow: hidden;
}

/* 滚动入场动画 */
.reveal-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* 四角中式回纹装饰 */
.corner-ornament {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 2px solid var(--gold-main);
  opacity: 0.75;
}
.corner-ornament.top-left { top: 10px; left: 10px; border-right: none; border-bottom: none; border-top-left-radius: 6px; }
.corner-ornament.top-right { top: 10px; right: 10px; border-left: none; border-bottom: none; border-top-right-radius: 6px; }
.corner-ornament.bottom-left { bottom: 10px; left: 10px; border-right: none; border-top: none; border-bottom-left-radius: 6px; }
.corner-ornament.bottom-right { bottom: 10px; right: 10px; border-left: none; border-top: none; border-bottom-right-radius: 6px; }

/* 1. 主视觉区 */
.hero-section {
  text-align: center;
  background:
    radial-gradient(circle at 50% 18%, rgba(212, 168, 87, 0.18), transparent 60%),
    var(--cream-bg);
}

.hero-top-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--red-main);
  margin-bottom: 10px;
}

.xi-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--red-main);
  color: var(--gold-light);
  font-size: 12px;
  letter-spacing: 0;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 900;
  color: var(--red-main);
  letter-spacing: 6px;
  padding-left: 6px;
}

.hero-sub {
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--gold-dark);
}

/* 主封面画框 + 两侧俏皮探头 Q 版秀禾服贴纸 */
.hero-cover-stage {
  position: relative;
  margin: 22px 0 34px;
  padding: 0 6px;
}

.hero-photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  padding: 7px;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--gold-light), var(--gold-main), #9a1820);
  box-shadow: 0 14px 30px rgba(140, 20, 26, 0.25);
}

.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}

.photo-corner-stamp {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(180, 38, 45, 0.88);
  border: 1px solid var(--gold-light);
  color: var(--gold-light);
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  transform: rotate(6deg);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

.side-chibi {
  position: absolute;
  bottom: -24px;
  width: 86px;
  z-index: 6;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.side-chibi img {
  width: 82px;
  height: 82px;
  display: block;
  filter: drop-shadow(0 6px 10px rgba(95, 16, 20, 0.28));
}

.chibi-left {
  left: -6px;
  transform-origin: bottom center;
  animation: wiggleLeft 3.4s ease-in-out infinite;
}

.chibi-right {
  right: -6px;
  transform-origin: bottom center;
  animation: wiggleRight 3.4s ease-in-out infinite;
}

@keyframes wiggleLeft {
  0%, 100% { transform: rotate(-6deg) translateY(0); }
  50% { transform: rotate(-1deg) translateY(-5px); }
}

@keyframes wiggleRight {
  0%, 100% { transform: rotate(6deg) translateY(0); }
  50% { transform: rotate(1deg) translateY(-5px); }
}

.speech-bubble {
  position: relative;
  margin-bottom: -4px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid var(--red-main);
  color: var(--red-main);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(180, 38, 45, 0.16);
}

.speech-bubble::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: #fff;
  border-right: 1.5px solid var(--red-main);
  border-bottom: 1.5px solid var(--red-main);
}

.bubble-left {
  transform: rotate(-4deg);
}

.bubble-right {
  transform: rotate(4deg);
}

/* 调皮喜庆标签墙 */
.playful-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 4px 0 18px;
}

.playful-tag {
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(180, 38, 45, 0.08);
  border: 1px dashed rgba(180, 38, 45, 0.35);
  color: var(--red-main);
  font-size: 12px;
  font-weight: 600;
}

.playful-tag:nth-child(even) {
  background: rgba(212, 168, 87, 0.18);
  border-color: rgba(156, 114, 44, 0.45);
  color: var(--gold-dark);
}

.couple-names-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 14px;
}

.name-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.role-label {
  font-size: 11px;
  color: var(--gold-dark);
  letter-spacing: 2px;
  margin-bottom: 2px;
}

.person-name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-main);
  letter-spacing: 2px;
}

.xi-badge-center {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red-bright), var(--red-deep));
  color: var(--gold-light);
  border: 1.5px solid var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 4px 10px rgba(180, 38, 45, 0.25);
}

.hero-date-banner {
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(180, 38, 45, 0.06);
  border: 1px dashed rgba(180, 38, 45, 0.28);
}

.date-main {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--red-main);
  letter-spacing: 1px;
}

.date-sub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-muted);
}

.invitation-poem {
  margin-top: 18px;
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.95;
  color: var(--ink-main);
  letter-spacing: 1px;
}

/* 模块标题 */
.section-header {
  text-align: center;
  margin-bottom: 20px;
}

.section-en {
  display: block;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--gold-dark);
}

.section-title {
  margin-top: 2px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--red-main);
  letter-spacing: 3px;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.section-divider span {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-main), transparent);
}

.section-divider i {
  font-style: normal;
  font-family: var(--font-serif);
  font-size: 12px;
  color: var(--red-main);
}

/* 2. 倒计时 */
.countdown-status {
  text-align: center;
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 14px;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.cd-box {
  background: linear-gradient(180deg, #b8282f 0%, #8c171d 100%);
  border: 1.5px solid var(--gold-main);
  border-radius: 14px;
  padding: 14px 6px;
  text-align: center;
  box-shadow: 0 6px 14px rgba(140, 23, 29, 0.22);
}

.cd-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 900;
  color: var(--gold-light);
  line-height: 1.1;
}

.cd-unit {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 245, 224, 0.85);
}

/* 3. 婚礼流程 */
.timeline-list {
  list-style: none;
  position: relative;
  padding-left: 24px;
}

.timeline-list::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold-main), rgba(212, 168, 87, 0.25));
}

.timeline-item {
  position: relative;
  padding-bottom: 18px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -23px;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--red-main);
  border: 3px solid var(--gold-light);
  box-shadow: 0 0 0 2px rgba(180, 38, 45, 0.2);
}

.timeline-time {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(180, 38, 45, 0.1);
  color: var(--red-main);
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
}

.timeline-title {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-main);
}

.timeline-desc {
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-muted);
}

/* 4. 交通指引 */
.venue-card {
  text-align: center;
  padding: 18px 14px;
  border-radius: 14px;
  background: #fff6ea;
  border: 1px solid rgba(212, 168, 87, 0.45);
}

.venue-icon {
  font-size: 28px;
  margin-bottom: 6px;
}

.venue-name {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--red-main);
}

.venue-address {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-muted);
}

.nav-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.nav-btn {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--gold-main);
  background: #fff;
  color: var(--red-main);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}

.nav-btn:active {
  transform: scale(0.96);
}

.nav-btn.primary {
  background: linear-gradient(135deg, var(--red-bright), var(--red-main));
  color: #fff9f0;
  border-color: var(--red-main);
}

.nav-btn.outline {
  background: transparent;
  color: var(--ink-main);
}

.tips-box {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tip-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-muted);
}

.tip-badge {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(212, 168, 87, 0.22);
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 700;
}

/* 5. 在线回执 RSVP */
.rsvp-intro {
  text-align: center;
  font-size: 13px;
  color: var(--ink-muted);
  margin: -10px 0 18px;
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-main);
}

.req {
  color: var(--red-bright);
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1.5px solid rgba(212, 168, 87, 0.55);
  background: #fff;
  color: var(--ink-main);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--red-main);
  box-shadow: 0 0 0 3px rgba(180, 38, 45, 0.1);
}

.radio-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pill-option {
  position: relative;
  cursor: pointer;
}

.pill-option input {
  position: absolute;
  opacity: 0;
}

.pill-option span {
  display: block;
  text-align: center;
  padding: 10px 8px;
  border-radius: 10px;
  border: 1.5px solid rgba(212, 168, 87, 0.55);
  background: #fff;
  font-size: 13px;
  color: var(--ink-muted);
  transition: all 0.2s ease;
}

.pill-option input:checked + span {
  background: rgba(180, 38, 45, 0.1);
  border-color: var(--red-main);
  color: var(--red-main);
  font-weight: 700;
}

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.step-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-main);
  background: #fff;
  color: var(--red-main);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.step-val {
  min-width: 28px;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--red-main);
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.diet-chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(212, 168, 87, 0.65);
  background: #fff;
  color: var(--ink-muted);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.diet-chip.active {
  background: var(--red-main);
  border-color: var(--red-main);
  color: #fff9f0;
}

.submit-btn {
  margin-top: 6px;
  padding: 13px 20px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--red-bright), var(--red-deep));
  color: var(--gold-light);
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(140, 23, 29, 0.28);
  transition: transform 0.15s ease, opacity 0.2s ease;
}

.submit-btn:active {
  transform: scale(0.98);
}

.submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.rsvp-mode-note {
  text-align: center;
  font-size: 11px;
  color: var(--ink-muted);
}

/* 祝福墙 */
.wishes-wall {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px dashed rgba(212, 168, 87, 0.55);
}

.wishes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.wishes-header h3 {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--red-main);
}

.wish-count {
  font-size: 12px;
  color: var(--gold-dark);
}

.wishes-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
}

.wish-item {
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff6ea;
  border-left: 3px solid var(--red-main);
}

.wish-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  margin-bottom: 5px;
}

.wish-author {
  font-weight: 700;
  color: var(--red-main);
}

.wish-meta {
  color: var(--ink-muted);
}

.wish-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-main);
}

/* 管理员统计面板 */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.stat-card {
  padding: 10px;
  border-radius: 10px;
  background: #fff6ea;
  text-align: center;
}

.stat-card strong {
  display: block;
  font-size: 20px;
  color: var(--red-main);
}

.stat-card span {
  font-size: 11px;
  color: var(--ink-muted);
}

.admin-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.admin-table th,
.admin-table td {
  padding: 8px 6px;
  border-bottom: 1px solid rgba(212, 168, 87, 0.35);
  text-align: left;
}

.admin-table th {
  color: var(--red-main);
  background: #fff6ea;
}

/* 页脚 */
.invitation-footer {
  text-align: center;
  padding: 20px 12px 10px;
  color: var(--gold-light);
}

.footer-xi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--gold-light);
  font-family: var(--font-serif);
  font-size: 16px;
  margin-bottom: 8px;
}

.footer-names {
  font-family: var(--font-serif);
  font-size: 16px;
  letter-spacing: 2px;
}

.footer-tip {
  margin-top: 4px;
  font-size: 12px;
  opacity: 0.8;
}

.footer-links {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.footer-links a,
.link-btn {
  color: var(--gold-light);
  text-decoration: underline;
  background: none;
  border: none;
  font-size: 12px;
  cursor: pointer;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 20px);
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(58, 35, 32, 0.92);
  color: #fff9f0;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 120;
  max-width: 86vw;
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
