/* ===== 全局重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}
a { color: #2b6cb0; text-decoration: none; }
a:hover { color: #1a4971; text-decoration: underline; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* ===== 头部 ===== */
.site-header {
    background: #fff;
    border-bottom: 2px solid #2b6cb0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}
.site-logo {
    font-size: 22px;
    font-weight: bold;
    color: #2b6cb0;
}
.site-logo:hover { text-decoration: none; }
.site-nav a {
    margin-left: 25px;
    font-size: 15px;
    color: #555;
}
.site-nav a:hover { color: #2b6cb0; }

/* ===== 主内容 ===== */
main.container { padding: 20px 15px; min-height: calc(100vh - 200px); }

/* ===== 搜索区 ===== */
.search-section {
    background: #fff;
    border-radius: 6px;
    padding: 40px 30px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.search-section h1 {
    font-size: 28px;
    color: #2b6cb0;
    margin-bottom: 10px;
}
.search-desc {
    color: #888;
    margin-bottom: 25px;
    font-size: 15px;
}
.search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}
.search-form input {
    flex: 1;
    height: 44px;
    padding: 0 15px;
    border: 2px solid #ddd;
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 15px;
    outline: none;
}
.search-form input:focus { border-color: #2b6cb0; }
.search-form button {
    width: 100px;
    height: 44px;
    background: #2b6cb0;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    font-size: 16px;
    cursor: pointer;
}
.search-form button:hover { background: #1a4971; }

/* ===== 统计栏 ===== */
.stats-bar {
    display: flex;
    background: #fff;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.stat-item {
    flex: 1;
    text-align: center;
    border-right: 1px solid #eee;
}
.stat-item:last-child { border-right: none; }
.stat-num {
    display: block;
    font-size: 26px;
    font-weight: bold;
    color: #2b6cb0;
}
.stat-label {
    display: block;
    color: #888;
    font-size: 13px;
    margin-top: 5px;
}

/* ===== 通用区块 ===== */
.section {
    background: #fff;
    border-radius: 6px;
    padding: 20px 25px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.section-title {
    font-size: 18px;
    color: #333;
    border-left: 4px solid #2b6cb0;
    padding-left: 12px;
    margin-bottom: 18px;
}

/* ===== 城市网格 ===== */
.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}
.city-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    text-align: center;
    transition: all 0.2s;
}
.city-card:hover {
    border-color: #2b6cb0;
    box-shadow: 0 2px 8px rgba(43,108,176,0.15);
    text-decoration: none;
}
.city-code {
    font-size: 20px;
    font-weight: bold;
    color: #2b6cb0;
}
.city-name {
    font-size: 14px;
    color: #333;
    margin-top: 5px;
}
.city-prov {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

/* ===== 地区列表 ===== */
.region-list { border-top: 1px solid #eee; }
.region-row {
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}
.region-name {
    width: 70px;
    flex-shrink: 0;
    font-weight: bold;
    color: #2b6cb0;
    padding-top: 2px;
}
.region-cities { flex: 1; }
.region-cities a {
    display: inline-block;
    margin: 2px 12px 2px 0;
    color: #555;
}
.region-cities a:hover { color: #2b6cb0; }

/* ===== 区号云 ===== */
.code-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.code-tag {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 16px;
    background: #f0f5fa;
    border: 1px solid #d6e4f0;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    color: #2b6cb0;
    transition: all 0.2s;
}
.code-tag:hover {
    background: #2b6cb0;
    color: #fff;
    text-decoration: none;
}
.code-tag small {
    font-size: 11px;
    font-weight: normal;
    color: #888;
    margin-top: 2px;
}
.code-tag:hover small { color: #ddd; }

/* ===== 面包屑 ===== */
.breadcrumb {
    font-size: 13px;
    color: #888;
    margin-bottom: 15px;
    padding: 10px 0;
}
.breadcrumb a { color: #666; }
.breadcrumb a:hover { color: #2b6cb0; }

/* ===== 信息表格 ===== */
.area-info-table table,
.addr-info-table table,
.areacode-info-table table {
    width: 100%;
    border-collapse: collapse;
}
.area-info-table th,
.addr-info-table th,
.areacode-info-table th {
    width: 120px;
    background: #f7f9fc;
    padding: 12px 15px;
    text-align: right;
    font-weight: normal;
    color: #666;
    border: 1px solid #e5e5e5;
}
.area-info-table td,
.addr-info-table td,
.areacode-info-table td {
    padding: 12px 15px;
    border: 1px solid #e5e5e5;
}
.code-link {
    font-size: 20px;
    font-weight: bold;
    color: #2b6cb0;
}
.code-big {
    font-size: 32px;
    font-weight: bold;
    color: #2b6cb0;
}

/* ===== 地址表格 ===== */
.addr-table {
    width: 100%;
    border-collapse: collapse;
}
.addr-table th {
    background: #f7f9fc;
    padding: 10px 12px;
    text-align: left;
    border: 1px solid #e5e5e5;
    font-weight: bold;
    color: #555;
}
.addr-table td {
    padding: 10px 12px;
    border: 1px solid #e5e5e5;
}
.addr-table tr:hover td { background: #f9fbfd; }

/* ===== 分页 ===== */
.pagination-wrap { margin-top: 20px; text-align: center; }
.pagination { display: inline-flex; align-items: center; gap: 5px; }
.pagination a, .pagination span {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    color: #555;
}
.pagination a:hover {
    border-color: #2b6cb0;
    color: #2b6cb0;
    text-decoration: none;
}
.pagination .current {
    background: #2b6cb0;
    color: #fff;
    border-color: #2b6cb0;
}

/* ===== 搜索结果列表 ===== */
.entry-list { margin-top: 15px; }
.entry {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    margin-bottom: 10px;
    transition: all 0.2s;
}
.entry:hover {
    border-color: #2b6cb0;
    box-shadow: 0 2px 6px rgba(43,108,176,0.1);
}
.entry .addr {
    display: flex;
    align-items: center;
    padding: 12px 15px;
}
.entry .addr:hover { text-decoration: none; }
.entry .zip {
    width: 80px;
    font-size: 18px;
    font-weight: bold;
    color: #2b6cb0;
}
.entry .loc {
    width: 150px;
    color: #555;
}
.entry .txt {
    flex: 1;
    color: #888;
}

/* ===== 地区网格 ===== */
.area-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}
.area-card {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    transition: all 0.2s;
}
.area-card:hover {
    border-color: #2b6cb0;
    text-decoration: none;
}
.area-code {
    font-size: 16px;
    font-weight: bold;
    color: #2b6cb0;
    margin-right: 10px;
}
.area-full { color: #555; font-size: 13px; }

/* ===== 地址网格 ===== */
.addr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}
.addr-item {
    display: flex;
    flex-direction: column;
    padding: 12px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    transition: all 0.2s;
}
.addr-item:hover {
    border-color: #2b6cb0;
    text-decoration: none;
}
.addr-code {
    font-size: 16px;
    font-weight: bold;
    color: #2b6cb0;
}
.addr-name {
    font-size: 13px;
    color: #555;
    margin-top: 5px;
}

/* ===== 介绍文字 ===== */
.intro-text p {
    color: #666;
    margin-bottom: 10px;
    line-height: 1.8;
}

/* ===== 空状态 ===== */
.empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}
.empty h1 { font-size: 48px; margin-bottom: 15px; }

/* ===== 底部 ===== */
.site-footer {
    background: #fff;
    border-top: 1px solid #e5e5e5;
    padding: 25px 0;
    text-align: center;
    color: #888;
    font-size: 13px;
}
.site-footer p { margin-bottom: 8px; }
.footer-links a { color: #666; margin: 0 5px; }
.footer-links a:hover { color: #2b6cb0; }

/* ===== 省份详情 ===== */
.province-detail {
    background: #fff;
    border-radius: 6px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.province-detail h1 {
    font-size: 24px;
    color: #2b6cb0;
    margin-bottom: 10px;
}
.province-desc {
    color: #666;
    font-size: 14px;
}

/* ===== 城市表格 ===== */
.city-table {
    width: 100%;
    border-collapse: collapse;
}
.city-table th {
    background: #f7f9fc;
    padding: 12px;
    text-align: left;
    border: 1px solid #e5e5e5;
    font-weight: bold;
    color: #555;
}
.city-table td {
    padding: 12px;
    border: 1px solid #e5e5e5;
}
.city-table tr:hover td { background: #f9fbfd; }

/* ===== 地区列表表格（参考目标站） ===== */
.region-table {
    width: 100%;
    border-collapse: collapse;
}
.region-table th {
    background: #f0f5fa;
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #d6e4f0;
    font-weight: bold;
    color: #2b6cb0;
}
.region-table td {
    padding: 10px 15px;
    border: 1px solid #e5e5e5;
    color: #555;
}
.region-table tr:hover td { background: #f9fbfd; }
.region-table td:first-child { width: 80px; }
.region-table td:last-child { width: 180px; color: #888; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .search-section h1 { font-size: 22px; }
    .search-form { flex-direction: column; }
    .search-form input { border-right: 2px solid #ddd; border-bottom: none; border-radius: 4px 4px 0 0; }
    .search-form button { width: 100%; border-radius: 0 0 4px 4px; }
    .stats-bar { flex-wrap: wrap; }
    .stat-item { width: 50%; border-right: none; border-bottom: 1px solid #eee; padding: 10px 0; }
    .city-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
    .entry .addr { flex-direction: column; align-items: flex-start; }
    .entry .zip, .entry .loc { width: auto; margin-bottom: 5px; }
}

/* ===== 相关查询区块 ===== */
.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 10px;
}
.related-item {
    display: flex;
    flex-direction: column;
    padding: 16px 20px;
    border-radius: 8px;
    border: 1px solid #e0e8f0;
    transition: all 0.2s;
    color: #333;
}
.related-item:hover {
    border-color: #2b6cb0;
    box-shadow: 0 4px 12px rgba(43, 108, 176, 0.15);
    transform: translateY(-1px);
    text-decoration: none;
}
.related-item.yzbm {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
}
.related-item.sfz {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
}
.related-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
    font-weight: 500;
}
.related-text {
    font-size: 15px;
    font-weight: 600;
    color: #2b6cb0;
}
.related-item.sfz .related-text {
    color: #16a34a;
}
.related-item:hover .related-text {
    color: #1a4971;
}
.related-item.sfz:hover .related-text {
    color: #15803d;
}

@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
    .related-item {
        padding: 12px 16px;
    }
}
