/* 传统节日页面样式 */

/* 倒计时部分 */
.countdown-section {
    background: linear-gradient(135deg, #c41e3a 0%, #f4a460 100%);
    padding: 60px 0;
    color: var(--white);
    text-align: center;
}

.countdown-title {
    font-size: 2rem;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.countdown-title span {
    color: #ffd700;
    font-weight: bold;
}

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

.countdown-item {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 30px;
    min-width: 120px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.countdown-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.3);
}

.countdown-value {
    font-size: 3.5rem;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 10px;
    font-family: 'Arial', sans-serif;
}

.countdown-label {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 页面标题 */
.page-header {
    padding: 60px 0 40px;
}

/* 节日详情 */
.festival-detail {
    padding: 60px 0;
}

.festival-detail:nth-child(even) {
    background: var(--white);
}

.festival-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: start;
}

.festival-detail.reverse .festival-content {
    grid-template-columns: 1.5fr 1fr;
}

.festival-detail.reverse .festival-image {
    order: 2;
}

.festival-detail.reverse .festival-info {
    order: 1;
}

.festival-image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.festival-image:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

.festival-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
}

.festival-info {
    padding: 20px 0;
}

.festival-name {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.festival-name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.festival-description {
    line-height: 2;
    color: var(--text-color);
}

.festival-description p {
    margin-bottom: 20px;
    text-align: justify;
    font-size: 1.1rem;
}

.festival-description p:last-child {
    margin-bottom: 0;
}

/* 动画效果 */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.festival-image.fade-in {
    animation: fadeInLeft 0.8s ease forwards;
}

.festival-detail.reverse .festival-image.fade-in {
    animation: fadeInRight 0.8s ease forwards;
}

.festival-info.fade-in {
    animation: fadeInRight 0.8s ease forwards;
}

.festival-detail.reverse .festival-info.fade-in {
    animation: fadeInLeft 0.8s ease forwards;
}

/* 倒计时数字跳动动画 */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.countdown-value.updating {
    animation: pulse 0.3s ease;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .festival-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .festival-detail.reverse .festival-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .festival-name {
        font-size: 2rem;
    }
    
    .festival-description p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .countdown-title {
        font-size: 1.5rem;
    }
    
    .countdown-display {
        gap: 15px;
    }
    
    .countdown-item {
        padding: 20px;
        min-width: 80px;
    }
    
    .countdown-value {
        font-size: 2.5rem;
    }
    
    .countdown-label {
        font-size: 1rem;
    }
    
    .festival-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .festival-detail.reverse .festival-content {
        grid-template-columns: 1fr;
    }
    
    .festival-detail.reverse .festival-image {
        order: 1;
    }
    
    .festival-detail.reverse .festival-info {
        order: 2;
    }
    
    .festival-name {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .countdown-section {
        padding: 40px 0;
    }
    
    .countdown-title {
        font-size: 1.2rem;
        margin-bottom: 30px;
    }
    
    .countdown-item {
        padding: 15px;
        min-width: 70px;
    }
    
    .countdown-value {
        font-size: 2rem;
    }
    
    .countdown-label {
        font-size: 0.9rem;
    }
    
    .festival-name {
        font-size: 1.5rem;
    }
    
    .festival-description p {
        font-size: 0.95rem;
        line-height: 1.8;
    }
}

/* 打印样式 */
@media print {
    .navbar,
    .countdown-section,
    .footer,
    .back-to-top {
        display: none;
    }
    
    .festival-detail {
        page-break-inside: avoid;
    }
}

