/* 主题特效样式 */

/* 雪花容器 */
.snowflakes-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

/* 单个雪花 */
.snowflake {
    position: absolute;
    top: -10px;
    color: #fff;
    font-size: 1em;
    font-family: Arial, sans-serif;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    animation: snowfall linear infinite;
}

/* 雪花飘落动画 */
@keyframes snowfall {
    0% {
        top: -10%;
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0.8;
    }
}

/* 雪花摇摆动画 */
@keyframes sway {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(100px);
    }
}

/* 不同大小的雪花 */
.snowflake:nth-child(odd) {
    font-size: 0.8em;
    animation-duration: 12s;
}

.snowflake:nth-child(even) {
    font-size: 1.2em;
    animation-duration: 15s;
}

.snowflake:nth-child(3n) {
    font-size: 1em;
    animation-duration: 10s;
    animation-delay: -3s;
}

/* 圣诞树装饰 - 左下角 */
.christmas-tree-decoration {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 400px;
    height: 400px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
    background-image: radial-gradient(circle at 50% 80%,
        rgba(34, 197, 94, 0.3) 0%,
        transparent 60%);
}

/* 灯光闪烁效果 */
@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

.christmas-tree-decoration {
    animation: twinkle 3s ease-in-out infinite;
}

/* 烟花效果容器（新年主题） */
.fireworks-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.firework {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    animation: firework-explosion 1.5s ease-out forwards;
}

@keyframes firework-explosion {
    0% {
        transform: translate(0, 0);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty));
        opacity: 0;
    }
}

/* 金色粒子效果（新年/春节主题） */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.8), transparent);
    border-radius: 50%;
    animation: float-up 15s linear infinite;
}

@keyframes float-up {
    0% {
        bottom: -10%;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        bottom: 110%;
        opacity: 0;
    }
}

/* 金色粒子飘落动画（黑色星期五） */
@keyframes fall-down {
    0% {
        top: -10%;
        opacity: 1;
    }
    100% {
        top: 110%;
        opacity: 0.5;
    }
}

/* 矩阵雨下落动画（网络星期一） */
@keyframes matrix-fall {
    0% {
        top: -100%;
        opacity: 1;
    }
    100% {
        top: 110%;
        opacity: 0.3;
    }
}

/* 科技光点浮动动画（网络星期一） */
@keyframes tech-float {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0.6;
    }
    25% {
        transform: translate(20px, -20px);
        opacity: 1;
    }
    50% {
        transform: translate(-15px, 15px);
        opacity: 0.8;
    }
    75% {
        transform: translate(15px, 20px);
        opacity: 1;
    }
}

/* 灯笼摇摆动画（春节） */
@keyframes lantern-sway {
    0%, 100% {
        transform: rotate(-3deg);
    }
    50% {
        transform: rotate(3deg);
    }
}

/* 流苏摇摆动画 */
@keyframes tassel-swing {
    0%, 100% {
        transform: rotate(-8deg);
    }
    50% {
        transform: rotate(8deg);
    }
}

/* 圣诞老人雪橇动画容器 - 从左到右滑动 */
.santa-sleigh-container {
    position: fixed !important;
    top: 100px !important;
    left: -200px !important;
    z-index: 99999 !important;
    pointer-events: none !important;
    animation: sleigh-ride 20s linear infinite !important;
    font-size: 48px !important;
    line-height: 1 !important;
    filter: drop-shadow(2px 2px 6px rgba(0, 0, 0, 0.3)) !important;
    white-space: nowrap !important;
}

/* 雪橇滑行动画 - 从左到右,带轻微上下浮动 */
@keyframes sleigh-ride {
    0% {
        left: -250px;
        transform: translateY(0);
    }
    25% {
        transform: translateY(-15px);
    }
    50% {
        transform: translateY(0);
    }
    75% {
        transform: translateY(-10px);
    }
    100% {
        left: calc(100% + 100px);
        transform: translateY(0);
    }
}

/* 圣诞老人脸部 */
.santa-hat-main {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 35px;
    background: radial-gradient(circle at 40% 40%, #ffd5ba, #ffb088);
    border-radius: 50%;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset -2px -2px 6px rgba(0, 0, 0, 0.1);
}

/* 眼睛 */
.santa-hat-main::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 8px;
    width: 4px;
    height: 4px;
    background: #333;
    border-radius: 50%;
    box-shadow: 10px 0 0 #333;
}

/* 鼻子 */
.santa-hat-main::after {
    content: '';
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: radial-gradient(circle at 30% 30%, #ff6b6b, #d63031);
    border-radius: 50%;
}

/* 圣诞老人的帽子 */
.santa-hat-trim {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 30px solid #e63946;
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.2));
}

/* 帽子白边 */
.santa-hat-trim::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 42px;
    height: 6px;
    background: linear-gradient(180deg, #fff, #f0f0f0);
    border-radius: 3px;
    margin-left: -21px;
}

/* 帽子顶部绒球 */
.santa-hat-pom {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: radial-gradient(circle at 35% 35%, #fff, #e0e0e0);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 圣诞老人挥手动画 */
@keyframes santa-wave {
    0%, 100% {
        transform: rotate(0deg) translateY(0);
    }
    25% {
        transform: rotate(-5deg) translateY(-3px);
    }
    50% {
        transform: rotate(0deg) translateY(0);
    }
    75% {
        transform: rotate(5deg) translateY(-2px);
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .christmas-tree-decoration {
        width: 250px;
        height: 250px;
    }

    .snowflake {
        font-size: 0.8em;
    }

    /* 移动端减少特效密度 */
    .matrix-rain-container div:nth-child(n+8) {
        display: none;
    }

    .tech-particles-container div:nth-child(n+15) {
        display: none;
    }

    /* 移动端圣诞帽稍小 */
    .santa-hat {
        width: 50px;
        height: 60px;
        top: -5px;
        right: -5px;
    }

    .santa-hat-main {
        border-left: 18px solid transparent;
        border-right: 18px solid transparent;
        border-bottom: 36px solid #e63946;
    }

    .santa-hat-main::before {
        left: -15px;
        border-left: 15px solid transparent;
        border-right: 15px solid transparent;
        border-bottom: 28px solid #ff4d5a;
    }

    .santa-hat-main::after {
        left: -6px;
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-bottom: 20px solid #c41e2a;
    }

    .santa-hat-trim {
        width: 40px;
        height: 8px;
    }

    .santa-hat-pom {
        width: 14px;
        height: 14px;
    }
}
