/* ==========================================================================
   PAKIN.TOURS — 冬旅 · Northeast China Winter Ink Handscroll (Shuimo Huajuan)
   Refined gallery-grade Chinese ink-wash editorial aesthetic.
   Compliant with global standing rules: zero left-accent stripe boxes,
   ultra-light seamless surfaces, and strictly equal paired/grouped buttons.
   ========================================================================== */

@font-face {
  font-family: "Ma Shan Zheng";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/ma-shan-zheng.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Serif SC";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/noto-serif-sc-400.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Serif SC";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/noto-serif-sc-600.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Serif SC";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("assets/fonts/noto-serif-sc-900.woff2") format("woff2");
}
@font-face {
  font-family: "Anuphan";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("assets/fonts/anuphan-thai.woff2") format("woff2");
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: "Anuphan";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("assets/fonts/anuphan-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Anuphan";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("assets/fonts/anuphan-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Noto Serif Thai";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/noto-serif-thai-thai.woff2") format("woff2");
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: "Noto Serif Thai";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/noto-serif-thai-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Noto Serif Thai";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/noto-serif-thai-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --snow: #ECEEEA;
  --paper: #F7F8F5;
  --paper-soft: rgba(247, 248, 245, 0.78);
  --ink: #1B2125;
  --ink-2: #4A545B;
  --wash: #7B858B;
  --line: rgba(27, 33, 37, 0.13);
  --line-strong: rgba(27, 33, 37, 0.26);
  --cin: #B5372A;
  --cin-deep: #962A1F;
  --cin-soft: rgba(181, 55, 42, 0.09);
  --frost: #62849B;
  --frost-soft: rgba(98, 132, 155, 0.11);
  --jade: #2C6752;
  --jade-soft: rgba(44, 103, 82, 0.10);
  --amber: #8A661B;
  --amber-soft: rgba(138, 102, 27, 0.11);
  --gold: #CBA65C;
  --f-brush: "Ma Shan Zheng", "STKaiti", "KaiTi", serif;
  --f-zh: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --f-disp: "Noto Serif Thai", "Noto Serif SC", "Anuphan", serif;
  --f-body: "Anuphan", "Noto Sans Thai", "Leelawadee UI", sans-serif;
  --gut: clamp(20px, 4.2vw, 52px);
  --radius: 6px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (max-width: 1319px) {
  html { scroll-padding-top: 62px; }
}
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  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 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  overflow-x: clip;
}

h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; }
a { color: var(--cin); text-underline-offset: 3px; }
a:hover { color: var(--cin-deep); }
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; }
.nw { white-space: nowrap; }
.sr { position: absolute; left: -9999px; }

/* ===== Top Ink Scroll Progress Stroke ===== */
.scroll-ink {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 55;
  background: linear-gradient(90deg, var(--ink) 0%, var(--cin) 100%);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
  opacity: 0.78;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: clamp(540px, 76vh, 720px);
  overflow: clip;
  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.03); }
  to { opacity: 1; transform: scale(1); }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 18% 22%, rgba(247, 248, 245, 0.86) 0%, rgba(247, 248, 245, 0.40) 40%, transparent 68%),
    linear-gradient(180deg, rgba(247, 248, 245, 0.14) 0%, transparent 26%, transparent 66%, rgba(236, 238, 234, 0.76) 88%, var(--snow) 100%);
}

.hero-col {
  position: absolute;
  z-index: 2;
  top: clamp(28px, 6vh, 62px);
  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(110px, 15vw, 192px);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
  text-shadow: 0 2px 24px rgba(247, 248, 245, 0.94);
}
.hero-col .small {
  writing-mode: vertical-rl;
  font-family: var(--f-zh);
  font-size: 14.5px;
  letter-spacing: 0.38em;
  color: var(--ink-2);
  padding-top: 12px;
}

.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.2px rgba(255, 240, 232, 0.82);
}
.hero-col .seal {
  width: 44px;
  height: 84px;
  writing-mode: vertical-rl;
  font-size: 20px;
  letter-spacing: 0.06em;
  margin-top: clamp(150px, 22vw, 276px);
}

.hero-text {
  position: absolute;
  z-index: 2;
  left: var(--gut);
  top: clamp(42px, 8vh, 80px);
  max-width: min(760px, 65vw);
  text-shadow: 0 0 18px #F7F8F5, 0 0 32px #F7F8F5;
}
.hero-text h1 {
  font-family: var(--f-disp);
  font-weight: 700;
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.24;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.hero-text .when {
  margin-top: 12px;
  font-size: 16px;
  color: var(--ink-2);
  letter-spacing: 0.01em;
}
.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: 20px;
  color: var(--ink);
}
.hero-route i {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--cin);
  opacity: 0.78;
  border-radius: 2px;
}

.count {
  position: absolute;
  z-index: 3;
  left: var(--gut);
  bottom: clamp(26px, 5vh, 46px);
  padding: 0;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  line-height: 1.15;
  text-shadow: 0 0 14px rgba(247, 248, 245, 0.96), 0 0 26px rgba(247, 248, 245, 0.90);
}
.count::before {
  content: "";
  position: absolute;
  inset: -14px -28px -12px -20px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 40% 52%, rgba(247, 248, 245, 0.88) 24%, rgba(247, 248, 245, 0.48) 58%, rgba(247, 248, 245, 0) 84%);
}
.count .cd-top {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--cin);
  letter-spacing: 0.02em;
}
.count .cd-top .cd-zh {
  font-family: var(--f-zh);
  font-weight: 700;
  font-size: 12.5px;
}
.count .cd-time {
  font-family: var(--f-disp);
  font-weight: 600;
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--ink);
  white-space: nowrap;
}
.count .cd-time em {
  font-style: normal;
  color: var(--cin);
  opacity: 0.78;
  margin: 0 1px;
}

/* ===== 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;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.rail ol::-webkit-scrollbar { display: none; }
.rail a {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 4px;
  text-decoration: none;
  color: var(--ink-2);
  white-space: nowrap;
  font-size: 13.5px;
}
.rail a b {
  font-family: var(--f-brush);
  font-weight: 400;
  font-size: 21px;
  color: var(--ink);
  line-height: 1;
}
.rail a:hover { background: rgba(27, 33, 37, 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.95);
    border: 1px solid rgba(27, 33, 37, 0.07);
    border-radius: 8px;
    padding: 5px;
    box-shadow: 0 4px 22px rgba(27, 33, 37, 0.07);
    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: 1px; padding: 8px 6px; width: 60px; border-radius: 5px; }
  .rail a b { font-size: 25px; writing-mode: vertical-rl; letter-spacing: -0.05em; }
  .rail a span { font-size: 10.5px; }
}

/* ===== Overview & 12-Day Scroll Ribbon ===== */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 var(--gut); }
.intro {
  padding-top: 44px;
}
.facts {
  display: grid;
  grid-template-columns: auto auto auto 1fr;
  gap: 8px 44px;
  align-items: center;
}
.facts dt { font-size: 13px; color: var(--wash); order: 2; margin-top: 2px; }
.facts div { display: flex; flex-direction: column; }
.facts dd {
  margin: 0;
  font-family: var(--f-disp);
  font-weight: 600;
  letter-spacing: -0.015em;
  font-size: clamp(24px, 2.5vw, 30px);
  line-height: 1.2;
  color: var(--ink);
}
.facts .note {
  margin: 0;
  padding-left: 28px;
  border-left: 0;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.6;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  align-items: baseline;
  justify-self: end;
  max-width: 400px;
}
.facts .note .note-k {
  font-family: var(--f-zh);
  font-weight: 600;
  color: var(--cin);
}

.scroll {
  margin-top: 48px;
  position: relative;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  padding: 6px 0 12px;
  scrollbar-width: none;
}
.scroll::-webkit-scrollbar { display: none; }
.scroll ol {
  list-style: none;
  margin: 0;
  padding: 0 2px;
  display: grid;
  grid-template-columns: repeat(12, minmax(74px, 1fr));
  min-width: 920px;
  position: relative;
}
.scroll ol::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 41px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent 0%, var(--ink) 4%, var(--ink) 96%, transparent 100%);
  opacity: 0.48;
}
.scroll li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  text-align: center;
  padding: 2px 5px 6px;
  border-radius: 6px;
  transition: transform 0.18s ease, background 0.18s ease;
}
.scroll li a:hover {
  background: rgba(247, 248, 245, 0.7);
  transform: translateY(-2px);
}
.scroll .d { font-size: 12px; color: var(--wash); height: 24px; }
.scroll .k {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--snow);
  border: 2px solid var(--ink);
  margin: 5px 0 11px;
  position: relative;
  z-index: 1;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.scroll li a:hover .k { border-color: var(--cin); }
.scroll .c { font-family: var(--f-zh); font-weight: 600; font-size: 16px; line-height: 1.3; }
.scroll .t { font-size: 12px; color: var(--ink-2); line-height: 1.38; margin-top: 3px; }
.scroll li.hl .k {
  background: var(--cin);
  border-color: var(--cin);
  width: 17px;
  height: 17px;
  margin: 3px 0 9px;
  box-shadow: 0 0 0 4px rgba(181, 55, 42, 0.18);
}
.scroll li.hl .c { color: var(--cin); }
.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: 118px; }

.banner {
  position: relative;
  height: clamp(250px, 35vw, 430px);
  overflow: clip;
  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.04);
  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.42) 10%,
    transparent 24%,
    transparent 58%,
    rgba(236, 238, 234, 0.74) 86%,
    var(--snow) 100%
  );
}

.banner-night {
  background: #161B1F;
  height: clamp(280px, 39vw, 470px);
}
.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.24) 8%,
    transparent 18%,
    transparent 76%,
    rgba(236, 238, 234, 0.44) 89%,
    var(--snow) 100%
  );
}

.ch-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: end;
  margin-top: 14px;
  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 22px rgba(236, 238, 234, 0.96);
}
.chapter .ch-char { margin-top: calc(-0.50em); position: relative; }
#changbai .ch-char { font-size: clamp(82px, 11vw, 148px); }
.ch-meta .num {
  font-family: var(--f-zh);
  font-size: 14px;
  letter-spacing: 0.34em;
  color: var(--cin);
}
.ch-meta h2 {
  font-family: var(--f-disp);
  font-weight: 600;
  letter-spacing: -0.005em;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.24;
  margin: 4px 0 0;
}
@media (min-width: 621px) {
  .ch-meta h2 { white-space: nowrap; }
}
.ch-meta p { color: var(--ink-2); max-width: 32em; font-size: 15.5px; }
.temp { text-align: right; color: var(--frost); padding-bottom: 6px; }
.temp b { display: block; font-family: var(--f-disp); font-weight: 600; letter-spacing: -0.02em; font-size: clamp(40px, 5vw, 60px); line-height: 1; }
.temp span { font-size: 13px; color: var(--wash); }

.ch-body {
  display: grid;
  grid-template-columns: 276px 1fr;
  gap: clamp(30px, 5vw, 68px);
  margin-top: 46px;
  align-items: start;
}
.aside {
  position: sticky;
  top: 76px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.note-card {
  background: var(--paper-soft);
  padding: 20px 20px 18px;
  border-radius: var(--radius);
  border-top: 1.5px solid var(--line-strong);
  box-shadow: 0 2px 14px rgba(27, 33, 37, 0.03);
  position: relative;
}
.note-card .lab {
  font-family: var(--f-zh);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.24em;
  color: var(--wash);
}
.note-card .seal {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 30px;
  height: 30px;
  font-size: 16px;
}
.note-card h4 {
  font-family: var(--f-disp);
  font-weight: 600;
  font-size: 18.5px;
  line-height: 1.35;
  margin: 6px 0 4px;
  padding-right: 36px;
}
.note-card .zbtn {
  display: inline-block;
  text-align: left;
  background: none;
  border: 0;
  padding: 1px 0;
  cursor: pointer;
  font-family: var(--f-zh);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.5;
  color: var(--cin);
  word-break: break-word;
  border-bottom: 1px dashed rgba(181, 55, 42, 0.35);
}
.note-card .zbtn:hover { border-bottom-color: var(--cin); }
.note-card .sub { font-size: 13.5px; color: var(--ink-2); margin-top: 7px; line-height: 1.55; }
.note-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  margin: 12px 0 0;
  font-size: 13.5px;
}
.note-card dt { color: var(--wash); }
.note-card dd { margin: 0; }
.note-card .acts {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 500;
  flex-wrap: wrap;
}
.note-card .acts a { text-decoration: none; }
.note-card .acts a:hover { text-decoration: underline; }

/* Soft borderless status pills (zero heavy rectangular outlines) */
.status {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 1px 8px;
  border-radius: 3px;
  line-height: 1.65;
  vertical-align: middle;
}
.status.paid { color: var(--jade); background: var(--jade-soft); }
.status.wait { color: var(--amber); background: var(--amber-soft); }
.status.todo { color: var(--cin); background: var(--cin-soft); }

/* ===== Day Timeline ===== */
.day {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 24px;
  padding: 36px 0 32px;
  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: 64px;
  line-height: 1;
  color: rgba(27, 33, 37, 0.88);
}
.day-n span {
  display: block;
  font-size: 12.5px;
  color: var(--wash);
  line-height: 1.4;
  margin-top: 6px;
}
.day.today .day-n b { color: var(--cin); }
.day-n b.two { font-size: 40px; white-space: nowrap; letter-spacing: -0.06em; padding-top: 12px; }
.day-top .date { font-size: 14px; color: var(--wash); }
.day-top h3 {
  font-family: var(--f-disp);
  font-weight: 600;
  letter-spacing: -0.005em;
  font-size: clamp(21px, 2.2vw, 25px);
  line-height: 1.38;
  margin: 3px 0 0;
}
.today-tag {
  display: inline-block;
  background: var(--cin);
  color: #fff;
  font-size: 12px;
  padding: 0 8px;
  border-radius: 3px;
  margin-left: 8px;
  vertical-align: 2px;
}
.move {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 10px 0 2px;
  font-size: 14px;
  color: var(--ink-2);
}
.move .mk {
  font-style: normal;
  font-size: 12.5px;
  color: var(--wash);
  margin-right: 4px;
}
.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: 12px;
  bottom: 12px;
  width: 1.5px;
  background: linear-gradient(180deg, rgba(27, 33, 37, 0.55) 0%, rgba(27, 33, 37, 0.16) 100%);
}
.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: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--snow);
  border: 1.8px solid var(--ink);
  transition: background 0.16s ease, border-color 0.16s ease;
}
.tl li:hover::before {
  border-color: var(--cin);
  background: var(--cin);
}
.tl .t {
  text-align: right;
  font-weight: 500;
  font-size: 14px;
  color: var(--cin);
  padding-top: 2px;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}
.tl .p { font-weight: 600; font-size: 16px; line-height: 1.45; }
.tl .dsc { font-size: 14px; color: var(--ink-2); margin-top: 2px; }

.zrow { display: flex; flex-wrap: wrap; gap: 5px 10px; margin: 3px 0 2px; }
.zn {
  cursor: pointer;
  background: none;
  border: 0;
  border-bottom: 1px dashed rgba(123, 133, 139, 0.55);
  border-radius: 3px 3px 0 0;
  padding: 1px 4px 1px 0;
  display: inline-flex;
  flex-wrap: wrap;
  column-gap: 7px;
  row-gap: 0;
  align-items: baseline;
  text-align: left;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.zn .zh { font-weight: 600; font-size: 15.5px; color: var(--ink); white-space: nowrap; }
.zn i { font-style: normal; font-size: 12px; color: var(--wash); }
.zn:hover {
  background: rgba(181, 55, 42, 0.06);
  border-bottom-color: var(--cin);
}
.zn:hover .zh { color: var(--cin); }

/* Standing-policy compliant open horizontal hairline alert (zero left stripe / zero shaded box) */
.day-alert {
  margin: 16px 0 0;
  padding: 10px 0;
  border-top: 1px solid rgba(181, 55, 42, 0.28);
  border-bottom: 1px solid rgba(181, 55, 42, 0.28);
  font-size: 14.5px;
  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: 14px;
  color: var(--ink-2);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
}
.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: 11px 6px;
  margin: 0 -6px;
  border-radius: 4px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 500;
  font-size: 14.5px;
  transition: background 0.15s ease;
}
details.ride summary:hover { background: rgba(247, 248, 245, 0.65); }
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: 17px;
  transition: transform 0.2s ease;
}
details.ride[open] summary .plus { transform: rotate(45deg); }

.dot-mini { display: inline-flex; gap: 4px; }
.dot-mini i { width: 8px; height: 8px; border-radius: 50%; }
.seg { padding: 15px 0 17px; 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: 15px; }
.seg-h span { font-size: 13.5px; color: var(--wash); font-variant-numeric: tabular-nums; }
.seg .cond { display: inline-block; margin-top: 4px; font-size: 12.5px; color: var(--cin); }

.leg { margin-top: 30px; }
.leg-bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0; }
.leg-bar .st { width: 14px; height: 14px; border-radius: 50%; background: var(--snow); border: 3.5px solid var(--lc); }
.leg-bar .ln { height: 5px; background: var(--lc); position: relative; }
.leg-bar .ln em {
  position: absolute;
  left: 50%;
  top: -23px;
  transform: translateX(-50%);
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--lc);
  padding: 0 8px;
  border-radius: 3px;
  white-space: nowrap;
}
.leg-lbl { display: flex; justify-content: space-between; gap: 12px; margin-top: 5px; font-size: 13px; line-height: 1.35; }
.leg-lbl div:last-child { text-align: right; }
.leg-lbl .zh { display: block; font-weight: 600; font-size: 14.5px; color: var(--ink); }
.leg-lbl small { color: var(--wash); }
.leg-dir { font-size: 12px; 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: 11px; height: 11px; border-radius: 50%; border: 2.5px solid var(--ink); background: var(--snow); flex: none; }
.seg .tip { margin-top: 9px; font-size: 13.5px; color: var(--ink-2); }

/* ===== NYE Painting Card (Day 8) ===== */
.nye {
  margin-top: 20px;
  position: relative;
  background: #181E23;
  color: #EFE8D8;
  padding: 28px 28px 26px;
  border-radius: var(--radius);
  overflow: clip;
  min-height: 184px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.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(24, 30, 35, 0.90) 0%, rgba(24, 30, 35, 0.64) 44%, rgba(24, 30, 35, 0.08) 100%);
  pointer-events: none;
}
.nye .yr {
  position: relative;
  z-index: 2;
  font-family: var(--f-brush);
  font-size: clamp(54px, 7.6vw, 86px);
  line-height: 1;
  color: var(--gold);
  text-shadow: 0 2px 18px rgba(203, 166, 92, 0.25);
}
.nye p {
  position: relative;
  z-index: 2;
  font-size: 15px;
  color: #e6dfd0;
  margin-top: 8px;
  letter-spacing: 0.01em;
}

/* ===== 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(92px, 12vw, 146px); }
.inter .lab { font-family: var(--f-zh); font-size: 14px; letter-spacing: 0.34em; color: var(--cin); }
.inter h2 { font-family: var(--f-disp); font-weight: 600; letter-spacing: -0.005em; 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: 50px; }

.pass {
  display: grid;
  grid-template-columns: 1fr auto;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(27, 33, 37, 0.04);
  margin-top: 14px;
  position: relative;
  max-width: 560px;
}
#passes .pass { background: var(--snow); box-shadow: none; }
.pass::after {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  right: 106px;
  border-left: 1.5px dashed var(--line-strong);
}
.pass .m { padding: 15px 18px; }
.pass .r {
  width: 106px;
  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-weight: 700; font-size: 18px; color: var(--cin); line-height: 1.2; }
.pass .r span { font-size: 11.5px; color: var(--wash); margin-top: 2px; }
.pass .ft { display: flex; align-items: center; gap: 12px; }
.pass .code { font-family: var(--f-disp); font-weight: 700; letter-spacing: -0.01em; font-size: 27px; line-height: 1.1; }
.pass .tm { font-size: 13.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pass .ln { flex: 1; border-top: 1.5px dotted var(--wash); position: relative; min-width: 40px; }
.pass .ln::after {
  content: "✈";
  position: absolute;
  left: 50%;
  top: -13px;
  transform: translateX(-50%);
  background: var(--paper);
  padding: 0 6px;
  color: var(--cin);
  font-size: 14px;
}
#passes .pass .ln::after { background: var(--snow); }
.pass .ap { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--wash); margin-top: 3px; }
.pass .meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.pass .pnote { font-size: 13px; color: var(--ink-2); margin-top: 7px; }

/* ===== Handbook ===== */
.hb {
  margin-top: 132px;
  padding: 68px 0 84px;
  background: var(--paper);
  border-top: 1px solid var(--line-strong);
  position: relative;
  overflow: clip;
}
.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, 118px); text-shadow: none; }
.hb-head h2 { font-family: var(--f-disp); font-weight: 600; letter-spacing: -0.005em; font-size: clamp(26px, 3vw, 38px); margin-bottom: 4px; }

/* Refined Underline-Ink Tabs (lighter & cleaner than solid black blocks) */
.tabs {
  display: flex;
  gap: 4px;
  margin-top: 32px;
  border-bottom: 1px solid var(--line-strong);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex: none;
  cursor: pointer;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  min-height: 44px;
  padding: 10px 15px 9px;
  font-size: 14.5px;
  color: var(--ink-2);
  display: inline-flex;
  gap: 7px;
  align-items: baseline;
  border-radius: 4px 4px 0 0;
  white-space: nowrap;
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}
.tabs button .zh { font-weight: 600; color: var(--wash); transition: color 0.16s ease; }
.tabs button:hover { background: rgba(27, 33, 37, 0.04); color: var(--ink); }
.tabs button[aria-selected="true"] {
  color: var(--ink);
  font-weight: 500;
  background: rgba(27, 33, 37, 0.045);
  border-bottom-color: var(--cin);
}
.tabs button[aria-selected="true"] .zh { color: var(--cin); }

.panel { padding-top: 30px; }
.panel[hidden] { display: none; }
.panel h3 { font-family: var(--f-disp); font-weight: 600; letter-spacing: -0.005em; font-size: 19px; margin: 28px 0 10px; }
.panel h3:first-child { margin-top: 0; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.plain { font-size: 14.5px; color: var(--ink-2); }
.plain.lead-sm { font-size: 15px; color: var(--ink-2); margin-bottom: 6px; }
.plain.lead-sm strong { color: var(--ink); font-weight: 600; }
.plain ul, .plain ol { margin: 6px 0 0; padding-left: 18px; }
.plain li { margin: 5px 0; }

/* Strictly uniform paired & grouped buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 16px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  border-radius: 4px;
  cursor: pointer;
  background: none;
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--snow); }
.btn.red { background: var(--cin); border-color: var(--cin); color: #fff; }
.btn.red:hover { background: var(--cin-deep); border-color: var(--cin-deep); color: #fff; }
.btns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
  max-width: 440px;
}
.btns .btn { width: 100%; }

/* Rail tickets */
.tix { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(310px, 100%), 1fr)); gap: 16px; }
.tk {
  position: relative;
  background: #E4EDF2;
  border-radius: var(--radius);
  padding: 16px 18px 14px;
  overflow: clip;
  background-image: repeating-linear-gradient(135deg, rgba(98, 132, 155, 0.08) 0 2px, transparent 2px 9px);
}
.tk .top { display: flex; justify-content: space-between; font-size: 12.5px; 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: 21px; line-height: 1.2; }
.tk .row small { display: block; font-size: 12px; color: var(--ink-2); }
.tk .no { text-align: center; font-family: var(--f-disp); font-weight: 600; font-size: 18px; color: var(--cin); line-height: 1.1; }
.tk .no small { font-family: var(--f-body); font-weight: 400; font-size: 11px; color: var(--ink-2); }
.tk .arrow { display: block; height: 1.5px; background: var(--ink); margin-top: 4px; position: relative; }
.tk .arrow::after { content: ""; position: absolute; right: -2px; top: -3.5px; border: 4px solid transparent; border-left: 6px 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(27, 33, 37, 0.24); padding-top: 8px; }
.tk .bot b { font-family: var(--f-disp); font-weight: 600; font-size: 17px; }
.tk .stamp {
  position: absolute;
  right: 14px;
  top: 34px;
  transform: rotate(-10deg);
  border: 1.5px solid var(--cin);
  color: var(--cin);
  font-size: 12px;
  font-weight: 600;
  padding: 0 7px;
  border-radius: 3px;
  opacity: 0.85;
  background: rgba(228, 237, 242, 0.72);
}
.tk .nt { font-size: 12.5px; color: var(--ink-2); margin-top: 6px; }

/* Hotels */
.stays { display: flex; flex-direction: column; }
.stay { display: grid; grid-template-columns: 118px 1fr 164px 168px; gap: 20px; padding: 17px 0; border-top: 1px solid var(--line); align-items: start; }
.stay .w { font-family: var(--f-disp); font-weight: 600; font-size: 16px; line-height: 1.35; }
.stay .w small { display: block; font-family: var(--f-body); font-weight: 400; font-size: 12.5px; color: var(--wash); }
.stay h4 { font-weight: 600; font-size: 16px; }
.stay .zbtn {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--f-zh);
  font-weight: 600;
  font-size: 14px;
  color: var(--cin);
  line-height: 1.45;
  border-bottom: 1px dashed rgba(181, 55, 42, 0.35);
}
.stay .zbtn:hover { border-bottom-color: var(--cin); }
.stay .area { font-size: 13.5px; color: var(--ink-2); margin-top: 3px; }
.stay .lk { font-size: 13px; display: flex; gap: 14px; margin-top: 6px; font-weight: 500; }
.stay .lk a { text-decoration: none; }
.stay .lk a:hover { text-decoration: underline; }
.stay .money { font-size: 13.5px; color: var(--ink-2); }
.stay .money b { font-family: var(--f-disp); font-weight: 600; font-size: 17.5px; display: block; color: var(--ink); }
.stay .dates { font-size: 13px; color: var(--ink-2); line-height: 1.65; }
.stay .dates b { color: var(--ink); font-weight: 500; }

/* Budget */
.budget { display: grid; grid-template-columns: 270px 1fr; gap: 42px; align-items: center; }
.donut { position: relative; width: 250px; height: 250px; }
.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-weight: 600; font-size: 28px; line-height: 1.1; }
.donut .ctr span { font-size: 12.5px; color: var(--wash); margin-top: 2px; }
.bl { list-style: none; margin: 0; padding: 0; }
.bl li { display: grid; grid-template-columns: 12px 1fr auto; gap: 12px; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--line); }
.bl li:first-child { border-top: 0; }
.bl li i { width: 12px; height: 12px; border-radius: 3px; align-self: center; }
.bl .v { font-family: var(--f-disp); font-weight: 600; font-size: 17.5px; text-align: right; font-variant-numeric: tabular-nums; }
.bl small { display: block; color: var(--wash); font-size: 12.5px; }
.paidbar { margin-top: 18px; }
.paidbar .bar { display: flex; height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.paidbar .bar div { background: var(--jade); border-radius: 99px; }
.paidbar .lbl { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-2); margin-top: 7px; gap: 10px; }

table { border-collapse: collapse; width: 100%; font-size: 14px; }
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: 12.5px; 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: 1.5px solid var(--line-strong); }

/* Checklist */
.prog-wrap { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.prog { font-size: 14px; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.prog-track { flex: 1; max-width: 240px; height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.prog-fill { height: 100%; width: 0; background: var(--cin); border-radius: 99px; transition: width 0.25s ease; }

.checks { list-style: none; margin: 0; padding: 0; }
.checks li { border-top: 1px solid var(--line); }
.checks label { display: grid; grid-template-columns: 24px 156px 1fr; gap: 18px; padding: 15px 0; cursor: pointer; align-items: start; }
.checks input { appearance: none; width: 22px; height: 22px; border: 1.5px solid var(--line-strong); border-radius: 4px; margin: 2px 0 0; cursor: pointer; display: grid; place-items: center; background: var(--snow); transition: background 0.15s ease, border-color 0.15s ease; }
.checks input:checked { background: var(--cin); border-color: var(--cin); }
.checks input:checked::after { content: "✓"; color: #fff; font-size: 14px; font-weight: 700; line-height: 1; }
.checks .when { font-size: 13.5px; color: var(--cin); font-weight: 500; line-height: 1.5; }
.checks h4 { font-weight: 600; font-size: 15.5px; line-height: 1.5; }
.checks .body { display: block; font-size: 14px; color: var(--ink-2); margin-top: 3px; }
.checks .body ul { margin: 4px 0 0; padding-left: 18px; }
.checks li.done h4 { text-decoration: line-through; color: var(--wash); }

/* Metro lines & collapsible sources */
.mlines { display: flex; flex-direction: column; gap: 26px; }
.ml h4 { font-size: 15.5px; font-weight: 600; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ml h4 .badge { color: #fff; font-size: 12.5px; padding: 1px 9px; border-radius: 3px; }
.ml h4 small { font-weight: 400; font-size: 13px; color: var(--wash); }
.mtrack {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  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: 12px; line-height: 1.3; color: var(--ink-2); }
.mtrack li::before { content: ""; position: absolute; top: 9px; left: 0; right: 0; height: 5px; 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: 17px; height: 17px; border-radius: 50%; background: var(--paper); border: 3.5px solid var(--lc); box-sizing: border-box; }
.mtrack li .zh { display: block; font-weight: 600; font-size: 14.5px; color: var(--ink); }

.sources {
  margin-top: 28px;
  border-top: 1px solid var(--line);
}
.sources summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 0;
  font-size: 13.5px;
  color: var(--wash);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sources summary::-webkit-details-marker { display: none; }
.sources summary .plus { margin-left: auto; color: var(--cin); transition: transform 0.2s; }
.sources[open] summary .plus { transform: rotate(45deg); }
.src-links {
  list-style: none;
  margin: 0;
  padding: 0 0 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 13.5px;
}

/* Phrases & Uniform Equal Filter Pills (borderless airy tiles) */
.ask {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 36px;
  align-items: baseline;
  padding: 2px 0 18px;
  border-bottom: 1px solid var(--line);
}
.ask .zh { font-size: 23px; font-weight: 600; }
.ask small { display: block; font-size: 13px; color: var(--wash); margin-top: 2px; }
.ptools { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 16px; align-items: center; }
.ptools input {
  flex: 1 1 240px;
  min-width: min(220px, 100%);
  min-height: 40px;
  font: inherit;
  font-size: 14.5px;
  padding: 6px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--snow);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.ptools input:focus { border-color: var(--ink); background: #fff; outline: none; }
.pfilt {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  flex: 0 1 560px;
}
.pfilt button {
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  min-height: 40px;
  padding: 6px 10px;
  font-size: 13.5px;
  color: var(--ink-2);
  white-space: nowrap;
  text-align: center;
  width: 100%;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.pfilt button:hover { border-color: var(--line-strong); color: var(--ink); }
.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(186px, 1fr));
  gap: 10px;
}
.pc {
  cursor: pointer;
  text-align: left;
  background: var(--snow);
  border: 0;
  border-radius: var(--radius);
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}
.pc:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(27, 33, 37, 0.06);
}
.pc .zh { font-weight: 600; font-size: 19.5px; line-height: 1.35; color: var(--ink); }
.pc:hover .zh { color: var(--cin); }
.pc .py { font-size: 11.5px; color: var(--wash); }
.pc .th { font-size: 13px; color: var(--ink-2); margin-top: 1px; }
.empty { padding: 18px; color: var(--wash); font-size: 14.5px; grid-column: 1 / -1; }

/* Driver Card Modal */
.ov {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(18, 22, 25, 0.80);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.ov.on { display: flex; }
.ov-card {
  background: var(--paper);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  max-width: 640px;
  width: 100%;
  max-height: calc(100dvh - 36px);
  margin: auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 34px 28px 26px;
  text-align: center;
  position: relative;
}
.ov-card .seal {
  position: absolute;
  top: -19px;
  left: 50%;
  transform: translateX(-50%) rotate(-4deg);
  width: 38px;
  height: 38px;
  font-size: 18px;
}
.ov-card .q { font-family: var(--f-zh); font-size: 19px; color: var(--ink-2); margin-top: 6px; }
.ov-card .q small { display: block; font-family: var(--f-body); font-size: 12.5px; color: var(--wash); margin-top: 2px; }
.ov-card .big { font-family: var(--f-zh); font-weight: 900; font-size: clamp(34px, 9vw, 66px); line-height: 1.24; margin: 18px 0 10px; word-break: break-word; color: var(--ink); }
.ov-card .py { color: var(--wash); font-size: 15px; }
.ov-card .th { color: var(--ink-2); font-size: 15px; margin-top: 4px; }
.ov-card .row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 340px;
  margin: 24px auto 0;
}
.ov-card .row .btn { width: 100%; }

footer {
  padding: 58px var(--gut) 64px;
  text-align: center;
  background: var(--ink);
  color: #c5ccc9;
}
footer .b {
  font-family: var(--f-brush);
  font-size: clamp(42px, 6vw, 64px);
  color: var(--snow);
  line-height: 1.2;
}
footer p { font-size: 13.5px; margin-top: 8px; letter-spacing: 0.03em; }

@media (max-width: 900px) {
  .facts { grid-template-columns: repeat(3, auto); gap: 10px 28px; justify-content: start; }
  .facts .note { grid-column: 1 / -1; padding: 12px 0 0; border-top: 1px solid var(--line); justify-self: start; max-width: none; margin-top: 8px; }
  .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: 24px 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: 15.5px; }
  .hero { height: 590px; }
  .hero-col { right: 14px; top: auto; bottom: 20px; gap: 8px; align-items: flex-end; }
  .hero-col .small { display: none; }
  .hero-col .seal { margin-top: 0; width: 34px; height: 64px; font-size: 16px; }
  .hero-col .big { font-size: 84px; }
  .hero-text { top: 30px; max-width: none; right: var(--gut); }
  .hero-text h1 { font-size: clamp(23px, 6.7vw, 31px); }
  .hero-text .when { font-size: 14.5px; }
  .count { bottom: 22px; }
  .count .cd-time { font-size: 19px; }
  .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: 24px; }
  .tl li::before { left: 2px; }
  .tl .t { text-align: left; }
  .facts { grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 12px 10px; }
  .facts dd { font-size: 21px; }
  .facts dt { font-size: 11.5px; }
  .facts .note { grid-column: 1 / -1; margin-top: 6px; padding-top: 10px; font-size: 13px; }
  .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; }
  .phr { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

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