:root {
  --bg: #f4f6f9;
  --surface: #fff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e3e8ef;
  --accent: #1f4e79;
  --shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 24px rgba(16,24,40,.04);
  --radius: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 14px; line-height: 1.55; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.header-inner { max-width: 1180px; margin: 0 auto; padding: 26px 22px 22px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-end; }
h1 { margin: 0; font-size: 25px; color: var(--accent); font-weight: 650; }
.subtitle { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.meta-block { display: flex; gap: 24px; flex-wrap: wrap; }
.meta-block > div { display: flex; flex-direction: column; }
.meta-label { color: var(--muted); font-size: 11px; }
.meta-value { font-size: 13px; font-weight: 550; }
.page { max-width: 1180px; margin: 0 auto; padding: 22px; }
.notice { display: none; background: #fff4e5; color: #8a4b08; border: 1px solid #f6d9ad; border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; font-size: 13px; }
.notice.visible { display: block; }
.kpi-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 16px; }
.kpi-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; display: flex; flex-direction: column; min-height: 100px; }
.kpi-label { color: var(--muted); font-size: 12px; }
.kpi-value { font-size: 29px; color: var(--accent); font-weight: 650; margin-top: 5px; }
.kpi-text { font-size: 21px; }
.kpi-foot { color: var(--muted); font-size: 11px; margin-top: auto; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 16px; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card h2 { margin: 0; font-size: 16px; }
.card-note { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
select { border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; font-size: 12px; background: #fff; color: var(--text); font-family: inherit; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th { text-align: left; padding: 10px 12px; background: #f8fafc; color: var(--muted); font-size: 11px; font-weight: 600; border-bottom: 1px solid var(--border); cursor: pointer; white-space: nowrap; }
tbody td { padding: 10px 12px; border-bottom: 1px solid #eef1f5; white-space: nowrap; }
tbody tr:hover { background: #f8fafc; }
.city-name { font-weight: 600; }
.score-cell { font-variant-numeric: tabular-nums; font-weight: 600; }
.bar-cell { min-width: 150px; }
.bar-track { display: inline-block; width: 110px; height: 8px; background: #edf1f5; border-radius: 999px; vertical-align: middle; margin-right: 8px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; color: #fff; font-size: 11px; font-weight: 600; }
.method-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-top: 14px; }
.method-grid > div { background: #f8fafc; border: 1px solid var(--border); border-radius: 8px; padding: 9px 11px; display: flex; flex-direction: column; font-size: 12px; }
.method-label { color: var(--muted); font-size: 11px; margin-bottom: 2px; }
.method-note { color: var(--muted); font-size: 12px; margin: 14px 0 0; }
.site-footer { max-width: 1180px; margin: 0 auto; padding: 6px 22px 30px; display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; flex-wrap: wrap; gap: 8px; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.loading { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(244,246,249,.92); color: var(--muted); z-index: 20; }
.loading.hidden { display: none; }
.error-note { color: #b91c1c; }
@media (max-width: 900px) { .kpi-grid, .method-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .kpi-grid, .method-grid { grid-template-columns: 1fr; } .header-inner, .page { padding-left: 14px; padding-right: 14px; } }
