body{
    background-color: rgb(246, 235, 208);

}
/* 版心居中 */
.wrapper{
    margin: 0 auto;
    width: 100%;
}

/* 头部区域 */
/* 头部区域样式优化 */
.header {
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    z-index: 100;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 60px;
    width: auto;
}

.main-nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    padding: 10px;
    transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: #c12c1f;
}

/* 适配移动端 */
@media screen and (max-width: 768px) {
    .container {
        flex-direction: column;
        height: auto;
        padding: 15px;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 15px 0;
    }
}

/*图片区域  */
.image1{
    width: 100%;
    height: 700px;
    position: relative;
    overflow: hidden;
}

.image1 img{
    width: 100%;
    height: 700px;
    display: block;
}

.image2{
    width: 480px;
    height: 240px;
    position: absolute;
    left: 25%;
    top: 68%;
    transform: translate(-50%,-50%);
}

.image2 img{
    border: 10px solid rgb(225,182,122);
    width: 100%;
    height: 100%;
    display: block;
}

.hd{
    background: linear-gradient(to right, rgb(251,247,236) 0%, rgba(251,247,236,0) 50%, rgba(251,247,236,0) 100%);
    /* background-color: rgb(251,247,236);  */
    width: 100%;
    justify-content: space-between;
    display: flex;
    height: 60px;
    line-height: 60px;
}

.hd h3{
    margin-left: 92px ;
    font-size: 21px;
    font-weight: 400;
}

.hd .more{
    background-image: url(../images/more.png);
    background-repeat: no-repeat;
    background-position: right center;
    padding-right: 20px;
    font-size: 14px;
    color: #999;
}


/* 具体事迹区域 */
/* 红色故事传颂区域的整体布局 */
/* 红色故事传颂区域样式 */

.red-stories {
    padding: 60px 0;
    background-color:rgb(246, 235, 208);
    position: relative; /* 添加定位 */
    margin-top: 310px; /* 确保在hero-section之后 */
    z-index: 1; /* 确保在正确的层级 */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    top: 10px;
}

/* 标题样式 */
.section-title {
    text-align: left; /* 改为左对齐 */
    margin-bottom: 40px;
    padding-left: 20px;
    border-left: 4px solid #c12c1f;
}

.section-title h2 {
    font-size: 32px;
    color: #c12c1f;
    margin: 0;
    font-weight: bold;
}

.title-line {
    width: 60px;
    height: 3px;
    background-color: #c12c1f;
    margin: 0 auto;
    position: relative;
}

.title-line::before,
.title-line::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #c12c1f;
    border-radius: 50%;
    top: -2.5px;
}

.title-line::before {
    left: -10px;
}

.title-line::after {
    right: -10px;
}

/* 故事卡片网格布局 */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

/* 故事卡片样式 */
.story-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

/* 图片容器样式 */
.story-image {
    position: relative;
    padding-top: 66%; /* 3:2 比例 */
    overflow: hidden;
}

.story-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* 修改为contain确保整个图片可见 */
    background-color: #f5f5f5; /* 添加背景色以便于查看图片边界 */
    transition: transform 0.3s ease;
}

/* 遮罩层样式 */
.story-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(193, 44, 31, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.read-more {
    color: #fff;
    text-decoration: none;
    padding: 8px 20px;
    border: 2px solid #fff;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
}

/* 内容区域样式 */
.story-content {
    padding: 20px;
}

.story-content h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.story-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    /* -webkit-line-clamp: 3; */
    overflow: hidden;
}

/* 悬浮效果 */
.story-card:hover {
    transform: translateY(-5px);
}

.story-card:hover .story-image img {
    transform: scale(1.02); /* 稍微减小缩放比例，避免图片溢出 */
    background-color: #e6e6e6; /* 鼠标悬停时背景色变化 */
}

.story-card:hover .story-overlay {
    opacity: 1;
}

.read-more:hover {
    background: #fff;
    color: #c12c1f;
}

/* 响应式适配 */
@media screen and (max-width: 1024px) {
    .stories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media screen and (max-width: 768px) {
    .section-title h2 {
        font-size: 28px;
    }
    
    .red-stories {
        padding: 40px 0;
    }
}

@media screen and (max-width: 480px) {
    .stories-grid {
        grid-template-columns: 1fr;
    }
    
    .story-content h3 {
        font-size: 16px;
    }
}


/* 过渡区域 */
/* 过渡区域样式 */
.transition-section {
    position: relative;
    background: linear-gradient(to bottom, rgba(193, 44, 31, 0.9), #c12c1f);
    padding: 60px 0;
    color: #fff;
    margin-top: 10px; /* 确保在hero-section之后 */
    opacity: 1; /* 确保不透明 */
}

/* 波浪形状过渡 */
.transition-shape {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 50px;
    background: #f8f3f3;
    clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 100%);
}

/* 内容布局 */
.transition-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

/* 引用框样式 */
.quote-box {
    flex: 1;
    position: relative;
    padding: 30px;
}

.quote-icon {
    font-size: 60px;
    opacity: 0.3;
    position: absolute;
    top: -20px;
    left: 0;
}

.quote-text {
    font-size: 20px;
    line-height: 1.6;
    margin: 0;
    position: relative;
    z-index: 1;
}

.quote-line {
    width: 60px;
    height: 3px;
    background: #fff;
    margin-top: 20px;
}

/* 数据统计盒子 */
.stat-boxes {
    display: flex;
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    min-width: 120px;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
}

/* 响应式适配 */
@media screen and (max-width: 1024px) {
    .transition-content {
        flex-direction: column;
        text-align: center;
    }
    
    .quote-icon {
        position: static;
        display: block;
        margin-bottom: 10px;
    }
    
    .quote-line {
        margin: 20px auto;
    }
    
    .stat-boxes {
        width: 100%;
        justify-content: center;
    }
}

@media screen and (max-width: 768px) {
    .transition-section {
        padding: 40px 0 60px;
    }
    
    .quote-text {
        font-size: 18px;
    }
    
    .stat-boxes {
        flex-wrap: wrap;
    }
    
    .stat-item {
        min-width: calc(50% - 15px);
    }
}

@media screen and (max-width: 480px) {
    .stat-item {
        min-width: 100%;
    }
    
    .quote-text {
        font-size: 16px;
    }
}




/* 革命精神过渡区域样式 */
.spirit-transition {
    margin-top: 350px;
    padding: 80px 0;
    background-image: url('../images/bg-texture.jpg'); /* 可选：添加纹理背景 */
    background-color: #c12c1f;
    color: #fff;
    overflow: hidden;
}

.spirit-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(45deg, rgba(193, 44, 31, 0.95), rgba(193, 44, 31, 0.8)); */
    z-index: 1;
}

.spirit-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

/* 左侧内容样式 */
.spirit-left {
    flex: 1;
}

.spirit-title {
    font-size: 36px;
    font-weight: bold;
    margin: 0;
    position: relative;
    display: inline-block;
}

.spirit-divider {
    width: 80px;
    height: 3px;
    background-color: #fff;
    margin: 20px 0;
    position: relative;
}

.spirit-divider::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-radius: 50%;
}

.spirit-desc {
    font-size: 18px;
    line-height: 1.8;
    margin: 0;
    max-width: 600px;
    opacity: 0.9;
}

/* 右侧统计卡片样式 */
.spirit-stats {
    display: flex;
    gap: 30px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    min-width: 150px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-icon {
    font-size: 24px;
    margin-bottom: 15px;
    opacity: 0.8;
}

.stat-info {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
}

/* 添加动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.spirit-title,
.spirit-desc,
.stat-card {
    animation: fadeInUp 0.8s ease forwards;
}

.stat-card:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.4s;
}

/* 响应式适配 */
@media screen and (max-width: 1024px) {
    .spirit-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .spirit-divider {
        margin: 20px auto;
    }

    .spirit-stats {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .stat-card {
        min-width: calc(33.33% - 20px);
    }
}

@media screen and (max-width: 768px) {
    .spirit-transition {
        padding: 60px 0;
    }

    .spirit-title {
        font-size: 28px;
    }

    .spirit-desc {
        font-size: 16px;
    }

    .stat-card {
        min-width: calc(50% - 15px);
    }
}

@media screen and (max-width: 480px) {
    .stat-card {
        min-width: 100%;
    }
}





/* 革命人物事迹区域样式 */
.hero-profiles {
    margin-top: 220px;
    padding: 80px 0;
    background-color: rgb(246, 235, 208);
    color: #fff;
}

/* 标题样式 */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    color: #c12c1f;
    margin-bottom: 15px;
}

.title-decoration {
    width: 60px;
    height: 3px;
    background-color: #c12c1f;
    margin: 0 auto;
    position: relative;
}

.title-decoration::before,
.title-decoration::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #c12c1f;
    border-radius: 50%;
    top: -2.5px;
}

.title-decoration::before {
    left: -10px;
}

.title-decoration::after {
    right: -10px;
}

/* 人物卡片网格布局 */
.profiles-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* 人物卡片样式 */
.profile-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* 图片容器样式 */
.profile-image {
    position: relative;
    overflow: hidden;
    padding-top: 100%; /* 保持1:1的比例 */
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 修改为contain确保整个图片可见 */
    background-color: #f5f5f5; /* 添加背景色以便于查看图片边界 */
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: brightness(1);
    position: absolute;
    top: 0;
    left: 0;
}

/* 悬浮层样式 */
.profile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(193, 44, 31, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay-content {
    text-align: center;
    padding: 20px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.overlay-content h4 {
    font-size: 24px;
    margin: 0 0 10px;
}

.overlay-content p {
    font-size: 16px;
    margin: 0 0 20px;
    opacity: 0.8;
}

.profile-btn {
    display: inline-block;
    padding: 8px 25px;
    border: 2px solid #fff;
    border-radius: 25px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.profile-btn:hover {
    background: #fff;
    color: #c12c1f;
}

/* 信息区域样式 */
.profile-info {
    padding: 20px;
}

.profile-name1 {
    font-size: 20px;
    margin: 0 0 5px;
    color: #333;
}

.profile-title {
    font-size: 14px;
    color: #c12c1f;
    margin-bottom: 15px;
}

.profile-desc1 {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

/* 悬浮效果 */
.profile-card:hover .profile-overlay {
    opacity: 1;
}

.profile-card:hover .overlay-content {
    transform: translateY(0);
}

.profile-card:hover .profile-image img {
    transform: scale(1.05); /* 减小缩放比例，避免图片溢出 */
    filter: brightness(0.8); /* 调整亮度，确保悬停效果明显但不会太暗 */
}

/* 响应式适配 */
@media screen and (max-width: 1200px) {
    .profiles-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media screen and (max-width: 768px) {
    .hero-profiles {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .profiles-container {
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
    }
    
    .profile-image {
        padding-top: 100%;
    }
}

@media screen and (max-width: 480px) {
    .profile-info {
        padding: 15px;
    }
    
    .profile-name {
        font-size: 18px;
    }
}



/* 版权区域样式 */
.footer {
    margin-top: 310px;
    background-color: #2b2b2b;
    color: #fff;
    padding: 60px 0 30px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 主要内容区域 */
.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 40px;
}

/* 左侧信息 */
.footer-info {
    max-width: 400px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo img {
    width: 50px;
    height: 50px;
    margin-right: 15px;
}

.footer-logo h3 {
    font-size: 20px;
    margin-top: 20px;
    font-weight: normal;
}

.contact-info p {
    margin: 10px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 10px;
    font-size: 16px;
    color: #c12c1f;
}

/* 右侧链接 */
.footer-links {
    padding-left: 20px;
    margin-top: 20px;
    display: flex;
    gap: 60px;
}

.link-group h4 {
    font-size: 16px;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
}

.link-group h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background-color: #c12c1f;
}

.link-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.link-group ul li {
    margin-bottom: 12px;
}

.link-group ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.link-group ul li a:hover {
    color: #c12c1f;
}

/* 底部信息 */
.footer-bottom {
    text-align: center;
    padding-top: 30px;
}

.copyright {
    margin-bottom: 15px;
}

.copyright p {
    margin: 5px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.copyright a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.copyright a:hover {
    color: #c12c1f;
}

.footer-extra p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

/* 响应式适配 */
@media screen and (max-width: 1024px) {
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-info {
        max-width: 100%;
    }
    
    .footer-links {
        justify-content: flex-start;
    }
}

@media screen and (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-logo h3 {
        font-size: 18px;
    }
}

@media screen and (max-width: 480px) {
    .footer-content {
        margin-bottom: 30px;
        padding-bottom: 30px;
    }
    
    .copyright p {
        font-size: 12px;
    }
}

/* 添加特定的样式来处理百团大战图片 */
.story-image a[href="./跳转二.html"] img {
    padding: 5px;
    object-position: center; /* 确保图片居中显示 */
}



