/* 厨余垃圾处理器选型计算器 · 独立主题（森绿厨间） */
:root {
  --fw-a: #15803d;
  --fw-a2: #4ade80;
  --fw-a-soft: #e6f6ec;
  --fw-bg: #f3faf5;
  --fw-card: #ffffff;
  --fw-card2: #f8fcf9;
  --fw-txt: #10241a;
  --fw-txt2: #3f5a4b;
  --fw-txt3: #78907f;
  --fw-line: #d5e8db;
  --fw-line2: #ebf5ee;
  --fw-red: #b91c1c;
  --fw-yellow: #b45309;
  --fw-green: #15803d;
  --fw-shadow: 0 1px 2px rgba(21, 128, 61, .06), 0 10px 26px -18px rgba(21, 128, 61, .45);
  --fw-r: 10px;
  --fw-r2: 7px;
}

[data-theme='dark'] .fw {
  --fw-a: #6ee7a0;
  --fw-a2: #4ade80;
  --fw-a-soft: #12301f;
  --fw-bg: #0a1510;
  --fw-card: #102219;
  --fw-card2: #0c1b13;
  --fw-txt: #e6f6ec;
  --fw-txt2: #a6c4b3;
  --fw-txt3: #6f8b7d;
  --fw-line: #24402f;
  --fw-line2: #182b1f;
  --fw-red: #f87171;
  --fw-yellow: #fbbf24;
  --fw-green: #4ade80;
  --fw-shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 10px 26px -18px rgba(0, 0, 0, .8);
}

.fw { background: var(--fw-bg); color: var(--fw-txt); padding: 26px 0 46px; }
.fw-inner { width: min(1140px, calc(100% - 44px)); max-width: none; margin: 0 auto; }

/* ---------- Hero：水槽 + 研磨盘 ---------- */
.fw-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: 24px;
  align-items: center;
  padding: 30px 32px 28px;
  border: 1px solid var(--fw-line);
  border-radius: 4px 4px 4px 4px;
  background:
    linear-gradient(135deg, transparent 0 92%, rgba(21, 128, 61, .07) 92%),
    linear-gradient(180deg, var(--fw-card), var(--fw-card2));
  box-shadow: var(--fw-shadow);
  overflow: hidden;
}
.fw-hero::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
  background: linear-gradient(180deg, var(--fw-a2), var(--fw-a));
}
.fw-kicker {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 700;
  color: var(--fw-a); background: var(--fw-a-soft);
  padding: 5px 11px; border-radius: 3px;
  border-left: 3px solid var(--fw-a);
}
.fw-hero h1 {
  margin: 16px 0 0; font-size: clamp(26px, 3.3vw, 38px); line-height: 1.24;
  letter-spacing: -.6px; font-weight: 800;
}
.fw-hero h1 em { font-style: normal; display: inline-block; margin-top: 4px; color: var(--fw-a); }
.fw-hero h1 em::after { content: ''; display: block; margin-top: 6px; height: 6px; background: repeating-linear-gradient(90deg, var(--fw-a2) 0 8px, transparent 8px 13px); }
.fw-sub { margin: 13px 0 0; font-size: 14.5px; line-height: 1.85; color: var(--fw-txt2); max-width: 66ch; }
.fw-sub b { color: var(--fw-txt); font-weight: 700; }
.fw-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.fw-tag {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px;
  padding: 5px 10px; border-radius: 3px;
  background: var(--fw-card2); border: 1px solid var(--fw-line); color: var(--fw-txt2);
}
.fw-tag i { color: var(--fw-a); font-style: normal; font-weight: 800; }

.fw-hero-art { position: relative; height: 264px; }
.fw-sink { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); width: 172px; }
.fw-faucet { position: absolute; left: 50%; top: -6px; transform: translateX(-50%); width: 14px; height: 66px; border-radius: 7px; background: linear-gradient(90deg, #cfd8d2, #8fa399 60%, #6c8077); }
.fw-faucet span { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); width: 10px; height: 26px; border-radius: 5px; background: #7c9088; }
.fw-basin {
  position: relative; margin-top: 58px; height: 126px;
  border: 2px solid #93a89d;
  border-radius: 8px 8px 16px 16px;
  background:
    radial-gradient(120px 60px at 50% 0%, rgba(255, 255, 255, .8), transparent),
    linear-gradient(180deg, #eef4f0, #dbe5df 70%, #c6d4cc);
  box-shadow: inset 0 -12px 20px -14px rgba(16, 36, 26, .45);
}
.fw-basin-edge { position: absolute; left: 50%; top: 56px; transform: translateX(-50%); width: 186px; height: 8px; border-radius: 4px; background: linear-gradient(180deg, #b8c8bf, #8fa399); }
.fw-drain { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); width: 62px; height: 62px; }
.fw-disc {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, #56685f 0 24deg, #3c4c44 24deg 48deg, #56685f 48deg 72deg, #3c4c44 72deg 96deg, #56685f 96deg 120deg, #3c4c44 120deg 144deg, #56685f 144deg 168deg, #3c4c44 168deg 192deg, #56685f 192deg 216deg, #3c4c44 216deg 240deg, #56685f 240deg 264deg, #3c4c44 264deg 288deg, #56685f 288deg 312deg, #3c4c44 312deg 336deg, #56685f 336deg 360deg);
  border: 3px solid #2e3b35;
  animation: fwSpin 6s linear infinite;
  display: flex; align-items: center; justify-content: center;
}
.fw-disc i { position: absolute; width: 7px; height: 16px; border-radius: 2px; background: #cfdad4; top: 4px; left: 50%; transform-origin: 50% 27px; }
.fw-disc i:nth-child(1) { transform: rotate(0deg); }
.fw-disc i:nth-child(2) { transform: rotate(60deg); }
.fw-disc i:nth-child(3) { transform: rotate(120deg); }
.fw-disc i:nth-child(4) { transform: rotate(180deg); }
.fw-disc i:nth-child(5) { transform: rotate(240deg); }
.fw-disc i:nth-child(6) { transform: rotate(300deg); }
@keyframes fwSpin { to { transform: rotate(360deg); } }
.fw-drain-hole { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 18px; height: 18px; border-radius: 50%; background: #16211b; box-shadow: inset 0 0 0 2px #4b5c53; }
.fw-scrap { position: absolute; background: #87b56a; border-radius: 40% 60% 50% 50%; }
.fw-scrap.s1 { width: 14px; height: 10px; left: 18px; bottom: 34px; transform: rotate(-20deg); }
.fw-scrap.s2 { width: 10px; height: 8px; left: 30px; bottom: 62px; background: #d9a441; }
.fw-scrap.s3 { width: 12px; height: 7px; right: 20px; bottom: 48px; background: #6f9c55; transform: rotate(24deg); }
.fw-drop { position: absolute; top: 96px; width: 6px; height: 10px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: linear-gradient(180deg, #bbf7d0, #4ade80); animation: fwDrop 2s linear infinite; }
.fw-drop.d1 { left: 47%; }
.fw-drop.d2 { left: 53%; animation-delay: .95s; }
@keyframes fwDrop { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(74px); opacity: 0; } }

.fw-chip {
  position: absolute; font-size: 11.5px; padding: 5px 10px; border-radius: 3px;
  background: var(--fw-card); border: 1px solid var(--fw-line); color: var(--fw-txt2);
  box-shadow: var(--fw-shadow); white-space: nowrap;
}
.fw-chip b { color: var(--fw-a); }
.fw-chip.c1 { left: 0; top: 82px; animation: fwFloat 4.6s ease-in-out infinite; }
.fw-chip.c2 { right: 0; bottom: 58px; animation: fwFloat 4.6s ease-in-out 1s infinite; }
@keyframes fwFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---------- 纵向窄栏流 ---------- */
.fw-flow { display: flex; flex-direction: column; gap: 15px; margin-top: 18px; }
.fw-card, .fw-result {
  background: var(--fw-card); border: 1px solid var(--fw-line);
  border-radius: var(--fw-r); box-shadow: var(--fw-shadow); padding: 20px 22px 22px;
  min-width: 0;
}
.fw-card-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.fw-card-h h2 { margin: 0; font-size: 16.5px; font-weight: 800; letter-spacing: -.2px; display: flex; align-items: center; gap: 9px; }
.fw-no { font-size: 10.5px; font-weight: 800; letter-spacing: .6px; color: var(--fw-a); border-left: 3px solid var(--fw-a); padding-left: 7px; }
.fw-card-h small { font-size: 12px; color: var(--fw-txt3); text-align: right; }

/* 内部两栏错落 */
.fw-split { display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(0, .68fr); gap: 22px; align-items: start; }
.fw-card.rev .fw-split { grid-template-columns: minmax(0, .68fr) minmax(0, 1.32fr); }
.fw-split-main { min-width: 0; }
.fw-note {
  background: var(--fw-card2); border: 1px solid var(--fw-line); border-top: 3px solid var(--fw-a2);
  border-radius: var(--fw-r2); padding: 13px 14px 14px;
}
.fw-note h3 { margin: 0 0 8px; font-size: 12.5px; font-weight: 800; color: var(--fw-a); }
.fw-note p { margin: 0 0 8px; font-size: 12px; line-height: 1.78; color: var(--fw-txt2); }
.fw-note p b { color: var(--fw-txt); }
.fw-note-tip { margin: 8px 0 0 !important; padding-top: 8px; border-top: 1px dashed var(--fw-line); font-size: 11.5px !important; color: var(--fw-txt3) !important; }
.fw-mini { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 2px; }
.fw-mini span { font-size: 11px; color: var(--fw-txt3); }
.fw-mini i { display: block; height: 6px; border-radius: 2px; background: linear-gradient(90deg, var(--fw-a2), var(--fw-a)); margin-top: -4px; }
.fw-lights-mini { display: flex; gap: 7px; margin: 8px 0 0; }
.fw-lights-mini span { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--fw-line); }
.fw-lights-mini .g { background: color-mix(in srgb, var(--fw-green) 28%, transparent); }
.fw-lights-mini .y { background: color-mix(in srgb, var(--fw-yellow) 28%, transparent); }
.fw-lights-mini .r { background: color-mix(in srgb, var(--fw-red) 28%, transparent); }

/* ---------- 表单 ---------- */
.fw-field { margin-bottom: 15px; }
.fw-label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.fw-label label { font-size: 13.5px; font-weight: 600; }
.fw-label label b { color: var(--fw-red); }
.fw-hint { font-size: 11.5px; color: var(--fw-txt3); text-align: right; }

.fw-range-row { display: grid; grid-template-columns: 1fr 118px; gap: 14px; align-items: center; }
.fw-range-row input[type='range'] { -webkit-appearance: none; appearance: none; height: 5px; border-radius: 2px; background: var(--fw-line); outline: none; }
.fw-range-row input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; border-radius: 3px;
  background: var(--fw-a); border: 2px solid var(--fw-card); box-shadow: 0 0 0 1px var(--fw-a); cursor: pointer;
}
.fw-range-row input[type='range']::-moz-range-thumb { width: 14px; height: 14px; border: none; border-radius: 3px; background: var(--fw-a); cursor: pointer; }

.fw-numbox { display: flex; align-items: center; border: 1px solid var(--fw-line); border-radius: 5px; background: var(--fw-card2); overflow: hidden; }
.fw-numbox input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--fw-txt); font-size: 15px; font-weight: 700; padding: 8px 10px; outline: none; }
.fw-numbox span { padding: 0 10px; font-size: 11.5px; color: var(--fw-txt3); background: var(--fw-line2); align-self: stretch; display: flex; align-items: center; }
.fw-err { display: none; margin-top: 6px; font-size: 12px; color: var(--fw-red); }
.fw-err.on { display: block; }
.fw-field.bad .fw-numbox, .fw-field.bad .fw-control, .fw-field.bad .fw-chips {
  border-color: var(--fw-red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fw-red) 12%, transparent);
}

.fw-unitseg { display: inline-flex; gap: 3px; margin-top: 8px; background: var(--fw-line2); padding: 3px; border-radius: 4px; }
.fw-unitbtn { border: 0; background: transparent; color: var(--fw-txt3); font-size: 11.5px; font-weight: 700; padding: 5px 11px; border-radius: 3px; cursor: pointer; }
.fw-unitbtn.on { background: var(--fw-a); color: #fff; }
[data-theme='dark'] .fw .fw-unitbtn.on { color: #071a10; }

.fw-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.fw-control { border: 1px solid var(--fw-line); border-radius: 5px; background: var(--fw-card2); }
.fw-control select {
  width: 100%; border: 0; background: transparent; color: var(--fw-txt);
  font-size: 13px; padding: 9px 11px; outline: none; cursor: pointer; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--fw-txt3) 50%), linear-gradient(135deg, var(--fw-txt3) 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}

.fw-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fw-check {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  border: 1px solid var(--fw-line); border-radius: 5px; padding: 9px 11px;
  font-size: 12.5px; color: var(--fw-txt2); background: var(--fw-card2);
  transition: border-color .16s, background .16s, color .16s;
}
.fw-check input { appearance: none; width: 15px; height: 15px; border: 1.5px solid var(--fw-line); border-radius: 2px; flex: none; position: relative; cursor: pointer; }
.fw-check input:checked { background: var(--fw-a); border-color: var(--fw-a); }
.fw-check input:checked::after { content: '✓'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 10px; font-weight: 800; }
[data-theme='dark'] .fw .fw-check input:checked::after { color: #071a10; }
.fw-check:has(input:checked) { border-color: var(--fw-a); background: var(--fw-a-soft); color: var(--fw-txt); }

.fw-presets { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 4px; }
.fw-preset {
  border: 1px solid var(--fw-line); background: transparent; color: var(--fw-txt2);
  font-size: 12px; padding: 6px 11px; border-radius: 3px; cursor: pointer; transition: all .16s;
}
.fw-preset:hover { border-color: var(--fw-a); color: var(--fw-a); background: var(--fw-a-soft); }

.fw-tip { margin: 12px 0 0; font-size: 12.5px; line-height: 1.78; color: var(--fw-txt3); background: var(--fw-line2); border-left: 3px solid var(--fw-a2); padding: 9px 12px; }
.fw-tip code { font-size: 11.5px; background: var(--fw-card); padding: 1px 5px; border-radius: 3px; color: var(--fw-a); }

/* ---------- 按钮条 ---------- */
.fw-actions-card {
  background: var(--fw-card); border: 1px solid var(--fw-line);
  border-left: 4px solid var(--fw-a); border-radius: var(--fw-r);
  box-shadow: var(--fw-shadow); padding: 14px 18px;
}
.fw-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.fw-actions.tight { margin-top: 12px; }
.fw-btn {
  border: 1px solid var(--fw-line); background: var(--fw-card); color: var(--fw-txt);
  font-size: 13px; font-weight: 600; padding: 9px 16px; border-radius: 4px; cursor: pointer;
  transition: transform .12s, box-shadow .18s, background .18s;
}
.fw-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -12px rgba(21, 128, 61, .7); }
.fw-btn.primary { background: var(--fw-a); border-color: var(--fw-a); color: #fff; }
[data-theme='dark'] .fw .fw-btn.primary { color: #071a10; }
.fw-btn.ghost { background: transparent; color: var(--fw-txt2); }
.fw-msg { margin-top: 10px; font-size: 12.5px; color: var(--fw-txt3); }

/* ---------- 结果卡 ---------- */
.fw-result { padding: 0; overflow: hidden; }
.fw-result-h { display: flex; align-items: center; justify-content: space-between; padding: 15px 22px; border-bottom: 1px solid var(--fw-line2); background: linear-gradient(90deg, var(--fw-a-soft), transparent 60%); }
.fw-result-h h2 { margin: 0; font-size: 15.5px; font-weight: 800; }
.fw-badge { font-size: 11.5px; font-weight: 700; padding: 4px 11px; border-radius: 3px; background: var(--fw-line2); color: var(--fw-txt3); }
.fw-badge.ok { background: color-mix(in srgb, var(--fw-green) 13%, transparent); color: var(--fw-green); }
.fw-badge.warn { background: color-mix(in srgb, var(--fw-yellow) 15%, transparent); color: var(--fw-yellow); }
.fw-badge.bad { background: color-mix(in srgb, var(--fw-red) 13%, transparent); color: var(--fw-red); }

.fw-result-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); }
.fw-result-left { padding: 20px 22px 22px; min-width: 0; border-right: 1px solid var(--fw-line2); }
.fw-result-right { padding: 20px 22px 22px; background: var(--fw-card2); min-width: 0; }

.fw-verdict { text-align: left; }
.fw-verdict-label { font-size: 11.5px; color: var(--fw-txt3); letter-spacing: 1px; }
.fw-verdict-num { display: block; font-size: 56px; line-height: 1.02; font-weight: 800; color: var(--fw-a); letter-spacing: -2px; margin-top: 2px; }
.fw-verdict-unit { font-size: 12px; color: var(--fw-txt2); }
.fw-verdict-sub { margin: 5px 0 0; font-size: 12.5px; color: var(--fw-txt2); }

.fw-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--fw-line2); margin-top: 16px; border-radius: 4px; overflow: hidden; }
.fw-kpi { background: var(--fw-card); padding: 9px 10px; }
.fw-kpi span { display: block; font-size: 10.5px; color: var(--fw-txt3); white-space: nowrap; }
.fw-kpi b { display: inline-block; font-size: 16px; font-weight: 800; margin-top: 1px; }
.fw-kpi small { font-size: 10px; color: var(--fw-txt3); margin-left: 2px; }

.fw-load { margin-top: 16px; }
.fw-load-h { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--fw-txt3); margin-bottom: 6px; }
.fw-load-h b { color: var(--fw-txt); font-size: 12.5px; }
.fw-load-track { height: 10px; border-radius: 2px; background: var(--fw-line2); overflow: hidden; }
.fw-load-track i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--fw-a2), var(--fw-a)); transition: width .45s ease, background .3s; }
.fw-load-scale { display: flex; justify-content: space-between; margin-top: 3px; font-size: 9.5px; color: var(--fw-txt3); }

.fw-advice { margin-top: 16px; }
.fw-advice h3 { margin: 0 0 7px; font-size: 12.5px; font-weight: 700; }
.fw-advice ul { margin: 0; padding-left: 17px; }
.fw-advice li { font-size: 12.2px; line-height: 1.78; color: var(--fw-txt2); margin-bottom: 4px; }
.fw-risk { margin-top: 12px; padding: 10px 12px; border-radius: 4px; background: color-mix(in srgb, var(--fw-yellow) 10%, transparent); border-left: 3px solid var(--fw-yellow); font-size: 12.2px; line-height: 1.7; color: var(--fw-txt2); }
.fw-risk strong { color: var(--fw-yellow); margin-right: 6px; }

.fw-traffic h3 { margin: 0 0 12px; font-size: 12.5px; font-weight: 800; }
.fw-lights { display: flex; flex-direction: column; gap: 8px; }
.fw-light { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 4px; border: 1px solid transparent; opacity: .38; transition: opacity .2s, background .2s, border-color .2s; }
.fw-light i { width: 26px; height: 26px; border-radius: 50%; flex: none; border: 2px solid transparent; }
.fw-light.red i { background: var(--fw-red); }
.fw-light.yellow i { background: var(--fw-yellow); }
.fw-light.green i { background: var(--fw-green); }
.fw-light span { font-size: 12px; font-weight: 700; color: var(--fw-txt2); }
.fw-light.on { opacity: 1; background: var(--fw-card); border-color: var(--fw-line); box-shadow: 0 2px 8px -5px rgba(0, 0, 0, .4); }
.fw-light.on.red i { box-shadow: 0 0 0 4px color-mix(in srgb, var(--fw-red) 20%, transparent); }
.fw-light.on.yellow i { box-shadow: 0 0 0 4px color-mix(in srgb, var(--fw-yellow) 22%, transparent); }
.fw-light.on.green i { box-shadow: 0 0 0 4px color-mix(in srgb, var(--fw-green) 20%, transparent); }
.fw-light.on span { color: var(--fw-txt); }

.fw-pipe-list { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.fw-pipe-row { display: flex; align-items: flex-start; gap: 8px; font-size: 11.5px; line-height: 1.6; color: var(--fw-txt2); }
.fw-pipe-row b { flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; }
.fw-pipe-row b.ok { background: var(--fw-green); }
.fw-pipe-row b.warn { background: var(--fw-yellow); }
.fw-pipe-row b.bad { background: var(--fw-red); }
.fw-pipe-row em { font-style: normal; font-weight: 700; color: var(--fw-txt); }

.fw-noise { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--fw-line); }
.fw-noise h4 { margin: 0 0 7px; font-size: 11.5px; color: var(--fw-txt3); font-weight: 700; letter-spacing: .4px; }
.fw-noise-track { position: relative; height: 8px; border-radius: 2px; background: linear-gradient(90deg, #86efac, #fde68a 55%, #fca5a5); }
.fw-noise-track i { position: absolute; top: -3px; width: 3px; height: 14px; background: var(--fw-txt); border-radius: 1px; transition: left .4s ease; }
.fw-noise-track s { position: absolute; top: -5px; width: 1px; height: 18px; background: rgba(0, 0, 0, .25); left: 62.5%; }
.fw-noise p { margin: 6px 0 0; font-size: 11.5px; color: var(--fw-txt3); }

/* ---------- 三档方案 ---------- */
.fw-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fw-plan {
  border: 1px solid var(--fw-line); border-top: 4px solid var(--fw-line);
  border-radius: var(--fw-r2); background: var(--fw-card2); padding: 14px;
  position: relative; transition: border-color .18s, box-shadow .18s;
}
.fw-plan.rec { border-top-color: var(--fw-a); background: var(--fw-card); box-shadow: 0 8px 22px -16px rgba(21, 128, 61, .55); }
.fw-plan-tag { position: absolute; right: 10px; top: 9px; font-size: 10px; font-weight: 800; color: #fff; background: var(--fw-a); padding: 2px 7px; border-radius: 3px; }
[data-theme='dark'] .fw .fw-plan-tag { color: #071a10; }
.fw-plan h3 { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.5px; color: var(--fw-a); }
.fw-plan h3 span { font-size: 11px; font-weight: 500; color: var(--fw-txt3); margin-left: 4px; }
.fw-plan .fw-plan-sub { margin: 4px 0 0; font-size: 11.5px; color: var(--fw-txt3); }
.fw-plan dl { margin: 10px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 5px 8px; font-size: 12px; }
.fw-plan dt { color: var(--fw-txt3); }
.fw-plan dd { margin: 0; text-align: right; font-weight: 600; }
.fw-plan .fw-plan-x { margin-top: 9px; font-size: 11.5px; line-height: 1.7; color: var(--fw-txt2); border-top: 1px dashed var(--fw-line); padding-top: 8px; }
.fw-plan .fw-plan-x i { font-style: normal; display: block; }
.fw-plan .fw-plan-x i.g { color: var(--fw-green); }
.fw-plan .fw-plan-x i.b { color: var(--fw-yellow); }
.fw-plan-pick { margin-top: 10px; width: 100%; border: 1px solid var(--fw-line); border-radius: 3px; padding: 7px; font-size: 12px; font-weight: 700; cursor: pointer; background: var(--fw-card); color: var(--fw-txt2); }
.fw-plan.rec .fw-plan-pick { background: var(--fw-a); border-color: var(--fw-a); color: #fff; }
[data-theme='dark'] .fw .fw-plan.rec .fw-plan-pick { color: #071a10; }

/* ---------- 表格 / 步骤 / 缓存 ---------- */
.fw-table-wrap { overflow-x: auto; border: 1px solid var(--fw-line); border-radius: 4px; }
.fw-table { width: 100%; border-collapse: collapse; font-size: 12.8px; min-width: 540px; }
.fw-table th, .fw-table td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--fw-line2); }
.fw-table th { background: var(--fw-line2); font-size: 11.5px; color: var(--fw-txt2); font-weight: 700; }
.fw-table td:nth-child(2) { font-weight: 700; color: var(--fw-a); white-space: nowrap; }
.fw-table td:last-child { color: var(--fw-txt3); font-size: 11.8px; }
.fw-table tr:last-child td { border-bottom: 0; }

.fw-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.fw-steps li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; font-size: 12.8px; line-height: 1.78; color: var(--fw-txt2); }
.fw-steps li b { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; background: var(--fw-a-soft); color: var(--fw-a); font-size: 11px; border-radius: 3px; }
.fw-steps li em { display: block; font-style: normal; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; color: var(--fw-a); margin-top: 2px; }

.fw-textarea {
  width: 100%; min-height: 116px; resize: vertical; border: 1px solid var(--fw-line);
  border-radius: 4px; background: var(--fw-card2); color: var(--fw-txt);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 1.7; padding: 11px;
}
.fw-history { display: flex; flex-direction: column; gap: 7px; }
.fw-hist-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid var(--fw-line); border-left: 3px solid var(--fw-a2); border-radius: 3px;
  padding: 9px 12px; background: var(--fw-card2); font-size: 12px;
}
.fw-hist-item button { border: 0; background: var(--fw-a-soft); color: var(--fw-a); font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 3px; cursor: pointer; }
.fw-empty { font-size: 12px; color: var(--fw-txt3); margin: 0; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .fw-hero { grid-template-columns: 1fr; }
  .fw-hero-art { display: none; }
  .fw-split, .fw-card.rev .fw-split { grid-template-columns: 1fr; }
  .fw-note { order: 2; }
  .fw-result-grid { grid-template-columns: 1fr; }
  .fw-result-left { border-right: 0; border-bottom: 1px solid var(--fw-line2); }
  .fw-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fw-plans { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .fw-inner { width: calc(100% - 28px); }
  .fw-hero { padding: 22px 18px; }
  .fw-card, .fw-result-left, .fw-result-right { padding: 16px 15px 18px; }
  .fw-grid2, .fw-chips { grid-template-columns: 1fr; }
  .fw-range-row { grid-template-columns: 1fr; }
  .fw-card-h small { display: none; }
  .fw-actions .fw-btn { flex: 1 1 44%; }
  .fw-verdict-num { font-size: 44px; }
  .fw-kpis { grid-template-columns: 1fr 1fr; }
}

/* ---------- 打印 ---------- */
@media print {
  .fw-actions, .fw-textarea, .fw-history, .fw-presets, .tsk-crumb-bar { display: none !important; }
  .fw { padding: 0; background: #fff; }
  .fw-card, .fw-result { box-shadow: none; border-color: #ddd; break-inside: avoid; }
  .fw-hero { box-shadow: none; }
}

/* ---------- 全局对齐：面包屑 / 内容 / 底部区块统一 ---------- */
.tsk-crumb-bar-in {
  width: min(1140px, calc(100% - 44px)) !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding: 11px 0 !important;
}
.tsk-crumb { font-size: 13px; }
@media (max-width: 700px) {
  .tsk-crumb-bar-in { width: calc(100% - 28px) !important; padding: 9px 0 !important; }
}
