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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    overflow: hidden;
}

#app {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    gap: 20px;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #8b0000 0%, #cc0000 50%, #ff4d4d 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffd700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    color: #ffd700;
    font-size: 1.2rem;
    margin-top: 20px;
    animation: pulse 1.5s ease-in-out infinite;
}

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

/* Spring Background */
.spring-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #8b0000 0%, #cc0000 30%, #ff3333 70%, #ff6666 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

.spring-background.active {
    opacity: 1;
}

/* Lanterns */
.lantern {
    position: absolute;
    width: 180px;
    height: 160px;
    opacity: 0;
    transform: translateY(-60px) scale(0.8) rotate(-10deg);
    transition: all 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.spring-background.active .lantern {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
}

.lantern-left {
    top: 50px;
    left: 40px;
    animation: swayLeft 6s ease-in-out infinite;
    animation-delay: 0s;
}

.lantern-right {
    top: 50px;
    right: 40px;
    animation: swayRight 6s ease-in-out infinite;
    animation-delay: 0.5s;
}

@keyframes swayLeft {
    0%, 100% { 
        transform: rotate(-5deg) translateX(-3px);
        animation-timing-function: ease-in-out;
    }
    25% { 
        transform: rotate(3deg) translateX(2px) translateY(-5px);
    }
    50% { 
        transform: rotate(5deg) translateX(3px);
        animation-timing-function: ease-in-out;
    }
    75% { 
        transform: rotate(3deg) translateX(-2px) translateY(-3px);
    }
}

@keyframes swayRight {
    0%, 100% { 
        transform: rotate(5deg) translateX(3px);
        animation-timing-function: ease-in-out;
    }
    25% { 
        transform: rotate(-3deg) translateX(-2px) translateY(-5px);
    }
    50% { 
        transform: rotate(-5deg) translateX(-3px);
        animation-timing-function: ease-in-out;
    }
    75% { 
        transform: rotate(-3deg) translateX(2px) translateY(-3px);
    }
}

.lantern-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 40px rgba(255, 100, 0, 0.6)) drop-shadow(0 0 80px rgba(255, 50, 0, 0.3));
    animation: lanternGlow 3s ease-in-out infinite alternate;
}

@keyframes lanternGlow {
    0% { filter: drop-shadow(0 0 40px rgba(255, 100, 0, 0.6)) drop-shadow(0 0 80px rgba(255, 50, 0, 0.3)); }
    100% { filter: drop-shadow(0 0 50px rgba(255, 100, 0, 0.8)) drop-shadow(0 0 100px rgba(255, 50, 0, 0.4)); }
}

/* 小灯笼 */
.lantern-small {
    position: absolute;
    width: 70px;
    height: 105px;
    opacity: 0;
    transform: translateY(-40px) scale(0.7) rotate(-8deg);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s;
    z-index: 4;
}

.spring-background.active .lantern-small {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
}

.lantern-small-1 {
    bottom: 35px;
    left: 35px;
    top: auto;
    right: auto;
    animation: swaySmall1 5s ease-in-out infinite;
    animation-delay: 0.2s;
}

.lantern-small-2 {
    bottom: 35px;
    right: 35px;
    top: auto;
    left: auto;
    animation: swaySmall2 5s ease-in-out infinite;
    animation-delay: 0.7s;
}

.lantern-svg-small {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 25px rgba(255, 100, 0, 0.5)) drop-shadow(0 0 50px rgba(255, 50, 0, 0.25));
    animation: lanternGlowSmall 2.5s ease-in-out infinite alternate;
}

@keyframes lanternGlowSmall {
    0% { filter: drop-shadow(0 0 25px rgba(255, 100, 0, 0.5)) drop-shadow(0 0 50px rgba(255, 50, 0, 0.25)); }
    100% { filter: drop-shadow(0 0 35px rgba(255, 100, 0, 0.7)) drop-shadow(0 0 70px rgba(255, 50, 0, 0.35)); }
}

@keyframes swaySmall1 {
    0%, 100% { 
        transform: rotate(-4deg) translateX(-2px);
        animation-timing-function: ease-in-out;
    }
    50% { 
        transform: rotate(4deg) translateX(2px) translateY(-4px);
        animation-timing-function: ease-in-out;
    }
}

@keyframes swaySmall2 {
    0%, 100% { 
        transform: rotate(4deg) translateX(2px);
        animation-timing-function: ease-in-out;
    }
    50% { 
        transform: rotate(-4deg) translateX(-2px) translateY(-4px);
        animation-timing-function: ease-in-out;
    }
}

/* 小福字 */
.fu-char-small {
    position: absolute;
    width: 60px;
    height: 60px;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 4;
}

.spring-background.active .fu-char-small {
    opacity: 1;
    transform: scale(1);
    animation: fuBounceSmall 2s ease-in-out infinite;
}

.fu-svg-small {
    width: 100%;
    height: 100%;
}

@keyframes fuBounceSmall {
    0%, 100% { transform: scale(1) rotate(3deg); }
    50% { transform: scale(1.05) rotate(-3deg); }
}

/* Fu Character */
.fu-char {
    position: absolute;
    transform: scale(0) rotate(0deg);
    width: 100px;
    height: 100px;
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
    z-index: 5;
}

.spring-background.active .fu-char {
    opacity: 1;
    animation: fuBounce 2.5s ease-in-out infinite;
}

/* 福字1 - 左上 */
.fu-char-1 {
    top: 80px;
    left: 80px;
    right: auto;
    bottom: auto;
}

.spring-background.active .fu-char-1 {
    transform: scale(1) rotate(var(--rotation, 5deg));
}

/* 福字2 - 右上 */
.fu-char-2 {
    top: 80px;
    right: 80px;
    left: auto;
    bottom: auto;
}

.spring-background.active .fu-char-2 {
    transform: scale(1) rotate(var(--rotation, -5deg));
}

/* 福字3 - 左下 */
.fu-char-3 {
    bottom: 30px;
    left: 30px;
    right: auto;
    top: auto;
}

.spring-background.active .fu-char-3 {
    transform: scale(1) rotate(var(--rotation, -5deg));
}

/* 福字4 - 右下 */
.fu-char-4 {
    bottom: 30px;
    right: 30px;
    left: auto;
    top: auto;
}

.spring-background.active .fu-char-4 {
    transform: scale(1) rotate(var(--rotation, 5deg));
}

@keyframes fuBounce {
    0%, 100% { transform: scale(1) rotate(5deg); }
    50% { transform: scale(1.08) rotate(-5deg); }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) scale(1) rotate(0deg); }
    25% { transform: translateX(-50%) scale(1.05) rotate(-2deg); }
    75% { transform: translateX(-50%) scale(1.05) rotate(2deg); }
}

.fu-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.7));
}

/* Fireworks Canvas */
.fireworks-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Video Container */
.video-container {
    position: relative;
    width: 800px;
    height: 600px;
    max-width: 90vw;
    max-height: 55vh;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.video-container:hover {
    transform: scale(1.02);
}

/* 春节模式激活时，视频容器缓慢消失 */
.spring-background.active ~ .video-container {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95);
}

.webcam, .output-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.output-canvas {
    z-index: 1;
}

.webcam {
    z-index: 0;
    transform: scaleX(-1);
}

.output-canvas {
    transform: scaleX(-1);
}

/* Spring Content Container */
.spring-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 600px;
    max-width: 90vw;
    text-align: center;
    color: white;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
}

.spring-background.active .spring-content {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.spring-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
    background: linear-gradient(90deg, #ffd700, #ffed4a, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5)); }
    50% { filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.8)); }
}

.spring-content p {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.8;
    margin-top: 25px;
    margin-bottom: 20px;
    padding: 0 20px;
}

/* 标题装饰线 */
.title-decoration {
    margin: 15px 0;
    display: flex;
    justify-content: center;
    opacity: 0;
    transform: scaleX(0);
    transition: all 0.6s ease;
}

.spring-background.active .title-decoration {
    opacity: 1;
    transform: scaleX(1);
}

.decoration-line {
    width: 300px;
    max-width: 80vw;
    height: 20px;
}

/* 年份显示 */
.year-display {
    font-size: 3.5rem;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.6), 0 0 40px rgba(255, 215, 0, 0.4);
    margin: 15px 0;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.6s ease 0.2s;
    font-family: 'Georgia', serif;
    letter-spacing: 8px;
}

.spring-background.active .year-display {
    opacity: 1;
    transform: translateY(0);
}

.spring-content .emoji {
    font-size: 4rem;
    margin: 20px 0;
    display: inline-block;
    animation: bounce 1.5s ease-in-out infinite;
}

.spring-content .tips {
    margin-top: 30px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.2);
    padding: 10px 20px;
    border-radius: 20px;
    display: inline-block;
}

/* Instructions */
.instructions {
    position: relative;
    text-align: center;
    color: white;
    z-index: 10;
    transition: opacity 0.5s ease;
    margin-top: 10px;
    flex-shrink: 0;
}

.spring-background.active ~ .video-container ~ .instructions,
.spring-background.active ~ .instructions {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.instructions h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    background: linear-gradient(90deg, #ffd700, #ffed4a, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.instructions p {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
}

.instructions strong {
    color: #ffd700;
    font-weight: 600;
}

.hand-icon {
    font-size: 4rem;
    margin: 15px 0;
    animation: handWave 2s ease-in-out infinite;
}

@keyframes handWave {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.hint {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Status Indicator */
.status-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 20px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: opacity 0.5s ease;
}

/* 春节模式激活时隐藏状态指示器 */
.spring-background.active ~ .status-indicator {
    opacity: 0;
    pointer-events: none;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #00ff00;
    animation: blink 1s ease-in-out infinite;
}

.status-dot.detecting {
    background: #ffff00;
}

.status-dot.spring {
    background: #ff4d4d;
    animation: pulse 0.5s ease-in-out infinite;
}

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

.status-text {
    color: white;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .instructions h1 {
        font-size: 1.8rem;
    }
    
    .instructions p {
        font-size: 0.95rem;
    }
    
    .hand-icon {
        font-size: 3rem;
    }
    
    /* 大灯笼 - 移动端 */
    .lantern {
        width: 140px;
        height: 125px;
    }
    
    .lantern-left {
        top: 40px;
        left: 10px;
        animation: swayLeftMobile 5s ease-in-out infinite;
    }
    
    .lantern-right {
        top: 40px;
        right: 10px;
        animation: swayRightMobile 5s ease-in-out infinite;
    }
    
    @keyframes swayLeftMobile {
        0%, 100% { transform: rotate(-4deg) translateX(-2px); }
        50% { transform: rotate(4deg) translateX(2px) translateY(-3px); }
    }
    
    @keyframes swayRightMobile {
        0%, 100% { transform: rotate(4deg) translateX(2px); }
        50% { transform: rotate(-4deg) translateX(-2px) translateY(-3px); }
    }
    
    /* 小灯笼 - 移动端 */
    .lantern-small {
        width: 55px;
        height: 82px;
    }
    
    .lantern-small-1 {
        bottom: 20px;
        left: 15px;
        animation: swaySmall1Mobile 4s ease-in-out infinite;
    }
    
    .lantern-small-2 {
        bottom: 20px;
        right: 15px;
        animation: swaySmall2Mobile 4s ease-in-out infinite;
    }
    
    @keyframes swaySmall1Mobile {
        0%, 100% { transform: rotate(-3deg) translateX(-1px); }
        50% { transform: rotate(3deg) translateX(1px) translateY(-2px); }
    }
    
    @keyframes swaySmall2Mobile {
        0%, 100% { transform: rotate(3deg) translateX(1px); }
        50% { transform: rotate(-3deg) translateX(-1px) translateY(-2px); }
    }
    
    /* 福字 */
    .fu-char {
        width: 70px;
        height: 70px;
    }
    
    .fu-char-small {
        width: 50px;
        height: 50px;
    }

    .countdown-number {
        font-size: 2rem;
    }
}

/* 超小屏幕 */
@media (max-width: 480px) {
    .lantern-left {
        top: 30px;
        left: 5px;
        width: 120px;
        height: 107px;
    }

    .lantern-right {
        top: 30px;
        right: 5px;
        width: 120px;
        height: 107px;
    }
    
    .lantern-small-1 {
        bottom: 15px;
        left: 8px;
        width: 50px;
        height: 75px;
    }
    
    .lantern-small-2 {
        bottom: 15px;
        right: 8px;
        width: 50px;
        height: 75px;
    }
    
    .fu-char {
        width: 60px;
        height: 60px;
    }
    
    .fu-char-small {
        width: 45px;
        height: 45px;
    }
}

/* 春节倒计时 */
.countdown-container {
    margin: 20px 0;
    padding: 25px 30px;
    background: rgba(139, 0, 0, 0.6);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.countdown-label {
    font-size: 1rem;
    margin-bottom: 15px;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 2px;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px 20px;
    border-radius: 12px;
    min-width: 70px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.countdown-number {
    font-size: 2.8rem;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    line-height: 1;
    margin-bottom: 5px;
}

.countdown-item .countdown-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    letter-spacing: 1px;
}

/* 装饰元素 */
.decorations {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    font-size: 2rem;
}

.decoration {
    animation: bounce 1.5s ease-in-out infinite;
    display: inline-block;
}

.decoration:nth-child(1) { animation-delay: 0s; }
.decoration:nth-child(2) { animation-delay: 0.2s; }
.decoration:nth-child(3) { animation-delay: 0.4s; }
.decoration:nth-child(4) { animation-delay: 0.6s; }
.decoration:nth-child(5) { animation-delay: 0.8s; }

/* 装饰星星 */
.decoration-star {
    position: absolute;
    font-size: 1.5rem to 3rem;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.spring-background.active .decoration-star {
    opacity: 1;
}

.star-1 {
    top: 12%;
    left: 8%;
    font-size: 2.2rem;
    animation: twinkle 2s ease-in-out infinite;
}

.star-2 {
    top: 18%;
    right: 12%;
    font-size: 2rem;
    animation: twinkle 2s ease-in-out infinite 0.3s;
}

.star-3 {
    top: 55%;
    left: 5%;
    font-size: 1.8rem;
    animation: twinkle 2s ease-in-out infinite 0.6s;
}

.star-4 {
    top: 50%;
    right: 8%;
    font-size: 2.3rem;
    animation: twinkle 2s ease-in-out infinite 0.9s;
}

.star-5 {
    top: 25%;
    left: 25%;
    font-size: 1.5rem;
    animation: twinkle 2s ease-in-out infinite 1.2s;
}

.star-6 {
    top: 30%;
    right: 28%;
    font-size: 1.7rem;
    animation: twinkle 2s ease-in-out infinite 1.5s;
}

.star-7 {
    top: 70%;
    left: 15%;
    font-size: 1.9rem;
    animation: twinkle 2s ease-in-out infinite 1.8s;
}

.star-8 {
    top: 65%;
    right: 18%;
    font-size: 2.1rem;
    animation: twinkle 2s ease-in-out infinite 2.1s;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(0.8) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.3) rotate(180deg); }
}

/* 光斑 */
.glow-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.4) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.spring-background.active .glow-circle {
    opacity: 1;
}

.glow-1 {
    width: 150px;
    height: 150px;
    top: 20%;
    left: 30%;
    animation: pulse 4s ease-in-out infinite;
}

.glow-2 {
    width: 100px;
    height: 100px;
    top: 40%;
    right: 20%;
    animation: pulse 4s ease-in-out infinite 1s;
}

.glow-3 {
    width: 120px;
    height: 120px;
    top: 60%;
    left: 20%;
    animation: pulse 4s ease-in-out infinite 2s;
}

.glow-4 {
    width: 80px;
    height: 80px;
    top: 35%;
    left: 10%;
    animation: pulse 4s ease-in-out infinite 0.5s;
}

.glow-5 {
    width: 130px;
    height: 130px;
    top: 55%;
    right: 15%;
    animation: pulse 4s ease-in-out infinite 1.5s;
}

/* 彩带 */
.ribbon {
    position: absolute;
    width: 60px;
    height: 60px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.spring-background.active .ribbon {
    opacity: 1;
}

.ribbon::before,
.ribbon::after {
    content: '';
    position: absolute;
    background: linear-gradient(45deg, #ff6b6b, #ffd700, #ff4d4d);
    border-radius: 50%;
}

.ribbon-1 {
    top: 15%;
    left: 15%;
    animation: float 6s ease-in-out infinite;
}

.ribbon-1::before {
    width: 40px;
    height: 40px;
    left: 10px;
    top: 5px;
}

.ribbon-1::after {
    width: 30px;
    height: 30px;
    right: 5px;
    bottom: 10px;
}

.ribbon-2 {
    top: 45%;
    right: 10%;
    animation: float 6s ease-in-out infinite 2s;
}

.ribbon-2::before {
    width: 35px;
    height: 35px;
    left: 8px;
    top: 8px;
}

.ribbon-2::after {
    width: 28px;
    height: 28px;
    right: 8px;
    bottom: 12px;
}

.ribbon-3 {
    top: 70%;
    left: 25%;
    animation: float 6s ease-in-out infinite 4s;
}

.ribbon-3::before {
    width: 45px;
    height: 45px;
    left: 12px;
    top: 3px;
}

.ribbon-3::after {
    width: 32px;
    height: 32px;
    right: 3px;
    bottom: 15px;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(10deg); }
    50% { transform: translateY(0) rotate(0deg); }
    75% { transform: translateY(10px) rotate(-10deg); }
}

/* 烟花痕迹 */
.firework-trail {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.spring-background.active .firework-trail {
    opacity: 1;
}

.trail-1 {
    top: 20%;
    left: 20%;
    background: #ffd700;
    box-shadow: 0 0 10px #ffd700, 0 0 20px #ff4d4d;
    animation: sparkle 1.5s ease-in-out infinite;
}

.trail-2 {
    top: 40%;
    right: 25%;
    background: #ff6b6b;
    box-shadow: 0 0 10px #ff6b6b, 0 0 20px #ffd700;
    animation: sparkle 1.5s ease-in-out infinite 0.5s;
}

.trail-3 {
    top: 60%;
    left: 30%;
    background: #00ffff;
    box-shadow: 0 0 10px #00ffff, 0 0 20px #ff4d4d;
    animation: sparkle 1.5s ease-in-out infinite 1s;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(2); }
}

/* 金币 */
.coin {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.spring-background.active .coin {
    opacity: 1;
}

.coin-1 {
    top: 30%;
    left: 40%;
    animation: coinSpin 3s linear infinite;
}

.coin-2 {
    top: 55%;
    right: 30%;
    animation: coinSpin 3s linear infinite 1s;
}

.coin-3 {
    top: 75%;
    left: 35%;
    animation: coinSpin 3s linear infinite 2s;
}

@keyframes coinSpin {
    0% { transform: rotateY(0deg) translateY(0); }
    50% { transform: rotateY(180deg) translateY(-10px); }
    100% { transform: rotateY(360deg) translateY(0); }
}

/* 花瓣 */
.petal {
    position: absolute;
    font-size: 1.2rem to 2rem;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.spring-background.active .petal {
    opacity: 1;
}

.petal-1 {
    top: 25%;
    right: 35%;
    font-size: 1.8rem;
    animation: petalFall 8s ease-in-out infinite;
}

.petal-2 {
    top: 40%;
    left: 35%;
    font-size: 1.5rem;
    animation: petalFall 8s ease-in-out infinite 2s;
}

.petal-3 {
    top: 60%;
    right: 40%;
    font-size: 1.6rem;
    animation: petalFall 8s ease-in-out infinite 4s;
}

.petal-4 {
    top: 75%;
    left: 40%;
    font-size: 1.7rem;
    animation: petalFall 8s ease-in-out infinite 6s;
}

@keyframes petalFall {
    0% { transform: translateY(-20px) rotate(0deg) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    50% { transform: translateY(30px) rotate(180deg) translateX(20px); }
    100% { transform: translateY(80px) rotate(360deg) translateX(-10px); opacity: 0; }
}

/* 春节图案装饰 */
.spring-pattern {
    position: absolute;
    width: 80px to 150px;
    height: 80px to 150px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.spring-background.active .spring-pattern {
    opacity: 0.3;
}

.pattern-1 {
    width: 100px;
    height: 100px;
    top: 25%;
    left: 3%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.4) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

.pattern-2 {
    width: 120px;
    height: 120px;
    top: 50%;
    right: 3%;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.4) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite 1s;
}

.pattern-3 {
    width: 90px;
    height: 90px;
    top: 70%;
    left: 8%;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.4) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite 2s;
}

.pattern-4 {
    width: 110px;
    height: 110px;
    top: 35%;
    right: 8%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite 0.5s;
}