/* ==========================================================================
   19岁生日浪漫移动端专属样式系统 (Princess Birthday Theme)
   采用移动端优先 (Mobile First) 设计，支持玻璃拟态与全面屏安全区域适配
   ========================================================================== */

:root {
  /* 浪漫配色变量 */
  --primary-pink: #ff6b8b;
  --secondary-pink: #ff8eac;
  --soft-blush: #fff5f7;
  --cream-white: #ffffff;
  --champagne-gold: #e6b87d;
  --rose-gold: #f3a683;
  --deep-purple: #4834d4;
  --text-primary: #3d2b38;
  --text-secondary: #7e6b77;
  --text-highlight: #ff4757;

  /* 玻璃拟态卡片阴影与背景 */
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-shadow: 0 10px 30px rgba(255, 107, 139, 0.12), 0 2px 10px rgba(0, 0, 0, 0.04);
  
  /* 字体家族 */
  --font-serif: 'Noto Serif SC', 'Songti SC', SimSun, serif;
  --font-script: 'Dancing Script', cursive, sans-serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

/* 基础重置 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent; /* 移除移动端点击高亮蓝灰遮罩 */
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: linear-gradient(175deg, #ffeef2 0%, #fff0f5 40%, #fdeff4 70%, #ffe6ee 100%);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  touch-action: manipulation;
  -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
   全屏背景微粒画布与全局动效
   -------------------------------------------------------------------------- */
#ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
}

/* --------------------------------------------------------------------------
   浮动音乐控制器
   -------------------------------------------------------------------------- */
.music-controller {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  right: 16px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 6px 12px 6px 6px;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(255, 107, 139, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.music-controller:active {
  transform: scale(0.92);
}

.vinyl-disc {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: conic-gradient(#333 0deg, #666 90deg, #333 180deg, #666 270deg, #333 360deg);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rotateVinyl 4s linear infinite;
  animation-play-state: paused;
}

.music-controller.playing .vinyl-disc {
  animation-play-state: running;
}

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

.vinyl-center {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff6b8b;
  font-size: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.music-tip {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-pink);
  letter-spacing: 1px;
}

/* --------------------------------------------------------------------------
   1. 浪漫启幕仪式全屏弹层
   -------------------------------------------------------------------------- */
.curtain-modal {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #fff0f5 0%, #ffd6e0 70%, #ffb6c1 100%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 24px;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s;
}

.curtain-modal.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.curtain-content {
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeInDown 1.2s ease-out;
}

.crown-icon {
  font-size: 3.5rem;
  margin-bottom: 12px;
  filter: drop-shadow(0 6px 12px rgba(255, 182, 193, 0.8));
  animation: floatCrown 3s ease-in-out infinite alternate;
}

@keyframes floatCrown {
  from { transform: translateY(0) rotate(-3deg); }
  to { transform: translateY(-10px) rotate(3deg); }
}

.curtain-tag {
  font-family: var(--font-script);
  font-size: 1.4rem;
  color: var(--primary-pink);
  margin-bottom: 8px;
  font-weight: 700;
  letter-spacing: 1px;
}

.curtain-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  color: var(--text-primary);
  margin-bottom: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.curtain-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

.btn-primary {
  background: linear-gradient(135deg, #ff6b8b 0%, #ff8eac 100%);
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(255, 107, 139, 0.45);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  user-select: none;
}

.btn-primary:active {
  transform: scale(0.96);
  box-shadow: 0 5px 15px rgba(255, 107, 139, 0.3);
}

.pulse-btn {
  animation: btnPulse 1.8s infinite;
}

@keyframes btnPulse {
  0% { transform: scale(1); box-shadow: 0 8px 20px rgba(255, 107, 139, 0.4); }
  50% { transform: scale(1.04); box-shadow: 0 14px 28px rgba(255, 107, 139, 0.6); }
  100% { transform: scale(1); box-shadow: 0 8px 20px rgba(255, 107, 139, 0.4); }
}

.curtain-hint {
  margin-top: 24px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   主内容区域布局
   -------------------------------------------------------------------------- */
.main-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 540px; /* 移动端最佳舒适阅读宽度 */
  margin: 0 auto;
  padding: 20px 16px;
  padding-bottom: max(40px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* 通用玻璃拟态卡片 */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 24px 18px;
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow: hidden;
}

.section-badge {
  display: inline-block;
  background: rgba(255, 107, 139, 0.12);
  color: var(--primary-pink);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-weight: 700;
  line-height: 1.35;
}

.section-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   2. 头部主角海报
   -------------------------------------------------------------------------- */
.hero-section {
  text-align: center;
  padding-top: max(32px, env(safe-area-inset-top));
  padding-bottom: 12px;
}

.sparkle-badge {
  display: inline-block;
  font-family: var(--font-script);
  font-size: 1.15rem;
  color: var(--primary-pink);
  margin-bottom: 6px;
  font-weight: 700;
  letter-spacing: 1px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  color: var(--text-primary);
  margin-bottom: 6px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.hero-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 22px;
}

/* 拍立得主角相纸卡 */
.hero-polaroid-wrapper {
  display: flex;
  justify-content: center;
  perspective: 1000px;
  margin-bottom: 20px;
}

.hero-polaroid {
  background: #ffffff;
  padding: 12px 12px 18px 12px;
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(255, 107, 139, 0.22), 0 4px 10px rgba(0, 0, 0, 0.06);
  position: relative;
  transform: rotate(-1.5deg);
  transition: transform 0.4s ease;
  max-width: 290px;
  width: 100%;
}

.hero-polaroid:hover, .hero-polaroid:active {
  transform: rotate(0deg) scale(1.02);
}

.polaroid-pin {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.3rem;
  z-index: 5;
}

.polaroid-img-box {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  overflow: hidden;
  background: #fdf0f4;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

.hero-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.polaroid-text {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.polaroid-caption {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.polaroid-date {
  font-family: var(--font-script);
  font-size: 0.95rem;
  color: var(--primary-pink);
}

.romantic-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.tag-pill {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 107, 139, 0.25);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--primary-pink);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(255, 107, 139, 0.1);
}

.scroll-down-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.78rem;
  gap: 4px;
  opacity: 0.8;
  animation: bounceDown 2s infinite;
}

.arrow-down {
  font-size: 1.1rem;
  color: var(--primary-pink);
}

@keyframes bounceDown {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(6px); }
  60% { transform: translateY(3px); }
}

/* --------------------------------------------------------------------------
   3. 生日蛋糕与吹灭蜡烛
   -------------------------------------------------------------------------- */
.cake-section {
  text-align: center;
}

.cake-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 30px 10px 10px 10px;
  margin-bottom: 20px;
}

/* 蜡烛体系 */
.candles-wrapper {
  display: flex;
  gap: 28px;
  position: relative;
  z-index: 10;
  margin-bottom: -4px;
}

.candle {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  position: relative;
}

.flame-wrapper {
  position: relative;
  height: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.flame {
  width: 14px;
  height: 24px;
  background: radial-gradient(ellipse at bottom, #fff7a1 0%, #ff9800 60%, #ff5722 90%);
  border-radius: 50% 50% 35% 35% / 60% 60% 40% 40%;
  box-shadow: 0 0 14px #ffc107, 0 0 28px #ff9800;
  animation: flameFlicker 1.2s infinite alternate ease-in-out;
  transform-origin: 50% 90%;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

@keyframes flameFlicker {
  0% { transform: scale(1) rotate(-2deg); }
  50% { transform: scale(1.08, 0.95) rotate(2deg); }
  100% { transform: scale(0.95, 1.05) rotate(-1deg); }
}

/* 蜡烛熄灭时的烟雾动效 */
.smoke {
  position: absolute;
  top: -10px;
  width: 8px;
  height: 18px;
  background: rgba(180, 180, 180, 0.5);
  border-radius: 50%;
  filter: blur(3px);
  opacity: 0;
  pointer-events: none;
}

.candle.extinguished .flame {
  opacity: 0;
  transform: scale(0.1);
}

.candle.extinguished .smoke {
  animation: smokeRise 1.6s ease-out forwards;
}

@keyframes smokeRise {
  0% { opacity: 0.8; transform: translateY(0) scale(1); }
  50% { opacity: 0.5; transform: translateY(-18px) scale(2) rotate(10deg); }
  100% { opacity: 0; transform: translateY(-36px) scale(3.5); }
}

.candle-number {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 800;
  color: #ff4757;
  text-shadow: 0 2px 8px rgba(255, 71, 87, 0.35);
  line-height: 1;
  background: linear-gradient(180deg, #ff6b81 0%, #ee5253 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.candle-stick {
  width: 6px;
  height: 14px;
  background: repeating-linear-gradient(45deg, #ffb8b8, #ffb8b8 4px, #ffffff 4px, #ffffff 8px);
  border-radius: 3px;
}

/* 蛋糕分层模型 */
.cake-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 100%;
}

.cake-tier {
  border-radius: 16px;
  position: relative;
  box-shadow: 0 8px 20px rgba(255, 107, 139, 0.2);
}

.cake-tier-top {
  width: 170px;
  height: 60px;
  background: linear-gradient(180deg, #fff0f5 0%, #ffd1dc 100%);
  z-index: 2;
  border: 3px solid #ffffff;
}

.strawberry-decorations {
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  font-size: 1.3rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.cake-tier-bottom {
  width: 230px;
  height: 80px;
  background: linear-gradient(180deg, #ffd1dc 0%, #ffb6c1 100%);
  margin-top: -8px;
  z-index: 1;
  border: 3px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cake-greeting-text {
  font-family: var(--font-script);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(255, 107, 139, 0.8);
  letter-spacing: 0.5px;
}

.cake-plate {
  width: 260px;
  height: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #eee 100%);
  border-radius: 50%;
  margin-top: -6px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-pink);
  border: 2px solid var(--primary-pink);
  padding: 12px 24px;
  border-radius: 40px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(255, 107, 139, 0.15);
  transition: all 0.3s ease;
}

.btn-secondary:active {
  transform: scale(0.95);
  background: var(--primary-pink);
  color: #fff;
}

/* 吹熄蜡烛后展示的祝愿卡片 */
.wish-unfold-card {
  margin-top: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, #fff0f5 100%);
  border: 2px dashed #ff8eac;
  border-radius: 20px;
  padding: 20px 16px;
  animation: popIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.wish-unfold-card.hidden {
  display: none;
}

.wish-card-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.wish-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text-highlight);
  margin-bottom: 10px;
  font-weight: 700;
}

.wish-message {
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.wish-signature {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--primary-pink);
  font-weight: 600;
  text-align: right;
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.85) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* --------------------------------------------------------------------------
   4. 时光画廊 (横向平滑手势拍立得胶片轨道)
   -------------------------------------------------------------------------- */
.gallery-section {
  padding-bottom: 20px;
}


.polaroid-slider-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 4px 0 10px 0;
}

.polaroid-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 12px 6px 18px 6px;
  scrollbar-width: none; /* Firefox 隐藏原生滚动条 */
}

.polaroid-track::-webkit-scrollbar {
  display: none; /* Chrome/Safari 隐藏原生滚动条 */
}

.polaroid-card {
  flex: 0 0 230px; /* 移动端胶片最佳舒适宽度 */
  scroll-snap-align: center;
  background: #ffffff;
  padding: 10px 10px 14px 10px;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(255, 107, 139, 0.16), 0 2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  user-select: none;
}

.polaroid-card:active {
  transform: scale(0.97);
}

.polaroid-card-img-box {
  width: 100%;
  aspect-ratio: 3 / 4; /* 契合人像摄影纵向比例 */
  border-radius: 8px;
  overflow: hidden;
  background: #f7e6ec;
  position: relative;
}

.polaroid-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.polaroid-card-bottom {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.polaroid-card-tag {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  color: var(--text-primary);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

.like-btn {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 2px;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.like-btn.liked {
  transform: scale(1.25);
}

.gallery-slider-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 6px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.swipe-hint {
  color: var(--primary-pink);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.photo-index-indicator {
  font-family: var(--font-serif);
  font-weight: 700;
  background: rgba(255, 107, 139, 0.1);
  color: var(--primary-pink);
  padding: 3px 10px;
  border-radius: 12px;
}

/* --------------------------------------------------------------------------
   5. 告白信（火漆印与纸短情长）
   -------------------------------------------------------------------------- */
.letter-section {
  text-align: center;
}

.envelope-container {
  position: relative;
  background: linear-gradient(135deg, #faebd7 0%, #f7d794 100%);
  border-radius: 16px;
  padding: 28px 16px;
  box-shadow: 0 12px 30px rgba(247, 215, 148, 0.35);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s ease;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.envelope-wax-seal {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #e74c3c 0%, #c0392b 70%, #962d22 100%);
  border: 3px solid #d63031;
  box-shadow: 0 6px 16px rgba(192, 57, 43, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #ffd700;
  margin-bottom: 12px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.envelope-container:active .envelope-wax-seal {
  transform: scale(0.9);
}

.envelope-hint-text {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  color: #7f5835;
  font-weight: 700;
  letter-spacing: 1px;
}

/* 拆开后展开的信纸 */
.letter-paper {
  display: none;
  background: #fffdf9;
  border: 1px solid #f1e2cc;
  border-radius: 12px;
  padding: 20px 16px;
  text-align: left;
  box-shadow: inset 0 0 30px rgba(247, 215, 148, 0.15);
  width: 100%;
  animation: letterSlideDown 0.8s ease-out forwards;
}

.envelope-container.opened .envelope-wax-seal,
.envelope-container.opened .envelope-hint-text {
  display: none;
}

.envelope-container.opened .letter-paper {
  display: block;
}

@keyframes letterSlideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.letter-to {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-pink);
  display: block;
  margin-bottom: 14px;
}

.letter-body {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  line-height: 1.9;
  color: #4a3541;
  position: relative;
  min-height: 140px;
}

.typewriter-content {
  display: inline;
  white-space: pre-wrap;
}

.typing-cursor {
  display: inline-block;
  color: var(--primary-pink);
  font-weight: bold;
  animation: blink 0.8s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.letter-footer {
  margin-top: 20px;
  border-top: 1px dashed #eedbc5;
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.letter-from {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-pink);
}

.letter-date {
  font-size: 0.78rem;
  color: var(--text-secondary);
}



/* --------------------------------------------------------------------------
   7. 浪漫星空烟花互动区
   -------------------------------------------------------------------------- */
.fireworks-interactive-box {
  position: relative;
  width: 100%;
  height: 240px;
  background: radial-gradient(ellipse at bottom, #1b122c 0%, #0d0914 100%);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

#fireworks-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.fireworks-floating-hint {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.75rem;
  padding: 4px 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  animation: pulseHint 2s infinite;
}

@keyframes pulseHint {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* --------------------------------------------------------------------------
   8. 底部页脚
   -------------------------------------------------------------------------- */
.romantic-footer {
  text-align: center;
  padding: 30px 16px 10px 16px;
  color: var(--text-secondary);
}



.footer-blessing {
  font-family: var(--font-script);
  font-size: 1.35rem;
  color: var(--primary-pink);
  margin-bottom: 6px;
  font-weight: 700;
}

.footer-sub {
  font-size: 0.85rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.footer-copy {
  font-size: 0.72rem;
  opacity: 0.7;
}

/* --------------------------------------------------------------------------
   9. 拍立得大图全屏预览灯箱
   -------------------------------------------------------------------------- */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 10, 20, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-modal.active {
  display: flex;
  opacity: 1;
}

.lightbox-close {
  position: absolute;
  top: max(20px, env(safe-area-inset-top));
  right: 20px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}

.lightbox-container {
  max-width: 420px;
  width: 100%;
  background: #ffffff;
  padding: 14px 14px 20px 14px;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  width: 100%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 10px;
  background: #000;
}

.lightbox-caption {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-top: 14px;
  font-weight: 600;
  text-align: center;
}

.lightbox-actions {
  margin-top: 14px;
}

.lightbox-btn {
  background: var(--soft-blush);
  border: 1px solid var(--primary-pink);
  color: var(--primary-pink);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   动画辅助类
   -------------------------------------------------------------------------- */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
