/* 整体容器样式 */
.history-container {
    padding: 40px 0;
    background-color: #fff;
    position: relative;
}

/* 主标题样式 */
.history-main-title {
    color: #8b0000;  /* 深红色 */
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
    letter-spacing: 1px;
}

.history-subtitle {
    color: #555;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 300;
}

.history-divider {
    width: 60%;
    margin: 30px auto;
    border-top: 2px solid #8b0000;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* 各部分通用样式 */
.history-section {
    padding: 50px 0;
    border-bottom: 1px solid #eee;
    position: relative;
}

.history-section:last-child {
    border-bottom: none;
}

/* 红色五角星背景装饰 */
.history-section::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f9e9e9' d='M12,17.27L18.18,21L16.54,13.97L22,9.24L14.81,8.62L12,2L9.19,8.62L2,9.24L7.45,13.97L5.82,21L12,17.27Z'/%3E%3C/svg%3E");
    background-size: contain;
    opacity: 0.1;
    z-index: 0;
}

.section-title {
    color: #8b0000;
    font-size: 30px;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    font-weight: bold;
}

.section-title:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #8b0000;
    margin: 15px auto;
}

/* 图片容器样式 */
.history-image-container {
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    border: 1px solid #ddd;
}

.history-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid rgba(139, 0, 0, 0.1);
    z-index: 1;
    pointer-events: none;
}

.history-image {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
    filter: saturate(0.9);  /* 稍微降低饱和度，增加历史感 */
}

.history-image:hover {
    transform: scale(1.03);
    filter: saturate(1);
}

.image-caption {
    background: rgba(139, 0, 0, 0.8);
    color: #fff;
    padding: 10px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 14px;
    z-index: 2;
}

/* 内容样式 */
.history-content {
    padding: 20px;
    position: relative;
    z-index: 1;
}

.history-content h3 {
    color: #8b0000;
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: bold;
    border-left: 4px solid #8b0000;
    padding-left: 15px;
}

.history-content p {
    color: #333;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
}

/* 战役要点样式 */
.history-facts {
    background: #f9f3f3;
    padding: 20px;
    border-radius: 4px;
    margin-top: 20px;
    border-left: 4px solid #8b0000;
}

.history-facts h4 {
    color: #8b0000;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: bold;
}

.history-facts ul {
    padding-left: 20px;
}

.history-facts li {
    margin-bottom: 8px;
    color: #444;
    line-height: 1.6;
}

/* 视频部分样式 */
.history-video-section {
    margin-top: 40px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 比例 */
    height: 0;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    background: #f5f5f5;
    border: 1px solid #ddd;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #8b0000;
    font-size: 18px;
}

/* 历史意义部分样式 */
.significance-content {
    background: #f9f3f3;
    padding: 30px;
    border-radius: 4px;
    margin-top: 20px;
    position: relative;
    border: 1px solid rgba(139, 0, 0, 0.1);
}

.significance-content p {
    color: #333;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
}

.significance-content p:last-child {
    margin-bottom: 0;
    font-weight: 500;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .history-main-title {
        font-size: 28px;
    }
    
    .history-subtitle {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .history-content h3 {
        font-size: 20px;
    }
    
    .history-content p {
        font-size: 14px;
    }
    
    .history-section {
        padding: 30px 0;
    }
    
    .history-divider {
        width: 80%;
    }
    
    .history-facts {
        padding: 15px;
    }
}

/* 动画效果 */
.history-section {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 确保每个部分依次显示 */
#kunniushan {
    animation-delay: 0.2s;
}

#ganxi {
    animation-delay: 0.4s;
}

#significance {
    animation-delay: 0.6s;
}

/* 特殊装饰元素 */
.history-container::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f9e9e9' d='M12,17.27L18.18,21L16.54,13.97L22,9.24L14.81,8.62L12,2L9.19,8.62L2,9.24L7.45,13.97L5.82,21L12,17.27Z'/%3E%3C/svg%3E");
    background-size: contain;
    opacity: 0.05;
    z-index: 0;
    transform: rotate(15deg);
}

/* 鼠标悬停效果增强 */
.section-title {
    transition: text-shadow 0.3s ease;
}

.section-title:hover {
    text-shadow: 1px 1px 3px rgba(139, 0, 0, 0.3);
}

/* 打印样式优化 */
@media print {
    .history-container {
        padding: 0;
    }
    
    .history-section {
        page-break-inside: avoid;
        opacity: 1;
        transform: none;
        animation: none;
    }
    
    .video-container {
        display: none;
    }
}