/* 整体容器样式 */
.heritage-container {
    padding: 40px 0;
    background-color: #fff;
}

/* 主标题样式 */
.heritage-main-title {
    color: #333;
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: bold;
}

.heritage-subtitle {
    color: #666;
    font-size: 18px;
    margin-bottom: 20px;
}

.heritage-divider {
    width: 60%;
    margin: 30px auto;
    border-top: 2px solid #e0e0e0;
}

/* 各部分通用样式 */
.heritage-section {
    padding: 50px 0;
    border-bottom: 1px solid #f0f0f0;
}

.heritage-section:last-child {
    border-bottom: none;
}

.section-title {
    color: #2c3e50;
    font-size: 30px;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #3498db;
    margin: 15px auto;
}

/* 图片容器样式 */
.heritage-image-container {
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.heritage-image {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.heritage-image:hover {
    transform: scale(1.05);
}

.image-caption {
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 10px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 14px;
}

/* 内容样式 */
.heritage-content {
    padding: 20px;
}

.heritage-content h3 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: bold;
}

.heritage-content p {
    color: #555;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
}

/* 视频部分样式 */
.heritage-video-section {
    margin-top: 40px;
    margin-bottom: 20px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 比例 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background: #f5f5f5;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #666;
    font-size: 18px;
}

/* 传承与保护部分样式 */
.protection-content {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    margin-top: 20px;
}

.protection-content p {
    color: #555;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .heritage-main-title {
        font-size: 28px;
    }
    
    .heritage-subtitle {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .heritage-content h3 {
        font-size: 20px;
    }
    
    .heritage-content p {
        font-size: 14px;
    }
    
    .heritage-section {
        padding: 30px 0;
    }
    
    .heritage-divider {
        width: 80%;
    }
}

/* 动画效果 */
.heritage-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);
    }
}

/* 确保每个部分依次显示 */
#shuochun {
    animation-delay: 0.2s;
}

#puppet {
    animation-delay: 0.4s;
}

#gelao {
    animation-delay: 0.6s;
}

#protection {
    animation-delay: 0.8s;
}