/* 疝气手术指征自查 · 赭石三步向导主题 */
:root {
  --he-a: #9a3412;
  --he-a2: #c2410c;
  --he-a3: #fdba74;
  --he-a-soft: #ffedd5;
  --he-bg: #fdf7f2;
  --he-card: #ffffff;
  --he-card2: #fdf8f4;
  --he-txt: #2f1a10;
  --he-txt2: #6f5245;
  --he-txt3: #a18476;
  --he-line: #ecdcd1;
  --he-line2: #f8efe8;
  --he-ok: #15803d;
  --he-warn: #b45309;
  --he-bad: #b91c1c;
  --he-shadow: 0 1px 2px rgba(154, 52, 18, .06), 0 12px 32px -18px rgba(154, 52, 18, .32);
  --he-r: 15px;
  --he-r2: 10px;
}

[data-theme='dark'] .he {
  --he-a: #fb923c;
  --he-a2: #f97316;
  --he-a3: #7c2d12;
  --he-a-soft: #3a1e0c;
  --he-bg: #150d08;
  --he-card: #22150e;
  --he-card2: #1a100a;
  --he-txt: #f9ece2;
  --he-txt2: #d8bcab;
  --he-txt3: #a98d7d;
  --he-line: #3f2818;
  --he-line2: #2c1b11;
  --he-ok: #4ade80;
  --he-warn: #fbbf24;
  --he-bad: #fb7185;
  --he-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -18px rgba(0, 0, 0, .7);
}

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

/* ---------- 免责条 ---------- */
.he-disclaimer {
  display: flex; align-items: center; gap: 10px;
  margin-top: 18px; padding: 11px 16px; border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--he-bad) 35%, var(--he-line));
  background: color-mix(in srgb, var(--he-bad) 8%, var(--he-card));
}
.he-disclaimer-ico {
  flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--he-bad); color: #fff; font-weight: 800; font-size: 14px;
}
.he-disclaimer p { margin: 0; font-size: 13px; line-height: 1.65; }
.he-disclaimer p b { color: var(--he-bad); }

/* ---------- Hero ---------- */
.he-hero {
  margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: 22px; align-items: center; padding: 28px 30px 24px; border-radius: 20px;
  background:
    radial-gradient(700px 260px at 92% 8%, rgba(194, 65, 12, .14), transparent 62%),
    linear-gradient(140deg, var(--he-card) 0%, var(--he-card2) 100%);
  border: 1px solid var(--he-line); box-shadow: var(--he-shadow);
}
.he-kicker {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700;
  color: var(--he-a); background: var(--he-a-soft);
  border: 1px solid color-mix(in srgb, var(--he-a) 24%, transparent);
  padding: 5px 11px; border-radius: 999px;
}
.he-hero h1 { margin: 14px 0 0; font-size: clamp(26px, 3.2vw, 39px); line-height: 1.24; font-weight: 800; letter-spacing: -.7px; }
.he-hero h1 em {
  font-style: normal; color: var(--he-a);
  background: linear-gradient(180deg, transparent 64%, color-mix(in srgb, var(--he-a) 20%, transparent) 64%);
}
.he-sub { margin: 12px 0 0; max-width: 66ch; font-size: 14.5px; line-height: 1.85; color: var(--he-txt2); }
.he-sub b { color: var(--he-txt); }
.he-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.he-tag { font-size: 12.5px; padding: 5px 10px; border-radius: 8px; background: var(--he-card2); border: 1px solid var(--he-line); color: var(--he-txt2); }
.he-tag i { color: var(--he-a); font-style: normal; font-weight: 800; margin-right: 3px; }

/* 纯 CSS 警示灯 + 腹壁插画 */
.he-hero-art { position: relative; height: 230px; }
.he-lamp {
  position: absolute; left: 16px; top: 6px; display: flex; flex-direction: column; gap: 7px;
  padding: 10px 9px; border-radius: 12px; background: var(--he-card);
  border: 1px solid var(--he-line); box-shadow: var(--he-shadow);
}
.he-lamp-dot { width: 16px; height: 16px; border-radius: 50%; display: block; opacity: .35; }
.he-lamp-dot.red { background: #dc2626; animation: heBlink 2.6s steps(1) infinite; }
.he-lamp-dot.amber { background: #f59e0b; }
.he-lamp-dot.green { background: #16a34a; }
@keyframes heBlink { 0%, 55% { opacity: .95; box-shadow: 0 0 12px 2px rgba(220, 38, 38, .5); } 56%, 100% { opacity: .3; } }
.he-torso { position: absolute; left: 50%; top: 14px; transform: translateX(-38%); width: 138px; height: 200px; }
.he-torso-body {
  position: absolute; inset: 0; border-radius: 44px 44px 26px 26px;
  background: linear-gradient(160deg, #fde8d7, #f6cbaa);
  border: 1px solid #e7b994;
}
[data-theme='dark'] .he .he-torso-body { background: linear-gradient(160deg, #4a2a16, #361d0f); border-color: #5b3620; }
.he-bulge {
  position: absolute; left: 18px; top: 92px; width: 52px; height: 52px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fdba74, #ea7a3c);
  box-shadow: 0 6px 14px -8px rgba(154, 52, 18, .7);
  animation: hePulse 3.4s ease-in-out infinite;
}
@keyframes hePulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
.he-torso-line { position: absolute; left: 24px; right: 24px; height: 1px; background: color-mix(in srgb, var(--he-a) 26%, transparent); }
.he-torso-line.l1 { top: 84px; }
.he-torso-line.l2 { top: 150px; }
.he-chip {
  position: absolute; font-size: 11.5px; padding: 5px 10px; border-radius: 8px;
  background: var(--he-card); border: 1px solid var(--he-line); color: var(--he-txt2);
  box-shadow: var(--he-shadow); white-space: nowrap;
}
.he-chip b { color: var(--he-a); }
.he-chip.c1 { right: 0; top: 46px; animation: heFloat 4.4s ease-in-out infinite; }
.he-chip.c2 { right: 10px; top: 152px; animation: heFloat 4.4s ease-in-out .8s infinite; }
@keyframes heFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---------- 卡片 ---------- */
.he-card { margin-top: 16px; padding: 20px 22px 22px; background: var(--he-card); border: 1px solid var(--he-line); border-radius: var(--he-r); box-shadow: var(--he-shadow); }
.he-card-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.he-card-h h2 { margin: 0; font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 9px; }
.he-no { font-size: 11px; font-weight: 800; color: #fff; background: var(--he-a); padding: 3px 7px; border-radius: 6px; }
[data-theme='dark'] .he .he-no { color: #2b1508; }
.he-card-h small { font-size: 12px; color: var(--he-txt3); }

/* ---------- 步骤条 ---------- */
.he-stepsbar {
  position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
  padding-bottom: 12px; border-bottom: 1px solid var(--he-line2); margin-bottom: 8px;
}
.he-tab {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 9px;
  border: 1px solid var(--he-line); background: var(--he-card2); color: var(--he-txt2);
  padding: 11px 10px; border-radius: 11px; cursor: pointer; font-size: 13px; font-weight: 600;
  transition: border-color .18s, background .18s, color .18s, transform .12s;
}
.he-tab b {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: 11.5px; font-weight: 800; background: var(--he-card); border: 1px solid var(--he-line); color: var(--he-txt3);
}
.he-tab.on { border-color: var(--he-a); background: var(--he-a-soft); color: var(--he-txt); }
.he-tab.on b { background: var(--he-a); border-color: var(--he-a); color: #fff; }
[data-theme='dark'] .he .he-tab.on b { color: #2b1508; }
.he-tab.done b { background: color-mix(in srgb, var(--he-ok) 20%, var(--he-card)); border-color: color-mix(in srgb, var(--he-ok) 45%, transparent); color: var(--he-ok); }
.he-tab-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 33.33%; background: var(--he-a); transition: width .3s ease; }
.he-stepcount { margin: 0 0 14px; font-size: 12px; color: var(--he-txt3); }
.he-stepcount b { color: var(--he-a); }

/* ---------- 面板 ---------- */
.he-panel { display: none; }
.he-panel.on { display: block; animation: heFade .25s ease; }
@keyframes heFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.he-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.he-field { margin-bottom: 14px; }
.he-label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.he-label.mt { margin-top: 18px; }
.he-label label, .he-label > span:first-child { font-size: 13.5px; font-weight: 600; color: var(--he-txt); }
.he-label label b, .he-label > span b { color: var(--he-bad); }
.he-hint { font-size: 11.5px; color: var(--he-txt3); }

.he-control { border: 1px solid var(--he-line); border-radius: var(--he-r2); background: var(--he-card2); transition: border-color .18s, box-shadow .18s; }
.he-control select {
  width: 100%; border: 0; background-color: transparent; color: var(--he-txt);
  font-size: 13.5px; padding: 10px 32px 10px 11px; outline: none; cursor: pointer; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--he-txt3) 50%), linear-gradient(135deg, var(--he-txt3) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.he-numbox {
  display: flex; align-items: stretch; overflow: hidden; background: var(--he-card2);
  border: 1px solid var(--he-line); border-radius: var(--he-r2);
  transition: border-color .18s, box-shadow .18s;
}
.he-numbox.wide { max-width: 220px; }
.he-numbox input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--he-txt); font-size: 15px; font-weight: 700; padding: 10px 11px; outline: none; }
.he-numbox span { display: flex; align-items: center; padding: 0 10px; font-size: 12px; color: var(--he-txt3); background: var(--he-line2); }
.he-field.bad .he-numbox, .he-field.bad .he-control { border-color: var(--he-bad); box-shadow: 0 0 0 3px color-mix(in srgb, var(--he-bad) 14%, transparent); }
.he-err { display: none; margin-top: 6px; font-size: 12px; color: var(--he-bad); }
.he-err.on { display: block; }

.he-range-row { display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 14px; align-items: center; }
.he-range { width: 100%; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 999px; background: var(--he-line); outline: none; }
.he-range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--he-card); border: 3px solid var(--he-a); box-shadow: 0 2px 6px rgba(0, 0, 0, .2); cursor: pointer; }
.he-range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--he-a); background: var(--he-card); cursor: pointer; }

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

/* 疼痛分段 */
.he-seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.he-segbtn {
  border: 1px solid var(--he-line); background: var(--he-card2); color: var(--he-txt2);
  border-radius: 10px; padding: 12px 8px; font-size: 12.5px; cursor: pointer; font-weight: 600;
  transition: border-color .18s, background .18s, color .18s;
}
.he-segbtn.on { border-color: var(--he-a); background: var(--he-a); color: #fff; }
[data-theme='dark'] .he .he-segbtn.on { color: #2b1508; }
.he-segbtn.on[data-pain='3'] { background: var(--he-bad); border-color: var(--he-bad); }

.he-redbox {
  margin-top: 16px; padding: 14px 15px; border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--he-bad) 35%, var(--he-line));
  background: color-mix(in srgb, var(--he-bad) 6%, var(--he-card));
}
.he-redbox h3 { margin: 0 0 10px; font-size: 13px; font-weight: 800; color: var(--he-bad); }

.he-tip {
  margin: 12px 0 0; font-size: 12.5px; line-height: 1.8; color: var(--he-txt3);
  background: var(--he-line2); border-left: 3px solid var(--he-a2); padding: 9px 12px; border-radius: 0 8px 8px 0;
}
.he-tip code { font-size: 12px; padding: 1px 5px; border-radius: 4px; background: var(--he-card); color: var(--he-a); }
.he-tip.mb { margin: 0 0 14px; }
.he-tip.mt { margin-top: 14px; }

.he-nav { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--he-line); }
.he-btn {
  border: 1px solid var(--he-line); background: var(--he-card); color: var(--he-txt);
  font-size: 13px; font-weight: 600; padding: 10px 16px; border-radius: 10px; cursor: pointer;
  transition: transform .12s, box-shadow .18s, background .18s;
}
.he-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -12px rgba(0, 0, 0, .5); }
.he-btn.primary { background: var(--he-a); border-color: var(--he-a); color: #fff; }
[data-theme='dark'] .he .he-btn.primary { color: #2b1508; }
.he-btn.ghost { background: transparent; color: var(--he-txt2); }
.he-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.he-msg { margin-top: 10px; font-size: 12.5px; color: var(--he-txt3); }
.he-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.he-actions.tight { margin-top: 12px; }
.he-actions.main-actions { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--he-line); }

/* ---------- 结果 ---------- */
.he-result {
  margin-top: 16px; border-radius: var(--he-r); overflow: hidden;
  background: var(--he-card); border: 1px solid var(--he-line); box-shadow: var(--he-shadow);
}
.he-result-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 22px; border-bottom: 1px solid var(--he-line2); }
.he-result-head h2 { margin: 0; font-size: 16px; font-weight: 800; }
.he-result-head p { margin: 4px 0 0; font-size: 12px; color: var(--he-txt3); }
.he-lamp-live { display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--he-card2); border: 1px solid var(--he-line); }
.he-lamp-live .dot { width: 9px; height: 9px; border-radius: 50%; display: block; opacity: .28; }
.he-lamp-live .dot.red { background: #dc2626; }
.he-lamp-live .dot.amber { background: #f59e0b; }
.he-lamp-live .dot.green { background: #16a34a; }
.he-lamp-live span { font-size: 12px; font-weight: 700; color: var(--he-txt2); margin-left: 3px; }
.he-lamp-live.red .dot.red { opacity: 1; box-shadow: 0 0 8px 1px rgba(220, 38, 38, .5); }
.he-lamp-live.amber .dot.amber { opacity: 1; box-shadow: 0 0 8px 1px rgba(245, 158, 11, .5); }
.he-lamp-live.green .dot.green { opacity: 1; box-shadow: 0 0 8px 1px rgba(22, 163, 74, .5); }
.he-lamp-live.red span { color: #dc2626; }
.he-lamp-live.amber span { color: #b45309; }
.he-lamp-live.green span { color: #15803d; }

.he-result-body { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 18px; padding: 20px 22px; }
.he-priority-card {
  position: relative; padding: 18px 18px 16px; border-radius: 13px;
  border: 1.5px solid var(--he-line); background: var(--he-card2);
  transition: border-color .25s, background .25s;
}
.he-priority-card.red { border-color: var(--he-bad); background: color-mix(in srgb, var(--he-bad) 7%, var(--he-card)); }
.he-priority-card.amber { border-color: var(--warn, #d97706); background: color-mix(in srgb, #d97706 7%, var(--he-card)); }
.he-priority-card.green { border-color: var(--he-ok); background: color-mix(in srgb, var(--he-ok) 6%, var(--he-card)); }
.he-priority-tag { display: inline-block; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--he-line2); color: var(--he-txt3); }
.he-priority-card.red .he-priority-tag { background: color-mix(in srgb, var(--he-bad) 16%, transparent); color: var(--he-bad); }
.he-priority-card.amber .he-priority-tag { background: color-mix(in srgb, #d97706 16%, transparent); color: #b45309; }
.he-priority-card.green .he-priority-tag { background: color-mix(in srgb, var(--he-ok) 16%, transparent); color: var(--he-ok); }
.he-priority-card h3 { margin: 9px 0 0; font-size: 21px; font-weight: 800; letter-spacing: -.4px; }
.he-priority-card p { margin: 6px 0 12px; font-size: 12.5px; line-height: 1.75; color: var(--he-txt3); }
.he-priority-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.he-priority-meta div { background: var(--he-card); border: 1px solid var(--he-line); border-radius: 9px; padding: 8px 10px; }
.he-priority-meta span { display: block; font-size: 10.5px; color: var(--he-txt3); }
.he-priority-meta b { display: block; margin-top: 2px; font-size: 13px; font-weight: 800; color: var(--he-txt); }

.he-viz { min-width: 0; }
.he-viz-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.he-viz-h span:first-child { font-size: 12.5px; font-weight: 700; color: var(--he-txt2); }
.he-viz-h span:last-child { font-size: 11px; color: var(--he-txt3); }
.he-gradebar { position: relative; display: flex; height: 34px; border-radius: 9px; border: 1px solid var(--he-line); }
.he-gseg { display: flex; flex-direction: column; justify-content: center; align-items: center; font-size: 11px; color: var(--he-txt2); flex: 1 1 0; }
.he-gseg i { font-style: normal; font-weight: 800; font-size: 11.5px; }
.he-gseg em { font-style: normal; font-size: 9.5px; opacity: .8; }
.he-gseg.green { background: color-mix(in srgb, var(--he-ok) 18%, var(--he-card)); border-right: 1px solid var(--he-card); }
.he-gseg.amber { background: color-mix(in srgb, #f59e0b 20%, var(--he-card)); border-right: 1px solid var(--he-card); }
.he-gseg.red { background: color-mix(in srgb, var(--he-bad) 18%, var(--he-card)); }
.he-gmarker {
  position: absolute; top: -10px; left: 16.7%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; transition: left .35s ease; opacity: 0;
}
.he-gmarker.show { opacity: 1; }
.he-gmarker span { font-size: 11px; font-weight: 800; color: #fff; background: var(--he-a); padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.he-gmarker::after { content: ''; width: 2px; height: 24px; background: var(--he-a); }

.he-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
.he-summary div { background: var(--he-card2); border: 1px solid var(--he-line); border-radius: 9px; padding: 9px 11px; min-width: 0; }
.he-summary span { display: block; font-size: 10.5px; color: var(--he-txt3); }
.he-summary b { display: block; margin-top: 2px; font-size: 12px; font-weight: 700; color: var(--he-txt); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.he-advice { padding: 0 22px 6px; }
.he-advice h3 { margin: 0 0 8px; font-size: 13px; font-weight: 800; }
.he-advice ul { margin: 0; padding-left: 18px; }
.he-advice li { font-size: 12.5px; line-height: 1.8; color: var(--he-txt2); margin-bottom: 3px; }
.he-risk {
  margin: 8px 20px 14px; padding: 10px 12px; border-radius: 10px;
  background: color-mix(in srgb, var(--he-warn) 11%, transparent);
  border: 1px solid color-mix(in srgb, var(--he-warn) 36%, transparent);
  font-size: 12.5px; line-height: 1.75; color: var(--he-txt2);
}
.he-risk strong { color: var(--he-warn); margin-right: 6px; }
.he-redflag {
  margin: 0 20px 18px; padding: 13px 15px; border-radius: 11px;
  background: color-mix(in srgb, var(--he-bad) 12%, var(--he-card)); border: 1.5px solid var(--he-bad);
}
.he-redflag h3 { margin: 0 0 6px; font-size: 13.5px; font-weight: 800; color: var(--he-bad); }
.he-redflag p { margin: 0; font-size: 12.5px; line-height: 1.8; }

/* ---------- 三档 ---------- */
.he-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.he-plan {
  position: relative; padding: 16px 15px 14px; border-radius: 13px;
  border: 1.5px solid var(--he-line); background: var(--he-card2);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.he-plan.on { border-color: var(--he-a); background: var(--he-card); box-shadow: 0 0 0 3px color-mix(in srgb, var(--he-a) 15%, transparent); }
.he-plan.picked { border-style: dashed; }
.he-plan-tag { position: absolute; right: 11px; top: -10px; font-size: 10.5px; font-weight: 800; color: #fff; background: var(--he-a); padding: 3px 9px; border-radius: 999px; }
[data-theme='dark'] .he .he-plan-tag { color: #2b1508; }
.he-plan h3 { margin: 0; font-size: 19px; font-weight: 800; }
.he-plan h3 span { font-size: 11.5px; font-weight: 500; color: var(--he-txt3); margin-left: 5px; }
.he-plan p { margin: 5px 0 10px; font-size: 12px; line-height: 1.7; color: var(--he-txt3); }
.he-plan dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 8px; font-size: 12px; }
.he-plan dt { color: var(--he-txt3); }
.he-plan dd { margin: 0; text-align: right; font-weight: 600; color: var(--he-txt); }
.he-plan .he-plan-pick { margin-top: 12px; width: 100%; padding: 8px; border-radius: 9px; cursor: pointer; border: 1px solid var(--he-line); background: var(--he-line2); color: var(--he-txt2); font-size: 12px; font-weight: 700; }
.he-plan.on .he-plan-pick { background: var(--he-a); border-color: var(--he-a); color: #fff; }
[data-theme='dark'] .he .he-plan.on .he-plan-pick { color: #2b1508; }

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

.he-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.he-steps li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; font-size: 13px; line-height: 1.8; color: var(--he-txt2); }
.he-steps li:only-child { display: block; }
.he-steps li > b { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-size: 11.5px; font-weight: 800; color: var(--he-a); background: var(--he-a-soft); }
.he-steps li em { display: block; margin-top: 3px; font-style: normal; font-size: 12px; color: var(--he-a); font-family: ui-monospace, Menlo, monospace; }

.he-textarea {
  width: 100%; min-height: 96px; resize: vertical; padding: 11px 13px;
  border: 1px solid var(--he-line); border-radius: 10px; background: var(--he-card2);
  color: var(--he-txt); font-size: 12.5px; line-height: 1.8; font-family: ui-monospace, Menlo, monospace; outline: none;
}
.he-textarea:focus { border-color: var(--he-a); box-shadow: 0 0 0 3px color-mix(in srgb, var(--he-a) 14%, transparent); }
.he-batchwrap { margin-top: 12px; }
.he-empty { margin: 0; font-size: 12.5px; color: var(--he-txt3); }
.he-history { display: flex; flex-direction: column; gap: 8px; }
.he-hist-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid var(--he-line); border-radius: 10px; padding: 10px 12px;
  background: var(--he-card2); font-size: 12.5px; color: var(--he-txt2);
}
.he-hist-item button { border: 0; border-radius: 7px; padding: 5px 10px; cursor: pointer; font-size: 12px; font-weight: 700; color: var(--he-a); background: var(--he-a-soft); }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .he-hero { grid-template-columns: 1fr; }
  .he-hero-art { display: none; }
  .he-result-body { grid-template-columns: 1fr; }
  .he-plans { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .he-stepsbar { grid-template-columns: 1fr; }
  .he-tab-progress { display: none; }
  .he-seg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .he-priority-meta, .he-summary { grid-template-columns: 1fr; }
  .he-range-row { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 700px) {
  .he-inner { width: calc(100% - 28px); }
  .he-hero { padding: 22px 18px; border-radius: 16px; }
  .he-card { padding: 16px 15px 18px; }
  .he-grid2, .he-chips { grid-template-columns: 1fr; }
  .he-result-head { flex-direction: column; align-items: flex-start; }
  .he-priority-card h3 { font-size: 18px; }
  .he-actions .he-btn { flex: 1 1 44%; }
}

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

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