/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fffe;
}

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

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #4a90e2 0%, #2e7d32 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    color: white;
}

.logo-img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border-radius: 50%;
    background: white;
    padding: 5px;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
}

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

.nav-list a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 10px 15px;
    border-radius: 20px;
}

.nav-list a:hover {
    background: rgba(255,255,255,0.2);
    color: #e8f5e8;
}

/* Banner地图区域 */
.banner {
    margin-top: 70px;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.map-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.map {
    width: 100%;
    height: 100%;
}

.banner-overlay {
    position: absolute;
    top: 50%;
    left: 50px;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.95);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    max-width: 400px;
}

.banner-title {
    font-size: 36px;
    color: #2e7d32;
    margin-bottom: 15px;
    font-weight: bold;
}

.banner-subtitle {
    font-size: 18px;
    color: #4a90e2;
    line-height: 1.5;
}

/* 通用区块样式 */
.section-title {
    text-align: center;
    font-size: 32px;
    color: #2e7d32;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #4a90e2, #2e7d32);
    border-radius: 2px;
}

/* 介绍区域 */
.introduction {
    padding: 80px 0;
    background: white;
}

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

.intro-card {
    text-align: center;
    padding: 40px 30px;
    background: linear-gradient(135deg, #f0f8ff 0%, #e8f5e8 100%);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.intro-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.intro-card h3 {
    font-size: 24px;
    color: #2e7d32;
    margin-bottom: 15px;
}

.intro-card p {
    color: #666;
    line-height: 1.6;
}

/* 分布图表区域 */
.distribution {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0f8ff 0%, #e8f5e8 100%);
}

.chart-container {
    width: 100%;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

#distributionChart {
    width: 100% ;
    height: 300px ;
}

/* 公园列表区域 */
.parks {
    padding: 80px 0;
    background: white;
}

.filter-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
    padding: 30px;
    background: linear-gradient(135deg, #f0f8ff 0%, #e8f5e8 100%);
    border-radius: 15px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-weight: 500;
    color: #2e7d32;
}

.filter-select {
    padding: 10px 15px;
    border: 2px solid #4a90e2;
    border-radius: 25px;
    background: white;
    color: #333;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.filter-select:focus {
    border-color: #2e7d32;
}

.search-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #4a90e2 0%, #2e7d32 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.4);
}

.parks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

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

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

.park-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #4a90e2 0%, #2e7d32 100%);
}

.park-content {
    padding: 25px;
}

.park-name {
    font-size: 20px;
    font-weight: bold;
    color: #2e7d32;
    margin-bottom: 10px;
}

.park-location {
    color: #4a90e2;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.park-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.park-info-item {
    font-size: 14px;
    color: #666;
}

.park-info-label {
    font-weight: 500;
    color: #2e7d32;
}

.park-fee {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 15px;
}

.park-fee.free {
    background: #e8f5e8;
    color: #2e7d32;
}

.park-fee.paid {
    background: #fff3e0;
    color: #f57c00;
}

.park-description {
    color: #666;
    line-height: 1.5;
    font-size: 14px;
}

/* 页脚样式 */
.footer {
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    color: white;
    padding: 60px 0 20px;
}

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

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #e8f5e8;
}

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

.footer-logo-img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    border-radius: 50%;
    background: white;
    padding: 3px;
}

.footer-logo-text {
    font-size: 20px;
    font-weight: bold;
}

.footer-desc {
    color: #c8e6c9;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #c8e6c9;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #4caf50;
    color: #c8e6c9;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
        padding: 10px 20px;
    }
    
    .nav-list {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-list a {
        padding: 8px 12px;
        font-size: 14px;
        border-radius: 15px;
        white-space: nowrap;
        min-width: auto;
        text-align: center;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .banner-overlay {
        position: static;
        transform: none;
        margin: 20px;
        max-width: none;
    }
    
    .banner-title {
        font-size: 28px;
    }
    
    .filter-section {
        flex-direction: column;
        gap: 20px;
    }
    
    .parks-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .header .container {
        padding: 8px 15px;
    }
    
    .nav-list {
        gap: 6px;
    }
    
    .nav-list a {
        padding: 6px 10px;
        font-size: 13px;
        border-radius: 12px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .banner-title {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .intro-grid {
        grid-template-columns: 1fr;
    }
}