:root{--map-fast:#24aa1d;--map-normal:#42dd3f;--map-warm:#bef663;--map-warning:#f6ed44;--map-slow:#f69833;--map-failed:#e61610;--map-empty:#eee}
.latency-map-panel{padding:24px;margin:22px 0}.latency-map-panel .section-title{margin-bottom:8px}
.latency-map-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:24px;align-items:center}.latency-map-canvas{min-width:0}
.china-latency-map{display:block;width:100%;height:auto;max-height:520px;overflow:visible}
.map-provinces path{fill:var(--map-fast);stroke:#fff;stroke-width:.8;vector-effect:non-scaling-stroke;cursor:pointer;transition:fill .15s}
.map-provinces path[data-state=fast],.map-diaoyu-callout[data-state=fast],.map-legend i[data-state=fast]{fill:var(--map-fast);background:var(--map-fast)}
.map-provinces path[data-state=normal],.map-diaoyu-callout[data-state=normal],.map-legend i[data-state=normal]{fill:var(--map-normal);background:var(--map-normal)}
.map-provinces path[data-state=warm],.map-diaoyu-callout[data-state=warm],.map-legend i[data-state=warm]{fill:var(--map-warm);background:var(--map-warm)}
.map-provinces path[data-state=warning],.map-diaoyu-callout[data-state=warning],.map-legend i[data-state=warning]{fill:var(--map-warning);background:var(--map-warning)}
.map-provinces path[data-state=slow],.map-diaoyu-callout[data-state=slow],.map-legend i[data-state=slow]{fill:var(--map-slow);background:var(--map-slow)}
.map-provinces path[data-state=failed],.map-diaoyu-callout[data-state=failed],.map-legend i[data-state=failed]{fill:var(--map-failed);background:var(--map-failed)}
.map-provinces path[data-state=empty],.map-diaoyu-callout[data-state=empty],.map-legend i[data-state=empty]{fill:var(--map-empty);background:var(--map-empty)}
.map-south-sea{fill:var(--map-fast)}.map-south-sea[data-state=empty]{fill:var(--map-empty)}
.map-provinces path[data-state=geographic],.map-diaoyu-callout[data-state=geographic]{fill:var(--map-fast)}
.map-provinces path:hover,.map-provinces path:focus,.map-provinces path[aria-pressed=true]{stroke:var(--accent);stroke-width:2.4;outline:none}
.map-labels{pointer-events:none}.map-labels text{fill:var(--ink);font:18px 'Microsoft YaHei',sans-serif;paint-order:stroke;stroke:var(--panel);stroke-width:3px;stroke-linejoin:round}.map-label-leader{stroke:var(--muted);stroke-width:1;fill:none}
.latency-map-detail{padding:22px;background:var(--bg);border:1px solid var(--line);border-radius:10px;min-width:0}.map-detail-eyebrow{font-size:14px;color:var(--muted)}
.latency-map-detail h3{font-size:23px;margin:8px 0 12px}.latency-map-detail p{font-size:14px;color:var(--muted);line-height:1.8;margin:0 0 16px}
.map-region-stats{margin:18px 0}.map-region-stats>div{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 0;border-bottom:1px solid var(--line)}
.map-region-stats dt{font-size:15px;color:var(--muted)}.map-region-stats dd{margin:0;font-size:18px;font-weight:600;white-space:nowrap}.latency-map-detail .map-note{margin:18px 0 0;font-size:14px}
.map-legend{display:flex;justify-content:center;align-items:center;gap:12px 20px;flex-wrap:wrap;margin:14px 0}.map-legend span{display:inline-flex;align-items:center;gap:7px;font-size:14px;color:var(--muted)}
.map-legend i{width:16px;height:12px;border-radius:3px;border:1px solid var(--line);background:var(--soft)}.map-footnote{border-top:1px solid var(--line);padding-top:15px;margin:16px 0 0;font-size:14px;color:var(--muted)}
@media(max-width:1180px) and (min-width:981px){.latency-map-layout{grid-template-columns:minmax(0,1fr) 235px;gap:14px}}
.map-mobile-hint{display:none}html[data-theme=terminal] .latency-map-layout{grid-template-columns:1fr}
@media(max-width:1180px){.latency-map-layout{grid-template-columns:1fr}.latency-map-detail{display:grid;grid-template-columns:1fr 1fr;gap:0 24px}.latency-map-detail h3{grid-column:1}.latency-map-detail>p{grid-column:1}.latency-map-detail .map-note{grid-column:1/-1}.map-region-stats{grid-column:2;grid-row:1/5;margin:0}.latency-map-detail>.button{justify-self:start}}
@media(max-width:760px){.latency-map-panel{padding:18px 12px}.latency-map-panel .section-title{padding:0 4px}.latency-map-panel .section-title h2{font-size:19px}.latency-map-panel .section-title small{display:none}.latency-map-panel .section-title>.button{padding:7px 11px}.latency-map-detail{display:block;padding:18px}.map-region-stats{margin:10px 0}.map-region-stats>div{padding:9px 0}.latency-map-canvas{overflow-x:auto;overscroll-behavior-x:contain}.china-latency-map{min-width:760px;max-height:none}.map-labels text{font-size:18px;stroke-width:3px}.map-legend{justify-content:flex-start;gap:9px 12px}.map-mobile-hint{display:block;margin-top:6px}}
@media(prefers-reduced-motion:reduce){.map-provinces path{transition:none}}
.reference-ping-page .ping-map-card{background:#fff;color:#333;--ink:#253246;--muted:#707781;--panel:#fff;--line:#e7ebef}
.reference-ping-page .ping-map-toolbar{min-height:44px;padding:13px 23px 0;gap:12px;align-items:center}
.ping-map-brand{display:inline-flex;align-items:center;gap:4px;text-decoration:none;color:#3569b8;flex:none;line-height:1}
.ping-map-brand img{width:22px;height:22px}.ping-map-brand span{display:flex;flex-direction:column;gap:3px}.ping-map-brand b{font-size:16px;font-weight:800;letter-spacing:.02em}.ping-map-brand small{font-size:8px;font-weight:700;letter-spacing:.04em}
.ping-map-actions{display:flex;align-items:center;gap:12px;margin-left:auto}.ping-label-switch{display:inline-flex;align-items:center;gap:7px;border:0;background:none;color:#9199a3;padding:4px 0;cursor:pointer;font-size:12px;line-height:1.5}
.ping-label-switch i{position:relative;width:26px;height:12px;border-radius:10px;background:#dce2e9}.ping-label-switch i:before{content:'';position:absolute;width:14px;height:14px;top:-1px;left:0;border-radius:50%;background:#a9b4c0;transition:transform .15s}
.ping-label-switch[aria-checked=true] i{background:#b7d2ff}.ping-label-switch[aria-checked=true] i:before{background:#326cf3;transform:translateX(12px)}.ping-label-switch:focus-visible{outline:2px solid #326cf3;outline-offset:3px}
.ping-map-stage{position:relative;isolation:isolate}.reference-ping-page .ping-map-card .latency-map-canvas{padding:0;overflow:visible}
.reference-ping-page .ping-map-card .china-latency-map{display:block;min-width:0;width:100%;height:auto;max-height:none}
.reference-ping-page .ping-map-card .map-labels{display:none}.reference-ping-page .ping-map-card[data-labels=true] .map-labels{display:block}.reference-ping-page .ping-map-card .map-labels text{font-size:18px;fill:#18394b;stroke:#fff;stroke-width:2.4px}
.reference-ping-page .ping-map-card .ping-map-legend{position:absolute;z-index:1;left:30px;bottom:24px;display:flex;flex-direction:column;align-items:flex-start;gap:6px;margin:0;pointer-events:none}
.reference-ping-page .ping-map-legend span{gap:9px;color:#444;font-size:12px;line-height:17px;white-space:nowrap}.reference-ping-page .ping-map-legend i{width:19px;height:13px;border:0;border-radius:3px;flex:none}
.ping-response-time[data-state=warning]{color:#937500}
@media(max-width:678px){.reference-ping-page .ping-map-toolbar{padding:12px 16px 0;min-height:41px}.reference-ping-page .ping-map-card .ping-map-stage{padding-bottom:96px}.reference-ping-page .ping-map-card .ping-map-legend{left:16px;bottom:16px;gap:4px}.reference-ping-page .ping-map-legend span{font-size:12px;line-height:17px;gap:7px}.reference-ping-page .ping-map-legend i{width:15px;height:11px;border-radius:2px}.ping-map-brand b{font-size:14px}.ping-map-brand small{font-size:7px}.ping-map-brand img{width:21px;height:21px}}

.map-diaoyu-callout{fill:var(--map-fast);cursor:pointer}.map-diaoyu-callout circle{stroke:#fff;stroke-width:1;vector-effect:non-scaling-stroke}.map-diaoyu-leader{stroke:#50775a;stroke-width:.7;fill:none;vector-effect:non-scaling-stroke}.map-diaoyu-callout text{fill:#254233;stroke:#fff;stroke-width:2.5px;paint-order:stroke;stroke-linejoin:round;font:18px "Microsoft YaHei",sans-serif}.map-diaoyu-callout:focus-visible{outline:none}.map-diaoyu-callout:focus-visible text,.map-diaoyu-callout[aria-pressed=true] text{fill:#326cf3;font-weight:700}@media(max-width:678px){.map-diaoyu-callout text{font-size:30px}}
