:root {
  --ink: #44251c;
  --muted: #81695d;
  --paper: #f8edd8;
  --card: #fffaf0;
  --line: #e8d2aa;
  --red: #a9151d;
  --red-deep: #7e1017;
  --red-soft: #f7e4dc;
  --gold: #e9a319;
  --gold-deep: #b87305;
  --gold-soft: #fff0c9;
  --shadow: 0 18px 48px rgba(111, 49, 15, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 13%, rgba(220, 62, 34, .06) 0 2px, transparent 2.6px) 0 0 / 22px 22px,
    linear-gradient(180deg, #f7e3b9 0, var(--paper) 430px, #fbf5e9 100%);
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button { cursor: pointer; }
h1, h2, p { margin: 0; }

.hero {
  position: relative;
  overflow: hidden;
  padding-bottom: 42px;
  background: linear-gradient(180deg, var(--red-deep) 0 42px, #e99c12 42px 100%);
}
.hero::before, .hero::after {
  position: absolute;
  z-index: 0;
  width: 360px;
  height: 130px;
  border: 1px solid rgba(255, 247, 221, .5);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.hero::before { right: -130px; bottom: -72px; transform: rotate(-8deg); }
.hero::after { right: -70px; bottom: -92px; transform: rotate(-8deg); }

.hero__topline {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  min-height: 42px;
  margin: 0 auto;
  color: #fff5dd;
  font-family: "Songti SC", SimSun, serif;
  font-size: 13px;
  letter-spacing: .08em;
}
.hero__topline-mark { color: #f6c65d; letter-spacing: .2em; }

.hero__art {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 247, 221, .62);
  border-radius: 4px 4px 0 0;
  background: #f2a80d;
  box-shadow: 0 24px 60px rgba(93, 24, 12, .22);
}
.hero__art picture, .hero__art img { display: block; width: 100%; }
.hero__art img { height: auto; }

.hero__title {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 23px 30px 25px;
  color: #fff7e6;
  background: linear-gradient(100deg, var(--red-deep), var(--red) 70%, #b92023);
  border-top: 1px solid #d78f2a;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 18px 44px rgba(93, 24, 12, .22);
}
.hero__title::after {
  position: absolute;
  top: 0;
  right: 30px;
  width: 110px;
  height: 100%;
  opacity: .16;
  background-image: radial-gradient(circle, #ffd66e 1.6px, transparent 1.8px);
  background-size: 10px 10px;
  content: "";
}
.eyebrow, .section-kicker { color: var(--gold-deep); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.hero .eyebrow { color: #f5c45d; }
h1 {
  margin-top: 7px;
  font-family: "FZKai-Z03", "KaiTi", "STKaiti", "Songti SC", serif;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: .06em;
}
.hero__title p { margin-top: 9px; color: #f3ddc2; font-size: 14px; letter-spacing: .03em; }

.page-shell { position: relative; z-index: 3; width: min(1180px, calc(100% - 40px)); margin: -22px auto 0; }
.search-panel, .map-card { background: rgba(255, 250, 240, .97); border: 1px solid var(--line); box-shadow: var(--shadow); }
.search-panel { position: relative; overflow: hidden; padding: 24px; border-top: 4px solid var(--gold); border-radius: 6px; }
.search-panel::after {
  position: absolute;
  top: -25px;
  right: -20px;
  width: 105px;
  height: 70px;
  border: 1px solid rgba(169, 21, 29, .16);
  border-radius: 50%;
  content: "";
}
.search-panel__intro { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 17px; }
.search-panel__intro h2 { margin-top: 4px; }
.data-badge { flex: none; padding: 6px 10px; border: 1px solid #edc777; border-radius: 999px; color: #8b5b08; background: var(--gold-soft); font-size: 12px; white-space: nowrap; }

.search-row { position: relative; z-index: 1; display: flex; gap: 12px; align-items: center; }
.search-box {
  flex: 1;
  min-width: 0;
  height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px 0 16px;
  border: 1px solid #dfc597;
  border-radius: 5px;
  background: #fffefa;
  transition: border-color .2s, box-shadow .2s;
}
.search-box:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px rgba(169, 21, 29, .11); }
.search-icon { color: var(--red); 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: #a99385; }
.search-box input:placeholder-shown + .icon-button { visibility: hidden; pointer-events: none; }
.icon-button { width: 30px; height: 30px; border: 0; border-radius: 50%; color: #947c6e; background: transparent; font-size: 24px; line-height: 1; }
.icon-button:hover { color: var(--red); background: var(--red-soft); }
.search-submit {
  height: 48px;
  min-width: 78px;
  padding: 0 19px;
  border: 1px solid var(--red);
  border-radius: 5px;
  color: #fff8e9;
  background: linear-gradient(180deg, #bc2428, var(--red));
  box-shadow: 0 6px 14px rgba(169, 21, 29, .18);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.search-submit:hover { background: var(--red-deep); box-shadow: 0 8px 18px rgba(126, 16, 23, .24); }
.search-submit:active { transform: translateY(1px); }

.filter-heading { display: flex; justify-content: space-between; align-items: center; margin-top: 21px; color: var(--muted); font-size: 13px; }
.result-count { color: #9a7d6a; }
.region-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
.region-filter { min-height: 33px; padding: 0 12px; border: 1px solid #ead6ad; border-radius: 17px; color: #7d5c43; background: #fff8e8; font-size: 13px; transition: .2s ease; }
.region-filter:hover, .region-filter.is-active { color: #fff8e9; border-color: var(--red); background: var(--red); }

.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; }
h2 { margin-top: 6px; font-family: "Songti SC", SimSun, serif; font-size: 28px; line-height: 1.2; font-weight: 700; letter-spacing: .03em; }
.active-filter, .map-region { color: #8c6652; 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(169, 21, 29, .18); border-radius: 999px; color: #8f2725; background: #fff3e8; font-size: 12px; line-height: 1.4; }
.interaction-tip__icon { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: #fff9e9; background: var(--red); font-size: 13px; font-weight: 700; }

.results-list { display: grid; gap: 9px; margin-top: 17px; }
.result-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  overflow: hidden;
  padding: 15px 16px 15px 19px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink);
  background: rgba(255, 252, 245, .86);
  text-align: left;
  transition: transform .2s, border-color .2s, background .2s, box-shadow .2s;
}
.result-item::before { position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--gold); content: ""; opacity: 0; transition: opacity .2s; }
.result-item:hover, .result-item.is-selected { transform: translateY(-1px); border-color: #d6aa58; background: #fffefa; box-shadow: 0 7px 20px rgba(107, 49, 19, .07); }
.result-item:hover::before, .result-item.is-selected::before { opacity: 1; }
.result-item.is-selected { border-color: var(--red); background: #fff5e6; }
.result-name { min-width: 0; font-size: 15px; line-height: 1.4; }
.result-meta { display: flex; flex: none; gap: 9px; align-items: center; color: #9a7b66; font-size: 12px; }
.booth-number { color: var(--red); font-size: 18px; font-weight: 800; }
.region-tag { padding: 4px 7px; border-radius: 3px; color: #8d5e16; background: var(--gold-soft); white-space: nowrap; }
.empty-state { padding: 34px 16px; border: 1px dashed #ddb980; color: var(--muted); background: rgba(255, 250, 237, .65); text-align: center; font-size: 14px; }

.map-column { position: sticky; top: 20px; }
.map-card { padding: 19px; border-top: 4px solid var(--red); border-radius: 6px; }
.map-frame { position: relative; overflow: hidden; margin-top: 18px; border: 1px solid #e4cfaa; border-radius: 4px; background: #f7ead0; transition: border-color .22s ease, box-shadow .22s ease; }
.map-frame.has-highlight { border: 3px solid var(--red); box-shadow: 0 0 0 4px rgba(233, 163, 25, .28), 0 12px 28px rgba(111, 49, 15, .14); }
.map-frame.has-highlight::after {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  padding: 7px 12px;
  border: 1px solid #f5c760;
  border-radius: 999px;
  color: #fff8e6;
  background: var(--red-deep);
  box-shadow: 0 4px 12px rgba(72, 20, 16, .28);
  content: attr(data-highlight-region) " 已定位";
  font-size: 13px;
  font-weight: 800;
  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(233, 163, 25, .25); 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: 28px; height: 28px; border: 1px solid #ffd36e; border-radius: 50%; color: #fff9e9; background: var(--red); font-family: Georgia, "Songti SC", serif; font-size: 15px; font-weight: 700; box-shadow: 0 3px 10px rgba(72, 20, 16, .24); }
.map-zone.is-dimmed { opacity: .08; filter: saturate(.35); }
.map-zone.is-highlighted { z-index: 2; border-color: #fff1bd; background: rgba(169, 21, 29, .78); opacity: 1; box-shadow: 0 0 0 7px rgba(233, 163, 25, .42), 0 8px 20px rgba(72, 20, 16, .28); animation: map-zone-pulse 1.8s ease-in-out infinite; }
.map-zone.is-highlighted span { transform: scale(1.12); background: var(--red-deep); }
@keyframes map-zone-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(233, 163, 25, .34), 0 8px 20px rgba(72, 20, 16, .24); }
  50% { box-shadow: 0 0 0 10px rgba(233, 163, 25, .08), 0 8px 20px rgba(72, 20, 16, .24); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .map-zone.is-highlighted, .map-zone--5.is-highlighted svg { 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: 27%; top: 51%; width: 13%; height: 18%; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.map-zone--5 svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.map-zone--5 path { fill: rgba(169, 21, 29, .78); stroke: #fff1bd; stroke-linejoin: round; stroke-width: 4px; }
.map-zone--5 span { position: absolute; top: 2px; left: 4px; z-index: 1; }
.map-zone--5.is-highlighted { border: 0; background: transparent; box-shadow: none; animation: none; }
.map-zone--5.is-highlighted svg { animation: map-zone-5-pulse 1.8s ease-in-out infinite; }
@keyframes map-zone-5-pulse {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(233, 163, 25, .75)) drop-shadow(0 6px 8px rgba(72, 20, 16, .22)); }
  50% { filter: drop-shadow(0 0 9px rgba(233, 163, 25, .35)) drop-shadow(0 6px 8px rgba(72, 20, 16, .22)); }
}
.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: 5%; top: 81%; width: 18%; height: 8%; }
.clear-highlight { position: absolute; right: 12px; bottom: 12px; z-index: 6; min-height: 38px; padding: 0 14px; border: 1px solid #f5c760; border-radius: 999px; color: #fff8e6; background: var(--red-deep); box-shadow: 0 4px 14px rgba(72, 20, 16, .3); font-size: 13px; font-weight: 800; cursor: pointer; }
.clear-highlight:hover { background: var(--red); }
.clear-highlight:focus-visible { outline: 3px solid rgba(245, 199, 96, .7); outline-offset: 2px; }
.clear-highlight[hidden] { display: none; }
.map-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; color: #917563; font-size: 12px; line-height: 1.6; }
.note-mark { flex: none; width: 7px; height: 7px; margin-top: 6px; border-radius: 50%; background: var(--gold); }

.footer { display: flex; justify-content: center; width: min(1180px, calc(100% - 40px)); margin: 46px auto 24px; padding-top: 16px; border-top: 1px solid #e1c99d; color: #947a69; font-size: 12px; text-align: center; }
.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 #edbd53; border-radius: 999px; color: #fff8e7; background: var(--red); box-shadow: 0 10px 26px rgba(103, 19, 19, .28); font-size: 14px; font-weight: 800; }
.back-to-search[hidden] { display: none !important; }

@media (max-width: 820px) {
  .hero { padding-bottom: 34px; }
  .workspace { grid-template-columns: 1fr; gap: 34px; }
  .results-column { order: 1; }
  .map-column { position: static; order: 2; }
  .map-card { padding: 15px; }
  .back-to-search { display: inline-flex; bottom: max(72px, calc(env(safe-area-inset-bottom) + 66px)); }
}

@media (max-width: 640px) {
  body { background-size: 18px 18px, auto; }
  .hero { padding-bottom: 28px; }
  .hero__topline, .hero__art, .hero__title, .page-shell, .footer { width: min(100% - 24px, 1180px); }
  .hero__topline { min-height: 38px; font-size: 11px; letter-spacing: .03em; }
  .hero__topline-mark { display: none; }
  .hero__art { border-radius: 3px 3px 0 0; }
  .hero__art img { height: auto; object-fit: contain; }
  .hero__title { padding: 18px 18px 20px; }
  .hero__title::after { right: 12px; width: 64px; }
  h1 { font-size: 30px; }
  .hero__title p { max-width: 85%; font-size: 13px; line-height: 1.6; }
  .page-shell { margin-top: -16px; }
  .search-panel { padding: 16px 14px 15px; }
  .search-panel__intro { align-items: center; margin-bottom: 14px; }
  .search-panel__intro h2 { font-size: 22px; }
  .data-badge { padding: 5px 8px; font-size: 10px; }
  .search-row { gap: 8px; }
  .search-box { height: 50px; padding-left: 12px; }
  .search-submit { height: 46px; min-width: 62px; padding: 0 13px; }
  .filter-heading { margin-top: 17px; }
  .region-filters { flex-wrap: nowrap; margin-right: -14px; padding-right: 14px; overflow-x: auto; scrollbar-width: none; }
  .region-filters::-webkit-scrollbar { display: none; }
  .region-filter { flex: none; }
  .workspace { margin-top: 24px; }
  h2 { font-size: 25px; }
  .result-item { padding: 14px 12px 14px 16px; }
  .result-meta { gap: 6px; }
  .region-tag { display: none; }
  .footer { margin-top: 34px; }
}

@media (max-width: 390px) {
  .data-badge { display: none; }
  .search-box input { font-size: 15px; }
}
