/* 黄金沙流动动画特效 */
.gold-sand-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.85);
    opacity: 1;
    transition: opacity 0.5s ease-out;
    pointer-events: none;
    overflow: hidden;
}

.gold-sand-animation.hidden {
    opacity: 0;
}

.gold-sand-path {
    position: absolute;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.gold-sand {
    position: absolute;
    width: 200%;
    height: 200px;
    background: linear-gradient(90deg, 
        rgba(212, 175, 55, 0) 0%, 
        rgba(212, 175, 55, 0.3) 20%, 
        rgba(255, 215, 0, 0.8) 40%, 
        rgba(218, 165, 32, 0.9) 60%, 
        rgba(184, 134, 11, 0.7) 80%, 
        rgba(184, 134, 11, 0) 100%);
    filter: blur(8px);
    border-radius: 50%;
    transform: translateX(100%) rotate(-5deg);
    animation: goldSandFlow 3s ease-out forwards;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8), 0 0 60px rgba(255, 215, 0, 0.6), 0 0 90px rgba(255, 215, 0, 0.4);
    top: 50%;
    margin-top: -100px;
}

@keyframes goldSandFlow {
    0% {
        transform: translateX(100%) rotate(-5deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(-150%) rotate(-5deg);
        opacity: 0;
    }
}

/* 金色粒子效果 */
.gold-particles {
    position: absolute;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
}

.gold-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: rgba(255, 215, 0, 0.9);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.9), 0 0 20px rgba(255, 215, 0, 0.5);
    animation: particleFade 1.5s ease-out forwards;
}

@keyframes particleFade {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    20% {
        opacity: 1;
        transform: scale(1);
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(-30px) scale(0.5);
    }
}

/* 添加额外的闪光粒子 */
.gold-particle:nth-child(3n) {
    background-color: rgba(255, 255, 220, 0.95);
    box-shadow: 0 0 15px rgba(255, 255, 220, 0.95), 0 0 25px rgba(255, 255, 220, 0.6);
    width: 3px;
    height: 3px;
    animation-duration: 2s;
}

.gold-particle:nth-child(5n) {
    background-color: rgba(255, 223, 0, 0.95);
    box-shadow: 0 0 12px rgba(255, 223, 0, 0.95), 0 0 24px rgba(255, 223, 0, 0.7);
    width: 8px;
    height: 8px;
    animation-duration: 3s;
}