/* 渐变背景 */
body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(
        135deg,
        rgba(255, 209, 220, 0.8) 0%,
        rgba(255, 232, 239, 0.6) 25%,
        rgba(255, 209, 220, 0.7) 50%,
        rgba(255, 232, 239, 0.6) 75%,
        rgba(255, 209, 220, 0.8) 100%
    );
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    overflow-x: hidden;
}

/* 添加多层背景效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.1) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.1) 75%);
    background-size: 60px 60px;
    z-index: -2;
    animation: patternMove 20s linear infinite;
}

/* 樱花样式优化 */
.sakura {
    position: absolute;
    width: 20px;
    height: 15px;
    background: linear-gradient(
        135deg,
        rgba(255, 183, 197, 0.9),
        rgba(255, 209, 220, 0.6)
    );
    border-radius: 150% 0 150% 0;
    animation: falling 10s infinite linear;
    pointer-events: none;
    box-shadow: 0 0 5px rgba(255, 183, 197, 0.3);
    backdrop-filter: blur(2px);
}

.sakura::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: 0 150% 0 150%;
    transform: rotate(15deg);
    filter: brightness(1.1);
}

/* 装饰效果增强 */
.sakura-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 209, 220, 0.05) 0%, transparent 60%);
    animation: decorationPulse 10s ease-in-out infinite;
}

/* 新增动画效果 */
@keyframes patternMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 60px 60px;
    }
}

@keyframes decorationPulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

@keyframes gradientBG {
    0%, 100% {
        background-position: 0% 50%;
        filter: hue-rotate(0deg);
    }
    50% {
        background-position: 100% 50%;
        filter: hue-rotate(10deg);
    }
}

@keyframes falling {
    0% {
        top: -10%;
        left: random(100) * 1%;
        opacity: 0;
        transform: rotate(0deg) scale(1);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        top: 100%;
        left: calc(100% - 20px);
        opacity: 0;
        transform: rotate(360deg) scale(0.8);
    }
}
