@font-face {
  font-family: "Trip Song";
  src: url("/fonts/trip-song.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fff;
  --mist: #f2f7f7;
  --panel: #f5f7f8;
  --ink: #172a30;
  --muted: #4b6269;
  --line: #dce6e8;
  --accent: #10636c;
  --accent-deep: #0b5059;
  --sea: #e4f3f2;
  --nav-height: 64px;
  --corner: 24px;
  --song: "Trip Song", "Songti SC", "SimSun", "Noto Serif CJK SC", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Hiragino Sans GB", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + 20px); }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 1rem/1.7 var(--sans); }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid #17828c; outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
.skip:focus { position: fixed; z-index: 10; top: 12px; left: 12px; padding: 8px 14px; background: white; }
.wrap { width: min(1180px, calc(100% - 80px)); margin-inline: auto; }
.section { margin-block: clamp(84px, 9.5vw, 150px); }
.section-head { display: flex; gap: 24px; justify-content: space-between; align-items: end; margin-bottom: 28px; }
.section-head h2 { font: 700 clamp(2.25rem, 4vw, 3.65rem)/1.2 var(--song); letter-spacing: -.035em; }
.section-head p { margin-top: 10px; max-width: 56ch; color: var(--muted); }
.section-head > .button, .section-head > .pill { flex: 0 0 auto; }

.masthead {
  position: sticky; inset-block-start: 0; z-index: 5;
  background: rgb(250 252 252 / .94);
  border-bottom: 1px solid rgb(220 230 232 / .82);
  backdrop-filter: blur(16px) saturate(125%);
}
.topbar { min-height: var(--nav-height); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 9px; justify-self: start; white-space: nowrap; font-weight: 760; letter-spacing: -.03em; }
.brand i {
  width: 23px; height: 23px; flex: 0 0 auto; border-radius: 50%;
  background: radial-gradient(circle at 74% 28%, #d4ece9 0 10%, transparent 12%),
    linear-gradient(144deg, #143a42 0 49%, #6bafb0 50% 60%, #0d6069 61% 76%, #399391 77%);
}
.topbar nav { display: flex; align-items: center; gap: clamp(15px, 2.1vw, 29px); }
.topbar nav a { color: #365058; white-space: nowrap; font-size: .9rem; padding-block: 11px; }
.topbar nav a:hover, .topbar nav a[aria-current] { color: var(--accent); text-decoration: underline; text-underline-offset: 5px; }
.header-actions { display: flex; align-items: center; gap: 9px; justify-self: end; }
.language-picker { display: flex; padding: 2px; border-radius: 999px; background: #eaf1f2; }
.language-picker:empty { display: none; }
.language-picker a { display: grid; place-items: center; min-height: 32px; padding: 0 9px; border-radius: 999px; font-size: .875rem; white-space: nowrap; }
.language-picker a[aria-current] { background: white; box-shadow: 0 1px 4px #142b3214; font-weight: 720; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 8px 17px; border: 1px solid transparent;
  border-radius: 999px; font-size: .92rem; font-weight: 650; line-height: 1.4; white-space: nowrap;
}
.primary, .teal { color: white; background: var(--accent); }
.primary:hover, .teal:hover { background: var(--accent-deep); }
.outline { border-color: #a9bfc3; color: var(--accent-deep); background: transparent; }
.outline:hover { background: var(--sea); }
#share { min-height: 36px; padding-inline: 12px; font-size: .875rem; }

.hero { padding: 58px 0 27px; text-align: center; background: linear-gradient(#edf5f5, #f7fbfa 64%, white); }
.hero-date { display: flex; justify-content: center; gap: 10px; color: var(--accent-deep); font-size: .97rem; font-weight: 650; letter-spacing: .07em; font-variant-numeric: tabular-nums; }
.hero h1 { margin-top: 12px; font: 700 clamp(4rem, 9vw, 8.4rem)/1.08 var(--song); letter-spacing: -.055em; }
.hero-desc { margin-top: 14px; color: #294650; font-size: clamp(1.14rem, 2.1vw, 1.57rem); letter-spacing: .08em; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 25px; }
.hero-figure {
  position: relative; isolation: isolate; overflow: hidden; width: min(1360px, calc(100% - 72px));
  margin: 36px auto 0; border-radius: clamp(20px, 2.4vw, 34px); aspect-ratio: 2.8;
  background: #254a56;
}
.hero-photo { width: 100%; height: 100%; object-fit: cover; object-position: 50% 88%; }
.photo-caption { position: absolute; inset: auto 20px 20px auto; color: white; }
.photo-caption a { display: block; padding: 6px 12px; border-radius: 999px; background: #0e293cdd; font-size: .875rem; }
.photo-caption a:hover { background: #102634; }
.trip-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.trip-strip a { padding: 15px 20px 23px; text-align: center; transition: color .15s ease; }
.trip-strip a + a { border-inline-start: 1px solid var(--line); }
.trip-strip a:hover { color: var(--accent); }
.trip-strip span, .eyebrow { display: block; color: var(--accent); font-size: .875rem; font-weight: 660; }
.trip-strip strong { display: block; margin-top: 3px; font-size: clamp(.94rem, 1.6vw, 1.13rem); word-break: keep-all; }

.schedule-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(245px, .36fr); gap: 24px; align-items: start; }
.filters, .switch { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button, .switch button, .quiet {
  min-height: 42px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink); background: var(--paper); font-size: .875rem; font-weight: 620;
}
.filters button:hover, .quiet:hover { background: var(--sea); }
.filters button[aria-pressed="true"], .switch button[aria-pressed="true"] { color: white; background: var(--accent); border-color: var(--accent); }
.count { min-height: 1.5em; margin-block: 11px; color: var(--muted); font-size: .875rem; }
.date-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(47px, 1fr)); gap: 5px; margin-bottom: 15px; }
.date-grid a { display: grid; justify-items: center; align-content: center; min-height: 53px; line-height: 1.35; border: 1px solid var(--line); border-radius: 9px; font-weight: 690; font-variant-numeric: tabular-nums; font-size: .875rem; }
.date-grid a small { color: var(--muted); margin-top: 3px; font-size: .8rem; font-weight: 500; }
.date-grid a:hover, .date-grid a[aria-current] { background: var(--sea); border-color: #99c7c9; }
.day-list { border-block-end: 1px solid var(--line); }
.day { border-top: 1px solid var(--line); }
.day summary, .faq-item summary { list-style: none; }
.day summary::-webkit-details-marker, .faq-item summary::-webkit-details-marker { display: none; }
.day summary { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto 25px; gap: 12px; align-items: center; padding: 14px 6px; }
.day summary:hover, .faq-item summary:hover { background: #f2f7f7; }
.day-date { font-size: 1.14rem; line-height: 1.35; font-weight: 760; font-variant-numeric: tabular-nums; }
.day-date small, .day-name small { display: block; color: var(--muted); font-size: .875rem; font-weight: 480; line-height: 1.4; }
.day-name strong { display: block; font-weight: 710; line-height: 1.45; }
.day-name small { margin-top: 3px; }
.day-body { padding: 0 26px 17px 80px; }
.day-body p + p { margin-top: 8px; }
.pill { display: inline-flex; align-items: center; padding: 4px 8px; background: #edf1f2; color: #375059; border-radius: 7px; font-size: .875rem; font-weight: 660; line-height: 1.5; white-space: nowrap; }
.pill.sea { background: var(--sea); color: var(--accent-deep); }
.pill.gold { background: #f7efd9; color: #725212; }
.pill.clay { background: #f7ece7; color: #823d32; }
.plus { color: var(--accent); text-align: center; font: 500 1.52rem/1 var(--sans); }
details[open] > summary .plus { transform: rotate(45deg); }
.planning-note { padding: 25px; background: var(--panel); border-radius: var(--corner); }
.planning-note h3 { font: 700 1.65rem/1.2 var(--song); }
.planning-note dl { margin: 13px 0; }
.planning-note dl > div { border-bottom: 1px solid var(--line); padding-block: 8px; }
.planning-note dt { color: var(--muted); font-size: .875rem; }
.planning-note dd { font-weight: 630; }
.inline-link, .link-row a, .source-line a { color: var(--accent-deep); text-underline-offset: 4px; }
.inline-link:hover, .link-row a:hover, .source-line a:hover { text-decoration: underline; }
.link-row, .source-line { display: flex; align-items: stretch; flex-wrap: wrap; column-gap: 16px; margin-top: 8px; }
.link-row a, .source-line a { display: inline-flex; align-items: center; min-height: 40px; font-size: .9rem; font-weight: 660; }

.feature { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); overflow: hidden; border-radius: var(--corner); background: #153740; color: #f3fbfa; }
.feature-picture { position: relative; min-height: 320px; background: #163c48; }
.feature-picture img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 54% 62%; }
.feature-picture > span { position: absolute; inset: auto auto 15px 15px; border-radius: 999px; background: #142e3add; padding: 4px 10px; font-size: .875rem; }
.feature-main { padding: clamp(20px, 3.4vw, 46px); }
.feature-main h3 { margin: 11px 0; font: 700 clamp(1.8rem, 3.1vw, 3rem)/1.25 var(--song); letter-spacing: -.02em; }
.feature-main > p, .route-plan { color: #e5f4f3; }
.switch { margin-block: 15px 9px; }
.switch button { color: #f0f8f7; background: #1c4650; border-color: #709295; }
.switch button:hover { background: #2b535d; }
.switch button[aria-pressed="true"] { color: #10343d; background: #cff0ea; border-color: #cff0ea; }
.feature .link-row a { color: #d5f4f1; }
.route-plan ol { padding-inline-start: 1.4em; margin: 8px 0; }
.route-plan li + li { margin-block-start: 5px; }
.route-plan p { font-size: .9rem; }
.route-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-block-start: 15px; }
.route-card { overflow: hidden; border-radius: var(--corner); background: var(--panel); }
.route-card img { width: 100%; aspect-ratio: 1.62; object-fit: cover; }
.card-body { padding: 19px 21px 17px; }
.card-body h3 { margin: 5px 0 9px; font: 700 1.6rem/1.25 var(--song); }
.card-body p + p { margin-top: 8px; color: var(--muted); font-size: .92rem; }

.flight-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.flight, .transit-band, .check-panel { border-radius: var(--corner); background: var(--panel); padding: clamp(18px, 3vw, 31px); }
.flight-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 13px; }
.flight-head h3, .transit-intro h3 { font: 700 1.75rem/1.2 var(--song); }
.segment { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; }
.segment > :last-child { text-align: right; }
.segment strong { display: block; font-size: clamp(1.36rem, 2.7vw, 2.4rem); font-weight: 710; line-height: 1.15; font-variant-numeric: tabular-nums; }
.segment small, .segment b { color: var(--muted); font-size: .875rem; }
.landing-next { display: inline-block; margin-inline-start: 5px; font-size: .875rem; color: #743530; white-space: nowrap; }
.layover { margin-block: 10px; padding: 6px 12px; border-radius: 7px; background: #e6eded; color: var(--muted); font-size: .875rem; }
.flight-footer { border-block-start: 1px solid var(--line); margin-top: 13px; padding-top: 10px; font-size: .92rem; }
.transit-band { margin-top: 15px; background: #eaf5f4; }
.transit-intro h3 { margin-block: 5px 6px; }
.transit-stops { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; padding: 0; margin: 15px 0 6px; }
.transit-stops li { display: flex; align-items: start; gap: 8px; padding: 10px; border-radius: 10px; background: #fff; }
.transit-stops b { border-radius: 6px; background: #e4f3f2; color: var(--accent-deep); padding: 1px 6px; font-size: .875rem; }
.transit-stops span { font-weight: 650; line-height: 1.5; }
.transit-stops small { display: block; color: var(--muted); font-size: .875rem; font-weight: 450; }
.faq { margin-block-start: 18px; }
.faq-item { border-block-start: 1px solid var(--line); }
.faq-item:last-child { border-block-end: 1px solid var(--line); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 6px; font-weight: 690; }
.faq-body { padding: 0 7px 13px; }
.faq-body p + p { margin-top: 7px; }

.life-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 13px; }
.life-card { background: var(--panel); border-radius: 18px; padding: 19px; }
.life-card h3 { color: var(--accent); font: 700 1.9rem/1.2 var(--song); margin-bottom: 7px; }
.life-card p { margin-bottom: 6px; }
.life-card .inline-link { display: block; margin-top: 9px; font-weight: 620; font-size: .875rem; }
.check-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.check-top progress { display: block; width: min(154px, 100%); accent-color: var(--accent); }
#checklist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
#checklist fieldset { min-width: 0; border: 1px solid var(--line); border-radius: 11px; padding: 5px 8px 9px; margin: 0; }
#checklist legend { padding-inline: 4px; font-weight: 680; }
.check-row { display: flex; align-items: flex-start; gap: 7px; padding: 7px 3px; cursor: pointer; }
.check-row input { width: 18px; height: 18px; margin: 4px 0 0; flex: 0 0 auto; accent-color: var(--accent); }
.check-row input:checked + span { color: var(--muted); }
.updates { margin-block: 70px; color: var(--muted); }
.updates h2 { font: 700 1.65rem/1.3 var(--song); color: var(--ink); }
.updates > p { margin-block: 6px 13px; }
.revision { display: flex; align-items: baseline; gap: 12px; border-block-start: 1px solid var(--line); padding-block: 9px; font-size: .875rem; }
.revision span { flex: 0 0 auto; }
.revision strong { font-weight: 470; }
.footer { border-top: 1px solid var(--line); background: var(--panel); }
.footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 9px 15px; flex-wrap: wrap; padding-block: 19px; color: var(--muted); font-size: .875rem; }
.footer a:hover { text-decoration: underline; }

dialog { width: min(530px, calc(100% - 30px)); margin: auto; padding: 22px; border: 1px solid var(--line); border-radius: 21px; color: var(--ink); background: #fff; box-shadow: 0 20px 100px #15364038; }
dialog::backdrop { background: #10262c8c; backdrop-filter: blur(2px); }
.dialog-head, .dialog-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.dialog-head { justify-content: space-between; }
.dialog-head h2 { font: 700 1.48rem/1.25 var(--song); }
.dialog-head + p { margin: 10px 0; }
#share-url { display: block; width: 100%; padding: 9px 11px; border-radius: 8px; border: 1px solid #afc5c6; font-size: .9rem; margin-bottom: 10px; }
.share-status { color: var(--accent-deep); min-height: 1.5em; margin-top: 5px; font-size: .875rem; }

@media (max-width: 940px) {
  .wrap { width: min(1180px, calc(100% - 48px)); }
  .topbar { gap: 10px; }
  .topbar nav { gap: 12px; }
  .schedule-layout { grid-template-columns: minmax(0, 1fr) minmax(216px, .35fr); gap: 15px; }
  .route-cards { gap: 9px; }
  .card-body { padding: 14px; }
  .transit-stops { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .life-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 720px) {
  :root { --nav-height: 94px; --corner: 18px; }
  .wrap { width: calc(100% - 32px); }
  .topbar { min-height: var(--nav-height); grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 0 8px; padding-top: 5px; }
  .header-actions { grid-column: 2; grid-row: 1; gap: 6px; }
  .topbar nav { justify-content: space-between; gap: 3px; grid-column: 1/-1; grid-row: 2; border-top: 1px solid var(--line); }
  .topbar nav a { padding: 8px 3px; font-size: .875rem; }
  .share-extra { display: none; }
  #share { min-height: 34px; padding-inline: 8px; }
  .language-picker a { min-height: 32px; padding-inline: 7px; }
  .hero { padding: 42px 0 13px; }
  .hero h1 { font-size: clamp(3.7rem, 11vw, 5.6rem); }
  .hero-date { font-size: .875rem; }
  .hero-desc { margin-top: 12px; letter-spacing: .04em; }
  .hero-actions { margin-top: 18px; }
  .hero-actions .button { padding-inline: 12px; }
  .hero-figure { width: calc(100% - 24px); margin-top: 23px; aspect-ratio: 1.24; }
  .hero-photo { object-position: 56% 68%; }
  .photo-caption { inset: auto 9px 9px auto; }
  .trip-strip a { padding: 9px 4px 12px; }
  .trip-strip span { font-size: .875rem; }
  .trip-strip strong { font-size: .875rem; line-height: 1.5; }
  .section { margin-block: 67px; }
  .section-head { align-items: start; gap: 9px; margin-bottom: 16px; }
  .section-head h2 { font-size: clamp(2rem, 8vw, 2.65rem); }
  .section-head p { margin-top: 6px; }
  .section-head > .button { padding-inline: 11px; min-height: 42px; }
  .schedule-layout, .feature, .route-cards, .flight-grid { grid-template-columns: 1fr; }
  .date-grid { grid-template-columns: repeat(auto-fit, minmax(41px, 1fr)); }
  .day summary { grid-template-columns: 46px minmax(0,1fr) 19px; gap: 8px; padding: 11px 1px; }
  .day summary > .pill { display: none; }
  .day-date { font-size: 1rem; }
  .day-body { padding-inline: 55px 1px; }
  .feature-picture { min-height: 0; aspect-ratio: 1.64; }
  .route-card img { aspect-ratio: 1.92; }
  .life-grid { gap: 7px; }
  .life-card { padding: 12px; }
  #checklist { grid-template-columns: 1fr; }
}

@media (max-width: 370px) {
  .topbar { width: calc(100% - 24px); }
  .brand { gap: 5px; font-size: .95rem; }
  .brand i { width: 19px; height: 19px; }
  .day-body { padding-inline-start: 22px; }
  .life-grid { grid-template-columns: 1fr; }
}

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

@media print {
  .masthead, .hero-figure, .hero-actions, .filters, .date-grid, .footer, .feature-picture, .route-card img, button { display: none !important; }
  html, body, .hero { background: white; color: black; }
  .hero { padding: 5px 0; }
  .hero h1 { font-size: 32pt; }
  .wrap { width: 100%; }
  .section { margin-block: 24px; }
  .section-head h2 { font-size: 23pt; }
  .day[hidden] { display: block !important; }
  .feature, .feature-main > p, .route-plan, .feature .link-row a { color: black; background: white; }
  .feature, .flight, .route-card, .check-panel, .sight-group, .day { break-inside: avoid; }
}
