:root{--ink:#242a2b;--muted:#687272;--green:#276b58;--paper:#f5f7f6;--line:#dfe5e2;--white:#fff;--gold:#8c5f13;--shadow:0 2px 10px #203a2920;color-scheme:light}
*{box-sizing:border-box;letter-spacing:0!important}
html,body{margin:0;min-height:100%;font-family:"Segoe UI","Microsoft YaHei",sans-serif;color:var(--ink);background:#fff;font-size:14px;line-height:1.6}
button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}a{color:var(--green);text-underline-offset:3px}a:focus-visible,button:focus-visible,[role=button]:focus-visible{outline:3px solid #c84942;outline-offset:3px}
svg{width:20px;height:20px;flex-shrink:0}button:disabled{cursor:default}h1,h2,h3,p{overflow-wrap:anywhere}button:focus-visible{z-index:1}
.topbar{height:60px;padding:0 20px;display:flex;align-items:center;gap:12px;color:#fff;background:#263331;border-bottom:1px solid #263331}
.brand{width:36px;height:36px;display:grid;place-items:center;flex-shrink:0;background:#c84942;border-radius:6px}.brand svg{width:22px;height:22px}
.title-wrap,.top-title{min-width:0}.title-wrap h1,.top-title strong{display:block;margin:0;font-size:18px;line-height:1.3}.title-wrap p,.top-title span{display:block;margin:2px 0 0;font-size:11px;color:#cbd6d2}
.guide-link,.map-link{margin-left:auto;display:flex;align-items:center;justify-content:center;gap:8px;color:#fff;min-height:40px;padding:0 10px;white-space:nowrap;text-decoration:none;border-radius:4px;background:#ffffff10;font-size:13px}.guide-link:hover,.map-link:hover{background:#ffffff20}
.day-nav{height:54px;display:flex;align-items:center;gap:0;padding:0 20px;background:#fff;border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:thin;flex-shrink:0}
.day-button{height:38px;min-width:65px;padding:0 12px;background:#fff;border:0;border-radius:0;font-size:13px;color:var(--muted);white-space:nowrap;border-bottom:2px solid transparent}.day-button:hover{background:var(--paper)}.day-button.active{color:var(--green);font-weight:700;border-bottom-color:var(--green);background:#eff5f2}
.map-page{height:100dvh;overflow:hidden}.app{height:calc(100dvh - 114px);display:grid;grid-template-columns:minmax(350px,410px) minmax(0,1fr)}
.panel{min-width:0;overflow-y:auto;background:#fff;border-right:1px solid var(--line)}.intro{padding:20px 22px 12px;border-bottom:1px solid var(--line)}
.eyebrow{margin:0 0 5px;color:var(--muted);font-size:10px;font-weight:700}.intro h2{margin:0;font-size:24px;line-height:1.35}.intro-copy{margin:6px 0 0;color:var(--muted);font-size:12px}
.facts{display:grid;grid-template-columns:1fr;gap:10px;margin-top:12px}.fact span,.metric span,.hero-fact span{display:block;font-size:11px;color:var(--muted)}.fact strong,.metric strong,.hero-fact strong{display:block;font-size:13px;margin-top:3px;font-weight:600;line-height:1.6;overflow-wrap:anywhere;white-space:normal}
.version-note{margin:14px 0 0;display:flex;gap:7px;align-items:flex-start;font-size:11px;color:#895a1c}.version-note svg{width:15px;height:15px;margin-top:2px}
#detail{padding:20px 22px 28px}.heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.heading h3{margin:0;font-size:20px;line-height:1.4}.day-code{display:grid;place-items:center;flex-shrink:0;width:38px;height:38px;border-radius:6px;color:#fff;font-size:11px;font-weight:700}
.summary{margin:10px 0 0;font-size:13px;line-height:1.85;color:#586562}.metric-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:17px 0 0;border-block:1px solid var(--line);padding:14px 0}.metric{min-width:0;background:transparent}
.section-label,.label{margin:20px 0 10px;font-size:12px;font-weight:700;color:#3f514c}.timeline{display:grid;gap:8px}
.stop{padding:11px 9px;display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:10px;background:#fafcfb;border:1px solid var(--line);border-radius:6px;cursor:pointer}.stop:hover{border-color:#a0b8ae;background:#f1f7f4}.stop-num{display:grid;place-items:center;width:30px;height:30px;border-radius:4px;color:#fff;font-size:10px;font-weight:700}.stop-name{min-width:0}.stop-name strong,.stop-name span{display:block;overflow-wrap:anywhere;white-space:normal}.stop-name strong{font-size:12px;line-height:1.7}.stop-name span{margin-top:1px;font-size:10px;color:var(--muted);line-height:1.55}.stop-flags{display:flex;gap:3px;align-items:center;font-size:11px;max-width:40px;overflow-wrap:anywhere}
.booking,.risk,.pending-panel{margin-top:14px;padding:12px 13px;background:#fcf7ed;border-left:3px solid #c8974b;color:#7a5928;font-size:12px;line-height:1.8;border-radius:0}.risk{background:#f1f6f4;border-left-color:#7a9a87;color:#425b4e}.pending-panel{background:#fff6f3;border-left-color:#c84942;color:#6b4740}.pending-panel h4{margin:0 0 7px;font-size:13px}.pending-item+.pending-item{margin-top:12px}.pending-item p{margin:4px 0;font-size:12px}.pending-item span{font-size:10px;color:#795f59}.pending-item a{font-size:11px;color:#81504a}.map-note{margin:14px 0 0;font-size:11px;color:var(--muted)}
.map-wrap{position:relative;min-width:0;background:#e8efe9;scroll-margin-top:114px}#map{width:100%;height:100%}.map-tools{position:absolute;z-index:500;top:16px;right:16px;display:flex;gap:7px}.map-tools button{width:40px;height:40px;display:grid;place-items:center;background:#fff;border:1px solid #cbd6d0;border-radius:6px;color:#314b40;box-shadow:var(--shadow)}.map-tools button:hover{background:#f1f7f4}
.legend{position:absolute;z-index:500;right:16px;bottom:26px;background:#fffffff2;padding:10px 13px;border:1px solid #d2ded5;border-radius:6px;font-size:10px;color:#4c6255;line-height:1.8;pointer-events:none}.map-status{position:absolute;bottom:28px;left:54px;z-index:450;color:#766738;background:#fffcebeb;max-width:calc(100% - 90px);font-size:11px;padding:4px 7px;pointer-events:none;display:none}.map-status.loading,.map-status.failed{display:block}
.route-pin{width:30px;height:30px;display:grid;place-items:center;border:3px solid #fff;border-radius:50% 50% 50% 12%;color:#fff;transform:rotate(-45deg);box-shadow:0 2px 6px #163a2940;font-size:10px;font-weight:700}.route-pin span{transform:rotate(45deg)}
.emoji-pin{position:relative;width:36px;height:36px;display:grid;place-items:center;border:2px solid #fff;border-radius:7px;background:#fff;box-shadow:0 2px 6px #163a2940,0 0 0 2px var(--marker);font-size:20px}.order,.ticket{position:absolute;display:grid;place-items:center;border:2px solid #fff;border-radius:50%;box-shadow:var(--shadow)}.order{top:-7px;left:-7px;width:17px;height:17px;background:var(--marker);color:#fff;font-size:8px}.ticket{right:-8px;bottom:-7px;width:20px;height:20px;background:#fff4d6;font-size:11px;font-style:normal}.day-label{width:max-content;padding:2px 6px;border:2px solid #fff;border-radius:4px;color:#fff;font-size:9px;font-weight:700;transform:translate(-50%,-50%);box-shadow:var(--shadow)}
.leaflet-container{font:inherit}.leaflet-popup-content-wrapper{border-radius:6px}.leaflet-popup-content{max-width:260px!important}.popup-day{color:var(--green);font-size:10px}.popup-name{margin-top:4px;font-size:15px;font-weight:700;overflow-wrap:anywhere}.popup-en{color:var(--muted);font-size:11px;overflow-wrap:anywhere}.popup-note{margin-top:8px;font-size:12px;line-height:1.7;overflow-wrap:anywhere}.popup-booking{margin-top:8px;background:#fff8e9;padding:7px 9px;font-size:11px;color:#835f29}.popup-link{display:inline-block;margin-top:10px;font-size:11px}.leaflet-control-zoom a{color:#425b4e}.leaflet-control-attribution{font-size:9px!important}
.guide-page .topbar{position:sticky;top:0;z-index:100}.guide-page main{max-width:1060px;width:calc(100% - 48px);margin:0 auto;padding:30px 0 60px}.hero{padding:0 0 20px;border-bottom:1px solid var(--line);background:#fff;border-radius:0;box-shadow:none;color:var(--ink)}.hero h1{margin:0;font-size:32px;line-height:1.3}.hero-copy{font-size:14px;line-height:1.85;margin:9px 0 0;color:var(--muted)}.hero-facts{margin-top:24px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.hero-fact{min-width:0;background:none;border:0;padding:0}
.quick-nav{position:sticky;top:60px;z-index:90;display:flex;gap:8px;margin:0;padding:12px 0;background:#fffffff5;overflow-x:auto;border-bottom:1px solid var(--line)}.quick-nav a{display:flex;align-items:center;justify-content:center;min-width:55px;height:36px;padding:0 12px;border-radius:4px;background:#f2f5f3;text-decoration:none;font-size:12px;color:#40564a}.quick-nav a:hover{background:#e6eee9}.quick-nav .active{background:#276b58;color:white}
.section-heading{margin:26px 0 14px;display:flex;align-items:center;justify-content:space-between;gap:16px}.section-heading h2{font-size:20px;margin:0}.section-heading p{font-size:11px;color:var(--muted);margin:0}.booking-list{display:grid;grid-template-columns:1fr 1fr;gap:0 22px}.booking-card{padding:13px 0;background:#fff;border-bottom:1px solid var(--line);border-radius:0;min-width:0}.booking-card strong{display:block;font-size:13px;overflow-wrap:anywhere}.booking-card span{display:block;margin-top:5px;font-size:12px;color:var(--muted);line-height:1.85;overflow-wrap:anywhere}.booking-card a{display:inline-block;font-size:11px;margin-top:8px}.booking-card .unverified{font-size:11px;color:#a5683c}.empty{color:var(--muted);font-size:13px}
.day{margin:0;padding:26px 0 28px;background:none;border:0;border-top:1px solid var(--line);border-radius:0;box-shadow:none;scroll-margin-top:125px}.day-head{display:flex;gap:14px;align-items:flex-start}.day-title{min-width:0}.day-title p{margin:0 0 3px;font-size:11px;color:var(--muted)}.day-title h3{margin:0;font-size:22px;line-height:1.45}.day-body{padding:0}.day-body .summary{font-size:14px}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;padding:15px 0;border-bottom:1px solid var(--line);margin:15px 0 0}.day-body .metric strong{font-size:13px}
.schedule{display:grid;gap:0}.schedule-row{display:grid;grid-template-columns:112px minmax(0,1fr);gap:14px;padding:11px 0;border-bottom:1px solid #edf0ee;border-radius:0;background:none}.schedule-time{font-size:12px;color:var(--green);font-weight:600;overflow-wrap:anywhere}.schedule-copy{min-width:0}.schedule-copy strong{display:block;font-size:13px;line-height:1.6;overflow-wrap:anywhere}.schedule-copy span{display:block;font-size:12px;line-height:1.8;color:var(--muted);margin-top:3px;overflow-wrap:anywhere}
.stops{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.stop-card{min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:6px;background:#fff}.stop-card figure{margin:0}.stop-image{width:100%;aspect-ratio:16/10;display:block;object-fit:cover;background:#eef2f0}.stop-card figcaption{padding:5px 12px;border-bottom:1px solid var(--line);font-size:10px;color:var(--muted);line-height:1.8;overflow-wrap:anywhere}.stop-card figcaption a{font-size:10px}.image-fallback{display:flex;align-items:center;justify-content:center;aspect-ratio:16/10;padding:20px;background:#eef2f0;color:var(--muted);font-size:12px}
.stop-content{padding:14px}.stop-top{display:flex;align-items:flex-start;gap:10px}.stop-emoji{width:30px;height:30px;display:grid;place-items:center;flex-shrink:0;border-radius:4px;background:#f1f5f2;font-size:17px}.stop-title{min-width:0}.stop-title strong{display:block;font-size:14px;line-height:1.6;overflow-wrap:anywhere}.stop-title span{display:block;margin-top:1px;color:var(--muted);font-size:11px;white-space:normal;overflow-wrap:anywhere}.stop-note{margin:10px 0 0;font-size:12px;line-height:1.9;color:#5b6862}.flags{margin-top:11px;display:flex;gap:8px;flex-wrap:wrap}.flag{font-size:10px;background:#f1f5f2;padding:2px 6px;border-radius:3px}.flag.ticket{position:static;display:inline;border:0;border-radius:3px;box-shadow:none;width:auto;height:auto;background:#fff5df;color:#815e28}.flag.optional{background:#f4f2ed;color:#796f58}.stop-links,.sources{display:flex;flex-wrap:wrap;gap:8px 14px;margin-top:11px}.stop-links a,.sources a{font-size:11px;overflow-wrap:anywhere}.sources{padding-top:8px}.footer{margin-top:25px;padding:16px 0;border-top:1px solid var(--line);font-size:11px;color:var(--muted);line-height:1.9}.notes-section{margin:24px 0;padding:15px 0;border-block:1px solid var(--line)}.notes-section h2{font-size:18px;margin:0 0 9px}.notes-section ul{margin:0;padding-left:20px;font-size:12px;line-height:1.9;color:var(--muted)}
.map-page .schedule-row{grid-template-columns:86px minmax(0,1fr);gap:12px}.map-page .schedule-time{font-size:10px}.map-page .schedule-copy strong,.map-page .schedule-copy span{font-size:11px}
@media(max-width:820px){
  .map-wrap.popup-open .map-tools{visibility:hidden}
  .map-page{height:auto;overflow:auto}.topbar{padding:0 12px;height:60px;gap:9px}.title-wrap h1,.top-title strong{font-size:16px}.title-wrap p{font-size:10px;max-width:185px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.guide-link,.map-link{font-size:12px;padding:0 7px;gap:5px}.guide-link svg,.map-link svg{width:17px;height:17px}.brand{width:32px;height:32px}
  .map-page .topbar{position:sticky;top:0;z-index:700}.day-nav{position:sticky;top:60px;z-index:700;height:48px;padding:0 10px}.day-button{min-width:56px;height:36px;padding:0 10px;font-size:12px}.app{height:auto;display:flex;flex-direction:column}.map-wrap{order:1;height:50svh;min-height:320px;max-height:440px;scroll-margin-top:108px}.panel{order:2;width:100%;overflow:visible;border:0}.intro{padding:18px 18px 12px}.intro h2{font-size:23px}.facts{grid-template-columns:1fr 1fr;gap:15px}.fact strong{font-size:12px}.version-note{margin-top:10px}#detail{padding:18px 18px 28px}.map-tools{top:12px;right:12px}.map-tools button{width:36px;height:36px}.legend{display:none}.map-status{font-size:10px;bottom:23px;left:48px}
  .guide-page main{width:calc(100% - 32px);padding:22px 0 40px}.hero h1{font-size:28px}.hero-copy{font-size:13px}.hero-facts,.metrics{grid-template-columns:1fr 1fr;gap:15px}.hero-fact strong{font-size:12px}.quick-nav{gap:6px;padding:10px 0}.section-heading{align-items:flex-start;flex-direction:column;gap:4px}.section-heading h2{font-size:18px}.booking-list,.stops{grid-template-columns:1fr}.day-title h3{font-size:20px}.day-body .summary{font-size:13px}.schedule-row{grid-template-columns:85px minmax(0,1fr);gap:12px}.schedule-time{font-size:11px}.day{scroll-margin-top:117px}.stop-image{aspect-ratio:16/11}.notes-section ul{font-size:12px}
}
@media(max-width:360px){.topbar{gap:7px}.guide-link span,.map-link span{font-size:11px}.title-wrap h1{font-size:15px}.title-wrap p{max-width:145px;font-size:9px}.guide-link svg{display:none}.fact strong{font-size:11px}.map-page .schedule-row{grid-template-columns:75px minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
@media print{.topbar,.quick-nav,.map-page{display:none!important}.guide-page main{width:100%;padding:0}.day{break-inside:auto}.stop-card,.schedule-row,.booking-card{break-inside:avoid}.stop-image{max-height:220px;object-fit:contain}.hero{border-bottom:1px solid #888}.notes-section ul{color:#333}a{color:#333}.day{scroll-margin-top:0}}
