:root {
  --bg: #f2ebe0;
  --surface: #faf4ea;
  --surface-2: #e7ddd0;
  --text: #241c16;
  --text-muted: #5c5147;
  --accent: #9b2c1a;
  --accent-ink: #fff8f0;
  --border: #cfc0ad;
  --ring: #3d5a6c;
  --ink: #2a3440;
  --cta: #8a2616;
  --cta-wash: rgba(61, 90, 108, 0.28);
  --cta-line: rgba(255, 232, 200, 0.4);
  --fs-h1: 32px;
  --fs-h2: 22px;
  --fs-h3: 17px;
  --fs-body: 16px;
  --fs-small: 13px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --radius-sm: 2px;
  --radius-md: 4px;
  --container: 720px;
  --container-wide: 1120px;
  --ease: cubic-bezier(.2, .7, .3, 1);
  --dur: 160ms;
  --cta-loop: 2.6s;
  --cta-space: 96px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "SimSun", "Songti SC", "Noto Serif SC", serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(155, 44, 26, 0.04), transparent 45%),
    linear-gradient(180deg, #f6f0e6 0%, var(--bg) 40%, #efe6d8 100%);
  overflow-wrap: anywhere;
  padding-bottom: var(--cta-space);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #7a2114; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
h1, h2, .brand-mark {
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 var(--space-4);
}
h1 { font-size: 32px; }
h2 { font-size: 22px; margin-top: var(--space-7); }
h3 { font-size: 17px; font-weight: 700; margin: var(--space-5) 0 var(--space-3); font-family: "Microsoft YaHei", "PingFang SC", sans-serif; }
p { margin: 0 0 var(--space-4); }
ul, ol { margin: 0 0 var(--space-4); padding-left: 1.25em; }
li { margin-bottom: var(--space-2); }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: 8px 12px;
}
.skip:focus { left: 8px; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.head-inner {
  width: min(100%, var(--container-wide));
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: inherit; text-decoration: none;
}
.brand img { width: 40px; height: 40px; border-radius: var(--radius-sm); }
.brand-mark { font-size: 18px; color: var(--accent); margin: 0; }
.nav-desktop {
  display: flex; flex-wrap: wrap; gap: 4px 14px;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 14px;
}
.nav-desktop a {
  color: var(--text); text-decoration: none; padding: 8px 4px; min-height: 44px;
  display: inline-flex; align-items: center;
}
.nav-desktop a[aria-current="page"] {
  color: var(--accent);
  box-shadow: inset 0 -2px 0 var(--accent);
}
.menu-btn {
  display: none;
  appearance: none; border: 1px solid var(--border);
  background: var(--surface); color: var(--text);
  min-height: 44px; min-width: 44px; padding: 0 12px;
  border-radius: var(--radius-sm); font: inherit; cursor: pointer;
}
.nav-drawer {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 8px 16px 16px;
}
.nav-drawer.open { display: block; }
.nav-drawer a {
  display: block; padding: 12px 8px; color: var(--text); text-decoration: none;
  border-bottom: 1px solid var(--border);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}
.nav-drawer a[aria-current="page"] { color: var(--accent); font-weight: 700; }

.page {
  width: min(100%, var(--container-wide));
  margin: 0 auto;
  padding: var(--space-6) 16px var(--space-8);
}
.narrow { max-width: var(--container); }

/* —— 首页地图 —— */
.map-hero {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: var(--space-6);
  align-items: start;
  margin-bottom: var(--space-6);
}
.map-kicker {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: var(--fs-small);
  color: var(--ring);
  margin-bottom: var(--space-3);
}
.map-lead { font-size: 17px; max-width: 36em; }

.map-board {
  position: relative;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(36, 28, 22, 0.04);
  overflow: hidden;
}
.map-board-bg {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  opacity: 0.42;
  filter: sepia(0.15) contrast(0.95);
}
.map-board-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.9fr;
  grid-template-rows: 1fr 1.05fr 0.95fr;
  gap: 8px;
  padding: 12px;
}
.map-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 12px 12px 14px;
  text-decoration: none;
  color: var(--text);
  background: rgba(250, 244, 234, 0.78);
  border: 1px solid rgba(155, 44, 26, 0.28);
  border-radius: var(--radius-sm);
  min-height: 44px;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.map-cell:hover, .map-cell:focus-visible {
  background: rgba(255, 248, 240, 0.95);
  border-color: var(--accent);
  transform: translateY(-1px);
  color: var(--text);
}
.map-cell strong {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 16px;
  color: var(--accent);
  margin-bottom: 4px;
}
.map-cell span {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}
.map-cell::after {
  content: "进图";
  position: absolute;
  top: 8px; right: 10px;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 11px;
  color: var(--ring);
  opacity: 0.75;
}
.map-cell:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
.map-cell:nth-child(2) { grid-column: 2; grid-row: 1; }
.map-cell:nth-child(3) { grid-column: 3; grid-row: 1 / span 2; }
.map-cell:nth-child(4) { grid-column: 2; grid-row: 2; }
.map-cell:nth-child(5) { grid-column: 1; grid-row: 3; }
.map-cell:nth-child(6) { grid-column: 2 / span 2; grid-row: 3; }

.map-legend {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: var(--space-4) 0 var(--space-5);
}
.chip {
  display: inline-flex; align-items: center;
  padding: 6px 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 13px;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }

.band {
  padding-block: var(--space-6);
  border-top: 1px solid var(--border);
}
.entry-list { list-style: none; padding: 0; margin: 0; }
.entry-list li {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
}
.entry-list .tag {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: var(--fs-small);
  color: var(--ring);
  padding-top: 4px;
}
.entry-list a {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  color: var(--accent);
}
.entry-list p { margin: 6px 0 0; color: var(--text-muted); }

.compare {
  width: 100%; border-collapse: collapse; font-size: 15px; background: var(--surface);
}
.compare th, .compare td {
  border: 1px solid var(--border); padding: 12px 14px; text-align: left; vertical-align: top;
}
.compare th { background: var(--surface-2); font-family: "Microsoft YaHei", "PingFang SC", sans-serif; }
.table-wrap { overflow-x: auto; margin-bottom: var(--space-5); }

.fold {
  border: 1px solid var(--border); background: var(--surface); margin-bottom: var(--space-3);
}
.fold summary {
  cursor: pointer; list-style: none; padding: 14px 16px; min-height: 44px;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif; font-size: 17px; font-weight: 700;
}
.fold summary::-webkit-details-marker { display: none; }
.fold[open] summary { border-bottom: 1px solid var(--border); }
.fold .fold-body { padding: 14px 16px 16px; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--space-6) 16px var(--space-7);
  background: var(--surface);
}
.foot-inner {
  width: min(100%, var(--container-wide));
  margin: 0 auto;
  display: grid; gap: var(--space-4);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.brand-link {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 18px; font-weight: 700; color: var(--accent); text-decoration: none;
}
.tagline { color: var(--text-muted); font-size: var(--fs-small); margin: 0; }

.site-cta {
  position: fixed;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  width: min(520px, 38vw);
  padding: 0 22px;
  background: var(--cta);
  color: var(--accent-ink);
  text-decoration: none;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 17px;
  font-weight: 700;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 22px rgba(36, 28, 22, 0.18), inset 0 0 0 1px rgba(255, 232, 200, 0.18);
  overflow: hidden;
  isolation: isolate;
}
.site-cta:hover, .site-cta:focus-visible { color: var(--accent-ink); filter: brightness(1.05); }
.site-cta::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 160% at 30% 50%, var(--cta-wash) 0%, transparent 70%);
  opacity: 0; z-index: -1;
  animation: mapwash-seep var(--cta-loop) var(--ease) infinite;
}
.site-cta::after {
  content: "";
  position: absolute;
  width: 10px; height: 10px;
  right: 18px; top: 50%;
  margin-top: -5px;
  border: 2px solid var(--cta-line);
  border-radius: 50%;
  z-index: -1;
  animation: compass-dial-nudge var(--cta-loop) var(--ease) infinite;
  box-shadow: inset 0 0 0 1px rgba(255, 232, 200, 0.25);
}
@keyframes mapwash-seep {
  0%, 55% { opacity: 0; transform: scale(0.96); }
  68% { opacity: 0.3; transform: scale(1); }
  85%, 100% { opacity: 0; transform: scale(1); }
}
@keyframes compass-dial-nudge {
  0%, 58% { transform: scale(0.96); opacity: 0.35; box-shadow: inset 0 0 0 1px rgba(255, 232, 200, 0.15); }
  70% { transform: scale(1); opacity: 0.95; box-shadow: inset 0 0 0 2px rgba(255, 232, 200, 0.45); }
  84%, 100% { transform: scale(0.96); opacity: 0.35; box-shadow: inset 0 0 0 1px rgba(255, 232, 200, 0.15); }
}
@media (prefers-reduced-motion: reduce) {
  .site-cta::before, .site-cta::after { animation: none; }
  .site-cta::before { opacity: 0.18; transform: none; }
  .site-cta::after { opacity: 0.55; transform: none; }
}

@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .map-hero { grid-template-columns: 1fr; }
  .map-board-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .map-cell:nth-child(n) { grid-column: auto; grid-row: auto; }
  .site-cta { width: calc(100% - 28px); font-size: 16px; min-height: 54px; }
  .entry-list li { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 640px) {
  h1 { font-size: 26px; }
  h2 { font-size: 20px; }
  .map-board-grid { grid-template-columns: 1fr; gap: 6px; padding: 8px; }
  .page { padding: var(--space-5) 14px var(--space-8); }
}
