/* ============================================================
   city.4435.cn 全国城市分布表 - 2026-10-04 美化版
   ============================================================ */

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

body {
    font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    background: #f5f6f8;
    color: #333;
    line-height: 1.6;
    padding: 0 10px;
}

a { text-decoration: none; }

/* ---------- 热门搜索词 ---------- */
.hotci {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 18px 10px;
    margin: 15px auto 5px;
    max-width: 1200px;
}

.hotci a {
    color: #1a6dd6;
    font-size: 14px;
    background: #fff;
    border: 1px solid #e3e6eb;
    border-radius: 30px;
    padding: 4px 14px;
    line-height: 22px;
    white-space: nowrap;
    transition: all .25s ease;
}

.hotci a:hover {
    color: #fff;
    background: #e02020;
    border-color: #e02020;
    box-shadow: 0 2px 8px rgba(224, 32, 32, .35);
}

/* 强调按钮（免费网站建设） */
.hotci a.hot-strong {
    color: #fff;
    background: linear-gradient(135deg, #ff6a3d, #e02020);
    border: none;
    font-weight: 600;
}

.hotci a.hot-strong:hover {
    opacity: .9;
    filter: brightness(1.05);
}

/* ---------- 页面主标题 ---------- */
.page-head {
    text-align: center;
    margin: 10px auto 25px;
    padding: 0 10px;
}

.page-head h1 {
    font-size: clamp(20px, 4.5vw, 32px);
    font-weight: 700;
    line-height: 1.4;
    color: #e02020;
    letter-spacing: 1px;
}

.page-head h1::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    margin: 10px auto 0;
    border-radius: 3px;
    background: linear-gradient(90deg, #ff6a3d, #e02020);
}

.page-sub {
    margin-top: 10px;
    font-size: 14px;
    color: #8a919c;
}

/* ---------- 省份卡片容器：桌面双列瀑布流 ---------- */
.city-container {
    max-width: 1200px;
    margin: 0 auto 10px;
    padding: 0 5px;
}

@media (min-width: 992px) {
    .city-container {
        column-count: 2;
        column-gap: 16px;
    }
}

/* ---------- 省份卡片 ---------- */
.province {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eceef2;
    margin: 0 0 16px;
    padding: 14px 14px 12px;
    box-shadow: 0 2px 8px rgba(30, 40, 60, .04);
    break-inside: avoid;
    transition: box-shadow .25s ease, border-color .25s ease;
}

.province:hover {
    border-color: #f3c1bd;
    box-shadow: 0 6px 18px rgba(30, 40, 60, .08);
}

/* 省份标题：浅渐变底条 + 红色左边框 */
.province-name {
    margin-bottom: 12px;
    padding: 7px 12px;
    background: linear-gradient(90deg, #fdf3f2, #f6f8fc);
    border-left: 4px solid #e02020;
    border-radius: 6px;
}

.province-name a {
    display: inline-flex;
    align-items: center;
    font-size: 17px;
    font-weight: 700;
    color: #22252a;
}

.province-name a:hover { color: #e02020; }

/* 图标：红底白字小方块 */
.p-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-right: 8px;
    border-radius: 5px;
    background: #e02020;
    color: #fff;
    font-size: 12px;
}

/* ---------- 市级行：分组条样式 ---------- */
.city-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    padding: 7px 10px;
    margin-bottom: 6px;
    background: #f8f9fc;
    border-radius: 6px;
    border-left: 3px solid #dfe5f0;
    transition: background .2s ease, border-color .2s ease;
}

.city-row:hover {
    background: #fdf0ef;
    border-left-color: #e02020;
}

/* 城市名：定宽蓝色标签，区县列对齐 */
.city-name {
    flex: 0 0 auto;
    min-width: 68px;
    text-align: center;
    margin-right: 10px;
    padding: 1px 8px;
    border-radius: 4px;
    background: #eaf2fd;
    font-size: 14px;
    font-weight: 600;
    color: #1a6dd6;
    transition: all .2s ease;
}

.city-name:hover {
    background: #1a6dd6;
    color: #fff;
}

.district {
    font-size: 13px;
    color: #67707d;
    margin: 1px 9px 1px 0;
    padding: 1px 5px;
    border-radius: 4px;
    white-space: nowrap;
    transition: all .2s ease;
}

.district:hover {
    color: #fff;
    background: #e02020;
}

/* 省份无下级市时的空态 */
.province-body:empty::after {
    content: "数据整理中…";
    font-size: 13px;
    color: #aab1bb;
}

/* ---------- 页脚 ---------- */
.copyright {
    text-align: center;
    padding: 26px 10px 60px;
    max-width: 1200px;
    margin: 5px auto 0;
}

.foot-links {
    font-size: 14px;
}

.foot-links a {
    color: #1a6dd6;
    margin: 0 6px;
    transition: color .2s ease;
}

.foot-links a:hover { color: #e02020; }

.foot-links span { color: #d5d9e0; }

.foot-note {
    margin-top: 8px;
    font-size: 12px;
    color: #9aa1ab;
}

/* ---------- 返回顶部 ---------- */
.back-top {
    position: fixed;
    right: 18px;
    bottom: 30px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e3e6eb;
    color: #666;
    font-size: 18px;
    box-shadow: 0 3px 10px rgba(30, 40, 60, .12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .3s ease;
    z-index: 99;
}

.back-top-show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-top:hover {
    background: #e02020;
    border-color: #e02020;
    color: #fff;
}

/* ---------- 移动端（<768px） ---------- */
@media (max-width: 767px) {
    body { padding: 0 6px; }

    .hotci { gap: 6px; padding: 14px 4px; }
    .hotci a { font-size: 12px; padding: 3px 10px; }

    .province { padding: 12px 10px 10px; margin-bottom: 12px; }
    .province-name { padding: 6px 10px; }
    .province-name a { font-size: 16px; }

    .city-row { padding: 5px 8px; margin-bottom: 5px; }
    .city-name { min-width: 56px; font-size: 13px; margin-right: 8px; }
    .district { font-size: 12px; margin: 1px 6px 1px 0; padding: 1px 3px; }

    .copyright { padding-bottom: 80px; }
    .back-top { right: 12px; bottom: 20px; width: 36px; height: 36px; line-height: 36px; }
}
