:root {
  color-scheme: light;
  --paper: #f6f2ea;
  --white: #fffdf8;
  --ink: #242d2a;
  --muted: #565f57;
  --line: #d9d6cb;
  --accent: #9d432d;
  --city: #304c45;
  --sans: "Inter", "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
  --serif: "Instrument Serif", "Songti SC", "SimSun", "Noto Serif CJK SC", Georgia, serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
img { max-width: 100%; display: block; }
.wrap { width: min(1296px, calc(100% - 112px)); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -5rem; z-index: 5; padding: 1rem; background: white; }
.skip:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.masthead { border-bottom: 1px solid var(--line); background: var(--paper); }
.header-line { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 76px; gap: 32px; }
.masthead a { text-decoration: none; }
.brand { display: inline-flex; gap: 11px; align-items: center; font-weight: 750; white-space: nowrap; justify-self: start; }
.compass { display: grid; place-items: center; border: 1px solid var(--city); color: var(--city); width: 30px; height: 30px; border-radius: 50%; font-size: 19px; }
.masthead nav { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 3vw, 42px); font-size: .9rem; white-space: nowrap; }
.masthead nav a:hover, .top-link:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 5px; }
.top-link { justify-self: end; padding: 8px 0; font-size: .87rem; white-space: nowrap; color: var(--muted); }
.hero { display: grid; grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr); min-height: 495px; column-gap: 44px; padding-block: 44px 30px; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 20px 0 30px; }
.hero-location { display: flex; align-items: center; gap: 11px; color: var(--city); font-weight: 700; font-size: .93rem; letter-spacing: .09em; }
.hero-location span { background: var(--accent); width: 18px; height: 1px; }
.hero h1, .directory h1 { margin-top: 18px; font-family: var(--serif); font-size: clamp(3.2rem, 5.5vw, 6.15rem); line-height: 1.11; font-weight: 700; letter-spacing: -.045em; }
.hero h1 small { display: block; font-family: var(--sans); font-weight: 700; font-size: .4em; margin-top: 11px; letter-spacing: .08em; }
.lead { margin: 24px 0; max-width: 39em; color: var(--muted); font-size: 1rem; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; gap: 15px; padding: .75rem 1rem; border: 1px solid transparent; text-decoration: none; font-size: .9rem; font-weight: 680; }
.button.primary { color: white; background: var(--city); }
.button.primary:hover { filter: brightness(.85); }
.button.secondary { border-color: #a3a59c; }
.button.secondary:hover { background: var(--white); }
.edition { margin-top: 23px; color: var(--muted); font-size: .77rem; }
.hero-photo { min-width: 0; min-height: 420px; height: 100%; position: relative; overflow: hidden; background: var(--city); }
.hero-photo img { position: absolute; object-fit: cover; object-position: center; height: 100%; width: 100%; }
.hero-photo figcaption { color: #fff; background: #1c2621d9; position: absolute; bottom: 0; right: 0; padding: .6rem .9rem; font-size: .76rem; }
.hero-empty { display: grid; place-items: center; }
.hero-empty span { color: #fff; font: italic clamp(2.8rem, 9vw, 9rem)/1 var(--serif); text-align: center; padding: .7em .2em; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); margin-block: 0 14px; }
.quick a { padding: 20px 16px 20px 22px; border-left: 1px solid var(--line); text-decoration: none; }
.quick a:first-child { padding-left: 0; border-left: 0; }
.quick a:hover strong { color: var(--accent); }
.quick strong, .quick span { display: block; }
.quick strong { font-size: 1rem; margin-bottom: 4px; }
.quick span { color: var(--muted); font-size: .83rem; }
.section { padding-block: clamp(48px, 6vw, 86px); }
section[id], footer[id] { scroll-margin-top: 20px; }
.section-head { margin-bottom: 27px; }
.section-label { color: var(--accent); font-size: .79rem; letter-spacing: .13em; font-weight: 750; margin-bottom: 9px; }
.section h2, .footer h2 { font-family: var(--serif); font-size: clamp(1.7rem, 3.4vw, 3rem); line-height: 1.18; }
.section-intro { color: var(--muted); margin-top: 11px; line-height: 1.75; max-width: 55em; font-size: .92rem; }
.ticket-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button, .reset { color: var(--city); background: transparent; border: 1px solid #b9bcb2; padding: 8px 13px; min-height: 38px; font-size: .84rem; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--city); color: white; border-color: var(--city); }
.filters button:hover:not([aria-pressed="true"]), .reset:hover { background: var(--white); }
.search input { border: 1px solid #b9bcb2; padding: 8px 12px; min-height: 38px; color: var(--ink); background: var(--white); font-size: .84rem; width: min(280px, 100%); }
.no-results { padding-block: 18px; color: var(--muted); }
.ticket-grid, .hotel-grid, .shop-grid, .day-grid { display: grid; gap: 15px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ticket, .hotel, .shop, .day { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--white); padding: 21px; min-width: 0; }
.ticket-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 10px; }
.tag { background: #ebe9df; color: var(--city); white-space: nowrap; font-size: .73rem; padding: 4px 7px; }
.ticket-meta strong { max-width: 80%; color: var(--accent); font-size: .9rem; text-align: right; line-height: 1.4; }
.ticket h3, .hotel h3, .shop h3, .day h3, .transport-row h3 { font-size: 1.15rem; line-height: 1.36; }
.original { color: var(--muted); font-size: .8rem; margin-top: 4px; overflow-wrap: anywhere; }
.ticket-time, .station { color: var(--city); font-size: .81rem; font-weight: 700; margin-top: 14px; line-height: 1.5; }
.detail { color: var(--muted); line-height: 1.75; font-size: .88rem; margin: 8px 0 14px; }
.card-links { display: flex; gap: 15px; flex-wrap: wrap; margin-top: auto; }
.card-links a, .day a, .transport-row a { color: var(--city); text-underline-offset: 4px; font-size: .83rem; font-weight: 700; }
.card-links a:hover, .transport-row a:hover { color: var(--accent); }
.save-control { display: flex; align-items: center; gap: 7px; font-size: .78rem; margin-top: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; cursor: pointer; width: 100%; }
.save-control input { margin: 0; accent-color: var(--city); width: 16px; height: 16px; }
.estimate { margin-top: 15px; background: #e9e8db; border-left: 4px solid var(--city); display: flex; flex-wrap: wrap; align-items: center; gap: 15px; padding: 16px 19px; }
.estimate h3 { font-size: 1rem; }
.estimate p { color: var(--muted); font-size: .8rem; margin-top: 5px; }
.estimate-info { margin-left: auto; font-size: .9rem; font-weight: 700; }
.tinted { background: #eae8dd; border-block: 1px solid var(--line); }
.hotel .station, .shop .station { margin: 0 0 7px; color: var(--accent); }
.transport-list { border-top: 1px solid var(--line); }
.transport-row { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(0, 2.5fr); gap: 27px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.transport-row p { color: var(--muted); font-size: .91rem; line-height: 1.75; }
.transport-row .transport-price { font-weight: 650; color: var(--city); margin: 5px 0 10px; }
.shopping { padding-top: 0; }
.shop { border-top: 3px solid var(--city); }
.itinerary { background: var(--city); color: #fffef5; }
.itinerary .section-label { color: #ffe4b9; }
.itinerary .section-intro { color: #fffef5; opacity: .91; }
.day { background: #ffffff10; border-color: #ffffff50; }
.day-number { color: #ffe4b9; font-size: .83rem; font-weight: 700; margin-bottom: 7px; }
.day a { color: white; margin-top: auto; align-self: flex-start; }
.stops { margin: 12px 0 18px; padding-inline-start: 1.3rem; font-size: .89rem; line-height: 1.7; }
.stops li + li { margin-top: 5px; }
.footer { padding: 38px 0 27px; }
.footer h2 { font-size: 1.45rem; margin-bottom: 17px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.footer nav a { font-size: .9rem; text-underline-offset: 4px; }
.footer-info { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 16px; display: flex; gap: 15px; justify-content: space-between; color: var(--muted); font-size: .79rem; }
.credit a { text-underline-offset: 3px; }
.directory-grid { display: grid; gap: 15px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.directory-card { border: 1px solid var(--line); background: var(--white); text-decoration: none; }
.directory-card:hover strong { color: var(--accent); }
.directory-card img { width: 100%; height: 180px; object-fit: cover; }
.directory-card span { display: grid; gap: 6px; padding: 16px; }
.directory-card small { color: var(--muted); }
@media (max-width: 1030px) {
  .wrap { width: calc(100% - 64px); }
  .hero { column-gap: 28px; }
  .header-line { gap: 20px; }
  .ticket, .hotel, .shop, .day { padding: 15px; }
}
@media (max-width: 800px) {
  .wrap { width: calc(100% - 40px); }
  .header-line { grid-template-columns: 1fr 1fr; gap: 0 12px; padding-top: 13px; }
  .masthead nav { grid-column: 1 / -1; grid-row: 2; flex-wrap: wrap; justify-content: flex-start; gap: 7px 19px; padding: 13px 0; }
  .hero { grid-template-columns: minmax(0, 1fr); padding-block: 14px 17px; gap: 9px; }
  .hero-copy { padding-bottom: 17px; }
  .hero-photo { min-height: 0; height: auto; aspect-ratio: 16 / 9; }
  .quick { grid-template-columns: repeat(2, 1fr); }
  .quick a { padding: 14px; }
  .quick a:nth-child(odd) { border-left: 0; padding-left: 0; }
  .quick a:nth-child(n+3) { border-top: 1px solid var(--line); }
  .ticket-grid, .hotel-grid, .shop-grid, .day-grid, .directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .wrap { width: calc(100% - 32px); }
  .hero h1 { font-size: clamp(2.85rem, 13vw, 4rem); }
  .hero h1 small { margin-top: 8px; }
  .lead { margin-block: 17px; }
  .search, .search input { width: 100%; }
  .ticket-grid, .hotel-grid, .shop-grid, .day-grid, .directory-grid { grid-template-columns: minmax(0, 1fr); }
  .transport-row { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .estimate-info { margin-left: 0; }
  .footer-info { flex-direction: column; }
}
