:root {
  --maple-950: #431811;
  --maple-900: #5d1f17;
  --maple-800: #7a2b1e;
  --maple-700: #9b3826;
  --persimmon-600: #c95724;
  --persimmon-500: #df722f;
  --gold-500: #d99a24;
  --cream-100: #fffaf2;
  --cream-200: #f8efdf;
  --cream-300: #ecddc7;
  --ink-900: #2b211d;
  --ink-700: #584941;
  --ink-500: #7b6960;
  --surface: #ffffff;
  --surface-warm: #fff7eb;
  --green-700: #246044;
  --green-100: #e5f4eb;
  --orange-800: #8d3e13;
  --orange-100: #fff0dc;
  --neutral-700: #4f5862;
  --neutral-100: #edf0f3;
  --border: rgba(91, 55, 39, 0.16);
  --shadow-sm: 0 8px 24px rgba(74, 35, 20, 0.08);
  --shadow-md: 0 18px 50px rgba(74, 35, 20, 0.13);
  --radius-sm: 0.75rem;
  --radius-md: 1.15rem;
  --radius-lg: 1.6rem;
  --header-offset: 6.8rem;
  --content-width: 72rem;
  color: var(--ink-900);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei",
    "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  font-synthesis: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-offset) + 1rem);
  background: var(--cream-100);
}

body {
  min-width: 20rem;
  margin: 0;
  padding-top: var(--header-offset);
  overflow-x: hidden;
  color: var(--ink-900);
  background:
    radial-gradient(circle at 8% 8%, rgba(223, 114, 47, 0.1), transparent 24rem),
    var(--cream-100);
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

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

button {
  font: inherit;
}

a {
  color: var(--maple-700);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--maple-900);
}

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

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.75rem;
  z-index: 1000;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  color: #fff;
  background: var(--maple-900);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  background: rgba(67, 24, 17, 0.96);
  box-shadow: 0 8px 28px rgba(35, 14, 9, 0.2);
  backdrop-filter: blur(14px);
}

.nav-shell {
  width: min(100%, calc(var(--content-width) + 2rem));
  margin: 0 auto;
  padding: 0.55rem 1rem 0.35rem;
}

.brand {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover {
  color: #fff3d7;
}

.primary-nav {
  margin: 0.2rem -0.25rem 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: var(--persimmon-500) transparent;
  scrollbar-width: thin;
}

.primary-nav::-webkit-scrollbar {
  height: 4px;
}

.primary-nav::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--persimmon-500);
}

.nav-track {
  display: flex;
  width: max-content;
  min-width: 100%;
  gap: 0.2rem;
  padding: 0 0.25rem 0.25rem;
}

.nav-link {
  position: relative;
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease, background-color 160ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
}

.nav-link.is-active::after {
  position: absolute;
  right: 1rem;
  bottom: 0.28rem;
  left: 1rem;
  height: 2px;
  border-radius: 999px;
  background: var(--persimmon-500);
  content: "";
}

.page-section {
  scroll-margin-top: calc(var(--header-offset) + 1rem);
  padding: 3.75rem 1rem;
}

.page-section--hero {
  padding-top: 1rem;
}

.page-section--tinted {
  border-block: 1px solid rgba(91, 55, 39, 0.08);
  background: rgba(236, 221, 199, 0.32);
}

.section-shell,
.footer-shell {
  width: min(100%, var(--content-width));
  margin: 0 auto;
}

.section-lead {
  max-width: 47rem;
  margin-bottom: 1.75rem;
}

.section-eyebrow,
.hero-eyebrow {
  display: flex;
  margin: 0 0 0.45rem;
  align-items: center;
  gap: 0.45rem;
  color: var(--maple-700);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.section-icon {
  font-size: 1.05rem;
  line-height: 1;
}

.section-title {
  max-width: 19em;
  margin: 0;
  color: var(--ink-900);
  font-size: clamp(1.7rem, 6vw, 2.6rem);
  line-height: 1.28;
  letter-spacing: -0.035em;
}

.section-description {
  max-width: 43rem;
  margin: 0.8rem 0 0;
  color: var(--ink-700);
  font-size: 1rem;
}

.hero-card {
  position: relative;
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
  padding: 2rem 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    radial-gradient(circle at 90% 0%, rgba(239, 173, 72, 0.32), transparent 18rem),
    linear-gradient(135deg, var(--maple-950), var(--maple-700));
  box-shadow: var(--shadow-md);
}

.hero-card::after {
  position: absolute;
  right: -4rem;
  bottom: -6rem;
  width: 15rem;
  height: 15rem;
  border: 1.5rem solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  content: "";
}

.hero-copy,
.hero-stats {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  color: #ffd9aa;
  letter-spacing: 0.04em;
}

.hero-title {
  max-width: 12em;
  margin: 0;
  color: #fff;
  font-size: clamp(2.1rem, 10vw, 4.6rem);
  font-weight: 850;
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.hero-stats {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.hero-stat {
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
}

.hero-stat__label,
.hero-stat__value {
  margin: 0;
}

.hero-stat__label {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-stat__value {
  color: #fff;
  font-size: 0.98rem;
  font-weight: 800;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.overview-grid,
.cities-grid,
.practical-grid,
.bookings-grid,
.days-grid {
  display: grid;
  gap: 1rem;
}

.overview-grid {
  margin-bottom: 1rem;
}

.intro-card,
.highlight-card,
.budget-card {
  padding: 1.25rem;
}

.intro-card {
  display: flex;
  align-items: center;
  border-color: rgba(155, 56, 38, 0.26);
  background: linear-gradient(145deg, #fff, var(--surface-warm));
}

.intro-text {
  margin: 0;
  color: var(--ink-700);
  font-size: 1.04rem;
}

.card-title {
  margin: 0;
  color: var(--ink-900);
  font-size: 1.15rem;
  line-height: 1.4;
}

.card-hint {
  margin: 0.2rem 0 0;
  color: var(--ink-500);
  font-size: 0.86rem;
}

.check-list,
.plain-list,
.source-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.check-list__item {
  position: relative;
  padding-left: 1.55rem;
  color: var(--ink-700);
}

.check-list__item::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 0.16rem 0.45rem 0.16rem 0.45rem;
  background: var(--persimmon-500);
  content: "";
  transform: rotate(-12deg);
}

.card-heading-row {
  display: flex;
  margin-bottom: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.budget-table {
  width: 100%;
  min-width: 39rem;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.budget-table th,
.budget-table td {
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.budget-table thead th {
  color: var(--maple-900);
  background: var(--cream-200);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

.budget-table tbody tr:last-child td {
  border-bottom: 1px solid var(--border);
}

.budget-table tfoot th,
.budget-table tfoot td {
  border-bottom: 0;
  color: var(--maple-900);
  background: var(--surface-warm);
  font-weight: 800;
}

.budget-table__item {
  font-weight: 700;
}

.budget-table__money {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  white-space: nowrap;
}

.budget-table__note {
  color: var(--ink-500);
}

.plan-tabs {
  display: flex;
  gap: 0.55rem;
  margin: 0 -0.25rem 1rem;
  padding: 0.25rem 0.25rem 0.45rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.plan-tab {
  flex: 1 0 6.8rem;
  min-height: 3rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink-700);
  background: var(--surface);
  box-shadow: 0 3px 12px rgba(74, 35, 20, 0.05);
  font-size: 0.94rem;
  font-weight: 800;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease,
    transform 160ms ease;
}

.plan-tab:hover {
  border-color: var(--persimmon-500);
  transform: translateY(-1px);
}

.plan-tab[aria-selected="true"] {
  border-color: var(--maple-800);
  color: #fff;
  background: var(--maple-800);
}

.route-panel {
  padding: 1.25rem;
  border-top: 4px solid var(--persimmon-500);
}

.route-panel__header,
.day-card__header,
.itinerary-panel__header,
.practical-card__header,
.booking-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.route-panel__title,
.itinerary-panel__title,
.city-card__title,
.practical-card__title,
.booking-card__title,
.day-card__title {
  margin: 0;
  color: var(--ink-900);
  line-height: 1.4;
}

.route-panel__title,
.itinerary-panel__title {
  font-size: 1.28rem;
}

.route-summary {
  max-width: 48rem;
  margin: 0.75rem 0 1rem;
  color: var(--ink-700);
}

.pros-cons-grid {
  display: grid;
  gap: 0.8rem;
}

.route-list {
  padding: 1rem;
  border-radius: var(--radius-sm);
}

.route-list--pros {
  background: var(--green-100);
}

.route-list--cons {
  background: var(--orange-100);
}

.route-list__title {
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
}

.route-list--pros .route-list__title {
  color: var(--green-700);
}

.route-list--cons .route-list__title {
  color: var(--orange-800);
}

.plain-list {
  display: grid;
  gap: 0.45rem;
}

.plain-list li {
  position: relative;
  padding-left: 1rem;
  color: var(--ink-700);
}

.plain-list li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--persimmon-500);
  content: "";
}

.itinerary-panel__header {
  margin-bottom: 1rem;
  align-items: center;
}

.day-count {
  flex: 0 0 auto;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  color: var(--maple-900);
  background: var(--cream-300);
  font-size: 0.82rem;
  font-weight: 800;
}

.day-card {
  padding: 1.1rem;
}

.day-card__title {
  font-size: 1.02rem;
}

.badge {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 1.8rem;
  align-items: center;
  justify-content: center;
  padding: 0.18rem 0.65rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.2;
  white-space: nowrap;
}

.badge--light {
  border-color: rgba(36, 96, 68, 0.24);
  color: var(--green-700);
  background: var(--green-100);
}

.badge--medium {
  border-color: rgba(141, 62, 19, 0.22);
  color: var(--orange-800);
  background: var(--orange-100);
}

.badge--neutral {
  border-color: rgba(79, 88, 98, 0.2);
  color: var(--neutral-700);
  background: var(--neutral-100);
}

.day-card__base {
  display: flex;
  margin: 0.6rem 0 0.9rem;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-700);
  font-size: 0.9rem;
}

.day-card__base-label {
  padding: 0.1rem 0.45rem;
  border-radius: 0.4rem;
  color: var(--maple-900);
  background: var(--cream-200);
  font-size: 0.75rem;
  font-weight: 800;
}

.timeline {
  display: grid;
  gap: 0.55rem;
}

.timeline-segment {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 0.65rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px dashed var(--border);
}

.timeline-segment:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.timeline-segment__label,
.timeline-segment__text {
  margin: 0;
}

.timeline-segment__label {
  color: var(--persimmon-600);
  font-size: 0.82rem;
  font-weight: 850;
}

.timeline-segment__text {
  color: var(--ink-700);
  font-size: 0.92rem;
}

.day-note {
  margin-top: 0.9rem;
  padding: 0.65rem 0.75rem;
  border-left: 3px solid var(--gold-500);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-700);
  background: #fff9e9;
  font-size: 0.84rem;
}

.day-note__label {
  margin-right: 0.45rem;
  color: var(--maple-900);
  font-weight: 850;
}

.city-card,
.practical-card,
.booking-card {
  padding: 1.25rem;
}

.city-card {
  border-top: 4px solid var(--maple-700);
}

.city-card__title {
  font-size: 1.35rem;
}

.city-guides {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.city-guide {
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
}

.city-guide:first-child {
  padding-top: 0;
  border-top: 0;
}

.city-guide__title,
.city-guide__body {
  margin: 0;
}

.city-guide__title {
  color: var(--persimmon-600);
  font-size: 0.9rem;
}

.city-guide__body {
  margin-top: 0.2rem;
  color: var(--ink-700);
  font-size: 0.94rem;
}

.practical-card__header {
  margin-bottom: 0.9rem;
  align-items: center;
  justify-content: flex-start;
}

.practical-card__icon {
  display: inline-grid;
  width: 2.6rem;
  height: 2.6rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 0.8rem;
  background: var(--cream-200);
  font-size: 1.25rem;
}

.practical-card__title {
  font-size: 1.15rem;
}

.practical-list {
  gap: 0.65rem;
}

.booking-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  border-top: 4px solid var(--gold-500);
}

.booking-card__header {
  justify-content: flex-start;
}

.booking-card__number {
  display: inline-grid;
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--maple-800);
  font-size: 0.78rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.booking-card__title {
  font-size: 1.08rem;
}

.booking-detail {
  margin-top: 1rem;
}

.booking-detail__label,
.booking-detail__value {
  margin: 0;
}

.booking-detail__label {
  color: var(--ink-500);
  font-size: 0.78rem;
  font-weight: 800;
}

.booking-detail__value {
  margin-top: 0.15rem;
  color: var(--ink-700);
  font-size: 0.92rem;
}

.booking-deadline {
  display: flex;
  margin-top: 1rem;
  padding: 0.7rem 0.8rem;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.7rem;
  border: 1px solid rgba(201, 87, 36, 0.3);
  border-radius: var(--radius-sm);
  color: var(--orange-800);
  background: var(--orange-100);
}

.booking-deadline__label {
  font-size: 0.78rem;
  font-weight: 800;
}

.booking-deadline__value {
  text-align: right;
  font-size: 0.88rem;
}

.booking-link {
  display: inline-flex;
  min-height: 2.75rem;
  margin-top: auto;
  padding-top: 1rem;
  align-items: center;
  color: var(--maple-700);
  font-size: 0.9rem;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.site-footer {
  padding: 2.75rem 1rem;
  color: rgba(255, 255, 255, 0.78);
  background: var(--maple-950);
}

.footer-shell {
  display: grid;
  gap: 1.5rem;
}

.footer-title {
  margin: 0 0 0.6rem;
  color: #fff;
  font-size: 1rem;
}

.source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
}

.source-link {
  color: #ffd6a6;
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.source-link:hover {
  color: #fff;
}

.footer-notice {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.86rem;
}

@media (min-width: 30rem) {
  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-stat {
    min-width: 0;
  }
}

@media (min-width: 48rem) {
  :root {
    --header-offset: 4.75rem;
  }

  .nav-shell {
    display: flex;
    min-height: var(--header-offset);
    padding: 0.55rem 1rem;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }

  .brand {
    min-height: 2.75rem;
  }

  .primary-nav {
    margin: 0;
  }

  .nav-track {
    min-width: auto;
    padding-bottom: 0;
  }

  .nav-link {
    padding-inline: 0.75rem;
  }

  .page-section {
    padding: 5rem 1.5rem;
  }

  .page-section--hero {
    padding-top: 1.5rem;
  }

  .hero-card {
    grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.65fr);
    padding: 3.25rem;
    align-items: end;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .overview-grid,
  .cities-grid,
  .practical-grid,
  .days-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro-card,
  .highlight-card,
  .budget-card,
  .route-panel,
  .city-card,
  .practical-card,
  .booking-card {
    padding: 1.5rem;
  }

  .pros-cons-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bookings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-shell {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .footer-notice {
    text-align: right;
  }
}

@media (min-width: 68rem) {
  .bookings-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  @page {
    margin: 12mm;
  }

  :root {
    --header-offset: 0rem;
    --border: rgba(0, 0, 0, 0.2);
    color: #111;
    font-size: 10pt;
  }

  html,
  body {
    background: #fff !important;
  }

  body {
    padding-top: 0;
    color: #111;
  }

  .site-header,
  .skip-link,
  .plan-tabs {
    display: none !important;
  }

  .page-section,
  .page-section--hero,
  .site-footer {
    padding: 5mm 0;
    border: 0;
    color: #111;
    background: #fff !important;
  }

  .hero-card {
    margin-bottom: 7mm;
    padding: 8mm;
    color: #111;
    background: #fff !important;
    border: 1.5pt solid #5d1f17;
  }

  .hero-card::after {
    display: none;
  }

  .hero-title,
  .hero-eyebrow,
  .hero-stat__label,
  .hero-stat__value,
  .footer-title,
  .footer-notice,
  .source-link {
    color: #111;
  }

  .hero-title {
    font-size: 25pt;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-stat {
    border-color: #bbb;
    background: #fff;
  }

  .section-title {
    font-size: 18pt;
  }

  .route-panel[hidden],
  .itinerary-panel[hidden] {
    display: block !important;
  }

  .route-panel + .route-panel,
  .itinerary-panel + .itinerary-panel {
    margin-top: 8mm;
  }

  .card,
  .route-list,
  .day-note,
  .booking-deadline,
  .practical-card__icon {
    color: #111;
    background: #fff !important;
    box-shadow: none;
  }

  .card,
  .day-card,
  .city-guide,
  .timeline-segment,
  .booking-deadline {
    break-inside: avoid;
  }

  .overview-grid,
  .cities-grid,
  .practical-grid,
  .bookings-grid,
  .days-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4mm;
  }

  .budget-table {
    min-width: 0;
  }

  a {
    color: #111;
    text-decoration: none;
  }
}
