:root {
  --paper: #f3f6f2;
  --surface: #ffffff;
  --ink: #13262f;
  --muted: #66757a;
  --line: #d7dfdc;
  --lake: #287b90;
  --lake-soft: #d9ebee;
  --forest: #516b55;
  --terracotta: #b65c3a;
  --warning: #b84635;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow: 0 16px 48px rgba(25, 47, 55, 0.08);
  --content: 720px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
[data-module][hidden] { display: none !important; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(40, 123, 144, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 32px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button, a { touch-action: manipulation; }
button { font: inherit; color: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--ink);
  color: white;
  border-radius: 10px;
}
.skip-link:focus { top: calc(12px + var(--safe-top)); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: calc(48px + var(--safe-top));
  padding: var(--safe-top) 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(19, 38, 47, 0.08);
  background: rgba(243, 246, 242, 0.91);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.wordmark { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; font-weight: 800; letter-spacing: 0.06em; font-size: 12px; }
.wordmark span { color: var(--muted); font-weight: 600; }
.topbar nav { display: flex; gap: 2px; }
.topbar nav a {
  min-width: 44px;
  min-height: 44px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 650;
}
.topbar nav a:active { color: var(--lake); }

main { overflow: hidden; }
.hero, .section, .footer { width: min(100%, var(--content)); margin-inline: auto; }
.hero { padding: 32px 18px 24px; min-height: 188px; display: flex; flex-direction: column; justify-content: flex-end; }
.hero__eyebrow, .section-kicker {
  margin: 0 0 10px;
  color: var(--lake);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}
.hero h1 { margin: 0; max-width: 620px; font-size: clamp(38px, 12vw, 64px); line-height: 0.98; letter-spacing: -0.06em; font-weight: 820; }
.hero__date { margin: 14px 0 0; font: 650 14px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.03em; }

.section { padding: 44px 18px; scroll-margin-top: 48px; }
.flights-section { padding-top: 24px; padding-bottom: 34px; }
.section-heading { margin-bottom: 16px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.section-heading h2 { margin: 0; font-size: 30px; line-height: 1; letter-spacing: -0.04em; }
.section-index, .soft-label { margin: 0; color: var(--muted); font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.08em; }

.flight-carousel {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  padding: 2px 0 14px;
}
.flight-carousel::-webkit-scrollbar { display: none; }
.flight-card {
  flex: 0 0 calc(100% - 20px);
  scroll-snap-align: center;
  min-height: 330px;
  padding: 20px;
  border-radius: var(--radius-lg);
  color: #eff8f8;
  background: var(--ink);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.flight-card__top { color: #a9c3c8; font: 700 11px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.08em; }
.flight-card__airlines { margin-top: 7px; color: #7599a0; font-size: 10px; }
.flight-flow { margin-top: 17px; display: grid; grid-template-columns: var(--route-columns); align-items: start; }
.flight-stop { min-width: 0; text-align: center; }
.flight-stop:first-child { text-align: left; }
.flight-stop:last-child { text-align: right; }
.flight-stop__code { display: block; color: #fff; font: 760 clamp(25px, 8vw, 36px)/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: -.05em; }
.flight-stop__city { display: block; min-height: 30px; margin-top: 5px; color: #b8cccf; font-size: 11px; line-height: 1.25; }
.flight-stop__dot { position: relative; z-index: 1; display: inline-block; width: 9px; height: 9px; margin: 8px 0 10px; border: 2px solid #8fc6d0; border-radius: 50%; background: var(--ink); }
.flight-stop__timing { display: flex; flex-direction: column; gap: 3px; color: #9db7bc; font-size: 9px; line-height: 1.3; }
.flight-stop__timing b { color: #eff8f8; font-size: 10px; font-weight: 720; }
.flight-stop__timing em { color: #e0a983; font-style: normal; font-size: 9px; }
.flight-segment { min-width: 0; padding-top: 53px; color: #91b9c0; text-align: center; }
.flight-segment span { display: block; overflow: hidden; font: 700 9px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; text-overflow: ellipsis; white-space: nowrap; }
.flight-segment i { display: block; height: 1px; margin-top: 9px; background: rgba(143,198,208,.5); color: #8fc6d0; font-style: normal; font-size: 13px; line-height: 1px; text-align: right; }
.flight-card__countdown-row { margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.16); }
.flight-countdown { text-align: left; }
.flight-countdown span { display: block; color: #a9c3c8; font-size: 11px; }
.flight-countdown strong { display: block; margin-top: 5px; color: #fff; font: 760 clamp(22px, 7vw, 30px)/1.1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.flight-placeholder { margin: 34px 0 22px; }
.flight-placeholder__eyebrow { color: #e0a983; font: 760 10px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.flight-placeholder h3 { margin: 9px 0 0; color: #fff; font-size: clamp(24px, 7vw, 34px); line-height: 1.08; letter-spacing: -.035em; }
.flight-placeholder p { max-width: 520px; margin: 12px 0 0; color: #b8cccf; font-size: 12px; line-height: 1.7; }
.flight-placeholder ul { margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; list-style: none; }
.flight-placeholder li { padding: 6px 9px; border: 1px solid rgba(143,198,208,.3); border-radius: 999px; color: #d7e7e8; background: rgba(255,255,255,.04); font-size: 10px; }
.carousel-dots { display: flex; justify-content: center; gap: 7px; }
.carousel-dot { width: 6px; height: 6px; border: 0; padding: 0; border-radius: 50%; background: #aebbb8; transition: width .2s ease; }
.carousel-dot.is-active { width: 22px; border-radius: 99px; background: var(--lake); }

.route-map-button { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); cursor: zoom-in; }
.route-map-button img { width: 100%; height: auto; }
.route-map-button span { position: absolute; right: 12px; bottom: 12px; padding: 9px 12px; border-radius: 999px; color: white; background: rgba(19,38,47,.86); font-size: 11px; font-weight: 700; backdrop-filter: blur(8px); }
.route-caption { margin: 12px 4px 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; left: 18px; top: 22px; bottom: 26px; width: 1px; background: var(--line); }
.day-card { position: relative; padding-left: 48px; }
.day-card + .day-card { margin-top: 8px; }
.day-dot { position: absolute; left: 12px; top: 25px; z-index: 1; width: 13px; height: 13px; border: 3px solid var(--paper); border-radius: 50%; background: #a5b1ae; box-shadow: 0 0 0 1px #a5b1ae; }
.day-card.is-today .day-dot { background: var(--terracotta); box-shadow: 0 0 0 3px rgba(182,92,58,.18); }
.day-toggle { width: 100%; min-height: 78px; padding: 15px 4px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; display: grid; grid-template-columns: 1fr auto; gap: 12px; cursor: pointer; }
.day-meta { color: var(--lake); font: 750 11px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .05em; }
.day-title { margin-top: 5px; font-size: 17px; font-weight: 740; line-height: 1.35; }
.day-locations { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.day-ticket-summary { display: inline-flex; min-height: 24px; margin-top: 9px; padding: 4px 8px; align-items: center; border-radius: 999px; font-size: 10px; font-weight: 760; }
.day-ticket-summary.has-pending { color: #8f492e; background: #f6e2d8; }
.day-ticket-summary.is-complete { color: #43654a; background: #dfeade; }
.day-chevron { width: 36px; height: 36px; align-self: center; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: var(--lake); transition: transform .2s ease; }
.day-toggle[aria-expanded="true"] .day-chevron { transform: rotate(45deg); }
.day-detail { padding: 18px 0 26px; }
.day-detail[hidden] { display: none; }
.schedule { margin: 0; padding: 0; list-style: none; }
.schedule-item { position: relative; padding: 0 0 21px 82px; min-height: 50px; }
.schedule-item::before { content: ""; position: absolute; left: 70px; top: 6px; bottom: 0; width: 1px; background: #dce4e2; }
.schedule-item:last-child::before { display: none; }
.schedule-time { position: absolute; left: 0; top: 0; width: 62px; color: var(--muted); font: 700 11px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; }
.schedule-item::after { content: ""; position: absolute; left: 66px; top: 5px; width: 9px; height: 9px; border: 2px solid var(--lake); border-radius: 50%; background: var(--paper); }
.schedule-text { font-size: 13px; line-height: 1.65; }
.schedule-map-links { margin-top: 7px; display: flex; flex-wrap: wrap; gap: 6px; }
.schedule-map-link { min-height: 32px; padding: 6px 9px; display: inline-flex; align-items: center; border: 1px solid #c8dadc; border-radius: 999px; color: #205e6b; background: #edf6f5; text-decoration: none; font-size: 11px; font-weight: 700; }
.schedule-ticket { margin-top: 9px; border: 1px solid #e8c8b8; border-radius: 12px; background: #fff8f4; overflow: hidden; }
.schedule-ticket summary { min-height: 38px; padding: 8px 10px; display: flex; align-items: center; gap: 6px; list-style: none; color: #8f492e; cursor: pointer; font-size: 10px; font-weight: 750; }
.schedule-ticket summary::-webkit-details-marker { display: none; }
.schedule-ticket summary b { margin-left: auto; color: var(--ink); font-size: 11px; }
.schedule-ticket.is-purchased { border-color: #cbdcca; background: #f1f7f0; }
.schedule-ticket.is-purchased summary { color: #43654a; }
.ticket-status-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: currentColor; }
.schedule-ticket__body { padding: 0 10px 11px 23px; }
.schedule-ticket__body p { margin: 0; color: #614b42; font-size: 11px; line-height: 1.5; }
.schedule-ticket__body span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.schedule-ticket__body a { min-height: 34px; margin-top: 5px; display: inline-flex; align-items: center; color: var(--lake); font-size: 10px; font-weight: 750; }
.detail-note { margin: 8px 0 0; padding: 12px 14px; border-left: 2px solid var(--terracotta); background: rgba(182,92,58,.06); color: #6d4c3e; font-size: 12px; line-height: 1.6; }
.costs { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.cost-tag { padding: 7px 9px; border-radius: 8px; background: #e8eeeb; color: #53615e; font-size: 11px; }

.tickets-section { padding-top: 40px; }
.tickets-summary { margin: -5px 0 15px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.ticket-filters { display: flex; gap: 7px; margin-bottom: 14px; overflow-x: auto; }
.ticket-filters button { min-height: 38px; padding: 0 14px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.7); color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 720; }
.ticket-filters button.is-active { border-color: var(--ink); color: white; background: var(--ink); }
.ticket-list { display: grid; gap: 11px; }
.ticket-card { padding: 17px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,255,255,.78); }
.ticket-card.is-purchased { background: rgba(241,247,240,.82); }
.ticket-card__date { color: var(--lake); font: 740 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; }
.ticket-card__head { margin-top: 9px; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ticket-card__head h3 { margin: 0; font-size: 16px; line-height: 1.25; }
.ticket-card__head p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.ticket-badge { min-height: 25px; padding: 5px 8px; flex: 0 0 auto; border-radius: 999px; color: #8f492e; background: #f6e2d8; font-size: 9px; font-weight: 760; }
.ticket-badge.is-advance-recommended { color: #205e6b; background: #ddecf0; }
.ticket-badge.is-purchased { color: #43654a; background: #dfeade; }
.ticket-card__guidance { margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line); }
.ticket-card__guidance span { display: block; color: var(--muted); font-size: 9px; letter-spacing: .08em; }
.ticket-card__guidance strong { display: block; margin-top: 4px; font-size: 12px; line-height: 1.5; }
.ticket-details { margin-top: 7px; }
.ticket-details > summary { min-height: 38px; display: inline-flex; align-items: center; color: var(--lake); cursor: pointer; font-size: 11px; font-weight: 750; }
.ticket-details dl { margin: 4px 0 0; }
.ticket-details dl div { padding: 8px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 70px 1fr; gap: 8px; font-size: 11px; line-height: 1.5; }
.ticket-details dt { color: var(--muted); }
.ticket-details dd { margin: 0; }
.ticket-uncertainties { margin-top: 8px; padding: 11px; border-radius: 10px; background: #f2f3ef; color: #52605d; font-size: 10px; }
.ticket-uncertainties ul { margin: 5px 0 0; padding-left: 16px; }
.ticket-actions { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ticket-actions a, .ticket-actions button { min-height: 40px; display: inline-flex; align-items: center; font-size: 10px; font-weight: 740; }
.ticket-actions a { color: var(--lake); }
.ticket-actions span { color: var(--muted); font-size: 10px; }
.ticket-actions button { padding: 0 12px; border: 0; border-radius: 10px; color: white; background: var(--lake); cursor: pointer; }
.tickets-empty { padding: 28px 0; color: var(--muted); text-align: center; font-size: 12px; }

.rental-panel { overflow: hidden; border-radius: var(--radius-lg); background: var(--ink); color: white; box-shadow: var(--shadow); }
.return-deadline { padding: 22px; background: #fff0e5; color: #713d27; border-bottom: 3px solid #bd6941; }
.return-deadline__label { display: block; font-size: 12px; font-weight: 800; }
.return-deadline > strong { display: block; margin: 12px 0 6px; font-size: clamp(23px,7vw,34px); line-height: 1.3; }
.return-deadline time { font-variant-numeric: tabular-nums; }
.return-deadline > span:not(:first-child), .return-deadline small { font-size: 11px; line-height: 1.6; }
.return-deadline p { margin: 10px 0; font-size: 12px; overflow-wrap: anywhere; }
.return-deadline__timer { padding: 12px 0; border-block: 1px solid #e7c6ad; font-size: 16px; font-weight: 750; font-variant-numeric: tabular-nums; }
.return-deadline__warning { font-weight: 750; }
.return-deadline.is-urgent { background: #ffe1da; color: #8c291f; border-color: #b84635; }
.rental-countdown { padding: 24px; background: var(--lake); }
.rental-countdown span { display: block; color: #d6ebee; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.rental-countdown strong { display: block; margin-top: 8px; font: 760 clamp(28px, 9vw, 44px)/1.05 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: -.05em; }
.rental-countdown small { display: block; margin-top: 10px; color: #d6ebee; line-height: 1.5; }
.rental-details { padding: 22px; }
.rental-car { font-size: 19px; font-weight: 750; }
.rental-sub { margin-top: 5px; color: #abc0c4; font-size: 12px; }
.rental-stops { margin-top: 24px; display: grid; gap: 16px; }
.rental-stop { display: grid; grid-template-columns: 58px 1fr; gap: 12px; }
.rental-stop__label { color: #7fa8b0; font: 700 10px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.rental-stop b { display: block; font-size: 14px; }
.rental-stop span { display: block; margin-top: 4px; color: #abc0c4; font-size: 12px; line-height: 1.5; }
.rental-price { margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); display: flex; justify-content: space-between; color: #abc0c4; font-size: 12px; }
.rental-price strong { color: white; font: 720 15px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }

.accordion-stack { margin-top: 14px; display: grid; gap: 10px; }
.accordion { border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,255,255,.72); overflow: hidden; }
.accordion summary { min-height: 54px; padding: 16px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 740; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--lake); }
.accordion[open] summary::after { content: "−"; }
.accordion ul { margin: 0; padding: 0 18px 18px 38px; color: #47575b; }
.accordion li { margin: 9px 0; font-size: 12px; line-height: 1.65; }

.packing-progress { height: 4px; margin: -8px 0 24px; border-radius: 99px; background: #dbe3e0; overflow: hidden; }
.packing-progress span { display: block; width: 0; height: 100%; background: var(--lake); transition: width .2s ease; }
.packing-group + .packing-group { margin-top: 25px; }
.packing-group h3 { margin: 0 0 8px; color: var(--muted); font-size: 11px; letter-spacing: .1em; }
.packing-item { min-height: 52px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 14px; }
.packing-item input { appearance: none; width: 22px; height: 22px; margin: 0; flex: 0 0 22px; border: 1.5px solid #93a5a2; border-radius: 7px; background: transparent; display: grid; place-items: center; }
.packing-item input::after { content: "✓"; color: white; font-size: 14px; opacity: 0; transform: scale(.6); transition: .15s ease; }
.packing-item input:checked { border-color: var(--lake); background: var(--lake); }
.packing-item input:checked::after { opacity: 1; transform: scale(1); }
.packing-item:has(input:checked) span { color: #87928f; text-decoration: line-through; }
.text-button { min-height: 44px; margin-top: 18px; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 12px; text-decoration: underline; cursor: pointer; }

.footer { padding: 46px 20px calc(50px + var(--safe-bottom)); border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.footer p { margin: 0; font-weight: 750; letter-spacing: .08em; }
.footer a { min-height: 44px; margin-top: -15px; display: flex; align-items: center; text-decoration: none; }

.map-dialog { width: 100%; max-width: 760px; height: 100%; max-height: none; margin: 0; padding: calc(56px + var(--safe-top)) 0 var(--safe-bottom); border: 0; background: #0e1b21; overflow: auto; }
.map-dialog::backdrop { background: rgba(7,18,22,.88); }
.map-dialog.is-fallback-open { position: fixed; inset: 0; z-index: 50; display: block; }
.map-dialog img { width: 100%; height: auto; }
.dialog-close { position: fixed; z-index: 2; top: calc(10px + var(--safe-top)); right: 12px; min-width: 54px; min-height: 40px; border: 0; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--ink); font-size: 12px; font-weight: 700; }
.loading-error { position: fixed; left: 16px; right: 16px; bottom: calc(16px + var(--safe-bottom)); z-index: 30; padding: 16px; border-radius: 14px; color: white; background: var(--warning); box-shadow: var(--shadow); }
.loading-error strong, .loading-error span { display: block; }
.loading-error span { margin-top: 5px; font-size: 12px; line-height: 1.5; }

:focus-visible { outline: 3px solid rgba(40,123,144,.45); outline-offset: 3px; }

.place-map-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(7,18,22,.6); display: flex; align-items: flex-end; justify-content: center; }
.place-map-overlay[hidden] { display: none; }
.place-map-sheet { width: min(100%,720px); height: 85vh; height: 85dvh; display: flex; flex-direction: column; background: var(--paper); border-radius: 20px 20px 0 0; overflow: hidden; padding-bottom: var(--safe-bottom); }
.place-map-sheet header { padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.place-map-sheet h2 { margin: 0; font-size: 17px; overflow-wrap: anywhere; }
.place-map-sheet button { flex-shrink: 0; min-height: 44px; min-width: 48px; border: 0; background: transparent; color: var(--lake); }
.place-map-sheet iframe { width: 100%; flex: 1; min-height: 0; border: 0; background: #e8eeeb; }
.place-map-sheet footer { padding: 10px 16px; }
.place-map-sheet footer p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.place-map-sheet footer a { display: flex; min-height: 44px; align-items: center; color: var(--lake); font-size: 13px; font-weight: 700; }

/* Compact ticket completion, driving notes and user-managed trip preparation */
.schedule-ticket { min-height: 58px; padding: 9px 10px; background: #fff2ed; display: grid; grid-template-columns: 21px minmax(0,1fr) auto; align-items: flex-start; gap: 9px; }
.schedule-ticket__toggle { display: contents; cursor: pointer; }
.schedule-ticket input { position: absolute; opacity: 0; pointer-events: none; }
.schedule-ticket__check { width: 21px; height: 21px; margin-top: 1px; flex: 0 0 21px; border: 1.5px solid #ba765d; border-radius: 7px; color: transparent; display: grid; place-items: center; font-size: 12px; }
.schedule-ticket__content { min-width: 0; display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 7px; }
.schedule-ticket__status { color: #995137; font-size: 9px; font-weight: 780; }
.schedule-ticket__content strong { overflow: hidden; color: var(--ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.schedule-ticket__content small { grid-column: 1 / -1; color: #795c50; font-size: 9px; line-height: 1.45; }
.schedule-ticket__open { align-self: center; min-width: 44px; min-height: 36px; padding: 0 8px; border: 0; border-left: 1px solid rgba(153,81,55,.18); background: transparent; color: #8f492e; cursor: pointer; font-size: 10px; font-weight: 760; }
.schedule-ticket.is-purchased { border-color: #cbdcca; background: #eaf3e9; }
.schedule-ticket.is-purchased .schedule-ticket__check { border-color: var(--forest); color: white; background: var(--forest); }
.schedule-ticket.is-purchased .schedule-ticket__status { color: var(--forest); }
.schedule-ticket.is-purchased .schedule-ticket__content strong { color: #708072; text-decoration: line-through; }
.schedule-ticket.is-purchased .schedule-ticket__content small { display: none; }
.schedule-ticket.is-purchased .schedule-ticket__open { color: var(--forest); border-left-color: rgba(81,107,85,.2); }

.ticket-dialog { width: min(100% - 28px,720px); max-height: min(88dvh,820px); padding: 0; border: 1px solid rgba(19,38,47,.12); border-radius: 20px; background: var(--paper); box-shadow: 0 22px 70px rgba(19,38,47,.2); overflow: hidden; }
.ticket-dialog[open] { display: flex; flex-direction: column; }
.ticket-dialog::backdrop { background: rgba(7,18,22,.58); backdrop-filter: blur(3px); }
.ticket-dialog > header { min-height: 76px; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.ticket-dialog > header span { display: block; color: var(--lake); font-size: 10px; font-weight: 780; letter-spacing: .12em; }
.ticket-dialog > header h2 { margin: 5px 0 0; font-size: 21px; letter-spacing: -.035em; }
.ticket-dialog > header button { min-width: 52px; min-height: 40px; border: 0; border-radius: 999px; background: white; color: var(--lake); cursor: pointer; font-size: 12px; font-weight: 720; }
.ticket-dialog__body { min-height: 0; padding: 18px; overflow: auto; flex: 1 1 auto; }
.ticket-dialog__status { margin: 0; color: var(--terracotta); font-size: 11px; font-weight: 780; }
.ticket-dialog__guidance { margin: 8px 0 16px; color: #47575b; font-size: 13px; line-height: 1.65; }
.ticket-dialog__preview { width: 100%; min-height: min(58dvh,520px); max-height: 62dvh; border: 1px solid var(--line); border-radius: 12px; background: white; object-fit: contain; }
.ticket-dialog__preview--pdf { display: block; height: min(68dvh,680px); max-height: none; object-fit: initial; }
.ticket-dialog__empty { margin: 18px 0; padding: 24px 16px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); text-align: center; font-size: 12px; line-height: 1.6; }
.ticket-dialog__links { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.ticket-dialog__links a { min-height: 42px; padding: 0 13px; display: inline-flex; align-items: center; border: 1px solid #c8dadc; border-radius: 999px; color: #205e6b; background: #edf6f5; text-decoration: none; font-size: 12px; font-weight: 720; }

.accordion-stack { margin-top: 14px; display: block; }
.drive-note-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.drive-note-tabs button { position: relative; min-width: 0; min-height: 48px; padding: 12px 4px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 650; }
.drive-note-tabs button::after { content: ""; position: absolute; bottom: -1px; left: 20%; right: 20%; height: 2px; border-radius: 2px; background: transparent; }
.drive-note-tabs button[aria-expanded="true"] { color: var(--ink); font-weight: 780; }
.drive-note-tabs button[aria-expanded="true"]::after { background: var(--lake); }
.drive-note-panel { padding: 8px 4px 4px; }
.drive-note-panel[hidden] { display: none; }
.drive-note-panel ul { margin: 0; padding: 0; list-style: none; color: #47575b; }
.drive-note-panel li { position: relative; margin: 0; padding: 12px 0 12px 14px; font-size: 12px; line-height: 1.7; }
.drive-note-panel li + li { border-top: 1px solid var(--line); }
.drive-note-panel li::before { content: ""; position: absolute; left: 0; top: 20px; width: 4px; height: 4px; border-radius: 50%; background: #8ca5a7; }

.todo-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.todo-form input { min-width: 0; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.8); font: inherit; font-size: 13px; outline: none; }
.todo-form input:focus { border-color: var(--lake); box-shadow: 0 0 0 3px rgba(40,123,144,.1); }
.todo-form button { min-width: 64px; min-height: 48px; border: 0; border-radius: 13px; color: white; background: var(--ink); cursor: pointer; font-size: 12px; font-weight: 750; }
.todo-list { margin-top: 13px; }
.todo-item { min-height: 54px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; }
.todo-item label { min-width: 0; min-height: 54px; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.todo-item input { position: absolute; opacity: 0; pointer-events: none; }
.todo-check { width: 22px; height: 22px; flex: 0 0 22px; border: 1.5px solid #93a5a2; border-radius: 7px; color: transparent; display: grid; place-items: center; font-size: 12px; }
.todo-text { min-width: 0; font-size: 13px; overflow-wrap: anywhere; }
.todo-item.is-complete .todo-check { border-color: var(--forest); color: white; background: var(--forest); }
.todo-item.is-complete .todo-text { color: #87928f; text-decoration: line-through; }
.todo-delete { min-width: 44px; min-height: 44px; padding: 0; border: 0; color: #9a7062; background: transparent; cursor: pointer; font-size: 10px; }
.todo-empty { margin: 0; padding: 22px 0 8px; color: var(--muted); text-align: center; font-size: 11px; }

@media (min-width: 700px) {
  .topbar { padding-inline: max(24px, calc((100vw - var(--content)) / 2)); }
  .hero { min-height: 260px; padding-inline: 0; }
  .section { padding-inline: 0; }
  .flight-card { flex-basis: 86%; min-height: 350px; }
  .rental-stops { grid-template-columns: 1fr 1fr; }
}

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

/* Map is the main surface; date controls remain compact. */
.route-region-tabs,.route-day-tabs { display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin-bottom:10px; }
.route-region-tabs button,.route-day-tabs button { border:0;background:transparent;padding:7px 10px;font-size:13px;border-radius:6px;cursor:pointer; }
.route-region-tabs button[aria-pressed="true"] {background:var(--ink);color:white;}
.route-day-tabs button {font-size:12px;padding:7px 8px;}
.route-day-tabs button[aria-pressed="true"] {background:white;box-shadow:inset 0 0 0 1px var(--line);}
.route-day-tabs i {display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--route-color);margin-right:5px;}
.travel-map-scroll {overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin;border-radius:12px;border:1px solid var(--line);background:#f6f6f1;}
.travel-map-canvas {position:relative;min-width:700px;}
.travel-map-canvas svg {display:block;width:100%;height:auto;}
.map-utility {display:flex;justify-content:space-between;align-items:center;margin:5px 0 12px;font-size:12px;color:var(--muted);}
.map-utility button {border:0;background:transparent;font-size:12px;padding:8px;cursor:pointer;}
.transport-pin {position:absolute;transform:translate(-50%,-50%);font-size:11px;line-height:1.2;border:1px solid var(--route-color);background:white;color:var(--ink);padding:5px 7px;border-radius:20px;cursor:pointer;box-shadow:0 2px 6px #13262f22;white-space:nowrap;}
.transport-pin::before {content:"";position:absolute;inset:-6px;}
.transport-pin[aria-expanded="true"] {background:var(--route-color);color:white;}
.transport-popover {position:fixed;z-index:100;width:min(300px,calc(100vw - 16px));padding:16px 30px 14px 16px;border:1px solid var(--line);border-radius:12px;background:white;box-shadow:0 8px 32px #13262f30;font-size:14px;line-height:1.6;}
.transport-popover strong {font-size:13px;}
.transport-popover p {margin:7px 0 0;}
.transport-popover button {position:absolute;right:4px;top:4px;background:transparent;border:0;width:28px;height:28px;cursor:pointer;}
.route-list-overview {border-top:1px solid var(--line);}
.route-list-overview a {display:flex;gap:16px;padding:14px 0;border-bottom:1px solid var(--line);text-decoration:none;font-size:14px;}
.route-list-overview span {white-space:nowrap;color:var(--muted);font-size:12px;}
.day-detail .travel-map-block {margin:0 0 22px;}
#map-dialog {width:96vw;max-width:1448px;overflow:auto;padding:48px 12px 12px;background:#f6f6f1;}
#map-dialog-content {overflow:auto;}
#map-dialog-content .travel-map-canvas {min-width:1100px;}
button:focus-visible,a:focus-visible {outline:2px solid var(--lake);outline-offset:3px;}
@media(min-width:1000px) {.route-section {width:min(1100px,calc(100vw - 64px));max-width:none;margin-left:50%;transform:translateX(-50%);} .travel-map-canvas {min-width:0;}}
.is-overview .travel-map-canvas {min-width:0;}

/* Daily and Overview deliberately share one full-map canvas and viewport. */
.is-daily .travel-map-scroll {overflow:hidden;}
.is-daily .travel-map-canvas {width:100%;min-width:0;}
.map-place-dot {position:absolute;transform:translate(-50%,-50%);width:24px;height:24px;padding:0;border:0;border-radius:50%;background:transparent;display:grid;place-items:center;cursor:pointer;}
.map-place-dot span {display:block;width:11px;height:11px;border:1.5px solid #fffdf6;background:var(--route-color);border-radius:50%;box-shadow:0 0 0 1px var(--route-color);}
.map-place-dot:hover span,.map-place-dot[aria-expanded="true"] span {box-shadow:0 0 0 4px #ffffffa8,0 0 0 5px var(--route-color);}
.transport-pin {transform:translate(-50%,-50%);width:28px;height:28px;display:grid;place-items:center;padding:6px;border-radius:8px;border:1px solid var(--route-color);color:var(--route-color);box-shadow:0 2px 5px #13262f18;}
.transport-pin::before {inset:-3px;}
.transport-pin svg {width:15px;height:15px;}
.transport-pin[aria-expanded="true"] {background:var(--route-color);color:white;}
.route-popover {position:fixed;z-index:100;width:min(360px,calc(100vw - 16px));max-height:calc(100dvh - 16px);overflow:auto;padding:16px;border:1px solid var(--line);border-radius:13px;background:#fff;box-shadow:0 10px 36px #13262f33;color:var(--ink);}
.route-popover .route-popover-close {position:absolute;right:5px;top:5px;display:grid;place-items:center;width:30px;height:30px;padding:0;border:0;border-radius:50%;background:transparent;font-size:20px;cursor:pointer;}
.route-place-popover header {padding-right:22px;margin-bottom:10px;}
.route-place-popover header small {display:block;color:var(--muted);font-size:12px;margin-bottom:4px;}
.route-place-popover header strong {font-size:15px;}
.route-place-popover iframe {display:block;width:100%;height:min(240px,35dvh);border:1px solid var(--line);border-radius:8px;background:#edf1ea;}
.route-place-popover footer {display:flex;flex-direction:column;gap:7px;margin-top:10px;font-size:13px;}
.route-place-popover footer small {font-size:12px;color:var(--muted);}
.popup-place-options {display:flex;gap:5px;flex-wrap:wrap;margin-bottom:10px;}
.popup-place-options button {padding:6px 9px;border:1px solid var(--line);border-radius:6px;background:white;font-size:12px;cursor:pointer;}

.ledger-confirm-dialog { width: min(100% - 40px, 380px); padding: 0; border: 1px solid rgba(19,38,47,.14); border-radius: 18px; background: var(--paper); color: var(--ink); box-shadow: 0 22px 70px rgba(19,38,47,.28); }
.ledger-confirm-dialog::backdrop { background: rgba(7,18,22,.55); backdrop-filter: blur(3px); }
.ledger-confirm-card { padding: 24px 22px 18px; }
.ledger-confirm-card p { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.55; text-align: center; }
.ledger-confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.ledger-confirm-actions button { min-height: 46px; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--ink); font: inherit; font-size: 14px; font-weight: 720; cursor: pointer; }
.ledger-confirm-actions .ledger-confirm-danger { border-color: rgba(171,67,55,.28); background: #fff1ee; color: #a13f34; }
.popup-place-options button[aria-pressed="true"] {background:var(--ink);color:white;}
.transport-popover {width:min(320px,calc(100vw - 16px));padding-right:32px;font-size:14px;line-height:1.65;}
.transport-leg + .transport-leg {margin-top:10px;padding-top:10px;border-top:1px solid var(--line);}
.transport-leg strong {font-size:13px;}
.transport-leg p {margin:5px 0 0;}
#map-dialog-content .daily-fullscreen {min-width:850px;}

@media (max-width:699px) {
  .is-daily .map-place-dot {width:14px;height:14px;}
  .is-daily .map-place-dot span {width:8px;height:8px;border-width:1px;}
  .is-daily .transport-pin {width:24px;height:24px;padding:5px;border-radius:7px;}
  .is-daily .transport-pin svg {width:13px;height:13px;}
  #map-dialog-content .daily-fullscreen {width:100%;min-width:0;}
}

/* ===================== 当日要点 & 行程图片 ===================== */
.day-actions {
  background: linear-gradient(135deg, #fff8ec, #fdf3e0);
  border: 1px solid #f0dfc0;
  border-radius: 14px;
  padding: 12px 16px;
  margin: 4px 0 14px;
}
.day-actions__title { font-size: 12px; font-weight: 700; color: #92600a; margin: 0 0 6px; }
.day-actions ul { margin: 0; padding: 0; list-style: none; }
.day-actions li { font-size: 12.5px; line-height: 1.55; color: #5b430f; padding: 3px 0 3px 18px; position: relative; }
.day-actions li::before { content: "·"; position: absolute; left: 6px; font-weight: 900; color: #c8880a; }

.schedule-photos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.schedule-photo {
  padding: 0; border: none; background: none; cursor: zoom-in;
  width: 64px; height: 64px; border-radius: 10px; overflow: hidden;
  box-shadow: 0 1px 4px rgba(9, 38, 83, .14);
}
.schedule-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .18s ease; }
.schedule-photo:hover img { transform: scale(1.08); }

.photo-dialog { border: none; border-radius: 16px; padding: 0; max-width: min(92vw, 900px); max-height: 92vh; background: #101418; }
.photo-dialog::backdrop { background: rgba(8, 12, 18, .72); }
.photo-dialog img { display: block; max-width: 92vw; max-height: 70vh; margin: 0 auto; }
.photo-dialog #photo-dialog-caption { color: #e7ecf2; font-size: 13px; margin: 10px 14px 2px; }
.photo-dialog .photo-dialog-index { color: #93a1b0; font-size: 12px; margin: 0 14px 12px; }
.photo-dialog .dialog-close { position: absolute; top: 8px; right: 8px; }

.schedule-item.is-flash { animation: panel-flash 1.6s ease; }
@keyframes panel-flash { 0%, 60% { background: #e8f1fb; } 100% { background: transparent; } }

/* ===================== 行程双栏 + 地图面板 ===================== */
.itinerary-layout { display: block; }
.day-map-panel { display: none; }
.day-map-fab { display: none; }

@media (min-width: 1080px) {
  .itinerary-layout { display: grid; grid-template-columns: minmax(0, 1fr) 396px; gap: 22px; align-items: start; }
  .day-map-panel {
    display: block; position: sticky; top: 74px;
    background: #fff; border: 1px solid #e3e8ee; border-radius: 18px;
    padding: 14px; box-shadow: 0 6px 24px rgba(9, 38, 83, .08);
    max-height: calc(100vh - 96px); overflow: auto;
  }
}
.day-map-panel .panel-empty { font-size: 13px; color: #64748b; padding: 22px 8px; text-align: center; }
.panel-header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.panel-header strong { font-size: 14.5px; color: #10243f; }
.panel-header span { font-size: 11.5px; color: #7a8697; white-space: nowrap; }
.panel-map { width: 100%; height: auto; background: #f3f7f4; border-radius: 12px; border: 1px solid #e4ebe6; }
.panel-route { fill: none; stroke: #397dc1; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 7; }
.panel-dot { cursor: pointer; }
.panel-dot circle { fill: #397dc1; stroke: #fafaf4; stroke-width: 2.5; transition: r .15s ease; }
.panel-dot text { fill: #fff; font-size: 11px; font-weight: 700; pointer-events: none; font-family: inherit; }
.panel-dot .panel-dot__label { fill: #31567d; font-size: 10.5px; font-weight: 600; }
.panel-dot:hover circle { fill: #2c66a3; }
.panel-dot.is-selected circle { fill: #d95d2b; stroke: #ffe1cf; }
.panel-dot.is-selected .panel-dot__label { fill: #b13f12; font-size: 11.5px; }
.panel-selected { margin-top: 10px; background: #f8fafc; border-radius: 12px; padding: 10px 12px; }
.panel-selected__time { font-size: 11px; color: #64748b; margin: 0 0 2px; }
.panel-selected strong { font-size: 14px; color: #10243f; }
.panel-selected__text { font-size: 12px; color: #52627a; margin: 4px 0 0; line-height: 1.5; }
.panel-legs { display: grid; gap: 6px; margin-top: 8px; }
.panel-leg {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  border: 1px solid #e1e8f0; background: #fff; border-radius: 10px; padding: 7px 10px;
  font-size: 12px; color: #243b55; cursor: pointer; text-align: left;
}
.panel-leg em { font-style: normal; font-size: 11.5px; color: #397dc1; font-weight: 700; white-space: nowrap; }
.panel-leg.is-next { border-color: #f3ddc9; background: #fffaf4; }
.panel-leg.is-next em { color: #c2600e; }
.panel-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.panel-chip {
  border: 1px solid #dfe6ee; background: #fff; color: #44586f;
  font-size: 11.5px; border-radius: 999px; padding: 4px 10px; cursor: pointer;
}
.panel-chip.is-active { background: #d95d2b; border-color: #d95d2b; color: #fff; }
.panel-note { font-size: 10.5px; color: #8a97a8; margin: 10px 0 0; line-height: 1.5; }

@media (max-width: 1079.5px) {
  .day-map-fab {
    display: inline-flex; position: fixed; right: 14px; bottom: 18px; z-index: 60;
    border: none; border-radius: 999px; padding: 10px 16px;
    background: #10243f; color: #fff; font-size: 13px; font-weight: 700;
    box-shadow: 0 6px 18px rgba(9, 38, 83, .35);
  }
  body.map-sheet-open .day-map-panel {
    display: block; position: fixed; inset: auto 0 0 0; z-index: 55;
    max-height: 82vh; overflow: auto; border-radius: 18px 18px 0 0;
    background: #fff; padding: 14px 14px 26px;
    box-shadow: 0 -8px 30px rgba(9, 38, 83, .25);
  }
}

/* ===================== 备选清单 ===================== */
.alternatives-intro { font-size: 13px; color: #64748b; margin: -4px 0 14px; }
.alt-group + .alt-group { margin-top: 22px; }
.alt-group__city { font-size: 15px; font-weight: 800; color: #10243f; margin: 0 0 10px; padding-left: 10px; border-left: 4px solid #397dc1; }
.alt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.alt-card {
  background: #fff; border: 1px solid #e4e9ef; border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column;
}
.alt-card img { width: 100%; height: 128px; object-fit: cover; display: block; }
.alt-card__body { padding: 10px 12px 12px; }
.alt-card__type { font-size: 10.5px; font-weight: 700; color: #397dc1; margin: 0 0 3px; text-transform: uppercase; letter-spacing: .04em; }
.alt-card h3 { font-size: 14px; margin: 0 0 5px; color: #16283f; }
.alt-card p { font-size: 12px; color: #5a6a7f; margin: 0; line-height: 1.55; }

/* ===================== v7 手册富文本行程块 ===================== */
.it-rich { font-size: 13px; line-height: 1.65; }
.it-rich b { color: #16283f; }
.it-rich .it-desc { color: #5a6a7f; font-size: 12.3px; }
.it-rich .it-desc b { color: #44586f; }
.it-rich .it-fix { color: #b13f12; background: #fdeee2; padding: 0 4px; border-radius: 4px; }
.it-rich .place { font-weight: 700; color: #16283f; }
.it-rich .time { display: inline-block; background: #e3eefb; color: #1e4e8c; font-size: 11px; font-weight: 700; padding: 0 6px; border-radius: 6px; margin-right: 4px; }
.it-rich .price { color: #c2600e; font-weight: 700; }
.it-rich .highlight { background: linear-gradient(120deg,#fde68a,#fde047); padding: 0 3px; border-radius: 3px; font-weight: 700; }
.it-rich .rank-top { background:#fef08a; color:#92400e; }
.it-rich .tag { display:inline-block; font-size:11px; font-weight:600; padding:1px 7px; border-radius:9px; margin:1px; }
.it-rich .t-a { background:#dbeafe; color:#0369a1; }
.it-rich .t-nz { background:#dcfce7; color:#059669; }
.it-rich .t-sg, .it-rich .t-s { background:#fef3c7; color:#d97706; }
.it-rich .t-w { background:#fee2e2; color:#dc2626; }
.it-rich .t-info { background:#e0f2fe; color:#0369a1; }
.it-rich .t-food { background:#ecfdf5; color:#047857; }
.it-rich .t-k { background:#fce7f3; color:#db2777; }
.schedule-item.is-kind .schedule-time { visibility: hidden; height: 0; }
.schedule-item.is-kind { margin: 2px 0; }
.it-rich.k-tip { background: #fffbeb; border: 1px solid #f0e0b8; border-radius: 12px; padding: 10px 14px; }
.it-rich.k-tip::before { content: "💡 "; }
.it-rich.k-warn { background: #fef2f2; border: 1px solid #f3c9c9; border-radius: 12px; padding: 10px 14px; }
.it-rich.k-warn::before { content: "⚠️ "; }
.it-rich.k-good { background: #f0fdf4; border: 1px solid #c9ecd4; border-radius: 12px; padding: 10px 14px; }
.it-rich.k-good::before { content: "✅ "; }
.it-rich.k-flight { background: #eff6ff; border: 1px solid #c6dcf5; border-radius: 12px; padding: 10px 14px; }
.it-rich.k-flight .route { font-weight: 800; color: #1e40af; margin-bottom: 4px; }
.it-rich.k-accommodation { background: #f5f3ff; border: 1px solid #ddd6f8; border-radius: 14px; padding: 10px 14px; }
.it-rich.k-accommodation h4 { margin: 0 0 6px; font-size: 13.5px; }
.it-rich.k-h3 { font-size: 14px; font-weight: 800; color: #16283f; margin: 6px 0; }
.it-rich ul { margin: 4px 0; padding-left: 20px; }
.it-rich li { font-size: 12.5px; margin-bottom: 4px; }

/* ===================== 攻略手册章节 ===================== */
.hb-chapter { background: #fff; border: 1px solid #e4e9ef; border-radius: 16px; margin-bottom: 10px; overflow: hidden; }
.hb-chapter summary { cursor: pointer; padding: 14px 18px; font-weight: 800; font-size: 15px; color: #16283f; list-style: none; display: flex; align-items: center; gap: 8px; }
.hb-chapter summary::before { content: "+"; width: 22px; height: 22px; border-radius: 50%; background: #eef2f7; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; color: #44586f; flex-shrink: 0; }
.hb-chapter[open] summary::before { content: "−"; }
.hb-chapter summary::-webkit-details-marker { display: none; }
.hb-body { padding: 2px 18px 18px; border-top: 1px solid #edf1f5; }
.hb-body h3 { font-size: 14px; font-weight: 800; color: #1d3a5f; margin: 14px 0 6px; }
.hb-body h3, .hb-body h4 { color: #16283f; }
.hb-body ul { margin: 6px 0; padding-left: 20px; }
.hb-body li { font-size: 13px; line-height: 1.7; color: #33475e; margin-bottom: 4px; }
.hb-body li.chk { list-style: none; padding-left: 0; }
.hb-body table { width: 100%; border-collapse: collapse; font-size: 12px; margin: 10px 0; }
.hb-body th { background: #f1f5f9; padding: 7px 9px; text-align: left; font-weight: 700; color: #55677e; font-size: 11px; }
.hb-body td { padding: 7px 9px; border-bottom: 1px solid #eef1f5; color: #33475e; vertical-align: top; }
.hb-body tr:last-child td { border-bottom: none; }
.hb-body .tip { background: #fffbeb; border-radius: 12px; padding: 10px 14px; margin: 8px 0; font-size: 12.8px; color: #5b430f; }
.hb-body .tip::before { content: "💡 "; }
.hb-body .warn { background: #fef2f2; border-radius: 12px; padding: 10px 14px; margin: 8px 0; font-size: 12.8px; color: #7f1d1d; }
.hb-body .warn::before { content: "⚠️ "; }
.hb-body .good { background: #f0fdf4; border-radius: 12px; padding: 10px 14px; margin: 8px 0; font-size: 12.8px; color: #065f46; }
.hb-body .good::before { content: "✅ "; }
.hb-body .block { background: #f8fafc; border-radius: 12px; padding: 10px 14px; margin: 8px 0; font-size: 12.8px; }
.hb-body .block p { margin: 2px 0; }
.hb-body .desc { color: #5a6a7f; font-size: 12.3px; }
.hb-body .place { font-weight: 700; color: #16283f; }
.hb-body .time { display: inline-block; background: #e3eefb; color: #1e4e8c; font-size: 11px; font-weight: 700; padding: 0 6px; border-radius: 6px; margin-right: 4px; }
.hb-body .flight-info { background: #eff6ff; border-radius: 12px; padding: 10px 14px; margin: 8px 0; font-size: 12.5px; }
.hb-body .flight-info .route { font-weight: 800; color: #1e40af; }
.hb-body .accommodation { background: #f5f3ff; border-radius: 12px; padding: 10px 14px; margin: 8px 0; }
.hb-body .bg-g td { background: #f4faf5; }
.hb-body .bg-sg td { background: #fdfdf3; }
.hb-body .bg-p td { background: #f7f5fd; }

/* ===================== 备选清单升级 ===================== */
.alternatives-tools { display: flex; align-items: center; gap: 10px; }
.alt-view-toggle { display: inline-flex; border: 1px solid #d7dfe8; border-radius: 999px; overflow: hidden; }
.alt-view-toggle button { border: none; background: #fff; padding: 5px 14px; font-size: 12px; font-weight: 700; color: #55677e; cursor: pointer; }
.alt-view-toggle button[aria-pressed="true"] { background: #16283f; color: #fff; }
.alt-card { cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.alt-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(9,38,83,.12); }
.alt-card__addr { font-size: 11.5px; color: #7a8697; margin: 2px 0 4px; }
.alt-map { width: 100%; height: auto; background: #f3f7f4; border: 1px solid #e4ebe6; border-radius: 14px; }
.alt-pin { cursor: pointer; }
.alt-pin circle { transition: r .12s ease; }
.alt-pin:hover circle { r: 12; }
.alt-pin text { fill: #31567d; font-size: 11px; font-weight: 700; paint-order: stroke; stroke: #f3f7f4; stroke-width: 3px; }
.alt-map__hint { fill: #8a97a8; font-size: 12px; }
.alt-dialog { border: none; border-radius: 16px; padding: 0; width: min(92vw, 720px); max-height: 86vh; }
.alt-dialog::backdrop { background: rgba(8,12,18,.6); }
.alt-dialog header { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px 10px; border-bottom: 1px solid #edf1f5; }
.alt-dialog header span { font-size: 11px; color: #7a8697; text-transform: uppercase; letter-spacing: .06em; }
.alt-dialog h2 { font-size: 17px; margin: 2px 0 0; }
.alt-dialog header button { border: 1px solid #d7dfe8; background: #fff; border-radius: 999px; padding: 6px 14px; font-size: 12px; cursor: pointer; }
.alt-dialog__body { padding: 12px 18px 18px; overflow: auto; max-height: calc(86vh - 76px); }
.alt-dialog__meta { font-size: 12px; color: #397dc1; font-weight: 700; margin: 0 0 10px; }
.alt-dialog__photos { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.alt-dialog__addr { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #f4f7fa; border-radius: 10px; padding: 8px 12px; font-size: 12.5px; color: #33475e; margin-bottom: 10px; }
.alt-dialog__detail { font-size: 12.8px; line-height: 1.7; color: #3b4d63; white-space: pre-wrap; background: #fbfcfd; border: 1px solid #eef1f5; border-radius: 12px; padding: 12px 14px; max-height: 44vh; overflow: auto; }
.alt-dialog__note { font-size: 11px; color: #8a97a8; margin: 10px 0 0; }

/* ===================== 字号放大 & 滚动定位 ===================== */
.day-card { scroll-margin-top: 76px; }
.schedule-item .schedule-time { font-size: 12.5px; }
.schedule-text { font-size: 15px; line-height: 1.7; }
.it-rich { font-size: 15px; line-height: 1.75; }
.it-rich .it-desc { font-size: 14px; line-height: 1.7; }
.it-rich li { font-size: 14px; }
.it-rich ul { padding-left: 22px; }
.it-rich.k-tip, .it-rich.k-warn, .it-rich.k-good, .it-rich.k-flight, .it-rich.k-accommodation { font-size: 14.5px; }
.it-rich.k-accommodation td { font-size: 13.5px; }
.day-title { font-size: 19px; }
.day-meta { font-size: 12px; }
.day-locations { font-size: 13.5px; }
.day-actions li { font-size: 14px; }
.day-actions__title { font-size: 13px; }
.detail-note { font-size: 13.5px; }
.schedule-map-link { font-size: 12.5px; }
.schedule-ticket summary b { font-size: 13px; }
.schedule-ticket__body p { font-size: 13px; }
.hb-chapter summary { font-size: 16.5px; }
.hb-body li { font-size: 14.5px; line-height: 1.8; }
.hb-body td, .hb-body th { font-size: 13.5px; }
.hb-body .tip, .hb-body .warn, .hb-body .good, .hb-body .block, .hb-body .flight-info { font-size: 14.5px; }
.hb-body .desc { font-size: 13.5px; }
.hb-body .time { font-size: 12px; }
.alt-card h3 { font-size: 15.5px; }
.alt-card p { font-size: 13.5px; line-height: 1.6; }
.alt-card__addr { font-size: 12.5px; }
.alt-card__type { font-size: 12px; }
.alt-dialog__meta { font-size: 13px; }
.alt-dialog__addr { font-size: 13.5px; }
.alt-dialog__detail { font-size: 14px; line-height: 1.75; }
.panel-leg { font-size: 13px; }
.panel-leg em { font-size: 12.5px; }
.panel-selected strong { font-size: 15px; }
.panel-selected__text { font-size: 13px; }
.panel-chip { font-size: 12.5px; }
.panel-dot text { font-size: 12px; }
.panel-note { font-size: 11.5px; }

/* ===================== Leaflet 真实地图 ===================== */
.panel-mapwrap { min-height: 120px; }
.panel-leaflet { height: 296px; border-radius: 12px; border: 1px solid #e4ebe6; overflow: hidden; }
.alt-leaflet { height: 460px; border-radius: 14px; border: 1px solid #e4ebe6; overflow: hidden; }
.pmap-pin {
  width: 30px; height: 30px; border-radius: 50%;
  background: #397dc1; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; font-family: inherit;
  border: 2.5px solid #fafaf4; box-shadow: 0 2px 6px rgba(9,38,83,.35);
  transition: transform .12s ease, background .12s ease;
}
.pmap-pin.is-active { background: #d95d2b; transform: scale(1.18); }
.leaflet-container { font: inherit; }
.leaflet-tooltip {
  padding: 2px 8px; border-radius: 8px; border: none;
  background: rgba(16,36,63,.88); color: #fff; font-size: 11.5px; font-weight: 700;
  box-shadow: none;
}
.leaflet-tooltip-top:before { border-top-color: rgba(16,36,63,.88); }
.leaflet-control-attribution { font-size: 9px !important; }
body.map-sheet-open .panel-leaflet { height: 44vh; }

/* ===================== 地图置于行程上方（新版布局） ===================== */
.itinerary-layout { display: flex !important; flex-direction: column !important; gap: 14px; }
.day-map-panel { display: none; }
.timeline { max-width: none; }
.day-map-toggle {
  align-self: flex-start; margin-bottom: 4px;
  border: 1px solid #c8d2dc; background: #fff; border-radius: 999px;
  padding: 7px 16px; font-size: 13px; font-weight: 700; color: #205e6b; cursor: pointer;
}
@media (min-width: 1080px) {
  .day-map-panel {
    display: grid !important;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 1fr);
    grid-template-areas: "header header" "map side" "note note";
    gap: 10px 14px;
    position: sticky; top: 68px; z-index: 30;
    background: #fff; border: 1px solid #e3e8ee; border-radius: 18px;
    padding: 14px; box-shadow: 0 6px 24px rgba(9,38,83,.08);
  }
  .day-map-panel.is-collapsed { display: none !important; }
  .day-map-panel .panel-header { grid-area: header; }
  .day-map-panel .panel-mapwrap { grid-area: map; min-width: 0; }
  .day-map-panel .panel-side { grid-area: side; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
  .day-map-panel .panel-note { grid-area: note; margin: 2px 0 0; }
  .day-map-panel .panel-collapse {
    position: absolute; top: 12px; right: 14px;
    border: 1px solid #d7dfe8; background: #f6f8fa; border-radius: 999px;
    font-size: 11.5px; padding: 4px 12px; cursor: pointer; color: #55677e;
  }
  .panel-leaflet { height: 316px; }
}
@media (max-width: 1079.5px) {
  body.map-open .day-map-panel {
    display: grid !important;
    grid-template-columns: 1fr;
    background: #fff; border: 1px solid #e3e8ee; border-radius: 18px;
    padding: 12px; box-shadow: 0 4px 18px rgba(9,38,83,.08);
  }
  body.map-open .panel-collapse { display: none; }
  .panel-leaflet { height: 250px; }
  .day-map-panel .panel-side { margin-top: 10px; }
}
.itinerary-layout .day-map-panel { order: -1; }
.itinerary-layout .timeline { order: 0; }

/* ===================== 展开后：标题吸顶 + 内容内滚 ===================== */
.it-sub { border-radius: 11px; padding: 8px 12px; margin-top: 6px; font-size: 14px; line-height: 1.6; }
.it-sub.k-tip { background: #fffbeb; border: 1px solid #f0e0b8; }
.it-sub.k-warn { background: #fef2f2; border: 1px solid #f3c9c9; }
.it-sub.k-good { background: #f0fdf4; border: 1px solid #c9ecd4; }
.it-sub .it-desc { font-size: 14px; }

.day-map-panel { position: static !important; }
.day-toggle {
  position: sticky;
  top: calc(52px + var(--safe-top));
  z-index: 12;
  background: var(--paper);
  margin-left: -44px;
  width: calc(100% + 44px);
  padding-left: 48px;
  border-radius: 12px 12px 0 0;
  border-bottom: 1px solid var(--line);
}
.day-detail:not([hidden]) {
  max-height: min(74vh, 880px);
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  padding-right: 8px;
  box-shadow: inset 0 -16px 14px -14px rgba(19,38,47,.14);
}

/* ===================== 地图吸顶 + 可收起细条 ===================== */
@media (min-width: 1080px) {
  .day-map-panel { position: sticky !important; top: calc(56px + var(--safe-top)); z-index: 26; }
  .panel-leaflet { height: 236px; }
  .day-map-panel .panel-selected__text { display: none; }
  .day-map-panel .panel-note { display: none; }
  .day-map-panel.is-collapsed { display: flex !important; grid-template-columns: none !important; align-items: center; min-height: 40px; padding: 6px 14px; }
  .day-map-panel.is-collapsed > *:not(.panel-collapse) { display: none !important; }
  .day-map-panel.is-collapsed .panel-collapse {
    position: static; width: 100%; text-align: left; border: none; background: none;
    font-size: 13.5px; font-weight: 800; color: #205e6b; padding: 6px 0; cursor: pointer;
  }
}
@media (max-width: 1079.5px) {
  body.map-open .day-map-panel { position: sticky !important; top: calc(52px + var(--safe-top)); z-index: 26; }
  body.map-open .panel-leaflet { height: 208px; }
  body.map-open .day-map-panel .panel-note { display: none; }
}

/* ===================== 吸顶容器 + 横向天数导航 + 精简日卡 ===================== */
.itinerary-sticky { display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 1080px) {
  .itinerary-sticky { position: sticky; top: calc(54px + var(--safe-top)); z-index: 26; }
  .day-map-panel { position: static !important; box-shadow: 0 4px 16px rgba(9,38,83,.08); }
}
@media (max-width: 1079.5px) {
  body.map-open .itinerary-sticky { position: sticky; top: calc(52px + var(--safe-top)); z-index: 26; }
}
.day-rail {
  display: flex; gap: 6px; overflow-x: auto;
  background: rgba(255,255,255,.94); backdrop-filter: blur(8px);
  border: 1px solid #dde4ea; border-radius: 999px;
  padding: 6px 10px; scrollbar-width: none;
}
.day-rail::-webkit-scrollbar { display: none; }
.rail-chip {
  flex-shrink: 0; display: inline-flex; align-items: baseline; gap: 5px;
  border: 1px solid transparent; background: #f2f5f8; border-radius: 999px;
  padding: 5px 11px; cursor: pointer; font-family: inherit;
}
.rail-chip b { font-size: 11.5px; color: #205e6b; }
.rail-chip span { font-size: 10.5px; color: #7a8697; font-weight: 700; }
.rail-chip em { font-size: 12px; font-style: normal; color: #33475e; font-weight: 700; max-width: 7em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-chip.is-active { background: #16283f; border-color: #16283f; }
.rail-chip.is-active b, .rail-chip.is-active span, .rail-chip.is-active em { color: #fff; }

/* 收起状态的日卡压缩成一行 */
.day-toggle[aria-expanded="false"] { min-height: 40px; padding: 7px 4px; }
.day-toggle[aria-expanded="false"] .day-locations,
.day-toggle[aria-expanded="false"] .day-ticket-summary { display: none; }
.day-toggle[aria-expanded="false"] .day-meta { display: inline; font-size: 11px; margin-right: 8px; }
.day-toggle[aria-expanded="false"] .day-title { display: inline; font-size: 14.5px; margin-top: 0; }
.day-toggle[aria-expanded="false"] > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.day-toggle[aria-expanded="false"] .day-chevron { width: 28px; height: 28px; }

/* ===================== 修复横向溢出 + 吸顶层级整理 ===================== */
html { overflow-x: clip; }
.day-toggle {
  margin-left: 0 !important;
  width: 100% !important;
  padding-left: 4px !important;
  grid-template-columns: minmax(0, 1fr) auto;
  background: var(--paper);
}
.day-toggle > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 1080px) {
  .day-toggle { top: calc(106px + var(--safe-top)); }
}
@media (max-width: 1079.5px) {
  .itinerary-sticky { position: sticky; top: calc(52px + var(--safe-top)); z-index: 26; }
  .day-toggle { top: calc(102px + var(--safe-top)); }
}

/* ===================== 表格撑宽修复 ===================== */
.it-rich table, .hb-body table { width: 100%; max-width: 100%; table-layout: fixed; }
.it-rich td, .it-rich th, .hb-body td, .hb-body th { word-break: break-word; overflow-wrap: anywhere; }
.day-detail:not([hidden]) { overflow-x: hidden; }
.it-rich img { max-width: 100%; }

/* ===================== 顶部分区标签栏 ===================== */
@media (min-width: 900px) {
  .travel-navigation > summary { display: none !important; }
  .travel-navigation[open] .travel-navigation-menu,
  .travel-navigation .travel-navigation-menu {
    display: flex !important; position: static !important; flex-direction: row; gap: 4px;
    box-shadow: none; border: none; background: none; padding: 0;
  }
  .travel-navigation-menu a {
    padding: 6px 13px !important; border-radius: 999px; font-size: 12.5px; font-weight: 700;
    border: 1px solid transparent; color: #33475e;
  }
  .travel-navigation-menu a:hover { background: #eef2f6; }
  .travel-navigation-menu a.is-current { background: #16283f; color: #fff; }
}
main .section { scroll-margin-top: 130px; }

/* ===================== 标签页切换 + 天数换行 + 单日聚焦 ===================== */
.travel-navigation > summary { display: none !important; }
.travel-navigation-menu, .primary-navigation .travel-navigation-menu {
  display: flex !important; position: static !important; flex-wrap: wrap;
  flex-direction: row; gap: 4px; box-shadow: none; border: none; background: none; padding: 0;
}
.travel-navigation-menu a {
  padding: 6px 12px !important; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  border: 1px solid transparent; color: #33475e; white-space: nowrap;
}
.travel-navigation-menu a:hover { background: #eef2f6; }
.travel-navigation-menu a.is-current { background: #16283f; color: #fff; }
.day-rail { flex-wrap: wrap; justify-content: flex-start; overflow-x: visible; }
.rail-chip em { max-width: 6em; }
.travel-navigation-menu { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; max-width: min(72vw, 1100px); }
.travel-navigation-menu::-webkit-scrollbar { display: none; }

/* ===================== 每日行程：横滑轮播（一次6天 + 边缘渐隐） ===================== */
.day-carousel-row { display: flex; align-items: stretch; gap: 8px; }
.rail-arrow {
  flex: 0 0 30px; border: 1px solid #d7dfe8; background: #fff; border-radius: 10px;
  font-size: 18px; color: #33475e; cursor: pointer; line-height: 1;
}
.rail-arrow:hover { background: #eef2f6; }
.day-carousel {
  display: flex !important; gap: 8px; position: relative;
  flex: 1 1 auto; min-width: 0;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  padding: 4px 2px;
  background: none; border: none; backdrop-filter: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 3.5%, #000 96.5%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 3.5%, #000 96.5%, transparent 100%);
}
.day-carousel::-webkit-scrollbar { display: none; }
.day-slide {
  flex: 0 0 calc((100% - 5 * 8px) / 6);
  scroll-snap-align: start;
  border: 1px solid #e0e6ec; border-radius: 14px; background: #fff;
  padding: 9px 11px 8px; text-align: left; cursor: pointer; font-family: inherit;
  display: flex; flex-direction: column; gap: 3px; min-width: 0;
  transition: border-color .12s ease, box-shadow .12s ease, opacity .2s ease;
}
.day-slide__top { display: flex; justify-content: space-between; align-items: baseline; }
.day-slide__top b { font-size: 14.5px; color: #16283f; }
.day-slide__top i { font-style: normal; font-size: 10.5px; color: #7a8697; font-weight: 700; }
.day-slide em { font-style: normal; font-size: 12px; font-weight: 750; color: #205e6b; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.day-slide p { margin: 0; font-size: 10.5px; color: #8a97a8; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.day-slide:hover { border-color: #9fc3cf; box-shadow: 0 3px 10px rgba(9,38,83,.08); }
.day-slide.is-active { border-color: #16283f; background: #16283f; }
.day-slide.is-active b, .day-slide.is-active em, .day-slide.is-active i, .day-slide.is-active p { color: #fff; }
.day-slide.is-active p { color: #b9c6d4; }
@media (max-width: 1079.5px) {
  .day-slide { flex-basis: calc((100% - 2 * 8px) / 3); }
}
@media (min-width: 640px) and (max-width: 1079.5px) {
  .day-slide { flex-basis: calc((100% - 3 * 8px) / 4); }
}
@media (min-width: 1080px) { .day-toggle { top: calc(158px + var(--safe-top)); } }
@media (max-width: 1079.5px) { .day-toggle { top: calc(150px + var(--safe-top)); } }

/* ===================== 轮播修正：单行不换行 ===================== */
.day-carousel { flex-wrap: nowrap !important; overflow-x: auto !important; }

/* ===================== 行程切换器 ===================== */
.trip-switcher { position: relative; }
.wordmark-button { cursor: pointer; border: 1px solid transparent; border-radius: 10px; padding: 4px 8px; background: none; font-family: inherit; }
.wordmark-button:hover { background: #eef2f6; }
.wordmark-button::after { content: " ▾"; font-size: 10px; color: #7a8697; }
.trip-menu {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 60;
  min-width: 220px; background: #fff; border: 1px solid #e0e6ec; border-radius: 14px;
  box-shadow: 0 10px 30px rgba(9,38,83,.16); padding: 6px;
}
.trip-menu__item {
  display: block; width: 100%; text-align: left; border: none; background: none;
  padding: 9px 12px; border-radius: 10px; font-size: 13px; color: #33475e; cursor: pointer; font-family: inherit;
}
.trip-menu__item:hover { background: #eef2f6; }
.trip-menu__item.is-current { font-weight: 800; color: #16283f; }

/* ===================== 吸顶层宽度对齐内容列 ===================== */
.itinerary-sticky { width: 100%; min-width: 0; max-width: var(--content, 720px); overflow: hidden; }
.itinerary-layout { min-width: 0; }
.day-carousel-row { min-width: 0; }
.panel-selected.is-flash { animation: selflash 1.2s ease; }
@keyframes selflash { 0%, 55% { background: #fff3d9; box-shadow: 0 0 0 2px #e8b451 inset; } 100% { background: #f8fafc; } }
.schedule-item.is-flash { animation: itemflash 2.2s ease; }
@keyframes itemflash { 0%, 65% { background: #ffedb8; box-shadow: 0 0 0 2px #e8b451 inset; } 100% { background: transparent; } }

/* ===================== 手册章节图库 ===================== */
.hb-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin: 10px 0 14px; }
.hb-gallery figure { margin: 0; }
.hb-gallery img { width: 100%; height: 128px; object-fit: cover; border-radius: 10px; border: 1px solid #e4e9ef; cursor: zoom-in; display: block; }
.hb-gallery figcaption { font-size: 11px; color: #8a97a8; margin-top: 3px; text-align: center; }
