:root{--ink:#14232f;--land:#b7c4b7;--accent:#1d5f8a;--bg:#f7fafc;--slate:#4a6385;--orange:#f08a1a}
*{box-sizing:border-box}html,body{margin:0}
body{font:15px/1.4 Arial,Helvetica,system-ui,"Noto Sans SC",sans-serif;color:var(--ink);background:var(--bg);padding-bottom:env(safe-area-inset-bottom)}
header{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:10px 12px;background:var(--accent);color:#fff}
h1{margin:0;font-size:19px}.brand p{margin:0;font-size:12px;opacity:.9}
.lang{display:flex;gap:4px}.lang button{border:1px solid #ffffff88;background:transparent;color:#fff;border-radius:6px;padding:6px 9px;font-size:13px;min-height:34px}
.lang button.on{background:#fff;color:var(--accent);font-weight:600}
.controls{max-width:960px;margin:8px auto 0;padding:0 8px}
.tabs{display:flex;gap:2px;border-bottom:1px solid #cdd7e0;overflow-x:auto;scrollbar-width:none}
.tab{flex:0 0 auto;border:1px solid #cdd7e0;border-bottom:0;background:#e9eff4;color:var(--slate);font-weight:700;border-radius:8px 8px 0 0;padding:9px 14px;font-size:14px;min-height:40px}
.tab.on{background:#fff;color:var(--orange);position:relative;top:1px}
.tools{display:flex;flex-wrap:wrap;gap:6px;align-items:center;padding:8px 0 4px}
.chip{border:1px solid #b9ccd8;background:#fff;color:var(--ink);border-radius:999px;padding:7px 13px;font-size:14px;min-height:36px}
.chip.on{background:var(--accent);border-color:var(--accent);color:#fff}.chip.ghost{border-style:dashed}
#find{flex:1 1 150px;min-width:130px;min-height:36px;border:1px solid #b9ccd8;border-radius:8px;padding:6px 10px;font-size:14px}
main{display:block;position:relative;max-width:960px;margin:0 auto}
.mapwrap{position:relative;margin:0 8px;background:#fff;border:1px solid #cdd7e0;border-radius:0 0 10px 10px;overflow:hidden}
#map{width:min(100%,calc((100vh - 250px) * 482 / 350));min-width:min(100%,300px);height:auto;display:block;margin:0 auto;user-select:none;-webkit-user-select:none;touch-action:pan-y}
.sea{fill:#fff}.land{fill:var(--land);stroke:#fff;stroke-width:.8;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.maptitle{position:absolute;right:10px;bottom:8px;text-align:right;font-weight:700;color:var(--slate);font-size:15px;line-height:1.2;pointer-events:none;text-shadow:0 0 3px #fff,0 0 3px #fff}
.status{position:absolute;left:8px;bottom:8px;background:#ffffffe6;border-radius:6px;padding:3px 8px;font-size:12px;max-width:70%}.status:empty{display:none}
.zoom{position:absolute;left:8px;top:8px;display:flex;flex-direction:column;gap:4px}
.zoom button{width:36px;height:36px;border:1px solid #b9ccd8;background:#fff;border-radius:8px;font-size:20px;line-height:1;color:var(--slate)}
.town{cursor:pointer}.town text{font-family:Arial,Helvetica,sans-serif;font-weight:700}
.town .t{fill:#b11116;paint-order:stroke;stroke:#fff;stroke-width:3px;stroke-linejoin:round}.town .t.cold{fill:#1b4f9c}
.town .w{fill:#000;paint-order:stroke;stroke:#fff;stroke-width:3px;stroke-linejoin:round}
.town .nm{fill:#33475b;font-weight:600;paint-order:stroke;stroke:#fff;stroke-width:3px;stroke-linejoin:round}
.town .hit{fill:transparent}.town.sel .hit{fill:#ffe48a;fill-opacity:.7;stroke:#c99a00;stroke-width:1}
.town.near .hit{fill:#d6ecff;fill-opacity:.8}
.town:focus-visible .hit{stroke:#1d5f8a;stroke-width:2;fill:#fff3b0}
.tip{position:absolute;z-index:5;pointer-events:none;background:#f1f1f1;border:1px solid #9aa;box-shadow:0 2px 8px #0003;font-size:13px;min-width:190px;max-width:260px}
.tip h4{margin:0;padding:5px 8px;font-size:14px;background:#fff;border-bottom:1px solid #ccc}
.tip div{padding:2px 8px;border-bottom:1px solid #ddd}.tip div:last-child{border:0}
.roadslegend{display:flex;flex-wrap:wrap;gap:4px 14px;margin:6px 8px 0;font-size:13px}
.roadslegend span{display:flex;align-items:center;gap:6px}.roadslegend i{display:inline-block;width:20px;height:0;border-top:4px solid}
.detail{margin:8px 8px 0;background:#fff;border:1px solid #d3e0e8;border-radius:10px;padding:10px 12px;overflow-x:auto}
.detail h3{margin:0 0 2px;font-size:17px}.detail .now{display:flex;align-items:center;gap:10px}
.detail table{width:100%;min-width:420px;border-collapse:collapse;font-size:13px;margin-top:6px}
.detail td,.detail th{padding:3px 4px;text-align:center;border-bottom:1px solid #eef3f6}.detail th{font-weight:600;color:#566}
.detail .x{float:right;border:0;background:#eef3f6;border-radius:6px;padding:5px 10px}
.timebar{padding:8px 12px 6px;max-width:960px;margin:0 auto;position:sticky;bottom:0;background:#f7fafcf5;backdrop-filter:blur(4px);border-top:1px solid #dbe6ec;z-index:3}
.days{display:flex;gap:2px;overflow-x:auto;padding-bottom:2px;scrollbar-width:none}
.days button{flex:0 0 auto;border:0;background:transparent;color:#1f4f8a;text-decoration:underline;font-size:13px;padding:6px 8px;min-height:32px}
.days button.on{color:var(--orange);font-weight:700}
.slider{display:flex;align-items:flex-start;gap:4px}
.step{flex:0 0 auto;width:34px;height:34px;border:1px solid #b9ccd8;background:#fff;border-radius:6px;font-size:13px;color:var(--slate)}
.track{flex:1;position:relative;min-width:0}
input[type=range]{width:100%;height:34px;margin:0;accent-color:var(--accent)}
.ticks{position:relative;height:16px;font-size:10px;color:#6a7c8a}
.ticks span{position:absolute;transform:translateX(-50%);white-space:nowrap}
.legend,footer{max-width:960px;margin:0 auto;padding:10px 12px}
.legend h2{font-size:14px;margin:4px 0}#legend{display:flex;flex-wrap:wrap;gap:6px 14px}
.lg{display:flex;align-items:center;gap:6px;font-size:13px}
footer{font-size:12.5px;color:#34475a;border-top:1px solid #e2ebf0}footer p{margin:6px 0}.muted{color:#6a7c8a}footer a{color:var(--accent)}

.rd{fill:none;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.rd-ok{stroke:#2e9b46;stroke-opacity:.65;stroke-width:1.3}.rd-slip{stroke:#e6b800;stroke-width:2.4}
.rd-snow{stroke:#f08a1a;stroke-width:2.6}.rd-bad{stroke:#d6262c;stroke-width:2.8}
.rd-none{stroke:#8a8f94;stroke-width:1.2;stroke-dasharray:3 3}
.strip{display:flex;gap:0;overflow-x:auto;margin-top:8px;border:1px solid #e3ecf1;border-radius:8px;scrollbar-width:thin}
.strip .h{flex:0 0 54px;text-align:center;padding:4px 0;border-right:1px solid #eef3f6;font-size:12px}
.strip .h:last-child{border:0}.strip .h b{display:block;font-size:14px}.strip .h .hh{color:#566;font-size:11px}
.strip .h.day{background:#f1f6fa}.strip .h svg{display:block;margin:2px auto}
.strip .h .p{color:#2a78c4}.strip .h .p.z{color:#9aa}
.warnbar{margin:6px 8px 0;font-size:13px;border:1px solid #e3c36a;background:#fff8e0;border-radius:8px;padding:6px 10px}
.warnbar.none{border-color:#d3e0e8;background:#f3f8fb;color:#566}.warnbar div{margin:2px 0}.warnbar i{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:6px;vertical-align:-1px}
.wz{stroke-width:1.6;vector-effect:non-scaling-stroke;fill-opacity:.2;pointer-events:none}
