html {
    scroll-behavior: smooth; /* 平滑滚动效果 */
}


/* 红安页面专用样式 */

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px; /* 增加间距 */
}

.site-title {
    flex-shrink: 0; /* 防止标题被压缩 */
}

.main-nav {
    flex-grow: 1; /* 允许导航栏填充剩余空间 */
    display: flex;
    justify-content: flex-end;
}

.logo .site-title {
    color: #fff;
    font-size: 18px; /* 缩小字体 */
    font-weight: bold;
    margin: 0;
    white-space: nowrap; /* 防止标题换行 */
}

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

.main-nav a {
    color: #fff;
    font-size: 16px;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* 英雄横幅区域 */
.hero-banner {
    position: relative;
    height: 80vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(196, 30, 58, 0.8), rgba(139, 0, 0, 0.6));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #fff;
}

.hero-title {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #ffd700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin: 40px 0;
}

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

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.stat-label {
    font-size: 1.2rem;
    margin-top: 5px;
}

.hero-description {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* 通用区域样式 */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    color: #c41e3a;
    margin-bottom: 15px;
    font-weight: bold;
}

.title-decoration {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #c41e3a, #ffd700);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-top: 10px;
}

/* 概况区域 */
.overview-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.overview-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.overview-text h3 {
    font-size: 1.8rem;
    color: #c41e3a;
    margin-bottom: 20px;
}

.overview-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #555;
}

.overview-highlights {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #c41e3a;
    font-weight: bold;
}

.overview-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* 将军区域 */
.generals-section {
    padding: 80px 0;
    background: #fff;
}

.generals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.general-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.general-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.general-image {
    height: 250px;
    overflow: hidden;
}

.general-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #f8f9fa;
    transition: transform 0.3s ease;
}

.general-card:hover .general-image img {
    transform: scale(1.1);
}

.general-info {
    padding: 25px;
    text-align: center;
}

.general-info h3 {
    font-size: 1.5rem;
    color: #c41e3a;
    margin-bottom: 10px;
}

.general-title {
    color: #ffd700;
    font-weight: bold;
    margin-bottom: 10px;
}

.general-desc {
    color: #666;
    line-height: 1.6;
}

.generals-more {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #c41e3a, #8b0000);
    color: #fff;
    border-radius: 15px;
    font-size: 1.1rem;
}

.more-generals-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 30px;
    background: #ffd700;
    color: #c41e3a;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.more-generals-btn:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.general-card {
    cursor: pointer;
}

/* 历史时间线 */
.history-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.history-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.history-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #c41e3a, #ffd700);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-date {
    flex: 0 0 120px;
    background: #c41e3a;
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    text-align: center;
    font-weight: bold;
    position: relative;
    z-index: 2;
}

.timeline-content {
    flex: 1;
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin: 0 30px;
}

.timeline-content h3 {
    color: #c41e3a;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.timeline-content p {
    color: #666;
    line-height: 1.6;
}

/* 文化传承区域 */
.culture-section {
    padding: 80px 0;
    background: #fff;
}

.culture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.culture-item {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.culture-item:hover {
    background: linear-gradient(135deg, #c41e3a, #8b0000);
    color: #fff;
    transform: translateY(-10px);
}

.culture-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.culture-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #c41e3a;
}

.culture-item:hover h3 {
    color: #ffd700;
}

.culture-item p {
    line-height: 1.6;
    color: #666;
}

.culture-item:hover p {
    color: #fff;
}

/* 页脚样式 */
.footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: #fff;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    margin-bottom: 30px;
}

.footer-logo h3 {
    color: #ffd700;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

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

.link-group h4 {
    color: #ffd700;
    margin-bottom: 15px;
}

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

.link-group a {
    color: #bdc3c7;
    transition: color 0.3s ease;
}

.link-group a:hover {
    color: #ffd700;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    text-align: center;
    color: #95a5a6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .overview-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .generals-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        flex-direction: column !important;
        text-align: center;
    }

    .timeline-content {
        margin: 20px 0 0 0;
    }

    .culture-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
