:root {
--wx-rain: #2f80d6;
--t-b5: #0d366b; --t-b4: #184f95; --t-b3: #256abf; --t-b2: #4f92e3; --t-b1: #7cafee;
--t-n: #cbc5b9;
--t-r1: #f0956c; --t-r2: #e57349; --t-r3: #c3462f; --t-r4: #962a22; --t-r5: #651519;
--t-na: #e5e1d8;
--t-dark-ink: #1b1a17; --t-light-ink: #ffffff;
}
:root[data-theme="dark"] {
--wx-rain: #6fb0f5;
--t-b5: #c4dcfa; --t-b4: #93bff4; --t-b3: #629de9; --t-b2: #4580cc; --t-b1: #36639c;
--t-n: #4a4740;
--t-r1: #8e4a31; --t-r2: #bb5a36; --t-r3: #e2704a; --t-r4: #f3966f; --t-r5: #f9c0a3;
--t-na: #302e29;
--t-dark-ink: #141412; --t-light-ink: #ffffff;
}
.t-b5, .t-b4, .t-b3, .t-r3, .t-r4, .t-r5 { --t-ink: var(--t-light-ink); }
.t-b2, .t-b1, .t-n, .t-r1, .t-r2, .t-na { --t-ink: var(--t-dark-ink); }
:root[data-theme="dark"] :is(.t-b5, .t-b4, .t-b3, .t-b2, .t-r3, .t-r4, .t-r5) { --t-ink: var(--t-dark-ink); }
:root[data-theme="dark"] :is(.t-b1, .t-n, .t-r1, .t-r2, .t-na) { --t-ink: var(--t-light-ink); }
.t-b5 { --t: var(--t-b5); } .t-b4 { --t: var(--t-b4); } .t-b3 { --t: var(--t-b3); } .t-b2 { --t: var(--t-b2); }
.t-b1 { --t: var(--t-b1); } .t-n { --t: var(--t-n); } .t-r1 { --t: var(--t-r1); } .t-r2 { --t: var(--t-r2); }
.t-r3 { --t: var(--t-r3); } .t-r4 { --t: var(--t-r4); } .t-r5 { --t: var(--t-r5); } .t-na { --t: var(--t-na); }
.wxi { width: 2.4rem; height: 2.4rem; flex: none; }
.wxl-rain svg, .wxleg-g { display: inline-block; }
.wx-title { font-size: var(--fs-xl); margin: 0 0 1.1rem; }
.wx-lede { margin: 0 0 1rem; line-height: 2; color: var(--text-2); }
.wx-lede a, .wx-source a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; }
.wx-hero { display: grid; gap: 1.25rem 2.25rem; align-items: start; }
@media (min-width: 880px) { .wx-hero { grid-template-columns: minmax(0, 1.9fr) minmax(14rem, 1fr); } }
.wxm-fig { margin: 0; }
.wxm { display: block; width: 100%; height: auto; }
@media (max-width: 600px) { .wxm { width: calc(100% + 1.2rem); max-width: none; margin-inline: -.6rem; } }
.wxm-dots path { fill: none; stroke: var(--t); stroke-width: 4.2; stroke-linecap: round; }
.wxm-marks circle { fill: var(--text); stroke: var(--surface); stroke-width: 1.3; }
.wxm-names text { font-size: 10px; font-weight: 700; fill: var(--text); text-anchor: middle; dominant-baseline: central;
paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; }
.wxm-pills rect { fill: var(--t); stroke: var(--surface); stroke-width: 1.5; }
.wxm-pills text { font-size: 12.5px; font-weight: 800; fill: var(--t-ink); text-anchor: middle; dominant-baseline: central; direction: ltr; }
.wxm-pills use { color: var(--t-ink); }
.wxm-pills a:hover rect { stroke: var(--text); }
.wxleg { display: grid; gap: .35rem; margin-top: .9rem; }
.wxleg-title { font-size: var(--fs-xs); font-weight: 700; color: var(--text-2); }
.wxleg-bar { display: grid; grid-template-columns: repeat(11, 1fr); gap: 2px; height: 10px; border-radius: var(--r-full); overflow: hidden; }
.wxleg-bar i { background: var(--t); }
.wxleg-bar i.off { opacity: .28; }
.wxleg-ticks { position: relative; height: 1.15rem; font-size: .7rem; color: var(--muted); }
.wxleg-ticks span { position: absolute; top: 0; transform: translateX(50%); white-space: nowrap; }
.wxleg-note { font-size: var(--fs-xs); color: var(--muted); line-height: 1.9; }
.wxleg-g { width: .95em; height: .95em; vertical-align: -.12em; color: var(--wx-rain); }
.wx-sky { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.wx-sky li { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .4rem .25rem .75rem; border: 1px solid var(--border);
border-radius: var(--r-full); font-size: var(--fs-sm); color: var(--text-2); }
.wx-sky .wxi { width: 1.75rem; height: 1.75rem; }
.wx-sky b { color: var(--text); font-weight: 800; }
.wx-hint { margin: 1.9rem 0 .35rem; font-size: var(--fs-sm); color: var(--muted); }
.wxl { list-style: none; margin: 0; padding: 0; }
@media (min-width: 760px) { .wxl:not(.wxl-week) { columns: 2; column-gap: 2.5rem; } }
.wxl li { break-inside: avoid; border-bottom: 1px solid var(--border); }
.wxl a, .wxl-row { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) 2.3rem minmax(3.25rem, 6.5rem) 2.3rem; align-items: center; gap: .55rem;
padding: .55rem .35rem; color: var(--text); text-decoration: none; border-radius: var(--r-sm); }
.wxl-week { max-width: 46rem; }
.wxl-week .wxl-row { grid-template-columns: 2.4rem minmax(7.6rem, 1.2fr) 2.2rem minmax(3rem, 1fr) 2.2rem; }
@media (min-width: 760px) { .wxl-week .wxl-row { grid-template-columns: 2.6rem minmax(0, 1fr) 2.5rem minmax(8rem, 15rem) 2.5rem; } }
.wx-sec .wxn { grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); }
.wxl-city small { font-weight: 500; color: var(--muted); font-size: var(--fs-xs); }
.wxl a:hover { background: var(--surface-2); }
.wxl a:focus-visible, .wxn a:focus-visible { outline: none; box-shadow: var(--ring); }
.wxl a.wxl-na { grid-template-columns: 2.4rem minmax(0, 1fr); }
.wxl-city { display: grid; min-width: 0; line-height: 1.6; }
.wxl-city b { font-weight: 800; }
.wxl-city > span { font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wxl-rain { color: var(--text-2); }
.wxl-rain svg { width: .9em; height: .9em; color: var(--wx-rain); vertical-align: -.12em; margin-inline-end: .15rem; }
.wxl-lo, .wxl-hi { text-align: center; white-space: nowrap; }
.wxl-lo { color: var(--muted); font-weight: 600; }
.wxl-hi { font-weight: 800; }
.wxl-bar { position: relative; height: 7px; border-radius: var(--r-full); background: var(--surface-3); }
.wxl-bar i { position: absolute; top: 0; bottom: 0; min-width: 6px; border-radius: inherit; background: linear-gradient(to left, var(--lo), var(--hi)); }
@media (prefers-reduced-motion: no-preference) {
.wxl-bar i { transform-origin: right center; animation: wx-grow .9s var(--ease) both; }
@keyframes wx-grow { from { transform: scaleX(.05); } }
}
.wx-now { margin-top: 2.75rem; }
.wxn { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(10.25rem, 1fr)); }
.wxn a { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; align-items: center; gap: .45rem; padding: .45rem .55rem;
border: 1px solid var(--border); border-radius: var(--r); color: var(--text); text-decoration: none; }
.wxn a:hover { border-color: var(--border-strong); }
.wxn a.wxl-na { grid-template-columns: minmax(0, 1fr); }
.wxn .wxi { width: 2rem; height: 2rem; }
.wxn-city { display: grid; min-width: 0; line-height: 1.5; }
.wxn-city b { font-size: .92rem; font-weight: 800; }
.wxn-city small { font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wxp { display: inline-flex; align-items: center; justify-content: center; min-width: 2.6rem; padding: .1rem .5rem; border-radius: var(--r-full);
background: var(--t); color: var(--t-ink); font-weight: 800; font-size: .9rem; }
.wx-source { margin-top: 1.25rem; }
.wx-sec { margin-top: 2.6rem; }
.wx-note { margin: .9rem 0 0; font-size: var(--fs-sm); color: var(--text-2); line-height: 1.95; }
.wx-note a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; }
.wxh { --sky-a: #d4e7fa; --sky-b: #eef6fd; --sky-ink: #1b2a3a; --sky-ink-2: #44566a; --sky-tile: rgba(255, 255, 255, .6);
display: grid; gap: 1.25rem 2rem; align-items: center; padding: clamp(1.1rem, 3.5vw, 2rem); border-radius: var(--r-xl);
background: linear-gradient(170deg, var(--sky-a), var(--sky-b)); color: var(--sky-ink); }
@media (min-width: 780px) { .wxh { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.sky-fair-day { --sky-a: #d9e7f4; --sky-b: #f0f5fa; }
.sky-cloud-day { --sky-a: #dde3ea; --sky-b: #f1f3f6; --sky-ink-2: #4d5866; }
.sky-rain-day { --sky-a: #c9d4e0; --sky-b: #e6ecf2; --sky-ink-2: #45525f; }
.sky-snow-day { --sky-a: #e2ebf5; --sky-b: #f6f9fc; }
.wxh[class*="-night"] { --sky-a: #172341; --sky-b: #2a3a60; --sky-ink: #f1f4fb; --sky-ink-2: #bcc6dd; --sky-tile: rgba(255, 255, 255, .08); }
.wxh.sky-cloud-night, .wxh.sky-rain-night { --sky-a: #1d232c; --sky-b: #333c4a; }
:root[data-theme="dark"] .wxh[class*="-day"] { --sky-a: #193552; --sky-b: #22466b; --sky-ink: #eef4fb; --sky-ink-2: #b8c8da; --sky-tile: rgba(255, 255, 255, .08); }
:root[data-theme="dark"] .wxh.sky-cloud-day, :root[data-theme="dark"] .wxh.sky-rain-day { --sky-a: #232a33; --sky-b: #333d4a; }
.wxh-main { display: flex; align-items: center; gap: 1rem 1.5rem; }
.wxh-icon { width: clamp(5.5rem, 20vw, 8.5rem); height: clamp(5.5rem, 20vw, 8.5rem); flex: none; }
.wxh-label { margin: 0; font-size: var(--fs-sm); font-weight: 700; color: var(--sky-ink-2); }
.wxh-temp { margin: .2rem 0 .1rem; font-size: clamp(3.4rem, 2.4rem + 4.5vw, 5.25rem); font-weight: 800; line-height: 1; color: var(--sky-ink); }
.wxh-cond { margin: 0; font-size: var(--fs-lg); font-weight: 700; color: var(--sky-ink); }
.wxh-range { margin: .55rem 0 0; display: flex; flex-wrap: wrap; gap: .2rem 1.1rem; font-size: var(--fs-sm); color: var(--sky-ink-2); }
.wxh-range b { color: var(--sky-ink); font-weight: 800; }
.wxh-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; margin: 0; }
.wxh-stats > div { padding: .65rem .85rem; border-radius: var(--r); background: var(--sky-tile); }
.wxh-stats dt { font-size: var(--fs-xs); color: var(--sky-ink-2); }
.wxh-stats dd { margin: .15rem 0 0; font-weight: 800; color: var(--sky-ink); }
.wxh-stats small { font-weight: 600; font-size: var(--fs-xs); color: var(--sky-ink-2); margin-inline-start: .2rem; }
.wxh-arrow { display: inline-block; width: .95em; height: .95em; vertical-align: -.12em; margin-inline-end: .3rem; }
.wxs-wrap { overflow-x: auto; padding-bottom: .25rem; }
.wxs { position: relative; min-width: calc(var(--n) * 3.7rem); }
.wxs-cols { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.wxs-cols li { display: grid; justify-items: center; grid-template-rows: 1.4rem 2.6rem 6rem 1.3rem; row-gap: .25rem; padding: .4rem 0 .2rem; }
.wxs-cols li + li { border-inline-start: 1px solid var(--border); }
.wxs-time { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.wxs .wxi { width: 2.6rem; height: 2.6rem; }
.wxs-band { position: relative; width: 100%; }
.wxs-band i { position: absolute; left: 50%; width: .62rem; height: .62rem; border-radius: 50%; background: var(--t); box-shadow: 0 0 0 2px var(--surface); transform: translate(-50%, -50%); }
.wxs-band b { position: absolute; left: 50%; transform: translate(-50%, calc(-100% - .5rem)); font-weight: 800; white-space: nowrap; }
.wxs-line { position: absolute; inset-inline: 0; top: calc(.4rem + 1.4rem + 2.6rem + .5rem); width: 100%; height: 6rem; overflow: visible; pointer-events: none; }
.wxs-line polyline { fill: none; stroke: var(--border-strong); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.wxs-rain { font-size: .72rem; color: var(--text-2); white-space: nowrap; }
.wxs-rain svg { display: inline-block; width: .85em; height: .85em; color: var(--wx-rain); vertical-align: -.1em; margin-inline-end: .1rem; }
.wxd { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .wxd { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.wxd li { position: relative; display: grid; gap: .3rem; justify-items: start; padding: 1rem .95rem .9rem; border: 1px solid var(--border);
border-radius: var(--r-lg); overflow: hidden; }
.wxd li::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px; background: var(--t); }
.wxd-name b { font-weight: 800; }
.wxd-name small { display: block; font-size: var(--fs-xs); color: var(--muted); }
.wxd .wxi { width: 2.8rem; height: 2.8rem; }
.wxd-desc { font-size: var(--fs-sm); color: var(--text-2); }
.wxd-t { font-weight: 800; font-size: 1.05rem; }
.wxd .wxl-rain { font-size: var(--fs-xs); }
.wxd .wxl-rain svg { display: inline-block; }
.wxsun { display: grid; gap: 1rem 2.5rem; align-items: center; }
@media (min-width: 720px) { .wxsun { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.wxsun-arc { width: 100%; max-width: 25rem; height: auto; overflow: visible; }
.wxsun-hz { stroke: var(--border-strong); stroke-width: 1.5; }
.wxsun-path { fill: none; stroke: var(--border-strong); stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; }
.wxsun-done { fill: none; stroke: #f2a51f; stroke-width: 3; stroke-linecap: round; }
.wxsun-sun { fill: #f7b52c; stroke: var(--surface); stroke-width: 4; }
.wxsun-end { fill: var(--muted); }
.wxsun-arc text { font-size: 14px; font-weight: 700; fill: var(--text-2); text-anchor: middle; }
.wxsun-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1.5rem; margin: 0; }
.wxsun-facts dt { font-size: var(--fs-xs); color: var(--muted); }
.wxsun-facts dd { margin: .15rem 0 0; font-weight: 800; font-size: 1.05rem; }
