/* 过年主题样式 */

/* Logo样式 */
.logo img {
    margin-right: 10px;
    height: 50px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 新年弹窗 */
.newyear-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.newyear-popup-content {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53, #feca57);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.newyear-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    color: white;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.newyear-popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* 跨年弹窗 */
.newyear-countdown-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.5s ease;
    background-image: radial-gradient(circle at 50% 50%, rgba(255, 107, 107, 0.1) 0%, transparent 50%);
}

.newyear-countdown-popup-content {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    border-radius: 25px;
    padding: 40px;
    text-align: center;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    animation: zoomIn 0.5s ease;
    overflow: hidden;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.newyear-countdown-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    color: white;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.newyear-countdown-popup-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(180deg);
}

.newyear-countdown-title {
    font-size: 42px;
    color: white;
    margin-bottom: 25px;
    font-weight: bold;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    font-family: 'STXingkai', 'STKaiti', cursive;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.newyear-countdown-main {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.newyear-countdown-main-unit {
    background: rgba(255, 255, 255, 0.2);
    padding: 25px 20px;
    border-radius: 15px;
    min-width: 100px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.newyear-countdown-main-number {
    font-size: 48px;
    font-weight: bold;
    color: white;
    display: block;
    line-height: 1;
}

.newyear-countdown-main-label {
    font-size: 16px;
    color: white;
    margin-top: 10px;
    font-weight: bold;
    opacity: 0.9;
}

.newyear-countdown-message {
    font-size: 20px;
    color: white;
    margin: 30px 0;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.newyear-countdown-decoration {
    font-size: 64px;
    margin: 20px 0;
    animation: float 4s ease-in-out infinite;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .newyear-countdown-title {
        font-size: 32px;
    }
    
    .newyear-countdown-main {
        gap: 15px;
    }
    
    .newyear-countdown-main-unit {
        padding: 20px 15px;
        min-width: 80px;
    }
    
    .newyear-countdown-main-number {
        font-size: 36px;
    }
    
    .newyear-countdown-main-label {
        font-size: 14px;
    }
    
    .newyear-countdown-message {
        font-size: 18px;
    }
    
    .newyear-countdown-decoration {
        font-size: 48px;
    }
}

.newyear-title {
    font-size: 36px;
    color: white;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'STXingkai', 'STKaiti', cursive;
}

.newyear-message {
    font-size: 18px;
    color: white;
    margin-bottom: 25px;
    line-height: 1.6;
}

.newyear-decoration {
    font-size: 48px;
    margin: 20px 0;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.newyear-btn {
    background-color: white;
    color: #ff6b6b;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.newyear-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* 新年装饰元素 */
/* banner装饰 */
.banner-decoration {
    position: absolute;
    pointer-events: none;
    z-index: 10;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* 灯笼装饰 */
.banner-lantern {
    font-size: 40px;
    animation: swing 4s ease-in-out infinite;
}

@keyframes swing {
    0%, 100% { transform: rotate(-10deg); }
    50% { transform: rotate(10deg); }
}

/* 鞭炮装饰 */
.banner-firecracker {
    font-size: 32px;
    animation: explode 2s ease-in-out infinite;
}

@keyframes explode {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

/* 红包装饰 */
.banner-redpacket {
    font-size: 36px;
    animation: rotate 5s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 倒计时样式 */
.countdown {
    font-size: 24px;
    color: white;
    margin: 15px 0;
    font-weight: bold;
}

.countdown-item {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 10px;
    margin: 0 5px;
}

/* 左下角跨年倒计时窗口 */
.countdown-window {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    min-width: 250px;
    animation: slideInLeft 0.5s ease;
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.countdown-window h3 {
    font-size: 18px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: bold;
    font-family: 'STXingkai', 'STKaiti', cursive;
}

.countdown-window .countdown-time {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.countdown-window .countdown-unit {
    text-align: center;
    flex: 1;
    margin: 0 5px;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 5px;
    border-radius: 8px;
}

.countdown-window .countdown-number {
    font-size: 24px;
    font-weight: bold;
    display: block;
}

.countdown-window .countdown-label {
    font-size: 12px;
    margin-top: 5px;
}

.countdown-window .countdown-message {
    text-align: center;
    font-size: 14px;
    margin-top: 10px;
    line-height: 1.4;
}

.countdown-window-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 16px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.countdown-window-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .newyear-title {
        font-size: 28px;
    }
    
    .newyear-message {
        font-size: 16px;
    }
    
    .countdown-window {
        min-width: 200px;
        padding: 15px;
    }
    
    .countdown-window .countdown-number {
        font-size: 20px;
    }
}