/* 冬季动画效果样式 */

@import url('https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&display=swap');

/* 雪粒子容器 */
#snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}

/* 雪粒子 */
.snowflake {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    animation: fall linear forwards;
}

/* 下雪动画 */
@keyframes fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.8;
    }
    100% {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0;
    }
}

/* 冬季模糊效果 */
.winter-mode .slider-container {
    filter: blur(3px);
    transition: filter 2s ease-in-out;
    background: transparent !important;
}

/* 冬季标题动画 */
.winter-title {
    position: fixed;
    top: 50%;
    left: 50%;
    margin: 0;
    transform: translate(-50%, -50%) rotate(-3deg) skewX(-5deg);
    font-size: 8rem;
    font-weight: normal;
    font-family: 'Ma Shan Zheng', 'STXingkai', 'STKaiti', 'KaiTi', '华文行楷', '楷体', 'FangSong', '仿宋', cursive, serif;
    letter-spacing: .15em;
    background: linear-gradient(135deg, #87CEFA, #e0f7fa, #b3e5fc, #1E90FF);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 15px rgba(135, 206, 250, .5), 0 0 40px rgba(30, 144, 255, .4);
    -webkit-text-stroke: 1px rgba(135, 206, 250, .15);
    z-index: 1001;
    opacity: 0;
    animation: winterTitleFade 5s ease-in-out forwards,
               winterTitleGradientShift 5s ease-in-out forwards;
    pointer-events: none;
    will-change: opacity, filter;
}

@keyframes winterTitleGradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 冬季标题模糊到清晰再淡出动画 */
@keyframes winterTitleFade {
    0% {
        opacity: 0;
        filter: blur(12px);
    }
    15% {
        opacity: 1;
        filter: blur(0px);
    }
    80% {
        opacity: 1;
        filter: blur(0px);
    }
    100% {
        opacity: 0;
        filter: blur(4px);
    }
}

/* 冬季模式下的页面背景 */
.winter-mode {
    background-color: #1f2937;
    color: #ffffff;
}

/* 冬季模式下的链接和文本颜色 */
.winter-mode a {
    color: #93c5fd;
}

.winter-mode .forum-category-btn {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.winter-mode .forum-category-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.winter-mode .hint-text h3, .winter-mode .hint-text p {
    color: #ffffff;
}

/* 冬季模式下的音乐播放器 */
body.winter-mode .music-player {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1) inset !important;
}

body.winter-mode .music-player h4 {
    color: #ffffff !important;
}

body.winter-mode .music-info h5 {
    color: #ffffff !important;
}

body.winter-mode .progress-bar {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

body.winter-mode .progress {
    background-color: #4ade80 !important;
}

body.winter-mode .time-display {
    color: rgba(255, 255, 255, 0.7) !important;
}

body.winter-mode .control-btn {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
}

body.winter-mode .control-btn:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.4) !important;
}

body.winter-mode .play-btn {
    background-color: #3b82f6 !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4) !important;
}

body.winter-mode .play-btn:hover {
    background-color: #60a5fa !important;
}

/* 冬季模式下的面包屑导航 */
.winter-mode .breadcrumb {
    color: #93c5fd;
}

.winter-mode .breadcrumb a {
    color: #93c5fd;
}

/* 冬季模式下的操作提示区域 */
.winter-mode .operation-hint {
    background: transparent;
    border: none;
}

body.winter-mode .hint-box {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1) inset !important;
}

body.winter-mode .hint-box:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.2) inset !important;
}

/* 平滑过渡效果 */
body {
    transition: background-color 1s ease-in-out;
}

/* 冬季模式下的页脚样式 */
body.winter-mode .site-footer {
    background-color: rgba(31, 41, 55, 0.9); /* 深色半透明背景 */
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* 淡色边框 */
    color: #ffffff;
}

body.winter-mode .footer-heading {
    color: #87CEFA; /* 冰蓝色标题 */
    text-shadow: 0 0 8px rgba(135, 206, 250, 0.6);
}

body.winter-mode .social-link {
    background-color: rgba(255, 255, 255, 0.1); /* 半透明背景 */
    border: 1px solid rgba(135, 206, 250, 0.3); /* 冰蓝色边框 */
    color: #87CEFA; /* 冰蓝色图标 */
}

body.winter-mode .social-link:hover {
    background-color: rgba(135, 206, 250, 0.2); /* 冰蓝色半透明背景 */
    border-color: #87CEFA; /* 冰蓝色边框 */
    color: #ffffff; /* 白色图标 */
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 15px rgba(135, 206, 250, 0.4); /* 冰蓝色阴影 */
}

body.winter-mode .footer-link {
    color: #87CEFA; /* 冰蓝色链接 */
}

body.winter-mode .footer-link:hover {
    color: #ffffff; /* 白色链接 */
    text-decoration: underline;
    text-decoration-color: #87CEFA;
}

body.winter-mode .footer-copyright {
    color: rgba(255, 255, 255, 0.6); /* 半透明白色版权信息 */
}

/* ========== 手机端标题适配 ========== */
@media (max-width: 768px) {
    .winter-title {
        font-size: 5.5rem;
        letter-spacing: .12em;
        -webkit-text-stroke: 0.5px rgba(135, 206, 250, .12);
    }
}
