:root {
  --ink: #244b42;
  --ink-deep: #174d3e;
  --paper: #f7faf6;
  --paper-soft: #ffffff;
  --orange: #e89c69;
  --orange-deep: #a6542b;
  --sage: #66a18a;
  --line: rgba(36, 75, 66, 0.12);
  --muted: #62766e;
  --white: #ffffff;
  --shadow: 0 16px 48px rgba(36, 75, 66, 0.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, a { font: inherit; }

a { color: inherit; text-decoration: none; }

button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible { outline: 3px solid var(--sage); outline-offset: 4px; }
section[id] { scroll-margin-top: 24px; }

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 50%;
  width: min(1320px, calc(100% - 72px));
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateX(-50%);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: .08em; }
.brand-mark {
  display: grid;
  width: 38px;
  aspect-ratio: 1;
  place-items: center;
  color: var(--ink-deep);
  background: #d9ecb9;
  border-radius: 50% 50% 48% 42%;
  transform: rotate(-6deg);
}
.brand-mark + span { transform: translateY(1px); }

nav { display: flex; gap: 34px; font-size: 14px; color: var(--muted); }
nav a { display: inline-flex; align-items: center; min-height: 44px; }
nav a { transition: color .2s ease; }
nav a:hover, nav a:focus-visible { color: var(--ink-deep); }

.privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
}
.privacy-pill span { color: #478265; font-size: 9px; }

.hero {
  min-height: 760px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  padding: 142px max(6vw, calc((100vw - 1320px)/2)) 82px;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 82% 30%, #e0eedb 0%, transparent 48%),
    radial-gradient(ellipse at 10% 90%, #fcf0da 0%, transparent 44%),
    linear-gradient(132deg, #f4faf5, #edf6ed);
  overflow: hidden;
}

.hero-copy { position: relative; z-index: 2; max-width: 640px; }
.eyebrow { margin: 0 0 22px; color: #487660; font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.eyebrow.dark { color: var(--orange-deep); }

h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 28px;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(38px, 3.65vw, 58px);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -.055em;
}
h1 em { color: #42866b; font-style: normal; }

.hero-intro { max-width: 500px; margin-bottom: 34px; color: var(--muted); font-size: 15px; line-height: 2; }
.primary-action {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 16px 19px 16px 22px;
  color: var(--white);
  background: var(--ink-deep);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(23,77,62,.12);
  transition: transform .2s ease, background .2s ease;
}
.primary-action span { font-size: 20px; }
.primary-action:hover { transform: translateY(-2px); background: #32735c; }

.hero-stats { display: flex; gap: 0; margin: 56px 0 0; }
.hero-stats div { min-width: 0; flex: 1; padding-right: 16px; margin-right: 16px; border-right: 1px solid var(--line); }
.hero-stats div:last-child { border-right: 0; }
.hero-stats dt { font-family: Georgia, serif; font-size: 30px; color: var(--ink-deep); }
.hero-stats dd { margin: 4px 0 0; color: var(--muted); font-size: 11px; letter-spacing: .08em; }

.hero-visual { position: relative; min-width: 0; }
.reading-progress { position: fixed; z-index: 80; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, #42866b, #a6c999, #e89c69); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.hero { position: relative; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(#55856c0b 1px, transparent 1px), linear-gradient(90deg, #55856c0b 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(90deg, transparent 35%, #000); }
.hero-visual { z-index: 1; transform: translate(var(--parallax-x, 0px), var(--parallax-y, 0px)); transition: transform .35s ease-out; }
.hero-visual.motion-in-view::before { animation: orbit-breathe 7s ease-in-out infinite; }
.map-card.motion-in-view .map-line { animation: route-flow 18s linear infinite; }
.primary-action { position: relative; overflow: hidden; }
.primary-action::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, #ffffff26 50%, transparent 70%); transform: translateX(-110%); pointer-events: none; }
.primary-action:hover::after, .primary-action:focus-visible::after { animation: action-sheen .7s ease; }
.day-card:active, .film-arrow:active { scale: .98; }
@keyframes route-flow { to { stroke-dashoffset: -130; } }
@keyframes orbit-breathe { 50% { transform: rotate(-5deg) scale(1.05); opacity: .45; } }
@keyframes action-sheen { to { transform: translateX(110%); } }
@media (hover: hover) and (pointer: fine) {
  .day-card:hover { background: linear-gradient(135deg, #fff, #f0f7ec); }
  .hero-visual:hover .land-shape { stroke: #91b398; }
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% 10%;
  border: 1px dashed rgba(68,121,89,.18);
  border-radius: 50%;
  transform: rotate(-12deg);
}
.hero-visual svg { position: relative; width: 100%; height: auto; filter: drop-shadow(0 20px 30px rgba(60,105,75,.08)); }
.land-shape { fill: #dbead8; stroke: #c0d7bd; stroke-width: 2; }
.hero-route { fill: none; stroke: #69977a; stroke-width: 3; stroke-dasharray: 1; stroke-linecap: round; animation: route-draw 2.8s ease both; }
.traveler-halo { fill: #e89c69; opacity: .24; }
.traveler-core { fill: #b65f34; stroke: #fff; stroke-width: 2; }
@keyframes route-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.hero-dot circle { fill: var(--paper); stroke: var(--orange); stroke-width: 4; }
.hero-dot.start circle, .hero-dot.end circle { fill: var(--orange); stroke: var(--paper); }
.hero-dot text { fill: #456151; font-size: 14px; }
.route-caption { display: flex; align-items: center; gap: 16px; width: 78%; margin: -12px auto 0; color: var(--muted); font-size: 9px; letter-spacing: .16em; line-height: 1.8; }
.route-caption strong { color: var(--ink); font-size: 12px; letter-spacing: .05em; }
.caption-line { height: 1px; flex: 1; background: linear-gradient(90deg, var(--orange), rgba(255,255,255,.18)); }

.section-shell { width: min(1180px, calc(100% - 56px)); margin: 0 auto; padding: 110px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 48px; margin-bottom: 42px; }
.section-heading h2 { margin: 0; font-family: "Songti SC", "STSong", serif; font-size: clamp(34px, 4vw, 52px); letter-spacing: -.04em; }
.section-heading > p { max-width: 390px; margin-bottom: 4px; color: var(--muted); font-size: 13px; line-height: 1.8; }

.overview { padding-bottom: 58px; }
.map-card { background: #edf5ed; color: var(--ink); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; }
.map-toolbar { display: flex; align-items: center; gap: 24px; min-height: 58px; padding: 0 24px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.legend-dot { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; background: var(--sage); }
.legend-dot.scenic { background: var(--orange); }
.map-hint { margin-left: auto; }
.route-map-wrap { padding: 22px 30px 4px; background: radial-gradient(circle at 30% 50%, #fafcf7, transparent 68%); overflow-x: auto; overscroll-behavior-x: contain; }
.mobile-map-hint { display: none; }
.route-map { display: block; min-width: 820px; width: 100%; height: auto; }
.map-outline { fill: #e0ecdb; stroke: #cadcc6; stroke-width: 2; }
.map-line { fill: none; stroke: #72a18b; stroke-width: 3; stroke-dasharray: 5 8; stroke-linecap: round; }
.map-node { cursor: pointer; transition: opacity .25s ease; }
.map-node.is-dimmed { opacity: .22; }
.map-node circle { fill: var(--white); stroke: #55856c; stroke-width: 2.5; transition: r .2s ease, fill .2s ease; }
.map-node .node-hit { fill: transparent; stroke: none; r: 22; }
.map-node.scenic circle:not(.node-hit) { stroke: var(--orange); }
.map-node:hover circle:not(.node-hit), .map-node:focus circle:not(.node-hit) { r: 9; fill: var(--orange); }
.map-node text { fill: #355f4f; font-size: 13px; font-weight: 600; pointer-events: none; }
.map-node .node-day { fill: #62776b; font-size: 10px; font-weight: 400; }
.map-summary { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.map-summary strong { color: var(--orange-deep); font-size: 20px; font-family: Georgia, serif; }

.expense-dashboard {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 36px 58px;
  padding: 44px;
  margin-top: 24px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 24px;
}
.expense-lead h2 { max-width: 420px; margin-bottom: 30px; font-family: "Songti SC", "STSong", serif; font-size: clamp(32px, 3.5vw, 46px); letter-spacing: -.04em; }
.grand-total { display: flex; flex-direction: column; align-items: flex-start; }
.grand-total > span { color: var(--muted); font-size: 11px; letter-spacing: .1em; }
.odometer { display: inline-flex; font-variant-numeric: tabular-nums; line-height: 1.1; letter-spacing: 0; }
.odo-digit { display: inline-block; width: .56em; height: 1.1em; overflow: hidden; }
.odo-strip, .odo-cell { display: block; }
.odo-cell { height: 1.1em; line-height: 1.1; text-align: center; }
.odo-punctuation { display: inline-block; line-height: 1.1; }
.grand-total strong { margin: 6px 0 3px; color: var(--orange-deep); font-family: Georgia, serif; font-size: clamp(40px, 5vw, 62px); font-weight: 500; letter-spacing: -.04em; }
.grand-total small { color: var(--muted); font-size: 11px; }
.ledger-note { max-width: 400px; margin: 24px 0 0; padding-left: 12px; color: #7a6b5c; border-left: 2px solid var(--orange); font-size: 11px; line-height: 1.75; }
.expense-breakdown { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.expense-breakdown h3, .daily-ledger h3 { margin-bottom: 18px; font-size: 12px; letter-spacing: .12em; }
.bar-list { display: grid; gap: 16px; }
.expense-pie { margin-bottom: 28px; }
.donut-visual { position: relative; width: min(230px, 100%); margin: 0 auto 12px; aspect-ratio: 1; }
.donut-svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 8px 10px #244b4214); }
.donut-segment { fill: none; stroke-width: 26; cursor: pointer; transition: stroke-width .25s ease, opacity .25s ease; }
.donut-segment.is-selected { stroke-width: 34; }
.donut-segment:focus { outline: none; }
.donut-segment:focus-visible { stroke-width: 36; filter: brightness(.85); }
.pie-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }
.pie-tag { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 8px 10px; border: 0; border-radius: 999px; background: #eff4ed; color: var(--ink); font-size: 11px; cursor: pointer; }
.pie-tag i { width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background: var(--tag-color); }
.pie-tag[aria-pressed="true"] { background: #dcebdd; }
.pie-tag b { white-space: nowrap; }
@media (min-width: 1200px) {
  .expense-pie { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(100px, .8fr); align-items: center; gap: 8px; }
  .pie-tags { justify-content: flex-start; }
  .donut-center strong { font-size: 20px; }
}
.donut-center { position: absolute; inset: 27% 16%; display: flex; flex-direction: column; justify-content: center; text-align: center; pointer-events: none; }
.donut-center strong { font-family: Georgia, serif; font-size: clamp(24px, 2.5vw, 32px); font-weight: 500; color: var(--ink-deep); }
.donut-center span { margin: 5px 0; font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.donut-center small { font-size: 11px; color: var(--ink); }
.bar-item-head { display: flex; justify-content: space-between; margin-bottom: 7px; color: var(--muted); font-size: 11px; }
.bar-item-head strong { color: var(--ink); font-family: Georgia, serif; font-size: 13px; }
.bar-track { height: 6px; background: #e4e6df; border-radius: 99px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: linear-gradient(90deg, #478c76, #8ab59a); border-radius: inherit; transform-origin: left; }
.region-ledger { display: grid; gap: 9px; }
.region-ledger-item { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.region-ledger-item span { color: var(--muted); font-size: 11px; }
.region-ledger-item strong { font-family: Georgia, serif; font-size: 16px; }
.daily-ledger { grid-column: 1 / -1; padding-top: 30px; border-top: 1px solid var(--line); }
.daily-ledger-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 20px; }
.daily-ledger-heading h3 { margin: 0 0 5px; }
.daily-ledger-heading p, .daily-ledger-heading span { margin: 0; color: var(--muted); font-size: 10px; }
.daily-expense-chart { display: grid; grid-template-columns: repeat(29, minmax(20px, 1fr)); align-items: end; gap: 5px; height: 185px; padding-top: 22px; overflow-x: auto; }
.expense-column { position: relative; display: flex; min-width: 20px; height: 100%; flex-direction: column; justify-content: flex-end; align-items: stretch; border: 0; background: transparent; cursor: pointer; }
.expense-column::before { content: attr(data-amount); position: absolute; top: -19px; left: 50%; padding: 3px 5px; color: var(--white); background: var(--ink); border-radius: 3px; font-size: 9px; opacity: 0; transform: translate(-50%, 4px); transition: .18s ease; pointer-events: none; white-space: nowrap; }
.expense-column:hover::before, .expense-column:focus-visible::before { opacity: 1; transform: translate(-50%, 0); }
.expense-bar { min-height: 8px; background: #c5d0c7; border-radius: 3px 3px 0 0; transition: background .18s ease, transform .18s ease; transform-origin: bottom; }
.expense-column:hover .expense-bar, .expense-column:focus-visible .expense-bar { background: var(--orange); transform: scaleY(1.03); }
.expense-column small { display: block; padding-top: 7px; color: var(--muted); font-size: 8px; text-align: center; }

.films { padding-top: 40px; padding-bottom: 48px; }
.film-carousel { min-width: 0; }
#film-slide { touch-action: pan-y; }
.film-controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 20px; }
.film-arrow { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); cursor: pointer; font-size: 20px; }
.film-arrow:hover { background: #e7f0e3; }
.film-dots { display: flex; }
.film-dots button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.film-dots span { width: 8px; height: 8px; border-radius: 999px; background: #c9d6c5; transition: width .2s ease; }
.film-dots [aria-current="true"] span { width: 24px; background: var(--ink-deep); }
.film-counter { color: var(--muted); font-size: 12px; white-space: nowrap; }
.film-swipe-hint { margin: 12px 0 0; text-align: center; color: var(--muted); font-size: 11px; }
.film-placeholder { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: 24px; }
.film-frame { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; aspect-ratio: 16 / 9; color: #69836b; background: linear-gradient(135deg, #edf5e9, #faf5e9); border: 1px dashed #bfd1bb; border-radius: 14px; }
.film-frame span { font-size: 12px; letter-spacing: .12em; }
.film-frame { position: relative; display: block; width: 100%; min-width: 0; overflow: hidden; perspective: 900px; border: 0; min-height: 240px; background: radial-gradient(ellipse at center, #f8fcf5, #dfeade); }
.film-cover { position: absolute; left: 50%; top: 10%; width: 66%; height: 80%; padding: 18px; overflow: hidden; border: 1px solid #ffffffa8; border-radius: 18px; text-align: left; color: #244b42; background: linear-gradient(145deg, #ffffff, var(--cover-color)); box-shadow: 0 16px 28px #244b4222; cursor: pointer; transition: transform .65s cubic-bezier(.2,.75,.2,1), opacity .5s ease, box-shadow .5s ease; }
.film-cover[data-position="center"] { transform: translateX(-50%); z-index: 3; opacity: 1; box-shadow: 0 20px 30px #244b4233; }
.film-cover[data-position="left"] { transform: translateX(-122%) scale(.8) rotateY(18deg); z-index: 1; opacity: .55; }
.film-cover[data-position="right"] { transform: translateX(22%) scale(.8) rotateY(-18deg); z-index: 1; opacity: .55; }
.film-cover .cover-number { position: relative; z-index: 1; font-family: Georgia, serif; font-size: 40px; opacity: .65; }
.cover-landscape { position: absolute; width: 140%; height: 90%; left: -15%; top: 25%; background: linear-gradient(145deg, #ffffff88, #478c7655); clip-path: polygon(0 80%, 30% 30%, 48% 55%, 65% 10%, 100% 70%, 100% 100%, 0 100%); }
.cover-caption { position: absolute; bottom: 18px; left: 18px; right: 12px; display: grid; gap: 8px; }
.cover-caption b { font-size: 20px; }
.cover-caption small { font-size: 10px; letter-spacing: 0; }
.film-copy p { min-height: 6em; }
.film-copy { min-width: 0; padding-right: 16px; }
.film-status { display: inline-block; padding: 6px 10px; color: var(--muted); background: #eef5eb; border-radius: 999px; font-size: 11px; }
.film-copy h3 { margin: 18px 0 12px; font-family: "Songti SC", "STSong", serif; font-size: 28px; }
.film-copy p { margin-bottom: 18px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.film-copy small { color: var(--muted); font-size: 12px; line-height: 1.8; }

.days { padding-top: 64px; }
.days-heading { margin-bottom: 28px; }
#result-count { color: var(--orange-deep); font-weight: 700; }
.filter-panel { display: flex; align-items: center; gap: 22px; padding: 16px 18px; margin-bottom: 30px; background: var(--white); border: 1px solid var(--line); border-radius: 20px; }
.filter-group { display: flex; align-items: center; gap: 12px; }
.filter-label { flex: none; color: var(--muted); font-size: 11px; }
.filter-options { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-button { min-height: 44px; padding: 10px 14px; border: 0; border-radius: 999px; background: transparent; font-size: 12px; cursor: pointer; transition: .2s ease; }
.filter-button:hover { background: rgba(24,48,47,.07); }
.filter-button.active { color: var(--white); background: var(--ink); }
.filter-divider { width: 1px; height: 28px; background: var(--line); }
.reset-button { min-height: 44px; margin-left: auto; padding: 8px 10px; border: 0; border-bottom: 1px solid var(--ink); background: transparent; font-size: 12px; cursor: pointer; }

.day-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.day-card { position: relative; min-height: 260px; padding: 24px 24px 100px; text-align: left; background: var(--paper-soft); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; cursor: pointer; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.day-card::after { content: "↗"; position: absolute; right: 20px; bottom: 18px; display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid var(--line); border-radius: 50%; transition: .22s ease; }
.day-card:hover, .day-card:focus-visible { transform: translateY(-4px); border-color: var(--sage); box-shadow: var(--shadow); }
.day-card:hover::after { color: var(--white); background: var(--orange); border-color: var(--orange); }
.card-topline { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.day-number { font-family: Georgia, serif; color: var(--orange-deep); font-size: 15px; font-weight: 700; letter-spacing: .04em; }
.region-tag { padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 9px; letter-spacing: .08em; }
.day-card h3 { max-width: 80%; margin-bottom: 12px; font-family: "Songti SC", "STSong", serif; font-size: 25px; line-height: 1.25; }
.day-card .route-short { color: var(--muted); font-size: 12px; line-height: 1.7; }
.transport-row { position: absolute; left: 22px; bottom: 22px; display: flex; gap: 8px; max-width: calc(100% - 80px); color: var(--ink); font-size: 10px; }
.transport-row span { padding: 5px 8px; background: #e9eee9; border-radius: 3px; white-space: nowrap; }
.card-total { position: absolute; right: 20px; bottom: 60px; color: var(--orange-deep); font-family: Georgia, serif; font-size: 15px; }
.empty-state { padding: 70px 0; text-align: center; color: var(--muted); }
.empty-state span { display: block; margin-bottom: 10px; color: var(--orange); font-size: 38px; }

footer { display: flex; justify-content: space-between; align-items: center; padding: 32px max(4vw, calc((100vw - 1180px)/2)); color: var(--muted); background: #e9f2e8; border-top: 1px solid var(--line); font-size: 12px; }
footer p { margin: 0; }
footer a { flex-shrink: 0; padding: 12px 0; color: var(--ink-deep); }

.drawer-backdrop { position: fixed; z-index: 90; inset: 0; background: rgba(9,25,24,.55); backdrop-filter: blur(3px); opacity: 0; transition: opacity .28s ease; }
.drawer-backdrop.open { opacity: 1; }
.day-drawer { position: fixed; z-index: 100; top: 0; right: 0; width: min(560px, 100%); height: 100dvh; padding: 32px 38px 42px; background: var(--paper-soft); box-shadow: -30px 0 80px rgba(0,0,0,.2); transform: translateX(105%); transition: transform .32s cubic-bezier(.22,.7,.24,1); overflow-y: auto; }
.day-drawer.open { transform: translateX(0); }
.drawer-close { position: sticky; z-index: 2; top: 0; float: right; display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--paper-soft); font-size: 25px; line-height: 1; cursor: pointer; }
.drawer-kicker { margin: 58px 0 18px; color: var(--orange-deep); font-family: Georgia, serif; font-size: 13px; font-weight: 700; letter-spacing: .14em; }
.drawer-title { margin-bottom: 12px; font-family: "Songti SC", "STSong", serif; font-size: clamp(35px, 6vw, 48px); line-height: 1.13; letter-spacing: -.04em; }
.drawer-route { padding-bottom: 24px; margin-bottom: 26px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.75; }
.detail-block { margin-bottom: 28px; }
.detail-block h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 12px; letter-spacing: .12em; }
.detail-block h3::before { content: ""; width: 18px; height: 2px; background: var(--orange); }
.detail-block p, .detail-block li { color: #526462; font-size: 13px; line-height: 1.85; }
.detail-block ul { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.detail-block li { padding: 8px 11px; background: #e9eee9; border-radius: 4px; }
.route-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.route-step { position: relative; display: flex; align-items: center; min-height: 74px; padding: 12px 10px; color: var(--ink); background: #f0ebe1; border-radius: 4px; font-size: 11px; line-height: 1.5; }
.route-step:not(:last-child)::after { content: "→"; position: absolute; z-index: 1; top: 26px; right: -9px; color: var(--orange-deep); }
.record-note { padding: 14px 16px; color: #6d5a4d; background: #f5e5d8; border-left: 3px solid var(--orange); font-size: 12px; line-height: 1.75; }
.drawer-total { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 18px 0 22px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.drawer-total span { color: var(--muted); font-size: 11px; }
.drawer-total strong { color: var(--orange-deep); font-family: Georgia, serif; font-size: 34px; font-weight: 500; }
.detail-block .expense-lines { display: grid; padding: 0; margin: 0; list-style: none; }
.expense-lines li { display: flex; justify-content: space-between; gap: 18px; padding: 9px 0; background: transparent; border-bottom: 1px dashed var(--line); border-radius: 0; }
.expense-lines li span:first-child { color: var(--muted); }
.expense-lines li strong { color: var(--ink); }
.expense-reconcile { margin-top: 10px; color: #8c6c58 !important; font-size: 10px !important; }

body.drawer-open { overflow: hidden; }

/* Keep wide charts and the closed drawer inside a narrow viewport. */
.expense-dashboard > * { min-width: 0; }
.day-drawer { visibility: hidden; }
.day-drawer.open { visibility: visible; }

@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; padding-top: 140px; gap: 24px; }
  .hero-copy { max-width: 760px; }
  .hero-visual { width: min(560px, 100%); margin: 0 auto; }
  .day-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-panel { align-items: flex-start; flex-wrap: wrap; }
  .filter-divider { display: none; }
  .reset-button { align-self: center; }
  .expense-dashboard { grid-template-columns: 1fr; }
  .expense-breakdown, .daily-ledger { grid-column: 1; }
}

@media (max-width: 720px) {
  .site-header { width: calc(100% - 36px); height: 74px; }
  .brand { gap: 8px; font-size: 14px; }
  nav { gap: 16px; font-size: 12px; }
  .privacy-pill { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding: 108px 20px 40px; gap: 28px; }
  h1 { font-size: clamp(28px, 7.5vw, 44px); margin-bottom: 20px; }
  .eyebrow { font-size: 11px; margin-bottom: 16px; }
  .hero-intro { font-size: 14px; }
  .hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 32px; }
  .hero-stats div { margin: 0; padding: 0 8px; text-align: center; }
  .hero-stats dt { font-size: 26px; }
  .hero-stats dd { font-size: 10px; letter-spacing: 0; }
  .hero-visual { margin-top: 0; }
  .route-caption { width: 92%; }
  .section-shell { width: calc(100% - 36px); padding: 78px 0; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 16px; }
  .overview { padding-bottom: 34px; }
  .route-map-wrap { padding: 10px 16px 2px; }
  .map-toolbar { gap: 14px; padding: 0 14px; }
  .map-hint { display: none; }
  .mobile-map-hint { display: block; margin: 14px 16px 0; color: var(--muted); font-size: 11px; }
  .days { padding-top: 38px; }
  .films { padding-top: 28px; padding-bottom: 30px; }
  .film-controls { gap: 4px; flex-wrap: wrap; }
  .film-counter { width: 100%; order: 1; text-align: center; margin-top: 8px; }
  .film-placeholder { grid-template-columns: 1fr; gap: 24px; padding: 18px; }
  .film-copy { padding: 0 2px 6px; }
  .film-copy h3 { font-size: 25px; }
  .expense-dashboard { padding: 28px 20px; gap: 30px; }
  .expense-breakdown { grid-template-columns: 1fr; }
  .daily-expense-chart { grid-template-columns: repeat(29, 44px); overscroll-behavior-x: contain; }
  .daily-ledger-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .day-grid { grid-template-columns: 1fr; }
  .day-card { min-height: 248px; }
  .filter-panel { display: block; padding: 14px; }
  .filter-group { display: block; margin-bottom: 14px; }
  .filter-label { display: block; margin-bottom: 8px; }
  .reset-button { margin-left: 0; }
  footer { gap: 22px; padding: 28px 20px; }
  .day-drawer { top: auto; bottom: 0; height: 92dvh; padding: 20px 22px max(34px, env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; transform: translateY(105%); overscroll-behavior-y: contain; }
  .day-drawer.open { transform: translateY(0); }
  .route-steps { grid-template-columns: 1fr; gap: 12px; }
  .route-step { min-height: 52px; background: #edf4e9; }
  .route-step:not(:last-child)::after { content: "↓"; top: auto; bottom: -14px; right: 50%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-route { animation: none; stroke-dashoffset: 0; }
  .route-traveler { display: none; }
  .hero-visual { transform: none; }
  .hero-visual.motion-in-view::before, .map-card.motion-in-view .map-line, .primary-action::after { animation: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
