/* 高奢暗黑极简主义 CSS Design System */

:root {
    /* 极致奢华色板 */
    --color-bg: #030106;           /* 极深的星空黑紫 */
    --color-bg-light: #0d0614;     /* 浅调黑紫 */
    
    --color-gold: #D4AF37;         /* 经典香槟金 */
    --color-gold-light: #F9E596;   /* 高光亮金 */
    --color-gold-dark: #997A15;    /* 暗金 */
    
    --color-rose: #FFB7C5;         /* 玫瑰粉 */
    --color-rose-glow: rgba(255, 183, 197, 0.4);
    
    --color-text-main: #FDFBF7;    /* 珍珠白/丝绸质感 */
    --color-text-muted: #A39BA8;   /* 柔和灰紫 */
    
    /* 质感系统 */
    --glass-bg: rgba(20, 10, 25, 0.4);
    --glass-border: 1px solid rgba(212, 175, 55, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    
    /* 字体系统 */
    --font-serif: 'Noto Serif SC', 'Playfair Display', serif;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-english: 'Cinzel', serif;
    
    --transition-smooth: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

html, body {
    width: 100%;
    height: 100%;
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: var(--font-serif);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 隐藏原生滚动条，依靠 GSAP 或只给平滑感 */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--color-gold-dark);
    border-radius: 3px;
}

/* 选中文字颜色 */
::selection {
    background-color: var(--color-gold);
    color: var(--color-bg);
}

/* ------------------------------------- */
/* 全局背景 (Ambient Canvas) */
/* ------------------------------------- */
#ambient-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.8;
}

/* 确保所有内容在 Canvas 之上 */
main {
    position: relative;
    z-index: 10;
}

.section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10vh 5vw;
    overflow: hidden;
}

/* ------------------------------------- */
/* Loading 屏 (极致奢华钻石光感) */
/* ------------------------------------- */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--color-bg);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1.5s ease-in-out, visibility 1.5s;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.diamond-loader {
    width: 60px;
    height: 60px;
    border: 1px solid var(--color-gold-dark);
    transform: rotate(45deg);
    position: relative;
    animation: pulseGlow 3s infinite alternate;
    box-shadow: 0 0 20px var(--color-gold-dark);
}

.diamond-inner {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold-dark));
    animation: innerSpin 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 10px var(--color-gold-dark), inset 0 0 10px rgba(212, 175, 55, 0.2); }
    100% { box-shadow: 0 0 30px var(--color-gold), inset 0 0 20px rgba(212, 175, 55, 0.5); }
}

@keyframes innerSpin {
    0% { transform: rotate(0deg); opacity: 0.5; }
    50% { transform: rotate(180deg); opacity: 1; }
    100% { transform: rotate(360deg); opacity: 0.5; }
}

.loader-text {
    font-family: var(--font-serif);
    color: var(--color-gold);
    letter-spacing: 4px;
    font-size: 14px;
    opacity: 0.8;
    animation: textBreathe 2s infinite alternate;
}

@keyframes textBreathe {
    0% { opacity: 0.4; letter-spacing: 4px; }
    100% { opacity: 1; letter-spacing: 6px; text-shadow: 0 0 10px var(--color-gold); }
}

/* ------------------------------------- */
/* 音乐控制器 (悬浮、琉璃质感) */
/* ------------------------------------- */
#music-control {
    position: fixed;
    top: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: var(--glass-border);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: var(--transition-smooth);
}

#music-control:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    border-color: var(--color-gold);
}

.music-icon {
    width: 20px;
    height: 20px;
    color: var(--color-gold);
    z-index: 2;
}

.music-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 3px;
    opacity: 0;
    transition: opacity 0.5s;
}

.music-rings span {
    display: block;
    width: 2px;
    height: 10px;
    background-color: var(--color-rose);
    border-radius: 2px;
}

#music-control.playing .music-icon {
    display: none;
}
#music-control.playing .music-rings {
    opacity: 1;
}

#music-control.playing .music-rings span {
    animation: equalize 1.5s infinite ease-in-out;
}
#music-control.playing .music-rings span:nth-child(1) { animation-delay: 0.1s; }
#music-control.playing .music-rings span:nth-child(2) { animation-delay: 0.3s; }
#music-control.playing .music-rings span:nth-child(3) { animation-delay: 0.5s; }

@keyframes equalize {
    0%, 100% { height: 6px; }
    50% { height: 16px; background-color: var(--color-gold); box-shadow: 0 0 8px var(--color-gold); }
}

@media (max-width: 768px) {
    #music-control { top: 20px; right: 20px; width: 40px; height: 40px; }
}

/* ------------------------------------- */
/* 第一幕：盛大开场 (Hero) */
/* ------------------------------------- */
#sec-hero {
    flex-direction: column;
    justify-content: space-between;
    padding-top: 15vh;
}

.hero-content {
    text-align: center;
    z-index: 2;
    margin-bottom: 5vh;
}

.hero-subtitle {
    font-family: var(--font-english);
    color: var(--color-gold);
    font-size: clamp(14px, 2vw, 20px);
    letter-spacing: 8px;
    text-transform: uppercase;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
}

.hero-title {
    font-size: clamp(60px, 12vw, 120px);
    font-weight: 300;
    background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.8) 50%, var(--color-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0px 4px 20px rgba(212, 175, 55, 0.3));
    margin-bottom: 20px;
    letter-spacing: 12px;
}

.hero-divider {
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--color-gold), transparent);
    margin: 0 auto;
    opacity: 0;
}

.hero-date {
    font-family: var(--font-english);
    color: var(--color-text-muted);
    font-size: clamp(16px, 2vw, 24px);
    letter-spacing: 6px;
    margin-top: 20px;
}

.hero-cake-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    margin-top: auto;
    z-index: 2;
    display: flex;
    justify-content: center;
    opacity: 0;
}

.cake-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, rgba(255, 183, 197, 0.05) 40%, transparent 70%);
    filter: blur(40px);
    z-index: -1;
    animation: slowPulse 8s infinite alternate;
}

@keyframes slowPulse {
    0% { opacity: 0.6; transform: translate(-50%, -40%) scale(0.9); }
    100% { opacity: 1; transform: translate(-50%, -40%) scale(1.1); }
}

.cake-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.8));
    animation: gentleFloat 6s ease-in-out infinite alternate;
}

@keyframes gentleFloat {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-20px); }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    opacity: 0;
}

.scroll-text {
    font-size: 11px;
    letter-spacing: 4px;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--color-gold), transparent);
    animation: lineDown 2s infinite cubic-bezier(0.77, 0, 0.175, 1);
    transform-origin: top;
}

@keyframes lineDown {
    0% { transform: scaleY(0); opacity: 0; }
    50% { transform: scaleY(1); opacity: 1; }
    100% { transform: scaleY(1); opacity: 0; top: 100%; }
}

/* ------------------------------------- */
/* 第二幕：深情叙事 (Story) */
/* ------------------------------------- */
#sec-story {
    background: radial-gradient(circle at center, rgba(20, 10, 30, 0.8) 0%, var(--color-bg) 100%);
}

.story-container {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 15vh;
}

.story-block {
    text-align: left;
    max-width: 600px;
}

.story-block.right-align {
    align-self: flex-end;
    text-align: right;
}

.story-block.center-align {
    align-self: center;
    text-align: center;
    max-width: 800px;
}

.story-text {
    font-size: clamp(20px, 3vw, 36px);
    line-height: 2;
    color: rgba(253, 251, 247, 0.3); /* 初始极淡 */
    background: linear-gradient(90deg, var(--color-gold-light), #fff);
    -webkit-background-clip: text;
    background-clip: text;
    transition: color 1s cubic-bezier(0.2, 0.8, 0.2, 1);
    margin-bottom: 20px;
    letter-spacing: 2px;
    will-change: color, transform;
}

/* 用 GSAP 的 ScrollTrigger 改变色值来实现点亮效果 */
.story-text.active {
    color: transparent; 
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.story-block.grand .story-text {
    font-size: clamp(24px, 4vw, 42px);
    color: rgba(212, 175, 55, 0.2);
    background: linear-gradient(90deg, var(--color-gold), var(--color-rose), var(--color-gold-light));
    -webkit-background-clip: text;
    background-size: 200% auto;
    animation: shineText 5s linear infinite;
}

@keyframes shineText {
    to { background-position: 200% center; }
}
.story-block.grand .story-text.active {
    color: transparent;
    text-shadow: 0 0 30px rgba(255, 183, 197, 0.4);
}

/* ------------------------------------- */
/* 第二幕附加奢华装饰 (Luxury Story Decor)*/
/* ------------------------------------- */
.rich-block {
    position: relative;
    padding: 40px;
    background: rgba(20, 10, 25, 0.1);
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.05);
    backdrop-filter: blur(5px);
    transition: all 1s ease;
}

.rich-block:hover {
    box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.3), 0 20px 40px rgba(0,0,0,0.5);
    background: rgba(20, 10, 25, 0.3);
}

.rich-decor {
    position: absolute;
    width: 30px; height: 30px;
}
.rich-decor.top-left {
    top: -10px; left: -10px;
    border-top: 2px solid var(--color-gold);
    border-left: 2px solid var(--color-gold);
}
.rich-decor.bottom-right {
    bottom: -10px; right: -10px;
    border-bottom: 2px solid var(--color-gold);
    border-right: 2px solid var(--color-gold);
}

.rich-border {
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 50px; height: 1px;
    background: var(--color-gold);
    opacity: 0.5;
}

.rich-border.glowing {
    width: 150px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-gold), var(--color-rose), transparent);
    box-shadow: 0 0 10px var(--color-gold);
}

.stars-corner {
    position: absolute;
    color: var(--color-gold);
    font-size: 20px;
    animation: twinkleBg 2s infinite alternate;
}
.stars-corner.top-right { top: 10px; right: 10px; }
.stars-corner.bottom-left { bottom: 10px; left: 10px; }

/* 悬浮光球 */
.luxury-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
    pointer-events: none;
}

.orb-1 {
    top: 20%; left: 10%;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15), transparent 70%);
    animation: floatOrb 10s infinite alternate ease-in-out;
}
.orb-2 {
    bottom: 20%; right: 10%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255, 183, 197, 0.12), transparent 70%);
    animation: floatOrb 15s infinite alternate-reverse ease-in-out;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, -50px) scale(1.1); }
}

/* 视觉盛宴容器：立体几何阵列 */
.visual-spectacle {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 50px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.spectacle-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.1);
}

.ring-outer {
    width: 250px; height: 250px;
    border-top-color: var(--color-gold);
    border-bottom-color: var(--color-rose);
    animation: spin3D 8s linear infinite;
}

.ring-inner {
    width: 180px; height: 180px;
    border-left-color: var(--color-gold-light);
    border-right-color: var(--color-rose);
    animation: spin3DReverse 6s linear infinite;
}

.spectacle-diamond {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(212, 175, 55, 0.5));
    transform: rotate(45deg);
    box-shadow: 0 0 30px var(--color-gold);
    animation: pulseBreathe 4s infinite alternate;
}

.spectacle-glow {
    position: absolute;
    width: 100px; height: 100px;
    background: var(--color-gold);
    filter: blur(40px);
    opacity: 0.3;
    animation: pulseBreathe 3s infinite alternate;
}

@keyframes spin3D {
    0% { transform: rotateX(60deg) rotateY(0deg) rotateZ(0deg); }
    100% { transform: rotateX(60deg) rotateY(360deg) rotateZ(360deg); }
}

@keyframes spin3DReverse {
    0% { transform: rotateX(45deg) rotateY(360deg) rotateZ(0deg); }
    100% { transform: rotateX(45deg) rotateY(0deg) rotateZ(-360deg); }
}

@keyframes pulseBreathe {
    0% { transform: rotate(45deg) scale(0.9); opacity: 0.8; }
    100% { transform: rotate(45deg) scale(1.1); opacity: 1; box-shadow: 0 0 50px var(--color-gold); }
}

/* ------------------------------------- */
/* 第一幕到第二幕的转场繁星 (Transition Stars) */
/* ------------------------------------- */
.transition-stars {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3vh;
    margin-top: -15vh; /* 拉升缩短下落空白距离 */
    margin-bottom: 5vh;
    z-index: 10;
}

.t-star {
    font-size: 24px;
    color: var(--color-gold-light);
    opacity: 0;
    animation: starStairs 3s infinite;
}
.t-star:nth-child(1) { animation-delay: 0s; font-size: 28px; }
.t-star:nth-child(2) { animation-delay: 1s; font-size: 18px; }
.t-star:nth-child(3) { animation-delay: 2s; font-size: 28px; }

@keyframes starStairs {
    0% { transform: translateY(-30px); opacity: 0; }
    30% { opacity: 1; text-shadow: 0 0 20px var(--color-gold); }
    100% { transform: translateY(30px); opacity: 0; }
}

/* ------------------------------------- */
/* 第三幕：奢华画廊 (Gallery) */
/* ------------------------------------- */
#sec-gallery {
    /* 为横向滚动创造条件，父容器极高，依靠 GSAP pin */
    height: 100vh;
    padding: 0;
    align-items: flex-start;
    justify-content: center;
    background: #020104; /* 稍微更暗以突显照片 */
    box-shadow: inset 0 0 150px rgba(0,0,0,0.9);
}

.gallery-title-wrapper {
    position: absolute;
    top: 10vh;
    left: 10vw;
    z-index: 20;
}

.gallery-title {
    font-size: clamp(40px, 6vw, 80px);
    font-weight: 300;
    color: var(--color-text-main);
    letter-spacing: 6px;
    margin-bottom: 10px;
}

.gallery-subtitle {
    font-family: var(--font-english);
    color: var(--color-gold);
    letter-spacing: 8px;
    font-size: 14px;
    text-transform: uppercase;
}

.gallery-horizontal-scroll {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.gallery-track {
    display: flex;
    gap: 8vw;
    padding: 0 50vw 0 10vw; /* 首尾留白 */
    height: 60vh;
    align-items: center;
}

.gallery-item {
    flex-shrink: 0;
    perspective: 1500px;
}

.gallery-frame {
    width: 40vw;
    max-width: 500px;
    height: 55vh;
    max-height: 650px;
    background: var(--glass-bg);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px; /* 极简的锐利边角显得高级 */
    padding: 15px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8), 
                inset 0 0 0 1px rgba(212, 175, 55, 0.2);
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
    overflow: hidden;
}

/* 相框边框反光质感 */
.gallery-frame::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(45deg, transparent 40%, rgba(212, 175, 55, 0.5) 50%, transparent 60%);
    z-index: -1;
    animation: goldSweep 4s linear infinite;
}

@keyframes goldSweep {
    0% { background-position: -500px 0; }
    100% { background-position: 500px 0; }
}

.gallery-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9) contrast(1.1);
    transition: filter 0.5s;
}

.gallery-frame:hover img {
    filter: brightness(1.1) contrast(1.1);
}

.frame-glare {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, transparent 40%);
    pointer-events: none;
    z-index: 2;
}

.gallery-caption {
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 14px;
    letter-spacing: 2px;
    opacity: 0;
    transition: all 0.5s;
}

.gallery-frame:hover .gallery-caption {
    bottom: -30px;
    opacity: 1;
    color: var(--color-gold);
}

/* 占位空相框提示 */
.empty-frame-hint .gallery-frame {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px dashed rgba(212, 175, 55, 0.3);
    background: rgba(0,0,0,0.3);
}

.empty-text {
    text-align: center;
    color: var(--color-text-muted);
    line-height: 1.8;
}

.empty-text span {
    font-size: 24px;
    color: var(--color-gold);
    display: block;
    margin-bottom: 20px;
    animation: slowPulse 3s infinite;
}

.empty-text .path {
    margin-top: 10px;
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--color-gold);
    background: rgba(212, 175, 55, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .gallery-frame { width: 80vw; height: 60vh; }
    .gallery-title { font-size: 32px; }
}

/* ------------------------------------- */
/* 第四幕：高潮许愿 (Climax & Make A Wish) */
/* ------------------------------------- */
#sec-climax {
    background: radial-gradient(circle at center, rgba(30, 10, 20, 0.4) 0%, var(--color-bg) 100%);
}

/* 全局交互烟花层 */
#fireworks-canvas {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 5;
    pointer-events: none;
}

.climax-content {
    position: relative;
    z-index: 10;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.climax-title {
    font-size: clamp(50px, 8vw, 90px);
    font-weight: 300;
    letter-spacing: 8px;
    color: #fff;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

.climax-desc {
    color: var(--color-text-muted);
    font-size: 18px;
    letter-spacing: 3px;
}

.wish-cake-wrapper {
    margin: 40px auto;
    position: relative;
    width: 250px;
    height: 350px; /* 固定高度，防止蛋糕消失时发生页面坍塌跳跃 */
    display: flex;
    justify-content: center;
    align-items: center;
}

.wish-cake {
    width: 250px;
    position: relative;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.8));
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wish-cake img {
    width: 100%;
    height: auto;
}

/* 超真实蜡烛火焰效果 */
.candle-flame {
    position: absolute;
    top: 12%;       /* 根据实际蛋糕图片微调 */
    left: 49.5%;
    transform: translateX(-50%);
    width: 15px;
    height: 35px;
    cursor: pointer;
    z-index: 20;
    transition: opacity 0.5s;
}

.candle-flame.blown-out {
    opacity: 0;
}

.flame-core {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 12px;
    background: white;
    border-radius: 50% 50% 20% 20%;
    box-shadow: 0 0 15px 5px rgba(255, 255, 255, 0.8);
}

.flame-outer {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 15px;
    height: 35px;
    background: linear-gradient(to top, rgba(255,165,0,0.8), rgba(255,69,0,0.6), transparent);
    border-radius: 50% 50% 20% 20%;
    animation: flameFlicker 0.1s infinite alternate;
}

.flame-halo {
    position: absolute;
    top: -50%;
    left: -150%;
    width: 400%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.3) 0%, transparent 60%);
    border-radius: 50%;
    animation: haloPulse 2s infinite alternate;
}

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

@keyframes haloPulse {
    0% { opacity: 0.5; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1.2); }
}

/* 最终大礼盒 (替代消失的蛋糕) */
.final-gift-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    width: 150%;
    opacity: 0;
    transition: all 2s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 10;
}

.final-gift-container.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.gift-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(212, 175, 55, 0.4);
    animation: gentleFloat 6s ease-in-out infinite alternate;
}

.gift-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 130%; height: 130%;
    background: radial-gradient(circle, rgba(255, 183, 197, 0.5), transparent 70%);
    filter: blur(50px);
    z-index: -1;
    animation: pulseBreathe 4s infinite alternate;
}

/* 奢华按钮 */
.luxury-btn {
    position: relative;
    padding: 15px 40px;
    background: transparent;
    border: 1px solid var(--color-gold);
    border-radius: 30px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.5s ease;
}

.luxury-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--color-gold-dark), var(--color-gold));
    opacity: 0;
    transition: opacity 0.5s;
    z-index: 1;
}

.luxury-btn:hover {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    border-color: transparent;
    transform: translateY(-3px);
}

.luxury-btn:hover::before {
    opacity: 1;
}

.btn-text {
    position: relative;
    z-index: 2;
    color: var(--color-gold);
    font-family: var(--font-serif);
    font-size: 16px;
    letter-spacing: 4px;
    transition: color 0.5s;
}

.luxury-btn:hover .btn-text {
    color: #000;
    font-weight: 600;
}

/* 最终大字祝福 */
.final-wishes {
    margin-top: 50px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 2s cubic-bezier(0.19, 1, 0.22, 1);
}

.final-wishes.show {
    opacity: 1;
    transform: translateY(0);
}

.final-text {
    font-size: 24px;
    color: var(--color-text-main);
    line-height: 2;
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.final-text.grand-text {
    font-size: clamp(30px, 5vw, 60px);
    margin-top: 20px;
    color: var(--color-gold);
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.6);
}

/* 隐藏类 */
.hidden {
    display: none !important;
}