#festival-section {
    background: linear-gradient(120deg, #fff 80%, #f8e1e8 100%);
    padding: 0;
    margin: 30px auto 0 auto;
    border-radius: 22px;
    box-shadow: 0 8px 32px 0 rgba(255,59,48,0.10), 0 1.5px 8px 0 rgba(255,59,48,0.08);
    position: relative;
    display: none;
    max-width: 600px;
    width: 96vw;
    animation: fadeInDown 0.5s ease forwards;
    border: 1.5px solid #ffe3e3;
    backdrop-filter: blur(8px);
    z-index: 20;
    transition: box-shadow 0.3s, background 0.3s;
}

.festival-content-wrapper {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 24px 32px 24px 24px;
}

.festival-image {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 18px 0 rgba(255,59,48,0.10);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

#festival-image-tag {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    transition: filter 0.3s;
    box-shadow: 0 2px 8px rgba(255,59,48,0.08);
}

#festival-section:not(.has-image) .festival-image {
    display: none;
}

.festival-text {
    flex: 1;
    min-width: 0;
}

#festival-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #d7263d;
    margin-bottom: 8px;
    letter-spacing: 0.01em;
}

#festival-description {
    font-size: 1rem;
    color: #6a5a7c;
    line-height: 1.7;
    margin-bottom: 0;
    word-break: break-word;
}

.close-festival-btn, #close-festival-section {
    position: absolute;
    top: 14px;
    right: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,59,48,0.08);
    color: #d7263d;
    border: none;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255,59,48,0.10);
    transition: background 0.2s, color 0.2s;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}
.close-festival-btn:hover, #close-festival-section:hover {
    background: #ffd1dc;
    color: #fff;
}

/* 博客页面节日区域样式 */
.festivals-highlight {
    padding: 30px 0 10px;
    margin-bottom: 20px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 240, 255, 0.9) 100%);
}

.festivals-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.festivals-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.view-all-festivals {
    color: #d7263d;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.view-all-festivals i {
    margin-left: 5px;
    transition: transform 0.2s;
}

.view-all-festivals:hover {
    color: #ff3b30;
}

.view-all-festivals:hover i {
    transform: translateX(3px);
}

/* 博客页特有：了解更多链接 */
.festival-learn-more {
    display: inline-block;
    margin-top: 12px;
    color: #d7263d;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
}

.festival-learn-more:hover {
    color: #ff3b30;
    transform: translateX(3px);
}

/* 博客页节日区块调整 */
.festivals-highlight #festival-section {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 5px 20px rgba(255,59,48,0.08), 0 2px 8px rgba(255,59,48,0.06);
}

@media (max-width: 700px) {
    #festival-section {
        max-width: 98vw;
        margin: 18px auto 0 auto;
        border-radius: 16px;
    }
    .festival-content-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 18px 12px 18px 12px;
    }
    .festival-image {
        width: 70px;
        height: 70px;
        border-radius: 12px;
    }
    .close-festival-btn, #close-festival-section {
        top: 8px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
    }
    #festival-title {
        font-size: 1.1rem;
    }
    #festival-description {
        font-size: 0.9rem;
    }
    
    .festivals-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* 节日时间轴轮播区块 */
.festivals-timeline-section {
    padding: 42px 0 28px;
    background: linear-gradient(160deg, #fff 0%, #f8f0ff 100%);
    margin-bottom: 24px;
    overflow: hidden;
}
.timeline-header {
    text-align: center;
    margin-bottom: 32px;
}
.timeline-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #d7263d;
    margin: 0;
    letter-spacing: -0.01em;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}
.timeline-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ff6f91, #d7263d);
    border-radius: 3px;
}

/* 时间轴容器 */
.festival-timeline {
    position: relative;
    padding: 15px 0 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 卡片容器样式 */
.timeline-cards-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    width: 90%;
    max-width: 1080px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* 卡片基本样式 */
.timeline-card {
    position: relative;
    width: 30%;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center;
    will-change: transform, opacity;
}

/* 图片容器 */
.timeline-img-container {
    width: 100%;
    height: 180px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(215,38,61,0.15);
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
}
.timeline-img-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 40%);
    z-index: 1;
    transition: opacity 0.35s ease;
    opacity: 0.7;
}

/* 图片样式 */
.timeline-card .timeline-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    background: linear-gradient(135deg, #f8e1e8, #f8f0ff);
}

/* 卡片标题和日期 */
.timeline-card .card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #d7263d;
    margin: 16px 0 4px;
    text-align: center;
    transition: all 0.3s ease;
}

.timeline-card .card-date {
    font-size: 0.9rem;
    color: #6a5a7c;
    font-weight: 500;
    text-align: center;
    position: relative;
    padding: 0 10px;
}
.timeline-card .card-date::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #ff6f91;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* 左侧卡片 */
.timeline-card.left {
    opacity: 0.8;
    transform: scale(0.92) translateX(15px);
}

/* 中间卡片 */
.timeline-card.center {
    opacity: 1;
    transform: scale(1.05);
    z-index: 3;
}

/* 右侧卡片 */
.timeline-card.right {
    opacity: 0.8;
    transform: scale(0.92) translateX(-15px);
}

/* 卡片hover效果 */
.timeline-card:hover {
    opacity: 1;
}

.timeline-card:hover .timeline-img-container {
    box-shadow: 0 15px 35px rgba(215,38,61,0.25);
}
.timeline-card:hover .timeline-img-container::before {
    opacity: 0.4;
}

.timeline-card.center:hover .timeline-img-container {
    transform: translateY(-8px);
}

.timeline-card.left:hover, .timeline-card.right:hover {
    transform: scale(0.96);
}
.timeline-card.left:hover {
    transform: scale(0.96) translateX(8px);
}
.timeline-card.right:hover {
    transform: scale(0.96) translateX(-8px);
}

/* 共享描述区域 */
.timeline-shared-description {
    width: 90%;
    max-width: 750px;
    margin: 30px auto 0;
    padding: 25px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(215,38,61,0.08);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    text-align: center;
    border: 1px solid rgba(255,111,145,0.15);
}

.timeline-shared-description .shared-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #d7263d;
    margin: 0 0 8px 0;
}

.timeline-shared-description .shared-date {
    font-size: 1rem;
    color: #6a5a7c;
    margin-bottom: 16px;
    font-weight: 600;
    display: inline-block;
    padding: 4px 16px;
    background-color: rgba(255,111,145,0.1);
    border-radius: 30px;
}

.timeline-shared-description .shared-content {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.7;
    margin: 0;
}

/* 描述区域动画效果 */
.timeline-shared-description.fade-out {
    opacity: 0;
    transform: translateY(10px);
}

.timeline-shared-description.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* 平板和移动端 */
@media (max-width: 900px) {
    .timeline-cards-container {
        width: 95%;
        gap: 20px;
    }
    .timeline-img-container {
        height: 140px;
    }
    .timeline-card .card-title {
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .timeline-cards-container {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }
    .timeline-card {
        width: 80%;
        max-width: 280px;
    }
    .timeline-card.left, .timeline-card.right {
        opacity: 0.75;
        transform: scale(0.85);
    }
    .timeline-card.left {
        transform: scale(0.85) translateX(0);
        margin-bottom: 15px;
    }
    .timeline-card.right {
        transform: scale(0.85) translateX(0);
        margin-top: 15px;
    }
    .timeline-card.left:hover, .timeline-card.right:hover {
        transform: scale(0.9) translateX(0);
    }
    .timeline-shared-description {
        margin-top: 20px;
    }
    .timeline-shared-description .shared-title {
        font-size: 1.2rem;
    }
    .timeline-shared-description .shared-content {
        font-size: 0.95rem;
    }
}

/* 移动端点击去除高亮 */
.timeline-card, .timeline-img-container, .timeline-card * {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

