.snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.snowflake {
    position: fixed;
    color: #fff;
    opacity: 0;
    animation: fall linear infinite;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    /* 确保雪花在有壁纸时依然可见 */
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.3));
    z-index: 10; /* 确保雪花在遮罩层之上 */
}

@keyframes fall {
    0% {
        opacity: 0;
        transform: translateY(-20vh) rotate(0deg);
    }
    20% {
        opacity: 0.9;
    }
    80% {
        opacity: 0.9;
    }
    100% {
        opacity: 0;
        transform: translateY(100vh) rotate(360deg);
    }
}

/* 雪花开关样式 */
.snow-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 15px;
    color: #c1a86a;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.snow-toggle:hover {
    opacity: 0.8;
}

.snow-toggle.active {
    opacity: 1;
    text-shadow: 0 0 10px rgba(193, 168, 106, 0.5);
}

/* 添加动画效果 */
.snow-toggle i {
    transition: transform 0.3s ease;
}

.snow-toggle:hover i {
    transform: rotate(180deg);
}

.snow-toggle.active i {
    animation: snow-icon-spin 3s linear infinite;
}

@keyframes snow-icon-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 雪花始终保持白色，提供更好的视觉效果 */
.snowflake {
    color: #ffffff !important; /* 强制白色，不受主题影响 */
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8),
                 0 0 15px rgba(255, 255, 255, 0.5) !important;
}

/* 修改雪花开关在日间主题下的样式 */
body.light-theme .snow-toggle {
    color: #ffffff;
    opacity: 0.7;
}

body.light-theme .snow-toggle:hover {
    opacity: 1;
}

body.light-theme .snow-toggle.active {
    opacity: 1;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
} 