/* ==========================================================================
   PAKIN.TOURS — 冬旅 · Northeast China Winter Ink Handscroll (Shuimo Huajuan)
   Design inspired by the seamless editorial scroll + generated ink paintings.
   Compliant with global standing rules: zero left-accent stripe boxes,
   unified rice-paper blending, and consistent paired button sizing.
   ========================================================================== */

:root {
  --snow: #ECEEEA;
  --paper: #F7F8F5;
  --ink: #1E2428;
  --ink-2: #485157;
  --wash: #7D878C;
  --line: #CBD1CE;
  --cin: #B5372A;
  --frost: #6F90A6;
  --frost-l: #D7E1E7;
  --gold: #C7A35E;
  --f-brush: "Ma Shan Zheng", "STKaiti", "KaiTi", serif;
  --f-zh: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --f-disp: "Chonburi", "Noto Serif SC", serif;
  --f-body: "Anuphan", "Noto Sans Thai", "Leelawadee UI", sans-serif;
  --gut: clamp(18px, 4vw, 48px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16.5px;
  line-height: 1.7;
  font-weight: 400;
  background-color: var(--snow);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .12 0 0 0 0 .14 0 0 0 0 .16 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; }
a { color: var(--cin); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cin); outline-offset: 3px; }
.zh { font-family: var(--f-zh); }
.tnum { font-variant-numeric: tabular-nums; }
.sr { position: absolute; left: -9999px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  height: clamp(540px, 74vh, 700px);
  overflow: hidden;
  background: var(--paper);
  isolation: isolate;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% 72%;
  display: block;
  mix-blend-mode: multiply;
  filter: saturate(0.92) contrast(1.04);
  animation: heroInkIn 1.4s ease-out both;
}
@keyframes heroInkIn {
  from { opacity: 0; transform: scale(1.035); }
  to { opacity: 1; transform: scale(1); }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 18% 24%, rgba(247, 248, 245, 0.84) 0%, rgba(247, 248, 245, 0.42) 38%, transparent 66%),
    linear-gradient(180deg, rgba(247, 248, 245, 0.16) 0%, transparent 28%, transparent 68%, rgba(236, 238, 234, 0.72) 88%, var(--snow) 100%);
}

.hero-col {
  position: absolute;
  z-index: 2;
  top: clamp(28px, 6vh, 60px);
  right: clamp(22px, 8vw, 120px);
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.hero-col .big {
  font-family: var(--f-brush);
  writing-mode: vertical-rl;
  font-size: clamp(108px, 15vw, 190px);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(247, 248, 245, 0.9);
}
.hero-col .small {
  writing-mode: vertical-rl;
  font-family: var(--f-zh);
  font-size: 15px;
  letter-spacing: 0.35em;
  color: var(--ink-2);
  padding-top: 10px;
}

.seal {
  display: inline-grid;
  place-content: center;
  background: var(--cin);
  color: #fbeee8;
  font-family: var(--f-zh);
  font-weight: 900;
  border-radius: 3px;
  box-shadow: inset 0 0 0 2px var(--cin), inset 0 0 0 3.5px rgba(255, 240, 232, 0.85);
}
.hero-col .seal {
  width: 46px;
  height: 88px;
  writing-mode: vertical-rl;
  font-size: 21px;
  letter-spacing: 0.05em;
  margin-top: clamp(150px, 22vw, 280px);
}

.hero-text {
  position: absolute;
  z-index: 2;
  left: var(--gut);
  top: clamp(40px, 8vh, 76px);
  max-width: min(780px, 66vw);
  text-shadow: 0 0 14px #F7F8F5, 0 0 28px #F7F8F5;
}
.hero-text h1 {
  font-family: var(--f-disp);
  font-size: clamp(32px, 4.5vw, 58px);
  line-height: 1.22;
  color: var(--ink);
}
.hero-text .when {
  margin-top: 14px;
  font-size: 17px;
  color: var(--ink-2);
}
.hero-route {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.hero-route b { font-family: var(--f-zh); font-weight: 600; font-size: 21px; }
.hero-route i { display: block; width: 26px; height: 2px; background: var(--cin); border-radius: 2px; }

.count {
  position: absolute;
  z-index: 3;
  left: var(--gut);
  bottom: clamp(26px, 5vh, 46px);
  width: 104px;
  height: 104px;
  border-radius: 50%;
  border: 2px solid var(--cin);
  color: var(--cin);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(-8deg);
  text-align: center;
  line-height: 1.1;
  background: rgba(247, 248, 245, 0.84);
  backdrop-filter: blur(6px);
}
.count b { font-family: var(--f-disp); font-size: 34px; line-height: 1; }
.count span { font-size: 13px; font-weight: 500; }

/* ===== Rail Navigation ===== */
.rail {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(236, 238, 234, 0.96);
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.rail ol {
  list-style: none;
  margin: 0;
  padding: 8px var(--gut);
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.rail ol::-webkit-scrollbar { display: none; }
.rail a {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 3px;
  text-decoration: none;
  color: var(--ink-2);
  white-space: nowrap;
  font-size: 14px;
}
.rail a b {
  font-family: var(--f-brush);
  font-weight: 400;
  font-size: 22px;
  color: var(--ink);
  line-height: 1;
}
.rail a:hover { background: rgba(30, 36, 40, 0.06); }
.rail a.on { background: var(--ink); color: var(--snow); }
.rail a.on b { color: var(--snow); }

@media (min-width: 1320px) {
  .rail {
    position: fixed;
    top: 50%;
    left: 16px;
    z-index: 40;
    transform: translateY(-50%) translateZ(0);
    isolation: isolate;
    background: rgba(247, 248, 245, 0.96);
    border: 0;
    border-radius: 6px;
    padding: 4px;
    box-shadow: 0 2px 16px rgba(30, 36, 40, 0.08);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }
  .rail.show { opacity: 1; pointer-events: auto; }
  .rail ol { flex-direction: column; padding: 0; gap: 2px; overflow: visible; }
  .rail a { flex-direction: column; align-items: center; gap: 0; padding: 8px 6px; width: 60px; }
  .rail a b { font-size: 26px; writing-mode: vertical-rl; letter-spacing: -0.05em; }
  .rail a span { font-size: 11px; }
}

/* ===== Scroll Overview ===== */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gut); }
.intro {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  padding-top: 52px;
  align-items: start;
}
.intro .lead {
  font-size: clamp(19px, 2.1vw, 22px);
  line-height: 1.75;
  color: var(--ink);
  max-width: 36em;
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 4px 28px;
  justify-content: start;
  align-content: start;
}
.facts dt { font-size: 13.5px; color: var(--wash); order: 2; }
.facts div { display: flex; flex-direction: column; }
.facts dd {
  margin: 0;
  font-family: var(--f-disp);
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.25;
}
.facts .note {
  grid-column: 1 / -1;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.65;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: baseline;
}
.facts .note .note-k {
  font-family: var(--f-zh);
  font-weight: 600;
  color: var(--cin);
}

.scroll {
  margin-top: 44px;
  position: relative;
  overflow-x: auto;
  padding: 4px 0 14px;
  scrollbar-width: thin;
}
.scroll ol {
  list-style: none;
  margin: 0;
  padding: 0 2px;
  display: grid;
  grid-template-columns: repeat(12, minmax(84px, 1fr));
  min-width: 1000px;
  position: relative;
}
.scroll ol::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 44px;
  height: 3px;
  background: var(--ink);
  border-radius: 2px;
  opacity: 0.85;
}
.scroll li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  text-align: center;
  padding: 0 4px;
}
.scroll .d { font-size: 12.5px; color: var(--wash); height: 26px; }
.scroll .k {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--snow);
  border: 3px solid var(--ink);
  margin: 4px 0 10px;
  position: relative;
  z-index: 1;
}
.scroll .c { font-family: var(--f-zh); font-weight: 600; font-size: 16px; line-height: 1.3; }
.scroll .t { font-size: 12.5px; color: var(--ink-2); line-height: 1.35; margin-top: 2px; }
.scroll li.hl .k {
  background: var(--cin);
  border-color: var(--cin);
  width: 19px;
  height: 19px;
  margin: 2px 0 8px;
}
.scroll li.today .k { box-shadow: 0 0 0 5px rgba(181, 55, 42, 0.25); }
.scroll li a:hover .c { color: var(--cin); }

/* ===== Chapters & Ink-Wash Art Banners ===== */
.chapter { margin-top: 110px; }

.banner {
  position: relative;
  height: clamp(240px, 34vw, 410px);
  overflow: hidden;
  background: var(--snow);
  isolation: isolate;
}
.banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.banner-paper .banner-img {
  mix-blend-mode: multiply;
  filter: saturate(0.86) contrast(1.05);
  transform: scale(1.02);
}
.banner-paper::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    var(--snow) 0%,
    rgba(236, 238, 234, 0.34) 10%,
    transparent 24%,
    transparent 58%,
    rgba(236, 238, 234, 0.72) 86%,
    var(--snow) 100%
  );
}

.banner-night {
  background: #161B1F;
  height: clamp(270px, 38vw, 460px);
}
.banner-night .banner-img {
  object-position: center 92%;
  filter: contrast(1.05);
}
.banner-night::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    var(--snow) 0%,
    rgba(236, 238, 234, 0.22) 8%,
    transparent 18%,
    transparent 76%,
    rgba(236, 238, 234, 0.42) 88%,
    var(--snow) 100%
  );
}

.ch-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: end;
  margin-top: 18px;
  position: relative;
  z-index: 2;
}
.ch-char {
  font-family: var(--f-brush);
  font-size: clamp(108px, 15vw, 196px);
  line-height: 0.82;
  color: var(--ink);
  white-space: nowrap;
  text-shadow: 0 2px 18px rgba(236, 238, 234, 0.96);
}
.chapter .ch-char { margin-top: calc(-0.52em); position: relative; }
.ch-meta .num { font-family: var(--f-zh); font-size: 15px; letter-spacing: 0.3em; color: var(--cin); }
.ch-meta h2 { font-family: var(--f-disp); font-size: clamp(28px, 3.6vw, 42px); line-height: 1.25; margin: 4px 0 6px; }
.ch-meta p { color: var(--ink-2); max-width: 34em; }
.temp { text-align: right; color: var(--frost); padding-bottom: 6px; }
.temp b { display: block; font-family: var(--f-disp); font-size: clamp(40px, 5vw, 62px); line-height: 1; }
.temp span { font-size: 13.5px; color: var(--ink-2); }

.ch-body {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(28px, 5vw, 64px);
  margin-top: 44px;
  align-items: start;
}
.aside {
  position: sticky;
  top: 76px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.note-card {
  background: var(--paper);
  padding: 18px 18px 16px;
  border-top: 2px solid var(--ink);
  position: relative;
}
.note-card .lab {
  font-family: var(--f-zh);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.25em;
  color: var(--wash);
}
.note-card .seal { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; font-size: 17px; }
.note-card h4 { font-family: var(--f-disp); font-size: 19px; line-height: 1.35; margin: 6px 0 4px; padding-right: 36px; }
.note-card .zbtn {
  display: block;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: var(--f-zh);
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--cin);
  word-break: break-word;
}
.note-card .zbtn:hover { text-decoration: underline; }
.note-card .sub { font-size: 14px; color: var(--ink-2); margin-top: 6px; }
.note-card dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 10px 0 0; font-size: 14px; }
.note-card dt { color: var(--wash); }
.note-card dd { margin: 0; }
.note-card .acts { display: flex; gap: 14px; margin-top: 12px; font-size: 14px; flex-wrap: wrap; }

.status {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 500;
  padding: 0 8px;
  border-radius: 2px;
  border: 1px solid currentColor;
  line-height: 1.6;
}
.status.paid { color: #2f6b55; }
.status.wait { color: #8a6a1f; }
.status.todo { color: var(--cin); }

/* ===== Day Timeline ===== */
.day {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 22px;
  padding: 34px 0 30px;
  border-top: 1px solid var(--line);
}
.day:first-child { border-top: 0; padding-top: 0; }
.day-n { text-align: center; }
.day-n b {
  display: block;
  font-family: var(--f-brush);
  font-weight: 400;
  font-size: 66px;
  line-height: 1;
  color: var(--ink);
}
.day-n span {
  display: block;
  font-size: 13px;
  color: var(--wash);
  line-height: 1.4;
  margin-top: 6px;
}
.day.today .day-n b { color: var(--cin); }
.day-n b.two { font-size: 42px; white-space: nowrap; letter-spacing: -0.06em; padding-top: 12px; }
.day-top .date { font-size: 14.5px; color: var(--wash); }
.day-top h3 { font-family: var(--f-disp); font-size: clamp(22px, 2.4vw, 27px); line-height: 1.35; margin: 2px 0; }
.day-top .en { font-style: italic; color: var(--ink-2); font-size: 15px; }
.today-tag {
  display: inline-block;
  background: var(--cin);
  color: #fff;
  font-size: 12.5px;
  padding: 0 9px;
  border-radius: 2px;
  margin-left: 8px;
  vertical-align: 2px;
  font-style: normal;
}
.move {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 12px 0 4px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.move b { font-weight: 500; color: var(--ink); }

.tl { list-style: none; margin: 18px 0 0; padding: 0; position: relative; }
.tl::before {
  content: "";
  position: absolute;
  left: 83px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(var(--ink), rgba(30, 36, 40, 0.25));
}
.tl li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 28px;
  padding: 7px 0 11px;
  position: relative;
}
.tl li::before {
  content: "";
  position: absolute;
  left: 79px;
  top: 15px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--snow);
  border: 2px solid var(--ink);
}
.tl .t {
  text-align: right;
  font-weight: 500;
  font-size: 14.5px;
  color: var(--cin);
  padding-top: 2px;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}
.tl .p { font-weight: 600; font-size: 16.5px; }
.tl .dsc { font-size: 14.5px; color: var(--ink-2); }

.zrow { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 3px 0 2px; }
.zn {
  cursor: pointer;
  background: none;
  border: 0;
  border-bottom: 1px dashed var(--wash);
  padding: 0 0 1px;
  display: inline-flex;
  flex-wrap: wrap;
  column-gap: 7px;
  row-gap: 0;
  align-items: baseline;
  text-align: left;
}
.zn .zh { font-weight: 600; font-size: 16px; color: var(--ink); white-space: nowrap; }
.zn i { font-style: normal; font-size: 12.5px; color: var(--wash); }
.zn:hover .zh { color: var(--cin); }
.zn:hover { border-bottom-color: var(--cin); }

/* Standing policy compliant open horizontal rule footnote (zero left stripe / zero tinted box) */
.day-alert {
  margin: 14px 0 0;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: baseline;
}
.day-alert-k {
  font-family: var(--f-zh);
  font-weight: 600;
  color: var(--cin);
  white-space: nowrap;
}

.dnote {
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--ink-2);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
}
.dnote::before { content: "注"; font-family: var(--f-zh); font-weight: 600; color: var(--cin); }

details.ride {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
details.ride summary {
  cursor: pointer;
  list-style: none;
  padding: 10px 0;
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 500;
  font-size: 15px;
}
details.ride summary::-webkit-details-marker { display: none; }
details.ride summary .plus {
  margin-left: auto;
  font-family: var(--f-zh);
  color: var(--cin);
  font-size: 18px;
  transition: transform 0.2s;
}
details.ride[open] summary .plus { transform: rotate(45deg); }

.dot-mini { display: inline-flex; gap: 3px; }
.dot-mini i { width: 9px; height: 9px; border-radius: 50%; }
.seg { padding: 16px 0 18px; border-top: 1px dashed var(--line); }
.seg-h { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.seg-h b { font-weight: 600; font-size: 15.5px; }
.seg-h span { font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.seg .cond { display: inline-block; margin-top: 4px; font-size: 13px; color: var(--cin); }

.leg { margin-top: 32px; }
.leg-bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0; }
.leg-bar .st { width: 16px; height: 16px; border-radius: 50%; background: var(--snow); border: 4px solid var(--lc); }
.leg-bar .ln { height: 6px; background: var(--lc); position: relative; }
.leg-bar .ln em {
  position: absolute;
  left: 50%;
  top: -24px;
  transform: translateX(-50%);
  font-style: normal;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  background: var(--lc);
  padding: 0 8px;
  border-radius: 2px;
  white-space: nowrap;
}
.leg-lbl { display: flex; justify-content: space-between; gap: 12px; margin-top: 4px; font-size: 13.5px; line-height: 1.35; }
.leg-lbl div:last-child { text-align: right; }
.leg-lbl .zh { display: block; font-weight: 600; font-size: 15px; }
.leg-lbl small { color: var(--wash); }
.leg-dir { font-size: 12.5px; color: var(--wash); text-align: center; margin-top: 2px; }
.xfer { display: flex; align-items: center; gap: 8px; margin: 10px 0 4px; font-size: 13px; color: var(--ink-2); }
.xfer::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--ink); background: var(--snow); flex: none; }
.seg .tip { margin-top: 10px; font-size: 14px; color: var(--ink-2); }

/* ===== NYE Painting Card (Day 8) ===== */
.nye {
  margin-top: 18px;
  position: relative;
  background: #1B2126;
  color: #EDE6D6;
  padding: 26px 26px 24px;
  overflow: hidden;
  min-height: 196px;
}
.nye-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  display: block;
}
.nye::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(27, 33, 38, 0.92) 0%, rgba(27, 33, 38, 0.72) 45%, rgba(27, 33, 38, 0.12) 100%);
  pointer-events: none;
}
.nye .yr {
  position: relative;
  z-index: 2;
  font-family: var(--f-brush);
  font-size: clamp(54px, 8vw, 88px);
  line-height: 1;
  color: var(--gold);
}
.nye p {
  position: relative;
  z-index: 2;
  max-width: 26em;
  font-size: 15px;
  color: #e4dccd;
  margin-top: 8px;
}

/* ===== Interludes & Boarding Pass ===== */
.inter {
  margin-top: 110px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(20px, 4vw, 48px);
  align-items: start;
}
.inter .ch-char { font-size: clamp(96px, 12vw, 150px); }
.inter .lab { font-family: var(--f-zh); font-size: 15px; letter-spacing: 0.3em; color: var(--cin); }
.inter h2 { font-family: var(--f-disp); font-size: clamp(26px, 3vw, 36px); line-height: 1.3; margin: 4px 0 18px; }
.inter .day { grid-template-columns: 72px 1fr; }
.inter .day-n b { font-size: 52px; }

.pass {
  display: grid;
  grid-template-columns: 1fr auto;
  background: var(--paper);
  margin-top: 14px;
  position: relative;
  max-width: 560px;
}
.pass::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 104px;
  border-left: 2px dashed var(--line);
}
.pass .m { padding: 14px 18px; }
.pass .r {
  width: 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
}
.pass .r b { font-family: var(--f-disp); font-size: 19px; color: var(--cin); line-height: 1.2; }
.pass .r span { font-size: 12px; color: var(--wash); }
.pass .ft { display: flex; align-items: center; gap: 12px; }
.pass .code { font-family: var(--f-disp); font-size: 30px; line-height: 1.1; }
.pass .tm { font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pass .ln { flex: 1; border-top: 2px dotted var(--wash); position: relative; min-width: 40px; }
.pass .ln::after {
  content: "✈";
  position: absolute;
  left: 50%;
  top: -14px;
  transform: translateX(-50%);
  background: var(--paper);
  padding: 0 6px;
  color: var(--cin);
}
.pass .ap { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--wash); margin-top: 2px; }
.pass .meta { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--ink-2); margin-bottom: 6px; }

/* ===== Handbook ===== */
.hb {
  margin-top: 130px;
  padding: 64px 0 80px;
  background: var(--paper);
  border-top: 3px solid var(--ink);
  position: relative;
  overflow: hidden;
}
.hb-pine {
  position: absolute;
  top: 0;
  right: 0;
  width: min(560px, 55vw);
  height: 290px;
  object-fit: cover;
  object-position: left top;
  mix-blend-mode: multiply;
  opacity: 0.24;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse at 78% 18%, #000 18%, rgba(0, 0, 0, 0.35) 54%, transparent 78%);
  mask-image: radial-gradient(ellipse at 78% 18%, #000 18%, rgba(0, 0, 0, 0.35) 54%, transparent 78%);
}
.hb-inner { position: relative; z-index: 2; }
.hb-head { display: flex; gap: 24px; align-items: flex-end; flex-wrap: wrap; }
.hb-head .ch-char { font-size: clamp(72px, 9vw, 120px); text-shadow: none; }
.hb-head h2 { font-family: var(--f-disp); font-size: clamp(26px, 3vw, 38px); }
.hb-head p { color: var(--ink-2); }

.tabs {
  display: flex;
  gap: 2px;
  margin-top: 30px;
  border-bottom: 2px solid var(--ink);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex: none;
  cursor: pointer;
  background: none;
  border: 0;
  min-height: 44px;
  padding: 10px 16px 8px;
  font-size: 15px;
  color: var(--ink-2);
  display: inline-flex;
  gap: 7px;
  align-items: baseline;
  border-radius: 3px 3px 0 0;
  white-space: nowrap;
}
.tabs button .zh { font-weight: 600; color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--snow); }
.tabs button[aria-selected="true"] .zh { color: var(--snow); }

.panel { padding-top: 30px; }
.panel[hidden] { display: none; }
.panel h3 { font-family: var(--f-disp); font-size: 21px; margin: 30px 0 12px; }
.panel h3:first-child { margin-top: 0; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.plain { font-size: 15px; color: var(--ink-2); }
.plain ul, .plain ol { margin: 6px 0 0; padding-left: 20px; }
.plain li { margin: 4px 0; }

/* Consistent, uniform button dimensions */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  padding: 6px 16px;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  border-radius: 2px;
  cursor: pointer;
  background: none;
  white-space: nowrap;
}
.btn:hover { background: var(--ink); color: var(--snow); }
.btn.red { background: var(--cin); border-color: var(--cin); color: #fff; }
.btn.red:hover { background: #982b20; border-color: #982b20; color: #fff; }
.btns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
  max-width: 490px;
}
.btns .btn { width: 100%; }

/* Rail tickets */
.tix { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 16px; }
.tk {
  position: relative;
  background: #E3ECF1;
  padding: 16px 18px 14px;
  overflow: hidden;
  background-image: repeating-linear-gradient(135deg, rgba(111, 144, 166, 0.08) 0 2px, transparent 2px 9px);
}
.tk .top { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-2); }
.tk .row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 10px 0 6px; }
.tk .row div:last-child { text-align: right; }
.tk .stn { font-family: var(--f-zh); font-weight: 900; font-size: 22px; line-height: 1.2; }
.tk .row small { display: block; font-size: 12.5px; color: var(--ink-2); }
.tk .no { text-align: center; font-family: var(--f-disp); font-size: 20px; color: var(--cin); line-height: 1.1; }
.tk .no small { font-family: var(--f-body); font-size: 11.5px; color: var(--ink-2); }
.tk .arrow { display: block; height: 2px; background: var(--ink); margin-top: 4px; position: relative; }
.tk .arrow::after { content: ""; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-left: 7px solid var(--ink); border-right: 0; }
.tk .bot { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; border-top: 1px dashed rgba(30, 36, 40, 0.3); padding-top: 8px; }
.tk .bot b { font-family: var(--f-disp); font-weight: 400; font-size: 18px; }
.tk .stamp {
  position: absolute;
  right: 14px;
  top: 36px;
  transform: rotate(-12deg);
  border: 2px solid var(--cin);
  color: var(--cin);
  font-size: 12.5px;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 2px;
  opacity: 0.85;
  background: rgba(227, 236, 241, 0.6);
}
.tk .nt { font-size: 13px; color: var(--ink-2); margin-top: 6px; }

/* Hotels */
.stays { display: flex; flex-direction: column; }
.stay { display: grid; grid-template-columns: 120px 1fr 170px 170px; gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); align-items: start; }
.stay .w { font-family: var(--f-disp); font-size: 17px; line-height: 1.35; }
.stay .w small { display: block; font-family: var(--f-body); font-size: 13px; color: var(--wash); }
.stay h4 { font-weight: 600; font-size: 16.5px; }
.stay .zbtn { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; font-family: var(--f-zh); font-weight: 600; font-size: 14.5px; color: var(--cin); line-height: 1.45; }
.stay .area { font-size: 14px; color: var(--ink-2); }
.stay .lk { font-size: 13.5px; display: flex; gap: 12px; margin-top: 4px; }
.stay .money { font-size: 14px; }
.stay .money b { font-family: var(--f-disp); font-weight: 400; font-size: 18px; display: block; }
.stay .dates { font-size: 13.5px; color: var(--ink-2); }
.stay .dates b { color: var(--ink); font-weight: 500; }

/* Budget */
.budget { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: center; }
.donut { position: relative; width: 260px; height: 260px; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut .ctr { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.donut .ctr b { font-family: var(--f-disp); font-size: 30px; line-height: 1.1; }
.donut .ctr span { font-size: 13px; color: var(--wash); }
.bl { list-style: none; margin: 0; padding: 0; }
.bl li { display: grid; grid-template-columns: 14px 1fr auto; gap: 12px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line); }
.bl li i { width: 14px; height: 14px; border-radius: 2px; align-self: center; }
.bl .v { font-family: var(--f-disp); font-size: 18px; text-align: right; font-variant-numeric: tabular-nums; }
.bl small { display: block; color: var(--wash); font-size: 13px; }
.paidbar { margin-top: 18px; }
.paidbar .bar { display: flex; height: 12px; background: var(--line); }
.paidbar .bar div { background: #2f6b55; }
.paidbar .lbl { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--ink-2); margin-top: 6px; gap: 10px; }

table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
th, td { padding: 9px 8px; text-align: left; border-top: 1px solid var(--line); vertical-align: top; }
th { font-weight: 500; color: var(--wash); font-size: 13px; border-top: 0; }
td.r, th.r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tfoot td { font-weight: 600; border-top: 2px solid var(--ink); }

/* Checklist */
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { border-top: 1px solid var(--line); }
.checks label { display: grid; grid-template-columns: 28px 160px 1fr; gap: 18px; padding: 16px 0; cursor: pointer; align-items: start; }
.checks input { appearance: none; width: 24px; height: 24px; border: 2px solid var(--ink); border-radius: 2px; margin: 3px 0 0; cursor: pointer; display: grid; place-items: center; background: var(--snow); }
.checks input:checked { background: var(--cin); border-color: var(--cin); }
.checks input:checked::after { content: "✓"; color: #fff; font-size: 15px; font-weight: 700; line-height: 1; }
.checks .when { font-size: 14px; color: var(--cin); font-weight: 500; line-height: 1.5; }
.checks h4 { font-weight: 600; font-size: 16px; line-height: 1.5; }
.checks .body { font-size: 14.5px; color: var(--ink-2); }
.checks .body ul, .checks .body ol { margin: 4px 0 0; padding-left: 20px; }
.checks li.done h4 { text-decoration: line-through; color: var(--wash); }
.prog { font-size: 14.5px; color: var(--ink-2); margin-bottom: 8px; }

/* Metro lines */
.mlines { display: flex; flex-direction: column; gap: 26px; }
.ml h4 { font-size: 16px; font-weight: 600; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ml h4 .badge { color: #fff; font-size: 13px; padding: 1px 9px; border-radius: 2px; }
.ml h4 small { font-weight: 400; font-size: 13.5px; color: var(--wash); }
.mtrack { overflow-x: auto; padding: 14px 0 4px; }
.mtrack ol { list-style: none; margin: 0; padding: 0; display: flex; min-width: max-content; }
.mtrack li { width: 112px; text-align: center; position: relative; padding-top: 24px; font-size: 12.5px; line-height: 1.3; color: var(--ink-2); }
.mtrack li::before { content: ""; position: absolute; top: 9px; left: 0; right: 0; height: 6px; background: var(--lc); }
.mtrack li:first-child::before { left: 50%; }
.mtrack li:last-child::before { right: 50%; }
.mtrack li::after { content: ""; position: absolute; top: 3px; left: 50%; transform: translateX(-50%); width: 18px; height: 18px; border-radius: 50%; background: var(--snow); border: 4px solid var(--lc); box-sizing: border-box; }
.mtrack li .zh { display: block; font-weight: 600; font-size: 15px; color: var(--ink); }

/* Phrases & Uniform Filter Group */
.ask {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 30px;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.ask .zh { font-size: 24px; font-weight: 600; }
.ask small { display: block; font-size: 13.5px; color: var(--wash); }
.ptools { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 14px; align-items: center; }
.ptools input {
  flex: 1 1 240px;
  min-width: 220px;
  min-height: 38px;
  font: inherit;
  font-size: 15px;
  padding: 6px 12px;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  background: var(--snow);
}
.pfilt {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  flex: 0 1 580px;
}
.pfilt button {
  cursor: pointer;
  background: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  min-height: 38px;
  padding: 6px 10px;
  font-size: 14px;
  color: var(--ink-2);
  white-space: nowrap;
  text-align: center;
  width: 100%;
}
.pfilt button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--snow);
  border-color: var(--ink);
}
.phr { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pc { cursor: pointer; text-align: left; background: var(--paper); border: 0; padding: 12px 14px; display: flex; flex-direction: column; gap: 1px; }
.pc:hover { background: #fff; }
.pc .zh { font-weight: 600; font-size: 20px; line-height: 1.35; }
.pc .py { font-size: 12px; color: var(--wash); }
.pc .th { font-size: 13.5px; color: var(--ink-2); }
.empty { padding: 16px; color: var(--wash); font-size: 14.5px; background: var(--paper); grid-column: 1 / -1; }

/* Driver Card Modal */
.ov {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(20, 24, 27, 0.82);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.ov.on { display: flex; }
.ov-card {
  background: var(--paper);
  max-width: 660px;
  width: 100%;
  padding: 30px 24px 24px;
  text-align: center;
  position: relative;
}
.ov-card .seal { position: absolute; top: -18px; left: 50%; transform: translateX(-50%) rotate(-4deg); width: 40px; height: 40px; font-size: 19px; }
.ov-card .q { font-family: var(--f-zh); font-size: 20px; color: var(--ink-2); margin-top: 6px; }
.ov-card .q small { display: block; font-family: var(--f-body); font-size: 13px; color: var(--wash); }
.ov-card .big { font-family: var(--f-zh); font-weight: 900; font-size: clamp(34px, 9vw, 66px); line-height: 1.25; margin: 16px 0 10px; word-break: break-word; }
.ov-card .py { color: var(--wash); }
.ov-card .row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 340px;
  margin: 22px auto 0;
}
.ov-card .row .btn { width: 100%; }

footer { padding: 56px var(--gut) 60px; text-align: center; background: var(--ink); color: #c9cfcc; }
footer .b { font-family: var(--f-brush); font-size: clamp(40px, 6vw, 64px); color: var(--snow); line-height: 1.2; }
footer p { font-size: 14px; margin-top: 8px; }

@media (max-width: 900px) {
  .intro { grid-template-columns: 1fr; gap: 28px; }
  .ch-body { grid-template-columns: 1fr; }
  .aside { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .cols, .budget { grid-template-columns: 1fr; }
  .stay { grid-template-columns: 100px 1fr; }
  .stay .money, .stay .dates { grid-column: 2; }
  .checks label { grid-template-columns: 28px 1fr; }
  .checks .when { grid-column: 2; }
  .checks .txt { grid-column: 2; }
  .pfilt { flex: 1 1 100%; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero { height: 600px; }
  .hero-col { right: 14px; top: auto; bottom: 22px; gap: 8px; align-items: flex-end; }
  .hero-col .small { display: none; }
  .hero-col .seal { margin-top: 0; width: 34px; height: 66px; font-size: 16px; }
  .hero-col .big { font-size: 84px; }
  .hero-text { top: 30px; max-width: none; right: var(--gut); }
  .count { width: 86px; height: 86px; }
  .count b { font-size: 28px; }
  .ch-head { grid-template-columns: 1fr auto; gap: 12px; }
  .ch-char { grid-column: 1 / -1; }
  .temp { align-self: end; }
  .day { grid-template-columns: 52px 1fr; gap: 14px; }
  .day-n b { font-size: 44px; }
  .day-n b.two { font-size: 28px; }
  .chapter .ch-char { margin-top: -0.4em; }
  .inter { grid-template-columns: 1fr; }
  .inter .day { grid-template-columns: 52px 1fr; }
  .tl::before { left: 6px; }
  .tl li { grid-template-columns: 1fr; gap: 0; padding-left: 26px; }
  .tl li::before { left: 2px; }
  .tl .t { text-align: left; }
  .facts { grid-template-columns: 1fr 1fr; }
  .stay { grid-template-columns: 1fr; }
  .stay .money, .stay .dates { grid-column: auto; }
  .btns { grid-template-columns: 1fr; max-width: none; }
  .hb-pine { width: 70vw; opacity: 0.16; }
}

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