/* IPSS 前列腺症状评分 + PSA 解读 · 石青单栏窄栏主题 */
:root {
  --ip-a: #0e7490;
  --ip-a2: #0891b2;
  --ip-a3: #67e8f9;
  --ip-a-soft: #e0f2fe;
  --ip-bg: #f2fafb;
  --ip-card: #ffffff;
  --ip-card2: #f6fbfc;
  --ip-txt: #0f2b33;
  --ip-txt2: #466470;
  --ip-txt3: #7b95a0;
  --ip-line: #d5e8ed;
  --ip-line2: #ecf5f7;
  --ip-ok: #15803d;
  --ip-warn: #b45309;
  --ip-bad: #be123c;
  --ip-shadow: 0 1px 2px rgba(14, 116, 144, .06), 0 12px 32px -18px rgba(14, 116, 144, .35);
  --ip-r: 15px;
  --ip-r2: 10px;
}

[data-theme='dark'] .ip {
  --ip-a: #38bdf8;
  --ip-a2: #22d3ee;
  --ip-a3: #a5f3fc;
  --ip-a-soft: #0b2a33;
  --ip-bg: #0a1418;
  --ip-card: #102027;
  --ip-card2: #0d1a20;
  --ip-txt: #e6f6f9;
  --ip-txt2: #b6d2da;
  --ip-txt3: #7f9aa3;
  --ip-line: #1e3a44;
  --ip-line2: #16303a;
  --ip-ok: #4ade80;
  --ip-warn: #fbbf24;
  --ip-bad: #fb7185;
  --ip-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -18px rgba(0, 0, 0, .7);
}

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

/* ---------- 免责条 ---------- */
.ip-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(--ip-bad) 35%, var(--ip-line));
  background: color-mix(in srgb, var(--ip-bad) 9%, var(--ip-card));
}
.ip-disclaimer-ico {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ip-bad); color: #fff; font-weight: 800; font-size: 14px;
}
.ip-disclaimer p { margin: 0; font-size: 13px; line-height: 1.65; color: var(--ip-txt); }
.ip-disclaimer p b { color: var(--ip-bad); }

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

/* 纯 CSS 刻度盘插画 */
.ip-hero-art { position: relative; height: 232px; }
.ip-dial {
  position: absolute; left: 50%; top: 22px; transform: translateX(-50%);
  width: 172px; height: 172px; border-radius: 50%;
  background: conic-gradient(from 210deg, var(--ip-a3) 0deg, var(--ip-a) 150deg, var(--ip-system, #cbd5e1) 150deg 300deg, transparent 300deg);
  display: grid; place-items: center;
  animation: ipSpin 18s linear infinite;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ip-a) 35%, transparent);
}
@keyframes ipSpin { to { transform: translateX(-50%) rotate(360deg); } }
.ip-dial-core {
  width: 118px; height: 118px; border-radius: 50%;
  background: var(--ip-card); display: grid; place-items: center; align-content: center;
  border: 1px solid var(--ip-line); animation: ipSpinBack 18s linear infinite;
}
@keyframes ipSpinBack { to { transform: rotate(-360deg); } }
.ip-dial-core b { font-size: 20px; font-weight: 800; color: var(--ip-a); letter-spacing: -.5px; }
.ip-dial-core span { font-size: 10px; letter-spacing: 2px; color: var(--ip-txt3); }
.ip-dial-tick {
  position: absolute; left: 50%; top: 50%; width: 2px; height: 80px;
  background: color-mix(in srgb, var(--ip-a) 45%, transparent);
  transform-origin: 50% 0; transform: rotate(var(--r));
}
.ip-dial-needle {
  position: absolute; left: 50%; top: 50%; width: 3px; height: 54px; border-radius: 2px;
  background: var(--ip-bad); transform-origin: 50% 100%; transform: translate(-50%, -100%) rotate(38deg);
  animation: ipNeedle 5s ease-in-out infinite;
}
@keyframes ipNeedle {
  0%, 100% { transform: translate(-50%, -100%) rotate(20deg); }
  50% { transform: translate(-50%, -100%) rotate(58deg); }
}
.ip-minibars {
  position: absolute; left: 6px; bottom: 6px; width: 96px; height: 56px;
  display: flex; align-items: flex-end; gap: 5px;
}
.ip-minibars s {
  flex: 1; display: block; height: var(--h); border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--ip-a3), var(--ip-a));
  opacity: .8;
}
.ip-chip {
  position: absolute; font-size: 11.5px; padding: 5px 10px; border-radius: 8px;
  background: var(--ip-card); border: 1px solid var(--ip-line);
  color: var(--ip-txt2); box-shadow: var(--ip-shadow); white-space: nowrap;
}
.ip-chip b { color: var(--ip-a); }
.ip-chip.c1 { right: 0; top: 74px; animation: ipFloat 4.4s ease-in-out infinite; }
.ip-chip.c2 { right: 8px; top: 168px; animation: ipFloat 4.4s ease-in-out .8s infinite; }
@keyframes ipFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

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

/* ---------- 表单 ---------- */
.ip-field { margin-bottom: 15px; }
.ip-label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.ip-label.mt { margin-top: 18px; }
.ip-label label, .ip-label span:first-child { font-size: 13.5px; font-weight: 600; color: var(--ip-txt); }
.ip-label label b { color: var(--ip-bad); }
.ip-hint { font-size: 11.5px; color: var(--ip-txt3); }

.ip-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

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

.ip-range { width: 100%; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--ip-ok), var(--ip-warn) 40%, var(--ip-bad) 70%, var(--ip-line) 70%); outline: none; }
.ip-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ip-card); border: 3px solid var(--ip-a); box-shadow: 0 2px 6px rgba(0, 0, 0, .2); cursor: pointer;
}
.ip-range::-moz-range-thumb { width: 16px; height: 16px; border: 3px solid var(--ip-a); border-radius: 50%; background: var(--ip-card); cursor: pointer; }
.ip-range-scale { display: flex; justify-content: space-between; margin-top: 6px; font-size: 10.5px; color: var(--ip-txt3); }

.ip-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.ip-check {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  border: 1px solid var(--ip-line); border-radius: 10px; padding: 10px 12px;
  font-size: 12.5px; color: var(--ip-txt2); background: var(--ip-card2);
  transition: border-color .18s, background .18s, color .18s;
}
.ip-check input {
  appearance: none; flex: none; width: 17px; height: 17px; border: 1.5px solid var(--ip-line);
  border-radius: 5px; position: relative; cursor: pointer;
}
.ip-check input:checked { background: var(--ip-a); border-color: var(--ip-a); }
.ip-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'] .ip .ip-check input:checked::after { color: #06222a; }
.ip-check:has(input:checked) { border-color: var(--ip-a); background: var(--ip-a-soft); color: var(--ip-txt); }
.ip-check.danger:has(input:checked) {
  border-color: var(--ip-bad); background: color-mix(in srgb, var(--ip-bad) 12%, transparent);
}
.ip-check.danger input:checked { background: var(--ip-bad); border-color: var(--ip-bad); }

.ip-redbox {
  border: 1px solid color-mix(in srgb, var(--ip-bad) 35%, var(--ip-line));
  background: color-mix(in srgb, var(--ip-bad) 6%, var(--ip-card));
  border-radius: 12px; padding: 14px 15px;
}
.ip-redbox h3 { margin: 0 0 10px; font-size: 13.5px; font-weight: 800; color: var(--ip-bad); }
.ip-redchecks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ip-rednote { margin: 10px 0 0; font-size: 12px; line-height: 1.7; color: var(--ip-txt2); }

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

/* ---------- 问卷 ---------- */
.ip-qlist { display: flex; flex-direction: column; gap: 8px; }
.ip-qrow {
  display: grid; grid-template-columns: minmax(0, 1fr) 168px; gap: 12px; align-items: center;
  padding: 10px 12px; border: 1px solid var(--ip-line); border-radius: 10px; background: var(--ip-card2);
  transition: border-color .18s, background .18s;
}
.ip-qrow.bad { border-color: var(--ip-bad); background: color-mix(in srgb, var(--ip-bad) 7%, transparent); }
.ip-qtext { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; line-height: 1.65; color: var(--ip-txt2); }
.ip-qtext b {
  flex: none; width: 19px; height: 19px; border-radius: 5px; display: grid; place-items: center;
  font-size: 11px; font-weight: 800; color: var(--ip-a); background: var(--ip-a-soft);
}
.ip-qtext span { color: var(--ip-txt); }
.ip-qrow.filled .ip-qtext b { color: #fff; background: var(--ip-a); }
[data-theme='dark'] .ip .ip-qrow.filled .ip-qtext b { color: #06222a; }

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

/* ---------- 结果 ---------- */
.ip-badge { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--ip-line2); color: var(--ip-txt3); }
.ip-badge.ok { background: color-mix(in srgb, var(--ip-ok) 15%, transparent); color: var(--ip-ok); }
.ip-badge.warn { background: color-mix(in srgb, var(--ip-warn) 16%, transparent); color: var(--ip-warn); }
.ip-badge.bad { background: color-mix(in srgb, var(--ip-bad) 15%, transparent); color: var(--ip-bad); }

.ip-verdict { text-align: center; padding: 6px 0 16px; }
.ip-verdict-num { display: flex; align-items: baseline; justify-content: center; gap: 4px; }
.ip-verdict-num b { font-size: 54px; line-height: 1; letter-spacing: -2px; font-weight: 800; color: var(--ip-a); }
.ip-verdict-num small { font-size: 14px; color: var(--ip-txt3); }
.ip-verdict-name { margin: 8px 0 0; font-size: 15px; font-weight: 800; color: var(--ip-txt); }
.ip-verdict-sub { margin: 6px 0 0; font-size: 12.5px; line-height: 1.7; color: var(--ip-txt3); }

.ip-progress { padding: 0 2px 14px; }
.ip-progress-h { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--ip-txt3); margin-bottom: 7px; }
.ip-progress-h b { font-size: 12.5px; color: var(--ip-a); }
.ip-dots { display: flex; gap: 6px; }
.ip-dots s {
  flex: 1; height: 8px; border-radius: 999px; background: var(--ip-line2); position: relative; overflow: hidden;
}
.ip-dots s::after { content: ''; position: absolute; inset: 0 100% 0 0; background: var(--ip-a); transition: right .35s ease; }
.ip-dots s.on::after { right: 0; }

.ip-scale-wrap, .ip-psaband-wrap { margin-top: 16px; }
.ip-scale-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.ip-scale-h span:first-child { font-size: 12.5px; font-weight: 700; color: var(--ip-txt2); }
.ip-scale-note { font-size: 11px; color: var(--ip-txt3); }
.ip-scale {
  position: relative; display: flex; height: 30px; border-radius: 8px; overflow: visible;
  border: 1px solid var(--ip-line);
}
.ip-scale-seg {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  font-size: 11px; color: var(--ip-txt2); border-right: 1px solid var(--ip-card);
}
.ip-scale-seg:last-of-type { border-right: 0; }
.ip-scale-seg i { font-style: normal; font-weight: 800; font-size: 11.5px; }
.ip-scale-seg em { font-style: normal; font-size: 10px; opacity: .8; }
.ip-scale-seg.mild { flex: 0 0 20%; background: color-mix(in srgb, var(--ip-ok) 18%, var(--ip-card)); }
.ip-scale-seg.mid { flex: 0 0 34.3%; background: color-mix(in srgb, var(--ip-warn) 18%, var(--ip-card)); }
.ip-scale-seg.bad { flex: 1 1 auto; background: color-mix(in srgb, var(--ip-bad) 18%, var(--ip-card)); }
.ip-marker {
  position: absolute; top: -9px; left: 0; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; pointer-events: none;
  transition: left .35s ease; opacity: 0;
}
.ip-marker.show { opacity: 1; }
.ip-marker b {
  font-size: 11px; font-weight: 800; color: #fff; background: var(--ip-a);
  padding: 2px 7px; border-radius: 6px; white-space: nowrap;
}
.ip-marker::after {
  content: ''; width: 2px; height: 22px; background: var(--ip-a); margin-top: -1px;
}

.ip-psaband { position: relative; display: flex; height: 26px; border-radius: 8px; overflow: visible; border: 1px solid var(--ip-line); }
.ip-pseg { display: flex; flex-direction: column; justify-content: center; align-items: center; font-size: 10.5px; border-right: 1px solid var(--ip-card); }
.ip-pseg i { font-style: normal; font-weight: 800; font-size: 11px; }
.ip-pseg em { font-style: normal; font-size: 9.5px; opacity: .8; }
.ip-pseg.ok { flex: 0 0 20%; background: color-mix(in srgb, var(--ip-ok) 18%, var(--ip-card)); color: var(--ip-txt2); }
.ip-pseg.warn { flex: 0 0 30%; background: color-mix(in srgb, var(--ip-warn) 20%, var(--ip-card)); color: var(--ip-txt2); }
.ip-pseg.bad { flex: 1 1 auto; background: color-mix(in srgb, var(--ip-bad) 18%, var(--ip-card)); color: var(--ip-txt2); border-right: 0; }
.ip-pmarker {
  position: absolute; top: -9px; left: 0; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; transition: left .35s ease; opacity: 0;
}
.ip-pmarker.show { opacity: 1; }
.ip-pmarker b { font-size: 11px; font-weight: 800; color: #fff; background: var(--ip-a); padding: 2px 7px; border-radius: 6px; white-space: nowrap; }
.ip-pmarker::after { content: ''; width: 2px; height: 18px; background: var(--ip-a); }
.ip-psaband-txt { margin: 8px 0 0; font-size: 12px; color: var(--ip-txt3); }

.ip-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--ip-line2); margin-top: 16px; border-radius: 10px; overflow: hidden; }
.ip-kpi { background: var(--ip-card); padding: 12px 14px; }
.ip-kpi span { display: block; font-size: 11.5px; color: var(--ip-txt3); }
.ip-kpi b { display: inline-block; margin-top: 3px; font-size: 17px; font-weight: 800; color: var(--ip-txt); letter-spacing: -.3px; }
.ip-kpi small { font-size: 10.5px; color: var(--ip-txt3); margin-left: 3px; }

.ip-advice { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--ip-card2); border: 1px solid var(--ip-line); }
.ip-advice h3 { margin: 0 0 8px; font-size: 13px; font-weight: 800; color: var(--ip-txt); }
.ip-advice ul { margin: 0; padding-left: 18px; }
.ip-advice li { font-size: 12.5px; line-height: 1.8; color: var(--ip-txt2); margin-bottom: 3px; }

.ip-risk {
  margin-top: 12px; padding: 10px 13px; border-radius: 10px;
  background: color-mix(in srgb, var(--ip-warn) 11%, transparent);
  border: 1px solid color-mix(in srgb, var(--ip-warn) 38%, transparent);
  font-size: 12.5px; line-height: 1.75; color: var(--ip-txt2);
}
.ip-risk strong { color: var(--ip-warn); margin-right: 6px; }

.ip-redflag {
  margin-top: 12px; padding: 13px 15px; border-radius: 12px;
  background: color-mix(in srgb, var(--ip-bad) 12%, var(--ip-card));
  border: 1.5px solid var(--ip-bad);
}
.ip-redflag h3 { margin: 0 0 6px; font-size: 13.5px; font-weight: 800; color: var(--ip-bad); }
.ip-redflag p { margin: 0; font-size: 12.5px; line-height: 1.8; color: var(--ip-txt); }

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

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

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

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

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .ip-hero { grid-template-columns: 1fr; }
  .ip-hero-art { display: none; }
  .ip-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .ip-plans { grid-template-columns: 1fr; }
  .ip-redchecks { grid-template-columns: 1fr; }
  .ip-qrow { grid-template-columns: 1fr; }
  .ip-qrow .ip-control.sm { width: 100%; }
}
@media (max-width: 700px) {
  .ip-inner { width: calc(100% - 28px); }
  .ip-hero { padding: 22px 18px; border-radius: 16px; }
  .ip-card { padding: 16px 15px 18px; }
  .ip-grid2, .ip-chips { grid-template-columns: 1fr; }
  .ip-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ip-verdict-num b { font-size: 44px; }
  .ip-actions .ip-btn { flex: 1 1 44%; }
}

/* ---------- 打印 ---------- */
@media print {
  .ip-actions, .ip-msg, .ip-history, .ip-tip, .tsk-crumb-bar { display: none !important; }
  .ip { padding: 0; background: #fff; }
  .ip-card, .ip-hero { box-shadow: none; border-color: #ddd; break-inside: avoid; }
  .ip-qlist, .ip-scale-wrap, .ip-psaband-wrap { break-inside: avoid; }
}

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