/* 圣诞节主题样式 */

/* 基础样式调整 */
body.christmas-theme {
    background: linear-gradient(315deg, #d90429, #2b2d42, #06d6a0, #ffd166);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

/* 圣诞节颜色变量 */
:root {
    --christmas-red: #d90429;
    --christmas-green: #06d6a0;
    --christmas-gold: #ffd166;
    --christmas-snow: #ffffff;
    --christmas-dark: #2b2d42;
}

/* 圣诞老人帽子装饰 */
.christmas-theme .container {
    /* 添加顶部内边距，避免内容被装饰遮挡 */
    padding-top: 100px !important;
}

.christmas-theme .container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--christmas-red);
    z-index: 9999;
    border-bottom: 10px solid var(--christmas-gold);
}

/*.christmas-theme .container::after {
    content: '';
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    background: var(--christmas-snow);
    border-radius: 50%;
    z-index: 10000;
    border: 5px solid var(--christmas-gold);
}*/

/* 标题样式 */
.christmas-theme h1,
.christmas-theme h2,
.christmas-theme h3 {
    color: var(--christmas-red);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Arial Black', sans-serif;
}

/* 按钮样式 */
.christmas-theme button {
    background-color: var(--christmas-green);
    color: white;
    border: 2px solid var(--christmas-gold);
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.christmas-theme button:hover {
    background-color: var(--christmas-red);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.3);
}

/* 链接样式 */
.christmas-theme .link {
    background-color: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--christmas-green);
    transition: all 0.3s ease;
}

.christmas-theme .link:hover {
    border-color: var(--christmas-red);
    transform: translateY(-5px) rotate(1deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.christmas-theme .link a {
    color: var(--christmas-dark);
}

.christmas-theme .link:hover a {
    color: var(--christmas-red);
}

/* 标签样式 */
.christmas-theme .tag {
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* 卡片和容器样式 */
.christmas-theme .prompt,
.christmas-theme .top-bar,
.christmas-theme .announcement-container {
    background-color: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--christmas-gold);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 搜索框样式 */
.christmas-theme input[type="text"] {
    border: 2px solid var(--christmas-green);
    background-color: rgba(255, 255, 255, 0.9);
}

.christmas-theme input[type="text"]:focus {
    border-color: var(--christmas-red);
    box-shadow: 0 0 0 3px rgba(217, 4, 41, 0.1);
}

/* 雪花动画 */
.snowflake {
    position: fixed;
    background-color: var(--christmas-snow);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.8;
}

@keyframes snowfall {
    0% {
        transform: translateY(-10vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0;
    }
}

/* 圣诞装饰球 */
.christmas-decoration {
    position: fixed;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    animation: bounce 3s ease-in-out infinite;
    z-index: 9998;
}

.christmas-decoration.red {
    background: var(--christmas-red);
    box-shadow: 0 0 10px var(--christmas-red);
}

.christmas-decoration.green {
    background: var(--christmas-green);
    box-shadow: 0 0 10px var(--christmas-green);
}

.christmas-decoration.gold {
    background: var(--christmas-gold);
    box-shadow: 0 0 10px var(--christmas-gold);
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.1);
    }
}

/* 底部节日信息 */
.christmas-theme #footer-placeholder {
    background-color: rgba(43, 45, 66, 0.9);
    color: var(--christmas-snow);
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

/* 版本链接样式 */
.christmas-theme #versionLink {
    color: var(--christmas-gold);
    font-weight: bold;
    text-decoration: underline;
}

.christmas-theme #versionLink:hover {
    color: var(--christmas-red);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .christmas-theme .container {
        padding-top: 80px !important;
    }
    
    .christmas-theme .container::before {
        height: 60px;
    }
    
    /*.christmas-theme .container::after {
        width: 80px;
        height: 80px;
    }*/
    
    .christmas-decoration {
        width: 20px;
        height: 20px;
    }
}

/* 闪烁效果 */
@keyframes twinkle {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

.christmas-theme .link:hover {
    animation: twinkle 0.5s ease-in-out;
}

/* 圣诞快乐文字效果 */
.christmas-theme h1::after {
    content: ' 🎄 Merry Christmas! 🎄';
    font-size: 0.6em;
    vertical-align: middle;
    animation: jingle 2s ease-in-out infinite;
}

@keyframes jingle {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-5deg);
    }
    75% {
        transform: rotate(5deg);
    }
}

/* 滚动条样式 */
.christmas-theme ::-webkit-scrollbar {
    width: 10px;
}

.christmas-theme ::-webkit-scrollbar-track {
    background: var(--christmas-dark);
}

.christmas-theme ::-webkit-scrollbar-thumb {
    background: var(--christmas-red);
    border-radius: 5px;
}

.christmas-theme ::-webkit-scrollbar-thumb:hover {
    background: var(--christmas-green);
}
