/* 户外电源容量选择计算器 · 独立主题（电光蓝 · 仪表盘） */
:root {
  --ps-main: #2563eb;
  --ps-main2: #60a5fa;
  --ps-soft: #dbeafe;
  --ps-bg: #f4f7fe;
  --ps-card: #ffffff;
  --ps-card2: #f8faff;
  --ps-txt: #0f1b33;
  --ps-txt2: #475674;
  --ps-txt3: #7b89a4;
  --ps-line: #dde6f8;
  --ps-line2: #edf2fd;
  --ps-ok: #0e9f6e;
  --ps-warn: #b45309;
  --ps-bad: #b91c1c;
  --ps-shadow: 0 1px 2px rgba(37, 99, 235, .07), 0 14px 34px -18px rgba(37, 99, 235, .38);
  --ps-r: 16px;
  --ps-r2: 10px;
}

[data-theme='dark'] .ps {
  --ps-main: #60a5fa;
  --ps-main2: #2563eb;
  --ps-soft: #14233f;
  --ps-bg: #0a1120;
  --ps-card: #101a2e;
  --ps-card2: #0c1526;
  --ps-txt: #e8effc;
  --ps-txt2: #a6b6d3;
  --ps-txt3: #74839f;
  --ps-line: #22324f;
  --ps-line2: #17253d;
  --ps-ok: #34d399;
  --ps-warn: #fbbf24;
  --ps-bad: #f87171;
  --ps-shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 14px 34px -18px rgba(0, 0, 0, .8);
}

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

/* ---------- Hero ---------- */
.ps-hero {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 24px; align-items: center; padding: 30px 32px; border-radius: 24px;
  background:
    radial-gradient(760px 300px at 88% 4%, rgba(96, 165, 250, .24), transparent 62%),
    linear-gradient(135deg, var(--ps-card) 0%, var(--ps-card2) 100%);
  border: 1px solid var(--ps-line); box-shadow: var(--ps-shadow); overflow: hidden;
}
.ps-kicker {
  display: inline-flex; font-size: 12.5px; font-weight: 700; letter-spacing: .3px;
  color: var(--ps-main); background: var(--ps-soft); padding: 5px 12px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--ps-main) 24%, transparent);
}
.ps-hero h1 { margin: 14px 0 0; font-size: clamp(25px, 3.2vw, 38px); line-height: 1.24; letter-spacing: -.5px; font-weight: 800; }
.ps-hero h1 em {
  display: inline-block; font-style: normal; margin-top: 4px; color: var(--ps-main);
  background: linear-gradient(180deg, transparent 60%, rgba(96, 165, 250, .3) 60%); padding: 0 2px;
}
.ps-sub { margin: 12px 0 0; max-width: 66ch; font-size: 14.5px; line-height: 1.85; color: var(--ps-txt2); }
.ps-sub b { color: var(--ps-txt); font-weight: 700; }
.ps-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ps-tag {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; padding: 5px 10px;
  border-radius: 8px; background: var(--ps-card2); border: 1px solid var(--ps-line); color: var(--ps-txt2);
}
.ps-tag i { font-style: normal; font-weight: 800; color: var(--ps-main); }

/* 纯 CSS 插画：电源 + 电量环 */
.ps-hero-art { position: relative; height: 236px; }
.ps-art-station {
  position: absolute; left: 50%; top: 32px; transform: translateX(-50%);
  width: 186px; height: 158px; border-radius: 18px;
  background: linear-gradient(160deg, #3b82f6, #1e40af 70%, #172554);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), 0 18px 34px -18px rgba(30, 64, 175, .9);
  border: 2px solid #1d4ed8;
}
.ps-art-handle {
  position: absolute; left: 50%; top: -20px; transform: translateX(-50%);
  width: 76px; height: 26px; border-radius: 14px 14px 0 0;
  border: 6px solid #1e3a8a; border-bottom: 0;
}
.ps-art-screen {
  position: absolute; left: 14px; top: 14px; width: 74px; height: 42px;
  border-radius: 8px; background: #0b1a33; border: 1px solid rgba(147, 197, 253, .45);
  display: flex; align-items: center; gap: 6px; padding: 0 8px;
}
.ps-art-screen i { width: 9px; height: 9px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px #34d399; animation: psBlink 2.2s ease-in-out infinite; }
.ps-art-screen b { font-size: 13px; color: #93c5fd; letter-spacing: .5px; }
@keyframes psBlink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.ps-art-cells {
  position: absolute; left: 14px; right: 14px; bottom: 20px; height: 58px;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px;
}
.ps-art-cells s { display: block; border-radius: 4px; background: linear-gradient(180deg, #93c5fd, #3b82f6); box-shadow: inset 0 -6px 8px -6px rgba(0, 0, 0, .6); }
.ps-art-cells s:nth-child(4) { opacity: .25; }
.ps-art-cells s:nth-child(5) { opacity: .25; }
.ps-art-port { position: absolute; width: 20px; height: 12px; border-radius: 3px; background: #0b1a33; border: 1px solid rgba(147, 197, 253, .5); }
.ps-art-port.p1 { right: 20px; top: 22px; }
.ps-art-port.p2 { right: 20px; top: 44px; }
.ps-art-bolt {
  position: absolute; left: calc(50% - 118px); top: 96px; width: 34px; height: 34px;
  background: linear-gradient(135deg, #fde68a, #f59e0b); clip-path: polygon(55% 0, 10% 55%, 45% 55%, 35% 100%, 92% 40%, 52% 40%);
  animation: psFloat 3.6s ease-in-out infinite;
}
.ps-art-ring {
  position: absolute; right: 6px; bottom: 12px; width: 86px; height: 86px; border-radius: 50%;
  background: conic-gradient(#60a5fa 0 72%, rgba(96, 165, 250, .18) 72% 100%);
  -webkit-mask: radial-gradient(circle, transparent 55%, #000 56%);
  mask: radial-gradient(circle, transparent 55%, #000 56%);
  animation: psSpin 9s linear infinite;
}
@keyframes psSpin { to { transform: rotate(360deg); } }
@keyframes psFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.ps-art-chip {
  position: absolute; font-size: 11.5px; padding: 6px 10px; border-radius: 9px;
  background: var(--ps-card); border: 1px solid var(--ps-line); color: var(--ps-txt2);
  box-shadow: var(--ps-shadow); white-space: nowrap;
}
.ps-art-chip.a1 { left: 0; top: 12px; animation: psFloat 5s ease-in-out infinite; }
.ps-art-chip.a2 { right: 0; top: 66px; animation: psFloat 5s ease-in-out .8s infinite; }

/* ---------- 顶部 KPI 横条 ---------- */
.ps-kpi-strip {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px;
  margin-top: 16px; background: var(--ps-line); border: 1px solid var(--ps-line);
  border-radius: 14px; overflow: hidden; box-shadow: var(--ps-shadow);
}
.ps-kpi { background: var(--ps-card); padding: 14px 18px; }
.ps-kpi span { display: block; font-size: 11.5px; color: var(--ps-txt3); }
.ps-kpi b { display: inline-block; margin-top: 2px; font-size: 22px; font-weight: 800; letter-spacing: -.5px; color: var(--ps-main); }
.ps-kpi small { margin-left: 3px; font-size: 11px; color: var(--ps-txt3); }

/* ---------- 双列 ---------- */
.ps-body { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 18px; margin-top: 18px; align-items: start; }
.ps-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ps-side { position: sticky; top: 82px; min-width: 0; }

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

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

.ps-range-row { display: grid; grid-template-columns: 1fr 120px; gap: 14px; align-items: center; }
.ps-range-row input[type='range'] { -webkit-appearance: none; appearance: none; height: 6px; border-radius: 999px; background: var(--ps-line); outline: none; }
.ps-range-row input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ps-main); border: 3px solid var(--ps-card); box-shadow: 0 0 0 1px var(--ps-main); cursor: pointer;
}
.ps-range-row input[type='range']::-moz-range-thumb { width: 15px; height: 15px; border: 0; border-radius: 50%; background: var(--ps-main); cursor: pointer; }

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

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

.ps-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.ps-preset {
  border: 1px dashed var(--ps-line); background: transparent; color: var(--ps-txt2);
  font-size: 12px; font-weight: 600; padding: 7px 11px; border-radius: 999px; cursor: pointer;
  transition: border-color .18s, color .18s, background .18s;
}
.ps-preset:hover { border-color: var(--ps-main); color: var(--ps-main); background: var(--ps-soft); }

/* 设备表 */
.ps-dev-wrap { overflow-x: auto; border: 1px solid var(--ps-line); border-radius: 12px; }
.ps-dev-table { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 520px; }
.ps-dev-table th { background: var(--ps-line2); font-size: 11.5px; font-weight: 700; color: var(--ps-txt2); padding: 9px 10px; text-align: left; }
.ps-dev-table td { padding: 7px 10px; border-top: 1px solid var(--ps-line2); }
.ps-dev-table .ps-dev-name { font-weight: 600; color: var(--ps-txt); }
.ps-dev-table input[type='number'] {
  width: 68px; border: 1px solid var(--ps-line); border-radius: 7px; background: var(--ps-card2);
  color: var(--ps-txt); font-size: 12.5px; padding: 6px 7px; outline: none;
}
.ps-dev-table input[type='number'].bad { border-color: var(--ps-bad); box-shadow: 0 0 0 2px color-mix(in srgb, var(--ps-bad) 16%, transparent); }
.ps-dev-table input[type='checkbox'] { appearance: none; width: 17px; height: 17px; border: 1.5px solid var(--ps-line); border-radius: 5px; position: relative; cursor: pointer; }
.ps-dev-table input[type='checkbox']:checked { background: var(--ps-main); border-color: var(--ps-main); }
.ps-dev-table input[type='checkbox']:checked::after { content: '✓'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 11px; font-weight: 800; }
[data-theme='dark'] .ps .ps-dev-table input[type='checkbox']:checked::after { color: #0a1120; }
.ps-dev-table .ps-dev-wh { font-weight: 700; color: var(--ps-main); }
.ps-dev-del { border: 0; background: transparent; color: var(--ps-txt3); font-size: 15px; cursor: pointer; line-height: 1; padding: 2px 4px; }
.ps-dev-del:hover { color: var(--ps-bad); }
.ps-dev-actions { display: flex; gap: 8px; margin-top: 10px; }
.ps-mini { border: 1px solid var(--ps-line); background: var(--ps-card); color: var(--ps-txt2); font-size: 12px; font-weight: 600; padding: 7px 12px; border-radius: 8px; cursor: pointer; }
.ps-mini.ghost { background: transparent; }
.ps-mini:hover { border-color: var(--ps-main); color: var(--ps-main); }

.ps-eq { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 4px; }
.ps-eq span { font-size: 12px; color: var(--ps-txt3); margin-right: 2px; }
.ps-eq b { font-size: 11.5px; font-weight: 700; color: var(--ps-main); background: var(--ps-soft); border-radius: 999px; padding: 4px 10px; }

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

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

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

.ps-ring-wrap { padding: 18px 20px 10px; text-align: center; background: radial-gradient(300px 140px at 50% 0%, var(--ps-soft), transparent 70%); }
.ps-ring {
  width: 154px; height: 154px; margin: 0 auto; border-radius: 50%;
  background: conic-gradient(var(--ps-main) 0 calc(var(--p, 0) * 1%), var(--ps-line2) calc(var(--p, 0) * 1%) 100%);
  display: flex; align-items: center; justify-content: center;
  transition: background .4s ease; position: relative;
}
.ps-ring::after {
  content: ''; position: absolute; inset: 12px; border-radius: 50%;
  background: var(--ps-card); box-shadow: inset 0 0 0 1px var(--ps-line2);
}
.ps-ring-hole { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.ps-ring-hole b { font-size: 27px; font-weight: 800; color: var(--ps-main); letter-spacing: -1px; }
.ps-ring-hole span { font-size: 11px; color: var(--ps-txt3); }
.ps-ring-cap { margin: 10px 0 0; font-size: 11.5px; color: var(--ps-txt3); }

.ps-bars-block { padding: 12px 20px 6px; border-top: 1px solid var(--ps-line2); }
.ps-bars-block h3 { margin: 0 0 10px; font-size: 12.5px; font-weight: 700; color: var(--ps-txt2); }
.ps-bars { display: flex; flex-direction: column; gap: 9px; }
.ps-bar-row { display: grid; grid-template-columns: 64px 1fr 52px; align-items: center; gap: 8px; }
.ps-bar-k { font-size: 11.5px; color: var(--ps-txt2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-bar-track { height: 10px; border-radius: 999px; background: var(--ps-line2); overflow: hidden; }
.ps-bar-track i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--ps-main2), var(--ps-main)); transition: width .4s ease; }
.ps-bar-v { font-size: 11px; font-weight: 700; color: var(--ps-main); text-align: right; }
.ps-empty { margin: 0; font-size: 12.5px; color: var(--ps-txt3); }

.ps-charge-block { padding: 12px 20px 6px; }
.ps-charge-block h3 { margin: 0 0 10px; font-size: 12.5px; font-weight: 700; color: var(--ps-txt2); }
.ps-charge-list { display: flex; flex-direction: column; gap: 9px; }
.ps-charge-item { display: grid; grid-template-columns: 74px 1fr auto; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ps-txt2); }
.ps-charge-track { position: relative; height: 8px; border-radius: 999px; background: var(--ps-line2); overflow: hidden; }
.ps-charge-track i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--ps-main2), var(--ps-main)); }
.ps-charge-v { font-weight: 700; color: var(--ps-txt); white-space: nowrap; }

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

/* ---------- 方案 ---------- */
.ps-plans-card { margin-top: 18px; }
.ps-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ps-plan { position: relative; border: 1.5px solid var(--ps-line); border-radius: 14px; background: var(--ps-card2); padding: 15px; transition: border-color .2s, box-shadow .2s; }
.ps-plan.rec { border-color: var(--ps-main); background: var(--ps-card); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ps-main) 14%, transparent); }
.ps-plan-tag { position: absolute; right: 12px; top: -10px; font-size: 10.5px; font-weight: 800; color: #fff; background: var(--ps-main); padding: 3px 9px; border-radius: 999px; }
[data-theme='dark'] .ps .ps-plan-tag { color: #0a1120; }
.ps-plan h3 { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.5px; }
.ps-plan h3 span { margin-left: 4px; font-size: 11.5px; font-weight: 600; color: var(--ps-txt3); }
.ps-plan > p { margin: 3px 0 10px; font-size: 11.5px; color: var(--ps-txt3); }
.ps-plan dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 5px 8px; font-size: 12px; }
.ps-plan dt { color: var(--ps-txt3); }
.ps-plan dd { margin: 0; text-align: right; font-weight: 600; }
.ps-plan-note { margin-top: 9px; font-size: 11.5px; line-height: 1.7; color: var(--ps-txt3); }
.ps-plan-pick { margin-top: 10px; width: 100%; border: 0; border-radius: 9px; padding: 8px; font-size: 12px; font-weight: 700; cursor: pointer; background: var(--ps-line2); color: var(--ps-txt2); }
.ps-plan.rec .ps-plan-pick { background: var(--ps-main); color: #fff; }
[data-theme='dark'] .ps .ps-plan.rec .ps-plan-pick { color: #0a1120; }

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

.ps-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ps-steps li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; font-size: 13px; line-height: 1.8; color: var(--ps-txt2); }
.ps-steps li b { color: var(--ps-txt); }
.ps-steps li em { display: block; margin-top: 3px; font-style: normal; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--ps-main); }

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

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

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .ps-hero { grid-template-columns: 1fr; }
  .ps-hero-art { display: none; }
  .ps-body { grid-template-columns: 1fr; }
  .ps-side { position: static; }
  .ps-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ps-kpi-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .ps-inner { width: calc(100% - 28px); }
  .ps-hero { padding: 22px 18px; border-radius: 16px; }
  .ps-card { padding: 16px 16px 18px; }
  .ps-grid2 { grid-template-columns: 1fr; }
  .ps-range-row { grid-template-columns: 1fr; }
  .ps-plans { grid-template-columns: 1fr; }
  .ps-kpi-strip { grid-template-columns: 1fr 1fr; }
  .ps-actions .ps-btn { flex: 1 1 44%; }
}

/* ---------- 打印 ---------- */
@media print {
  .ps-actions, .ps-textarea, .ps-history, .ps-presets, .ps-dev-actions, .ps-msg, .tsk-crumb-bar { display: none !important; }
  .ps { padding: 0; background: #fff; }
  .ps-card, .ps-result { box-shadow: none; border-color: #ddd; break-inside: avoid; }
  .ps-hero { box-shadow: none; }
  .ps-side { position: static; }
  .ps-kpi-strip { 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}
@media (max-width:700px){.tsk-crumb-bar-in{width:calc(100% - 28px)!important;padding:9px 0!important}}
