html,body,#loading{background:#f1f5fb;color:#172c49;font-family:system-ui,-apple-system,'Microsoft YaHei',sans-serif}
#header,#panel,#infoCard,#crumb2,#mapLegend,#panelToggle{background:#fff;border:1px solid #dce5f1;border-radius:16px;box-shadow:0 8px 28px rgba(30,64,110,.08)}
#header{padding:16px 20px}#header h1,#panel h1,#panel h2,#infoCard h2,#infoCard .cityline,#infoCard .party,.rank .row,#crumb2{color:#172c49}
#dataSummary,#rankScope,#panel .sub,#panel .note,#stats,#timeCtl label,#infoCard .break,#infoCard .sec,#infoCard .party .t,#mapLegend .help,#sourceNote,#versionTag{color:#71839b}
#stats b,#panel .stat b,#infoCard h2 em,#infoCard .cityline b,.rank .row b,#crumb2 b{color:#e8752b}
#panel .stat,#segCtl{background:#edf3fc}#segCtl button,#panelToggle,#timeCtl select{color:#315582;font-family:inherit}
#segCtl .ind{background:#315ca5;box-shadow:0 2px 8px rgba(49,92,165,.18)}#segCtl button.active{color:#fff}
#timeCtl select{border-color:#dce5f1;border-radius:9px}#backBtn,.enter{background:#ed762d;box-shadow:none;border-radius:9px}
.rank:hover,#infoCard .cityline:hover{background:#edf3fc}.rank .bar{background:#e4edf7}.rank .bar i{background:linear-gradient(90deg,#91b6e5,#315ca5)}
.chip.live{background:#ed762d}.chip.soon{background:#315ca5}.chip.done{background:#8da6c4}
#mapLegend span:nth-child(1) i{background:#ed762d!important}#mapLegend span:nth-child(2) i{background:#315ca5!important}#mapLegend span:nth-child(3) i{background:#8da6c4!important}
button:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #ed762d;outline-offset:3px}
@media(max-width:600px){#header{padding:10px;border-radius:12px}#panel,#infoCard{border-radius:12px}#panelToggle{border-radius:9px}}
#header{top:0;left:0;right:0;border-radius:0 0 16px 16px}#siteMapNav{position:absolute;top:calc(var(--map-header-bottom,150px) + 8px);left:16px;right:16px;z-index:1200;display:flex;gap:24px;align-items:center;padding:10px 16px;background:#fff;border:1px solid #dce5f1;border-radius:12px;color:#172c49;font-size:13px}#siteMapNav a{color:#315ca5}#panelToggle,#topCenter{top:calc(var(--map-header-bottom,150px) + 65px)}#panel,#infoCard{top:calc(var(--map-header-bottom,150px) + 110px);max-height:calc(100dvh - var(--map-header-bottom,150px) - 175px)}@media(max-width:600px){#header{top:0;left:0;right:0}#siteMapNav{left:8px;right:8px;gap:14px;padding:9px;font-size:12px}}
#header{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:24px 28px 16px}#header .brand{grid-column:1/-1;text-align:center;padding:0 100px}#header h1{font-size:24px;letter-spacing:.04em}#dataSummary{margin-top:8px;font-size:12px}#timeCtl{grid-column:1;grid-row:2;margin-left:0;justify-self:end}#segCtl{grid-column:2;grid-row:2;width:310px;justify-self:start}#stats{grid-column:1/-1;grid-row:3;justify-content:center;border-top:1px solid #e5edf7;padding-top:12px;gap:32px}#stats b{font-size:23px}#siteMapNav{top:16px;left:20px;right:20px;background:transparent;border:0;border-radius:0;padding:0;box-shadow:none;justify-content:space-between;pointer-events:none}#siteMapNav a{pointer-events:auto;text-decoration:none;padding:8px 12px;border-radius:9px;background:#f0f5fc;font-size:12px}#panelToggle,#topCenter{top:calc(var(--map-header-bottom,200px) + 14px)}#panel,#infoCard{top:calc(var(--map-header-bottom,200px) + 60px)}#sourceNote{left:16px;right:auto;bottom:14px;max-width:none;text-align:left;background:transparent;padding:0;font-size:11px}#snapshotNote{display:inline-block;margin-left:18px}#versionTag{right:16px;bottom:14px;background:transparent;text-align:right;font-size:10px}#mapLegend{bottom:70px}#coverageNote{display:none!important}
@media(max-width:700px){#header{grid-template-columns:1fr;padding:52px 12px 12px;gap:10px}#header .brand{width:auto;padding:0}#header h1{font-size:20px}#timeCtl{grid-column:1;grid-row:2;width:auto;justify-self:center}#segCtl{grid-column:1;grid-row:3;width:min(100%,330px);justify-self:center}#stats{grid-row:4;width:auto;gap:24px}#siteMapNav{top:9px;left:12px;right:12px}#mapLegend{bottom:102px}#sourceNote{bottom:54px;left:12px;right:12px;font-size:10px}#versionTag{bottom:12px;left:12px;right:12px;text-align:left}#snapshotNote{margin-left:12px}}
#chart{position:absolute;top:calc(var(--map-header-bottom,180px) + 54px);bottom:118px;width:100%;height:calc(100dvh - var(--map-header-bottom,180px) - 172px)}#header{grid-template-columns:1fr;gap:10px;padding:20px 24px 12px}#header .brand{grid-row:1}#stats{grid-row:2;border-top:0;padding-top:0}#segCtl{grid-row:3;grid-column:1;justify-self:center}#timeDrawer{position:absolute;z-index:1250;top:calc(var(--map-header-bottom,180px) + 12px);left:16px;background:#fff;border:1px solid #dce5f1;border-radius:12px;box-shadow:0 6px 20px rgba(30,64,110,.08);font-size:13px;color:#315582}#timeDrawer summary{cursor:pointer;padding:10px 16px}#timeDrawerBody{padding:4px 14px 14px}#timeDrawer #timeCtl{display:flex;flex-wrap:wrap;gap:8px;width:auto;margin:0;max-width:300px}#panelToggle{left:126px;top:calc(var(--map-header-bottom,180px) + 12px)}#panel{top:calc(var(--map-header-bottom,180px) + 62px)}@media(max-width:700px){#header{padding:48px 12px 10px;gap:8px}#header .brand{grid-row:1}#stats{grid-row:2;gap:20px}#segCtl{grid-row:3}#timeDrawer{left:10px}#panelToggle{left:116px}#chart{bottom:136px;height:calc(100dvh - var(--map-header-bottom,200px) - 190px)}#timeDrawerBody{max-width:280px}#stats b{font-size:20px}}
#header{padding-bottom:16px}#mapLeftControls{position:absolute;left:16px;top:calc(var(--map-header-bottom,140px) + 14px);width:250px;z-index:1250;max-height:calc(100dvh - var(--map-header-bottom,140px) - 155px);overflow:auto;scrollbar-width:thin}#mapLeftControls #timeDrawer,#mapLeftControls #panelToggle,#mapLeftControls #panel{position:static;width:100%;box-sizing:border-box;margin:0 0 10px;max-height:none}#mapLeftControls #panelToggle{text-align:left}#mapLeftControls #panel{padding:14px}#mapLeftControls #timeCtl{max-width:100%}body>#segCtl{position:absolute;top:calc(var(--map-header-bottom,140px) + 14px);right:16px;width:340px;z-index:1200;border:1px solid #dce5f1;border-radius:12px;box-shadow:0 4px 18px rgba(30,64,110,.08)}#segCtl .ind{width:calc((100% - 8px)/4)}#chart{top:calc(var(--map-header-bottom,140px) + 72px);height:calc(100dvh - var(--map-header-bottom,140px) - 190px)}
@media(max-width:700px){#mapLeftControls{left:10px;width:min(220px,calc(100vw - 125px));max-height:calc(100dvh - var(--map-header-bottom,140px) - 160px)}body>#segCtl{right:10px;width:94px;display:flex;flex-direction:column;gap:3px;padding:5px}#segCtl .ind{display:none}#segCtl button{padding:9px 4px;border-radius:7px;min-height:36px}#segCtl button.active{background:#315ca5;color:white}#chart{top:calc(var(--map-header-bottom,140px) + 170px);height:calc(100dvh - var(--map-header-bottom,140px) - 300px)}#mapLeftControls #timeCtl{flex-direction:column;align-items:stretch}#mapLeftControls #timeCtl label{font-size:11px}#mapLeftControls #timeDrawerBody{padding:4px 10px 10px}}
#mapLeftControls #timeDrawer{padding:0;box-shadow:none}#timeDrawer>summary,#timeCtl label,#timeCtl #thisMonth{display:none}#mapLeftControls #timeDrawerBody{padding:0}#mapLeftControls #timeCtl{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:0;width:100%;max-width:none}#timeCtl select{min-width:0;flex:1;border:0;border-radius:12px;padding:11px 10px;background:transparent;font-size:14px}#timeCtl #monthSelect{border-left:1px solid #e0e8f3;border-radius:0 12px 12px 0}#timeCtl #yearSelect{border-radius:12px 0 0 12px}
#timeCtl select:focus{outline:none;box-shadow:inset 0 0 0 2px #c7d8ed}#timeCtl select:focus-visible{outline:2px solid #315ca5;outline-offset:-3px}#mapSummary{position:absolute;left:50%;transform:translateX(-50%);bottom:116px;z-index:1100;display:flex;flex-direction:column;align-items:center;gap:12px;padding:14px 24px;background:rgba(255,255,255,.96);border:1px solid #e0e8f3;border-radius:16px;box-shadow:0 6px 22px rgba(30,64,110,.06)}#mapSummary #stats{display:flex;width:auto;gap:28px;margin:0;padding:0;border:0;justify-content:center;white-space:nowrap}#mapSummary #segCtl{position:relative;inset:auto;display:flex;flex-direction:row;width:340px;max-width:100%;padding:4px;gap:0;box-shadow:none;border:0;justify-self:auto}#mapSummary #segCtl button{flex:1;padding:8px 0;min-height:34px}#mapSummary #segCtl .ind{display:block;width:calc((100% - 8px)/4)}#mapSummary #segCtl button.active{background:transparent}#chart{top:calc(var(--map-header-bottom,100px) + 60px);bottom:240px;height:calc(100dvh - var(--map-header-bottom,100px) - 300px)}#mapLegend{bottom:42px;max-width:410px;padding:6px 10px}.legend .help{display:none}
@media(max-width:700px){#mapSummary{bottom:128px;padding:12px;gap:10px;width:calc(100% - 48px);box-sizing:border-box}#mapSummary #stats{gap:22px}#mapSummary #segCtl{width:100%;min-width:0}#mapSummary #segCtl .ind{display:block}#chart{top:calc(var(--map-header-bottom,100px) + 108px);bottom:248px;height:calc(100dvh - var(--map-header-bottom,100px) - 356px)}#mapLegend{bottom:92px;font-size:9px;padding:5px 8px}#mapLeftControls{max-height:calc(100dvh - var(--map-header-bottom,100px) - 270px)}}
#chart{top:calc(var(--map-header-bottom,90px) + 106px);bottom:190px;height:calc(100dvh - var(--map-header-bottom,90px) - 296px)}#mapSummary{bottom:68px;padding:12px 24px;gap:10px}#mapLegend{bottom:14px;left:50%;transform:translateX(-50%);margin:0;padding:4px 10px;font-size:10px}#sourceNote{bottom:14px;left:12px}#versionTag{bottom:12px;right:12px}#mapLeftControls{width:220px;max-height:calc(100dvh - var(--map-header-bottom,90px) - 220px)}
@media(max-width:700px){#chart{top:calc(var(--map-header-bottom,140px) + 106px);bottom:242px;height:calc(100dvh - var(--map-header-bottom,140px) - 348px)}#mapSummary{bottom:130px;padding:10px 12px;gap:8px}#mapLegend{bottom:92px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 36px)}#sourceNote{bottom:60px;left:12px}#versionTag{bottom:14px;left:12px;right:12px}#mapLeftControls{width:190px}#snapshotNote{margin-left:10px}}
#header{background:transparent;border:0;box-shadow:none;border-radius:0;padding:14px 20px 8px;gap:4px}#header h1{font-size:22px}#dataSummary{margin-top:5px}#mapSummary{bottom:48px;padding:0;background:transparent;border:0;box-shadow:none;gap:7px}#mapSummary #stats{gap:30px}#mapSummary #segCtl{width:330px;background:rgba(255,255,255,.92);border:1px solid #dce5f1}#mapLegend{display:none}#chart{top:calc(var(--map-header-bottom,75px) + 12px);bottom:142px;height:calc(100dvh - var(--map-header-bottom,75px) - 154px);left:0;right:0;width:100%}#mapLeftControls{left:14px;top:calc(var(--map-header-bottom,75px) + 12px);width:176px}#mapLeftControls #timeDrawer,#mapLeftControls #panelToggle{box-shadow:none;background:rgba(255,255,255,.94)}#mapLeftControls #timeDrawer{margin-bottom:7px}#mapLeftControls #timeCtl select{padding:8px 6px;font-size:12px}#mapLeftControls #panelToggle{padding:8px 12px;font-size:12px}
@media(max-width:700px){#header{padding:44px 8px 5px}#header h1{font-size:19px}#dataSummary{font-size:10px}#mapLeftControls{top:calc(var(--map-header-bottom,95px) + 8px);left:10px;width:150px}#mapSummary{bottom:102px;width:calc(100% - 32px);padding:0;gap:7px}#mapSummary #stats{gap:24px}#mapSummary #segCtl{width:100%;max-width:330px}#chart{top:calc(var(--map-header-bottom,95px) + 12px);bottom:190px;height:calc(100dvh - var(--map-header-bottom,95px) - 202px)}#sourceNote{bottom:56px}#versionTag{bottom:12px}}
#chart{top:calc(var(--map-header-bottom,75px) + 12px);bottom:132px;height:calc(100dvh - var(--map-header-bottom,75px) - 144px)}@media(max-width:700px){#chart{top:calc(var(--map-header-bottom,95px) + 84px);bottom:184px;height:calc(100dvh - var(--map-header-bottom,95px) - 268px)}}
