:root {
  --bg: #f4efe6;
  --paper: #fffaf3;
  --ink: #1c1915;
  --ink-2: #4a453d;
  --ink-3: #7a7368;
  --line: #e2d8c8;
  --accent: #9a4b2e;
  --accent-soft: #f3e4d8;
  --pine: #2f4f45;
  --pine-soft: #e4efe8;
  --warn: #8a5a12;
  --ad: #f7ecd6;
  --shadow: 0 1px 2px rgba(28,25,21,.04), 0 10px 28px rgba(28,25,21,.06);
  --radius: 16px;
  --font: "Source Han Serif SC", "Songti SC", "Noto Serif CJK SC", "Georgia", "Source Han Sans SC", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  --sans: "PingFang SC", "Source Han Sans SC", "Noto Sans CJK SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.7 var(--sans);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.ad-banner {
  background: var(--ad);
  border-bottom: 1px solid #e4d3ae;
  color: var(--ink);
}
.ad-banner .ad-in {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.ad-label {
  flex: none;
  font-size: 11px;
  letter-spacing: .12em;
  border: 1px solid #c4a46a;
  color: #6b4e1e;
  padding: 2px 7px;
  border-radius: 3px;
  background: #fff8ea;
}
.ad-body { font-size: 14px; color: var(--ink-2); }
.ad-body strong { color: var(--ink); font-weight: 600; }
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(244,239,230,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-in {
  max-width: 1120px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 20px; height: 56px;
}
.brand {
  font-family: var(--sans);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .04em;
  font-size: 15px;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; color: var(--pine); }
.nav { margin-left: auto; display: flex; gap: 18px; overflow-x: auto; }
.nav a { color: var(--ink-2); font-size: 14px; white-space: nowrap; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover { text-decoration: none; color: var(--ink); }
.nav a.on { color: var(--accent); border-bottom-color: var(--accent); }
.hero, .page, .charts-wrap, .site-footer { max-width: 1120px; margin: 0 auto; padding: 28px 20px 8px; }
.eyebrow { font-size: 12px; letter-spacing: .16em; color: var(--ink-3); text-transform: none; margin: 0 0 8px; }
h1 { font-family: var(--sans); font-weight: 600; font-size: clamp(28px, 5vw, 42px); line-height: 1.25; margin: 0 0 12px; letter-spacing: .02em; }
.lead { color: var(--ink-2); max-width: 42em; margin: 0 0 20px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 8px; }
.hero-stats span {
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font-size: 13px; color: var(--ink-2);
}
.hero-stats b { color: var(--ink); font-weight: 600; }
.workspace {
  max-width: 1120px; margin: 0 auto; padding: 8px 20px 24px;
  display: grid; grid-template-columns: 240px 1fr; gap: 24px;
}
.filters {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; height: fit-content; position: sticky; top: 72px;
  box-shadow: var(--shadow);
}
.filters label { display: block; font-size: 12px; color: var(--ink-3); margin-bottom: 12px; }
.filters input, .filters select {
  width: 100%; margin-top: 4px; height: 36px; padding: 0 8px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink);
  font: 14px/1 var(--sans);
}
.filter-note { font-size: 12px; color: var(--ink-3); margin: 4px 0 0; }
.map {
  height: 460px; border-radius: var(--radius); border: 1px solid var(--line);
  background: #e8efe9; box-shadow: var(--shadow);
}
.map-note { font-size: 12px; color: var(--ink-3); margin: 8px 0 18px; }
.list-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.list-head h2 { margin: 0; font-size: 18px; }
#list-count { color: var(--ink-3); font-size: 13px; }
.list { display: grid; gap: 10px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px; box-shadow: var(--shadow); cursor: pointer;
}
.card:hover { border-color: #cbbba4; }
.card h3 { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.card .meta { color: var(--ink-3); font-size: 13px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag {
  font-size: 11px; padding: 2px 8px; border-radius: 999px;
  background: var(--pine-soft); color: var(--pine);
}
.tag.biz { background: var(--accent-soft); color: var(--accent); }
.detail {
  max-width: 800px; margin: 0 auto 40px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.detail h1 { font-size: 28px; }
.kv { display: grid; grid-template-columns: 7em 1fr; gap: 6px 12px; margin: 16px 0; font-size: 14px; }
.kv dt { color: var(--ink-3); }
.back { font-size: 14px; }
.callout, .form-placeholder {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; margin: 16px 0; box-shadow: var(--shadow);
}
.observe-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 10px; margin: 18px 0; }
.kpi { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.kpi .n { font-size: 26px; font-weight: 600; }
.kpi .k { font-size: 12px; color: var(--ink-3); }
.charts-wrap { padding-top: 12px; padding-bottom: 40px; }
.charts-head p { color: var(--ink-2); }
.charts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.charts-grid figure {
  margin: 0; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 14px 18px; box-shadow: var(--shadow);
}
.charts-grid figure.wide { grid-column: 1 / -1; }
.charts-grid figcaption { font-size: 13px; color: var(--ink-2); margin-bottom: 8px; }
.site-footer { color: var(--ink-3); font-size: 13px; border-top: 1px solid var(--line); padding: 24px 20px 40px; }
.muted { color: var(--ink-3); }
code { font-size: .92em; background: #efe8db; padding: 0 4px; border-radius: 4px; }
@media (max-width: 860px) {
  .workspace { grid-template-columns: 1fr; }
  .filters { position: static; }
  .charts-grid { grid-template-columns: 1fr; }
  .charts-grid figure.wide { grid-column: auto; }
  .map { height: 340px; }
}

.ad-banner { padding: 0; overflow: hidden; }
.ad-carousel { position: relative; max-width: 1120px; margin: 0 auto; min-height: 148px; }
.ad-slides { position: relative; min-height: 148px; }
.ad-slide {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; gap: 12px;
  padding: 18px 64px 20px 20px;
  background-size: cover; background-position: right center; background-repeat: no-repeat;
  background-color: var(--ad);
  opacity: 0; pointer-events: none;
  transition: opacity .45s ease;
}
.ad-slide.is-on { opacity: 1; pointer-events: auto; position: relative; }
.ad-copy { max-width: 38em; color: var(--ink); text-shadow: 0 0 12px #f7ecd6, 0 0 8px #f7ecd6; }
.ad-copy strong { display: block; font-size: 18px; margin-bottom: 4px; }
.ad-copy p { margin: 0; font-size: 14px; color: var(--ink-2); }
.ad-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid #c4a46a; background: rgba(255,248,234,.92);
  color: #6b4e1e; font-size: 20px; line-height: 1; cursor: pointer;
}
.ad-prev { left: 10px; }
.ad-next { right: 10px; }
.ad-dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 6px; }
.ad-dot { width: 8px; height: 8px; border-radius: 50%; border: 0; background: #c4a46a; opacity: .45; cursor: pointer; padding: 0; }
.ad-dot.is-on { opacity: 1; background: #6b4e1e; }
.map-legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 8px; background: #fff; border-radius: 12px; box-shadow: 0 1px 4px rgba(28,25,21,.08); }
.legend-item { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid rgba(28,25,21,.12); border-radius: 999px; background: #faf7f1; color: var(--ink-2); font-size: 14px; cursor: pointer; font-family: inherit; }
.legend-item:hover { background: #f1ebe0; }
.legend-item.active { background: #2f2a24; color: #fff; border-color: #2f2a24; }
.legend-item .n { font-size: 12px; opacity: .7; margin-left: 2px; }
.legend-item i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; box-shadow: 0 0 0 1px rgba(28,25,21,.12); }
.card-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; margin: 8px 0 4px; font-size: 13px; }
.card-facts div { display: grid; grid-template-columns: 5.5em 1fr; gap: 4px; }
.card-facts dt { color: var(--ink-3); }
.card-facts dd { margin: 0; color: var(--ink-2); }
.card-nav { margin-top: 6px; font-size: 13px; }
.tag.primary { color: #fffaf3; }
.gaode-link { display: inline-block; margin: 4px 0; }
.leaflet-popup-content .popup-kv { margin: 6px 0; font-size: 13px; line-height: 1.55; color: #4a453d; }
.case-list { display: grid; gap: 12px; margin-top: 12px; }
.case-card { background: #fffaf3; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.case-card h3 { margin: 0 0 4px; font-size: 16px; }
.case-card .meta { color: var(--ink-3); font-size: 13px; margin: 0 0 8px; }
@media (max-width: 860px) {
  .card-facts { grid-template-columns: 1fr; }
  .ad-slide { padding: 16px 48px 28px 16px; }
  .ad-copy strong { font-size: 16px; }
}

.card-facts .span-2 { grid-column: 1 / -1; }
.intro-src { margin: 10px 0 0; font-size: 13px; color: var(--ink-3); }
.intro-src a { color: inherit; }

.orig-text { margin: 6px 0 0; font-size: 13px; color: var(--ink-3); line-height: 1.55; }
.kv dd .orig-text { margin-top: 6px; }
.addr-pending { margin: 4px 0 0; font-size: 13px; color: var(--ink-3); }

.hero-stats .hero-main { border-color: #cbbba4; }
.hero-stats .hero-appendix {
  background: #f3f1ec;
  color: var(--ink-3);
  border-style: dashed;
}
.legend-appendix-label {
  flex-basis: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 2px;
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--ink-3);
}
.legend-appendix-label::before,
.legend-appendix-label::after {
  content: "";
  flex: 1;
  border-top: 1px dashed var(--line);
}
.legend-item.appendix {
  background: #f4f2ee;
  color: #6a6560;
  border-style: dashed;
}
.legend-item.appendix:hover { background: #eceae6; }
.legend-item.appendix.active {
  background: #8a8f96;
  color: #fff;
  border-color: #8a8f96;
  border-style: solid;
}
.tag.primary.appendix { color: #4a453d; }

.legend-item .tag-app { margin-left: 4px; font-size: 10px; color: var(--ink-3); }
.legend-total { display: inline-flex; align-items: center; gap: 4px; padding: 8px 6px; font-size: 14px; color: var(--ink-2); }
.legend-total b { font-size: 16px; color: var(--ink-1, #1c1915); }
