:root {
  --paper: #efe6d4;
  --paper-2: #e7dcc3;
  --ink: #1a1610;
  --ink-2: #4a4336;
  --ink-3: #7a7163;
  --teal: #14615a;
  --teal-deep: #0b322f;
  --pool: #2fbfb0;
  --gold: #c9a15a;
  --ochre: #b85c2a;
  --cinnabar: #8e2e1c;
  --white: #fbf7ee;
  --line: rgba(26, 22, 16, 0.12);
  --shadow: 0 18px 50px rgba(26, 22, 16, 0.16);
  --font-serif: "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", "Noto Serif SC", serif;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --dock: 76px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(47, 191, 176, 0.12), transparent 50%),
    radial-gradient(900px 400px at 110% 8%, rgba(201, 161, 90, 0.16), transparent 46%),
    var(--paper);
  line-height: 1.55;
  min-height: 100dvh;
  padding-bottom: calc(var(--dock) + env(safe-area-inset-bottom));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.22;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.15  0 0 0 0 0.12  0 0 0 0 0.08  0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
}
.skip:focus {
  left: 12px;
  z-index: 20;
  background: var(--white);
  padding: 8px 12px;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px 8px;
}
.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.brand small {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.brand strong {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
}
.city-chip {
  border: 0;
  background: var(--teal-deep);
  color: var(--white);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.city-chip b { font-weight: 600; }
.city-chip { flex-shrink: 0; }

.hero {
  position: relative;
  margin: 6px 12px 18px;
  min-height: min(62dvh, 640px);
  border-radius: 4px 28px 4px 28px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow);
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
  transform: scale(1.06);
  animation: ken 18s ease-out both;
}
@keyframes ken {
  from { transform: scale(1.12) translateY(8px); }
  to { transform: scale(1.04) translateY(0); }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 50, 47, 0.08) 0%, rgba(11, 50, 47, 0.18) 38%, rgba(11, 22, 18, 0.78) 100%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  min-height: min(62dvh, 640px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 20px 22px;
  color: var(--white);
}
.kicker {
  font-size: 11px;
  letter-spacing: 0.18em;
  opacity: 0.82;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 7.2vw, 56px);
  line-height: 1.12;
  margin: 10px 0 8px;
  font-weight: 700;
  text-shadow: 0 8px 30px rgba(0,0,0,.28);
  overflow-wrap: anywhere;
}
.hero p.lede {
  margin: 0 0 18px;
  max-width: 28em;
  font-size: 15px;
  color: rgba(251, 247, 238, 0.9);
}
.now-card {
  background: rgba(251, 247, 238, 0.12);
  border: 1px solid rgba(251, 247, 238, 0.22);
  backdrop-filter: blur(16px);
  padding: 14px 14px 12px;
  display: grid;
  gap: 8px;
}
.now-card .label {
  font-size: 11px;
  letter-spacing: 0.22em;
  opacity: 0.75;
}
.now-card h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.25;
}
.now-card .meta {
  font-size: 13px;
  opacity: 0.88;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.now-card .actions .btn {
  padding: 9px 12px;
  font-size: 12px;
}
.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  color: var(--teal-deep);
  background: var(--gold);
  padding: 10px 14px;
  font-size: 13px;
  font-family: inherit;
  border-radius: 999px;
  font-weight: 600;
}
.btn.ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(251,247,238,.4);
}
.btn.ink {
  background: var(--teal-deep);
  color: var(--white);
}

.route {
  padding: 4px 18px 10px;
  overflow: auto hidden;
  display: flex;
  gap: 0;
  scrollbar-width: none;
}
.route::-webkit-scrollbar { display: none; }
.route-item {
  flex: 0 0 auto;
  min-width: 92px;
  padding: 10px 14px 12px 0;
  position: relative;
}
.route-item::after {
  content: "";
  position: absolute;
  left: 10px;
  right: -6px;
  top: 18px;
  height: 1px;
  background: linear-gradient(90deg, var(--teal), rgba(20,97,90,.15));
}
.route-item:last-child::after { display: none; }
.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(20, 97, 90, 0.12);
  margin-bottom: 8px;
}
.route-item.is-past .dot { background: var(--ink-3); box-shadow: none; }
.route-item.is-now .dot { background: var(--gold); box-shadow: 0 0 0 5px rgba(201,161,90,.28); }
.route-item .place {
  font-family: var(--font-serif);
  font-size: 16px;
}
.route-item .when {
  font-size: 11px;
  color: var(--ink-3);
}

.section {
  padding: 8px 18px 22px;
}
.section h3 {
  font-family: var(--font-serif);
  font-size: 26px;
  margin: 18px 0 6px;
}
.section .hint {
  color: var(--ink-2);
  font-size: 13px;
  margin: 0 0 14px;
}

.days {
  display: flex;
  gap: 8px;
  overflow: auto hidden;
  padding: 4px 2px 14px;
  scrollbar-width: none;
}
.days::-webkit-scrollbar { display: none; }
.day-chip {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: rgba(251,247,238,.55);
  min-width: 76px;
  padding: 10px 12px 9px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: var(--ink);
}
.day-chip .num {
  font-family: var(--font-serif);
  font-size: 22px;
  display: block;
  line-height: 1;
}
.day-chip .wd { font-size: 11px; color: var(--ink-3); }
.day-chip.is-today {
  background: var(--teal-deep);
  color: var(--white);
  border-color: transparent;
}
.day-chip.is-today .wd { color: rgba(255,255,255,.72); }
.day-chip.is-past { opacity: 0.55; }
.day-chip.is-on:not(.is-today) {
  box-shadow: inset 0 0 0 2px var(--teal);
}

.day-article {
  background: rgba(251, 247, 238, 0.62);
  border: 1px solid var(--line);
  overflow: hidden;
}
.day-cover {
  position: relative;
  height: 210px;
}
.day-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.day-cover .stamp {
  position: absolute;
  left: 14px;
  bottom: 12px;
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 42px;
  line-height: 0.9;
  text-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.day-body { padding: 16px 16px 8px; }
.day-body h4 {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 22px;
}
.day-extra {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
  margin: 4px 0 12px;
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 12px;
}
.pill {
  font-size: 12px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  color: var(--ink-2);
  background: rgba(255,255,255,.35);
}
.pill.warn { border-color: rgba(142, 46, 28, .35); color: var(--cinnabar); }
.pill.gold { border-color: rgba(201,161,90,.5); color: #7a5a1b; }

.timeline { display: grid; gap: 0; margin: 6px 0 12px; }
.t-item {
  display: grid;
  grid-template-columns: 64px 14px 1fr;
  gap: 8px;
  padding: 8px 0;
}
.t-item time {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--ink-3);
  padding-top: 2px;
}
.t-item .rail {
  position: relative;
}
.t-item .rail::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: -16px;
  width: 1px;
  background: var(--line);
}
.t-item:last-child .rail::before { display: none; }
.t-item .rail::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
  position: absolute;
  left: 1px;
  top: 6px;
}
.t-item.is-done { opacity: 0.45; }
.t-item.is-done .rail::after { background: var(--ink-3); }
.t-item.is-current .rail::after {
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,161,90,.25);
}
.t-item h5 { margin: 0 0 2px; font-size: 15px; font-weight: 650; }
.t-item p { margin: 0; font-size: 13px; color: var(--ink-2); }

.alert {
  background: #f4e4c4;
  border-left: 3px solid var(--ochre);
  padding: 10px 12px;
  font-size: 13px;
  margin: 8px 0 14px;
}
.past-note {
  font-size: 12px;
  color: var(--ink-3);
  padding: 0 16px 14px;
}

.flights, .hotels, .pack, .people {
  display: grid;
  gap: 10px;
}
.card {
  background: rgba(251,247,238,.7);
  border: 1px solid var(--line);
  padding: 14px;
}
.card h4 { margin: 0 0 4px; font-family: var(--font-serif); font-size: 20px; }
.card p { margin: 0; font-size: 13px; color: var(--ink-2); }
.flight-row {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  font-size: 14px;
}
.flight-row b { font-family: var(--font-serif); font-size: 18px; }
.hotel-grid {
  display: grid;
  gap: 12px;
}
.hotel {
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
}
.hotel img { width: 100%; height: 170px; object-fit: cover; display: block; }
.hotel .pad { padding: 12px 14px 14px; }
.hotel h4 { margin: 0 0 4px; font-family: var(--font-serif); font-size: 20px; }
.hotel p { margin: 0 0 8px; font-size: 13px; color: var(--ink-2); }

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.check:last-child { border-bottom: 0; }
.check input { margin-top: 3px; accent-color: var(--teal); width: 16px; height: 16px; }

.person {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.person:last-child { border-bottom: 0; }
.person small { color: var(--ink-3); display: block; font-size: 12px; }
.person a.call {
  background: var(--teal-deep);
  color: var(--white);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  white-space: nowrap;
}

.files a {
  display: flex;
  justify-content: space-between;
  text-decoration: none;
  color: var(--ink);
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.foot {
  padding: 10px 18px 24px;
  color: var(--ink-3);
  font-size: 12px;
}

.dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 8;
  display: flex;
  background: rgba(11, 50, 47, 0.94);
  color: var(--white);
  padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
  backdrop-filter: blur(16px);
}
.dock a {
  color: rgba(251,247,238,.88);
  text-decoration: none;
  text-align: center;
  font-size: 13px;
  padding: 10px 0 8px;
  flex: 1;
  min-width: 0;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(11, 22, 18, 0.46);
  z-index: 12;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.modal.open { display: flex; }
.sheet {
  background: var(--paper);
  width: min(560px, 100%);
  max-height: 80dvh;
  overflow: auto;
  padding: 16px 16px 24px;
  border-radius: 18px 18px 0 0;
}
.sheet h3 { font-family: var(--font-serif); margin: 4px 0 12px; }
.city-opt {
  width: 100%;
  text-align: left;
  padding: 12px;
  margin: 0 0 8px;
  border: 1px solid var(--line);
  background: rgba(251,247,238,.7);
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
}
.city-opt.is-on { outline: 2px solid var(--teal); }

@media (max-width: 640px) {
  .hero,
  .hero-copy {
    min-height: 0;
  }
  .hero-copy {
    padding-top: 108px;
  }
  .hero p.lede {
    display: none;
  }
  .route {
    padding-bottom: 18px;
  }
  .city-prefix { display: none; }
  .brand small { display: none; }
  .topbar { padding: 10px 14px 6px; }
  .dock a { font-size: 13px; }
}

@media (min-width: 880px) {
  .wrap { max-width: 1080px; padding-bottom: 40px; }
  .hero { min-height: 620px; border-radius: 6px 40px 6px 40px; }
  .hero-copy { min-height: 620px; padding: 40px; }
  .kicker { letter-spacing: 0.34em; font-size: 12px; }
  .hero h1 { overflow-wrap: normal; }
  .now-card .meta {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
  }
  .layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 18px;
    padding: 0 18px 20px;
  }
  .dock { left: auto; right: 24px; bottom: 24px; width: 280px; border-radius: 18px; padding-bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero img { animation: none; }
  html { scroll-behavior: auto; }
}
