* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: black;
}

#fireworksCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

#surpriseButton {
    position: absolute;
    bottom: 50px;
    padding: 10px 20px;
    font-size: 20px;
    background-color: #f39c12;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#surpriseButton:hover {
    background-color: #e67e22;
}

/* 按钮波纹动画 */
button {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    animation: ripple-animation 0.6s linear;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

body {
    animation: gradient-background 10s ease infinite;
    background-size: 400% 400%;
}

@keyframes gradient-background {
    0% {
        background: linear-gradient(45deg, #ff6ec7, #ff9a8b);
    }
    25% {
        background: linear-gradient(45deg, #ff9a8b, #ff6ec7);
    }
    50% {
        background: linear-gradient(45deg, #ff6ec7, #ff9a8b);
    }
    75% {
        background: linear-gradient(45deg, #ff9a8b, #ff6ec7);
    }
    100% {
        background: linear-gradient(45deg, #ff6ec7, #ff9a8b);
    }
}

/* 云朵效果 */
.cloud {
    position: absolute;
    width: 200px;
    height: 100px;
    background: #fff;
    border-radius: 50%;
    opacity: 0.8;
    animation: move-clouds 30s linear infinite;
}

@keyframes move-clouds {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* 鼠标跟随效果 */
.circle {
    position: absolute;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    pointer-events: none;
    animation: circle-animation 1s ease-out forwards;
}

@keyframes circle-animation {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* 粒子效果 */
.particle {
    position: absolute;
    border-radius: 50%;
    background-color: white;
    opacity: 0.7;
    animation: particle-move 2s ease-out forwards;
}

@keyframes particle-move {
    0% {
        transform: scale(1) translateY(0);
    }
    50% {
        transform: scale(1.5) translateY(-50px);
    }
    100% {
        transform: scale(0) translateY(100px);
        opacity: 0;
    }
}
