:root {
  --paper: #f5f0e8;
  --paper-deep: #ebe3d7;
  --card: #fffdf9;
  --ink: #242321;
  --muted: #75716b;
  --line: #ded6ca;
  --red: #9e2a2b;
  --red-dark: #732021;
  --amber: #bb7044;
  --shadow: 0 14px 40px rgba(56, 43, 29, .07);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 9999; padding: 8px 12px; background: var(--ink); color: white; transform: translateY(-150%); border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }

.hero { position: relative; color: #f9f5ee; background: #282624; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .16; background-image: linear-gradient(90deg, transparent 49.5%, rgba(255,255,255,.12) 50%, transparent 50.5%), linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px); background-size: 124px 100%, 100% 44px; }
.hero::after { content: ""; position: absolute; width: 440px; height: 440px; border: 1px solid rgba(255,255,255,.11); border-radius: 50%; right: -180px; bottom: -300px; box-shadow: 0 0 0 44px rgba(255,255,255,.025), 0 0 0 90px rgba(255,255,255,.018); }
.hero__inner { position: relative; z-index: 1; max-width: 920px; margin: 0 auto; padding: calc(34px + env(safe-area-inset-top)) 32px 40px; }
.hero__topline, .hero__title-row, .card-meta, .section-heading, .address-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.eyebrow, .weather-note, .date-kicker { font-size: 11px; letter-spacing: .18em; }
.eyebrow { color: #d8ccc0; }
.weather-note { color: #b9afa4; letter-spacing: .06em; }
.hero__title-row { margin-top: 40px; align-items: flex-end; }
.date-kicker { margin: 0 0 2px; color: #d9c9b9; font-variant-numeric: tabular-nums; }
.date-kicker span, .date-kicker small { display: block; }
.date-kicker small { margin-top: 3px; color: #aaa198; font-size: 10px; letter-spacing: .08em; }
h1 { margin: 0; font-size: clamp(42px, 10vw, 78px); line-height: 1.08; letter-spacing: -.05em; font-weight: 650; }
.hero__stamp { display: grid; place-items: center; width: 64px; height: 64px; border: 1px solid rgba(255,255,255,.32); border-radius: 50%; transform: rotate(5deg); }
.hero__stamp span { font-family: "STKaiti", serif; font-size: 27px; line-height: 1; }
.hero__stamp small { font-size: 8px; color: #bdb3aa; letter-spacing: .18em; }
.hero__subtitle { margin: 14px 0 30px; color: #c7beb4; font-size: 14px; letter-spacing: .08em; }
.overview { display: grid; grid-template-columns: .75fr .75fr 1.5fr; border-top: 1px solid rgba(255,255,255,.13); padding-top: 24px; }
.overview > div { padding: 0 18px; border-left: 1px solid rgba(255,255,255,.13); }
.overview > div:first-child { padding-left: 0; border-left: 0; }
.overview strong, .overview span { display: block; }
.overview strong { font-size: 18px; font-weight: 560; font-variant-numeric: tabular-nums; }
.overview span { margin-top: 2px; color: #aaa198; font-size: 11px; }

.page-shell { width: min(100% - 40px, 920px); margin: 0 auto; }
.export-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 24px; padding: 14px 16px 14px 20px; border: 1px solid rgba(93,75,57,.1); border-radius: 18px; background: rgba(255,253,249,.76); box-shadow: 0 8px 24px rgba(56,43,29,.045); }
.export-bar span, .export-bar small { display: block; }
.export-bar span { font-size: 13px; font-weight: 650; }
.export-bar small { color: var(--muted); font-size: 10px; }
.export-bar button { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 9px 15px; border: 0; border-radius: 12px; color: white; background: var(--ink); font-size: 12px; font-weight: 650; cursor: pointer; }
.export-bar button:hover, .export-bar button:focus-visible { background: var(--red-dark); }
.export-bar svg { width: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.section { padding-top: 72px; }
.section-heading { margin-bottom: 24px; align-items: flex-end; }
.section-heading > div { display: flex; align-items: baseline; gap: 12px; }
.section-heading h2 { margin: 0; font-size: 28px; line-height: 1.2; letter-spacing: -.035em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.section-no { color: var(--red); font-family: Georgia, serif; font-size: 13px; font-style: italic; }

.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; top: 30px; bottom: 30px; left: 24px; width: 1px; background: var(--line); }
.timeline-card { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 20px; margin-bottom: 16px; }
.timeline-marker { position: relative; z-index: 1; display: grid; place-items: center; align-self: start; width: 48px; height: 48px; margin-top: 22px; border: 7px solid var(--paper); border-radius: 50%; color: white; background: var(--red); box-shadow: 0 0 0 1px #c7bdb1; font: 600 13px Georgia, serif; }
.timeline-marker--open { color: var(--muted); background: var(--paper-deep); }
.timeline-marker--final { background: var(--ink); }
.timeline-card__body { padding: 24px; border: 1px solid rgba(93, 75, 57, .1); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); transition: border-color .25s, box-shadow .25s, transform .25s; }
.timeline-card--soft .timeline-card__body { background: rgba(255, 253, 249, .55); box-shadow: none; border-style: dashed; }
.timeline-card--transition .timeline-card__body { background: rgba(255, 253, 249, .72); box-shadow: none; }
.timeline-card--dinner .timeline-card__body { border-color: rgba(187, 112, 68, .32); }
.evening-divider { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; margin: 34px 0 18px 68px; color: var(--ink); }
.evening-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.evening-divider span { color: var(--amber); font: italic 10px Georgia, serif; letter-spacing: .16em; }
.evening-divider strong { flex: 0 0 auto; font-size: 13px; font-weight: 620; }
.timeline-card.is-current .timeline-card__body { border-color: rgba(158,42,43,.62); box-shadow: 0 16px 48px rgba(108, 34, 35, .12); transform: translateY(-2px); }
.timeline-card.is-current .timeline-marker { box-shadow: 0 0 0 4px rgba(158,42,43,.17), 0 0 0 5px var(--red); }
.timeline-card h3 { margin: 8px 0 6px; font-size: 21px; line-height: 1.35; letter-spacing: -.02em; }
.card-meta time { color: var(--red-dark); font-size: 20px; font-weight: 680; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.key-time .card-meta time { font-size: 24px; }
.duration { color: var(--muted); font-size: 12px; }
.tag { flex: 0 0 auto; padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 620; }
.tag--red { color: var(--red-dark); background: #f4dfdc; }
.tag--amber { color: #814323; background: #f7e4d3; }
.tag--gray { color: #5f5b56; background: #ece8e1; }
.address-row { align-items: flex-start; justify-content: flex-start; gap: 7px; color: var(--muted); font-size: 12px; }
.address-row span { min-width: 0; }
.copy-button { display: grid; flex: 0 0 28px; place-items: center; width: 28px; height: 28px; margin-top: -4px; border: 0; border-radius: 8px; color: #817a72; background: transparent; cursor: pointer; }
.copy-button:hover, .copy-button:focus-visible { color: var(--red); background: #f0ebe3; }
.copy-button svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.card-note { margin: 14px 0 0; color: #5c5853; font-size: 14px; }
.nav-button { display: inline-flex; align-items: center; gap: 20px; min-height: 42px; margin-top: 18px; padding: 9px 14px; border: 1px solid #dcd3c8; border-radius: 12px; color: var(--ink); background: #faf7f1; font-size: 12px; font-weight: 620; text-decoration: none; }
.nav-button:hover, .nav-button:focus-visible { border-color: #bbaea0; background: #f4eee6; }
.current-note { margin: 4px 0 0 68px; color: var(--red); font-size: 12px; }
.current-note span { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--red); animation: pulse 2s ease-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(158,42,43,0); } 0% { box-shadow: 0 0 0 0 rgba(158,42,43,.28); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .current-note span { animation: none; } }

.route-card { overflow: hidden; border: 1px solid rgba(93,75,57,.1); border-radius: 28px; background: var(--card); box-shadow: var(--shadow); }
#map, .map-fallback { height: 390px; }
#map { z-index: 1; background: #e7e1d8; }
.map-fallback { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px; color: var(--muted); background: #e8e2d9; text-align: center; }
.map-fallback[hidden] { display: none; }
.map-fallback__icon { margin-bottom: 8px; color: var(--red); font: 40px Georgia, serif; }
.map-fallback strong { color: var(--ink); }
.map-fallback span { max-width: 340px; margin-top: 4px; font-size: 12px; }
.map-fallback button { margin-top: 18px; padding: 9px 14px; border: 1px solid #cfc5b9; border-radius: 10px; background: var(--card); cursor: pointer; }
.export-route { display: none; padding: 42px 48px 46px; background: #ede7dd; }
.export-route__heading { padding-bottom: 24px; border-bottom: 1px solid #d3c9bc; }
.export-route__heading span { color: var(--red); font: italic 11px Georgia, serif; letter-spacing: .16em; }
.export-route__heading h3 { margin: 6px 0 4px; font-size: 27px; letter-spacing: -.03em; }
.export-route__heading p { margin: 0; color: var(--muted); font-size: 13px; }
.export-route__list { margin: 30px 0 0; padding: 0; list-style: none; }
.export-route__stop { position: relative; display: grid; grid-template-columns: 68px 1fr; gap: 22px; align-items: start; }
.export-route__node { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; align-items: center; width: 68px; height: 42px; overflow: hidden; border-radius: 21px; color: white; background: var(--red); box-shadow: 0 5px 15px rgba(94,39,35,.16); }
.export-route__node span, .export-route__node small { display: grid; place-items: center; height: 100%; }
.export-route__node span { border-right: 1px solid rgba(255,255,255,.25); font: 700 16px Georgia, serif; }
.export-route__node small { font-size: 13px; }
.export-route__info { padding: 0 0 4px; }
.export-route__info time { color: var(--red-dark); font-size: 20px; font-weight: 720; font-variant-numeric: tabular-nums; }
.export-route__info h4 { margin: 3px 0 2px; font-size: 22px; line-height: 1.35; }
.export-route__info address { color: #55504a; font-size: 16px; font-style: normal; line-height: 1.7; overflow-wrap: anywhere; }
.export-route__info p { display: inline-block; margin: 9px 0 0; padding: 4px 10px; border-radius: 999px; color: #5d5750; background: rgba(255,255,255,.58); font-size: 13px; font-weight: 620; }
.export-route__transfer { position: relative; display: flex; align-items: center; gap: 12px; min-height: 72px; margin-left: 33px; padding-left: 55px; color: #6f6860; }
.export-route__transfer::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: repeating-linear-gradient(to bottom, var(--red) 0 6px, transparent 6px 12px); }
.export-route__transfer span { color: var(--red); font-size: 21px; }
.export-route__transfer strong { font-size: 14px; font-weight: 620; }
.export-route__transfer--evening { color: #855334; }
.export-route__transfer--evening::before { background: repeating-linear-gradient(to bottom, var(--amber) 0 8px, transparent 8px 14px); }
.export-route__transfer--evening span { color: var(--amber); }
.export-route__stop--evening .export-route__node { background: var(--amber); }
.export-route__stop--evening .export-route__info time { color: #8e4d29; }
.route-list { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 22px 24px; list-style: none; }
.route-list li { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-left: 1px solid var(--line); }
.route-list li:first-child { padding-left: 0; border-left: 0; }
.route-list li > span { display: grid; flex: 0 0 27px; place-items: center; width: 27px; height: 27px; border-radius: 50%; color: white; background: var(--red); font: 600 11px Georgia, serif; }
.route-list__evening > span { background: var(--amber) !important; }
.route-list__evening small { color: #9b5a35; }
.route-list strong, .route-list small { display: block; }
.route-list strong { font-size: 13px; line-height: 1.35; }
.route-list small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.route-marker { display: grid !important; place-items: center; border: 3px solid #fff; border-radius: 50%; color: #fff; background: var(--red); box-shadow: 0 4px 12px rgba(50,30,20,.26); font: 700 13px Georgia, serif; }
.leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: 0 8px 30px rgba(30,20,10,.16); }
.leaflet-popup-content { margin: 13px 15px; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif; line-height: 1.45; }
.map-popup strong, .map-popup span { display: block; }.map-popup span { color: var(--red); font-size: 12px; font-weight: 650; }.map-popup small { color: var(--muted); font-size: 10px; }

.reminders { padding-bottom: 72px; }
.reminder-card { padding: 8px 26px; border-radius: var(--radius); color: #eee8df; background: #302d2a; box-shadow: var(--shadow); }
.reminder-card ul { margin: 0; padding: 0; list-style: none; }
.reminder-card li { display: grid; grid-template-columns: 68px 1fr; gap: 16px; align-items: center; padding: 15px 0; border-top: 1px solid rgba(255,255,255,.09); }
.reminder-card li:first-child { border-top: 0; }
.reminder-card li span { color: #d6a68f; font-size: 11px; font-weight: 700; letter-spacing: .05em; }
.reminder-card li p { margin: 0; font-size: 13px; }
footer { display: flex; justify-content: space-between; align-items: flex-end; width: min(100% - 40px, 920px); margin: 0 auto; padding: 30px 0 calc(36px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
footer p { margin: 0; font-family: "STKaiti", Georgia, serif; font-size: 24px; } footer span { color: var(--muted); font-size: 10px; }
.back-to-top { position: fixed; z-index: 800; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; color: white; background: rgba(36,35,33,.9); box-shadow: 0 8px 24px rgba(0,0,0,.18); opacity: 0; pointer-events: none; transform: translateY(8px); transition: .2s; cursor: pointer; }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.toast { position: fixed; z-index: 1200; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); min-width: 112px; padding: 10px 16px; border-radius: 999px; color: white; background: rgba(30,29,27,.94); font-size: 12px; text-align: center; opacity: 0; pointer-events: none; transform: translate(-50%, 10px); transition: .2s; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.modal { position: fixed; z-index: 1100; inset: 0; display: grid; place-items: center; padding: max(20px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom)); }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(18,17,16,.88); backdrop-filter: blur(10px); }
body.modal-open { overflow: hidden; }
.export-modal__content { position: relative; width: min(92vw, 520px); padding: 30px; border-radius: 24px; background: var(--card); box-shadow: 0 24px 80px rgba(0,0,0,.3); }
.export-modal__close, .export-result__close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border: 0; border-radius: 50%; color: var(--ink); background: #eee8df; font-size: 23px; line-height: 1; cursor: pointer; }
.export-modal__eyebrow, .export-result__header span { color: var(--red); font: 10px Georgia, serif; letter-spacing: .16em; }
.export-modal h2, .export-result h2 { margin: 7px 0 4px; font-size: 25px; letter-spacing: -.03em; }
.export-modal__content > p, .export-result__content > p { margin: 0; color: var(--muted); font-size: 12px; }
.export-options { display: grid; gap: 10px; margin-top: 24px; }
.export-options button { padding: 17px 18px; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); background: #faf7f2; text-align: left; cursor: pointer; }
.export-options button:hover, .export-options button:focus-visible { border-color: rgba(158,42,43,.46); background: #f6eee8; }
.export-options strong, .export-options span { display: block; }
.export-options strong { font-size: 14px; }
.export-options span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.export-progress { position: fixed; z-index: 1300; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: white; background: rgba(24,23,21,.91); backdrop-filter: blur(10px); }
.export-progress[hidden] { display: none; }
.export-progress span { width: 36px; height: 36px; margin-bottom: 16px; border: 2px solid rgba(255,255,255,.24); border-top-color: white; border-radius: 50%; animation: export-spin .8s linear infinite; }
.export-progress strong { font-size: 15px; }.export-progress small { margin-top: 4px; color: #c7beb4; font-size: 11px; }
@keyframes export-spin { to { transform: rotate(360deg); } }
.export-result__content { position: relative; display: flex; flex-direction: column; width: min(94vw, 720px); max-height: 92vh; padding: 22px; border-radius: 24px; background: var(--card); box-shadow: 0 24px 80px rgba(0,0,0,.3); }
.export-result__header { display: flex; justify-content: space-between; padding-right: 48px; }
.export-result__close { top: 18px; right: 18px; }
.export-result__preview { min-height: 120px; margin-top: 16px; overflow: auto; border: 1px solid var(--line); border-radius: 14px; background: #e8e2d9; }
.export-result__preview img { display: block; width: 100%; height: auto; }
.export-result__download { display: block; flex: 0 0 auto; min-height: 46px; margin-top: 12px; padding: 11px 18px; border-radius: 13px; color: white; background: var(--ink); font-size: 13px; font-weight: 650; text-align: center; text-decoration: none; }

body.exporting { width: 640px !important; min-width: 640px !important; overflow: visible !important; }
body.exporting .hero__inner, body.exporting .page-shell, body.exporting footer { width: 584px !important; max-width: 584px !important; }
body.exporting .hero__inner { padding-left: 0 !important; padding-right: 0 !important; }
body.exporting #map, body.exporting .map-fallback { display: none !important; }
body.exporting .export-route { display: block !important; }
body.exporting .route-list { display: none !important; }

/* 导出长图专用：约 30% 的字号与间距提升，日常页面不受影响。 */
body.exporting .hero__inner { padding-top: 52px !important; padding-bottom: 52px !important; }
body.exporting .eyebrow, body.exporting .weather-note, body.exporting .date-kicker { font-size: 14px; }
body.exporting h1 { font-size: 92px; line-height: 1.1; }
body.exporting .hero__subtitle { margin-top: 18px; margin-bottom: 36px; font-size: 18px; line-height: 1.7; }
body.exporting .overview { padding-top: 30px; }
body.exporting .overview > div { padding: 0 24px; }
body.exporting .overview > div:first-child { padding-left: 0; }
body.exporting .overview strong { font-size: 24px; }
body.exporting .overview span { margin-top: 4px; font-size: 14px; }
body.exporting .section { padding-top: 88px; }
body.exporting .section-heading { margin-bottom: 31px; }
body.exporting .section-heading h2 { font-size: 37px; }
body.exporting .section-heading p { font-size: 16px; }
body.exporting .section-no { font-size: 17px; }
body.exporting .timeline::before { left: 29px; }
body.exporting .timeline-card { grid-template-columns: 58px minmax(0, 1fr); gap: 24px; margin-bottom: 22px; }
body.exporting .timeline-marker { width: 58px; height: 58px; margin-top: 30px; border-width: 8px; font-size: 14px; }
body.exporting .timeline-card__body { padding: 32px; border-radius: 27px; }
body.exporting .timeline-card h3 { margin-top: 11px; margin-bottom: 9px; font-size: 28px; line-height: 1.42; overflow-wrap: anywhere; }
body.exporting .card-meta { align-items: center; }
body.exporting .card-meta time { font-size: 27px; line-height: 1.35; }
body.exporting .key-time .card-meta time { font-size: 32px; }
body.exporting .duration { font-size: 16px; }
body.exporting .tag { padding: 6px 13px; font-size: 14px; }
body.exporting .address-row { font-size: 17px; line-height: 1.75; overflow-wrap: anywhere; }
body.exporting .card-note { margin-top: 18px; font-size: 18px; line-height: 1.75; }
body.exporting .evening-divider { margin: 45px 0 24px 82px; gap: 16px; }
body.exporting .evening-divider span { font-size: 13px; }
body.exporting .evening-divider strong { font-size: 17px; }
body.exporting .current-note { margin-left: 82px; font-size: 15px; }
body.exporting .export-route { padding: 48px 54px 54px; }
body.exporting .export-route__heading span { font-size: 14px; }
body.exporting .export-route__heading h3 { font-size: 36px; }
body.exporting .export-route__heading p { font-size: 17px; line-height: 1.7; }
body.exporting .export-route__list { margin-top: 38px; }
body.exporting .export-route__stop { grid-template-columns: 82px minmax(0, 1fr); gap: 28px; }
body.exporting .export-route__node { width: 82px; height: 50px; border-radius: 25px; }
body.exporting .export-route__node span { font-size: 20px; }
body.exporting .export-route__node small { font-size: 17px; }
body.exporting .export-route__info time { font-size: 26px; }
body.exporting .export-route__info { min-width: 0; }
body.exporting .export-route__info h4 { font-size: 29px; }
body.exporting .export-route__info address { font-size: 21px; line-height: 1.75; }
body.exporting .export-route__info p { padding: 6px 13px; font-size: 17px; }
body.exporting .export-route__transfer { min-height: 90px; margin-left: 40px; padding-left: 70px; }
body.exporting .export-route__transfer span { font-size: 27px; }
body.exporting .export-route__transfer strong { font-size: 18px; }
body.exporting .reminder-card { padding: 12px 34px; }
body.exporting .reminder-card li { grid-template-columns: 90px 1fr; gap: 21px; padding: 20px 0; }
body.exporting .reminder-card li span { font-size: 15px; }
body.exporting .reminder-card li p { font-size: 18px; line-height: 1.7; }
body.exporting footer { padding-top: 40px; padding-bottom: 46px; }
body.exporting footer p { font-size: 31px; }
body.exporting footer span { font-size: 13px; }

@media (max-width: 680px) {
  .export-bar { padding: 12px 12px 12px 15px; }
  .export-bar small { max-width: 155px; line-height: 1.4; }
  .export-bar button { padding: 9px 12px; }
  .hero__inner { padding-left: 20px; padding-right: 20px; padding-bottom: 28px; }
  .hero__title-row { margin-top: 32px; }
  .hero__stamp { width: 55px; height: 55px; }
  .overview { grid-template-columns: .85fr .75fr 1.4fr; }
  .overview > div { padding: 0 10px; }
  .overview strong { font-size: 14px; }
  .overview span { font-size: 9px; }
  .page-shell { width: min(100% - 28px, 920px); }
  .section { padding-top: 54px; }
  .section-heading h2 { font-size: 25px; }
  .timeline-card { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; }
  .timeline::before { left: 18px; }
  .timeline-marker { width: 36px; height: 36px; margin-top: 22px; border-width: 6px; font-size: 10px; }
  .timeline-card__body { min-width: 0; padding: 20px 18px; border-radius: 20px; }
  .timeline-card h3 { font-size: 18px; overflow-wrap: anywhere; }
  .card-meta { align-items: flex-start; }
  .card-meta time { font-size: 18px; }
  .key-time .card-meta time { font-size: 21px; }
  .address-row { line-height: 1.5; }
  .current-note { margin-left: 46px; }
  .evening-divider { margin-left: 46px; }
  #map, .map-fallback { height: 340px; }
  .route-list { grid-template-columns: 1fr; padding: 8px 18px; }
  .route-list li, .route-list li:first-child { padding: 13px 0; border-left: 0; border-top: 1px solid var(--line); }
  .route-list li:first-child { border-top: 0; }
  .reminder-card { padding: 6px 20px; }
  .reminder-card li { grid-template-columns: 57px 1fr; gap: 12px; }
  footer { width: calc(100% - 28px); }
  footer p { font-size: 21px; }
  .export-modal__content { padding: 26px 20px 20px; }
  .export-result__content { width: 96vw; max-height: 94vh; padding: 16px; }
}

@media (max-width: 370px) {
  .hero__stamp { display: none; }
  .hero__subtitle { font-size: 12px; letter-spacing: .04em; }
  .overview { grid-template-columns: 1fr 1fr; row-gap: 14px; }
  .overview > div:nth-child(3) { grid-column: 1 / -1; padding-left: 0; border-left: 0; }
}

/* 4天3晚家庭自驾：延续原有卡片与时间轴视觉 */
.trip-title { max-width: 720px; font-size: clamp(38px, 7vw, 64px); line-height: 1.13; }
.overview--trip { grid-template-columns: repeat(4, 1fr); row-gap: 22px; }
.trip-route-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-bottom: 22px; padding: 17px 20px; border: 1px solid rgba(93,75,57,.1); border-radius: 18px; color: var(--ink); background: rgba(255,253,249,.65); font-size: 13px; font-weight: 650; }
.trip-route-strip i { color: var(--red); font-family: Georgia, serif; font-style: normal; }
.day-group { margin-top: 18px; border: 1px solid rgba(93,75,57,.12); border-radius: 26px; background: rgba(255,253,249,.56); box-shadow: var(--shadow); overflow: hidden; }
.day-group summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 112px; padding: 23px 26px; cursor: pointer; list-style: none; background: var(--card); }
.day-group summary::-webkit-details-marker { display: none; }
.day-group summary:focus-visible { outline: 3px solid rgba(158,42,43,.3); outline-offset: -3px; }
.day-group summary > div { min-width: 0; }
.day-group summary strong { display: inline-block; margin-left: 10px; color: var(--muted); font-size: 13px; }
.day-group summary h3 { margin: 7px 0 0; font-size: 23px; line-height: 1.35; }
.day-badge { display: inline-block; padding: 4px 9px; border-radius: 999px; color: white; background: var(--red); font: 700 11px Georgia, serif; letter-spacing: .08em; }
.day-badge--2 { background: #9b694d; }.day-badge--3 { background: #5d6258; }.day-badge--4 { background: #34383a; }
.day-toggle { flex: 0 0 auto; color: var(--muted); font-size: 11px; }
.day-toggle::before { content: "+"; display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 7px; border: 1px solid var(--line); border-radius: 50%; color: var(--red); font-size: 18px; vertical-align: middle; }
.day-group[open] .day-toggle::before { content: "−"; }
.day-timeline { margin: 0 22px 24px; padding-top: 24px; }
.day-group .timeline-card__body { box-shadow: 0 9px 28px rgba(56,43,29,.055); }
.day-group .card-note, .detail-list, .route-text { font-size: 16px; line-height: 1.75; }
.detail-list { margin: 14px 0 0; padding-left: 20px; color: #5c5853; }
.detail-list li + li { margin-top: 5px; }
.route-text { margin: 14px 0 0; padding: 12px 15px; border-left: 3px solid var(--red); color: var(--red-dark); background: #f4ece5; font-weight: 650; }
.copy-button { flex-basis: auto; width: auto; min-width: 42px; padding: 0 8px; font-size: 11px; }
.summary-grid { display: grid; gap: 18px; }
.stays-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.food-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.summary-card { min-width: 0; padding: 24px; border: 1px solid rgba(93,75,57,.1); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.summary-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--red); font-size: 12px; font-weight: 700; }
.summary-card__top > strong { color: var(--amber); }
.summary-card h3 { margin: 14px 0 8px; font-size: 19px; line-height: 1.4; }
.summary-card > p { margin: 14px 0 0; color: #5c5853; font-size: 15px; line-height: 1.7; }
.summary-card .address-row { font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.mini-facts { display: flex; flex-wrap: wrap; gap: 7px; margin: 15px 0 0; padding: 0; list-style: none; }
.mini-facts li { padding: 5px 9px; border-radius: 999px; color: #655e57; background: #eee9e1; font-size: 11px; }
.map-legend { display: grid; grid-template-columns: repeat(4, 1fr); padding: 20px 24px; gap: 12px; }
.map-legend span { display: flex; align-items: center; gap: 8px; color: #5f5a54; font-size: 12px; }
.map-legend i { display: block; width: 22px; height: 4px; border-radius: 999px; background: var(--red); }
.map-legend .day2 { background: #b87445; }.map-legend .day3 { background: #65705e; }.map-legend .day4 { background: #33383b; }
.route-marker.day2 { background: #b87445; }.route-marker.day3 { background: #65705e; }.route-marker.day4 { background: #33383b; }

/* 长图导出时展开所有日期，并保留适合长辈阅读的大字号 */
body.exporting .day-group { overflow: visible; }
body.exporting .day-group summary { min-height: 138px; padding: 30px 32px; }
body.exporting .day-group summary h3 { font-size: 31px; }
body.exporting .day-group summary strong { font-size: 17px; }
body.exporting .day-badge { padding: 6px 12px; font-size: 14px; }
body.exporting .day-toggle { display: none; }
body.exporting .day-timeline { margin: 0 24px 30px; padding-top: 30px; }
body.exporting .detail-list, body.exporting .route-text { font-size: 19px; line-height: 1.8; }
body.exporting .summary-grid { grid-template-columns: 1fr !important; }
body.exporting .summary-card { padding: 32px; }
body.exporting .summary-card__top { font-size: 17px; }
body.exporting .summary-card h3 { font-size: 27px; }
body.exporting .summary-card .address-row { font-size: 19px; line-height: 1.75; }
body.exporting .summary-card > p { font-size: 18px; }
body.exporting .mini-facts li { padding: 7px 12px; font-size: 15px; }
body.exporting .map-legend { display: none; }
body.exporting .trip-route-strip { padding: 22px; font-size: 17px; }

@media (max-width: 760px) {
  .trip-title { font-size: clamp(34px, 10vw, 48px); }
  .overview--trip { grid-template-columns: repeat(2, 1fr); }
  .overview--trip > div:nth-child(3), .overview--trip > div:nth-child(5) { padding-left: 0; border-left: 0; }
  .overview--trip > div:nth-child(4) { padding-left: 10px; border-left: 1px solid rgba(255,255,255,.13); }
  .day-group summary { min-height: 104px; padding: 20px; }
  .day-group summary h3 { font-size: 20px; }
  .day-toggle { font-size: 0; }
  .day-toggle::before { margin-right: 0; }
  .day-timeline { margin: 0 12px 18px; }
  .stays-grid, .food-grid { grid-template-columns: 1fr; }
  .summary-card { padding: 21px; }
  .map-legend { grid-template-columns: repeat(2, 1fr); }
}

/* 公开分享版增量模块 */
.current-focus { margin-top: 20px; padding: 22px 24px; border: 1px solid rgba(158,42,43,.16); border-radius: 20px; background: #fffaf5; box-shadow: 0 8px 24px rgba(56,43,29,.05); }
.current-focus > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.current-focus > div span { color: var(--red); font: italic 12px Georgia, serif; letter-spacing: .12em; }
.current-focus > div strong { color: var(--muted); font-size: 14px; }
.current-focus h2 { margin: 12px 0 4px; font-size: 25px; line-height: 1.35; }
.current-focus p { margin: 0; color: #5c5853; font-size: 16px; }

.day-overview-section { scroll-margin-top: 18px; }
.day-overview-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.day-overview-grid a { display: flex; min-width: 0; min-height: 132px; flex-direction: column; justify-content: space-between; padding: 18px; border: 1px solid rgba(93,75,57,.12); border-radius: 18px; color: var(--ink); background: var(--card); box-shadow: 0 8px 24px rgba(56,43,29,.05); text-decoration: none; }
.day-overview-grid a:hover, .day-overview-grid a:focus-visible { border-color: rgba(158,42,43,.48); transform: translateY(-2px); }
.day-overview-grid a span { color: var(--red); font: 700 12px Georgia, serif; letter-spacing: .09em; }
.day-overview-grid a strong { margin-top: 10px; font-size: 20px; }
.day-overview-grid a small { margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 1.45; }

.day-group { scroll-margin-top: 18px; }
.day-route { --route-color: var(--red); margin: 22px 22px 0; padding: 20px 22px 10px; border: 1px dashed rgba(93,75,57,.18); border-radius: 20px; background: #faf6f0; }
.day-route--2 { --route-color: #9b694d; }
.day-route--3 { --route-color: #5d6258; }
.day-route--4 { --route-color: #34383a; }
.day-route h4 { margin: 0 0 8px; color: var(--route-color); font: 700 13px Georgia, serif; letter-spacing: .08em; }
.day-route svg { display: block; width: 100%; height: auto; max-height: 360px; }
.day-route path { fill: none; stroke: var(--route-color); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 4 10; opacity: .65; }
.day-route circle { fill: var(--route-color); stroke: #fffdf9; stroke-width: 7; }
.day-route text { fill: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 24px; font-weight: 650; }

.checklist-card { padding: 10px 26px; border: 1px solid rgba(93,75,57,.1); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.checklist-card ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; margin: 0; padding: 0; list-style: none; }
.checklist-card li { min-width: 0; border-top: 1px solid var(--line); }
.checklist-card li:nth-child(-n+2) { border-top: 0; }
.checklist-card label { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 0; cursor: pointer; }
.checklist-card input { flex: 0 0 24px; width: 24px; height: 24px; margin: 0; accent-color: var(--red); }
.checklist-card span { font-size: 16px; line-height: 1.5; }

.address-row { font-size: 15px; }
.nav-button { min-height: 48px; font-size: 14px; }
.tag { font-size: 12px; }
.reminder-card li p { font-size: 15px; }

body.exporting .export-bar,
body.exporting .back-to-top,
body.exporting .toast,
body.exporting .modal,
body.exporting .nav-button,
body.exporting .copy-button,
body.exporting .current-focus,
body.exporting .checklist-section { display: none !important; }
body.exporting .day-overview-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
body.exporting .day-overview-grid a { min-height: 154px; padding: 24px; }
body.exporting .day-overview-grid a span { font-size: 15px; }
body.exporting .day-overview-grid a strong { font-size: 27px; }
body.exporting .day-overview-grid a small { font-size: 19px; }
body.exporting .day-route { margin: 26px 24px 0; padding: 28px 30px 16px; }
body.exporting .day-route h4 { font-size: 17px; }
body.exporting .day-route text { font-size: 27px; }

@media (max-width: 760px) {
  .overview--trip { grid-template-columns: repeat(2, 1fr); }
  .overview--trip > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .overview--trip > div:nth-child(4) { padding-left: 10px; border-left: 1px solid rgba(255,255,255,.13); }
  .current-focus { padding: 20px; }
  .current-focus > div { align-items: flex-start; flex-direction: column; gap: 4px; }
  .current-focus h2 { font-size: 22px; }
  .day-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .day-overview-grid a { min-height: 122px; padding: 16px; }
  .day-route { margin: 16px 12px 0; padding: 17px 16px 8px; }
  .day-route text { font-size: 25px; }
  .checklist-card { padding: 6px 20px; }
  .checklist-card ul { grid-template-columns: 1fr; }
  .checklist-card li:nth-child(2) { border-top: 1px solid var(--line); }
  .checklist-card label { min-height: 60px; }
}
