:root {
  --ink: #17342e;
  --muted: #6f7d78;
  --paper: #f7f4ee;
  --card: #fffdf8;
  --line: #dce4df;
  --green: #123c34;
  --green-soft: #e4eee8;
  --accent: #d35d40;
  --accent-soft: #fae6df;
  --shadow: 0 16px 38px rgba(19, 53, 45, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button { cursor: pointer; }

.hero {
  color: #f7f6f0;
  background: var(--green);
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.hero__inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 52px 0 42px;
}

.eyebrow, .section-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.eyebrow { color: #aac1b7; }

h1, h2, p { margin: 0; }

h1 {
  margin-top: 12px;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(40px, 7vw, 68px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0;
}

.hero p {
  margin-top: 18px;
  color: #d8e3dc;
  font-size: 16px;
}

.hero__meta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 28px;
  color: #aac1b7;
  font-size: 13px;
}

.dot { width: 4px; height: 4px; border-radius: 50%; background: #d35d40; }

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: -18px auto 0;
}

.search-panel, .map-card {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.search-panel {
  padding: 22px;
  border-radius: 8px;
}

.search-row { display: flex; gap: 14px; align-items: center; }

.search-box {
  flex: 1;
  min-width: 0;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px 0 16px;
  border: 1px solid #cbd8d1;
  border-radius: 6px;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}

.search-box:focus-within { border-color: #6c9b88; box-shadow: 0 0 0 3px rgba(75, 131, 105, .14); }
.search-icon { color: #507166; font-size: 27px; line-height: 1; transform: rotate(-20deg); }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 16px; }
.search-box input::placeholder { color: #9aa8a2; }

.icon-button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  color: #74837c;
  background: transparent;
  font-size: 24px;
  line-height: 1;
}
.icon-button:hover { color: var(--ink); background: var(--green-soft); }

.search-submit {
  height: 44px;
  min-width: 64px;
  padding: 0 15px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: #fff;
  background: var(--accent);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .2s, border-color .2s, transform .2s;
}
.search-submit:hover { border-color: #b84b33; background: #b84b33; }
.search-submit:active { transform: translateY(1px); }

.filter-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
}
.result-count { color: #87958e; }

.region-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
.region-filter {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #d7e1db;
  border-radius: 18px;
  color: #557066;
  background: #f6f9f6;
  font-size: 13px;
  transition: .2s ease;
}
.region-filter:hover, .region-filter.is-active { color: #fff; border-color: var(--green); background: var(--green); }

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .84fr);
  gap: 28px;
  align-items: start;
  margin-top: 30px;
}

.section-heading, .map-card__topline {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
}

.section-kicker { color: #87978f; }
h2 { margin-top: 6px; font-family: Georgia, "Songti SC", serif; font-size: 28px; font-weight: 500; }
.active-filter, .map-region { color: #557066; font-size: 13px; }
.interaction-tip { display: inline-flex; align-items: center; gap: 8px; width: fit-content; margin: 14px 0 0; padding: 7px 11px; border: 1px solid rgba(190, 68, 45, .2); border-radius: 999px; color: #9a402e; background: #fff4ed; font-size: 12px; line-height: 1.4; }
.interaction-tip__icon { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: #fff; background: var(--accent); font-size: 13px; font-weight: 700; }

.results-list { display: grid; gap: 8px; margin-top: 17px; }
.result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: rgba(255,253,248,.72);
  text-align: left;
  transition: transform .2s, border-color .2s, background .2s;
}
.result-item:hover, .result-item.is-selected { transform: translateY(-1px); border-color: #8db09e; background: #fff; }
.result-name { min-width: 0; font-size: 15px; line-height: 1.4; }
.result-meta { display: flex; flex: none; gap: 9px; align-items: center; color: #789087; font-size: 12px; }
.booth-number { color: var(--accent); font-weight: 700; font-size: 17px; }
.region-tag { padding: 4px 7px; border-radius: 4px; color: #59776a; background: var(--green-soft); white-space: nowrap; }

.empty-state {
  padding: 32px 16px;
  border: 1px dashed #c9d7cf;
  color: var(--muted);
  background: rgba(255,255,255,.34);
  text-align: center;
  font-size: 14px;
}

.map-column { position: sticky; top: 20px; }
.map-card { padding: 18px; border-radius: 8px; }
.map-frame { position: relative; overflow: hidden; margin-top: 18px; border: 1px solid #e0e5df; border-radius: 5px; background: #edf2ed; transition: border-color .22s ease, box-shadow .22s ease; }
.map-frame.has-highlight { border: 3px solid #f04f2f; box-shadow: 0 0 0 4px rgba(244, 93, 53, .18); }
.map-frame.has-highlight::after {
  content: attr(data-highlight-region) " 已定位";
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff;
  background: #b93620;
  box-shadow: 0 4px 12px rgba(72, 32, 23, .24);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  pointer-events: none;
}
.map-frame img { display: block; width: 100%; height: auto; }
.map-overlay { position: absolute; inset: 0; pointer-events: none; }
.map-zone {
  position: absolute;
  display: grid;
  place-items: center;
  border: 4px solid transparent;
  border-radius: 7px;
  background: rgba(211, 93, 64, .22);
  opacity: 0;
  transition: opacity .22s ease, background .22s ease, border-color .22s ease, box-shadow .22s ease, filter .22s ease;
}
.map-zone span {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  font-family: Georgia, "Songti SC", serif;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(72, 32, 23, .2);
}
.map-zone.is-dimmed { opacity: .08; filter: saturate(.45); }
.map-zone.is-highlighted {
  z-index: 2;
  border-color: #f04f2f;
  background: rgba(244, 93, 53, .78);
  opacity: 1;
  box-shadow: 0 0 0 7px rgba(244, 93, 53, .3), 0 8px 20px rgba(72, 32, 23, .24);
  animation: map-zone-pulse 1.8s ease-in-out infinite;
}
.map-zone.is-highlighted span { transform: scale(1.12); background: #b93620; }

@keyframes map-zone-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(244, 93, 53, .2), 0 8px 20px rgba(72, 32, 23, .2); }
  50% { box-shadow: 0 0 0 9px rgba(244, 93, 53, .05), 0 8px 20px rgba(72, 32, 23, .2); }
}

@media (prefers-reduced-motion: reduce) {
  .map-zone.is-highlighted { animation: none; }
}
.map-zone--1 { left: 42%; top: 56%; width: 24%; height: 7%; }
.map-zone--2 { left: 34%; top: 63%; width: 10%; height: 26%; }
.map-zone--3 { left: 42%; top: 39%; width: 24%; height: 8%; }
.map-zone--4 { left: 26%; top: 39%; width: 16%; height: 8%; }
.map-zone--5 { left: 25%; top: 50%; width: 17%; height: 10%; }
.map-zone--6 { left: 20%; top: 47%; width: 6%; height: 27%; }
.map-zone--7 { left: 5%; top: 72%; width: 18%; height: 8%; }
.map-zone--8 { left: 73%; top: 85%; width: 20%; height: 10%; }
.map-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; color: #7c8b84; font-size: 12px; line-height: 1.6; }
.note-mark { flex: none; width: 7px; height: 7px; margin-top: 6px; border-radius: 50%; background: var(--accent); }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 40px));
  margin: 46px auto 24px;
  padding-top: 16px;
  border-top: 1px solid #dce4df;
  color: #89958f;
  font-size: 12px;
}

.back-to-search {
  display: none;
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(18px, calc(env(safe-area-inset-bottom) + 12px));
  z-index: 20;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  color: #fff;
  background: var(--green);
  box-shadow: 0 10px 26px rgba(19, 53, 45, .24);
  font-size: 14px;
  font-weight: 700;
}
.back-to-search[hidden] { display: none !important; }

@media (max-width: 820px) {
  .hero__inner { padding: 38px 0 34px; }
  .workspace { grid-template-columns: 1fr; gap: 34px; }
  .results-column { order: 1; }
  .map-column { position: static; order: 2; }
  .map-card { padding: 14px; }
  .back-to-search { display: inline-flex; }
}

@media (max-width: 520px) {
  .hero__inner, .page-shell, .footer { width: min(100% - 28px, 1180px); }
  .hero__meta { margin-top: 22px; }
  .search-panel { padding: 14px; }
  .search-row { gap: 8px; }
  .search-submit { min-width: 58px; padding: 0 12px; font-size: 14px; }
  .filter-heading { margin-top: 17px; }
  .workspace { margin-top: 22px; }
  h2 { font-size: 25px; }
  .result-item { padding: 14px 12px; }
  .result-meta { gap: 6px; }
  .region-tag { display: none; }
  .footer { flex-direction: column; gap: 5px; margin-top: 34px; }
}
