/* =====================================================================
 * 04 羊毛收纳防虫方案 · 独立视觉：换季时间轴 / 收纳箱分层剖面
 * 顶部四阶段时间轴 + 剖面图与参数板并排 + 三色安全边界卡。
 * ===================================================================== */

.hc.hc--moth { --hc-a: #4a7a4c; --hc-a-soft: #e7f1e5; }
:root[data-theme="dark"] .hc.hc--moth { --hc-a: #8dc98a; --hc-a-soft: #1c2e1d; }

.moth-hero { padding-top: 34px; }
.moth-head { max-width: 830px; }

/* ---------- 换季时间轴 ---------- */
.moth-timeline {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
    margin: 26px 0 22px; border: 1px solid var(--hc-line); border-radius: var(--hc-r);
    background: var(--hc-card); box-shadow: var(--hc-shadow-sm); overflow: hidden;
}
.moth-step {
    position: relative; padding: 15px 18px 16px; border-right: 1px solid var(--hc-line-2);
    cursor: pointer; transition: background .2s;
}
.moth-step:last-child { border-right: none; }
.moth-step::after {
    content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px;
    background: transparent; transition: background .2s;
}
.moth-step:hover { background: var(--hc-card-2); }
.moth-step.is-on { background: var(--hc-a-soft); }
.moth-step.is-on::after { background: var(--hc-a); }
.moth-step-n { display: block; font-family: var(--hc-serif); font-size: 11px; letter-spacing: .12em; color: var(--hc-muted); }
.moth-step b { display: block; font-size: 15px; margin: 3px 0 1px; }
.moth-step small { display: block; font-size: 11.5px; color: var(--hc-muted); }
.moth-step.is-on b { color: var(--hc-a); }

/* ---------- 剖面 + 参数 ---------- */
.moth-bench { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.moth-box, .moth-form {
    border: 1px solid var(--hc-line); border-radius: var(--hc-r);
    background: var(--hc-card); box-shadow: var(--hc-shadow); overflow: hidden;
}
.moth-box-head {
    display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
    padding: 11px 17px; border-bottom: 1px solid var(--hc-line-2);
    font-family: var(--hc-serif); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--hc-muted);
}
.moth-box-head span:last-child { font-family: var(--hc-sans); letter-spacing: 0; font-size: 12px; color: var(--hc-a); font-weight: 700; }
#mothSvg { display: block; width: 100%; height: auto; background:
    radial-gradient(circle at 50% 30%, var(--hc-a-soft) 0%, transparent 66%); }
.moth-bin { fill: var(--hc-card-2); stroke: var(--hc-ink-2); stroke-width: 3; }
.moth-bin-in { fill: var(--hc-card); stroke: var(--hc-line); stroke-width: 1.5; }
.moth-lid { fill: var(--hc-a); }
.moth-lid-t { fill: #fff; font-size: 10px; font-weight: 700; }
:root[data-theme="dark"] .moth-lid-t { fill: #10200f; }
.moth-layer { stroke: var(--hc-line); stroke-width: 1; }
.moth-layer-t { fill: var(--hc-ink-2); font-size: 11.5px; font-weight: 650; }
.moth-slot { cursor: pointer; }
.moth-slot circle { fill: var(--hc-card); stroke: var(--hc-line); stroke-width: 2; transition: all .2s; }
.moth-slot text { fill: var(--hc-muted); font-family: var(--hc-serif); font-size: 13px; font-weight: 700; }
.moth-slot:hover circle { stroke: var(--hc-a); }
.moth-slot.is-on circle { fill: var(--hc-a); stroke: var(--hc-a); }
.moth-slot.is-on text { fill: #fff; }
:root[data-theme="dark"] .moth-slot.is-on text { fill: #10200f; }
.moth-slot-cap, .moth-tiny { fill: var(--hc-muted); font-size: 11px; }
.moth-tiny { font-size: 10px; }
.moth-box-foot {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
    padding: 11px 17px; border-top: 1px solid var(--hc-line-2); font-size: 11.5px; color: var(--hc-muted);
}
.moth-box-foot span:first-child { color: var(--hc-a); font-weight: 700; }

.moth-form { padding: 20px; }
.moth-form-head {
    display: flex; justify-content: space-between; align-items: baseline;
    font-size: 15.5px; font-weight: 720; padding-bottom: 11px; margin-bottom: 14px;
    border-bottom: 1px dashed var(--hc-line);
}
.moth-form-head small { font-size: 11.5px; font-weight: 400; color: var(--hc-muted); }
.moth-form-head b { color: var(--hc-danger); }
.moth-fields { grid-template-columns: 1fr 1fr; }
.moth-switches { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.moth-form .hc-btn-row { gap: 8px; }
.moth-form .hc-btn { flex: 1 1 auto; font-size: 13px; padding: 9px 10px; }

/* ---------- 安全边界 ---------- */
.moth-safety { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.moth-safe {
    padding: 17px 19px; border-radius: var(--hc-r); border: 1px solid var(--hc-line-2);
    background: var(--hc-card); box-shadow: var(--hc-shadow-sm);
}
.moth-safe .st { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 720; }
.moth-safe .st i { width: 9px; height: 9px; border-radius: 50%; font-style: normal; }
.moth-safe p { margin: 9px 0 0; font-size: 13px; line-height: 1.75; color: var(--hc-ink-2); }
.moth-safe ul { margin: 9px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--hc-ink-2); }
.moth-safe li { margin-bottom: 5px; }
.moth-safe--stop { border-left: 3px solid var(--hc-danger); background: var(--hc-danger-soft); }
.moth-safe--stop .st i { background: var(--hc-danger); }
.moth-safe--care { border-left: 3px solid var(--hc-warn); background: var(--hc-warn-soft); }
.moth-safe--care .st i { background: var(--hc-warn); }
.moth-safe--ok { border-left: 3px solid var(--hc-ok); background: var(--hc-ok-soft); }
.moth-safe--ok .st i { background: var(--hc-ok); }

.moth-verdict { margin-top: 14px; }
.moth-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-top: 15px; }
.moth-plan { padding: 18px 19px; border: 1px solid var(--hc-line-2); border-radius: var(--hc-r); background: var(--hc-card); box-shadow: var(--hc-shadow-sm); }
.moth-plan .tag { font-family: var(--hc-serif); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--hc-a); }
.moth-plan h3 { margin: 7px 0 9px; font-size: 17px; }
.moth-plan p { margin: 0; font-size: 13px; line-height: 1.75; color: var(--hc-ink-2); }
.moth-plan ol { margin: 10px 0 0; padding-left: 19px; font-size: 12.5px; color: var(--hc-ink-2); }
.moth-plan li { margin-bottom: 5px; }
.moth-cycle { margin-top: 18px; border: 1px solid var(--hc-line-2); border-radius: var(--hc-r); background: var(--hc-card); padding: 0 0 4px; box-shadow: var(--hc-shadow-sm); }
.moth-cycle .hc-card-head { padding: 18px 20px 12px; }
.moth-cycle .hc-table-wrap { border: 0; border-radius: 0; }
.moth-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

@media (max-width: 980px) {
    .moth-bench, .moth-two { grid-template-columns: 1fr; }
    .moth-safety, .moth-plans { grid-template-columns: 1fr; }
    .moth-timeline { grid-template-columns: repeat(2, 1fr); }
    .moth-step:nth-child(2) { border-right: none; }
    .moth-step:nth-child(-n+2) { border-bottom: 1px solid var(--hc-line-2); }
}
@media (max-width: 560px) {
    .moth-form { padding: 15px; }
    .moth-fields, .moth-switches { grid-template-columns: 1fr; }
    .moth-timeline { grid-template-columns: 1fr 1fr; }
    .moth-step { padding: 12px; }
}
