/* 整体容器样式 */
.festival-container {
    padding: 40px 0;
    background-color: #fff;
}

/* 主标题样式 */
.festival-main-title {
    color: #b71c1c;  /* 深红色，体现节日喜庆氛围 */
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.festival-subtitle {
    color: #666;
    font-size: 18px;
    margin-bottom: 20px;
}

.festival-divider {
    width: 60%;
    margin: 30px auto;
    border-top: 2px solid #e57373;  /* 淡红色分隔线 */
}

/* 各部分通用样式 */
.festival-section {
    padding: 50px;
    border-bottom: 1px solid #f0f0f0;
}

.festival-section:last-child {
    border-bottom: none;
}

.section-title {
    color: #d32f2f;  /* 红色主题 */
    font-size: 30px;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #ef5350;  /* 红色强调线 */
    margin: 15px auto;
}

/* 图片容器样式 */
.festival-image-container {
    margin-top: 50px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;  /* 更圆的边角 */
    box-shadow: 0 6px 12px rgba(183, 28, 28, 0.1);  /* 带红色调的阴影 */
}

.festival-image {
    width: 100%;
    height: auto;
    transition: transform 0.4s ease;
}

.festival-image:hover {
    transform: scale(1.05);
}

.image-caption {
    background: rgba(183, 28, 28, 0.8);  /* 深红色半透明背景 */
    color: #fff;
    padding: 12px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 14px;
}

/* 内容样式 */
.festival-content {
    padding: 20px;
}

.festival-content h3 {
    color: #c62828;  /* 深红色标题 */
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: bold;
}

.festival-content p {
    color: #424242;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
}

/* 视频部分样式 */
.festival-video-section {
    margin-top: 40px;
    margin-bottom: 20px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 比例 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(183, 28, 28, 0.1);
    background: #fafafa;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff3f3;  /* 淡红色背景 */
    color: #b71c1c;
    font-size: 18px;
}

/* 文化传承部分样式 */
.inheritance-content {
    background: #fff5f5;  /* 淡红色背景 */
    padding: 30px;
    border-radius: 12px;
    margin-top: 20px;
    border: 1px solid rgba(183, 28, 28, 0.1);
}

.inheritance-content p {
    color: #424242;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .festival-main-title {
        font-size: 28px;
    }
    
    .festival-subtitle {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .festival-content h3 {
        font-size: 20px;
    }
    
    .festival-content p {
        font-size: 14px;
    }
    
    .festival-section {
        padding: 30px 0;
    }
    
    .festival-divider {
        width: 80%;
    }
}

/* 动画效果 */
.festival-section {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 确保每个部分依次显示 */
#maolong {
    animation-delay: 0.2s;
}

#jingque {
    animation-delay: 0.4s;
}

#inheritance {
    animation-delay: 0.6s;
    margin-left: 10%;
}

/* 节日特色装饰 */
.festival-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, transparent, rgba(183, 28, 28, 0.1), transparent);
}

/* 鼠标悬停效果增强 */
.festival-content h3 {
    transition: color 0.3s ease;
}

.festival-content h3:hover {
    color: #ef5350;
}

/* 图片边框效果 */
.festival-image-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ef5350, #e57373);
    z-index: -1;
    border-radius: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.festival-image-container:hover::before {
    opacity: 1;
}