/* ==================== 
   全屏幻灯片模式 - Apple Design
   ==================== */

:root {
    --color-primary: #0066cc;
    --color-primary-focus: #0071e3;
    --color-canvas: #ffffff;
    --color-canvas-parchment: #f5f5f7;
    --color-tile-1: #272729;
    --color-black: #000000;
    --color-ink: #1d1d1f;
    --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
    --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: var(--font-text);
    font-size: 17px;
    color: var(--color-ink);
    background: var(--color-canvas);
}

/* 导航栏 */
.global-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 44px;
    background: var(--color-black);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.nav-content {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 12px;
    font-weight: 600;
    color: white;
    letter-spacing: -0.12px;
}

.nav-indicator {
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    width: 20px;
    border-radius: 4px;
}

/* 幻灯片容器 */
.slideshow-container {
    position: relative;
    width: 100%;
    height: calc(100vh - 44px);
    margin-top: 44px;
    overflow: hidden;
}

/* 单个幻灯片 */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    overflow-y: auto;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

.slide-1 { background: var(--color-canvas); }
.slide-2 { background: var(--color-tile-1); color: white; }
.slide-3 { background: var(--color-canvas-parchment); }

.slide-content {
    max-width: 900px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 20;
}

/* 箭头按钮 */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.arrow:hover {
    background: rgba(0, 102, 204, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.arrow-left { left: 16px; }
.arrow-right { right: 16px; }

.slide-1 .arrow-left,
.slide-3 .arrow-right { display: none; }

/* 排版 */
.eyebrow {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 0.231px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.display-text {
    font-family: var(--font-display);
    font-size: clamp(36px, 8vw, 56px);
    font-weight: 600;
    line-height: 1.07;
    letter-spacing: -0.28px;
    margin-bottom: 16px;
}

.subhead {
    font-size: clamp(18px, 3vw, 28px);
    font-weight: 400;
    line-height: 1.14;
    color: #333;
    margin-bottom: 32px;
    opacity: 0.85;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 12px;
}

.section-desc {
    font-size: clamp(15px, 2.5vw, 21px);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 32px;
}

.slide-hint {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    color: #999;
    animation: pulse-hint 2s ease-in-out infinite;
}

@keyframes pulse-hint {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ====================
   蛋糕系统 - 可爱卡通风
   ==================== */
.cake-showcase {
    margin: 40px auto;
    max-width: 450px;
}

.cake-scene {
    perspective: 800px;
    margin-bottom: 28px;
}

.cake-3d {
    position: relative;
    width: 280px;
    height: 320px;
    margin: 0 auto;
    transform-style: preserve-3d;
    animation: cake-float 6s ease-in-out infinite;
}

@keyframes cake-float {
    0%, 100% { transform: translateY(0) rotateX(5deg); }
    50% { transform: translateY(-15px) rotateX(5deg); }
}

/* 蛋糕底层 - 圆润大底座 */
.layer-base {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 260px;
    height: 110px;
    background: linear-gradient(180deg, #ffb6c1 0%, #ff91a4 50%, #ff7a93 100%);
    border-radius: 50% 50% 45% 45% / 30% 30% 70% 70%;
    box-shadow:
        inset 0 -15px 35px rgba(0, 0, 0, 0.12),
        inset 0 12px 28px rgba(255, 255, 255, 0.55),
        0 10px 40px rgba(255, 182, 193, 0.35);
    z-index: 1;
}

/* 底部装饰球边框 */
.layer-base::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    height: 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.layer-base::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 8%;
    right: 8%;
    height: 16px;
    background:
        radial-gradient(circle at 10% 50%, #ffd700 6px, transparent 6px),
        radial-gradient(circle at 25% 50%, #ff69b4 6px, transparent 6px),
        radial-gradient(circle at 40% 50%, #87ceeb 6px, transparent 6px),
        radial-gradient(circle at 55% 50%, #98fb98 6px, transparent 6px),
        radial-gradient(circle at 70% 50%, #dda0dd 6px, transparent 6px),
        radial-gradient(circle at 85% 50%, #ffa07a 6px, transparent 6px);
    border-radius: 50%;
    opacity: 0.9;
}

/* 蛋糕中层 */
.layer-middle {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 95px;
    width: 200px;
    height: 90px;
    background: linear-gradient(180deg, #ffc0cb 0%, #ffb6c1 50%, #ffa0b4 100%);
    border-radius: 48% 48% 42% 42% / 32% 32% 68% 68%;
    box-shadow:
        inset 0 -12px 28px rgba(0, 0, 0, 0.1),
        inset 0 10px 24px rgba(255, 255, 255, 0.6),
        0 8px 32px rgba(255, 192, 203, 0.3);
    z-index: 2;
}

/* 奶油滴落效果 - 中层 */
.cream-drips-middle {
    position: absolute;
    bottom: -10px;
    left: 8%;
    width: 84%;
    display: flex;
    justify-content: space-around;
    z-index: 2;
}

.cream-drips-middle span {
    width: 10px;
    background: inherit;
    border-radius: 0 0 10px 10px;
    opacity: 0.75;
}

.cream-drips-middle span:nth-child(1) { height: 22px; }
.cream-drips-middle span:nth-child(2) { height: 14px; }
.cream-drips-middle span:nth-child(3) { height: 26px; }
.cream-drips-middle span:nth-child(4) { height: 16px; }
.cream-drips-middle span:nth-child(5) { height: 20px; }

/* 蛋糕顶层 - 最圆润可爱的一层 */
.layer-top {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 175px;
    width: 150px;
    height: 80px;
    background: linear-gradient(180deg, #ffe4ec 0%, #ffd1dc 50%, #ffb6c1 100%);
    border-radius: 52% 52% 46% 46% / 35% 35% 65% 65%;
    box-shadow:
        inset 0 -10px 24px rgba(0, 0, 0, 0.08),
        inset 0 8px 20px rgba(255, 255, 255, 0.65),
        0 6px 28px rgba(255, 228, 236, 0.35);
    z-index: 3;
}

/* 顶部中心装饰（大爱心/星星） */
.layer-top::before {
    content: '❤';
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 22px;
    color: #ff69b4;
    text-shadow: 0 2px 8px rgba(255, 105, 180, 0.4);
    animation: top-decoration-bounce 2s ease-in-out infinite;
    z-index: 5;
}

@keyframes top-decoration-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0) scale(1); }
    50% { transform: translateX(-50%) translateY(-4px) scale(1.1); }
}

/* 奶油滴落效果 - 顶层（更明显） */
.cream-drips {
    position: absolute;
    bottom: -12px;
    left: 10%;
    width: 80%;
    display: flex;
    justify-content: space-around;
    z-index: 3;
}

.cream-drips span {
    width: 11px;
    background: inherit;
    border-radius: 0 0 11px 11px;
    opacity: 0.8;
}

.cream-drips span:nth-child(1) { height: 24px; }
.cream-drips span:nth-child(2) { height: 16px; }
.cream-drips span:nth-child(3) { height: 28px; }
.cream-drips span:nth-child(4) { height: 18px; }

/* 彩色糖珠装饰 */
.sprinkles {
    position: absolute;
    top: 15%;
    left: 10%;
    right: 10%;
    bottom: 20%;
    pointer-events: none;
    z-index: 4;
}

.sprinkle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: sprinkle-sparkle 2s ease-in-out infinite;
}

.sprinkle:nth-child(1) { top: 20%; left: 15%; background: #ff69b4; animation-delay: 0s; }
.sprinkle:nth-child(2) { top: 35%; left: 70%; background: #ffd700; animation-delay: 0.3s; }
.sprinkle:nth-child(3) { top: 60%; left: 25%; background: #87ceeb; animation-delay: 0.6s; }
.sprinkle:nth-child(4) { top: 45%; left: 55%; background: #98fb98; animation-delay: 0.9s; }
.sprinkle:nth-child(5) { top: 70%; left: 65%; background: #dda0dd; animation-delay: 1.2s; }
.sprinkle:nth-child(6) { top: 25%; left: 45%; background: #ffa07a; animation-delay: 1.5s; }

@keyframes sprinkle-sparkle {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

/* 蜡烛组容器 - 居中在蛋糕顶部 */
.candles-group {
    position: absolute;
    bottom: 250px;  /* 精确对准顶层蛋糕上表面 */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 0;
    z-index: 100;
}

/* 单根大蜡烛容器 */
.candle {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: all 0.3s ease;
}

/* 大火焰（加宽加大） */
.flame {
    position: relative;
    width: 24px;  /* 加宽火焰 */
    height: 38px;  /* 加高火焰 */
    background: radial-gradient(
        ellipse at 50% 90%,
        #fff 0%,
        #ffd700 12%,
        #ff8c00 40%,
        #ff4500 70%,
        transparent 100%
    );
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: flame-dance 0.4s ease-in-out infinite alternate;
    filter: blur(0.3px);
    box-shadow:
        0 0 18px #ffd700,
        0 0 32px rgba(255, 140, 0, 0.55),
        0 0 48px rgba(255, 69, 0, 0.35);
    margin-bottom: 3px;
}

/* 长烛芯 */
.wick {
    width: 3px;
    height: 10px;
    background: linear-gradient(to bottom, #222, #444);
    border-radius: 1.5px;
}

/* 大蜡烛身体 */
.candle-body {
    width: 18px;  /* 加宽身体 */
    height: 65px;  /* 加高身体 */
    background: linear-gradient(
        to right,
        #ff69b4 0%,
        #ffc1dc 20%,
        #ffe0ec 40%,
        #fff 50%,
        #ffe0ec 60%,
        #ffc1dc 80%,
        #ff69b4 100%
    );
    border-radius: 6px 6px 4px 4px;
    position: relative;
    box-shadow:
        inset -3px 0 10px rgba(0, 0, 0, 0.12),
        inset 3px 0 10px rgba(255, 255, 255, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 蜡烛顶部熔化池 */
.candle-body::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 9px;
    background: radial-gradient(ellipse, #333, #111);
    border-radius: 50%;
    opacity: 0.95;
}

@keyframes flame-dance {
    0% { transform: scaleX(1) scaleY(1) rotate(-2deg); }
    100% { transform: scaleX(0.92) scaleY(1.08) rotate(2deg); }
}

.cake-3d.blown .flame {
    animation: blow-out 0.6s ease-out forwards;
}

@keyframes blow-out {
    to { transform: scaleY(0) scaleX(1.5); opacity: 0; }
}

/* 蛋糕颜色主题 - 可爱卡通风 */
.cake-pink .layer-base {
    background: linear-gradient(180deg, #ffb6c1 0%, #ff91a4 50%, #ff7a93 100%);
}
.cake-pink .layer-middle {
    background: linear-gradient(180deg, #ffc0cb 0%, #ffb6c1 50%, #ffa0b4 100%);
}
.cake-pink .layer-top {
    background: linear-gradient(180deg, #ffe4ec 0%, #ffd1dc 50%, #ffb6c1 100%);
}

.cake-chocolate .layer-base {
    background: linear-gradient(180deg, #8B4513 0%, #6b3410 50%, #5a2d0e 100%);
}
.cake-chocolate .layer-middle {
    background: linear-gradient(180deg, #A0522D 0%, #8B4513 50%, #7a3c10 100%);
}
.cake-chocolate .layer-top {
    background: linear-gradient(180deg, #D2691E 0%, #a0522d 50%, #8b4513 100%);
}

.cake-strawberry .layer-base {
    background: linear-gradient(180deg, #ff6b81 0%, #ff4757 50%, #ee3344 100%);
}
.cake-strawberry .layer-middle {
    background: linear-gradient(180deg, #ff8a94 0%, #ff6b81 50%, #ff5767 100%);
}
.cake-strawberry .layer-top {
    background: linear-gradient(180deg, #ffa0b4 0%, #ff8a94 50%, #ff7a90 100%);
}

.cake-rainbow .layer-base {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffd93d 25%, #6bcb77 50%, #4d96ff 75%, #9b59b6 100%);
}
.cake-rainbow .layer-middle {
    background: linear-gradient(135deg, #ffd93d 0%, #6bcb77 25%, #4d96ff 50%, #9b59b6 75%, #ff6b6b 100%);
}
.cake-rainbow .layer-top {
    background: linear-gradient(135deg, #6bcb77 0%, #4d96ff 25%, #9b59b6 50%, #ff6b6b 75%, #ffd93d 100%);
}

/* 蛋糕控制面板 */
.cake-controls {
    margin: 20px auto 24px;
    max-width: 300px;
}

.control-group {
    background: #f5f5f7;
    border-radius: 14px;
    padding: 16px 20px;
    border: 1px solid #e0e0e0;
}

.control-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin-bottom: 10px;
    text-align: center;
}

.candle-count-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.count-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
    background: white;
    color: var(--color-primary);
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.count-btn:hover {
    background: var(--color-primary);
    color: white;
    transform: scale(1.1);
}

.count-btn:active {
    transform: scale(0.95);
}

.count-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.count-display {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-ink);
    min-width: 40px;
    text-align: center;
    font-family: var(--font-display);
}
.cake-selector {
    margin-bottom: 24px;
}

.selector-label {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 12px;
}

.cake-options {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.cake-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: #f5f5f7;
    border: 2px solid transparent;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    min-width: 90px;
}

.cake-option:hover {
    background: #e8e8ed;
    transform: translateY(-2px);
}

.cake-option.active {
    border-color: var(--color-primary);
    background: #e8f4ff;
}

.cake-preview {
    font-size: 28px;
}

.option-name {
    font-size: 12px;
    font-weight: 500;
    color: #333;
}

/* 按钮 */
.action-btn {
    font-size: 17px;
    font-weight: 400;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    padding: 12px 28px;
}

.action-btn.primary {
    background: var(--color-primary);
    color: white;
}

.action-btn.primary:hover {
    background: var(--color-primary-focus);
}

.action-btn.primary:active {
    transform: scale(0.95);
}

.action-btn.secondary {
    background: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.action-btn:hover .btn-icon {
    transform: translateX(4px);
}

/* 音乐播放器 */
.music-player-premium {
    display: flex;
    gap: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 24px;
    backdrop-filter: blur(20px);
    max-width: 650px;
    margin: 0 auto 24px;
}

.player-artwork {
    width: 140px;
    height: 140px;
    border-radius: 18px;
    background: linear-gradient(135deg, #2a2a2c, #1a1a1c);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.artwork-placeholder {
    font-size: 48px;
}

.playing-indicator {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 14px;
    opacity: 0;
    transition: opacity 0.3s;
}

.playing-indicator.active { opacity: 1; }

.playing-indicator span {
    width: 3px;
    background: rgba(255, 255, 255, 0.9);
    animation: equalizer 0.8s ease-in-out infinite;
}

.playing-indicator span:nth-child(1) { animation-delay: 0s; height: 30%; }
.playing-indicator span:nth-child(2) { animation-delay: 0.2s; height: 70%; }
.playing-indicator span:nth-child(3) { animation-delay: 0.4s; height: 50%; }
.playing-indicator span:nth-child(4) { animation-delay: 0.6s; height: 90%; }

@keyframes equalizer {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.5); }
}

.player-controls {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.track-info { margin-bottom: 12px; }
.track-name { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.track-meta { font-size: 13px; color: rgba(255, 255, 255, 0.5); }

.playback-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 12px 0;
}

.control-btn {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover { background: rgba(255, 255, 255, 0.1); }
.play-main-btn { width: 52px; height: 52px; background: rgba(255, 255, 255, 0.1); }

.progress-container { margin-bottom: 12px; }
.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    cursor: pointer;
}
.progress-fill {
    height: 100%;
    background: #2997ff;
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

.volume-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-slider {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
}

.playlist-mini {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 18px;
    padding: 16px;
    max-width: 650px;
    margin: 0 auto;
}

.playlist-tracks { margin-bottom: 12px; min-height: 60px; }

.track-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s;
    margin-bottom: 4px;
}

.track-item:hover { background: rgba(255, 255, 255, 0.05); }
.track-item.active { background: rgba(0, 102, 204, 0.2); }
.track-item.active .track-title { color: #2997ff; }
.track-number { font-size: 13px; color: rgba(255, 255, 255, 0.5); width: 20px; }
.track-title { font-size: 14px; font-weight: 500; flex: 1; }

.upload-zone {
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.upload-label {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    cursor: pointer;
}

.upload-label:hover { color: rgba(255, 255, 255, 0.8); }

/* 互动卡片 */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.exp-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.card-header h3 { font-size: 18px; font-weight: 600; }

.card-badge {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-primary);
    background: rgba(0, 102, 204, 0.08);
    padding: 4px 10px;
    border-radius: 9999px;
}

.canvas-container {
    position: relative;
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 10px;
    overflow: hidden;
    cursor: crosshair;
}

#fireworks-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.canvas-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    pointer-events: none;
    transition: opacity 0.3s;
}

.canvas-container.active .canvas-hint { opacity: 0; }

/* 生日卡片生成器 */
.card-preview-area {
    margin-bottom: 16px;
}

.birthday-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 28px 24px;
    color: white;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    transition: all 0.4s ease;
}

.birthday-card:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.card-inner {
    text-align: center;
}

.card-decoration {
    font-size: 32px;
    margin-bottom: 12px;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: rotate(0deg) scale(1); opacity: 1; }
    50% { transform: rotate(180deg) scale(1.2); opacity: 0.8; }
}

.card-title {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 12px;
}

.card-message {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
    opacity: 0.95;
    min-height: 48px;
}

.card-date {
    font-size: 13px;
    opacity: 0.7;
    margin-bottom: 8px;
}

.card-signature {
    font-size: 14px;
    font-style: italic;
    opacity: 0.85;
}

.wish-input-area {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wish-textarea {
    font-family: var(--font-text);
    font-size: 14px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 12px;
    resize: none;
    outline: none;
    background: white;
    color: var(--color-ink);
}

.wish-textarea:focus { border-color: var(--color-primary); }

.card-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* 倒计时区域 */
.countdown-section {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.countdown-label-text {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.countdown-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 65px;
}

.countdown-value {
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 600;
    line-height: 1;
    color: var(--color-ink);
}

.countdown-label {
    font-size: 11px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    margin-top: 4px;
}

.countdown-separator {
    font-size: 28px;
    font-weight: 300;
    color: #ccc;
    margin-bottom: 18px;
}

.footer-text {
    margin-top: 24px;
    font-size: 13px;
    color: #888;
}

/* Toast */
.toast-container {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    background: rgba(29, 29, 31, 0.95);
    color: white;
    padding: 12px 24px;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 500;
    animation: toast-in 0.3s ease-out;
    pointer-events: auto;
}

.toast.hiding { animation: toast-out 0.3s ease-in forwards; }

@keyframes toast-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes toast-out {
    to { opacity: 0; transform: translateY(-20px); }
}

/* 背景 */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.35;
}

/* ====================
   浪漫功能系统
   ==================== */

/* 浪漫控制面板 */
.romantic-controls {
    background: linear-gradient(135deg, #fff5f7 0%, #ffe4ec 50%, #fff 100%);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 28px;
    border: 2px solid rgba(255, 182, 193, 0.3);
    box-shadow:
        0 8px 32px rgba(255, 105, 180, 0.12),
        inset 0 2px 8px rgba(255, 255, 255, 0.9);
}

.romantic-hint {
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    color: #d63384;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.romantic-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.romantic-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 18px;
    background: white;
    border: 2px solid transparent;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-width: 85px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.romantic-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 28px rgba(255, 105, 180, 0.25);
    border-color: #ff69b4;
}

.romantic-btn:active {
    transform: translateY(-2px) scale(0.98);
}

.romantic-btn.active {
    background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%);
    color: white;
    border-color: #ff1493;
    box-shadow:
        0 8px 24px rgba(255, 20, 147, 0.35),
        inset 0 2px 8px rgba(255, 255, 255, 0.3);
}

.romantic-btn .btn-icon {
    font-size: 28px;
    line-height: 1;
    transition: transform 0.3s ease;
}

.romantic-btn:hover .btn-icon {
    transform: scale(1.2) rotate(10deg);
}

.romantic-btn span:last-child {
    font-size: 13px;
    font-weight: 600;
    color: inherit;
}

/* 打字机展示区 */
.typewriter-display {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 18px;
    padding: 28px 32px;
    margin-bottom: 24px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        inset 0 2px 12px rgba(0, 0, 0, 0.3),
        0 8px 32px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.typewriter-display::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 105, 180, 0.08) 0%, transparent 70%);
    animation: typewriter-glow 4s ease-in-out infinite;
}

@keyframes typewriter-glow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(25%, 25%); }
}

.typewriter-text {
    font-family: var(--font-display);
    font-size: clamp(18px, 3vw, 26px);
    font-weight: 600;
    line-height: 1.6;
    color: #fff;
    text-align: center;
    z-index: 1;
    position: relative;
    text-shadow: 0 2px 12px rgba(255, 105, 180, 0.5);
    max-width: 90%;
}

.typewriter-text::after {
    content: '|';
    animation: blink-cursor 0.8s infinite;
    color: #ff69b4;
    font-weight: 400;
    margin-left: 4px;
}

@keyframes blink-cursor {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* 爱心雨容器 */
.hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

.falling-heart {
    position: absolute;
    top: -60px;
    font-size: 24px;
    animation: heart-fall linear forwards;
    opacity: 0;
    will-change: transform, opacity;
}

@keyframes heart-fall {
    0% {
        opacity: 0;
        transform: translateY(0) rotate(0deg) scale(0.5);
    }
    10% {
        opacity: 1;
        transform: translateY(10vh) rotate(15deg) scale(1);
    }
    90% {
        opacity: 0.9;
    }
    100% {
        opacity: 0;
        transform: translateY(110vh) rotate(360deg) scale(0.8);
    }
}

/* 气球升空容器 */
.balloons-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9997;
    overflow: hidden;
}

.rising-balloon {
    position: absolute;
    bottom: -150px;
    width: 50px;
    height: 65px;
    animation: balloon-rise ease-out forwards;
    will-change: transform;
}

.balloon-body {
    width: 100%;
    height: 55px;
    border-radius: 50% 50% 50% 50% / 45% 45% 55% 55%;
    position: relative;
    box-shadow:
        inset -8px -8px 20px rgba(0, 0, 0, 0.15),
        inset 8px 8px 20px rgba(255, 255, 255, 0.4),
        0 8px 24px rgba(0, 0, 0, 0.15);
}

.balloon-string {
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, #888, #aaa);
    margin: 0 auto;
    position: relative;
}

.balloon-string::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #888;
    border-radius: 50%;
}

@keyframes balloon-rise {
    0% {
        transform: translateY(0) rotate(0deg) scale(0.8);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateY(-10vh) rotate(-5deg) scale(1);
    }
    90% {
        opacity: 0.95;
    }
    100% {
        transform: translateY(-120vh) rotate(8deg) scale(1.05);
        opacity: 0;
    }
}

/* 彩屑粒子 */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    top: -20px;
    animation: confetti-fall linear forwards;
    will-change: transform, opacity;
}

@keyframes confetti-fall {
    0% {
        opacity: 1;
        transform: translateY(0) rotate(0deg) scaleX(1);
    }
    100% {
        opacity: 0;
        transform: translateY(100vh) rotate(720deg) scaleX(0.5);
    }
}

/* 鼠标跟随星光 */
.sparkle-trail {
    position: fixed;
    pointer-events: none;
    z-index: 9996;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0%, #ffd700 40%, transparent 70%);
    box-shadow:
        0 0 12px #ffd700,
        0 0 24px rgba(255, 215, 0, 0.5);
    animation: sparkle-fade 0.8s ease-out forwards;
    will-change: transform, opacity;
}

@keyframes sparkle-fade {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0) translateY(-20px);
    }
}

/* 响应式 */
@media (max-width: 768px) {
    .slide { padding: 20px; }
    
    .music-player-premium {
        flex-direction: column;
        align-items: center;
    }
    
    .player-artwork { width: 120px; height: 120px; }
    
    .experience-grid { grid-template-columns: 1fr; }
    
    .arrow { width: 40px; height: 40px; }
    
    .cake-options { gap: 8px; }
    .cake-option { padding: 10px 12px; min-width: 75px; }
    .cake-preview { font-size: 24px; }
    
    .countdown-unit { min-width: 55px; }
    .countdown-value { font-size: 28px; }
    
    .card-actions { flex-direction: column; }
}
