/* 2026-07-16 incremental road-movie update.
   The original page, hero, route chapters and visual language remain the base. */

:root {
  --night: #0f1d18;
  --night-2: #172b23;
  --warm: #f1b34f;
  --warm-soft: #f6dfb2;
  --wine: #943a30;
}

/* Keep maintenance evidence out of the traveller-facing experience. */
#sources,
.legacy-core,
#ops,
.hero-credit,
.pending-input,
.care-note {
  display: none !important;
}

body {
  background:
    radial-gradient(circle at 10% 0%, rgba(229,168,75,.08), transparent 26rem),
    var(--paper);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(8,18,14,.32), transparent 45%);
}

.hero-content { position: relative; z-index: 1; }
.hero h1 { max-width: 980px; }
.hero h1 span { color: rgba(255,255,255,.72); letter-spacing: .015em; }
.hero-lead { max-width: 780px; font-size: clamp(17px, 2vw, 22px); line-height: 1.8; }
.hero-metrics { overflow: hidden; border-color: rgba(255,255,255,.24); }
.metric strong { color: #f7dfb0; white-space: nowrap; }

.nav .wrap { scrollbar-width: none; }
.nav .wrap::-webkit-scrollbar { display: none; }

.journey-intro { max-width: 560px; }
.trip-now { border-top: 3px solid var(--sun); }
.trip-now-label::before { content: "●"; margin-right: 7px; color: var(--sun); }

.day-index { display: flex; grid-template-columns: none; flex-wrap: nowrap; }
.day-index a { flex: 0 0 72px; min-width: 72px; }
.day-index a span { max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.day-index a.is-open { background: var(--ink); color: #fff; }
.day-index a.is-open b { color: var(--sun); }

.crew-pass {
  background:
    radial-gradient(circle at 88% 8%, rgba(229,168,75,.15), transparent 18rem),
    var(--night);
}
.crew-pass-head h3 { color: #fff; }
.crew-pass-head p { color: rgba(255,255,255,.64); }
.crew-member { transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.crew-member:hover, .crew-member.is-picked { transform: translateY(-2px); }
.crew-member small { line-height: 1.35; }
.crew-fortune { min-height: 54px; display: flex; align-items: center; }

.chapter-opening {
  position: relative;
  margin: 0 -1px 20px;
  padding: 25px 25px 24px 28px;
  overflow: hidden;
  border: 1px solid rgba(23,35,31,.16);
  border-left: 5px solid var(--sun);
  background:
    linear-gradient(120deg, rgba(255,255,255,.92), rgba(246,235,215,.76)),
    var(--paper-2);
}
.chapter-opening::after {
  content: attr(data-ghost);
  position: absolute;
  right: -8px;
  bottom: -24px;
  color: rgba(23,35,31,.045);
  font-family: Georgia, "Songti SC", serif;
  font-size: 86px;
  line-height: 1;
  font-weight: 800;
}
.chapter-opening .story-kicker {
  margin: 0 0 7px;
  color: var(--alert);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .15em;
}
.chapter-opening blockquote {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 820px;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(21px, 3vw, 31px);
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: -.02em;
}
.chapter-opening p {
  position: relative;
  z-index: 1;
  margin: 9px 0 0;
  color: var(--ink-2);
  font-size: 13px;
}

.story-cast {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 14px 0 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}
.story-cast span {
  min-width: 0;
  padding: 10px 11px;
  background: rgba(255,253,247,.96);
  color: var(--ink-2);
  font-size: 11px;
  line-height: 1.45;
}
.story-cast b { display: block; color: var(--ink); font-size: 12px; }

.day-goal span { color: var(--alert); }
.day-goal strong { letter-spacing: -.018em; }
.day-panel.play { background: #eef2e8; }
.day-alerts .cutoff h4::before { content: "别嘴硬 · "; color: var(--warm-soft); }
.day-close h4::before { content: "今晚收尾 · "; color: var(--warm-soft); }
.tomorrow-peek { border-left-color: var(--sun); font-family: Georgia, "Songti SC", serif; }

.route-jump {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-top: 10px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: 11px;
  font-weight: 750;
}
.route-jump:hover { background: var(--ink); color: #fff; }

.section-head h2 { text-wrap: balance; }
#budget .section-head p,
#emergency .section-head p { max-width: 540px; }
.budget-result { background: var(--night); }
.budget-result strong { color: var(--warm-soft); }

.trip-day[open] > summary {
  background:
    linear-gradient(90deg, rgba(229,168,75,.08), transparent 42%),
    var(--paper-2);
}

.medical-board.single { grid-template-columns: 1fr; }
.medical-board.single .symptom-lights { grid-template-columns: repeat(3,1fr); }
#shipping-guide { scroll-margin-top: 78px; }
#road-credits {
  position: relative;
  overflow: hidden;
  margin-top: 42px;
  padding: clamp(34px, 7vw, 72px);
  color: #fff;
  background:
    radial-gradient(circle at 86% 16%, rgba(229,168,75,.2), transparent 22rem),
    linear-gradient(145deg, #172b23, #0a1511 72%);
}
#road-credits::after {
  content: "318";
  position: absolute;
  right: -22px;
  bottom: -74px;
  color: rgba(255,255,255,.035);
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(140px, 26vw, 290px);
  font-weight: 800;
  line-height: 1;
}
.closing-kicker {
  margin-bottom: 18px;
  color: var(--warm);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .19em;
}
#road-credits h2 {
  position: relative;
  z-index: 1;
  max-width: 850px;
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.22;
  letter-spacing: -.035em;
}
#road-credits > p {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 22px 0 30px;
  color: rgba(255,255,255,.68);
  font-size: 15px;
  line-height: 1.9;
}
.closing-cast {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid rgba(255,255,255,.14);
}
.closing-cast span { padding: 15px 12px 15px 0; color: var(--warm-soft); font-weight: 800; }
.closing-cast small { display: block; margin-top: 5px; color: rgba(255,255,255,.48); font-size: 10px; font-weight: 500; line-height: 1.45; }
.closing-line { position: relative; z-index: 1; margin-top: 22px; color: rgba(255,255,255,.86); font-family: Georgia, "Songti SC", serif; font-size: 18px; }
.road-toast {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 999;
  max-width: calc(100% - 30px);
  padding: 11px 16px;
  color: #fff;
  background: var(--night);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  box-shadow: 0 16px 42px rgba(8,18,14,.28);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: .2s ease;
}
.road-toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 760px) {
  .hero { min-height: 790px; }
  .hero h1 { font-size: clamp(62px, 19vw, 92px); line-height: .9; }
  .hero h1 span { margin-top: 14px; font-size: 18px; line-height: 1.45; }
  .hero-lead { font-size: 16px; line-height: 1.72; }
  .hero-actions .btn { flex: 1 1 calc(50% - 6px); }
  .hero-metrics { grid-template-columns: 1fr 1fr; }
  .metric { min-height: 92px; padding: 15px 12px; }
  .metric strong { font-size: 19px; }
  .metric span { font-size: 10px; }
  .story-cast { grid-template-columns: 1fr 1fr; }
  .chapter-opening { margin-inline: 0; padding: 20px 18px 20px 20px; }
  .chapter-opening::after { font-size: 66px; }
  .chapter-opening blockquote { font-size: 22px; }
  .chapter-opening p { font-size: 12px; }
  .day-index a { min-width: 67px; }
  .medical-board.single .symptom-lights { grid-template-columns: 1fr; }
  .crew-grid { grid-template-columns: 1fr 1fr; }
  .crew-member { min-width: 0; }
  #road-credits { margin-inline: 0; padding: 38px 22px 46px; }
  #road-credits h2 { font-size: 30px; }
  #road-credits > p { font-size: 13px; }
  .closing-cast { grid-template-columns: 1fr 1fr; }
}

@media print {
  #sources, .legacy-core, #ops { display: none !important; }
  .chapter-opening { break-inside: avoid; }
}
