/* ==========================================================================
   11 · 洗衣机桶自洁 —— DRUM CARE LOG
   独立设计：靛青水色 + 铜橙警示；滚筒同心圆表盘为首屏母题，
   章节用「竖向刻度尺」串联，卡片为薄纸片 + 单侧色条，不用大圆角阴影。
   ========================================================================== */
.wsc {
    --hg-paper:      #f2f6f5;
    --hg-paper-2:    #e2eceb;
    --hg-card:       #fbfdfc;
    --hg-card-2:     #ecf3f2;
    --hg-ink:        #142c31;
    --hg-ink-2:      #3f5b60;
    --hg-ink-3:      #779093;
    --hg-line:       #cbdbda;
    --hg-line-2:     #a7c1c0;
    --hg-brand:      #1d6070;
    --hg-brand-2:    #b9752f;
    --hg-brand-soft: #dcecef;
    --hg-on-brand:   #fbfefd;
    background: var(--hg-paper);
}
:root[data-theme="dark"] .wsc {
    --hg-paper:      #0f1719;
    --hg-paper-2:    #172326;
    --hg-card:       #162225;
    --hg-card-2:     #1d2c30;
    --hg-ink:        #e7f1f0;
    --hg-ink-2:      #aec6c7;
    --hg-ink-3:      #7f999b;
    --hg-line:       #2b3e41;
    --hg-line-2:     #3c5659;
    --hg-brand:      #79c6d3;
    --hg-brand-2:    #e0b072;
    --hg-brand-soft: #1d3439;
    --hg-on-brand:   #0e191b;
}
.wsc .hg2-btn { border-radius: 3px; }
.wsc .hg2-btn--ghost:hover { background: var(--hg-brand-soft); }
.wsc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- 首屏：左陈述 / 右视窗控制台 ---------- */
.wsc-hero { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); border-bottom: 2px solid var(--hg-ink); }
.wsc-hero-copy { padding: 44px 44px 46px 0; }
.wsc-kicker { display: inline-block; font: 700 11.5px/1.5 var(--hg-mono); letter-spacing: .18em; color: var(--hg-brand); border-left: 3px solid var(--hg-brand); padding-left: 10px; margin-bottom: 22px; }
.wsc-hero h1 { margin-bottom: 20px; }
.wsc-lede { font-size: 16px; line-height: 1.92; max-width: 56ch; color: var(--hg-ink-2); }
.wsc-lede b { box-shadow: inset 0 -.4em 0 var(--hg-brand-soft); }
.wsc-points { list-style: none; margin: 26px 0 0; padding: 0; border-top: 1px solid var(--hg-line); }
.wsc-points li { display: flex; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--hg-line); font-size: 14px; line-height: 1.7; color: var(--hg-ink-2); margin: 0; }
.wsc-points li span { font: 700 11px/1 var(--hg-mono); color: var(--hg-brand); letter-spacing: .1em; flex: none; }
.wsc-points b { color: var(--hg-ink); }
.wsc-hero-note { margin-top: 20px; font-size: 13px; line-height: 1.8; color: var(--hg-ink-3); }

.wsc-console {
    position: relative; padding: 26px 30px 32px; border-left: 1px solid var(--hg-line-2);
    background: var(--hg-card);
    background-image: repeating-linear-gradient(0deg, transparent 0 27px, var(--hg-paper-2) 27px 28px);
}
.wsc-console::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--hg-brand); }
.wsc-console-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; font: 700 11.5px/1.5 var(--hg-mono); letter-spacing: .12em; color: var(--hg-ink-3); text-transform: uppercase; }
.wsc-console-hd b { color: var(--hg-brand); font-size: 11px; border: 1px solid var(--hg-line-2); padding: 2px 8px; border-radius: 3px; }
.wsc-drum {
    --wsc-fill: 0%;
    position: relative; width: 186px; height: 186px; margin: 22px auto 20px; border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, var(--hg-card) 0 59%, transparent 59.5%),
        repeating-conic-gradient(from -90deg, var(--hg-line-2) 0 1.1deg, transparent 1.1deg 10deg),
        conic-gradient(from -90deg, var(--hg-brand) 0 var(--wsc-fill), var(--hg-paper-2) var(--wsc-fill) 100%);
    box-shadow: 0 0 0 7px var(--hg-card-2), 0 0 0 8px var(--hg-line-2), inset 0 0 0 1px var(--hg-line);
    transition: background .4s;
}
.wsc-drum::after { content: ''; position: absolute; inset: 68px; border-radius: 50%; border: 1px dashed var(--hg-line-2); }
.wsc-drum-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; z-index: 1; padding: 0 18px; }
.wsc-drum-cap { font: 700 11px/1.5 var(--hg-mono); letter-spacing: .14em; color: var(--hg-ink-3); }
.wsc-drum-in strong { display: block; font: 700 21px/1.4 var(--hg-mono); color: var(--hg-ink); letter-spacing: -.02em; margin: 2px 0; white-space: nowrap; }
.wsc-drum-sub { font-size: 11.5px; line-height: 1.5; color: var(--hg-brand); }
.wsc-console-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wsc-span2 { grid-column: 1 / -1; }
.wsc-console-btns { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 16px; }
.wsc-console-btns .hg2-btn { flex: 1 1 auto; }
.wsc-console .hg2-hint { margin-top: 14px; }

/* ---------- 卡片通用：单侧色条 + 细线 ---------- */
.wsc-panel { background: var(--hg-card); border: 1px solid var(--hg-line); border-left: 3px solid var(--hg-brand); border-radius: 2px; padding: 20px 22px 22px; }
.wsc-panel-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--hg-line); }
.wsc-panel-hd h3 { font-family: var(--hg-display); font-size: 19px; }
.wsc-panel-hd span { font-size: 12px; color: var(--hg-ink-3); }

/* ---------- 01 用量台 ---------- */
.wsc-dose-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 18px; }
.wsc-dose-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wsc-mix { display: flex; flex-wrap: wrap; gap: 7px; }
.wsc-dose-out { margin-top: 16px; padding: 11px 14px; background: var(--hg-card-2); border: 1px solid var(--hg-line); border-radius: 3px; font: 700 13px/1.7 var(--hg-mono); color: var(--hg-brand); letter-spacing: .01em; }
.wsc-dose-out.is-bad { color: var(--hg-bad); background: var(--hg-bad-bg); border-color: var(--hg-bad); }
.wsc-factors { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.wsc-factor-meter { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin: 18px 0 0; padding: 12px 0; border-top: 1px solid var(--hg-line); font-size: 12.5px; color: var(--hg-ink-3); }
.wsc-factor-meter b { font: 700 20px/1 var(--hg-mono); color: var(--hg-brand); }
.wsc-factor-meter i { font-style: normal; color: var(--hg-line-2); font-size: 18px; }
.wsc-btn-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; align-items: center; }

/* ---------- 02 症状自检 ---------- */
.wsc-symptom { display: grid; grid-template-columns: 1fr .85fr; gap: 20px; align-items: stretch; }
.wsc-sym-list { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 10px; padding: 20px; border: 1px solid var(--hg-line); background: var(--hg-card); border-radius: 2px; }
.wsc-sym-list .hg2-chip { font-size: 13.5px; padding: 9px 14px; }
.wsc-verdict { border: 1px solid var(--hg-line-2); border-top: 4px solid var(--hg-brand-2); background: var(--hg-card); padding: 20px 22px; border-radius: 2px; }
.wsc-verdict-tag { display: inline-block; font: 700 12px/1.6 var(--hg-mono); letter-spacing: .08em; padding: 3px 10px; border-radius: 2px; background: var(--hg-brand-soft); color: var(--hg-brand); }
.wsc-verdict.is-warn { border-top-color: var(--hg-warn); }
.wsc-verdict.is-warn .wsc-verdict-tag { background: var(--hg-warn-bg); color: var(--hg-warn); }
.wsc-verdict.is-bad { border-top-color: var(--hg-bad); }
.wsc-verdict.is-bad .wsc-verdict-tag { background: var(--hg-bad-bg); color: var(--hg-bad); }
.wsc-verdict p { margin: 14px 0 0; font-size: 14px; line-height: 1.9; }

/* ---------- 03 年度时间轴：横向刻度尺 ---------- */
.wsc-rail { position: relative; display: flex; gap: 0; padding: 34px 0 12px; border-top: 1px solid var(--hg-line); border-bottom: 1px solid var(--hg-line); background: var(--hg-card); overflow-x: auto; }
.wsc-rail::before { content: ''; position: absolute; left: 0; right: 0; top: 18px; height: 1px; background: var(--hg-line-2); }
.wsc-rail-item { position: relative; flex: 1 0 92px; min-width: 92px; padding: 0 8px 4px; border-left: 1px solid var(--hg-line); }
.wsc-rail-item:first-child { border-left: 0; }
.wsc-rail-item .wsc-rail-date { display: block; font: 700 11.5px/1.5 var(--hg-mono); color: var(--hg-ink-2); }
.wsc-rail-item .wsc-rail-name { display: block; font-size: 12px; line-height: 1.6; color: var(--hg-ink-3); }
.wsc-rail-item .wsc-dot { position: absolute; top: -22px; left: 10px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--hg-card); }
.wsc-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin: 0 5px 0 12px; background: var(--hg-brand); }
.wsc-dot--filter { background: var(--hg-brand-2); }
.wsc-dot--tear { background: var(--hg-bad); }
.wsc-rail-legend { margin-top: 12px; font-size: 12.5px; color: var(--hg-ink-3); }
.wsc-rail-legend .wsc-dot:first-child { margin-left: 0; }

/* ---------- 04 结果 ---------- */
.wsc-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--hg-line); border: 1px solid var(--hg-line); margin-bottom: 18px; }
.wsc-kpi { background: var(--hg-card); padding: 18px 18px 16px; }
.wsc-kpi span { display: block; font-size: 12px; color: var(--hg-ink-3); letter-spacing: .04em; }
.wsc-kpi strong { display: block; font: 700 25px/1.35 var(--hg-mono); color: var(--hg-brand); margin-top: 5px; letter-spacing: -.02em; }
.wsc-kpi small { display: block; font-size: 11.5px; color: var(--hg-ink-3); margin-top: 3px; }
.wsc-result-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.wsc-todo { margin: 0; padding-left: 1.3em; font-size: 14px; line-height: 1.9; color: var(--hg-ink-2); }
.wsc-todo li { margin-bottom: 9px; }
.wsc-todo b { color: var(--hg-ink); }
.wsc-ask { font-size: 13.5px; line-height: 1.85; color: var(--hg-ink-2); }
.wsc-ask p { padding-left: 14px; border-left: 2px solid var(--hg-brand-soft); margin-bottom: 9px; }
.wsc-figure { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--hg-line-2); text-align: center; }
.wsc-figure img { max-width: 100%; height: auto; display: block; margin: 0 auto 8px; }
.wsc-figure span { font: 11.5px/1.6 var(--hg-mono); color: var(--hg-ink-3); letter-spacing: .06em; }
.wsc-result-btns { padding: 18px 0 0; border-top: 1px solid var(--hg-line); margin-top: 22px; }

/* ---------- 05 批量 ---------- */
.wsc-batch { border: 1px solid var(--hg-line); background: var(--hg-card); padding: 20px 22px; border-radius: 2px; }
.wsc-batch-top { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; }
.wsc-clean { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 7px; }
.wsc-clean > b { width: 100%; font-size: 12.5px; color: var(--hg-ink-2); margin-bottom: 2px; }
.wsc-preview { width: 100%; margin-top: 8px; padding: 8px 10px; background: var(--hg-paper-2); border-radius: 3px; font: 12px/1.7 var(--hg-mono); color: var(--hg-ink-3); word-break: break-all; }
.wsc-table { margin-top: 16px; }
.wsc-table td { font-size: 13px; }
.wsc-table .hg2-tag { white-space: nowrap; }

@media (max-width: 980px) {
    .wsc-hero, .wsc-dose-grid, .wsc-symptom, .wsc-result-cols, .wsc-batch-top { grid-template-columns: 1fr; }
    .wsc-hero-copy { padding-right: 0; }
    .wsc-console { border-left: 0; border-top: 1px solid var(--hg-line-2); }
    .wsc-kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .wsc-console-fields, .wsc-dose-fields { grid-template-columns: 1fr; }
    .wsc-span2 { grid-column: auto; }
    .wsc-drum { width: 156px; height: 156px; }
    .wsc-drum::after { inset: 56px; }
    .wsc-drum-in strong { font-size: 17px; }
    .wsc-kpis { grid-template-columns: 1fr 1fr; }
    .wsc-kpi strong { font-size: 20px; }
}
