/* 庆祝横幅样式 - 中国人民解放军建立98周年 */
.celebration-banner {
    position: fixed;
    top: 70px; /* 位于导航栏下方 */
    left: 0;
    right: 0;
    z-index: 999;
    background: linear-gradient(135deg, #DC143C 0%, #B22222 50%, #DC143C 100%);
    color: #FFD700;
    padding: 12px 20px;
    text-align: center;
    font-family: 'ZCOOL KuaiLe', '黑体', sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.3);
    border-bottom: 2px solid #FFD700;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.celebration-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.celebration-banner.show {
    transform: translateY(0);
}

.celebration-banner-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.celebration-banner .flag-icon {
    display: inline-block;
    font-size: 20px;
    animation: wave 2s ease-in-out infinite;
}

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

.celebration-banner .star-icon {
    color: #FFD700;
    font-size: 14px;
    animation: twinkle 1.5s ease-in-out infinite alternate;
}

@keyframes twinkle {
    0% {
        opacity: 0.7;
        transform: scale(1);
    }
    100% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.celebration-banner-text {
    font-size: 16px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.celebration-banner-year {
    font-size: 18px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .celebration-banner {
        font-size: 14px;
        padding: 10px 15px;
    }
    
    .celebration-banner-content {
        gap: 8px;
    }
    
    .celebration-banner .flag-icon {
        font-size: 18px;
    }
    
    .celebration-banner-text {
        font-size: 14px;
    }
    
    .celebration-banner-year {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .celebration-banner {
        font-size: 12px;
        padding: 8px 10px;
    }
    
    .celebration-banner-content {
        flex-direction: column;
        gap: 4px;
    }
    
    .celebration-banner .flag-icon {
        font-size: 16px;
    }
    
    .celebration-banner-text {
        font-size: 12px;
    }
    
    .celebration-banner-year {
        font-size: 14px;
    }
}

/* 暗色模式适配 */
body.dark-mode .celebration-banner {
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.4);
}

body.dark-mode .celebration-banner::before {
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
}

/* 确保横幅不影响主要内容的布局 */
body.celebration-banner-active {
    /* 当横幅显示时，为主要内容添加额外的顶部间距 */
}

body.celebration-banner-active main {
    /* 平滑过渡效果 */
    transition: margin-top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 英文模式下的字体调整 */
body.en .celebration-banner {
    font-family: 'Chewy', 'Arial', sans-serif;
    letter-spacing: 0.5px;
}

body.en .celebration-banner-text {
    font-size: 15px;
}

body.en .celebration-banner-year {
    font-size: 17px;
} 