:root {
  color-scheme: light;
  --paper: #fff9f0;
  --paper-deep: #f4eadc;
  --ink: #3b2d25;
  --muted: #78685c;
  --coral: #d96d5f;
  --blue: #4f88a8;
  --green: #799b49;
  --orange: #cc8a39;
  --shadow: 0 18px 40px rgba(89, 65, 43, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(223, 117, 91, 0.16), transparent 28rem),
    linear-gradient(180deg, #f7eee6 0%, #fff9f0 48%, #f6eadb 100%);
  color: var(--ink);
  font-family:
    "PingFang TC",
    "Noto Sans TC",
    "Microsoft JhengHei",
    system-ui,
    sans-serif;
}

a {
  color: inherit;
}

.page-shell {
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 22px 14px 34px;
}

.hero {
  padding: 8px 4px 16px;
  text-align: center;
}

.kicker {
  margin: 0 0 8px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(1.95rem, 8vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.intro {
  margin: 10px auto 0;
  color: var(--muted);
  font-size: 1rem;
}

.poster-section {
  margin-top: 8px;
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(93, 70, 50, 0.18);
  border-radius: 8px;
  background: #fffaf2;
  box-shadow: var(--shadow);
}

.poster {
  display: block;
  width: 100%;
  height: auto;
}

.hotspot {
  position: absolute;
  left: 7%;
  width: 86%;
  border-radius: 8px;
  outline: 0;
  text-decoration: none;
}

.hotspot::after {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(59, 45, 37, 0.72);
  color: #fff;
  content: "導航";
  font-size: 0.78rem;
  font-weight: 800;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.hotspot:focus-visible {
  box-shadow: inset 0 0 0 3px rgba(217, 109, 95, 0.92);
}

.hotspot:hover::after,
.hotspot:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.hotspot-1 {
  top: 20.6%;
  height: 18.6%;
}

.hotspot-2 {
  top: 41%;
  height: 19%;
}

.hotspot-3 {
  top: 61.2%;
  height: 16.5%;
}

.hotspot-4 {
  top: 79.1%;
  height: 13.6%;
}

.hint {
  margin: 12px 4px 0;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.route-actions {
  margin: 18px 0 14px;
}

.route-button {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(59, 45, 37, 0.12);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 12px 22px rgba(59, 45, 37, 0.2);
}

.stops {
  display: grid;
  gap: 10px;
}

.stop {
  display: grid;
  grid-template-columns: auto 1fr auto;
  min-height: 96px;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(59, 45, 37, 0.12);
  border-radius: 8px;
  background: rgba(255, 252, 247, 0.86);
  box-shadow: 0 8px 20px rgba(89, 65, 43, 0.08);
}

.stop-time {
  display: flex;
  width: 58px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
}

.stop-copy h2 {
  margin: 0;
  font-size: 1.03rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.stop-copy p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.map-link {
  display: flex;
  min-width: 54px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 900;
  text-decoration: none;
}

.stop-coral .stop-time,
.stop-coral .map-link {
  background: var(--coral);
}

.stop-blue .stop-time,
.stop-blue .map-link {
  background: var(--blue);
}

.stop-green .stop-time,
.stop-green .map-link {
  background: var(--green);
}

.stop-orange .stop-time,
.stop-orange .map-link {
  background: var(--orange);
}

@media (max-width: 390px) {
  .page-shell {
    padding-inline: 10px;
  }

  .stop {
    grid-template-columns: auto 1fr;
  }

  .map-link {
    grid-column: 1 / -1;
    min-height: 44px;
  }
}
