/* 元旦庆祝悬浮效果 CSS */

/* 主容器 */
.newyear-celebration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

/* 祝福文字悬浮框 - 已禁用 */
/* .newyear-greeting {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    animation: greeting-float 3s ease-in-out infinite;
    z-index: 10000;
    pointer-events: auto;
    cursor: pointer;
}

.newyear-greeting:hover {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
} */

/* 祝福文字动画 - 已禁用 */
/* @keyframes greeting-float {
    0%, 100% {
        transform: translateX(-50%) translateY(0px);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
} */

/* 关闭按钮 - 已禁用 */
/* .newyear-close {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: #ff4757;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.newyear-close:hover {
    background: #ff3838;
    transform: rotate(90deg);
} */

/* 彩纸容器 */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* 彩纸片 */
.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #f0f;
    top: -10px;
    opacity: 0;
    animation: confetti-fall linear forwards;
}

/* 彩纸飘落动画 */
@keyframes confetti-fall {
    0% {
        opacity: 1;
        transform: translateY(0) rotateZ(0deg);
    }
    100% {
        opacity: 0.3;
        transform: translateY(100vh) rotateZ(720deg);
    }
}

/* 烟花容器 */
.firework-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* 烟花 */
.firework {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    animation: firework-explode 1.5s ease-out forwards;
}

/* 烟花爆炸动画 */
@keyframes firework-explode {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) scale(0);
    }
}

/* 数字 2025 装饰 - 已禁用 */
/* .year-2025 {
    position: fixed;
    bottom: 30px;
    right: 30px;
    font-size: 48px;
    font-weight: bold;
    background: linear-gradient(45deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: year-pulse 2s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(245, 87, 108, 0.5);
    pointer-events: auto;
}

@keyframes year-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
} */

/* 星星闪烁效果 */
.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    animation: star-twinkle 2s ease-in-out infinite;
}

@keyframes star-twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .newyear-greeting {
        font-size: 18px;
        padding: 12px 24px;
        top: 10px;
    }
    
    .year-2025 {
        font-size: 32px;
        bottom: 20px;
        right: 20px;
    }
}

/* 淡入效果 */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 礼花效果增强 */
.sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #fff 0%, transparent 70%);
    border-radius: 50%;
    animation: sparkle-animation 1s ease-out forwards;
}

@keyframes sparkle-animation {
    0% {
        opacity: 1;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
        transform: scale(1.5) rotate(360deg);
    }
}
