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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 
                 'Microsoft YaHei', sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* 页面头部 */
.header {
    background: #02A29B;
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    font-size: 1.1em;
    opacity: 0.9;
    font-weight: 300;
}

/* 统计概览卡片 */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 30px;
    background: #f8f9fa;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    font-size: 3em;
    opacity: 0.8;
}

.stat-content h3 {
    font-size: 2.2em;
    color: #02A29B;
    font-weight: 700;
}

.stat-content p {
    color: #666;
    font-size: 0.95em;
}

/* 图表区域 */
.charts-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    padding: 30px;
}

.chart-container {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.chart-container h2 {
    font-size: 1.4em;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
}

.chart-container canvas {
    max-height: 300px;
}

/* 搜索筛选区 */
.filter-section {
    padding: 30px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    background: white;
}

.search-box {
    flex: 2;
    min-width: 300px;
    display: flex;
    gap: 10px;
}

.search-box input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 1em;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    border-color: #02A29B;
}

.search-box button {
    padding: 12px 30px;
    background: #02A29B;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.search-box button:hover {
    transform: scale(1.05);
}

.filter-box {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-box label {
    font-weight: 600;
    color: #333;
}

.filter-box select {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 1em;
    outline: none;
    cursor: pointer;
    background: white;
    transition: border-color 0.3s ease;
}

.filter-box select:focus {
    border-color: #02A29B;
}

/* 门店列表区 */
.stores-section {
    padding: 30px;
    background: #f8f9fa;
}

.stores-section h2 {
    font-size: 1.6em;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
}

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

.store-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.store-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.store-card h3 {
    font-size: 1.3em;
    color: #02A29B;
    margin-bottom: 15px;
    font-weight: 600;
}

.store-card .district {
    display: inline-block;
    background: #02A29B;
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.85em;
    margin-bottom: 10px;
    font-weight: 500;
}

.store-card .address {
    color: #666;
    margin: 10px 0;
    display: flex;
    align-items: start;
    gap: 8px;
}

.store-card .address::before {
    content: "📍";
    font-size: 1.1em;
}

.store-card .phone {
    color: #666;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.store-card .phone::before {
    content: "📞";
    font-size: 1.1em;
}

.store-card .services {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-tag {
    background: #f0f0f0;
    color: #555;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85em;
}

/* 页脚 */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
}

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

    .header h1 {
        font-size: 1.8em;
    }

    .subtitle {
        font-size: 0.95em;
    }

    .stats-overview {
        grid-template-columns: 1fr;
    }

    .charts-section {
        grid-template-columns: 1fr;
    }

    .filter-section {
        flex-direction: column;
    }

    .search-box,
    .filter-box {
        min-width: 100%;
    }

    .stores-list {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 480px) {
    .header {
        padding: 30px 20px;
    }

    .header h1 {
        font-size: 1.5em;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-icon {
        font-size: 2.5em;
    }

    .stat-content h3 {
        font-size: 1.8em;
    }

    .charts-section,
    .map-section,
    .stores-section {
        padding: 20px;
    }
}

