:root {
  --ink: #17243a;
  --muted: #60708a;
  --line: #dce4ef;
  --panel: #ffffff;
  --page: #f4f7fb;
  --blue: #3850a7;
  --blue-deep: #1c2b68;
  --amber: #d98c1b;
  --shadow: 0 12px 32px rgba(25, 44, 79, 0.09);
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--page); }

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.5;
}

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

button { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand-mark {
  display: grid;
  flex: 0 0 44px;
  place-items: center;
  height: 44px;
  color: #fff;
  background: var(--blue-deep);
  border-radius: 8px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.brand-copy strong,
.brand-copy span {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-copy small {
  color: var(--muted);
  font-size: 11px;
}

.hall-nav {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.hall-nav a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 34px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.hall-nav a:hover,
.hall-nav a[aria-current="page"] {
  color: var(--blue-deep);
  background: #eef2ff;
  border-color: #cbd5ff;
}

.page-main {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 22px 14px 40px;
}

.hero-strip {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 20px;
  color: #fff;
  background: linear-gradient(130deg, var(--blue-deep), #4057b0 66%, #667ac7);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-copy { min-width: 0; }

.eyebrow {
  margin: 0 0 8px;
  color: #f3c26e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(24px, 5.2vw, 42px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.16;
}

.subtitle {
  max-width: 900px;
  margin: 9px 0 0;
  color: #dce4ff;
  font-size: clamp(12px, 2vw, 16px);
}

.hall-chip {
  display: grid;
  flex: 0 0 62px;
  place-items: center;
  width: 62px;
  height: 62px;
  color: var(--blue-deep);
  background: #fff;
  border-radius: 8px;
  font-size: 22px;
  font-weight: 900;
}

.map-section {
  margin-top: 18px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 10px 12px 10px 16px;
  border-bottom: 1px solid var(--line);
}

.toolbar-heading {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.toolbar-heading strong {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toolbar-heading span {
  color: var(--muted);
  font-size: 11px;
}

.map-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.map-action {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--blue-deep);
  background: #f5f7fc;
  border: 1px solid #d6def1;
  border-radius: 6px;
  cursor: pointer;
  font-size: 19px;
  line-height: 1;
}

.map-action:hover,
.map-action:focus-visible {
  background: #e9eeff;
  border-color: #aab8ee;
  outline: 0;
}

.zoom-readout {
  min-width: 46px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.map-viewport {
  position: relative;
  height: min(65vh, 640px);
  min-height: 360px;
  overflow: hidden;
  background: #eef2f8;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.map-viewport.is-dragging { cursor: grabbing; }

.map-canvas {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  will-change: transform;
}

.map-canvas img {
  display: block;
  width: auto;
  max-width: none;
  height: auto;
  pointer-events: none;
}

.map-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 11px;
}

.map-caption strong { color: var(--ink); }

.hall-switcher {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.hall-link {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hall-link:hover,
.hall-link:focus-visible {
  border-color: #aab8ee;
  outline: 0;
}

.hall-link strong { color: var(--blue-deep); font-size: 14px; }
.hall-link span { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

.landing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.landing-card {
  display: grid;
  gap: 12px;
  min-height: 160px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 5px 18px rgba(25, 44, 79, 0.05);
}

.landing-card:hover,
.landing-card:focus-visible {
  border-color: #aab8ee;
  outline: 0;
}

.landing-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.landing-code { color: var(--blue-deep); font-size: 26px; font-weight: 900; }
.landing-arrow { color: var(--amber); font-size: 22px; }
.landing-card h2 { margin: 0; font-size: 17px; line-height: 1.35; }
.landing-card p { margin: 0; color: var(--muted); font-size: 12px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .site-header { padding: 9px 12px; }
  .brand-mark { flex-basis: 40px; width: 40px; height: 40px; }
  .brand-copy strong,
  .brand-copy span { font-size: 12px; }
  .hall-nav { gap: 2px; }
  .hall-nav a { width: 31px; height: 30px; font-size: 11px; }
  .page-main { padding: 14px 10px 28px; }
  .hero-strip { padding: 18px 16px; }
  .hall-chip { flex-basis: 52px; width: 52px; height: 52px; font-size: 18px; }
  .map-toolbar { padding-left: 12px; }
  .map-viewport { height: min(64vh, 520px); min-height: 330px; }
  .map-caption { align-items: flex-start; flex-direction: column; gap: 4px; }
  .hall-switcher { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landing-grid { grid-template-columns: 1fr; }
}

@media (min-width: 900px) {
  .page-main { padding: 32px 22px 56px; }
  .site-header { padding-right: max(22px, calc((100vw - 1180px) / 2)); padding-left: max(22px, calc((100vw - 1180px) / 2)); }
}
