/* ===== 手机号码查询网 全局样式 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font: 15px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: #333;
  background: #f4f7fb;
}
a { color: #2f6bff; text-decoration: none; }
a:hover { color: #1b4fd8; text-decoration: underline; }
img { max-width: 100%; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* ===== 顶部 ===== */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e6ebf3;
  position: sticky; top: 0; z-index: 100;
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 62px; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 700; color: #1f2d3d; white-space: nowrap; }
.logo:hover { text-decoration: none; color: #2f6bff; }
.logo-text { letter-spacing: .5px; }
.header-search { display: flex; flex: 1; max-width: 520px; margin-left: auto; }
.hs-input {
  flex: 1; height: 38px; padding: 0 14px; border: 2px solid #dfe6f1; border-radius: 8px 0 0 8px;
  font-size: 14px; outline: none;
}
.hs-input:focus { border-color: #2f6bff; }
.hs-btn {
  height: 38px; padding: 0 22px; border: none; border-radius: 0 8px 8px 0; cursor: pointer;
  background: #2f6bff; color: #fff; font-size: 14px;
}
.hs-btn:hover { background: #1b4fd8; }

/* ===== 面包屑 ===== */
.crumbs { background: #fff; border-bottom: 1px solid #eef2f8; padding: 10px 0; font-size: 13px; color: #888; }
.crumbs .wrap { display: flex; flex-wrap: wrap; align-items: center; }
.crumbs a { color: #666; }
.crumbs .sep { margin: 0 8px; color: #c3ccda; }
.crumbs .cur { color: #333; font-weight: 600; }

/* ===== 首页 Hero ===== */
.hero {
  background: linear-gradient(135deg, #2f6bff 0%, #5a8dff 60%, #7fa9ff 100%);
  padding: 52px 16px 46px; text-align: center; color: #fff;
}
.hero h1 { font-size: 30px; font-weight: 700; margin-bottom: 10px; }
.hero-sub { font-size: 15px; opacity: .92; margin-bottom: 26px; }
.big-search { display: flex; max-width: 640px; margin: 0 auto; box-shadow: 0 10px 30px rgba(20,60,160,.28); border-radius: 12px; overflow: hidden; }
.big-input {
  flex: 1; height: 56px; padding: 0 20px; border: none; outline: none; font-size: 17px; letter-spacing: 1px;
}
.big-btn {
  width: 140px; border: none; cursor: pointer; font-size: 17px; font-weight: 600;
  background: #0d3fb8; color: #fff;
}
.big-btn:hover { background: #0a34a0; }
.hero-meta { margin-top: 18px; font-size: 13px; opacity: .9; }
.hero-meta span { margin: 0 10px; }
.hot-words { margin-top: 16px; font-size: 13px; }
.hot-words a { color: #fff; background: rgba(255,255,255,.18); border-radius: 20px; padding: 4px 12px; margin: 0 4px; display: inline-block; }
.hot-words a:hover { background: rgba(255,255,255,.32); text-decoration: none; }
.hw-label { opacity: .9; }

/* ===== 通用卡片 ===== */
.home-body { padding: 28px 16px 40px; }
.card {
  background: #fff; border: 1px solid #e9eef7; border-radius: 12px;
  padding: 24px 26px; margin-bottom: 22px;
}
.card-title { font-size: 19px; font-weight: 700; color: #1f2d3d; margin-bottom: 14px; padding-left: 12px; border-left: 4px solid #2f6bff; }
.card p { margin-bottom: 10px; }
.muted { color: #8a94a6; font-size: 13px; }
.page { padding: 26px 16px 40px; }
.page-head { margin-bottom: 20px; }
.page-head h1 { font-size: 26px; color: #1f2d3d; margin-bottom: 8px; }

/* ===== 运营商号段速查 ===== */
.op-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.op-item { border: 1px solid #eef2f8; border-radius: 10px; padding: 14px 16px; background: #fafcff; }
.op-item h3 { font-size: 16px; margin-bottom: 8px; }
.op-prefix { display: flex; flex-wrap: wrap; gap: 6px; }
.op-prefix a { font-size: 13px; background: #eef3ff; color: #2f6bff; border-radius: 6px; padding: 2px 8px; }
.op-prefix a:hover { background: #2f6bff; color: #fff; text-decoration: none; }

/* ===== 全国省市导航 ===== */
.province-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.p-item { border: 1px solid #eef2f8; border-radius: 10px; overflow: hidden; background: #fafcff; }
.p-item summary {
  cursor: pointer; padding: 10px 14px; display: flex; justify-content: space-between; align-items: center;
  font-size: 15px; font-weight: 600; list-style: none;
}
.p-item summary::-webkit-details-marker { display: none; }
.p-item summary::after { content: "＋"; color: #b0bccf; font-size: 14px; }
.p-item[open] summary::after { content: "－"; }
.p-item[open] summary { border-bottom: 1px dashed #e9eef7; }
.p-count { font-size: 12px; color: #a8b3c5; font-weight: 400; margin-left: 8px; }
.city-list { padding: 10px 14px; max-height: 300px; overflow: auto; }
.city-list li { list-style: none; padding: 7px 0; border-bottom: 1px dashed #f0f3f9; font-size: 14px; }
.city-list li:last-child { border-bottom: none; }
.city-list a { color: #1f2d3d; font-weight: 600; }
.city-list a:hover { color: #2f6bff; }
.co-counties { display: block; margin-top: 3px; line-height: 1.9; }
.co-link { color: #8a94a6 !important; font-size: 12px; font-weight: 400 !important; background: #f2f5fb; border-radius: 4px; padding: 1px 6px; margin-right: 4px; }
.co-link:hover { color: #2f6bff !important; }

/* ===== 城市导航（省份页） ===== */
.city-nav { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.city-nav-item { border: 1px solid #eef2f8; border-radius: 10px; padding: 12px 14px; background: #fafcff; }
.city-nav-item h3 { font-size: 15px; margin-bottom: 8px; }
.county-links { line-height: 2; }
.county-links a { color: #66748a; font-size: 13px; background: #f2f5fb; border-radius: 5px; padding: 2px 8px; margin: 0 4px 4px 0; display: inline-block; }
.county-links a:hover { color: #2f6bff; background: #eef3ff; text-decoration: none; }

/* ===== 号段表格 ===== */
.seg-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.seg-table th { background: #f2f6ff; color: #33415c; text-align: left; padding: 10px 12px; font-weight: 600; }
.seg-table td { padding: 9px 12px; border-bottom: 1px solid #f0f3f9; }
.seg-table tr:hover td { background: #fafcff; }
.seg-table td a { font-weight: 600; }
.op-tag {
  display: inline-block; background: #eef3ff; color: #2f6bff; font-size: 13px; font-weight: 600;
  border-radius: 6px; padding: 2px 10px;
}
.info-table { width: 100%; max-width: 720px; border-collapse: collapse; font-size: 14px; }
.info-table th { background: #f2f6ff; width: 120px; text-align: left; padding: 9px 12px; }
.info-table td { padding: 9px 12px; border-bottom: 1px solid #f0f3f9; }

/* ===== 号段卡片（城市页） ===== */
.seg-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.seg-card { border: 1px solid #e9eef7; border-radius: 10px; padding: 14px 16px; }
.seg-card h3 { font-size: 16px; margin-bottom: 6px; }
.seg-prefix-list { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 5px; }
.seg-prefix-list a { font-size: 12px; color: #66748a; background: #f2f5fb; border-radius: 5px; padding: 2px 8px; }
.seg-prefix-list a:hover { color: #2f6bff; background: #eef3ff; text-decoration: none; }

/* ===== 链接云 ===== */
.seg-links { line-height: 2.4; }
.seg-links a { display: inline-block; background: #f2f5fb; color: #44506a; border-radius: 6px; padding: 3px 12px; margin: 0 6px 6px 0; font-size: 14px; }
.seg-links a:hover { background: #2f6bff; color: #fff; text-decoration: none; }

/* ===== 号码网格（多列展示手机号码，PC/移动自适应） ===== */
.num-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.num-grid a {
  display: block; text-align: center; background: #f4f7fd; color: #2f4b7a;
  border: 1px solid #e6edf9; border-radius: 8px; padding: 9px 4px;
  font-size: 14px; font-variant-numeric: tabular-nums; letter-spacing: 0.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.num-grid a:hover { background: #2f6bff; color: #fff; border-color: #2f6bff; text-decoration: none; transform: translateY(-1px); }
@media (max-width: 640px) {
  .num-grid { grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)); gap: 6px; }
  .num-grid a { font-size: 13px; padding: 7px 2px; }
}
.btn-mini {
  display: inline-block; background: #2f6bff; color: #fff !important; border-radius: 8px;
  padding: 7px 18px; font-size: 14px;
}
.btn-mini:hover { background: #1b4fd8; text-decoration: none; }

/* ===== 查询结果 ===== */
.result-card { border-color: #d9e6ff; }
.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 14px; }
.r-item { background: #f7faff; border-radius: 10px; padding: 14px 16px; }
.r-label { display: block; font-size: 12px; color: #8a94a6; margin-bottom: 6px; }
.r-value { font-size: 18px; font-weight: 700; color: #1f2d3d; }
.num-big { font-size: 22px; color: #2f6bff; letter-spacing: 1px; }
.inline-search { display: flex; max-width: 560px; margin-top: 8px; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 14px rgba(47,107,255,.15); }

/* ===== FAQ ===== */
.faq-item { border: 1px solid #eef2f8; border-radius: 8px; margin-bottom: 10px; overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 12px 16px; font-weight: 600; font-size: 15px; background: #fafcff; list-style: none; position: relative; padding-right: 30px; }
.faq-item summary::after { content: "＋"; position: absolute; right: 14px; color: #b0bccf; }
.faq-item[open] summary::after { content: "－"; }
.faq-item[open] summary { border-bottom: 1px dashed #eef2f8; }
.faq-item p { padding: 12px 16px; font-size: 14px; color: #55637a; }

/* ===== 404 ===== */
.notfound { text-align: center; padding: 60px 26px; }
.notfound h1 { margin-bottom: 16px; }
.notfound .btn-mini { margin: 6px; }

/* ===== 底部 ===== */
.site-footer { background: #1f2d3d; color: #b8c2d4; margin-top: 30px; padding: 34px 16px 22px; font-size: 13px; }
.foot-nav h3 { color: #fff; font-size: 16px; margin-bottom: 12px; }
.province-links { columns: 4; column-gap: 20px; list-style: none; }
.province-links li { break-inside: avoid; margin-bottom: 4px; }
.province-links a { color: #b8c2d4; }
.province-links a:hover { color: #fff; }
.foot-cols { display: grid; grid-template-columns: 2fr 1fr; gap: 26px; margin-top: 24px; padding-top: 20px; border-top: 1px solid #33415c; }
.foot-about h4, .foot-ops h4 { color: #fff; font-size: 15px; margin-bottom: 10px; }
.foot-ops ul { list-style: none; }
.foot-ops li { margin-bottom: 4px; }
.foot-bottom { margin-top: 20px; padding-top: 16px; border-top: 1px solid #33415c; text-align: center; color: #7d8aa0; }
.foot-bottom a { color: #9fb0c9; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .province-links { columns: 3; }
  .foot-cols { grid-template-columns: 1fr; }
  .hero h1 { font-size: 22px; }
  .big-btn { width: 110px; font-size: 15px; }
  .header-inner { flex-wrap: wrap; height: auto; padding: 10px 0; gap: 10px; }
  .header-search { max-width: 100%; width: 100%; }
  .city-nav { grid-template-columns: 1fr; }
  .card { padding: 18px 16px; }
}
@media (max-width: 560px) {
  .province-links { columns: 2; }
  .hero { padding: 34px 10px 30px; }
  .big-input { font-size: 15px; }
}
