/* ===== 全局 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    font-size: 14px; line-height: 1.6; color: #333; background: #f5f7fa;
}
a { color: #1a73e8; text-decoration: none; }
a:hover { color: #0d47a1; text-decoration: underline; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* ===== 头部 ===== */
.site-header { background: #fff; border-bottom: 2px solid #1a73e8; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; }
.logo { font-size: 20px; font-weight: bold; color: #1a73e8; }
.logo:hover { text-decoration: none; }
.main-nav a { margin-left: 20px; color: #555; font-size: 14px; }
.main-nav a:hover { color: #1a73e8; }

/* ===== Hero ===== */
.hero-section { text-align: center; padding: 40px 0 30px; background: linear-gradient(135deg, #1a73e8, #4285f4); color: #fff; border-radius: 0 0 12px 12px; margin-bottom: 25px; }
.hero-section h1 { font-size: 32px; margin-bottom: 10px; }
.hero-desc { font-size: 15px; opacity: 0.9; margin-bottom: 24px; }
.search-form { display: flex; max-width: 600px; margin: 0 auto 24px; }
.search-form input { flex: 1; padding: 14px 18px; border: none; border-radius: 6px 0 0 6px; font-size: 15px; outline: none; }
.search-form button { padding: 14px 28px; background: #ff6d00; color: #fff; border: none; border-radius: 0 6px 6px 0; font-size: 15px; cursor: pointer; font-weight: bold; }
.search-form button:hover { background: #e65100; }
.stats-bar { display: flex; justify-content: center; gap: 40px; }
.stat-item { text-align: center; }
.stat-num { display: block; font-size: 24px; font-weight: bold; }
.stat-label { font-size: 13px; opacity: 0.85; }

/* ===== Section ===== */
.section { background: #fff; border-radius: 8px; padding: 24px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.section-title { font-size: 18px; color: #1a73e8; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid #e8f0fe; }

/* ===== 运营商卡片 ===== */
.operator-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.operator-card { display: block; padding: 18px; border-radius: 8px; border: 1px solid #e0e0e0; transition: all 0.2s; }
.operator-card:hover { border-color: #1a73e8; box-shadow: 0 4px 12px rgba(26,115,232,0.15); text-decoration: none; transform: translateY(-2px); }
.operator-card h3 { font-size: 16px; margin-bottom: 12px; color: #333; }
.op-prefixes { display: flex; flex-wrap: wrap; gap: 6px; }
.prefix-tag { display: inline-block; padding: 4px 10px; background: #f1f3f4; border-radius: 4px; font-size: 13px; color: #555; }
.prefix-tag:hover { background: #e8f0fe; color: #1a73e8; text-decoration: none; }
.prefix-more { font-size: 12px; color: #999; padding: 4px 0; }
.prefix-tag.large { padding: 8px 16px; font-size: 15px; font-weight: bold; }
.op-1 { border-left: 4px solid #1a73e8; }
.op-2 { border-left: 4px solid #e53935; }
.op-3 { border-left: 4px solid #43a047; }
.op-4 { border-left: 4px solid #fb8c00; }
.op-5 { border-left: 4px solid #8e24aa; }

/* ===== 省份/城市网格 ===== */
.province-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.province-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: #f8f9fa; border-radius: 6px; border: 1px solid #e8eaed; }
.province-item:hover { background: #e8f0fe; border-color: #1a73e8; text-decoration: none; }
.prov-name { font-size: 14px; color: #333; }
.prov-count { font-size: 12px; color: #999; }
.city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.city-item { display: flex; flex-direction: column; padding: 12px 14px; background: #f8f9fa; border-radius: 6px; border: 1px solid #e8eaed; }
.city-item:hover { background: #e8f0fe; border-color: #1a73e8; text-decoration: none; }
.city-name { font-size: 14px; font-weight: bold; color: #333; margin-bottom: 4px; }
.city-prov { font-size: 12px; color: #888; }

/* ===== 表格 ===== */
.segment-table-wrap { overflow-x: auto; }
.segment-table { width: 100%; border-collapse: collapse; }
.segment-table th { background: #f1f3f4; padding: 12px; text-align: left; border-bottom: 2px solid #e0e0e0; font-weight: bold; color: #555; }
.segment-table td { padding: 10px 12px; border-bottom: 1px solid #f0f0f0; }
.segment-table tr:hover td { background: #f8f9fa; }
.btn-link { color: #1a73e8; }

/* ===== 详情卡片 ===== */
.detail-card { background: #f8f9fa; border-radius: 8px; padding: 20px; border: 1px solid #e8eaed; }
.detail-row { display: flex; padding: 10px 0; border-bottom: 1px solid #e8eaed; }
.detail-row:last-child { border-bottom: none; }
.detail-label { width: 120px; color: #888; flex-shrink: 0; }
.detail-value { flex: 1; color: #333; font-weight: 500; }
.code-big { font-size: 22px; font-weight: bold; color: #1a73e8; letter-spacing: 2px; }
.detail-note { margin-top: 16px; padding: 14px; background: #fff8e1; border-radius: 6px; border-left: 4px solid #ffb300; font-size: 13px; color: #666; }
.result-card { max-width: 600px; margin: 0 auto; }

/* ===== 分页 ===== */
.pagination-wrap { margin-top: 20px; text-align: center; }
.pagination { display: inline-flex; gap: 6px; }
.pagination a, .pagination .current { padding: 8px 14px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; }
.pagination a:hover { background: #e8f0fe; border-color: #1a73e8; text-decoration: none; }
.pagination .current { background: #1a73e8; color: #fff; border-color: #1a73e8; }

/* ===== 常用号码 ===== */
.common-numbers { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.num-item { display: flex; flex-direction: column; padding: 14px; background: #f8f9fa; border-radius: 6px; text-align: center; border: 1px solid #e8eaed; }
.num { font-size: 20px; font-weight: bold; color: #1a73e8; margin-bottom: 4px; }
.num-desc { font-size: 12px; color: #888; }

/* ===== 面包屑 ===== */
.breadcrumb { font-size: 13px; color: #888; margin-bottom: 12px; }
.breadcrumb a { color: #888; }
.breadcrumb a:hover { color: #1a73e8; }
.page-header { margin-bottom: 20px; }
.page-header h1 { font-size: 24px; color: #333; margin-bottom: 8px; }
.page-desc { font-size: 14px; color: #666; }

/* ===== 无结果 ===== */
.no-result { text-align: center; padding: 40px 20px; color: #888; }
.no-result p { margin-bottom: 12px; }

/* ===== 前缀列表 ===== */
.prefix-list { display: flex; flex-wrap: wrap; gap: 10px; }

/* ===== 中间四位快速查询 ===== */
.middle-quick { display: flex; flex-wrap: wrap; gap: 10px; }

/* ===== 示例手机号 ===== */
.phone-examples { display: flex; flex-wrap: wrap; gap: 8px; }
.phone-examples .prefix-tag { font-family: monospace; letter-spacing: 1px; }

/* ===== 底部 ===== */
.site-footer { background: #fff; border-top: 1px solid #e8eaed; padding: 24px 0; margin-top: 30px; text-align: center; }
.footer-links { margin-bottom: 12px; }
.footer-links a { margin: 0 10px; color: #666; font-size: 13px; }
.footer-links a:hover { color: #1a73e8; }
.copyright { font-size: 12px; color: #999; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .header-inner { flex-direction: column; gap: 10px; }
    .main-nav a { margin: 0 8px; }
    .hero-section h1 { font-size: 24px; }
    .search-form { flex-direction: column; }
    .search-form input { border-radius: 6px; }
    .search-form button { border-radius: 6px; margin-top: 8px; }
    .stats-bar { gap: 20px; }
    .operator-grid { grid-template-columns: 1fr; }
    .province-grid { grid-template-columns: repeat(2, 1fr); }
    .city-grid { grid-template-columns: repeat(2, 1fr); }
    .common-numbers { grid-template-columns: repeat(2, 1fr); }
    .detail-label { width: 90px; }
}
