:root {
  color-scheme: light;
  --ink: #101528;
  --paper: #f3f5f7;
  --surface: #ffffff;
  --muted: #5e6677;
  --line: #cfd5df;
  --blue: #12338f;
  --blue-deep: #071847;
  --red: #d52f25;
  --red-deep: #9f1d18;
  --yellow: #f3c64e;
  --shadow: 0 20px 60px rgba(16, 21, 40, .13);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --max: 1240px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f4f6fb;
  --paper: #0b1020;
  --surface: #131a2d;
  --muted: #aab3c6;
  --line: #313b55;
  --blue: #6187ff;
  --blue-deep: #071847;
  --red: #ff6157;
  --red-deep: #d43a32;
  --yellow: #f3c64e;
  --shadow: 0 22px 70px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  transform: translateY(-140%);
  padding: 10px 14px;
  color: #fff;
  background: var(--blue-deep);
  border-radius: var(--radius-sm);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 max(20px, calc((100vw - var(--max)) / 2));
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  backdrop-filter: blur(18px);
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-weight: 850;
  text-decoration: none;
  letter-spacing: -.02em;
}
.wordmark-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: var(--red);
  border-radius: 50%;
  font-size: 12px;
  letter-spacing: 0;
}
.main-nav { display: flex; gap: 22px; white-space: nowrap; }
.main-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.main-nav a:hover { color: var(--red); }
.theme-toggle {
  min-width: 62px;
  padding: 8px 12px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: calc(100dvh - 68px);
  overflow: hidden;
  color: #fff;
  background: var(--blue-deep);
}
.hero-image, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { object-fit: cover; object-position: 58% center; }
.hero-shade {
  background:
    linear-gradient(90deg, rgba(3, 13, 46, .92) 0%, rgba(3, 13, 46, .68) 38%, rgba(3, 13, 46, .08) 72%),
    linear-gradient(0deg, rgba(3, 13, 46, .55), transparent 42%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding-top: clamp(70px, 12vh, 126px);
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
}
.hero .eyebrow { color: #ff746b; }
.hero h1 {
  max-width: 750px;
  margin: 0;
  font-family: "Songti TC", "Noto Serif TC", Georgia, serif;
  font-size: clamp(58px, 8.7vw, 128px);
  font-weight: 900;
  line-height: .91;
  letter-spacing: -.07em;
  text-wrap: balance;
}
.hero-lede {
  max-width: 520px;
  margin: 26px 0 0;
  color: rgba(255,255,255,.88);
  font-size: clamp(16px, 2vw, 20px);
}
.hero-actions, .visual-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--red-deep); }
.button-primary:hover { background: #7e1713; }
.button-ghost { color: inherit; background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.48); }
.button-ghost:hover { background: rgba(255,255,255,.18); }
.hero-stamp {
  position: absolute;
  right: clamp(18px, 4vw, 64px);
  bottom: clamp(18px, 4vw, 56px);
  z-index: 2;
  width: 108px;
  height: 108px;
  display: grid;
  place-content: center;
  text-align: center;
  border: 2px solid rgba(255,255,255,.7);
  border-radius: 50%;
  transform: rotate(7deg);
}
.hero-stamp strong { font: 900 50px/.82 Georgia, serif; }
.hero-stamp span { font-size: 11px; font-weight: 900; letter-spacing: .18em; }

.trip-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(var(--max), calc(100% - 40px));
  margin: -22px auto 0;
  position: relative;
  z-index: 5;
  color: #fff;
  background: var(--blue-deep);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}
.trip-strip div { padding: 22px 24px; border-right: 1px solid rgba(255,255,255,.18); }
.trip-strip div:last-child { border-right: 0; }
.trip-strip span, .trip-strip strong { display: block; }
.trip-strip span { color: rgba(255,255,255,.62); font-size: 12px; }
.trip-strip strong { margin-top: 3px; font-size: 15px; }

.urgent {
  width: min(920px, calc(100% - 40px));
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  margin: 70px auto 0;
  padding: 22px 26px;
  background: color-mix(in srgb, var(--yellow) 20%, var(--surface));
  border-left: 5px solid var(--red);
  border-radius: var(--radius-sm);
}
.urgent-number { color: var(--red); font-weight: 950; letter-spacing: .12em; writing-mode: vertical-rl; }
.urgent h2 { margin: 0; font-size: 22px; }
.urgent p { margin: 5px 0 0; color: var(--muted); font-size: 14px; }
.text-link { color: var(--red); font-size: 14px; font-weight: 850; white-space: nowrap; }

.section { width: min(var(--max), calc(100% - 40px)); margin: 112px auto; }
.section-heading { max-width: 760px; margin-bottom: 38px; }
.section-heading h2, .visual-copy h2, .budget-intro h2, .field-notes h2 {
  margin: 0;
  font-family: "Songti TC", "Noto Serif TC", Georgia, serif;
  font-size: clamp(36px, 5.2vw, 68px);
  line-height: 1.04;
  letter-spacing: -.055em;
}
.section-heading > p:last-child, .budget-intro > p:last-child { color: var(--muted); max-width: 640px; }

.day-selector-wrap { position: sticky; top: 67px; z-index: 20; margin: 0 -4px 30px; padding: 10px 4px; background: var(--paper); }
.day-selector { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.day-tab {
  min-height: 66px;
  padding: 8px 10px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.day-tab:hover { transform: translateY(-2px); color: var(--ink); }
.day-tab span, .day-tab strong { display: block; }
.day-tab span { font-size: 11px; }
.day-tab strong { font-size: 17px; }
.day-tab[aria-selected="true"] { color: #fff; background: var(--blue-deep); border-color: var(--blue-deep); }

.day-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, .7fr);
  gap: 24px;
  align-items: stretch;
}
.day-hero, .day-budget { border-radius: var(--radius-lg); }
.day-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 56px);
  color: #fff;
  background: linear-gradient(130deg, var(--blue-deep), #1848bd);
}
.day-hero::after {
  content: attr(data-day);
  position: absolute;
  right: -8px;
  bottom: -42px;
  color: rgba(255,255,255,.08);
  font: 900 clamp(130px, 22vw, 280px)/1 Georgia, serif;
}
.day-kicker { display: block; color: #aebfff; font-size: 13px; font-weight: 850; letter-spacing: .1em; }
.day-hero h3 { position: relative; z-index: 1; max-width: 700px; margin: 12px 0 10px; font-size: clamp(32px, 5vw, 62px); line-height: 1.02; letter-spacing: -.05em; }
.day-hero p { position: relative; z-index: 1; max-width: 610px; margin: 0; color: rgba(255,255,255,.77); }
.day-budget {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
  color: #1b1605;
  background: var(--yellow);
}
.day-budget span, .day-budget small { display: block; }
.day-budget span { font-weight: 800; }
.day-budget strong { margin: 10px 0; font: 900 clamp(28px, 4vw, 46px)/1.04 Georgia, serif; letter-spacing: -.04em; }
.day-budget small { opacity: .72; }

.timeline { margin-top: 38px; }
.timeline-item {
  display: grid;
  grid-template-columns: 130px 28px minmax(0, 1fr);
  min-height: 126px;
}
.timeline-time { padding-top: 24px; font-weight: 900; color: var(--blue); }
.timeline-rail { position: relative; }
.timeline-rail::before { content: ""; position: absolute; top: 0; bottom: 0; left: 13px; width: 2px; background: var(--line); }
.timeline-dot { position: absolute; top: 30px; left: 8px; width: 12px; height: 12px; background: var(--red); border: 3px solid var(--paper); border-radius: 50%; box-shadow: 0 0 0 1px var(--red); }
.timeline-card { padding: 22px 0 26px 22px; border-bottom: 1px solid var(--line); }
.timeline-card h4 { margin: 0 0 5px; font-size: 20px; line-height: 1.3; }
.timeline-card p { max-width: 780px; margin: 0; color: var(--muted); }
.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.meta {
  display: inline-flex;
  padding: 5px 9px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 750;
}
.map-button {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 11px;
  color: #fff;
  background: var(--red-deep);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}
.map-button:hover { background: #7e1713; }
.day-note { margin: 28px 0 0 158px; padding: 18px 20px; color: var(--muted); background: var(--surface); border-left: 4px solid var(--yellow); border-radius: var(--radius-sm); }
.day-note strong { color: var(--ink); }

.visual-break {
  min-height: 700px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  color: #fff;
  background: var(--blue-deep);
}
.visual-break > img { width: 100%; height: 100%; min-height: 700px; object-fit: cover; }
.visual-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 7vw, 100px); }
.visual-copy .eyebrow { color: #ff746b; }
.visual-copy p:not(.eyebrow) { max-width: 520px; color: rgba(255,255,255,.7); }

.compact-heading { margin-bottom: 26px; }
.area-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter-button {
  min-height: 38px;
  padding: 7px 13px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.filter-button[aria-pressed="true"] { color: #fff; background: var(--blue-deep); border-color: var(--blue-deep); }
.area-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.area-card {
  grid-column: span 6;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  min-height: 330px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 14px 42px rgba(20, 32, 72, .06);
}
.area-card:nth-child(3n) { grid-column: span 7; }
.area-card:nth-child(3n + 1) { grid-column: span 5; }
.area-card-accent {
  position: relative;
  display: grid;
  place-items: end center;
  padding: 22px 12px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(150deg, var(--blue-deep), #2659cf);
}
.area-card-accent::before {
  content: attr(data-kanji);
  position: absolute;
  top: 18px;
  left: 50%;
  color: rgba(255,255,255,.13);
  font: 900 82px/1 "Songti TC", serif;
  transform: translateX(-50%);
  writing-mode: vertical-rl;
}
.area-card-accent span { position: relative; z-index: 1; font-size: 12px; font-weight: 900; letter-spacing: .12em; writing-mode: vertical-rl; }
.area-card-body { padding: 26px; }
.area-card h3 { margin: 0; font-size: 27px; letter-spacing: -.04em; }
.area-intro { min-height: 76px; color: var(--muted); font-size: 14px; }
.recommendation-group + .recommendation-group { margin-top: 18px; }
.recommendation-group h4 { margin: 0 0 7px; color: var(--red); font-size: 12px; letter-spacing: .08em; }
.recommendation-list { display: flex; flex-wrap: wrap; gap: 7px; }
.recommendation-link {
  display: inline-flex;
  padding: 6px 9px;
  color: var(--ink);
  background: var(--paper);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 720;
  text-decoration: none;
}
.recommendation-link:hover { color: #fff; background: var(--red-deep); }
.recommendation-link small { margin-left: 5px; color: inherit; opacity: .62; }
.empty-state { grid-column: 1/-1; padding: 44px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius-md); }

.budget-section {
  display: grid;
  grid-template-columns: 1.2fr .7fr;
  gap: 40px;
  align-items: end;
}
.budget-intro { max-width: 700px; }
.budget-total { padding: 30px; color: #fff; background: var(--red-deep); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.budget-total span, .budget-total small { display: block; }
.budget-total strong { display: block; margin: 12px 0; font: 900 clamp(30px, 4vw, 47px)/1 Georgia, serif; }
.budget-total small { color: rgba(255,255,255,.7); }
.budget-table-wrap { grid-column: 1/-1; overflow-x: auto; background: var(--surface); border-radius: var(--radius-md); }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td { padding: 17px 20px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: 12px; letter-spacing: .08em; }
td:last-child, th:last-child { text-align: right; }
tbody tr:last-child td { border-bottom: 0; }

.field-notes { padding: 84px max(20px, calc((100vw - var(--max)) / 2)); color: #fff; background: var(--blue-deep); }
.field-notes h2 { max-width: 680px; }
.note-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 40px; }
.note-track article { padding-top: 18px; border-top: 3px solid var(--red); }
.note-track strong { font-size: 18px; }
.note-track p { color: rgba(255,255,255,.68); font-size: 14px; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px max(20px, calc((100vw - var(--max)) / 2));
  color: var(--muted);
  background: var(--paper);
  font-size: 13px;
}
footer p { margin: 0; }
footer a { color: var(--red); font-weight: 800; white-space: nowrap; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .trip-strip { grid-template-columns: repeat(2, 1fr); }
  .trip-strip div:nth-child(2) { border-right: 0; }
  .trip-strip div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.18); }
  .day-selector { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
  .day-tab { min-width: 86px; scroll-snap-align: start; }
  .day-overview { grid-template-columns: 1fr; }
  .day-budget { min-height: 185px; }
  .visual-break { grid-template-columns: 1fr; }
  .visual-break > img { min-height: 430px; max-height: 60vh; }
  .area-card, .area-card:nth-child(3n), .area-card:nth-child(3n + 1) { grid-column: span 12; }
  .budget-section { grid-template-columns: 1fr; align-items: stretch; }
  .budget-table-wrap { grid-column: 1; }
  .note-track { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .site-header { height: 60px; padding-inline: 16px; }
  .wordmark > span:last-child { display: none; }
  .wordmark-mark { width: 36px; height: 36px; }
  .hero { min-height: 760px; }
  .hero-image { object-position: 66% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(3,13,46,.94), rgba(3,13,46,.18) 78%), linear-gradient(90deg, rgba(3,13,46,.35), transparent); }
  .hero-content { display: flex; flex-direction: column; justify-content: flex-end; min-height: 690px; padding: 30px 0; }
  .hero h1 { font-size: clamp(53px, 17vw, 78px); }
  .hero-lede { max-width: 340px; font-size: 16px; }
  .hero-stamp { width: 80px; height: 80px; top: 24px; bottom: auto; }
  .hero-stamp strong { font-size: 36px; }
  .trip-strip { width: calc(100% - 24px); margin-top: -14px; }
  .trip-strip div { padding: 16px; }
  .trip-strip strong { font-size: 13px; }
  .urgent { width: calc(100% - 32px); grid-template-columns: 1fr; gap: 8px; margin-top: 54px; }
  .urgent-number { writing-mode: initial; }
  .section { width: calc(100% - 32px); margin: 82px auto; }
  .section-heading h2, .visual-copy h2, .budget-intro h2, .field-notes h2 { font-size: 39px; }
  .day-selector-wrap { top: 59px; margin-inline: -16px; padding-inline: 16px; }
  .day-overview { gap: 12px; }
  .day-hero { padding: 28px 22px; }
  .day-budget { min-height: 150px; padding: 24px; }
  .timeline-item { grid-template-columns: 1fr; min-height: auto; }
  .timeline-time { padding: 26px 0 0; color: var(--red); }
  .timeline-rail { display: none; }
  .timeline-card { padding: 8px 0 24px; }
  .timeline-card h4 { font-size: 19px; }
  .day-note { margin-left: 0; }
  .visual-break > img { min-height: 340px; }
  .visual-copy { padding: 42px 22px 54px; }
  .area-grid { gap: 12px; }
  .area-card { grid-template-columns: 72px minmax(0, 1fr); }
  .area-card-accent { padding: 16px 8px; }
  .area-card-accent::before { font-size: 58px; }
  .area-card-body { padding: 22px 18px; }
  .area-intro { min-height: 0; }
  .note-track { grid-template-columns: 1fr; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
