:root { color-scheme: light; --paper: #f4eccf; --panel: #fffaf0; --pine: #183f34; --ink: #173a30; --muted: #536454; --line: #d5d4b9; --route: #f28c5f; --focus: #934125; font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.65; }
a { color: inherit; }
button, select { font: inherit; }
button { cursor: pointer; }
button:disabled, select:disabled { cursor: not-allowed; }
a:focus-visible, button:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.shell { width: min(calc(100% - 64px), 1400px); margin-inline: auto; }
.skip-link { position: absolute; top: -80px; left: 16px; z-index: 10; padding: 10px 16px; background: var(--pine); color: var(--panel); }
.skip-link:focus { top: 12px; }
.demo-catalog-bar { border-bottom: 1px solid var(--line); font-size: .85rem; }
.demo-catalog-bar a { display: inline-block; padding-block: 10px; text-decoration: none; }
.demo-catalog-bar a:hover { text-decoration: underline; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 44px; height: 36px; flex: 0 0 auto; }
.brand-name { display: block; font-family: "Songti SC", "SimSun", serif; font-size: 1.35rem; font-weight: 700; letter-spacing: .08em; }
.brand-note { display: block; font-size: .58rem; letter-spacing: .16em; }
.site-nav { display: flex; flex-wrap: wrap; gap: 26px; font-size: .9rem; }
.site-nav a { padding-block: 9px; border-bottom: 1px solid transparent; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-color: currentColor; }
.planner-page { padding-block: 52px 78px; }
.planner-intro { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 36px; }
.eyebrow, .panel-kicker { margin: 0 0 8px; font-size: .7rem; letter-spacing: .14em; font-weight: 700; }
.eyebrow { color: var(--muted); }
h1, h2, h3 { margin: 0; font-family: "Songti SC", "SimSun", Georgia, serif; line-height: 1.3; }
h1 { font-size: clamp(2rem, 3.3vw, 3.5rem); font-weight: 600; letter-spacing: .03em; }
.intro-copy { max-width: 650px; margin: 18px 0 0; color: var(--muted); font-size: .95rem; }
.weekend-stamp { display: grid; justify-items: center; gap: 8px; padding: 16px 22px; border: 1px solid var(--pine); border-radius: 50% 50% 6px 6px; transform: rotate(5deg); flex: 0 0 auto; }
.weekend-stamp span { font-size: .55rem; letter-spacing: .12em; }
.weekend-stamp strong { font-family: "Songti SC", "SimSun", serif; font-size: 1.2rem; line-height: 1.5; }
.planner-layout { display: grid; grid-template-columns: minmax(240px, .85fr) minmax(0, 1.15fr) minmax(275px, 1fr); align-items: start; gap: 20px; }
.panel { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.panel-heading h2 { font-size: 1.45rem; }
.panel-kicker { color: var(--muted); font-size: .58rem; }
.place-count, .itinerary-count { flex: 0 0 auto; font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.place-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; }
.place-filter label { font-size: .8rem; color: var(--muted); }
.place-filter select { flex: 1; min-width: 110px; max-width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); color: var(--ink); font-size: .82rem; }
.place-list { display: grid; gap: 14px; max-height: 740px; padding: 4px 6px 5px 4px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #81916e transparent; }
.place-card { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 11px; background: #faf6e7; }
.place-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.place-title h3 { font-size: 1.18rem; }
.category-tag { padding: 2px 7px; border: 1px solid #bac6ab; border-radius: 4px; color: #3c5b40; font-size: .66rem; }
.place-card p { margin: 10px 0 13px; color: var(--muted); font-size: .79rem; line-height: 1.8; }
.place-meta { display: flex; flex-wrap: wrap; gap: 5px 10px; margin-bottom: 13px; font-size: .72rem; font-variant-numeric: tabular-nums; }
.add-button { width: 100%; padding: 9px 10px; border: 1px solid var(--pine); border-radius: 6px; background: var(--pine); color: var(--panel); font-size: .82rem; transition: background .15s ease; }
.add-button:hover:not(:disabled) { background: #2b5741; }
.add-button:disabled { border-color: #d0d4bd; background: #e5e8d8; color: #4e5c4c; }
.map-panel { padding: 22px 0 0; overflow: hidden; border-color: var(--pine); background: var(--pine); color: var(--paper); }
.map-panel .panel-heading { padding-inline: 22px; margin-bottom: 8px; }
.map-panel .panel-kicker { color: #c3cfb5; }
.map-scale { font-size: .65rem; letter-spacing: .08em; }
.terrain-map { display: block; width: 100%; height: auto; }
.map-place-ring { fill: var(--pine); stroke: #b9caaa; stroke-width: 2; }
.map-place-dot { fill: #d3dfb2; }
.map-place-name { fill: #f4eccf; font-family: "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 17px; }
.map-place { transition: opacity .15s ease; }
.map-place.is-muted { opacity: .35; }
.map-place.is-selected { opacity: 1; }
.map-route { fill: none; stroke: var(--route); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.route-disc { fill: var(--route); stroke: #15392f; stroke-width: 3; }
.route-number { fill: #13382d; font-family: system-ui, sans-serif; font-size: 18px; font-weight: 800; }
.map-caption { padding: 16px 22px; border-top: 1px solid #49614b; font-size: .72rem; }
.map-caption p { margin: 0 0 5px; }
.route-swatch { display: inline-block; width: 18px; height: 3px; margin: 0 6px 3px 0; background: var(--route); }
.map-note { display: flex; align-items: start; gap: 12px; padding: 18px 22px; background: #214b3c; }
.map-note > span { color: var(--route); font-size: 2rem; line-height: 1; }
.map-note p { margin: 0; color: #d4dcc1; font-size: .76rem; line-height: 1.8; }
.itinerary-panel { background: #fff9e7; }
.trip-totals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 10px; margin: 0; padding-block: 17px; border-block: 1px solid var(--line); }
.trip-totals dt { margin-bottom: 3px; color: var(--muted); font-size: .73rem; }
.trip-totals dd { margin: 0; font-family: Georgia, "Microsoft YaHei", sans-serif; font-size: 1.7rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.trip-totals small { margin-left: 5px; font-size: .65rem; }
.transfer-note { margin: 13px 0 0; font-size: .72rem; color: var(--muted); }
.day-warning { margin: 15px 0 0; padding: 10px 12px; border-left: 3px solid #b55330; background: #f7e0be; color: #683820; font-size: .8rem; }
.itinerary-empty { padding-block: 25px; color: var(--muted); text-align: center; font-size: .88rem; }
.itinerary-empty span { display: block; color: #9ba586; font-size: 2.4rem; }
.itinerary-list { display: grid; gap: 12px; margin: 22px 0; padding: 0; list-style: none; }
.itinerary-stop { display: grid; grid-template-columns: 27px minmax(0, 1fr); gap: 10px; padding-bottom: 13px; border-bottom: 1px dashed #bac5a4; }
.stop-number { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid var(--pine); border-radius: 50%; font-size: .8rem; }
.itinerary-stop h3 { margin: 1px 0 7px; font-size: 1.1rem; overflow-wrap: anywhere; }
.stop-meta { margin: 0 0 9px; color: var(--muted); font-size: .72rem; }
.stop-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.stop-actions button { padding: 6px 8px; border: 1px solid #9eaf90; border-radius: 5px; background: transparent; color: var(--ink); font-size: .71rem; }
.stop-actions button:disabled { border-color: #d5d7c1; color: #727c67; }
.stop-actions button:hover:not(:disabled) { background: #e4e8d4; }
.itinerary-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.itinerary-tools p { margin: 0; color: var(--muted); font-size: .71rem; }
.clear-button { padding: 7px 10px; border: 1px solid var(--pine); border-radius: 5px; background: transparent; color: var(--ink); font-size: .76rem; }
.clear-button:disabled { border-color: #c7ceb3; color: #727c67; }
.planner-status { min-height: 2.5em; margin: 18px 0 0; font-size: .79rem; }
.estimate-note { margin: 8px 0 0; color: var(--muted); font-size: .7rem; line-height: 1.8; }
.noscript-note { padding: 16px 20px; border: 1px dashed var(--pine); border-radius: 10px; background: var(--panel); font-size: .88rem; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 25px; color: var(--muted); font-size: .76rem; }
.footer-inner p { margin: 0; }
.footer-inner a { text-decoration: none; }
.about-page { max-width: 850px; padding-block: 65px 80px; }
.about-heading { padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.about-heading > p:last-child { max-width: 650px; color: var(--muted); }
.prose { max-width: 710px; margin-top: 36px; color: var(--muted); line-height: 1.95; }
.prose h2 { margin: 34px 0 12px; color: var(--ink); font-size: 1.6rem; }
.prose p { margin: 0 0 20px; }
.prose strong { color: var(--ink); }
.back-link { display: inline-block; margin-top: 30px; text-decoration: none; border-bottom: 1px solid currentColor; }
@media (max-width: 1100px) { .planner-layout { grid-template-columns: minmax(240px, .8fr) minmax(0, 1.4fr); } .places-panel { grid-row: span 2; } .map-panel, .itinerary-panel { grid-column: 2; } }
@media (max-width: 760px) {
  .shell { width: calc(100% - 32px); }
  .header-inner { min-height: 0; flex-wrap: wrap; gap: 12px; padding-block: 20px 13px; }
  .site-nav { width: 100%; gap: 25px; }
  .planner-page { padding-block: 32px 48px; }
  .planner-intro { margin-bottom: 26px; }
  .weekend-stamp { display: none; }
  .intro-copy { font-size: .88rem; }
  .planner-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .places-panel, .map-panel, .itinerary-panel { grid-column: auto; grid-row: auto; }
  .panel { padding: 18px; }
  .place-list { max-height: 430px; }
  .map-panel { padding: 18px 0 0; }
  .map-panel .panel-heading { padding-inline: 18px; }
  .map-caption, .map-note { padding-inline: 18px; }
  .trip-totals dd { font-size: 1.85rem; }
  .about-page { padding-block: 40px 55px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
/* Each scene uses its own Chinese seal and home-page publishing notes. */
.scene-brand-mark { display: grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0; border: 1px solid currentColor; border-radius: 4px; font-family: "Songti SC", "SimSun", serif; font-size: 1.35rem; line-height: 1; }
.footer-inner p > strong, .footer-inner p > span { display: block; }
.footer-inner p > strong { margin-bottom: .3rem; font-size: .75rem; font-weight: 500; }
.brand-name { font-size: 1.14rem; }
@media (max-width: 700px) { .brand-name { font-size: 1.03rem; } .brand-note { font-size: .49rem; } .scene-brand-mark { width: 30px; height: 34px; font-size: 1.1rem; } .header-inner { gap: .6rem; } .site-nav { gap: .8rem; } }

@media (max-width: 640px) {
  .mountain-title-phrase { display: block; }
  .terrain-map .map-place .map-place-name { font-size: 36px; }
  body[data-template="classic"] .map-place-name { paint-order: stroke; stroke: #214b3e; stroke-width: 4px; stroke-linejoin: round; }
}
