/* 挣值管理EVM计算器 · ledger 台账原型（现代产品感令牌版，深色仅改变量值） */
.t3-evm{
  --bg:#f5f7fb; --card:#ffffff; --ink:#1f2937; --sub:#667085; --dim:#8a94a6;
  --line:#e4e7ec; --line2:#c7c3ea;
  --soft:rgba(67,56,202,.08);
  --paper:#fffdf6; --paper-line:#e7dcb8; --paper-rule:#d8b4b4; --paper-head:#57534e; --paper-ink:#44403c;
  --ok:#16a34a; --ok-ink:#14532d; --ok-bg:#f0fdf4; --ok-line:#4ade80;
  --mid:#d97706; --mid-ink:#713f12; --mid-bg:#fffbeb; --mid-line:#fcd34d;
  --bad:#dc2626; --bad-ink:#7f1d1d; --bad-bg:#fef2f2; --bad-line:#fca5a5;
  --shadow:0 1px 2px rgba(16,24,40,.05), 0 12px 28px -14px rgba(16,24,40,.12);
  --focus:rgba(67,56,202,.25);
  background:
    repeating-linear-gradient(180deg, transparent 0 31px, rgba(67,56,202,.045) 31px 32px),
    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.75;
}
[data-theme='dark'] .t3-evm{
  --bg:#0b1220; --card:#121a2b; --ink:#e6edf7; --sub:#9fb0c9; --dim:#8fa0b8;
  --line:rgba(148,163,184,.18); --line2:#403c70;
  --soft:rgba(165,180,252,.12);
  --paper:#1c1a10; --paper-line:#4a4426; --paper-rule:#8a5a5a; --paper-head:#d6d3d1; --paper-ink:#d6d3d1;
  --ok:#4ade80; --ok-ink:#86efac; --ok-bg:rgba(74,222,128,.1); --ok-line:rgba(74,222,128,.5);
  --mid:#fbbf24; --mid-ink:#fde68a; --mid-bg:rgba(251,191,36,.1); --mid-line:rgba(252,211,77,.5);
  --bad:#f87171; --bad-ink:#fca5a5; --bad-bg:rgba(248,113,113,.1); --bad-line:rgba(252,165,165,.5);
  --shadow:0 1px 2px rgba(0,0,0,.4), 0 12px 28px -14px rgba(0,0,0,.5);
  --focus:rgba(165,180,252,.3);
}
.t3-evm *{box-sizing:border-box}
.t3-evm>section,.t3-evm>div{max-width:1180px;margin:0 auto}
.t3-evm .ev-badge{display:inline-block;font-size:12px;font-weight:700;color:var(--a);background:var(--soft);border:1px solid var(--line2);padding:6px 13px;border-radius:999px}
.t3-evm .ev-hero{display:flex;gap:24px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-bottom:24px}
.t3-evm h1{margin:12px 0 6px;font-size:clamp(22px,3.2vw,30px);font-weight:800;line-height:1.35;color:var(--ink)}
.t3-evm h1 em{font-style:normal;font-size:.56em;color:var(--a);font-weight:600}
.t3-evm .ev-sub{margin:0;max-width:660px;font-size:14px;color:var(--sub)}
.t3-evm .ev-sub b{color:var(--a)}
.t3-evm .ev-hero-art{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:12px;box-shadow:var(--shadow)}

.t3-evm .ev-grid{display:grid;grid-template-columns:420px 1fr;gap:24px;align-items:start}
.t3-evm .ev-ledger{background:var(--paper);border:1px solid var(--paper-line);border-radius:16px;padding:20px;box-shadow:var(--shadow);position:relative}
.t3-evm .ev-ledger::before{content:"";position:absolute;left:10px;top:0;bottom:0;width:2px;background:var(--paper-rule);opacity:.55;border-radius:2px}
.t3-evm .ev-ledger-head{display:flex;justify-content:space-between;align-items:baseline;border-bottom:2px solid var(--paper-line);padding-bottom:8px;margin-bottom:16px}
.t3-evm .ev-ledger-head span{font-size:15px;font-weight:800;color:var(--paper-head);letter-spacing:.08em}
.t3-evm .ev-ledger-head em{font-style:normal;font-size:11px;color:var(--sub);font-weight:700}

.t3-evm .ev-f{margin-bottom:16px}
.t3-evm .ev-f label{display:block;font-size:13px;font-weight:700;color:var(--paper-ink);margin-bottom:6px}
.t3-evm .ev-f label b{color:var(--bad)}
.t3-evm .ev-hint{margin:6px 0 0;font-size:12px;line-height:1.5;color:var(--sub)}
.t3-evm .ev-ctl{display:flex;align-items:center;min-height:44px;border:1px solid var(--paper-line);border-radius:10px;background:var(--card);padding:0 12px;transition:border-color .15s, box-shadow .15s}
.t3-evm .ev-ctl:focus-within{border-color:var(--a);box-shadow:0 0 0 3px var(--focus)}
.t3-evm .ev-ctl input{flex:1;min-width:0;border:0;outline:none;background:none;font:600 14.5px/1 Consolas,"PingFang SC",monospace;padding:12px 0;color:var(--ink)}
.t3-evm .ev-ctl em{font-style:normal;font-size:11px;color:var(--sub);font-weight:700}
.t3-evm .ev-err{display:none;margin:4px 0 0;font-size:11.5px;color:var(--bad)}
.t3-evm .ev-f.bad .ev-ctl{border-color:var(--bad);background:var(--bad-bg)}
.t3-evm .ev-f.bad .ev-err{display:block}

.t3-evm .ev-btns{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.t3-evm .ev-btn{cursor:pointer;border:1px solid var(--line);background:var(--card);color:var(--a);font:700 12.5px/1 "PingFang SC","Microsoft YaHei",sans-serif;min-height:44px;padding:10px 15px;border-radius:10px;transition:.15s}
.t3-evm .ev-btn:hover{border-color:var(--a);transform:translateY(-2px);box-shadow:0 4px 12px rgba(67,56,202,.18)}
.t3-evm .ev-btn.main{background:linear-gradient(135deg,var(--a),var(--a2));background:linear-gradient(135deg,var(--a),color-mix(in srgb,var(--a2) 35%,var(--a)));color:#fff;border-color:transparent}
.t3-evm .ev-btn.main:hover{color:#fff}
.t3-evm .ev-btn.ghost{color:var(--sub);background:none}
.t3-evm .ev-btn.sm{min-height:auto;padding:7px 11px;font-size:11.5px}
.t3-evm .ev-msg{margin:12px 0 0;padding:10px 12px;border-left:3px solid var(--line);background:var(--bg);font-size:12.5px;color:var(--sub);border-radius:0 10px 10px 0}
.t3-evm .ev-msg.ok{border-color:var(--a);color:var(--a);background:var(--soft)}
.t3-evm .ev-msg.warn{border-color:var(--mid);color:var(--mid-ink);background:var(--mid-bg)}
.t3-evm .ev-msg.err{border-color:var(--bad);color:var(--bad-ink);background:var(--bad-bg)}

.t3-evm .ev-trend{margin-top:24px;border-top:2px dashed var(--paper-line);padding-top:16px}
.t3-evm .ev-trend h3{margin:0 0 6px;font-size:14px;font-weight:700;color:var(--paper-head)}
.t3-evm .ev-tip{margin:0 0 8px;font-size:12px;color:var(--sub)}
.t3-evm .ev-tip code{background:var(--soft);color:var(--a);padding:1px 6px;border-radius:6px;font-weight:700}
.t3-evm textarea{width:100%;min-height:120px;resize:vertical;border:1px solid var(--paper-line);border-radius:10px;padding:12px;font:500 13px/1.7 Consolas,monospace;background:var(--card);color:var(--ink);outline:none;transition:border-color .15s, box-shadow .15s}
.t3-evm textarea:focus{border-color:var(--a);box-shadow:0 0 0 3px var(--focus)}

.t3-evm .ev-card{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:20px;box-shadow:var(--shadow)}
.t3-evm .ev-h{margin:24px 0 12px;font-size:15px;font-weight:700;color:var(--ink);letter-spacing:.03em;display:flex;align-items:center;gap:8px}
.t3-evm .ev-h:first-of-type{margin-top:0}
.t3-evm .ev-h::after{content:"";flex:1;height:1px;background:var(--line)}

.t3-evm .ev-alert{border-radius:12px;padding:14px 16px;margin-bottom:16px;border:2px solid var(--line);background:var(--bg);font-size:13px;color:var(--sub)}
.t3-evm .ev-alert .lv{display:inline-block;font-size:12.5px;font-weight:800;letter-spacing:.1em;padding:5px 13px;border-radius:999px;margin-bottom:8px;background:var(--line2);color:var(--ink)}
.t3-evm .ev-alert p{margin:0}
.t3-evm .ev-alert.lv-green{border-color:var(--ok-line);background:var(--ok-bg);color:var(--ok-ink)}
.t3-evm .ev-alert.lv-green .lv{background:var(--ok);color:#fff}
.t3-evm .ev-alert.lv-yellow{border-color:var(--mid-line);background:var(--mid-bg);color:var(--mid-ink)}
.t3-evm .ev-alert.lv-yellow .lv{background:var(--mid);color:#fff}
.t3-evm .ev-alert.lv-red{border-color:var(--bad-line);background:var(--bad-bg);color:var(--bad-ink)}
.t3-evm .ev-alert.lv-red .lv{background:var(--bad);color:#fff}

.t3-evm .ev-lines{display:flex;flex-direction:column}
.t3-evm .ev-line{display:flex;align-items:baseline;gap:8px;padding:10px 2px;border-bottom:1px dashed var(--line);font-size:12.5px}
.t3-evm .ev-line .k{color:var(--sub);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:56%}
.t3-evm .ev-line .dots{flex:1;border-bottom:1px dotted var(--line2);transform:translateY(-3px)}
.t3-evm .ev-line .v{font:800 16px/1.3 Consolas,"PingFang SC",monospace;color:var(--ink);font-variant-numeric:tabular-nums;white-space:nowrap}
.t3-evm .ev-line .v.pos{color:var(--ok)}
.t3-evm .ev-line .v.neg{color:var(--bad)}
.t3-evm .ev-line .v.mid{color:var(--mid)}
.t3-evm .ev-lines:has(#evSPI) .ev-line .v{font-size:clamp(24px,3.4vw,32px);line-height:1.2;color:var(--a);background:linear-gradient(135deg,var(--a),color-mix(in srgb,var(--a2) 45%,var(--a)));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.t3-evm .ev-lines:has(#evSPI) .ev-line .v.pos{color:var(--ok);background:none;-webkit-text-fill-color:currentColor}
.t3-evm .ev-lines:has(#evSPI) .ev-line .v.neg{color:var(--bad);background:none;-webkit-text-fill-color:currentColor}
.t3-evm .ev-lines:has(#evSPI) .ev-line .v.mid{color:var(--mid);background:none;-webkit-text-fill-color:currentColor}

.t3-evm .ev-chart{border:1px solid var(--line);border-radius:12px;background:var(--bg);padding:8px;overflow-x:auto}
.t3-evm .ev-chart svg{display:block;width:100%}
.t3-evm .ev-empty{font-size:12px;color:var(--sub);margin:6px;text-align:center;padding:12px}

.t3-evm .ev-steps{margin:0;padding-left:20px;font-size:12.5px;color:var(--sub)}
.t3-evm .ev-steps li{margin-bottom:6px}
.t3-evm .ev-steps code{background:var(--soft);color:var(--a);font:700 12px/1.6 Consolas,monospace;padding:1px 6px;border-radius:6px}

.t3-evm .ev-hist-head{display:flex;align-items:center;justify-content:space-between;margin:24px 0 10px}
.t3-evm .ev-hist-head h3{margin:0;font-size:13px;color:var(--sub)}
.t3-evm .ev-hist{display:flex;flex-wrap:wrap;gap:8px}
.t3-evm .ev-hchip{cursor:pointer;border:1px solid var(--line);background:var(--card);color:var(--a);font:600 11.5px/1 "PingFang SC",sans-serif;padding:8px 11px;border-radius:999px}
.t3-evm .ev-hchip:hover{border-color:var(--a)}

@media (max-width:900px){
  .t3-evm .ev-hero{flex-direction:column;align-items:center;text-align:center}
  .ev-hero-txt{width:100%}
  .t3-evm .ev-sub{margin:0 auto}
  .t3-evm .ev-hero-art svg{width:240px;height:auto}
}
@media (max-width:960px){.t3-evm .ev-grid{grid-template-columns:1fr}}
@media (max-width:760px){
  .t3-evm{padding:16px 10px 28px}
  .t3-evm .ev-card,.t3-evm .ev-ledger{padding:16px}
  .t3-evm .ev-grid{gap:16px}
  .t3-evm .ev-line .k{max-width:48%}
  .t3-evm .ev-lines:has(#evSPI) .ev-line .v{font-size:clamp(22px,6vw,28px)}
  .t3-evm .ev-btns{gap:6px}
  .t3-evm .ev-btn{flex:1 1 auto;min-width:96px}
}
