/* 页面基础样式 */
body {
    font-family: "Microsoft YaHei", "SimSun", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f5e9;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    zoom: 0.88;
}

/* 红色文化地图样式 */
.map-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 4px solid #c12c1f;
    background-color: #fff;
}

.china-map {
    width: 100%;
    height: 750px;
    position: relative;
    z-index: 1;
}

/* 地图标题样式 */
.map-header {
    text-align: center;
    background-color: #fff;
    padding: 25px 0;
    border-bottom: 3px solid #c12c1f;
    position: relative;
}

.map-header::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, transparent, #c12c1f, transparent);
    opacity: 0.5;
}

.map-title {
    display: inline-block;
    max-width: 600px;
    margin: 0 auto;
}

.map-title h2 {
    color: #c12c1f;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

.map-title h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background-color: rgba(193, 44, 31, 0.5);
}

.map-title p {
    color: #333;
    font-size: 16px;
    margin: 0;
}

/* 地图区域背景 */
.map-section {
    padding: 40px 0;
    background: url('../images/image.png') no-repeat center center;
    background-size: cover;
    position: relative;
}

.map-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(193, 44, 31, 0.4) 0%, rgba(193, 44, 31, 0.2) 100%);
    z-index: 1;
}

.map-section .container {
    position: relative;
    z-index: 2;
}

/* 百度地图信息窗口样式 */
.map-info-window h3 {
    color: #c12c1f;
    font-size: 18px;
    margin-bottom: 8px;
}

.map-info-window p {
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.info-btn {
    display: inline-block;
    padding: 5px 15px;
    background-color: #c12c1f;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.info-btn:hover {
    background-color: #a01c10;
}

/* 信息面板样式 */
.location-info {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    width: 80%;
    max-width: 800px;
    display: none;
    z-index: 10;
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.location-info.active {
    display: block;
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.location-info h3 {
    color: #c12c1f;
    margin-bottom: 10px;
    font-size: 20px;
}

.location-info p {
    color: #333;
    margin-bottom: 15px;
    line-height: 1.6;
}

.location-info .btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: #c12c1f;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.location-info .btn:hover {
    background-color: #a01c10;
}

/* 红色基地介绍区域样式 */
.base-intro {
    padding: 60px 0;
    background-color: #f9f5e9;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

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

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

.base-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.base-card {
    width: 100%;
    max-width: 540px;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.base-card:hover {
    transform: translateY(-5px);
}

.base-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.base-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.base-card:hover .base-image img {
    transform: scale(1.05);
}

.base-content {
    padding: 25px;
}

.base-content h3 {
    font-size: 22px;
    color: #c12c1f;
    margin-bottom: 15px;
}

.base-content p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.base-btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: #c12c1f;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.base-btn:hover {
    background-color: #a01c10;
    transform: translateY(-2px);
}

/* 百度地图控件样式覆盖 */
.BMap_stdMpCtrl button,
.BMap_stdMpPan button {
    cursor: pointer !important;
}

.BMap_stdMpZoom {
    top: 10px !important;
    left: 10px !important;
}

.BMap_cpyCtrl {
    display: none !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .china-map {
        height: 400px;
    }
    
    .base-card {
        max-width: 100%;
    }
    
    .base-image {
        height: 200px;
    }
}

/* 地图页面样式 */

/* 头部区域 */
.header {
    background-color: #c12c1f;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
}

.logo {
    float: left;
    padding: 10px 0;
}

.site-title {
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
    white-space: nowrap;
    position: relative;
    padding-bottom: 5px;
    display: inline-block;
    white-space: normal;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.site-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #c12c1f, transparent);
    transform: scaleX(1);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.logo img {
    height: 50px;
}

.main-nav {
    float: right;
    margin-top: 15px;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav ul li {
    display: inline-block;
    margin-left: 10px;
}

.main-nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: #ffcc00;
}

/* 清除浮动 */
.header::after {
    content: "";
    display: table;
    clear: both;
}

/* 地图图例样式 */
.map-legend {
    position: absolute;
    top: 100px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.92);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 100;
    border-left: 4px solid #c12c1f;
    width: 180px;
}

.map-legend h4 {
    color: #c12c1f;
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 16px;
    text-align: center;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(193, 44, 31, 0.3);
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.legend-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    display: inline-block;
}

.legend-icon.home-dot {
    width: 16px;
    height: 16px;
    background-color: #3370ff;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 4px rgba(0,0,0,0.3);
}

.legend-icon.red-dot {
    width: 16px;
    height: 16px;
    background-color: #c12c1f;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 4px rgba(0,0,0,0.3);
}

.legend-icon.normal-dot {
    width: 10px;
    height: 10px;
    background-color: #ff5252;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
    margin-left: 4px;
}

.legend-line {
    width: 20px;
    height: 2px;
    margin-right: 12px;
}

.legend-line.red-line {
    background-color: #ff5252;
    border-top: 2px dashed #ff5252;
}

.legend-line.yellow-line {
    background-color: #ffcc00;
    border-top: 2px dashed #ffcc00;
}

.legend-item span {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* 地图信息窗口样式 */
.map-info-window {
    padding: 18px;
    width: 280px;
    background-color: rgba(255, 255, 255, 0.95);
    border-left: 4px solid #c12c1f;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
}

.map-info-window h3 {
    color: #c12c1f;
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 18px;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(193, 44, 31, 0.3);
}

.map-info-window p {
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.info-btn {
    display: inline-block;
    background-color: #c12c1f;
    color: #fff;
    padding: 8px 18px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border: none;
}

.info-btn:hover {
    background-color: #a01c11;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* 隐藏高德地图版权信息和LOGO */
.amap-logo, .amap-copyright {
    display: none !important;
}

/* 地点信息面板 */
.location-info {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 300px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 100;
    border-left: 4px solid #c12c1f;
}

.location-info.active {
    transform: translateY(0);
    opacity: 1;
}

.location-info h3 {
    color: #c12c1f;
    margin-top: 0;
    margin-bottom: 10px;
}

.location-info p {
    margin-bottom: 15px;
    line-height: 1.5;
}

.location-info .btn {
    display: inline-block;
    background-color: #c12c1f;
    color: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s;
}

.location-info .btn:hover {
    background-color: #a01c11;
}

/* 箭头标记样式 */
.arrow-marker {
    color: #ff5252;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

/* 红色基地介绍区域 */
.base-intro {
    padding: 60px 0;
    background-color: #fff;
    position: relative;
}

.base-intro::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(193, 44, 31, 0.03) 0%, rgba(193, 44, 31, 0.07) 100%);
    z-index: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.section-title {
    color: #c12c1f;
    font-size: 32px;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

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

.title-decoration:before {
    content: "★";
    color: #c12c1f;
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
}

.base-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.base-card {
    flex: 1 1 calc(50% - 15px);
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    border: 1px solid #eee;
}

.base-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(193, 44, 31, 0.2);
}

.base-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.base-image:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(193, 44, 31, 0) 70%, rgba(193, 44, 31, 0.3));
}

.base-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.base-card:hover .base-image img {
    transform: scale(1.05);
}

.base-content {
    padding: 25px;
}

.base-content h3 {
    color: #c12c1f;
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 15px;
}

.base-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.base-btn {
    display: inline-block;
    background-color: #c12c1f;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.base-btn:hover {
    background-color: #a01c11;
}

/* 红色足迹区域 */
.red-footprint {
    padding: 60px 0;
    background-color: #f9f5e9;
    position: relative;
}

/* 添加新的CSS样式 */

/* 恢复原有的红色足迹样式 */
.red-footprint::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(193, 44, 31, 0.05) 0%, rgba(193, 44, 31, 0.1) 100%);
}

.footprint-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    position: relative;
}

.footprint-text {
    flex: 1 1 65%;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #c12c1f;
}

.footprint-text p {
    color: #333;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
}

.footprint-text p:last-child {
    margin-bottom: 0;
}

.footprint-quote {
    flex: 1 1 25%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footprint-quote blockquote {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #c12c1f;
    margin: 0;
    width: 100%;
}

.footprint-quote blockquote p {
    color: #c12c1f;
    font-size: 20px;
    font-style: italic;
    margin-bottom: 10px;
    text-align: center;
}

.footprint-quote blockquote footer {
    color: #666;
    font-size: 16px;
    text-align: right;
}

/* 平衡引言区域的布局 */
.quote-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

.quote-box {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 25px 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #c12c1f;
    text-align: center;
    max-width: 600px;
}

.quote-box p {
    color: #c12c1f;
    font-size: 24px;
    font-style: italic;
    margin-bottom: 15px;
}

.quote-box footer {
    color: #666;
    font-size: 16px;
    text-align: right;
}

/* 响应式适配 */
@media (max-width: 992px) {
    .footprint-text, .footprint-quote {
        flex: 1 1 100%;
    }
}

@media (max-width: 768px) {
    .quote-box {
        padding: 20px;
    }
    
    .quote-box p {
        font-size: 18px;
    }
}

/* 版权区域 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-info {
    flex: 1 1 60%;
    margin-right: 30px;
}

.footer-logo h3 {
    color: #c12c1f;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 5px;
    display: inline-block;
}

.footer-logo h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #c12c1f, transparent);
}

.contact-info p {
    margin-bottom: 10px;
    color: #ccc;
}

.footer-links {
    flex: 1 1 30%;
}

.link-group h4 {
    color: #ffcc00;
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 15px;
}

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

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

.link-group ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
}

.copyright {
    text-align: center;
    color: #999;
    font-size: 14px;
}

.copyright p {
    margin-bottom: 5px;
}

.copyright a {
    color: #ccc;
    text-decoration: none;
}

.footer-extra {
    text-align: center;
    margin-top: 15px;
    color: #777;
    font-size: 12px;
}

/* 响应式样式 */
@media (max-width: 992px) {
    .base-card {
        flex: 1 1 100%;
    }
    
    .footer-info, .footer-links {
        flex: 1 1 100%;
        margin-right: 0;
        margin-bottom: 30px;
    }
    
    .footprint-text, .footprint-quote {
        flex: 1 1 100%;
    }
}

@media (max-width: 768px) {
    .map-container {
        height: 550px;
    }
    
    .location-info {
        width: 250px;
    }
    
    .main-nav {
        float: none;
        margin-top: 20px;
        text-align: center;
    }
    
    .logo {
        float: none;
        text-align: center;
        margin-bottom: 15px;
    }
    
    .main-nav ul li {
        margin: 0 10px;
    }
    
    .map-legend {
        top: auto;
        bottom: 20px;
        right: 20px;
        width: 150px;
    }
}

@media (max-width: 576px) {
    .map-container {
        height: 450px;
    }
    
    .location-info {
        right: 10px;
        bottom: 10px;
        width: calc(100% - 40px);
    }
    
    .map-legend {
        width: 120px;
        padding: 10px;
    }
    
    .legend-item {
        margin-bottom: 5px;
    }
    
    .legend-item span {
        font-size: 12px;
    }
}

/* 标记点样式 */
.marker-icon {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.marker-icon:hover {
    transform: scale(1.1);
}

.marker-dot {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.marker-dot:hover {
    transform: scale(1.3);
}

/* 信息窗口样式优化 */
.amap-info-content {
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.amap-info-close {
    right: 10px !important;
    top: 10px !important;
    background-color: rgba(255, 255, 255, 0.8) !important;
    border-radius: 50% !important;
    color: #c12c1f !important;
    font-weight: bold !important;
}

.logo a:hover .site-title::after {
    transform: scaleX(0.8);
}

/* 红色精神新样式 */
.red-spirit-section {
    position: relative;
    padding: 40px 50px;
    background-color: rgba(249, 245, 233, 0.5);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin: 30px 20px;
    overflow: hidden;
    border: 2px solid rgba(193, 44, 31, 0.15);
}

.red-spirit-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20px 20px, #c12c1f 0, #c12c1f 4px, transparent 5px),
        radial-gradient(circle at calc(100% - 20px) 20px, #c12c1f 0, #c12c1f 4px, transparent 5px),
        radial-gradient(circle at 20px calc(100% - 20px), #c12c1f 0, #c12c1f 4px, transparent 5px),
        radial-gradient(circle at calc(100% - 20px) calc(100% - 20px), #c12c1f 0, #c12c1f 4px, transparent 5px),
        radial-gradient(circle at 50% 15px, #c12c1f 0, #c12c1f 3px, transparent 4px),
        radial-gradient(circle at 50% calc(100% - 15px), #c12c1f 0, #c12c1f 3px, transparent 4px),
        radial-gradient(circle at 15px 50%, #c12c1f 0, #c12c1f 3px, transparent 4px),
        radial-gradient(circle at calc(100% - 15px) 50%, #c12c1f 0, #c12c1f 3px, transparent 4px),
        /* 额外的星星装饰 */
        radial-gradient(circle at 80px 15px, #c12c1f 0, #c12c1f 2px, transparent 3px),
        radial-gradient(circle at calc(100% - 80px) 15px, #c12c1f 0, #c12c1f 2px, transparent 3px),
        radial-gradient(circle at 80px calc(100% - 15px), #c12c1f 0, #c12c1f 2px, transparent 3px),
        radial-gradient(circle at calc(100% - 80px) calc(100% - 15px), #c12c1f 0, #c12c1f 2px, transparent 3px);
    background-size: auto;
    background-repeat: no-repeat;
    opacity: 0.6;
    z-index: 1;
    pointer-events: none;
}

.red-spirit-section .section-title {
    color: #c12c1f;
    text-align: center;
    font-size: 28px;
    margin-bottom: 5px;
    position: relative;
    z-index: 2;
}

.red-spirit-section .title-decoration {
    width: 80px;
    height: 3px;
    background-color: #c12c1f;
    margin: 0 auto 30px;
    position: relative;
    z-index: 2;
}

.spirit-container {
    position: relative;
    max-width: 95%;
    margin: 0 auto;
    min-height: 400px;
    z-index: 2;
    padding: 0 30px;
}

.spirit-wrapper {
    display: block;
    width: 100%;
    height: 400px;
    perspective: 1000px;
    max-width: 900px;
    margin: 0 auto;
}

.spirit-wrapper.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.spirit-card {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    cursor: pointer;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.spirit-card.flipped {
    transform: rotateY(180deg);
}

.spirit-front, .spirit-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
}

.spirit-front {
    background-color: #fff;
    height: 400px;
    position: relative;
}

.spirit-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.spirit-card:hover .spirit-front img {
    transform: scale(1.05);
}

.spirit-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    padding: 20px;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
}

.spirit-back {
    background: linear-gradient(135deg, #f9f5e9 0%, #fff 100%);
    transform: rotateY(180deg);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.spirit-back h4 {
    color: #c12c1f;
    font-size: 24px;
    text-align: center;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

.spirit-back h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: #c12c1f;
}

.spirit-back p {
    color: #333;
    text-align: center;
    font-size: 18px;
    margin-bottom: 30px;
    font-weight: 500;
    line-height: 1.6;
}

.spirit-description {
    color: #555;
    text-align: justify;
    line-height: 1.8;
    font-size: 16px;
    overflow-y: auto;
    max-height: 200px;
    padding-right: 10px;
}

.spirit-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.nav-btn {
    background-color: #c12c1f;
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    margin: 0 30px;
}

.nav-btn:hover {
    background-color: #a01c11;
}

.nav-btn:disabled {
    background-color: #d9d9d9;
    cursor: not-allowed;
}

.nav-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 200px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: #c12c1f;
    transform: scale(1.2);
}

/* 引言区域样式 */
.quote-container {
    margin: 60px 0;
    padding: 0 20px;
}

.quote-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 40px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #c12c1f;
    position: relative;
}

.quote-box:before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    color: rgba(193, 44, 31, 0.1);
    font-size: 80px;
    font-family: serif;
}

.quote-box p {
    color: #333;
    font-size: 22px;
    font-style: italic;
    text-align: center;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.quote-box footer {
    color: #666;
    font-size: 18px;
    text-align: right;
}

/* 响应式适配 */
@media (max-width: 992px) {
    .footprint-text, .footprint-quote {
        flex: 1 1 100%;
    }
    
    .spirit-container {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .spirit-container {
        height: 300px;
    }
    
    .quote-box {
        padding: 20px;
    }
    
    .quote-box p {
        font-size: 18px;
    }
    
    .spirit-back h4 {
        font-size: 20px;
    }
    
    .spirit-back p {
        font-size: 16px;
    }
    
    .spirit-description {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .spirit-container {
        height: 450px;
    }
    
    .nav-btn {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .spirit-navigation {
        flex-wrap: wrap;
    }
    
    .nav-dots {
        order: -1;
        width: 100%;
        margin-bottom: 15px;
    }
    
    .red-spirit-section {
        margin-top: 40px;
    }
}

/* 区域装饰元素样式 */
.section-decoration {
    position: absolute;
    height: 100%;
    width: 200px;
    z-index: 5;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    top: 0;
    padding: 60px 0;
}

.section-decoration.left {
    left: 0;
}

.section-decoration.right {
    right: 0;
}

/* 为装饰元素设置样式 */
.section-decoration .decoration-item {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    opacity: 0.85; /* 直接设置可见 */
    transition: transform 0.5s ease;
}

/* 为红色足迹区域设置相对定位 */
.red-footprint {
    position: relative;
    overflow: hidden;
}

/* 为每个装饰元素设置特定样式 - 静态效果 */
#dove {
    transform: translateX(-20px) rotate(-2deg);
    animation: gentle-float-left 8s infinite ease-in-out;
}

#fish {
    transform: translateX(-10px) rotate(-15deg);
    animation: gentle-float-left 12s infinite ease-in-out;
}

#cloud1 {
    transform: translateX(-15px);
    animation: gentle-float-left 10s infinite ease-in-out;
}

#cloud2 {
    transform: translateX(15px);
    animation: gentle-float-right 11s infinite ease-in-out;
}

#dragon {
    transform: translateX(10px) rotate(5deg);
    animation: gentle-float-right 15s infinite ease-in-out;
}

/* 缓和的动画效果 */
@keyframes gentle-float-left {
    0%, 100% { transform: translateX(-20px) rotate(-2deg); }
    50% { transform: translateX(-10px) rotate(0deg); }
}

@keyframes gentle-float-right {
    0%, 100% { transform: translateX(20px) rotate(2deg); }
    50% { transform: translateX(10px) rotate(0deg); }
}

.section-decoration .decoration-item img {
    max-width: 85%;
    max-height: 180px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(193, 44, 31, 0.6));
    transition: transform 0.3s ease;
}

.section-decoration .decoration-item:hover img {
    transform: scale(1.05);
}

/* 在小屏幕上调整装饰元素 */
@media (max-width: 1200px) {
    .section-decoration {
        width: 150px;
    }
    
    .section-decoration .decoration-item img {
        max-width: 90%;
    }
}

@media (max-width: 992px) {
    .section-decoration {
        display: none;
    }
}

/* 隐藏之前定义的装饰元素 */
.decoration-left, 
.decoration-right,
.left-decoration, 
.right-decoration {
    display: none;
}

/* 红色文化图标装饰 */
.icon-decoration {
    position: fixed;
    width: 200px;
    height: 200px;
    z-index: -1;
    opacity: 0.3;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-decoration .iconfont {
    font-size: 150px;
    color: #c12c1f;
}

.icon-wheat {
    top: 120px;
    left: 50px;
}

.icon-star-large {
    top: 350px;
    left: 80px;
    transform: rotate(15deg);
}

.icon-star-large .iconfont {
    font-size: 180px;
}

.icon-monument {
    top: 580px;
    left: 40px;
}

.icon-hammer-sickle {
    top: 200px;
    right: 60px;
}

.icon-building {
    top: 450px;
    right: 40px;
}

.icon-flag {
    top: 700px;
    right: 70px;
    transform: rotate(-10deg);
}

/* 红色精神区域背景装饰 */
.red-spirit-section {
    position: relative;
    background-color: rgba(249, 245, 233, 0.5);
}

.red-spirit-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/texture-bg.png') repeat;
    opacity: 0.07;
    z-index: -1;
}

.red-spirit-decoration {
    position: absolute;
    z-index: -1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.red-spirit-decoration .iconfont {
    color: #c12c1f;
    opacity: 0.2;
}

.corner-star-tl {
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
}

.corner-star-tl .iconfont {
    font-size: 40px;
}

.corner-star-tr {
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
}

.corner-star-tr .iconfont {
    font-size: 40px;
}

.icon-ribbon {
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 40px;
}

.icon-ribbon .iconfont {
    font-size: 80px;
}

/* 导航按钮中的图标 */
.nav-btn .iconfont {
    font-size: 16px;
    vertical-align: middle;
}

/* 联系信息图标 */
.contact-info .iconfont {
    margin-right: 8px;
    color: #c12c1f;
}

/* 响应式调整 */
@media (max-width: 1400px) {
    .left-decoration, .right-decoration {
        width: 180px;
    }
    
    .icon-decoration {
        width: 150px;
        height: 150px;
    }
    
    .icon-decoration .iconfont {
        font-size: 120px;
    }
    
    .icon-star-large .iconfont {
        font-size: 140px;
    }
}

@media (max-width: 1200px) {
    .left-decoration, .right-decoration {
        width: 120px;
    }
    
    .icon-decoration {
        width: 120px;
        height: 120px;
    }
    
    .icon-decoration .iconfont {
        font-size: 90px;
    }
    
    .icon-star-large .iconfont {
        font-size: 110px;
    }
}

@media (max-width: 992px) {
    .left-decoration, .right-decoration {
        display: none;
    }
    
    .icon-decoration {
        display: none;
    }
}

/* 添加图片放大功能的样式 */
.zoomable-image {
    cursor: zoom-in;
    transition: all 0.3s ease;
}

.zoomable-image:hover {
    opacity: 0.9;
}

/* 弹窗样式 */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    padding-top: 60px;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
    animation: zoom 0.6s;
}

@keyframes zoom {
    from {transform: scale(0)}
    to {transform: scale(1)}
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    z-index: 1001;
}

.close-modal:hover,
.close-modal:focus {
    color: #c12c1f;
    text-decoration: none;
    cursor: pointer;
}

.modal-caption {
    margin: auto;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 50px;
    font-size: 18px;
} 