/* ======================================================================
 * 45 · 大风预警出行安排 · 独立色板「石板蓝」+ 视觉母题「风级仪表盘 + 刻度尺」
 * 首屏 rail：左侧半圆风级仪表（指针随风力变化）+ 右侧文案与速算卡。
 * 结果区为 0–12 级彩色刻度尺与四级风险矩阵。
 * ====================================================================== */

.lw--wind {
    --a: #3b6691;
    --a2: #86b4d4;
    --a-soft: #e8f1f8;
    --a-ink: #ffffff;
}
:root[data-theme="dark"] .lw--wind {
    --a: #7fb4de;
    --a2: #aad2ee;
    --a-soft: #1a2b3a;
    --a-ink: #0b1c2a;
}

.wa-hero-box { display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: 28px; align-items: stretch; }
.wa-hero-box h1 em { display: block; font-size: .51em; font-weight: 700; margin-top: 9px; line-height: 1.45; }
.wa-hero-main { min-width: 0; }

/* ---------- 半圆仪表 ---------- */
.wa-gauge { background: linear-gradient(170deg, var(--card), var(--card-2)); border: 1px solid var(--line); border-radius: 15px; padding: 15px 14px; display: flex; flex-direction: column; }
.wa-gauge-h { font-size: 13px; font-weight: 800; }
.wa-gauge-h small { font-size: 10.5px; color: var(--muted); font-weight: 500; margin-left: 5px; }
.wa-gauge-dial { position: relative; width: 100%; max-width: 180px; margin: 12px auto 0; aspect-ratio: 2 / 1.12; overflow: hidden; }
.wa-dial-arc { position: absolute; left: 8%; right: 8%; top: 6%; width: 84%; height: 170%; border-radius: 50%; border: 13px solid var(--card-3); border-bottom-color: transparent; border-left-color: var(--a2); border-right-color: var(--a); }
.wa-dial-tick { position: absolute; left: 50%; bottom: 6%; width: 1px; height: 8px; background: var(--line); transform-origin: bottom center; }
.wa-dial-needle { position: absolute; left: 50%; bottom: 8%; width: 3px; height: 70%; background: linear-gradient(180deg, var(--bad), var(--a)); border-radius: 3px; transform-origin: bottom center; transform: rotate(-90deg); transition: transform .45s ease; }
.wa-gauge-read { text-align: center; margin-top: -4px; }
.wa-gauge-read b { display: block; font-family: var(--mono); font-size: 30px; font-weight: 800; color: var(--a); line-height: 1.2; }
.wa-gauge-read span { font-size: 11.5px; color: var(--muted); font-family: var(--mono); }
.wa-gauge-hint { font-size: 10.5px; color: var(--muted); line-height: 1.6; margin-top: auto; padding-top: 10px; }

.wa-quick { margin-top: 18px; }
.wa-quick-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }

/* ---------- 活动多选 ---------- */
.wa-param { position: relative; overflow: hidden; }
.wa-param::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--a), var(--a2), transparent); }
.wa-checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 9px; }
.wa-extra { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }

/* ---------- 风级刻度尺 ---------- */
.wa-panel { border-radius: 16px; }
.wa-scale { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 3px; align-items: end; height: 96px; }
.wa-scale-cell { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 5px; height: 100%; position: relative; }
.wa-scale-cell i { display: block; width: 100%; border-radius: 4px 4px 0 0; min-height: 6px; }
.wa-scale-cell b { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.wa-scale-cell.is-here i { outline: 2px solid var(--ink); outline-offset: 1px; }
.wa-scale-cell.is-here b { color: var(--a); font-weight: 800; }
.wa-scale-pointer { position: absolute; top: -17px; left: 50%; transform: translateX(-50%); font-size: 10px; font-weight: 800; color: var(--a); white-space: nowrap; }
.wa-scale-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: 11.5px; color: var(--muted); }
.wa-scale-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* ---------- 逐时段卡 ---------- */
.wa-periods { display: grid; grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); gap: 11px; }
.wa-period { border: 1px solid var(--line); border-top: 3px solid var(--ok); border-radius: 12px; padding: 13px 14px; background: var(--card-2); }
.wa-period.is-warn { border-top-color: var(--warn); }
.wa-period.is-bad { border-top-color: var(--bad); }
.wa-period b { display: block; font-size: 13.5px; margin-bottom: 4px; }
.wa-period .lv { font-family: var(--mono); font-size: 20px; font-weight: 800; color: var(--a); }
.wa-period span { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.7; margin-top: 4px; }
.wa-period em { display: block; font-style: normal; font-size: 12px; color: var(--ink-2); margin-top: 7px; line-height: 1.7; }

@media (max-width: 900px) {
    .wa-hero-box { grid-template-columns: 1fr; gap: 18px; }
    .wa-gauge { max-width: 260px; }
    .wa-quick-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wa-scale { grid-template-columns: repeat(7, minmax(0, 1fr)); height: auto; gap: 6px; }
}
@media (max-width: 520px) {
    .wa-quick-row { grid-template-columns: 1fr; }
    .wa-scale { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
