/* 服务区域页面样式文件 */

/* 统计信息卡片 */
.service-area-stats {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.service-area-stats p {
    font-size: 18px;
    color: #666;
    margin: 0;
}

.service-area-stats strong {
    color: #e74c3c;
    font-size: 28px;
    font-weight: bold;
}

/* 省份筛选导航 */
.province-filter {
    margin-bottom: 30px;
    text-align: center;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.province-filter p {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    font-weight: bold;
}

.province-filter .filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.province-filter a {
    padding: 10px 20px;
    background: #e74c3c;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-block;
}

.province-filter a:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

/* 城市搜索框 */
.city-search-container {
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.city-search-container .search-label {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    font-weight: bold;
    display: block;
}

.city-search-box {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.city-search-input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    font-size: 14px;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.city-search-input:focus {
    outline: none;
    border-color: #e74c3c;
}

.city-search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 18px;
    pointer-events: none;
}

.city-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.city-search-results.active {
    display: block;
}

.city-search-results .result-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.city-search-results .result-item:last-child {
    border-bottom: none;
}

.city-search-results .result-item:hover {
    background: #f8f9fa;
}

.city-search-results .result-item.highlight {
    background: #fff3f3;
    color: #e74c3c;
    font-weight: bold;
}

.city-search-results .no-results {
    padding: 20px;
    text-align: center;
    color: #999;
}

/* 省份section */
.province-section {
    margin-bottom: 40px;
    scroll-margin-top: 20px;
}

.province-section.hidden {
    display: none;
}

.province-section h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e74c3c;
}

.province-section .cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* 城市卡片 */
.city-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.city-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.city-card.hidden {
    display: none;
}

.city-card h3 {
    font-size: 20px;
    color: #e74c3c;
    margin-bottom: 10px;
}

.city-card h3 a {
    color: #e74c3c;
    text-decoration: none;
}

.city-card .city-districts {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.city-card .city-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.city-card .city-link {
    display: inline-block;
    padding: 8px 20px;
    background: #e74c3c;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.3s;
}

.city-card .city-link:hover {
    background: #c0392b;
}

/* 服务说明区域 */
.service-info {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-top: 40px;
}

.service-info h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

.service-info p {
    line-height: 1.8;
    color: #666;
    margin-bottom: 15px;
}

.service-info ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.service-info .internal-links {
    margin-top: 25px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
}

.service-info .internal-links p {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    font-weight: bold;
}

.service-info .internal-links .links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.service-info .internal-links a {
    display: inline-block;
    padding: 10px 20px;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.3s;
}

.service-info .internal-links a.link-service {
    background: #3498db;
}

.service-info .internal-links a.link-service:hover {
    background: #2980b9;
}

.service-info .internal-links a.link-contact {
    background: #e74c3c;
    font-weight: bold;
}

.service-info .internal-links a.link-contact:hover {
    background: #c0392b;
}

/* 地图容器 */
.map-container {
    margin: 40px 0;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.map-container h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.map-wrapper {
    width: 100%;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-placeholder {
    width: 100%;
    height: 500px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* 移动端样式 */
@media (max-width: 768px) {
    .service-area-stats {
        margin: 15px 0;
        padding: 15px;
    }
    
    .service-area-stats strong {
        font-size: 20px;
    }
    
    .province-filter {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .city-search-container {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .province-section .cities-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .city-card {
        padding: 15px;
        margin-bottom: 10px;
    }
    
    .service-info {
        padding: 20px;
        margin-top: 20px;
    }
    
    .service-info .internal-links .links-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .service-info .internal-links a {
        width: 100%;
        text-align: center;
    }
    
    .map-wrapper,
    .map-placeholder {
        height: 400px;
    }
}

