* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* 顶部标题 - 深蓝色 */
header {
    background-color: #0A2463;
    color: white;
    padding: 15px 20px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
}

/* 主要内容区 */
.main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* 左侧导航栏 - 蓝灰色 */
nav {
    width: 200px;
    background-color: #587a99;
    border-right: 1px solid #546E7A;
    padding: 20px 0;
    overflow-y: auto;
}

nav ul {
    list-style: none;
}

nav ul li {
    margin-bottom: 0;
    position: relative;
}

nav ul li a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: white;
    font-size: larger;
    font-weight:bold;
    transition: all 0.2s;
}

/* 下拉菜单样式 */
nav ul li.dropdown > a::after {
    content: '▼';
    float: right;
    font-size: 15px;
    margin-left: 5px;
    transition: transform 0.2s;
}

/* 激活状态下的下拉箭头旋转 */
nav ul li.dropdown.active > a::after {
    transform: rotate(180deg);
}

/* 子菜单默认隐藏 */
nav ul li.dropdown .submenu {
    display: none;
    background-color: #2f4b80;
    margin-top: 0;
    max-height: 300px; /* 设置最大高度 */
    overflow-y: auto; /* 允许垂直滚动 */
    overflow-x: hidden; /* 隐藏水平滚动条 */
}

/* 隐藏滚动条但保留滚动功能 */
nav ul li.dropdown .submenu::-webkit-scrollbar {
    display: none; /* Chrome, Safari 和 Opera */
}

nav ul li.dropdown .submenu {
    -ms-overflow-style: none; /* IE 和 Edge */
    scrollbar-width: none; /* Firefox */
}

/* 子菜单链接样式 */
nav ul li.dropdown .submenu li a {
    font-size: medium;
    padding-left: 35px; /* 增加缩进 */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9); /* 颜色稍浅 */
}

/* 子菜单链接悬停样式 */
nav ul li.dropdown .submenu li a:hover {
    background-color: #0A2463;
    color: white; /* 悬停时颜色变深 */
}

/* 悬停时 - 深蓝色并加粗 */
nav ul li a:hover {
    background-color: #0A2463;
    font-weight: bold;
}

/* 右侧内容区 */
.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* 主布局容器 */
.main-layout {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

/* 左侧内容区 */
.left-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 右侧内容区 */
.right-content {
    flex: 1;
}

/* 英雄区 */
.hero {
    margin-bottom: 0;
    width: 100%;
}

.hero-text {
    width: 100%;
    padding-right: 0;
}

.hero-text h1 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.hero-text h1 span {
    color: #0A2463;
}

.hero-text p {
    font-size: 20px;
    color: #666;
    margin-bottom: 15px;
}

/* 信息卡片 - 修改后的样式 */
.hero-info-card {
    width: 100%;
    background-color: #F7F8FA;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #E5E7EB;
}

.card-content {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 100%;
}

.card-image {
    flex: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.card-image img {
    max-width: 100%;
    height: auto;
    max-height: calc(100vh - 200px);
    object-fit: contain;
}

.card-text {
    flex: 1;
    min-width: 0;
}

.hero-info-card h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #0A2463;
    text-align: left;
}

.hero-info-card p {
    font-size: 20px;
    color: #666;
    line-height: 1.5;
    text-align: left;
}

/* 统计数据 */
.stats {
    margin-top: 50px;
    margin-bottom: 20px;
    margin-left: 50px;
}

/* 六边形蜂巢布局 */
.hex-grid {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0; /* 设置为0，通过负margin控制重叠 */
}

.hex-row {
    display: flex;
    gap: 12px; /* 放大1.2倍 */
}

/* 第二行需要偏移以创建蜂巢效果并添加重叠 */
.hex-row:nth-child(2) {
    transform: translateX(78px) translateY(-30px); /* 放大1.2倍 */
}

/* 第三行与第一行对齐，保持蜂巢效果 */
.hex-row:nth-child(3) {
    transform: translateY(-60px); /* 放大1.2倍 */
}

/* 空白六边形样式 */
.hexagon.empty {
    background-color: #d3d0c9;
    opacity: 0.6;
}

/* 六边形内图片样式 */
.hexagon img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.hexagon {
    width: 144px; /* 放大1.2倍 */
    height: 168px; /* 放大1.2倍 */
    background-color: #fff4da;
    position: relative;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 12px; /* 放大1.2倍 */
    box-sizing: border-box;
}

.hex-number {
    font-size: 24px; /* 放大1.2倍 */
    font-weight: bold;
    color: #0A2463;
    margin-bottom: 6px; /* 放大1.2倍 */
}

.hex-label {
    color: #666;
    font-size: 16.8px; /* 放大1.2倍 */
    text-align: center;
    line-height: 1.2;
}

/* 原始统计样式保持不变，以便其他地方使用 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.stat-item {
    background-color: #F7F8FA;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.stat-number {
    font-size: 20px;
    font-weight: bold;
    color: #0A2463;
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-size: 14px;
}

/* 功能模块 */
.features {
    margin-bottom: 20px;
}

.section-title {
    margin-bottom: 15px;
}

.section-title h2 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
}

.section-title p {
    color: #666;
    font-size: 14px;
}

/* 页脚 - 深蓝色 */
footer {
    background-color: #0A2463;
    color: white;
    padding: 15px 20px;
    font-size: 14px;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        height: auto;
    }

    .main-content {
        flex-direction: column;
    }

    nav {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #546E7A;
    }

    nav ul {
        display: flex;
        flex-wrap: wrap;
    }

    nav ul li {
        margin: 5px;
    }

    nav ul li a {
        padding: 8px 12px;
    }

    .hero {
        display: block;
    }

    .hero-text {
        width: 100%;
        padding-right: 0;
    }

    .hero-info-card {
        width: 100%;
    }

    /* 响应式主布局 */
    .main-layout {
        flex-direction: column;
    }

    .right-content {
        width: 100%;
    }

    .card-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-info-card h2 {
        text-align: center;
        font-size: 20px; /* 小屏幕上稍微缩小标题字体 */
    }
    
    .hero-info-card p {
        text-align: center;
        font-size: 14px; /* 小屏幕上稍微缩小段落字体 */
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    /* 六边形布局的响应式设计 */
    .hex-grid {
        gap: 20px;
    }
    
    .hex-row {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .hex-row:nth-child(2) {
        transform: translateX(0) translateY(0); /* 小屏幕上取消重叠效果 */
    }
    
    .hex-row:nth-child(3) {
        transform: translateY(0); /* 小屏幕上取消第三行的重叠效果 */
    }
    
    .hexagon {
        width: 120px; /* 放大1.2倍 */
        height: 138px; /* 放大1.2倍 */
        max-width: 100%;
    }
    
    .hex-number {
        font-size: 21.6px; /* 放大1.2倍 */
    }
    
    .hex-label {
        font-size: 14.4px; /* 放大1.2倍 */
    }
}

/* 新闻模块样式 */
.news {
    background-color: white;
    padding: 40px 0;
    margin-bottom: 30px;
    border-radius: 8px;
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
}

.news-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2px;
}

.news-card {
    flex: 0 1 calc(33.333% - 20px);
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid #0A2463;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-date {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.news-content h3 {
    color: #0A2463;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.news-content p {
    color: #333;
    font-size: 0.95em;
    line-height: 1.6;
}

/* 模块列表样式 */
.module-list {
    margin-top: 20px;
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
}

.module-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    background-color: white;
    border-radius: 6px;
    padding: 10px 15px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border-left: 3px solid #0A2463;
}

.module-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background-color: #f0f7ff;
}

.module-icon {
    width: 30px;
    height: 30px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.module-icon img {
    max-width: 100%;
    max-height: 100%;
}

.module-name {
    color: #0A2463;
    font-weight: 500;
    font-size: 0.95em;
}

/* 数据比较和时间线部分样式 */
.comparison-timeline-section {
    display: flex;
    gap: 30px;
    margin: 40px auto;
    max-width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.comparison-charts {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.chart-container {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
    height: 450px;
    width: 100%;
    position: relative;
}

.chart-container canvas {
    height: calc(100% - 40px);
    width: 100%;
}

/* 为饼图容器设置特殊样式 */
#speciesDistributionChart {
    height: 100%;
    width: 100%;
}

.chart-container h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 18px;
    text-align: center;
}

.chart-container canvas {
    height: calc(100% - 40px) !important;
    width: 100% !important;
}

.timeline {
    width: 350px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.timeline h3 {
    margin-top: 0;
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 18px;
    text-align: center;
}

.timeline-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 30px;
    margin-left: 10px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 5px;
    width: 12px;
    height: 12px;
    background-color: #3498db;
    border-radius: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 13px;
    top: 17px;
    width: 2px;
    height: calc(100% + 15px);
    background-color: #e0e0e0;
}

.timeline-item:last-child::after {
    display: none;
}

.timeline-date {
    font-size: 14px;
    font-weight: 600;
    color: #3498db;
    margin-bottom: 5px;
}

.timeline-content h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #2c3e50;
}

.timeline-content p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* 功能模块样式 */
.features {
    background-color: white;
    padding: 40px 0;
    margin-bottom: 30px;
    border-radius: 8px;
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
}

.features-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.feature-card {
    flex: 0 1 calc(50% - 20px);
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: #f0f7ff;
}

.feature-icon {
    flex: 0 0 80px;
    height: 80px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.feature-icon img {
    max-width: 60%;
    max-height: 60%;
}

.feature-content h3 {
    color: #0A2463;
    margin-bottom: 10px;
    font-size: 1.4em;
}

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

.feature-link {
    display: inline-block;
    color: #0A2463;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.feature-link:hover {
    color: #1a3d7a;
    text-decoration: underline;
}

/* 快速访问模块样式 */
.quick-access {
    background-color: white;
    padding: 40px 0;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.quick-access-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.quick-access-card {
    flex: 0 1 calc(25% - 20px);
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    border: 2px solid #e0e0e0;
}

.quick-access-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: #0A2463;
    color: white;
    border-color: #0A2463;
}

.quick-access-icon {
    width: 60px;
    height: 60px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.quick-access-card:hover .quick-access-icon {
    background-color: #f0f7ff;
}

.quick-access-icon img {
    max-width: 50%;
    max-height: 50%;
}

.quick-access-text {
    font-weight: bold;
    font-size: 1em;
}

/* 引用模块样式 */
.citation-section {
    background-color: #f0f7ff;
    padding: 40px 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-top: 4px solid #0A2463;
}

.citation-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.citation-content blockquote {
    font-style: italic;
    color: #333;
    font-size: 1.2em;
    margin-bottom: 20px;
    line-height: 1.6;
}

.citation-info {
    color: #666;
    font-size: 0.95em;
}

.citation-info a {
    color: #0A2463;
    text-decoration: none;
    transition: color 0.3s ease;
}

.citation-info a:hover {
    color: #1a3d7a;
    text-decoration: underline;
}

/* 响应式设计补充 */
@media (max-width: 768px) {
    .news-grid,
    .features-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .news-card,
    .feature-card {
        flex: 0 1 100%;
        max-width: 100%;
    }
    
    .quick-access-card {
        flex: 0 1 calc(50% - 20px);
    }
}