:root {
  --bg: #f6f4ee;
  --paper: #fffdfa;
  --paper-soft: #f1ece3;
  --ink: #1f2933;
  --muted: #63717d;
  --line: #d9d2c5;
  --classic: #155e75;
  --creative: #7c2d12;
  --blue: #315b8a;
  --green: #3f6c51;
  --gold: #9b6a1a;
  --red: #a34331;
  --plum: #704264;
  --shadow: 0 14px 36px rgba(31, 41, 51, 0.12);
  --radius: 8px;
  --route-color: var(--classic);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
}

.topbar {
  position: relative;
  z-index: 5;
  padding: 18px 24px 14px;
  color: #fff;
  background: linear-gradient(90deg, #123f55 0%, #245143 53%, #7c2d12 100%);
  box-shadow: 0 10px 28px rgba(25, 32, 38, 0.22);
}

.detail-nav {
  max-width: 1440px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
}

.brand {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

.detail-nav a {
  text-decoration: none;
}

.back-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: var(--radius);
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-weight: 650;
}

.title-row {
  max-width: 1440px;
  margin: 0 auto 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.eyebrow {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 650;
}

.subtitle {
  max-width: 820px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.83);
  font-size: 14px;
  line-height: 1.55;
}

.meta-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.meta-strip span {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
}

.route-tabs {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.route-tab {
  min-height: 66px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: var(--radius);
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  text-align: left;
  transition: background 0.18s ease, transform 0.18s ease;
}

.route-tab:hover {
  transform: translateY(-1px);
}

.route-tab.is-active {
  background: rgba(255, 255, 255, 0.25);
  outline: 2px solid rgba(255, 255, 255, 0.46);
}

.route-tab strong,
.route-tab span {
  display: block;
}

.route-tab strong {
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 650;
}

.route-tab span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  line-height: 1.4;
}

.layout {
  display: grid;
  grid-template-columns: minmax(420px, 540px) minmax(520px, 1fr);
  min-height: 0;
}

.content-pane {
  min-height: calc(100vh - 138px);
  padding: 18px;
  border-right: 1px solid var(--line);
  background: rgba(255, 253, 250, 0.78);
}

.map-pane {
  position: sticky;
  top: 0;
  height: calc(100vh - 138px);
  min-height: 560px;
  padding: 18px;
  background: #e7dfd2;
}

.route-summary,
.poi-card,
.map-board {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.route-summary {
  margin-bottom: 12px;
  padding: 14px;
}

.route-summary h2 {
  margin: 0 0 7px;
  font-size: 18px;
  line-height: 1.35;
}

.route-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.route-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.route-metrics span {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  background: var(--paper-soft);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.route-metrics strong {
  color: var(--ink);
  font-size: 13px;
}

.legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 9px;
  background: var(--paper);
  color: var(--muted);
  font-size: 12px;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--route-color);
}

.timeline {
  display: grid;
  gap: 12px;
}

.poi-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  overflow: hidden;
}

.poi-card.is-active {
  border-color: var(--route-color);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--route-color) 25%, transparent), var(--shadow);
}

.poi-image {
  width: 116px;
  height: 100%;
  min-height: 188px;
  object-fit: cover;
  background: var(--paper-soft);
}

.poi-body {
  min-width: 0;
  padding: 12px;
}

.poi-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.name-block {
  min-width: 0;
}

.name-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.name-line h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 650;
}

.poi-meta {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.category-badge,
.score-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 4px 7px;
  font-size: 11px;
  white-space: nowrap;
}

.category-badge {
  background: #f7f1e7;
  color: #33434f;
}

.score-badge {
  background: #fff2cf;
  border-color: #e5c56f;
  color: #584006;
  font-weight: 650;
}

.time-chip {
  flex: 0 0 auto;
  min-width: 58px;
  min-height: 48px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
  color: var(--route-color);
  font-weight: 650;
  font-size: 14px;
}

.time-chip small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.poi-reason {
  margin: 0 0 9px;
  color: #34434f;
  font-size: 13px;
  line-height: 1.52;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.tag {
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 4px 8px;
  background: #f8f4ed;
  color: #40505b;
  font-size: 11px;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.btn {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  font-size: 12px;
  line-height: 1;
}

.btn.primary {
  border-color: var(--route-color);
  background: var(--route-color);
  color: #fff;
}

.poi-extra {
  grid-column: 1 / -1;
  display: none;
  border-top: 1px solid var(--line);
  padding: 12px;
  background: #fbf7ef;
}

.poi-card.is-open .poi-extra {
  display: block;
}

.advice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.advice-grid p {
  margin: 0;
  border-left: 3px solid var(--route-color);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 8px;
  background: var(--paper);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.advice-grid strong,
.advice-grid span {
  display: block;
}

.advice-grid strong {
  margin-bottom: 3px;
  color: var(--ink);
}

.review-bar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.review-bar strong {
  color: var(--ink);
}

.review-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: review;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.review-list li {
  counter-increment: review;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 7px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  background: var(--paper);
  color: #3b4852;
  font-size: 12px;
  line-height: 1.45;
}

.review-list li::before {
  content: counter(review);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--route-color);
  color: #fff;
  font-size: 11px;
  font-weight: 650;
}

.map-board {
  position: relative;
  height: 100%;
  min-height: 520px;
  overflow: hidden;
  background: #ded8cd;
}

.map-note {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 16px;
  z-index: 3;
  border: 1px solid rgba(217, 210, 197, 0.92);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: rgba(255, 253, 250, 0.94);
  box-shadow: 0 8px 24px rgba(32, 35, 38, 0.12);
}

.map-note h2 {
  margin: 0 0 4px;
  font-size: 16px;
  line-height: 1.25;
}

.map-note p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.map-canvas {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.map-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(32, 42, 51, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 42, 51, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 62% 21%, rgba(49, 91, 138, 0.2), transparent 27%),
    radial-gradient(circle at 48% 58%, rgba(63, 108, 81, 0.18), transparent 26%),
    radial-gradient(circle at 20% 72%, rgba(124, 45, 18, 0.18), transparent 30%),
    #ded8cd;
  background-size: 50px 50px, 50px 50px, auto, auto, auto, auto;
}

.route-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.route-line-halo {
  fill: none;
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 14;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-line {
  fill: none;
  stroke: var(--route-color);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-opacity: 0.9;
}

.route-line.creative {
  stroke-dasharray: 14 10;
}

.route-pin {
  cursor: pointer;
}

.route-pin circle {
  fill: var(--route-color);
  stroke: #fffdfa;
  stroke-width: 5;
  filter: drop-shadow(0 8px 12px rgba(30, 35, 40, 0.32));
}

.route-pin.is-active circle {
  fill: #202a33;
  stroke: #f5c451;
  stroke-width: 7;
}

.route-pin text {
  fill: #fffdfa;
  font-size: 20px;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}

.area-label {
  fill: rgba(32, 42, 51, 0.72);
  paint-order: stroke;
  stroke: rgba(255, 253, 249, 0.92);
  stroke-width: 7;
  stroke-linejoin: round;
  font-size: 20px;
  font-weight: 650;
  pointer-events: none;
}

.map-detail {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 38px;
  z-index: 3;
  border: 1px solid rgba(217, 210, 197, 0.95);
  border-radius: var(--radius);
  padding: 11px 12px;
  background: rgba(255, 253, 250, 0.95);
  box-shadow: 0 10px 28px rgba(30, 35, 40, 0.18);
}

.map-detail strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  line-height: 1.3;
}

.map-detail p {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.map-detail a {
  color: var(--route-color);
  font-size: 12px;
  text-decoration: none;
  font-weight: 650;
}

.map-disclaimer {
  position: absolute;
  right: 16px;
  bottom: 10px;
  z-index: 3;
  max-width: 62%;
  margin: 0;
  border-radius: 6px;
  padding: 4px 6px;
  background: rgba(255, 253, 250, 0.78);
  color: rgba(31, 41, 51, 0.72);
  font-size: 10px;
  line-height: 1.35;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 99;
  transform: translateX(-50%);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: rgba(31, 41, 51, 0.94);
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.toast.is-visible {
  opacity: 1;
}

/* Home page */
.site-home {
  background: var(--bg);
}

.home-shell {
  min-height: 100vh;
}

.home-header {
  color: #fff;
  background: linear-gradient(90deg, #123f55 0%, #245143 53%, #7c2d12 100%);
  box-shadow: 0 10px 28px rgba(25, 32, 38, 0.22);
}

.home-nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.nav-links a {
  text-decoration: none;
}

.home-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 62px 24px 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: end;
  gap: 30px;
}

.hero-copy h1 {
  max-width: 780px;
  font-size: 44px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.hero-stats span {
  min-height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  padding: 10px;
  display: grid;
  align-content: center;
  gap: 3px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
}

.hero-stats strong {
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

.home-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 24px;
}

.section-head {
  margin-bottom: 16px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
}

.section-head p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.eyebrow.dark {
  color: var(--route-color);
}

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

.guide-card {
  min-height: 420px;
  display: grid;
  grid-template-rows: 220px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.guide-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(31, 41, 51, 0.16);
}

.guide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--paper-soft);
}

.guide-body {
  padding: 16px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.guide-topline,
.guide-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.guide-type,
.guide-count {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--muted);
  background: #f8f4ed;
  font-size: 11px;
}

.guide-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}

.guide-desc {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.guide-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.guide-tags span {
  border-radius: 999px;
  padding: 5px 8px;
  background: var(--paper-soft);
  color: #40505b;
  font-size: 11px;
}

.guide-footer {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.guide-footer strong {
  color: var(--classic);
}

.tips-band {
  padding-top: 10px;
}

.tip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.tip-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--paper);
  box-shadow: 0 8px 22px rgba(31, 41, 51, 0.08);
}

.tip-grid h3 {
  margin: 0 0 7px;
  font-size: 15px;
}

.tip-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 1080px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .map-pane {
    position: relative;
    order: -1;
    height: 56vh;
    min-height: 420px;
  }

  .content-pane {
    border-right: 0;
  }

  .home-hero,
  .guide-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    max-width: 520px;
  }
}

@media (max-width: 720px) {
  .topbar {
    padding: 14px;
  }

  .title-row {
    display: grid;
    align-items: start;
  }

  h1 {
    font-size: 26px;
  }

  .meta-strip {
    justify-content: flex-start;
  }

  .route-tabs,
  .route-metrics,
  .advice-grid,
  .review-list {
    grid-template-columns: 1fr;
  }

  .content-pane,
  .map-pane {
    padding: 12px;
  }

  .poi-card {
    grid-template-columns: 1fr;
  }

  .poi-image {
    width: 100%;
    height: 168px;
    min-height: 168px;
  }

  .poi-head {
    display: grid;
  }

  .time-chip {
    min-height: 36px;
    width: fit-content;
    grid-auto-flow: column;
    gap: 5px;
    padding: 6px 10px;
  }

  .map-detail {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .map-detail p,
  .map-disclaimer {
    display: none;
  }

  .map-note {
    left: 10px;
    right: 10px;
    top: 10px;
  }

  .home-nav,
  .home-hero,
  .home-section {
    padding-left: 14px;
    padding-right: 14px;
  }

  .home-nav,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-hero {
    padding-top: 42px;
    padding-bottom: 36px;
  }

  .hero-copy h1 {
    font-size: 32px;
  }

  .hero-stats,
  .tip-grid {
    grid-template-columns: 1fr;
  }

  .guide-card {
    grid-template-rows: 180px 1fr;
    min-height: 0;
  }
}
