/* OEE设备综合效率计算器 · console 工程台原型（浅色模式下也保持深色面板，全套颜色走变量） */
.t3-oee{
  --ink:#f5e9d0; --ink-hi:#ffecc2; --ink2:#c9b28a; --dim:#a89066;
  --bg:#14100a; --panel:#1c160e; --panel2:#241c10; --well:#120d06; --line:#3a2e1a; --line2:#4d3c20;
  --ok:#4ade80; --warn:#fbbf24; --bad:#f87171; --bad-ink:#fca5a5; --ok-ink:#bbf7d0; --warn-ink:#fde68a;
  --acc:var(--a); --acc-deep:#b45309; --acc-ink:#1a1206;
  --svg-plate:#3a2c17; --svg-deep:#1a1408; --svg-mid:#57431f; --svg-dim:#a16207;
  --svg-hi:#fbbf24; --svg-glow:#fde68a; --svg-txt:#d6b06a;
  --focus:rgba(245,158,11,.25); --bad-focus:rgba(239,68,68,.16);
  --shadow:0 1px 2px rgba(0,0,0,.35), 0 12px 28px -14px rgba(0,0,0,.6);
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(245,158,11,.10), transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(245,158,11,.035) 27px 28px),
    var(--bg);
  color:var(--ink);
  padding:24px 16px 34px; border-radius:16px;
  font-family:"Segoe UI","PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  line-height:1.7;
}
[data-theme='dark'] .t3-oee{
  --bg:#0d0a06; --panel:#171208; --panel2:#1f180d; --well:#0f0b05; --line:#332814; --line2:#453519;
  --ink:#f7edd6; --ink-hi:#fff3d6; --dim:#b39a70;
}

.t3-oee .oe-hero{display:flex;gap:24px;align-items:center;justify-content:space-between;max-width:1180px;margin:0 auto 24px;flex-wrap:wrap}
.t3-oee .oe-badge{display:inline-block;font:700 12px/1 Consolas,monospace;letter-spacing:.08em;color:var(--warn);border:1px solid var(--line2);background:rgba(245,158,11,.08);padding:7px 12px;border-radius:999px}
.t3-oee h1{margin:12px 0 8px;font-size:clamp(22px,3.2vw,30px);font-weight:800;line-height:1.35;color:var(--ink-hi);text-shadow:0 0 22px rgba(245,158,11,.35)}
.t3-oee h1 em{font-style:normal;font-size:.58em;color:var(--acc);font-weight:600}
.t3-oee .oe-sub{margin:0;max-width:640px;color:var(--ink2);font-size:14px}
.t3-oee .oe-sub b{color:var(--warn-ink)}
.t3-oee .oe-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.t3-oee .oe-tags span{font:600 11.5px/1 Consolas,monospace;color:var(--ink2);border:1px dashed var(--line2);padding:6px 9px;border-radius:6px}
.t3-oee .oe-hero-art{flex:0 0 auto;background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:12px;box-shadow:inset 0 0 30px rgba(0,0,0,.5)}

.t3-oee .oe-console{max-width:1180px;margin:0 auto;border:1px solid var(--line2);border-radius:16px;overflow:hidden;background:var(--panel);box-shadow:var(--shadow)}
.t3-oee .oe-console-bar{display:flex;align-items:center;gap:7px;padding:10px 14px;background:linear-gradient(180deg,var(--panel2),var(--well));border-bottom:1px solid var(--line)}
.t3-oee .oe-dot{width:11px;height:11px;border-radius:50%}
.t3-oee .oe-dot.r{background:#ef4444}.t3-oee .oe-dot.y{background:var(--a)}.t3-oee .oe-dot.g{background:#22c55e}
.t3-oee .oe-console-title{margin-left:8px;font:700 12px/1 Consolas,monospace;letter-spacing:.12em;color:var(--ink2)}
.t3-oee .oe-console-status{margin-left:auto;font:700 11px/1 Consolas,monospace;color:var(--warn);border:1px solid var(--line2);padding:4px 9px;border-radius:999px}
.t3-oee .oe-console-status.run{color:var(--ok);animation:oe-blink 1s steps(2) infinite}
@keyframes oe-blink{50%{opacity:.35}}

.t3-oee .oe-grid{display:grid;grid-template-columns:390px 1fr;gap:20px;padding:20px}
.t3-oee .oe-panel{background:var(--panel2);border:1px solid var(--line);border-radius:16px;padding:20px;box-shadow:var(--shadow)}
.t3-oee .oe-batch{margin:0 20px 20px}
.t3-oee .oe-ph{display:flex;align-items:center;gap:10px;margin:0 0 16px;font-size:17px;font-weight:700;color:var(--ink-hi);border-bottom:1px solid var(--line);padding-bottom:12px}
.t3-oee .oe-ph i{font-style:normal;font:800 11px/1 Consolas,monospace;color:var(--acc-ink);background:var(--acc);width:24px;height:24px;display:inline-grid;place-items:center;border-radius:8px}
.t3-oee .oe-panel .oe-ph:not(:first-child){margin-top:24px}

.t3-oee .oe-f{margin-bottom:16px}
.t3-oee .oe-f label{display:block;font-size:13px;font-weight:700;color:var(--ink);margin-bottom:6px}
.t3-oee .oe-f label b{color:var(--bad)}
.t3-oee .oe-hint{margin:6px 0 0;font-size:12px;line-height:1.5;color:var(--dim)}
.t3-oee .oe-ctl{display:flex;align-items:center;min-height:44px;background:var(--well);border:1px solid var(--line2);border-radius:10px;padding:0 12px;transition:border-color .15s, box-shadow .15s}
.t3-oee .oe-ctl:focus-within{border-color:var(--acc);box-shadow:0 0 0 3px var(--focus)}
.t3-oee .oe-ctl input{flex:1;min-width:0;background:none;border:0;outline:none;color:var(--ink-hi);font:600 14.5px/1 Consolas,monospace;padding:12px 0}
.t3-oee .oe-ctl input::placeholder{color:#7a6338}
.t3-oee .oe-ctl em{font-style:normal;font:700 11px/1 Consolas,monospace;color:var(--dim)}
.t3-oee .oe-err{display:none;margin:4px 0 0;font-size:11.5px;color:var(--bad-ink)}
.t3-oee .oe-f.bad .oe-ctl{border-color:#ef4444;box-shadow:0 0 0 3px var(--bad-focus)}
.t3-oee .oe-f.bad .oe-err{display:block}

.t3-oee .oe-btns{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.t3-oee .oe-btn{cursor:pointer;border:1px solid var(--line2);background:var(--panel);color:var(--warn-ink);font:700 12.5px/1 "Consolas","PingFang SC",monospace;min-height:44px;padding:10px 16px;border-radius:10px;transition:.15s}
.t3-oee .oe-btn:hover{border-color:var(--acc);transform:translateY(-2px)}
.t3-oee .oe-btn.main{background:linear-gradient(135deg,var(--a),var(--acc-deep));color:var(--acc-ink);border-color:var(--warn)}
.t3-oee .oe-btn.main:hover{box-shadow:0 4px 16px rgba(245,158,11,.4)}
.t3-oee .oe-btn.ghost{background:none;color:var(--dim)}
.t3-oee .oe-btn.sm{min-height:auto;padding:6px 9px;font-size:11px}
.t3-oee .oe-msg{margin:12px 0 0;padding:10px 12px;border-left:3px solid var(--line2);background:var(--well);font-size:12.5px;color:var(--ink2);border-radius:0 10px 10px 0}
.t3-oee .oe-msg.ok{border-color:var(--ok);color:var(--ok-ink)}
.t3-oee .oe-msg.err{border-color:#ef4444;color:var(--bad-ink)}

.t3-oee .oe-gauge-wrap{display:flex;gap:20px;align-items:center;flex-wrap:wrap}
.t3-oee .oe-gauge{flex:0 0 210px;width:210px;height:210px;display:grid;place-items:center}
.t3-oee .oe-gauge:empty::before{content:"◷ 计算后这里亮起三环仪表";font:600 12px/1.6 Consolas,monospace;color:var(--dim);border:1px dashed var(--line2);border-radius:12px;padding:24px 14px;text-align:center;background:var(--well)}
.t3-oee .oe-gauge svg{display:block;width:100%;height:100%}
.t3-oee .oe-gauge svg text:nth-of-type(1){font-size:28px;font-weight:800}
.t3-oee .oe-rates{flex:1;min-width:250px;display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px}
.t3-oee .oe-rate{background:var(--well);border:1px solid var(--line);border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:3px}
.t3-oee .oe-rate .k{font:600 10.5px/1.3 Consolas,monospace;color:var(--dim)}
.t3-oee .oe-rate .v{font:800 clamp(20px,2.6vw,26px)/1.15 Consolas,monospace;background:linear-gradient(135deg,var(--a),var(--warn-ink));-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
.t3-oee .oe-rate .s{font-size:10px;color:var(--dim);line-height:1.4}
.t3-oee .oe-bench{grid-column:1/-1}
.t3-oee .oe-bench-bar{position:relative;height:16px;border-radius:999px;background:linear-gradient(90deg,#7f1d1d 0 22%,var(--acc-deep) 22% 43%,#166534 43% 100%);border:1px solid var(--line2);overflow:visible}
.t3-oee .oe-bench-bar i{position:absolute;left:0;top:-2px;height:20px;width:0;background:rgba(255,255,255,.14);border-right:3px solid var(--ink-hi);border-radius:4px;transition:width .6s}
.t3-oee .oe-bench-bar .tick{position:absolute;top:-6px;width:2px;height:28px;background:var(--warn-ink)}
.t3-oee .oe-bench-bar .tick.w{left:85%}.t3-oee .oe-bench-bar .tick.a{left:65%;background:#93c5fd}
.t3-oee .oe-bench p{margin:7px 0 0;font:600 10.5px/1.5 Consolas,monospace;color:var(--dim)}

.t3-oee .oe-verdict{margin-top:16px;padding:12px 14px;border-radius:12px;border:1px dashed var(--line2);background:var(--well);font-size:13px;color:var(--ink2)}
.t3-oee .oe-verdict.lv-good{border-color:#22c55e;color:var(--ok-ink)}
.t3-oee .oe-verdict.lv-mid{border-color:var(--a);color:var(--warn-ink)}
.t3-oee .oe-verdict.lv-low{border-color:#ef4444;color:var(--bad-ink)}

.t3-oee .oe-wf{overflow-x:auto;padding:4px 0 2px}
.t3-oee .oe-wf svg{display:block;min-width:520px;width:100%}
.t3-oee .oe-pareto{display:flex;flex-direction:column;gap:8px;margin-top:12px}
.t3-oee .oe-pareto-empty{font-size:12px;color:var(--dim)}
.t3-oee .oe-prow{display:grid;grid-template-columns:110px 1fr 130px;gap:10px;align-items:center;font:600 12px/1 Consolas,monospace}
.t3-oee .oe-prow .nm{color:var(--ink2)}
.t3-oee .oe-prow .bar{height:12px;border-radius:999px;background:var(--well);border:1px solid var(--line);overflow:hidden}
.t3-oee .oe-prow .bar i{display:block;height:100%;background:linear-gradient(90deg,var(--a),#dc2626)}
.t3-oee .oe-prow .vl{color:var(--ink-hi);text-align:right}

.t3-oee .oe-steps{margin:0;padding-left:20px;font-size:12.5px;color:var(--ink2)}
.t3-oee .oe-steps li{margin-bottom:6px}
.t3-oee .oe-steps code{font:600 12px/1.6 Consolas,monospace;color:var(--warn-ink);background:var(--well);padding:1px 6px;border-radius:6px}

.t3-oee .oe-tip{margin:0 0 12px;font-size:12px;color:var(--dim)}
.t3-oee .oe-tip code{color:var(--warn);background:var(--well);padding:1px 5px;border-radius:5px}
.t3-oee .oe-batch textarea{width:100%;min-height:96px;resize:vertical;background:var(--well);border:1px solid var(--line2);border-radius:10px;color:var(--ink-hi);font:500 13px/1.7 Consolas,monospace;padding:12px;outline:none;transition:border-color .15s, box-shadow .15s}
.t3-oee .oe-batch textarea:focus{border-color:var(--acc);box-shadow:0 0 0 3px var(--focus)}
.t3-oee .oe-table-wrap{overflow-x:auto;margin-top:12px}
.t3-oee .oe-table{width:100%;border-collapse:collapse;font:600 12px/1.5 Consolas,monospace}
.t3-oee .oe-table th{background:var(--well);color:var(--dim);text-align:left;padding:8px 10px;border-bottom:1px solid var(--line2);white-space:nowrap}
.t3-oee .oe-table td{padding:8px 10px;border-bottom:1px dashed var(--line);color:var(--ink-hi);white-space:nowrap}
.t3-oee .oe-table tr.best td{color:#86efac}
.t3-oee .oe-table .g-good{color:var(--ok)}.t3-oee .oe-table .g-mid{color:var(--warn)}.t3-oee .oe-table .g-low{color:var(--bad)}

.t3-oee .oe-hist-head{display:flex;align-items:center;justify-content:space-between;margin:24px 0 10px}
.t3-oee .oe-hist-head h3{margin:0;font-size:13px;color:var(--ink2)}
.t3-oee .oe-hist{display:flex;flex-wrap:wrap;gap:8px}
.t3-oee .oe-hist-empty{font-size:12px;color:var(--dim)}
.t3-oee .oe-hchip{cursor:pointer;border:1px solid var(--line2);background:var(--well);color:var(--warn-ink);font:600 11.5px/1 Consolas,monospace;padding:7px 10px;border-radius:999px}
.t3-oee .oe-hchip:hover{border-color:var(--acc);color:var(--svg-glow)}

@media (max-width:900px){
  .t3-oee .oe-hero{flex-direction:column;align-items:center;text-align:center}
  .t3-oee .oe-sub{margin:0 auto}
  .t3-oee .oe-tags{justify-content:center}
  .t3-oee .oe-hero-art svg{width:240px;height:auto}
}
@media (max-width:920px){.t3-oee .oe-grid{grid-template-columns:1fr}}
@media (max-width:760px){
  .t3-oee{padding:16px 10px 28px}
  .t3-oee .oe-grid{padding:12px;gap:16px}
  .t3-oee .oe-panel{padding:16px}
  .t3-oee .oe-batch{margin:0 12px 12px}
  .t3-oee .oe-rates{grid-template-columns:1fr 1fr}
  .t3-oee .oe-gauge{flex-basis:auto;width:100%;max-width:240px;margin:0 auto}
  .t3-oee .oe-prow{grid-template-columns:88px 1fr 110px}
  .t3-oee .oe-btns{gap:6px}
  .t3-oee .oe-btn{flex:1 1 auto;min-width:100px}
}
