* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: #f5f7fa; color: #333; line-height: 1.6;
}
a { color: #1a73e8; text-decoration: none; }
a:hover { text-decoration: underline; }

/* 顶部 */
.topbar { background: #1a73e8; color: #fff; }
.topbar .inner { max-width: 1000px; margin: 0 auto; padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.logo { font-size: 22px; font-weight: 700; color: #fff; }
.logo:hover { text-decoration: none; }
.nav a { color: #fff; margin-left: 14px; font-size: 15px; }
.nav a:hover { opacity: .85; }
.nav a.active { background: rgba(255,255,255,.18); padding: 5px 11px; border-radius: 6px; font-weight: 600; }
.nav a.active:hover { opacity: 1; text-decoration: none; }

/* 搜索区 */
.search-wrap { max-width: 760px; margin: 40px auto 10px; padding: 0 16px; text-align: center; }
.search-wrap h1, .search-wrap .search-title { font-size: 26px; margin-bottom: 6px; }
.search-wrap .sub { color: #666; margin-bottom: 20px; font-size: 14px; }
/* 详情页结构化 H1（唯一，含长尾查询词；搜索框已降级为非 h1 的 .search-title） */
.rhero-h1 { font-size: 20px; font-weight: 700; color: #0b1f3a; margin: 0 0 10px; line-height: 1.4; }
.search-box { display: flex; gap: 8px; max-width: 560px; margin: 0 auto; }
.search-box input {
  flex: 1; padding: 14px 16px; font-size: 16px; border: 2px solid #1a73e8;
  border-radius: 8px; outline: none;
}
.search-box button {
  padding: 0 26px; font-size: 16px; color: #fff; background: #1a73e8;
  border: none; border-radius: 8px; cursor: pointer; font-weight: 600;
}
.search-box button:hover { background: #155ec0; }
/* 数据页内联筛选框（替代内联 style，统一规范） */
.qfilter { width: 100%; padding: 12px 14px; font-size: 15px; border: 2px solid #1a73e8; border-radius: 8px; margin-bottom: 16px; outline: none; }
.qfilter:focus { border-color: #155ec0; }
.tabs { margin: 16px auto 0; max-width: 560px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.tabs .tab { padding: 6px 16px; border: 1px solid #ccc; border-radius: 20px; cursor: pointer; font-size: 14px; background: #fff; }
.tabs .tab.active { background: #1a73e8; color: #fff; border-color: #1a73e8; }

/* 结果 */
.result { max-width: 760px; margin: 24px auto; padding: 0 16px; }
.result-card {
  background: #fff; border-radius: 10px; padding: 20px 24px; box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.result-card h2 { font-size: 20px; margin-bottom: 12px; color: #1a73e8; }
.result-row { display: flex; padding: 8px 0; border-bottom: 1px dashed #eee; }
.result-row:last-child { border-bottom: none; }
.result-row .k { width: 110px; color: #888; flex-shrink: 0; }
.result-row .v { flex: 1; font-weight: 500; }
.error { color: #d93025; background: #fdecea; padding: 14px 18px; border-radius: 8px; }
.hint { color: #888; font-size: 13px; margin-top: 8px; }

/* 详情页（/s/ 号号码页）结构化展示 */
.rhero { background: linear-gradient(135deg, #eaf1fd, #f3f7fe); border: 1px solid #dbe7fb; border-radius: 12px; padding: 26px 20px; text-align: center; margin-bottom: 16px; }
.rhero-big { font-size: 28px; font-weight: 800; color: #1a73e8; letter-spacing: 1px; line-height: 1.3; }
.rhero-sub { font-size: 14px; color: #6b7a90; margin-top: 6px; }
.rrows { border-top: 1px solid #f0f0f0; margin-bottom: 16px; }
.rrow { display: flex; padding: 10px 4px; border-bottom: 1px solid #f0f0f0; font-size: 15px; }
.rrow .rk { width: 110px; color: #888; flex-shrink: 0; }
.rrow .rv { flex: 1; font-weight: 600; color: #222; word-break: break-all; }
.rsec { margin: 14px 0; }
.rsec-t { font-size: 15px; font-weight: 700; color: #1a73e8; margin-bottom: 8px; padding-left: 10px; border-left: 3px solid #1a73e8; }
.rlist { padding-left: 4px; list-style: none; }
.rlist li { position: relative; padding: 6px 0 6px 18px; color: #444; font-size: 14px; line-height: 1.7; }
.rlist li::before { content: "▸"; position: absolute; left: 0; color: #1a73e8; }
.rtip { background: #fff8e6; border: 1px solid #ffe2a8; border-radius: 8px; padding: 12px 14px; font-size: 14px; color: #7a5b00; margin: 12px 0; line-height: 1.7; }
.rnote { font-size: 13px; color: #999; line-height: 1.7; margin-top: 6px; }

/* 详情页整体对齐容器：搜索 / 结果 / 面板 同列同宽，消除上下割裂 */
.detail { max-width: 1000px; margin: 24px auto; padding: 0 16px; }
.detail .search-wrap { max-width: none; margin: 24px auto 10px; padding: 0; }
.detail .result { max-width: none; margin: 0 0 16px; padding: 0; }
.detail .grid { max-width: none; margin: 0; padding: 0; }
.detail .result-card { margin-bottom: 0; }

/* 栏目网格 */
.grid { max-width: 1000px; margin: 30px auto; padding: 0 16px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.card { background: #fff; border-radius: 10px; padding: 18px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { color: #666; font-size: 14px; }

/* 最近查询（与 .grid 同宽对齐） */
.recent-wrap { max-width: 1000px; margin: 30px auto 0; padding: 0 16px; }
.recent-list { display: flex; flex-wrap: wrap; gap: 10px; }
.recent-list a {
  display: inline-block; padding: 6px 14px; font-size: 14px;
  background: #f1f5fd; border: 1px solid #e3ecfb; border-radius: 18px; color: #1a73e8;
}
.recent-list a:hover { background: #1a73e8; color: #fff; text-decoration: none; }
.recent-empty { color: #999; font-size: 14px; }

/* 内容页 */
.content { max-width: 1000px; margin: 30px auto; padding: 0 16px; background: #fff; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.content .inner { padding: 24px; }
.content h1 { font-size: 24px; margin-bottom: 16px; color: #1a73e8; }
.content h2 { font-size: 18px; margin: 20px 0 10px; }
.content p, .content li { color: #444; font-size: 15px; }
.content ul { padding-left: 22px; }
.datalist { columns: 2; column-gap: 24px; }
.datalist li { break-inside: avoid; margin-bottom: 6px; }
/* 列表页可点击条目：跳转 /s/ 详情页，复用详情页数据格式 */
.clink { color: #1a73e8; text-decoration: none; font-weight: 600; }
.clink:hover { text-decoration: underline; }
.clink b { font-weight: 700; }

/* 全国区号：大区快捷导航（sticky 吸顶） */
.regn { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px;
  padding: 12px 0; margin: 0 0 18px; background: #fff; border-bottom: 1px solid #eef0f4; }
.regn-item { padding: 6px 14px; font-size: 14px; border-radius: 999px; background: #eef3fb;
  color: #1a73e8; cursor: pointer; transition: .15s; }
.regn-item:hover { background: #1a73e8; color: #fff; text-decoration: none; }

/* 大区 / 省份分组 */
.reg { margin-bottom: 26px; }
.reg-t { font-size: 18px; color: #155ec0; margin: 4px 0 14px; padding-left: 11px; border-left: 4px solid #1a73e8; }
.prov { margin-bottom: 16px; }
.prov-t { font-size: 15px; font-weight: 700; color: #333; margin-bottom: 8px; }
.acodes { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.acode { display: flex; align-items: baseline; gap: 8px; padding: 9px 12px; background: #fff;
  border: 1px solid #e3e8f0; border-radius: 8px; text-decoration: none; color: #333; transition: .15s; }
.acode:hover { border-color: #1a73e8; background: #f5f9ff; box-shadow: 0 2px 6px rgba(26,115,232,.12); text-decoration: none; }
.acode-n { font-weight: 700; color: #1a73e8; font-size: 15px; letter-spacing: .5px; }
.acode-c { color: #666; font-size: 13px; }
.acount { color: #888; font-size: 13px; margin-bottom: 12px; }
.aempty { display: block; color: #999; padding: 26px 12px; text-align: center; background: #fafbfc; border-radius: 8px; }

/* 分类卡片（便民电话 / 政府热线） */
.catgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 18px 0; }
.catcard { background: #fff; border: 1px solid #eef0f4; border-top: 3px solid #1a73e8; border-radius: 10px;
  padding: 16px 18px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.catcard h3 { font-size: 16px; margin-bottom: 10px; color: #155ec0; }
.catlist { list-style: none; padding: 0; margin: 0; }
.catlist li { padding: 7px 0; border-bottom: 1px dashed #eef0f4; font-size: 14px; }
.catlist li:last-child { border-bottom: none; }
.catlist a { color: #333; text-decoration: none; display: block; }
.catlist a:hover { color: #1a73e8; }
.catlist .num { display: inline-block; min-width: 62px; font-weight: 700; color: #1a73e8;
  font-family: "SFMono-Regular", Consolas, Menlo, monospace; }
.catlist .desc { color: #999; font-size: 12px; margin-left: 6px; }

/* 页脚 */
.footer { text-align: center; color: #999; font-size: 13px; padding: 30px 16px; }
.footer a { color: #999; margin: 0 6px; }
