:root {
  --paper: #f4f0e8;
  --paper-2: #ece6da;
  --ink: #17201d;
  --muted: #65706a;
  --line: #cfc8ba;
  --green: #1f6b52;
  --green-soft: #dce9df;
  --orange: #c8653c;
  --orange-soft: #f3ded2;
  --blue: #315f87;
  --shadow: 0 18px 50px rgba(38, 45, 40, 0.08);
  --radius: 18px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgba(35, 52, 45, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 52, 45, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 24px 24px;
  color: var(--ink);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }

button, input, select { font: inherit; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(88, 94, 86, .2);
  background: rgba(244, 240, 232, .9);
  backdrop-filter: blur(16px);
}

.header-inner,
.page-shell,
.footer-inner {
  width: min(1440px, calc(100% - 40px));
  margin-inline: auto;
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50% 50% 50% 10%;
  transform: rotate(-8deg);
  background: var(--green);
  color: #fff;
  box-shadow: inset 0 0 0 5px rgba(255,255,255,.18);
}

.brand-mark span { transform: rotate(8deg); }

.nav { display: flex; align-items: center; gap: 8px; }

.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 650;
}

.nav a:hover,
.nav a[aria-current="page"] { background: #fff; color: var(--ink); }

.page-shell { padding-block: 30px 64px; }

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.workspace-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 22px;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 8px;
  font-family: "Songti SC", "Noto Serif SC", Georgia, serif;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -.045em;
}

.lede { max-width: 780px; margin-bottom: 0; color: var(--muted); font-size: 17px; }

.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(100px, 1fr));
  gap: 1px;
  min-width: 340px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--line);
}

.metric { background: rgba(255,255,255,.63); padding: 14px 16px; }
.metric strong { display: block; font-size: 24px; line-height: 1; }
.metric span { color: var(--muted); font-size: 12px; }

.workspace {
  display: grid;
  grid-template-columns: 230px minmax(390px, 1fr) minmax(310px, 420px);
  min-height: 690px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.5);
  box-shadow: var(--shadow);
}

.panel { padding: 22px; }
.panel + .panel { border-left: 1px solid var(--line); }

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.panel-title h2 { margin: 0; font-size: 15px; }
.panel-title span { color: var(--muted); font-size: 12px; }

.filter-list { display: grid; gap: 6px; }
.filter-button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
}
.filter-button:hover { background: rgba(255,255,255,.7); color: var(--ink); }
.filter-button.active { background: var(--ink); color: #fff; }
.filter-button small { opacity: .7; }

.source-note {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 12px;
}

.search-row { position: relative; margin-bottom: 14px; }
.search-row input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  padding: 12px 14px 12px 40px;
  outline: none;
}
.search-row input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(31,107,82,.1); }
.search-icon { position: absolute; left: 14px; top: 12px; color: var(--muted); }

.record-list { display: grid; gap: 10px; }
.record-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.66);
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.record-card:hover { transform: translateY(-2px); border-color: #9ba79f; background: #fff; }
.record-card h3 { margin-bottom: 5px; font-size: 16px; line-height: 1.35; }
.record-card p { margin-bottom: 0; color: var(--muted); font-size: 13px; }
.record-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 11px;
  font-weight: 750;
}
.tag.muted { background: var(--paper-2); color: var(--muted); }
.record-arrow { align-self: center; color: var(--green); font-size: 21px; }

.map-panel { position: relative; overflow: hidden; background: #e6ebe3; }
.map-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .55;
  background-image:
    radial-gradient(circle at 28% 22%, transparent 0 11px, rgba(49,95,135,.09) 12px 13px, transparent 14px),
    linear-gradient(31deg, transparent 48%, rgba(49,95,135,.08) 49% 51%, transparent 52%),
    linear-gradient(-27deg, transparent 48%, rgba(49,95,135,.07) 49% 51%, transparent 52%);
  background-size: 110px 90px, 100px 100px, 130px 130px;
}
.map-inner { position: relative; min-height: 560px; }
.map-shape {
  position: absolute;
  inset: 26px 10px 60px;
  border: 1px solid rgba(31,107,82,.24);
  border-radius: 48% 44% 48% 38% / 37% 51% 42% 53%;
  background: rgba(255,255,255,.44);
  transform: rotate(-3deg);
}
.map-label {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
}
.map-label b {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 3px solid rgba(255,255,255,.95);
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  box-shadow: 0 6px 14px rgba(64,74,68,.18);
}
.map-label span {
  position: absolute;
  top: 34px;
  left: 50%;
  width: max-content;
  transform: translateX(-50%);
  border-radius: 6px;
  background: rgba(244,240,232,.92);
  padding: 1px 5px;
  color: #4b5751;
  font-size: 10px;
  font-weight: 700;
}
.map-legend {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  padding: 11px 12px;
  border: 1px solid rgba(88,94,86,.16);
  border-radius: 10px;
  background: rgba(255,255,255,.8);
  color: var(--muted);
  font-size: 11px;
}

.empty-state { padding: 40px 16px; color: var(--muted); text-align: center; }

.breadcrumb { margin-bottom: 20px; color: var(--muted); font-size: 13px; }
.breadcrumb a:hover { color: var(--green); }

.place-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); gap: 24px; }
.place-hero,
.info-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.68);
  box-shadow: var(--shadow);
}
.place-hero { padding: 30px; }
.place-hero h1 { max-width: 850px; font-size: clamp(36px, 5vw, 66px); }
.place-type { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }
.address-large { margin: 34px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.address-large small { display: block; margin-bottom: 5px; color: var(--muted); }
.address-large strong { display: block; font-size: 22px; line-height: 1.45; }

.location-board {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border-radius: 14px;
  background:
    linear-gradient(35deg, transparent 47%, rgba(49,95,135,.11) 48% 51%, transparent 52%),
    linear-gradient(-45deg, transparent 47%, rgba(31,107,82,.1) 48% 51%, transparent 52%),
    #e5ebe4;
  background-size: 88px 88px, 120px 120px;
}
.location-board::before,
.location-board::after { content: ""; position: absolute; border: 1px solid rgba(31,107,82,.18); border-radius: 50%; }
.location-board::before { width: 280px; height: 280px; left: -60px; top: 70px; }
.location-board::after { width: 190px; height: 190px; right: -25px; top: -25px; }
.location-pin {
  position: absolute;
  top: 44%;
  left: 50%;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%) rotate(-8deg);
  border: 6px solid rgba(255,255,255,.9);
  border-radius: 50% 50% 50% 12px;
  background: var(--orange);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 15px 32px rgba(69,70,61,.2);
}
.location-pin span { transform: rotate(8deg); }
.location-caption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,.88);
  color: var(--muted);
  font-size: 12px;
}

.place-photo {
  margin: 18px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-2);
}
.place-photo img {
  width: 100%;
  max-height: 460px;
  display: block;
  object-fit: cover;
}
.place-photo figcaption {
  padding: 9px 12px;
  color: var(--muted);
  font-size: 12px;
}

.info-stack { display: grid; gap: 18px; }
.info-card { padding: 22px; }
.info-card h2 { margin-bottom: 14px; font-size: 17px; }
.field-list { margin: 0; }
.field-row { display: grid; grid-template-columns: 100px 1fr; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.field-row:first-child { border-top: 0; padding-top: 0; }
.field-row dt { color: var(--muted); }
.field-row dd { margin: 0; font-weight: 650; word-break: break-word; }
.service-list { display: flex; flex-wrap: wrap; gap: 8px; }
.fact-list { margin: 16px 0 0; padding-left: 20px; color: var(--muted); }
.fact-list li + li { margin-top: 5px; }

.text-link {
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.text-link:hover { color: var(--ink); }

.data-note {
  margin-top: 22px;
  padding: 16px 18px;
  border-left: 4px solid var(--orange);
  border-radius: 0 12px 12px 0;
  background: rgba(243,222,210,.58);
  color: #674433;
}

.site-footer { border-top: 1px solid var(--line); background: rgba(236,230,218,.75); }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; padding-block: 24px; color: var(--muted); font-size: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-links a:hover { color: var(--ink); }

@media (max-width: 1050px) {
  .workspace { grid-template-columns: 205px 1fr; }
  .map-panel { grid-column: 1 / -1; border-left: 0 !important; border-top: 1px solid var(--line); }
  .map-inner { min-height: 430px; }
  .place-layout { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .header-inner, .page-shell, .footer-inner { width: min(100% - 24px, 1440px); }
  .header-inner { min-height: 60px; }
  .nav a { padding-inline: 8px; font-size: 13px; }
  .workspace-head { grid-template-columns: 1fr; }
  .summary-strip { min-width: 0; width: 100%; }
  .workspace { grid-template-columns: 1fr; }
  .panel + .panel { border-left: 0; border-top: 1px solid var(--line); }
  .filter-panel { display: none; }
  .place-hero { padding: 22px; }
  .field-row { grid-template-columns: 80px 1fr; }
  .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
