/* ============================================================
   朱慧丽 32 岁生日专属空间 - 极奢艺术版 (huilizhu.com)
   ============================================================ */

:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --accent-gold: #f59e0b;
  --accent-gold-light: #fde68a;
  --accent-pink: #ec4899;
  --accent-pink-light: #fbcfe8;
  --accent-rose: #f43f5e;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.12);
  --glass-blur: blur(18px);
  --font-serif: "Songti SC", "Noto Serif SC", "STSong", Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

  /* 3D 陀螺仪 / 鼠标视差变量 */
  --parallax-x: 0px;
  --parallax-y: 0px;
  --rot-x: 0deg;
  --rot-y: 0deg;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
  background: radial-gradient(circle at 50% 12%, #1e1b4b 0%, #0f172a 45%, #030712 100%);
  background-attachment: fixed;
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
}

/* 背景星空与流星雨层 */
#star-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  transform: translate3d(calc(var(--parallax-x) * 0.4), calc(var(--parallax-y) * 0.4), 0);
  transition: transform 0.1s ease-out;
}

/* 烟花与礼花彩带画布 */
#fireworks-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 99;
}

/* ============================================================
   复古黑胶留声机控制台 (Vintage Vinyl Turntable Console)
   ============================================================ */
.vinyl-player {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 8px 16px 8px 10px;
  border-radius: 9999px;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(245, 158, 11, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.vinyl-player:hover {
  transform: scale(1.04);
  border-color: var(--accent-gold);
}

/* 黑胶碟盘 */
.turntable {
  position: relative;
  width: 44px;
  height: 44px;
}

.vinyl-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle,
    #18181b 0%,
    #18181b 4px,
    #27272a 5px,
    #09090b 7px
  );
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), inset 0 0 4px rgba(255, 255, 255, 0.15);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.5s ease;
}

.vinyl-label {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, #f59e0b 0%, #b45309 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 8px;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 0 4px rgba(0,0,0,0.5);
}

/* 金属唱臂 (Tonearm) */
.tonearm {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 24px;
  border-right: 2.5px solid #d4d4d8;
  border-bottom: 2.5px solid #d4d4d8;
  border-bottom-right-radius: 4px;
  transform-origin: top right;
  transform: rotate(-35deg);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.vinyl-player.playing .tonearm {
  transform: rotate(15deg);
}

.vinyl-player.playing .vinyl-disc {
  animation: spinRecord 2.8s linear infinite;
}

/* 音波光环脉动 */
.vinyl-aura {
  position: absolute;
  top: -4px;
  left: -4px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  opacity: 0;
  pointer-events: none;
}

.vinyl-player.playing .vinyl-aura {
  animation: auraPulse 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.vinyl-info {
  display: flex;
  flex-direction: column;
}

.vinyl-song {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-gold-light);
}

.vinyl-status {
  font-size: 0.72rem;
  color: var(--text-muted);
}

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

@keyframes auraPulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* ============================================================
   密码门禁层 (Gate)
   ============================================================ */
.gate-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 7, 18, 0.94);
  backdrop-filter: blur(24px);
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.gate-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gate-card {
  width: 100%;
  max-width: 420px;
  background: rgba(30, 41, 59, 0.65);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 26px;
  padding: 38px 30px;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 50px rgba(245, 158, 11, 0.2);
  animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.gate-avatar {
  width: 100px;
  height: 100px;
  margin: 0 auto 18px;
  border-radius: 50%;
  padding: 6px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-pink));
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.45);
  animation: floatAvatar 3s ease-in-out infinite;
}

.gate-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
}

@keyframes floatAvatar {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.gate-title {
  font-size: 1.55rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.gate-subtitle {
  font-size: 0.95rem;
  color: var(--accent-gold-light);
  margin-bottom: 24px;
  line-height: 1.5;
}

.gate-input-wrapper {
  position: relative;
  margin-bottom: 20px;
}

.gate-input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(15, 23, 42, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  font-size: 1.15rem;
  color: #fff;
  text-align: center;
  letter-spacing: 2px;
  outline: none;
  transition: all 0.3s ease;
}

.gate-input:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.35);
  background: rgba(15, 23, 42, 0.95);
}

.gate-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #f59e0b, #ec4899);
  border: none;
  border-radius: 14px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 22px rgba(236, 72, 153, 0.4);
  transition: all 0.3s ease;
}

.gate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(236, 72, 153, 0.55);
}

.gate-error {
  font-size: 0.9rem;
  color: #f87171;
  margin-top: 14px;
  min-height: 22px;
  transition: all 0.3s ease;
}

.shake {
  animation: shakeAnim 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shakeAnim {
  10%, 90% { transform: translate3d(-3px, 0, 0); }
  20%, 80% { transform: translate3d(5px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-6px, 0, 0); }
  40%, 60% { transform: translate3d(6px, 0, 0); }
}

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

/* ============================================================
   主内容流 (Main Journey Flow)
   ============================================================ */
.main-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px 120px;
}

/* 幕一：Hero 序幕 */
.section-hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 0 40px;
}

.domain-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 20px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 9999px;
  font-size: 0.88rem;
  color: var(--accent-gold-light);
  font-weight: 500;
  margin-bottom: 24px;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.15);
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff 15%, #fef08a 55%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 3.2vw, 1.9rem);
  color: var(--accent-gold-light);
  margin-bottom: 24px;
  letter-spacing: 2px;
}

.hero-quote {
  max-width: 640px;
  font-size: clamp(0.98rem, 2vw, 1.15rem);
  color: #cbd5e1;
  margin-bottom: 44px;
  font-style: italic;
  line-height: 1.85;
}

.scroll-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 36px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.85), rgba(236, 72, 153, 0.85));
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
  color: #fff;
  font-size: 1.08rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(236, 72, 153, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: pulseButton 2.5s infinite;
}

.scroll-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 40px rgba(236, 72, 153, 0.6);
}

@keyframes pulseButton {
  0%, 100% { box-shadow: 0 0 20px rgba(245, 158, 11, 0.3); }
  50% { box-shadow: 0 0 38px rgba(236, 72, 153, 0.55); }
}

/* ============================================================
   幕二：蛋糕与许愿庆典 (Cake & Breath Blowing)
   ============================================================ */
.section-cake {
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 90px 0 60px;
}

.section-tag {
  font-size: 0.88rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 8px;
  font-weight: 600;
}

.section-heading {
  font-size: clamp(1.9rem, 4.2vw, 2.7rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1.02rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 540px;
}

/* 麦克风真实吹气指示条 */
.mic-visualizer {
  display: none;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 10px 20px;
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 9999px;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.2);
}

.mic-label-text {
  font-size: 0.85rem;
  color: #38bdf8;
  font-weight: 600;
}

.mic-wave-track {
  width: 120px;
  height: 8px;
  background: rgba(15, 23, 42, 0.8);
  border-radius: 9999px;
  overflow: hidden;
}

.mic-wave-bar {
  width: 10%;
  height: 100%;
  background: #38bdf8;
  border-radius: 9999px;
  transition: width 0.1s ease-out, background-color 0.2s ease;
}

/* 双层蛋糕与蜡烛 */
.cake-container {
  position: relative;
  width: 260px;
  height: 250px;
  margin: 0 auto 36px;
  cursor: pointer;
  transition: transform 0.2s ease-out;
}

.candles-wrap {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 18px;
  z-index: 10;
}

.candle {
  position: relative;
  width: 14px;
  height: 52px;
  background: repeating-linear-gradient(
    45deg,
    #f472b6,
    #f472b6 6px,
    #fbbf24 6px,
    #fbbf24 12px
  );
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.candle-wick {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 8px;
  background: #334155;
}

.candle-flame {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 26px;
  background: radial-gradient(ellipse at 50% 80%, #ffffff 0%, #fef08a 30%, #f97316 70%, #ef4444 100%);
  border-radius: 50% 50% 20% 20%;
  box-shadow: 0 0 18px #f59e0b, 0 0 35px #ef4444;
  animation: flicker 1.2s infinite alternate ease-in-out;
  transform-origin: center bottom;
  transition: all 0.4s ease;
}

.candle-smoke {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 18px;
  background: rgba(203, 213, 225, 0.6);
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0;
  pointer-events: none;
}

.candles-blown .candle-flame {
  opacity: 0;
  transform: translateX(-50%) scale(0.1);
}

.candles-blown .candle-smoke {
  animation: smokeRise 1.2s ease-out forwards;
}

@keyframes flicker {
  0% { transform: translateX(-50%) rotate(-2deg) scale(1); }
  50% { transform: translateX(-50%) rotate(2deg) scale(1.06); }
  100% { transform: translateX(-50%) rotate(-1deg) scale(0.96); }
}

@keyframes smokeRise {
  0% { opacity: 0.8; transform: translate(-50%, 0) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -40px) scale(3); }
}

.cake-top-tier {
  position: absolute;
  top: 65px;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 70px;
  background: linear-gradient(180deg, #fce7f3 0%, #fbcfe8 100%);
  border-radius: 16px 16px 6px 6px;
  box-shadow: inset 0 -8px 0 rgba(244, 114, 182, 0.2), 0 4px 10px rgba(0, 0, 0, 0.2);
}

.cake-top-cream {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 16px;
  background: #ffffff;
  border-radius: 16px 16px 10px 10px;
  box-shadow: 0 4px 6px rgba(244, 114, 182, 0.15);
}

.cake-bottom-tier {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 95px;
  background: linear-gradient(180deg, #fdf2f8 0%, #f472b6 100%);
  border-radius: 20px 20px 8px 8px;
  box-shadow: inset 0 -10px 0 rgba(190, 24, 93, 0.2), 0 8px 25px rgba(0, 0, 0, 0.35);
}

.cake-bottom-cream {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 20px;
  background: #ffffff;
  border-radius: 20px 20px 12px 12px;
}

.cake-plate {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 22px;
  background: linear-gradient(180deg, #e2e8f0 0%, #94a3b8 100%);
  border-radius: 9999px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.cake-age-badge {
  position: absolute;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  background: #fff;
  color: var(--accent-rose);
  font-weight: 800;
  font-size: 1.25rem;
  padding: 4px 14px;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.3);
  letter-spacing: 1px;
}

.cake-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.blow-btn {
  padding: 13px 26px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, #f59e0b, #ec4899);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.4);
  transition: all 0.3s ease;
}

.blow-btn:hover {
  transform: scale(1.04);
}

.mic-btn {
  padding: 13px 26px;
  border-radius: 9999px;
  border: 1px solid rgba(56, 189, 248, 0.4);
  background: rgba(14, 165, 233, 0.2);
  color: #7dd3fc;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(14, 165, 233, 0.25);
  transition: all 0.3s ease;
}

.mic-btn.listening {
  background: rgba(244, 63, 94, 0.3);
  border-color: #f43f5e;
  color: #fda4af;
  animation: pulseButton 1.5s infinite;
}

.reignite-btn {
  padding: 12px 24px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(30, 41, 59, 0.8);
  color: var(--accent-gold-light);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: none;
}

.reignite-btn.visible {
  display: inline-block;
}

.celebration-banner {
  margin-top: 24px;
  padding: 22px 30px;
  max-width: 600px;
  background: rgba(30, 41, 59, 0.75);
  backdrop-filter: var(--glass-blur);
  border: 1.5px solid var(--accent-gold);
  border-radius: 22px;
  box-shadow: 0 10px 45px rgba(245, 158, 11, 0.25);
  animation: bannerPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: none;
}

.celebration-banner.show {
  display: block;
}

.banner-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--accent-gold-light);
  margin-bottom: 8px;
}

.banner-text {
  font-size: 1.02rem;
  color: #f1f5f9;
  line-height: 1.6;
}

@keyframes bannerPop {
  0% { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ============================================================
   幕三：时光画廊与拍立得感光显影 (Memory Gallery & Developing)
   ============================================================ */
.section-gallery {
  padding: 95px 0 60px;
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 30px;
  margin-top: 44px;
}

.polaroid-card {
  background: #ffffff;
  padding: 16px 16px 22px;
  border-radius: 12px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.5);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  text-align: left;
  transform-style: preserve-3d;
}

.polaroid-card:nth-child(even) {
  transform: rotate(-1.5deg);
}

.polaroid-card:nth-child(odd) {
  transform: rotate(1.5deg);
}

.polaroid-card:hover {
  transform: translateY(-8px) rotate(0deg) scale(1.02);
  box-shadow: 0 22px 45px rgba(245, 158, 11, 0.25);
  z-index: 20;
}

/* 拍立得魔法显影 (Emulsion Development Magic) */
.developing-film {
  position: relative;
  overflow: hidden;
}

.developing-film .polaroid-img {
  filter: brightness(0.2) contrast(1.6) saturate(0.2) blur(3px);
  transition: filter 2.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.polaroid-card.developing-active .developing-film .polaroid-img {
  filter: brightness(1) contrast(1) saturate(1) blur(0px);
}

.emulsion-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(254, 240, 138, 0.35) 0%, rgba(15, 23, 42, 0.6) 100%);
  opacity: 1;
  pointer-events: none;
  transition: opacity 2s ease-out;
  mix-blend-mode: color-burn;
}

.polaroid-card.developing-active .emulsion-overlay {
  opacity: 0;
}

.polaroid-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f1f5f9;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

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

/* 小猪灵动微动作彩蛋 */
.piggy-bounce {
  animation: pigBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.piggy-spin {
  animation: pigSpin 0.7s ease;
}
.piggy-wiggle {
  animation: pigWiggle 0.6s ease;
}

@keyframes pigBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-16px) scale(1.08); }
}
@keyframes pigSpin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}
@keyframes pigWiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-12deg) scale(1.05); }
  75% { transform: rotate(12deg) scale(1.05); }
}

.video-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.polaroid-caption {
  margin-top: 14px;
}

.polaroid-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-pink);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.polaroid-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
}

.polaroid-desc {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.5;
}

/* ============================================================
   幕四：见字如面·手写信与专属“慧丽星座”
   ============================================================ */
.section-letter {
  padding: 95px 0 80px;
  text-align: center;
}

.envelope-wrap {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
}

.envelope-closed {
  background: linear-gradient(135deg, #78350f, #92400e);
  border: 2px solid #b45309;
  border-radius: 22px;
  padding: 60px 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
}

.envelope-closed:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 60px rgba(245, 158, 11, 0.25);
}

.wax-seal {
  width: 76px;
  height: 76px;
  margin: 0 auto 16px;
  background: radial-gradient(circle, #dc2626 0%, #991b1b 100%);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.3);
  border: 3px dashed #ef4444;
  color: #fff;
  font-size: 1.8rem;
  transition: transform 0.3s ease;
}

.envelope-closed:hover .wax-seal {
  transform: scale(1.1) rotate(5deg);
}

.envelope-tip {
  color: #fef3c7;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.letter-paper {
  display: none;
  background: #fefce8;
  color: #292524;
  border-radius: 18px;
  padding: 46px 38px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  text-align: left;
  border: 1px solid #fef08a;
  position: relative;
  animation: letterOpen 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.letter-paper.open {
  display: block;
}

@keyframes letterOpen {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.letter-recipient {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: #78350f;
  margin-bottom: 20px;
}

.letter-body {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 2;
  color: #44403c;
}

.letter-body p {
  margin-bottom: 18px;
  text-indent: 2em;
}

.letter-sign {
  text-align: right;
  margin-top: 36px;
  font-family: var(--font-serif);
}

.letter-sender {
  font-size: 1.2rem;
  font-weight: 700;
  color: #78350f;
}

.letter-date {
  font-size: 0.92rem;
  color: #78716c;
  margin-top: 4px;
}

/* ============================================================
   专属“慧丽星座”看板 (Constellation Skyboard)
   ============================================================ */
.constellation-wrapper {
  margin: 50px auto 0;
  max-width: 640px;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: var(--glass-blur);
  border: 1.5px solid rgba(245, 158, 11, 0.3);
  border-radius: 24px;
  padding: 24px 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 0 25px rgba(245, 158, 11, 0.08);
}

.constellation-title {
  font-size: 1.15rem;
  color: var(--accent-gold-light);
  font-weight: 700;
  margin-bottom: 6px;
}

.constellation-notice {
  font-size: 0.88rem;
  color: #94a3b8;
  margin-bottom: 16px;
  min-height: 20px;
  transition: all 0.3s ease;
}

.constellation-notice.highlight {
  color: #f43f5e;
  transform: scale(1.05);
}

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

/* 送爱心互动 */
.love-section {
  margin-top: 36px;
  text-align: center;
}

.love-btn {
  padding: 16px 38px;
  background: linear-gradient(135deg, #ec4899, #f43f5e);
  color: #fff;
  border: none;
  border-radius: 9999px;
  font-size: 1.18rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(244, 63, 94, 0.45);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.love-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 12px 38px rgba(244, 63, 94, 0.6);
}

.love-counter {
  margin-top: 14px;
  font-size: 0.96rem;
  color: var(--accent-pink-light);
}

.floating-heart {
  position: fixed;
  pointer-events: none;
  z-index: 1000;
  font-weight: 700;
  animation: floatUp 2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes floatUp {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.6) rotate(0deg);
  }
  50% {
    transform: translate(calc(-50% + var(--dx, 20px)), calc(-50% - 80px)) scale(1.2) rotate(var(--rot, 10deg));
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx, 30px)), calc(-50% - 160px)) scale(0.9) rotate(calc(var(--rot, 10deg) * 2));
  }
}

.site-footer {
  text-align: center;
  padding: 50px 0 20px;
  font-size: 0.88rem;
  color: #64748b;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-domain {
  color: var(--accent-gold-light);
  font-weight: 600;
}

/* ============================================================
   移动端响应式断点 (Mobile Responsive)
   ============================================================ */
@media (max-width: 640px) {
  .main-wrapper {
    padding: 0 16px 80px;
  }

  .vinyl-player {
    top: 14px;
    right: 14px;
    padding: 6px 12px 6px 8px;
  }
  .vinyl-status {
    display: none;
  }

  .section-hero {
    min-height: 82vh;
    padding: 40px 0 30px;
  }

  .gate-card {
    padding: 28px 20px;
  }

  .cake-container {
    transform: scale(0.9);
    margin-bottom: 20px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .polaroid-card:nth-child(even),
  .polaroid-card:nth-child(odd) {
    transform: none;
  }

  .letter-paper {
    padding: 28px 20px;
  }
  .letter-body {
    font-size: 1rem;
    line-height: 1.8;
  }
}
