/* 花洒流量与水压匹配器 · 独立主题（水蓝） */
:root {
  --shf-a: #0c4a6e;
  --shf-a2: #0284c7;
  --shf-a3: #7dd3fc;
  --shf-soft: #e0f2fe;
  --shf-bg: #f2f9fd;
  --shf-card: #ffffff;
  --shf-card2: #f7fcff;
  --shf-txt: #0f2c3d;
  --shf-txt2: #3b6076;
  --shf-txt3: #7396ab;
  --shf-line: #d3e8f4;
  --shf-line2: #e8f4fb;
  --shf-ok: #0f766e;
  --shf-warn: #b45309;
  --shf-bad: #be123c;
  --shf-shadow: 0 1px 2px rgba(12, 74, 110, .05), 0 16px 36px -24px rgba(12, 74, 110, .5);
  --shf-r: 18px;
  --shf-r2: 11px;
}

[data-theme='dark'] .shf {
  --shf-a: #7dd3fc;
  --shf-a2: #38bdf8;
  --shf-a3: #0ea5e9;
  --shf-soft: #0d2b3c;
  --shf-bg: #0b1720;
  --shf-card: #12232e;
  --shf-card2: #0f1d27;
  --shf-txt: #e5f2fa;
  --shf-txt2: #a9c6d8;
  --shf-txt3: #7695a8;
  --shf-line: #22404f;
  --shf-line2: #19323e;
  --shf-ok: #5eead4;
  --shf-warn: #fbbf24;
  --shf-bad: #fb7185;
  --shf-shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 16px 36px -24px rgba(0, 0, 0, .7);
}

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

/* ---------- Hero ---------- */
.shf-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: 26px;
  align-items: center;
  padding: 30px 32px 28px;
  border-radius: 24px;
  border: 1px solid var(--shf-line);
  background:
    radial-gradient(760px 320px at 86% 0%, rgba(125, 211, 252, .35), transparent 68%),
    linear-gradient(140deg, var(--shf-card) 0%, var(--shf-card2) 55%, #eaf7fd 100%);
  box-shadow: var(--shf-shadow);
  position: relative;
  overflow: hidden;
}
.shf-hero::before {
  content: '';
  position: absolute; left: 0; top: 24px; bottom: 24px; width: 5px;
  border-radius: 0 6px 6px 0;
  background: linear-gradient(180deg, var(--shf-a3), var(--shf-a2));
}
.shf-kicker {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .4px;
  color: var(--shf-a);
  background: var(--shf-soft);
  border: 1px solid color-mix(in srgb, var(--shf-a2) 26%, transparent);
  padding: 5px 11px; border-radius: 999px;
}
.shf-hero h1 {
  margin: 14px 0 0; font-size: clamp(26px, 3.3vw, 39px); line-height: 1.2;
  letter-spacing: -.7px; font-weight: 800;
}
.shf-hero h1 em {
  font-style: normal; display: inline-block; margin-top: 3px;
  color: var(--shf-a2);
  background: linear-gradient(180deg, transparent 64%, rgba(56, 189, 248, .26) 64%);
  padding: 0 2px;
}
.shf-sub { margin: 12px 0 0; font-size: 14.5px; line-height: 1.85; color: var(--shf-txt2); max-width: 66ch; }
.shf-sub b { color: var(--shf-txt); font-weight: 700; }
.shf-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.shf-tag {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px;
  padding: 5px 10px; border-radius: 8px;
  background: color-mix(in srgb, var(--shf-card) 80%, transparent);
  border: 1px solid var(--shf-line); color: var(--shf-txt2);
}
.shf-tag i { color: var(--shf-a2); font-style: normal; font-weight: 800; }

/* 纯 CSS 花洒 + 水柱 + 压力波形 */
.shf-hero-art { position: relative; height: 250px; }
.shf-shower { position: absolute; left: 50%; top: 6px; transform: translateX(-50%); width: 220px; height: 240px; }
.shf-pipe {
  position: absolute; left: 18px; top: 0; width: 9px; height: 58px; border-radius: 6px;
  background: linear-gradient(180deg, #94a3b8, #64748b);
}
.shf-arm {
  position: absolute; left: 18px; top: 52px; width: 106px; height: 9px; border-radius: 8px;
  background: linear-gradient(180deg, #cbd5e1, #94a3b8);
  transform-origin: left center; transform: rotate(-12deg);
}
.shf-head {
  position: absolute; left: 108px; top: 66px; width: 104px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(180deg, #e2e8f0, #cbd5e1 50%, #94a3b8);
  box-shadow: inset 0 -3px 6px rgba(15, 44, 61, .2), 0 6px 14px -8px rgba(12, 74, 110, .5);
  transform: rotate(9deg);
}
.shf-face {
  position: absolute; inset: 9px 12px 5px; border-radius: 50%;
  background: repeating-linear-gradient(90deg, #64748b 0 2px, transparent 2px 8px);
  opacity: .65;
}
.shf-face u { display: none; }
.shf-jets {
  position: absolute; left: 116px; top: 102px; width: 92px; height: 118px;
  display: grid; grid-template-columns: repeat(9, 1fr); align-items: start;
  transform: rotate(9deg);
}
.shf-jets i {
  display: block; width: 2px; height: 100%;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(125, 211, 252, .9), rgba(125, 211, 252, .05));
  transform-origin: top center;
  animation: shfJet 1.15s linear infinite;
}
.shf-jets i:nth-child(2n) { animation-delay: -.35s; height: 92%; }
.shf-jets i:nth-child(3n) { animation-delay: -.7s; height: 84%; }
.shf-jets i:nth-child(5n) { animation-delay: -.15s; height: 96%; }
@keyframes shfJet {
  0% { transform: scaleY(.35); opacity: .25; }
  45% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(.55); opacity: .35; }
}
.shf-mist {
  position: absolute; width: 12px; height: 12px; border-radius: 50%;
  background: rgba(125, 211, 252, .5); filter: blur(4px);
  animation: shfMist 2.6s ease-out infinite;
}
.shf-mist.m1 { left: 118px; top: 196px; }
.shf-mist.m2 { left: 162px; top: 206px; animation-delay: .8s; }
.shf-mist.m3 { left: 200px; top: 192px; animation-delay: 1.6s; }
@keyframes shfMist {
  0% { transform: translateY(0) scale(.5); opacity: 0; }
  35% { opacity: .9; }
  100% { transform: translateY(24px) scale(1.6); opacity: 0; }
}
.shf-pulse {
  position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--shf-a3), transparent);
  opacity: .5;
  animation: shfPulse 3s ease-in-out infinite;
}
.shf-pulse.p1 { top: 54px; }
.shf-pulse.p2 { top: 82px; animation-delay: .7s; }
.shf-pulse.p3 { top: 112px; animation-delay: 1.4s; }
@keyframes shfPulse {
  0%, 100% { transform: translateX(-18px) scaleX(.6); opacity: .2; }
  50% { transform: translateX(18px) scaleX(1); opacity: .7; }
}
.shf-chip {
  position: absolute; font-size: 11.5px; padding: 5px 10px; border-radius: 8px;
  background: var(--shf-card); border: 1px solid var(--shf-line);
  color: var(--shf-txt2); box-shadow: var(--shf-shadow); white-space: nowrap;
  animation: shfFloat 4.2s ease-in-out infinite;
}
.shf-chip b { color: var(--shf-a2); }
.shf-chip.c1 { left: 0; top: 128px; }
.shf-chip.c2 { right: 0; top: 186px; animation-delay: .8s; }
@keyframes shfFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* ---------- 主体 0.85 : 1.15 ---------- */
.shf-body {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}
.shf-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.shf-side { position: sticky; top: 82px; min-width: 0; }

.shf-card {
  background: var(--shf-card); border: 1px solid var(--shf-line);
  border-radius: var(--shf-r); box-shadow: var(--shf-shadow); padding: 20px 22px 22px;
}
.shf-card-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.shf-card-h h2 { margin: 0; font-size: 16.5px; font-weight: 800; letter-spacing: -.2px; display: flex; align-items: center; gap: 9px; }
.shf-no {
  font-size: 11px; font-weight: 800; letter-spacing: .5px; color: #fff;
  background: linear-gradient(135deg, var(--shf-a2), var(--shf-a)); padding: 3px 7px; border-radius: 6px;
}
[data-theme='dark'] .shf .shf-no { color: #06202e; }
.shf-card-h small { font-size: 12px; color: var(--shf-txt3); }

.shf-field { margin-bottom: 16px; }
.shf-field:last-child { margin-bottom: 0; }
.shf-label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.shf-label label { font-size: 13.5px; font-weight: 600; color: var(--shf-txt); }
.shf-label label b { color: var(--shf-bad); }
.shf-hint { font-size: 11.5px; color: var(--shf-txt3); text-align: right; }

.shf-range-row { display: grid; grid-template-columns: 1fr 112px; gap: 14px; align-items: center; }
.shf-range-row input[type='range'] { -webkit-appearance: none; appearance: none; height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--shf-a3), var(--shf-a2)); outline: none; }
.shf-range-row input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--shf-a); border: 3px solid var(--shf-card); box-shadow: 0 0 0 1px var(--shf-a2);
  cursor: pointer;
}
.shf-range-row input[type='range']::-moz-range-thumb { width: 16px; height: 16px; border: none; border-radius: 50%; background: var(--shf-a); cursor: pointer; }

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

.shf-seg { display: flex; gap: 6px; flex-wrap: wrap; background: var(--shf-line2); padding: 4px; border-radius: var(--shf-r2); }
.shf-segbtn {
  flex: 1 1 auto; min-width: 82px; border: 0; background: transparent; color: var(--shf-txt2);
  font-size: 12.5px; font-weight: 600; padding: 9px 8px; border-radius: 8px; cursor: pointer;
  transition: background .18s, color .18s, box-shadow .18s;
}
.shf-segbtn.on { background: var(--shf-card); color: var(--shf-a2); box-shadow: 0 1px 3px rgba(12, 74, 110, .16); font-weight: 800; }
.shf-segbtn:hover { color: var(--shf-a2); }

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

.shf-switch-row { display: flex; align-items: center; gap: 9px; height: 40px; }
.shf-switch { appearance: none; width: 42px; height: 24px; border-radius: 999px; background: var(--shf-line); position: relative; cursor: pointer; transition: background .2s; flex: none; }
.shf-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.shf-switch:checked { background: var(--shf-a2); }
.shf-switch:checked::after { transform: translateX(18px); }
.shf-switch-txt { font-size: 12.5px; color: var(--shf-txt2); }

.shf-presets { display: grid; grid-template-columns: 1fr; gap: 8px; }
.shf-preset {
  border: 1px solid var(--shf-line); background: var(--shf-card2); color: var(--shf-txt2);
  font-size: 13px; font-weight: 600; padding: 10px 12px; border-radius: 10px; text-align: left; cursor: pointer;
  transition: border-color .18s, background .18s, transform .12s;
}
.shf-preset:hover { border-color: var(--shf-a2); background: var(--shf-soft); transform: translateX(2px); }

.shf-tip { margin: 12px 0 0; font-size: 12.5px; line-height: 1.75; color: var(--shf-txt3); background: var(--shf-line2); border-left: 3px solid var(--shf-a3); padding: 9px 12px; border-radius: 0 8px 8px 0; }
.shf-tip code { font-size: 12px; background: var(--shf-card); padding: 1px 5px; border-radius: 4px; color: var(--shf-a2); }

.shf-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.shf-actions.tight { margin-top: 12px; }
.shf-btn {
  border: 1px solid var(--shf-line); background: var(--shf-card); color: var(--shf-txt);
  font-size: 13px; font-weight: 600; padding: 10px 16px; border-radius: 10px; cursor: pointer;
  transition: transform .12s, box-shadow .18s, background .18s;
}
.shf-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px -10px rgba(12, 74, 110, .65); }
.shf-btn.primary { background: linear-gradient(135deg, var(--shf-a2), var(--shf-a)); border-color: var(--shf-a); color: #fff; }
[data-theme='dark'] .shf .shf-btn.primary { color: #06202e; }
.shf-btn.ghost { background: transparent; color: var(--shf-txt2); }
.shf-msg { margin-top: 12px; font-size: 12.5px; color: var(--shf-txt3); }

/* ---------- 结果卡 ---------- */
.shf-result {
  background: var(--shf-card); border: 1px solid var(--shf-line); border-radius: var(--shf-r);
  box-shadow: var(--shf-shadow); overflow: hidden;
}
.shf-result-h { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--shf-line2); }
.shf-result-h h2 { margin: 0; font-size: 15px; font-weight: 800; }
.shf-badge { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--shf-line2); color: var(--shf-txt3); }
.shf-badge.ok { background: color-mix(in srgb, var(--shf-ok) 16%, transparent); color: var(--shf-ok); }
.shf-badge.warn { background: color-mix(in srgb, var(--shf-warn) 18%, transparent); color: var(--shf-warn); }
.shf-badge.bad { background: color-mix(in srgb, var(--shf-bad) 16%, transparent); color: var(--shf-bad); }

.shf-verdict { padding: 20px 20px 16px; text-align: center; background: linear-gradient(180deg, var(--shf-soft), transparent); }
.shf-verdict-label { display: block; font-size: 12px; color: var(--shf-txt3); letter-spacing: .5px; }
.shf-verdict-row { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin-top: 2px; }
.shf-verdict-num { font-size: 52px; line-height: 1.02; font-weight: 800; color: var(--shf-a2); letter-spacing: -2px; }
.shf-verdict-unit { font-size: 13px; color: var(--shf-txt2); }
.shf-verdict-sub { margin: 6px 0 0; font-size: 12.5px; color: var(--shf-txt2); }

.shf-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--shf-line2); }
.shf-kpi { background: var(--shf-card); padding: 13px 16px; }
.shf-kpi span { display: block; font-size: 11.5px; color: var(--shf-txt3); }
.shf-kpi b { display: inline-block; font-size: 19px; font-weight: 800; color: var(--shf-txt); margin-top: 2px; letter-spacing: -.4px; }
.shf-kpi small { font-size: 11px; color: var(--shf-txt3); margin-left: 3px; }

.shf-curve { padding: 16px 18px 10px; border-top: 1px solid var(--shf-line2); }
.shf-curve-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.shf-curve-h h3 { margin: 0; font-size: 13px; font-weight: 700; }
.shf-curve-h span { font-size: 11.5px; color: var(--shf-a2); font-weight: 600; }
.shf-curve svg { width: 100%; height: 156px; display: block; }
.shf-zone.red { fill: rgba(190, 18, 60, .1); }
.shf-zone.amber { fill: rgba(180, 83, 9, .1); }
.shf-zone.green { fill: rgba(15, 118, 110, .09); }
.shf-grid line { stroke: var(--shf-line); stroke-width: 1; }
.shf-axis { font-size: 9.5px; fill: var(--shf-txt3); text-anchor: middle; }
.shf-curve-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; font-size: 11px; color: var(--shf-txt3); }
.shf-curve-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 4px; }
.shf-curve-legend .l-red { background: rgba(190, 18, 60, .35); }
.shf-curve-legend .l-amber { background: rgba(180, 83, 9, .35); }
.shf-curve-legend .l-green { background: rgba(15, 118, 110, .35); }

.shf-pump {
  display: grid; grid-template-columns: 16px 1fr auto; align-items: center; gap: 12px;
  margin: 6px 16px 12px; padding: 12px 14px; border-radius: 12px;
  background: var(--shf-line2); border: 1px solid var(--shf-line);
  transition: background .2s, border-color .2s;
}
.shf-pump.state-ok { background: color-mix(in srgb, var(--shf-ok) 10%, transparent); border-color: color-mix(in srgb, var(--shf-ok) 34%, transparent); }
.shf-pump.state-warn { background: color-mix(in srgb, var(--shf-warn) 11%, transparent); border-color: color-mix(in srgb, var(--shf-warn) 36%, transparent); }
.shf-pump.state-bad { background: color-mix(in srgb, var(--shf-bad) 11%, transparent); border-color: color-mix(in srgb, var(--shf-bad) 36%, transparent); }
.shf-light { width: 14px; height: 14px; border-radius: 50%; background: var(--shf-txt3); box-shadow: 0 0 0 4px color-mix(in srgb, var(--shf-txt3) 16%, transparent); }
.shf-pump.state-ok .shf-light { background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); }
.shf-pump.state-warn .shf-light { background: #f59e0b; box-shadow: 0 0 0 4px rgba(245, 158, 11, .2); }
.shf-pump.state-bad .shf-light { background: #ef4444; box-shadow: 0 0 0 4px rgba(239, 68, 68, .2); animation: shfBlink 1.4s ease-in-out infinite; }
@keyframes shfBlink { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.shf-pump-body strong { display: block; font-size: 13px; color: var(--shf-txt); }
.shf-pump-body p { margin: 2px 0 0; font-size: 12px; line-height: 1.65; color: var(--shf-txt2); }
.shf-pump-power { font-size: 12px; font-weight: 700; color: var(--shf-a2); white-space: nowrap; }

.shf-advice { padding: 2px 20px 16px; }
.shf-advice h3 { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--shf-txt); }
.shf-advice ul { margin: 0; padding-left: 18px; }
.shf-advice li { font-size: 12.5px; line-height: 1.8; color: var(--shf-txt2); margin-bottom: 5px; }
.shf-risk { margin: 0 16px 16px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--shf-warn) 12%, transparent); border: 1px solid color-mix(in srgb, var(--shf-warn) 35%, transparent); font-size: 12.5px; line-height: 1.7; color: var(--shf-txt2); }
.shf-risk strong { color: var(--shf-warn); margin-right: 6px; }

/* ---------- 三档配置 ---------- */
.shf-plans-card { margin-top: 18px; }
.shf-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.shf-plan {
  border: 1.5px solid var(--shf-line); border-radius: 14px; background: var(--shf-card2);
  padding: 16px 16px 14px; position: relative; display: flex; flex-direction: column;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.shf-plan:hover { transform: translateY(-2px); box-shadow: var(--shf-shadow); }
.shf-plan.rec { border-color: var(--shf-a2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--shf-a2) 15%, transparent); background: var(--shf-card); }
.shf-plan-tag { position: absolute; right: 12px; top: -10px; font-size: 10.5px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--shf-a2), var(--shf-a)); padding: 3px 9px; border-radius: 999px; }
[data-theme='dark'] .shf .shf-plan-tag { color: #06202e; }
.shf-plan h3 { margin: 0; font-size: 18px; font-weight: 800; color: var(--shf-txt); letter-spacing: -.3px; }
.shf-plan h3 span { display: block; font-size: 11.5px; color: var(--shf-txt3); font-weight: 500; margin-top: 2px; }
.shf-plan .shf-plan-price { margin: 8px 0 10px; font-size: 15px; font-weight: 800; color: var(--shf-a2); }
.shf-plan dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; font-size: 12.5px; }
.shf-plan dt { color: var(--shf-txt3); }
.shf-plan dd { margin: 0; text-align: right; font-weight: 600; color: var(--shf-txt); }
.shf-plan .shf-plan-note { margin-top: 10px; font-size: 12px; line-height: 1.75; color: var(--shf-txt3); }
.shf-plan .shf-plan-note b { color: var(--shf-ok); font-weight: 600; }
.shf-plan .shf-plan-note b.bad { color: var(--shf-warn); }
.shf-plan .shf-plan-pick { margin-top: auto; padding-top: 12px; }
.shf-plan .shf-plan-pick button {
  width: 100%; border: 0; border-radius: 9px; padding: 9px; font-size: 12.5px; font-weight: 700; cursor: pointer;
  background: var(--shf-line2); color: var(--shf-txt2); transition: background .18s, color .18s;
}
.shf-plan.rec .shf-plan-pick button { background: linear-gradient(135deg, var(--shf-a2), var(--shf-a)); color: #fff; }
[data-theme='dark'] .shf .shf-plan.rec .shf-plan-pick button { color: #06202e; }

/* ---------- 表格 / 步骤 ---------- */
.shf-table-wrap { overflow-x: auto; border: 1px solid var(--shf-line); border-radius: 12px; }
.shf-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 560px; }
.shf-table th, .shf-table td { padding: 10px 13px; text-align: left; border-bottom: 1px solid var(--shf-line2); }
.shf-table th { background: var(--shf-line2); font-size: 12px; color: var(--shf-txt2); font-weight: 700; }
.shf-table td:last-child { color: var(--shf-txt3); font-size: 12px; }
.shf-table tr:last-child td { border-bottom: 0; }

.shf-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.shf-steps li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; font-size: 13px; line-height: 1.8; color: var(--shf-txt2); }
.shf-steps li > b {
  display: flex; align-items: center; justify-content: center; width: 24px; height: 24px;
  border-radius: 50%; background: var(--shf-soft); color: var(--shf-a2); font-size: 12px;
}
.shf-steps li div b { color: var(--shf-txt); }
.shf-steps li em { display: block; font-style: normal; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--shf-a2); margin-top: 3px; }

.shf-textarea {
  width: 100%; min-height: 120px; resize: vertical; border: 1px solid var(--shf-line);
  border-radius: 12px; background: var(--shf-card2); color: var(--shf-txt);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; line-height: 1.7; padding: 12px;
}

.shf-history { display: flex; flex-direction: column; gap: 8px; }
.shf-hist-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid var(--shf-line); border-radius: 10px; padding: 10px 12px; background: var(--shf-card2); font-size: 12.5px;
}
.shf-hist-item button { border: 0; background: var(--shf-soft); color: var(--shf-a2); font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 7px; cursor: pointer; }
.shf-empty { font-size: 12.5px; color: var(--shf-txt3); margin: 0; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .shf-hero { grid-template-columns: 1fr; }
  .shf-hero-art { display: none; }
  .shf-body { grid-template-columns: 1fr; }
  .shf-side { position: static; }
  .shf-plans { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .shf-inner { width: calc(100% - 28px); }
  .shf-hero { padding: 22px 18px; border-radius: 16px; }
  .shf-card { padding: 16px 16px 18px; }
  .shf-grid2 { grid-template-columns: 1fr; }
  .shf-range-row { grid-template-columns: 1fr; }
  .shf-kpis { grid-template-columns: 1fr 1fr; }
  .shf-verdict-num { font-size: 42px; }
  .shf-actions .shf-btn { flex: 1 1 44%; }
  .shf-label { flex-direction: column; align-items: flex-start; gap: 2px; }
  .shf-hint { text-align: left; }
}

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

/* ---------- 全局对齐：面包屑 / 内容 / 底部区块统一 ---------- */
.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; }
}
