:root {
  --red: #b03a2e;
  --red-dark: #8f2d23;
  --blue: #1a5f9e;
  --ink: #1f2937;
  --ink-2: #4b5563;
  --ink-3: #9ca3af;
  --line: #e5e7eb;
  --bg: #f6f7f9;
  --card: #ffffff;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(16, 24, 40, .08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.6;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Header ===== */
.site-header {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff; position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; flex-shrink: 0; }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 8px; background: rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 700; border: 1px solid rgba(255,255,255,.35);
}
.logo-text { font-size: 17px; font-weight: 700; letter-spacing: .5px; }
.logo-text .amp { opacity: .7; margin: 0 2px; }
.top-nav a { color: rgba(255,255,255,.9); font-size: 14px; }
.top-nav a:hover { color: #fff; }

/* ===== Search ===== */
.search-box { position: relative; flex: 1; max-width: 460px; }
.search-box input {
  width: 100%; height: 38px; border: none; border-radius: 19px;
  padding: 0 16px; font-size: 14px; outline: none; color: var(--ink);
}
.search-results {
  position: absolute; top: 44px; left: 0; right: 0; max-height: 380px; overflow-y: auto;
  background: #fff; border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,.18);
  border: 1px solid var(--line); z-index: 60;
}
.sr-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-bottom: 1px solid #f1f2f4; cursor: pointer; color: var(--ink);
}
.sr-item:last-child { border-bottom: none; }
.sr-item:hover { background: #f4f7fb; text-decoration: none; }
.sr-badge {
  flex-shrink: 0; font-size: 11px; padding: 1px 8px; border-radius: 10px;
  background: #eef2f7; color: var(--ink-2);
}
.sr-badge.prov { background: #fdeceb; color: var(--red); }
.sr-name { font-weight: 600; font-size: 14px; }
.sr-sub { font-size: 12px; color: var(--ink-3); margin-left: auto; flex-shrink: 0; }
.sr-empty { padding: 14px; text-align: center; color: var(--ink-3); font-size: 13px; }

/* ===== 全站声明条 ===== */
.site-notice {
  background: #fff3cd;
  border-bottom: 2px solid #e6b800;
  padding: 10px 0;
}
.notice-inner { display: flex; align-items: flex-start; gap: 10px; }
.notice-icon { font-size: 18px; line-height: 1.4; flex-shrink: 0; }
.site-notice p { font-size: 13px; color: #6b5300; line-height: 1.6; }
.site-notice b { color: #8a4b00; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(180deg, #fdf3f2 0%, var(--bg) 100%);
  padding: 40px 0 28px; text-align: center;
}
.hero h1 { font-size: 26px; letter-spacing: 1px; }
.hero p { color: var(--ink-2); margin-top: 8px; font-size: 14px; }
.hero-stats { display: flex; justify-content: center; gap: 28px; margin-top: 18px; }
.hero-stats .stat b { font-size: 22px; color: var(--red); }
.hero-stats .stat span { font-size: 12px; color: var(--ink-3); display: block; }

/* ===== Sections & cards ===== */
.section { margin: 26px 0; }
.section-title {
  font-size: 17px; font-weight: 700; margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.section-title::before { content: ""; width: 4px; height: 16px; background: var(--red); border-radius: 2px; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow); transition: box-shadow .15s, transform .15s;
}
a.card { display: block; color: var(--ink); }
a.card:hover { text-decoration: none; box-shadow: 0 4px 14px rgba(16,24,40,.12); transform: translateY(-2px); }
.card .card-tag {
  display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 10px;
  background: #fdeceb; color: var(--red); margin-bottom: 6px;
}
.card .card-tag.t-blue { background: #e8f1fa; color: var(--blue); }
.card .card-tag.t-gray { background: #eef2f7; color: var(--ink-2); }
.card h3 { font-size: 15px; }
.card p { font-size: 12px; color: var(--ink-2); margin-top: 4px; line-height: 1.5; }
.card .no-link { color: var(--ink-3); }

/* ===== Province grid ===== */
.prov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.prov-item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; color: var(--ink); box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: space-between;
  transition: box-shadow .15s, transform .15s;
}
.prov-item:hover { text-decoration: none; box-shadow: 0 4px 14px rgba(16,24,40,.12); transform: translateY(-2px); }
.prov-item .p-name { font-weight: 600; font-size: 15px; }
.prov-item .p-count { font-size: 11px; color: var(--ink-3); }

/* ===== Province page ===== */
.crumb { font-size: 13px; color: var(--ink-3); margin: 18px 0 12px; }
.crumb a { color: var(--ink-2); }
.prov-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.prov-head h2 { font-size: 24px; }
.prov-head .agency { color: var(--ink-2); font-size: 14px; }

.action-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 16px 0; }
.action-card {
  border-radius: var(--radius); padding: 16px; color: #fff; position: relative;
  box-shadow: var(--shadow); display: block;
}
.action-card:hover { text-decoration: none; filter: brightness(1.05); }
.action-card.c-red { background: linear-gradient(135deg, #c0453a, #9c3227); }
.action-card.c-blue { background: linear-gradient(135deg, #2470b3, #1a5589); }
.action-card.c-green { background: linear-gradient(135deg, #2e8b6e, #226b55); }
.action-card h3 { font-size: 16px; color: #fff; }
.action-card p { font-size: 12px; opacity: .85; margin-top: 4px; color: #fff; }
.action-card .go { position: absolute; right: 14px; top: 14px; font-size: 18px; opacity: .8; }

.info-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.info-table th, .info-table td { text-align: left; padding: 10px 14px; font-size: 13px; border-bottom: 1px solid #f1f2f4; }
.info-table th { background: #fafbfc; color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.info-table tr:last-child td { border-bottom: none; }

.city-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.city-table th, .city-table td { padding: 10px 12px; font-size: 13px; border-bottom: 1px solid #f1f2f4; text-align: left; }
.city-table th { background: #fafbfc; color: var(--ink-2); font-size: 12px; }
.city-table tr:last-child td { border-bottom: none; }
.city-table tr:hover td { background: #f8fafd; }
.city-name { font-weight: 600; font-size: 14px; }
.dial {
  display: inline-block; font-family: "JetBrains Mono", Consolas, monospace;
  background: #eef7ee; color: #1e7a34; padding: 2px 10px; border-radius: 6px;
  font-size: 13px; font-weight: 600; white-space: nowrap;
}
.badge-merged { font-size: 11px; color: var(--ink-2); background: #eef2f7; padding: 2px 8px; border-radius: 10px; white-space: nowrap; }
.btn-mini {
  display: inline-block; font-size: 12px; padding: 3px 12px; border-radius: 12px;
  background: var(--red); color: #fff; white-space: nowrap;
}
.btn-mini:hover { text-decoration: none; background: var(--red-dark); }
.btn-mini.b-blue { background: var(--blue); }
.btn-mini.b-blue:hover { background: #154d80; }
.link-stack { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }

.note-box {
  background: #fff8e6; border: 1px solid #f0dfae; border-radius: var(--radius);
  padding: 12px 16px; font-size: 13px; color: #7a5d00; margin: 14px 0;
}

/* ===== Guide ===== */
.guide h3 { margin: 18px 0 8px; font-size: 16px; }
.guide ol, .guide ul { padding-left: 22px; font-size: 14px; color: var(--ink-2); }
.guide li { margin-bottom: 6px; }
.guide .card { margin-bottom: 12px; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 22px 0 34px; }
.site-footer p { font-size: 12px; color: var(--ink-3); margin-bottom: 6px; }

@media (max-width: 640px) {
  .header-inner { gap: 10px; }
  .logo-text { display: none; }
  .hero h1 { font-size: 20px; }
  .city-table th:nth-child(3), .city-table td:nth-child(3) { display: none; }
}

.card .card-tag.t-orange { background: #fdecd9; color: #c2410c; }
.tp-notice { background: #fff4ec; border-color: #f3c9a8; color: #9a4a16; }
