:root{
  --ink:#192823;--paper:#f1eee6;--surface:#fbfaf5;--surface2:#f6f2e9;--line:#d8d1c3;--line2:#bbb3a4;
  --muted:#7b8179;--forest:#206b5a;--coral:#dc6642;--amber:#b88637;--good:#26715c;
  --shadow:0 18px 52px rgba(42,42,34,.08);--radius:18px;color-scheme:light;
}
*{box-sizing:border-box}html{background:var(--paper)}
body{margin:0;background:radial-gradient(circle at 88% 4%,rgba(220,102,66,.08),transparent 30rem),repeating-linear-gradient(0deg,rgba(25,40,35,.018) 0,rgba(25,40,35,.018) 1px,transparent 1px,transparent 4px),linear-gradient(135deg,#f5f2eb,#ece7dc);color:var(--ink);font:14px/1.55 "PingFang SC","Microsoft YaHei",sans-serif}
button,input,select,textarea{font:inherit}button{cursor:pointer}input,select,textarea{width:100%;border:1px solid var(--line);border-radius:9px;background:#fff;padding:9px 11px;color:var(--ink);outline:none;transition:border .15s,box-shadow .15s}input:focus,select:focus,textarea:focus{border-color:var(--forest);box-shadow:0 0 0 3px rgba(32,107,90,.10)}
label{display:block;margin:10px 0 5px;color:#5e6862;font-size:11px;font-weight:650}
.btn{border:1px solid var(--line);border-radius:9px;padding:9px 14px;background:var(--surface);color:var(--ink);font-weight:650;transition:background .15s,border .15s,transform .15s}.btn:hover{border-color:var(--line2);background:#fff}.btn:active{transform:translateY(1px)}.btn.primary{background:var(--forest);border-color:var(--forest);color:#fff}.btn.primary:hover{background:#174f43}.btn.danger{background:#f8e4dc;border-color:#efc5b8;color:#9b432e}.btn:disabled{opacity:.5;cursor:not-allowed}
.eyebrow{margin:0 0 7px;color:var(--muted);font-size:10px;font-weight:750;letter-spacing:.08em}
.login{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at 18% 10%,#dcebe1,transparent 34%),#eef2ee;padding:20px}.login-box{width:min(430px,100%);background:var(--surface);border:1px solid var(--line2);border-radius:22px;padding:32px;box-shadow:var(--shadow);position:relative;overflow:hidden}.login-box:before{content:"";position:absolute;right:-30px;top:-36px;width:150px;height:150px;border:1px solid rgba(220,102,66,.35);border-radius:50%}.login-box h1{font:600 33px/1.1 "Songti SC","Noto Serif SC",serif;margin:0 0 5px;letter-spacing:-.03em}.login-box p{color:var(--muted);margin:0 0 20px}.login-box .login-mark{width:44px;height:44px;border-radius:13px;background:var(--ink);color:#f7f1e7;display:grid;place-items:center;font:800 24px "Songti SC",serif;margin-bottom:18px}
.shell{display:none;min-height:100vh}.top{height:68px;margin-left:224px;padding:17px 30px 0;display:flex;justify-content:space-between;align-items:center;gap:16px;position:relative;z-index:3}.top:after{content:"";position:absolute;left:30px;right:30px;bottom:-1px;height:1px;background:linear-gradient(90deg,var(--coral),transparent 42%)}.top-context strong{display:block;font:600 18px "Songti SC","Noto Serif SC",serif;letter-spacing:-.02em}.who{font-size:11px;color:var(--muted);text-align:right}.who button{margin-left:9px;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:8px;padding:6px 9px}
.layout{min-height:calc(100vh - 68px)}.side{position:fixed;inset:0 auto 0 0;width:224px;padding:25px 16px 20px;background:linear-gradient(180deg,#192823,#14221d);color:#edf3ef;display:flex;flex-direction:column;z-index:5}.brand{display:flex;gap:12px;align-items:center;padding:0 7px 26px}.brand-mark{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;background:#f7f4e9;color:var(--ink);font:800 22px "Songti SC",serif;flex:none}.brand strong{display:block;letter-spacing:.08em;font-size:14px}.brand small{display:block;color:#95a29c;font-size:10px;margin-top:3px}
.nav{display:grid;gap:5px}.nav-item,.nav{width:100%;text-align:left;border:0;background:transparent;color:#aebbb5;padding:11px 12px;border-radius:9px;margin-bottom:4px}.nav-item.active,.nav-item:hover,.nav.active,.nav:hover{background:#f4f0e6;color:var(--ink)}.nav-item.active{font-weight:700}.rail-foot{margin-top:auto;display:flex;align-items:center;gap:10px;padding:15px 10px 0;border-top:1px solid #35433d}.rail-foot b{display:block;font-size:11px}.rail-foot small{display:block;color:#84928c;font-size:9px;margin-top:2px}.live-dot{width:8px;height:8px;border-radius:50%;background:#62c4a0;box-shadow:0 0 0 5px rgba(98,196,160,.09);flex:none}
.main{margin-left:224px;padding:21px 30px 55px;max-width:1540px}.section{display:none}.section.active{display:block;animation:reveal .24s ease-out}@keyframes reveal{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}.section-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-end;margin-bottom:18px}.section-head h2{margin:0;font:600 29px/1.1 "Songti SC","Noto Serif SC",serif;letter-spacing:-.03em}.section-head p{color:var(--muted);margin:6px 0 0;font-size:12px}
.hero-ledger{display:grid;grid-template-columns:1.08fr .92fr;min-height:255px;border:1px solid var(--line2);border-radius:22px;overflow:hidden;background:var(--surface);box-shadow:var(--shadow)}.hero-main{padding:30px 33px;position:relative;background:linear-gradient(135deg,#fbfaf5,#f0ece1)}.hero-main:after{content:"";position:absolute;right:22px;top:24px;width:58px;height:2px;background:var(--coral);box-shadow:0 8px 0 rgba(220,102,66,.22),0 16px 0 rgba(220,102,66,.10)}.hero-number{display:flex;gap:7px;align-items:flex-start;margin:6px 0 10px}.hero-number small{font:600 22px "Songti SC",serif;margin-top:8px;color:var(--forest)}.hero-number strong{font:700 clamp(50px,6vw,77px)/.95 "Songti SC","Noto Serif SC",serif;letter-spacing:-.055em}.hero-note{color:#667069;font-size:12px;line-height:1.75;margin:0}.hero-note b{color:var(--ink)}.hero-actions{display:flex;gap:22px;margin-top:25px;font-size:11px;color:var(--muted);flex-wrap:wrap}.hero-actions b{color:var(--ink);font-size:13px}.trend{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:6px;background:var(--coral)}
.cash-board{padding:27px 28px;background:var(--ink);color:#f0f3ed;display:flex;flex-direction:column}.cash-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px}.cash-head span{color:#a8b3ad;font-size:11px}.cash-head strong{font:600 24px "Songti SC",serif}.cash-bar{display:flex;gap:5px;height:10px;margin:27px 0 20px;background:#263b31;border-radius:2px;overflow:hidden}.cash-bar i{display:block;height:100%}.settled{background:#7dc3a7}.frozen{background:var(--coral)}.private{background:#d4b26e}.promotion{background:#7f9fb5}.cash-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px 18px}.cash-grid button{display:grid;grid-template-columns:9px 1fr;gap:5px 8px;background:none;border:0;padding:0;text-align:left;color:#a8b3ad;font-size:10px}.cash-grid b{grid-column:2;color:#f5f5ef;font-size:16px;font-family:"Songti SC",serif;font-weight:600}.key{width:7px;height:7px;border-radius:50%;margin-top:4px}
.metric-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:16px 0;border:1px solid var(--line);border-radius:15px;background:rgba(251,250,245,.70);overflow:hidden}.metric-row article{padding:15px 18px;border-right:1px solid var(--line)}.metric-row article:last-child{border-right:0}.metric-row span{display:block;color:var(--muted);font-size:10px;font-weight:650}.metric-row strong{display:block;font:600 22px "Songti SC",serif;margin-top:4px}.metric-row small{display:block;color:var(--muted);font-size:9px;margin-top:2px}.accent-coral{color:var(--coral)!important}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.75fr);gap:16px}.right-stack{display:grid;gap:16px;align-content:start}.panel{background:var(--surface);border:1px solid var(--line);border-radius:15px;padding:18px;box-shadow:0 7px 24px rgba(42,42,34,.035)}.panel h3{font:600 20px "Songti SC","Noto Serif SC",serif;margin:0 0 14px}.panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px}.panel-head h3{margin:0}.text-action{border:0;background:none;color:var(--forest);font-size:11px;padding:0}
.order-list{display:grid}.order-row{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(120px,.85fr) auto auto;gap:14px;align-items:center;padding:13px 2px;border-top:1px solid #ebe5da}.order-row:first-child{border-top:0}.order-id{display:block;font-size:12px;font-weight:700;font-variant-numeric:tabular-nums}.order-sub{display:block;color:var(--muted);font-size:10px;margin-top:3px}.bean-amount{font:600 17px "Songti SC",serif}.bean-amount small{display:block;font:10px "PingFang SC",sans-serif;color:var(--muted);margin-top:2px}.row-action{border:0;background:#edf3ef;color:var(--forest);border-radius:7px;padding:6px 9px;font-size:10px;font-weight:700}
.status{display:inline-block;padding:4px 8px;border-radius:999px;font-size:10px;font-weight:700;white-space:nowrap}.status.pending,.status.unverified{background:#f1ebdd;color:#80652f}.status.verified,.status.claimed,.status.ok{background:#e6f3eb;color:var(--good)}.status.refund,.status.error{background:#f8e4dc;color:#99412d}.status.info{background:#e9eef6;color:#35598c}
.task-list{display:grid;gap:8px}.task-item{display:flex;gap:10px;align-items:flex-start;padding:10px 11px;background:var(--surface2);border-radius:9px}.task-item i{width:7px;height:7px;border-radius:50%;background:var(--coral);margin-top:6px;flex:none}.task-item b{display:block;font-size:11px}.task-item small{display:block;color:var(--muted);font-size:10px;margin-top:2px}
.policy-card{background:var(--ink);color:#f4f3ed;border-color:var(--ink)}.policy-card .eyebrow{color:#98a59f}.policy-card h3{color:#fff}.policy-card ol{padding-left:17px;margin:0;color:#bdc7c2;line-height:1.9;font-size:11px}
.row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.row.two{grid-template-columns:repeat(2,minmax(0,1fr))}.filter-row{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin-bottom:12px}.filter-row input{width:auto;min-width:220px;margin-left:auto}.table-wrap{overflow:auto}.table-wrap table{margin:0}table{width:100%;border-collapse:collapse;min-width:720px}th{text-align:left;padding:9px 12px;background:var(--surface2);color:var(--muted);font-size:9px;font-weight:750}td{padding:12px;border-top:1px solid #ebe5da;font-size:11px;vertical-align:middle}td small{display:block;color:var(--muted);font-size:9px;margin-top:2px}.order-cell strong{display:block;font-size:11px}.mono{font-variant-numeric:tabular-nums}.empty{padding:28px;text-align:center;color:var(--muted)}
.note{padding:10px 12px;border-radius:9px;background:var(--surface2);color:#65746b;font-size:10px;margin-top:10px;line-height:1.65}.note.error{background:#f8e4dc;color:#91422e}.note.success{background:#e8f4ec;color:var(--good)}.meta{color:var(--muted);font-size:10px}.list{display:grid;gap:8px}.list-item{display:flex;justify-content:space-between;gap:12px;padding:10px;background:#f7f4ed;border-radius:9px}
.finance-summary{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--line);border-radius:15px;overflow:hidden;margin-bottom:16px;background:var(--surface)}.finance-summary div{padding:15px;border-right:1px solid var(--line)}.finance-summary div:last-child{border:0}.finance-summary span{display:block;color:var(--muted);font-size:10px}.finance-summary strong{display:block;font:600 21px "Songti SC",serif;margin-top:4px}.finance-summary .dark{background:var(--ink);color:#fff}.finance-summary .dark span{color:#9aaba4}
@media(max-width:1180px){.dashboard-grid{grid-template-columns:1fr}.right-stack{grid-template-columns:1fr 1fr}.hero-ledger{grid-template-columns:1fr}.cash-board{min-height:230px}}@media(max-width:820px){.top{margin-left:0;padding:14px 16px 0;height:auto;min-height:64px}.top:after{left:16px;right:16px}.side{position:static;width:auto;padding:14px 12px;flex-direction:column}.brand{padding-bottom:12px}.nav{display:flex;overflow:auto}.nav-item,.nav{min-width:max-content;width:auto;padding:8px 10px}.rail-foot{display:none}.main{margin-left:0;padding:18px 14px 40px}.section-head{align-items:flex-start;flex-direction:column}.metric-row{grid-template-columns:1fr 1fr}.metric-row article:nth-child(2){border-right:0}.metric-row article:nth-child(n+3){border-top:1px solid var(--line)}.row,.row.two{grid-template-columns:1fr}.order-row{grid-template-columns:1fr auto;gap:8px}.order-row .bean-amount{grid-column:1}.right-stack{grid-template-columns:1fr}}@media(max-width:520px){.top{flex-direction:column;align-items:flex-start}.who{text-align:left}.hero-main,.cash-board{padding:23px 20px}.metric-row,.finance-summary{grid-template-columns:1fr}.metric-row article{border-right:0;border-bottom:1px solid var(--line)}.filter-row input{margin-left:0;width:100%}.order-row{grid-template-columns:1fr}.brand-mark{width:36px;height:36px}.login-box{padding:25px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.monitor-dock{position:fixed;right:20px;bottom:20px;z-index:80;width:min(620px,calc(100vw - 40px));background:rgba(25,40,35,.96);color:#edf3ef;border:1px solid #3d5c4d;border-radius:15px;box-shadow:0 18px 48px rgba(15,28,22,.28);backdrop-filter:blur(12px);padding:13px}
.dock-head{display:flex;align-items:center;gap:7px;font-size:11px;color:#b7c6bd;touch-action:none}.dock-head b{color:#f5f6f1;font-size:11px;letter-spacing:.02em}.dock-head #dockSummary{margin-left:auto;color:#86d0ad;font-weight:700}.dock-scale-label{font-size:10px;color:#a9bdb2;min-width:34px;text-align:right}.dock-head #dockSummary.bad{color:#ff9b86}
.dock-dot{width:8px;height:8px;border-radius:50%;background:#62c4a0;box-shadow:0 0 0 4px rgba(98,196,160,.10);flex:none}.dock-dot.bad{background:var(--coral);box-shadow:0 0 0 4px rgba(220,102,66,.12)}.dock-body{display:grid;gap:5px;margin-top:10px}.dock-row{display:flex;align-items:center;gap:8px;width:100%;border:0;background:#243b2f;border-radius:8px;padding:8px 9px;color:#edf3ef;text-align:left}.dock-row:hover{background:#2d4b3b}.dock-row .dot{width:7px;height:7px;border-radius:50%;background:#62c4a0}.dock-row .dot.bad{background:var(--coral)}.dock-row b{font-size:11px}.dock-row small{display:block;color:#9dafA4;font-size:9px;margin-top:1px}.dock-row .go{margin-left:auto;color:#b9d8c7;font-size:10px}.dock-foot{margin-top:9px;color:#80938a;font-size:9px}
.monitor-modal{position:fixed;inset:0;z-index:200;background:rgba(15,26,21,.64);backdrop-filter:blur(5px);display:grid;place-items:center;padding:18px}
.monitor-dialog{width:min(1120px,100%);height:min(860px,calc(100vh - 36px));background:var(--surface);border:1px solid var(--line2);border-radius:18px;box-shadow:0 32px 100px rgba(0,0,0,.32);display:grid;grid-template-rows:auto auto minmax(0,1fr);overflow:hidden}
.monitor-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;padding:18px 20px 12px}.monitor-head h3{font:600 25px "Songti SC","Noto Serif SC",serif;margin:0}.monitor-hint{color:#8c4b36;font-size:11px;margin:5px 0 0}.monitor-actions{display:flex;gap:7px;flex-wrap:wrap}.monitor-tabs{display:flex;gap:4px;padding:0 20px 12px;border-bottom:1px solid var(--line)}.monitor-tabs button{border:0;background:transparent;color:var(--muted);padding:7px 10px;border-radius:7px;font-size:11px}.monitor-tabs button.active{background:var(--ink);color:#fff}.monitor-tabs .snooze{margin-left:auto;color:var(--coral);text-decoration:underline}.monitor-dialog iframe{width:100%;height:100%;border:0;background:#fff;display:block}
.monitor-dock.hidden,.monitor-modal.hidden{display:none!important}
@media(max-width:650px){.monitor-dock{right:10px;left:10px;bottom:10px;width:auto}.monitor-modal{padding:0}.monitor-dialog{height:100vh;border-radius:0}.monitor-head{flex-direction:column}.monitor-tabs{flex-wrap:wrap}.monitor-tabs .snooze{margin-left:0;width:100%;text-align:left;padding-left:0}.monitor-actions{width:100%}.monitor-actions .btn{flex:1}}
.dock-drag{cursor:grab;color:#9fb3a7;font-size:15px;line-height:1;user-select:none}.dock-drag:active{cursor:grabbing}.dock-head{cursor:grab;user-select:none}.dock-head button{cursor:pointer}.dock-zoom{width:22px;height:22px;padding:0;border:1px solid #456353;border-radius:5px;background:#294435;color:#e6f2ea;font-size:14px;line-height:19px;margin-left:2px}.dock-zoom:hover{background:#355844}
.monitor-frame-wrap{min-height:0;overflow:auto;background:#fff;border-top:1px solid var(--line)}.monitor-frame-wrap iframe{width:100%;height:100%;min-width:900px;min-height:600px;border:0;background:#fff;display:block}.zoom-label{font-size:10px;color:var(--muted);align-self:center;min-width:34px;text-align:center}
.monitor-head{cursor:move;user-select:none}.monitor-actions button,.monitor-head a{cursor:pointer}.monitor-dialog{position:fixed;margin:0;transform:none}

/* ============================================================
   核销系统 · UI 优化覆盖层 v2
   深色专业版 + 卡片化布局 + 呼吸感动效
   追加在 finance.css 末尾；删除本段即可还原。
   只改样式（配色/圆角/阴影/间距/动效），不改 DOM 与业务逻辑。
   ============================================================ */

/* ---------- 1. 主题变量 ---------- */
:root{
  --ink:#e6edf7;
  --paper:#0a0f18;
  --surface:#111827;
  --surface2:#0d1522;
  --line:#1e293b;
  --line2:#2f3f57;
  --muted:#8b98ad;
  --forest:#22d3ee;
  --coral:#fb7185;
  --amber:#fbbf24;
  --good:#34d399;
  --shadow:0 18px 52px rgba(0,0,0,.5);
  --radius:18px;
  color-scheme:dark;
}

html{background:#0a0f18}
body{
  background:
    radial-gradient(circle at 88% 4%, rgba(34,211,238,.09), transparent 30rem),
    radial-gradient(circle at 8% 100%, rgba(167,139,250,.08), transparent 30rem),
    linear-gradient(135deg,#0a0f18,#0c1320);
  color:#e6edf7;
}

/* 标题改无衬线 */
h1,h2,h3,.login-box h1,.section-head h2,.panel h3,.top-context strong,
.hero-number strong,.brand strong,.metric-row strong,.cash-head strong,
.bean-amount,.finance-summary strong,.balance-total,
.monitor-head h3,.dock-head b{
  font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  letter-spacing:-.01em;
}

/* ---------- 2. 表单 / 按钮 ---------- */
input,select,textarea{background:#0d1522;border-color:#1e293b;color:#e6edf7}
input:focus,select:focus,textarea:focus{border-color:#22d3ee;box-shadow:0 0 0 3px rgba(34,211,238,.12)}
label{color:#8b98ad}
.btn{background:#111827;border-color:#1e293b;color:#e6edf7;
  transition:transform .2s cubic-bezier(.16,1,.3,1),background .2s,border-color .2s,box-shadow .25s}
.btn:hover{background:#172033;border-color:#2f3f57;transform:translateY(-1px)}
.btn:active{transform:translateY(1px) scale(.99)}
.btn.primary{background:#22d3ee;border-color:#22d3ee;color:#04121a}
.btn.primary:hover{background:#06b6d4;box-shadow:0 10px 24px -10px rgba(34,211,238,.6)}
.btn.danger{background:rgba(251,113,133,.12);border-color:rgba(251,113,133,.32);color:#fb7185}
.btn:disabled{opacity:.45}

/* ---------- 3. 登录页 ---------- */
.login{background:radial-gradient(circle at 18% 10%, rgba(34,211,238,.13), transparent 42%),#080d15}
.login-box{background:linear-gradient(180deg,#111827,#0d1522);border-color:#2f3f57;
  box-shadow:0 30px 80px -30px rgba(34,211,238,.25)}
.login-box:before{border-color:rgba(34,211,238,.28)}
.login-box h1{color:#fff}
.login-box p{color:#8b98ad}
.login-mark{background:#0d1522;color:#22d3ee}

/* ---------- 4. 顶栏 / 侧栏 ---------- */
.top:after{background:linear-gradient(90deg,#22d3ee,transparent 42%)}
.who{color:#8b98ad}
.who button{background:#111827;border-color:#1e293b;color:#e6edf7}
.side{background:linear-gradient(180deg,#0a0f18,#0d1522);color:#e6edf7}
.brand-mark{background:#111827;color:#22d3ee}
.brand small,.rail-foot small{color:#6b7890}
.nav-item,.nav{color:#a9b6cb;transition:background .2s,color .2s,transform .2s}
.nav-item.active,.nav-item:hover,.nav.active,.nav:hover{background:#172033;color:#e6edf7}
.nav-item:hover,.nav:hover{transform:translateX(2px)}
.rail-foot{border-top-color:#1e293b}
.live-dot{background:#34d399;box-shadow:0 0 0 5px rgba(52,211,153,.12);
  animation:breathe 2.4s ease-in-out infinite}

/* ---------- 5. 卡片化：主视觉 ---------- */
.hero-ledger{
  background:linear-gradient(135deg,#111827,#0d1522);
  border-color:#2f3f57;border-radius:22px;
  box-shadow:0 24px 60px -34px rgba(34,211,238,.28);
  transition:transform .35s cubic-bezier(.16,1,.3,1),box-shadow .35s,border-color .35s;
}
.hero-ledger:hover{transform:translateY(-3px);border-color:#3b4d69;
  box-shadow:0 30px 70px -34px rgba(34,211,238,.42)}
.hero-main{background:linear-gradient(135deg,#111827,#0b1220)}
.hero-note{color:#8b98ad}
.hero-note b{color:#e6edf7}
.hero-number small{color:#22d3ee}
.hero-actions{color:#8b98ad}
.hero-actions b{color:#e6edf7}
.trend{background:#fb7185}

/* 现金卡 */
.cash-board{background:linear-gradient(160deg,#0a0f18,#0e1726);color:#e6edf7}
.cash-head span{color:#8b98ad}
.cash-bar{background:#1e293b}
.cash-bar i{transition:width .6s cubic-bezier(.16,1,.3,1)}
.cash-grid button{color:#8b98ad}
.cash-grid b{color:#f8fafc}

/* ---------- 6. 卡片化：指标条拆成 4 张卡 ---------- */
.metric-row{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;margin:18px 0;
  border:0;background:transparent;overflow:visible;border-radius:0;
}
.metric-row article{
  border:1px solid #1e293b;border-right:1px solid #1e293b;
  border-radius:16px;padding:18px 20px;position:relative;overflow:hidden;
  background:linear-gradient(180deg,rgba(17,24,39,.92),rgba(13,21,34,.95));
  transition:transform .3s cubic-bezier(.16,1,.3,1),box-shadow .3s,border-color .3s;
}
.metric-row article::before{
  content:"";position:absolute;inset:0 0 auto 0;height:2px;
  background:linear-gradient(90deg,#22d3ee,#a78bfa 55%,transparent);
  opacity:.85;
}
.metric-row article:hover{
  transform:translateY(-4px);border-color:#2f3f57;
  box-shadow:0 18px 40px -20px rgba(34,211,238,.4);
}
.metric-row span,.metric-row small{color:#8b98ad}

/* ---------- 7. 卡片化：面板 ---------- */
.panel{
  border:1px solid #1e293b;border-radius:18px;
  background:linear-gradient(180deg,rgba(17,24,39,.92),rgba(13,21,34,.94));
  box-shadow:0 12px 32px -20px rgba(0,0,0,.6);
  position:relative;overflow:hidden;
  transition:transform .32s cubic-bezier(.16,1,.3,1),box-shadow .32s,border-color .32s;
}
.panel::before{
  content:"";position:absolute;inset:0 0 auto 0;height:2px;
  background:linear-gradient(90deg,#22d3ee,#a78bfa 55%,transparent);
  opacity:.8;pointer-events:none;
}
.panel:hover{
  transform:translateY(-2px);border-color:#2f3f57;
  box-shadow:0 22px 48px -24px rgba(34,211,238,.3);
}
.panel-head{border-color:#1e293b}
.text-action{color:#22d3ee}

/* ---------- 8. 卡片化：订单行 / 任务项 ---------- */
.order-list{gap:9px}
.order-row{
  border:1px solid #1e293b;border-top:1px solid #1e293b;
  border-radius:14px;padding:14px 16px;
  background:rgba(17,24,39,.62);
  transition:transform .25s cubic-bezier(.16,1,.3,1),box-shadow .25s,border-color .25s,background .25s;
}
.order-row:first-child{border-top:1px solid #1e293b}
.order-row:hover{
  transform:translateY(-2px);border-color:#2f3f57;background:rgba(23,32,51,.82);
  box-shadow:0 14px 30px -18px rgba(34,211,238,.35);
}
.order-sub{color:#8b98ad}
.row-action{background:rgba(34,211,238,.1);color:#22d3ee;transition:background .2s,transform .2s}
.row-action:hover{background:rgba(34,211,238,.18);transform:translateY(-1px)}

.task-list{gap:9px}
.task-item{
  border:1px solid #1e293b;border-radius:12px;
  background:rgba(13,21,34,.7);
  transition:transform .25s,border-color .25s,background .25s;
}
.task-item:hover{transform:translateY(-2px);border-color:#2f3f57;background:rgba(23,32,51,.8)}
.task-item small{color:#8b98ad}

.policy-card{background:linear-gradient(160deg,#0a0f18,#0e1726);border-color:#1e293b}
.policy-card .eyebrow{color:#8b98ad}
.policy-card ol{color:#a9b6cb}

/* ---------- 9. 卡片化：财务汇总 / 表格 ---------- */
.finance-summary{
  display:grid;grid-template-columns:repeat(4,1fr);gap:14px;
  border:0;background:transparent;overflow:visible;border-radius:0;
}
.finance-summary div{
  border:1px solid #1e293b;border-right:1px solid #1e293b;
  border-radius:16px;padding:17px 18px;
  background:linear-gradient(180deg,rgba(17,24,39,.92),rgba(13,21,34,.95));
  transition:transform .28s,border-color .28s,box-shadow .28s;
}
.finance-summary div:last-child{border:1px solid #1e293b}
.finance-summary div:hover{transform:translateY(-3px);border-color:#2f3f57;
  box-shadow:0 16px 36px -20px rgba(34,211,238,.35)}
.finance-summary span{color:#8b98ad}
.finance-summary .dark{background:linear-gradient(160deg,#0a0f18,#0e1726);color:#fff}
.finance-summary .dark span{color:#8b98ad}

.table-wrap{
  border:1px solid #1e293b;border-radius:16px;overflow:auto;
  background:rgba(17,24,39,.55);
}
th{background:#0d1522;color:#8b98ad}
td{border-top-color:#1e293b}
tbody tr{transition:background .2s}
tbody tr:hover td{background:rgba(34,211,238,.05)}
.order-cell small,td small{color:#8b98ad}

/* ---------- 10. 状态 / 提示 ---------- */
.status{padding:4px 9px;transition:transform .2s}
.status:hover{transform:translateY(-1px)}
.status.pending,.status.unverified{background:rgba(251,191,36,.14);color:#fbbf24}
.status.verified,.status.claimed,.status.ok{background:rgba(52,211,153,.14);color:#34d399}
.status.refund,.status.error{background:rgba(251,113,133,.14);color:#fb7185}
.status.info{background:rgba(96,165,250,.14);color:#60a5fa}

.note{background:#0d1522;color:#a9b6cb;border-radius:10px}
.note.error{background:rgba(251,113,133,.12);color:#fb7185}
.note.success{background:rgba(52,211,153,.12);color:#34d399}
.meta{color:#8b98ad}
.list-item{background:#0d1522;border-radius:10px;transition:background .2s}
.list-item:hover{background:#131d2e}

/* ---------- 11. 呼吸感动效 ---------- */
@keyframes cardIn{
  from{opacity:0;transform:translateY(10px)}
  to{opacity:1;transform:none}
}
@keyframes breathe{
  0%,100%{opacity:1;transform:scale(1)}
  50%{opacity:.55;transform:scale(.85)}
}
.section.active .panel,
.section.active .hero-ledger,
.section.active .metric-row article,
.section.active .order-row,
.section.active .task-item,
.section.active .finance-summary div{
  animation:cardIn .5s cubic-bezier(.16,1,.3,1) both;
}
.metric-row article:nth-child(1){animation-delay:.02s}
.metric-row article:nth-child(2){animation-delay:.07s}
.metric-row article:nth-child(3){animation-delay:.12s}
.metric-row article:nth-child(4){animation-delay:.17s}
.order-row:nth-child(1){animation-delay:.02s}
.order-row:nth-child(2){animation-delay:.06s}
.order-row:nth-child(3){animation-delay:.10s}
.order-row:nth-child(4){animation-delay:.14s}
.order-row:nth-child(5){animation-delay:.18s}
.finance-summary div:nth-child(1){animation-delay:.02s}
.finance-summary div:nth-child(2){animation-delay:.07s}
.finance-summary div:nth-child(3){animation-delay:.12s}
.finance-summary div:nth-child(4){animation-delay:.17s}

/* ---------- 12. 监控浮窗 / 弹窗 ---------- */
.monitor-dock{background:rgba(10,15,24,.96);border-color:#2f3f57;color:#e6edf7;
  box-shadow:0 24px 60px -24px rgba(0,0,0,.8)}
.dock-head{color:#a9b6cb}
.dock-head b{color:#f8fafc}
.dock-dot{animation:breathe 2.4s ease-in-out infinite}
.dock-row{background:#111827;color:#e6edf7;transition:background .2s,transform .2s}
.dock-row:hover{background:#172033;transform:translateY(-1px)}
.dock-row small{color:#8b98ad}
.dock-zoom{background:#111827;border-color:#2f3f57;color:#e6edf7}
.dock-zoom:hover{background:#172033}
.monitor-modal{background:rgba(5,8,14,.72)}
.monitor-dialog{background:#111827;border-color:#2f3f57}
.monitor-hint{color:#fbbf24}
.monitor-tabs{border-bottom-color:#1e293b}
.monitor-tabs button{color:#8b98ad;transition:background .2s,color .2s}
.monitor-tabs button.active{background:#22d3ee;color:#04121a}
.monitor-frame-wrap{background:#0d1522;border-top-color:#1e293b}
.zoom-label{color:#8b98ad}

/* ---------- 13. 滚动条 ---------- */
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-track{background:#0a0f18}
::-webkit-scrollbar-thumb{background:#1e293b;border-radius:6px}
::-webkit-scrollbar-thumb:hover{background:#2f3f57}

/* ---------- 14. 响应式补丁（卡片化后） ---------- */
@media(max-width:820px){
  .metric-row{grid-template-columns:1fr 1fr;gap:12px}
  .metric-row article:nth-child(2){border-right:1px solid #1e293b}
  .metric-row article:nth-child(n+3){border-top:1px solid #1e293b}
  .finance-summary{grid-template-columns:1fr 1fr;gap:12px}
}
@media(max-width:520px){
  .metric-row,.finance-summary{grid-template-columns:1fr}
}
/* ============================================================
   指标卡 v3：渐变图标胶囊 + 迷你趋势线
   对齐 shadcn 面板的视觉语言
   ============================================================ */
.metric-row article.m-card{
  padding:18px 20px 16px;
  display:flex;flex-direction:column;
}
.m-card .m-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.m-card .m-label{color:#8b98ad;font-size:12px;font-weight:650;letter-spacing:.01em}
.m-card .m-ico{
  width:38px;height:38px;border-radius:11px;display:grid;place-items:center;flex:none;
  background:linear-gradient(135deg,var(--c),var(--c2));color:#04121a;
  box-shadow:0 6px 16px -8px var(--c);
  transition:transform .3s cubic-bezier(.16,1,.3,1);
}
.m-card:hover .m-ico{transform:scale(1.08) rotate(-3deg)}
.m-card .m-ico svg{width:18px;height:18px}
.m-card strong{font-size:24px;margin-top:10px;font-weight:700;letter-spacing:-.02em;line-height:1.15}
.m-card .m-foot{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin-top:10px}
.m-card .m-foot small{color:#8b98ad;font-size:10px;line-height:1.4}
.m-card .m-spark{width:92px;height:30px;flex:none;color:var(--c);opacity:.95}
.m-card .m-spark path{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.metric-row article.m-card:nth-child(1){--c:#22d3ee;--c2:#a78bfa}
.metric-row article.m-card:nth-child(2){--c:#fb7185;--c2:#a78bfa}
.metric-row article.m-card:nth-child(3){--c:#fbbf24;--c2:#fb7185}
.metric-row article.m-card:nth-child(4){--c:#38bdf8;--c2:#22d3ee}

@media(max-width:520px){
  .m-card .m-spark{width:72px;height:26px}
}
/* Store health, exit IP and verification alerts */
.dock-row .dock-copy { min-width: 0; flex: 1; }
.dock-row .dock-copy small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-row.attention { border: 1px solid rgba(255, 119, 94, 0.62); background: rgba(104, 37, 28, 0.42); box-shadow: inset 3px 0 0 #ff775e; }
.dock-row.attention:hover { background: rgba(126, 44, 33, 0.52); }
.dock-row.attention .dot { background: #ff775e; box-shadow: 0 0 0 4px rgba(255, 119, 94, 0.12); }
.dock-row.attention small { color: #ffb5a5; }
.dock-row.attention .go { color: #ff9b86; font-weight: 700; }
.dock-alert { display: inline-flex; align-items: center; margin-left: 6px; padding: 1px 5px; border: 1px solid rgba(255, 119, 94, 0.55); border-radius: 999px; color: #ffb5a5; background: rgba(255, 119, 94, 0.13); font-size: 7px; font-weight: 700; vertical-align: middle; white-space: nowrap; }
