/* ═══════════════════════════════════════════════════════════
   DARKFLOW // 暗河 · 样式表
   单色近黑 + 酸性荧光绿；1px 硬边；等宽字体。
   ═══════════════════════════════════════════════════════════ */
:root {
  --bg: #05070a;
  --bg2: #070a0e;
  --panel: #0a0e13;
  --panel2: #0c1117;
  --line: #16212b;
  --line2: #22323f;
  --fg: #c6d3cc;
  --fg2: #8fa39b;
  --dim: #5b6d66;
  --dim2: #3d4a45;
  --acid: #9dff3c;
  --acid2: #6ecf1c;
  --red: #ff4b4b;
  --amber: #ffb64d;
  --cyan: #59d7ff;
  --violet: #c9a4ff;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Noto Sans Mono CJK SC", "Sarasa Mono SC", Consolas, monospace;
  --sans: "Inter", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  --shadow: 0 18px 60px rgba(0, 0, 0, .65);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
body.modal-open { overflow: hidden; }
::selection { background: rgba(157, 255, 60, .25); color: #eaffd6; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #06090c; }
::-webkit-scrollbar-thumb { background: #1c2a33; border: 2px solid #06090c; }
::-webkit-scrollbar-thumb:hover { background: #2b3f4b; }
button, input, select { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: var(--acid); }
h1, h2, h3, p { margin: 0; }
.mono { font-family: var(--mono); }
.dim { color: var(--dim); }
.hide { display: none !important; }
.grow { flex: 1; }
.right { text-align: right; }
.pos { color: var(--acid); }
.neg { color: var(--red); }
.bad { color: var(--red) !important; }
.red { color: var(--red); }

/* ── 背景 / CRT ─────────────────────────────────────────── */
#rain { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .55; pointer-events: none; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(157, 255, 60, .05), transparent 70%),
    radial-gradient(700px 500px at 100% 0%, rgba(89, 215, 255, .035), transparent 70%),
    radial-gradient(900px 700px at 50% 120%, rgba(157, 255, 60, .03), transparent 70%);
}
#crt-overlay {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .55;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px),
    radial-gradient(120% 100% at 50% 50%, transparent 55%, rgba(0, 0, 0, .55) 100%);
  mix-blend-mode: multiply;
  animation: flicker 7s infinite steps(1);
}
body.no-crt #crt-overlay { display: none; }
@keyframes flicker {
  0%, 96%, 100% { opacity: .55; }
  97% { opacity: .42; }
  98% { opacity: .62; }
}

/* ── 布局 ───────────────────────────────────────────────── */
#app {
  position: relative; z-index: 1; height: 100vh;
  display: grid; grid-template-rows: 58px 1fr 26px;
  opacity: 0; transition: opacity .5s ease;
}
#app.on { opacity: 1; }
#shell { display: grid; grid-template-columns: 208px minmax(0, 1fr) 300px; min-height: 0; }
#view { overflow-y: auto; padding: 22px 26px 40px; min-width: 0; }
#rail { border-left: 1px solid var(--line); padding: 14px 14px 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; background: linear-gradient(180deg, rgba(10, 14, 19, .5), transparent 40%); }
body.glitch #view { animation: glitchIn .22s steps(2) 1; }
@keyframes glitchIn {
  0% { transform: translateX(0); filter: none; opacity: .6; }
  30% { transform: translateX(-3px); filter: hue-rotate(20deg); opacity: .8; }
  60% { transform: translateX(2px) skewX(.6deg); filter: none; }
  100% { transform: none; opacity: 1; }
}

/* ── 顶栏 ───────────────────────────────────────────────── */
#topbar {
  display: flex; align-items: center; gap: 18px; padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 12, 16, .96), rgba(6, 9, 12, .86));
  backdrop-filter: blur(8px);
  position: relative; z-index: 40;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.onion-mark {
  width: 26px; height: 26px; display: grid; place-items: center; color: var(--acid);
  border: 1px solid rgba(157, 255, 60, .5); border-radius: 50%;
  font-size: 12px; box-shadow: 0 0 14px rgba(157, 255, 60, .25) inset, 0 0 10px rgba(157, 255, 60, .15);
  animation: onionPulse 3.4s ease-in-out infinite;
}
@keyframes onionPulse { 0%, 100% { box-shadow: 0 0 10px rgba(157, 255, 60, .12) inset; } 50% { box-shadow: 0 0 18px rgba(157, 255, 60, .35) inset; } }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-size: 14px; letter-spacing: .16em; color: #e6f5e0; }
.brand-text span { font-family: var(--sans); font-size: 10px; color: var(--dim); letter-spacing: .28em; }
.sim {
  font-size: 9px; letter-spacing: .22em; color: var(--acid);
  border: 1px solid rgba(157, 255, 60, .4); padding: 2px 5px; background: rgba(157, 255, 60, .06);
  margin-left: 4px;
}
.top-meta { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--dim); min-width: 0; }
.top-meta .sep { color: var(--dim2); }
.addr {
  font-family: var(--mono); font-size: 11px; color: var(--fg2); background: #0a0f13;
  border: 1px solid var(--line2); padding: 3px 8px; white-space: nowrap;
  transition: .15s; overflow: hidden; text-overflow: ellipsis; max-width: 250px;
}
.addr:hover { color: var(--acid); border-color: rgba(157, 255, 60, .4); }
#online { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 8px var(--acid); animation: blink 2.2s infinite; display: inline-block; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.top-stats { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.stat { display: flex; align-items: center; gap: 7px; }
.stat label { font-family: var(--sans); font-size: 10px; color: var(--dim); letter-spacing: .12em; }
.stat.cred .val { display: flex; align-items: baseline; gap: 4px; }
.stat.cred b { font-size: 16px; color: var(--acid); letter-spacing: .02em; text-shadow: 0 0 12px rgba(157, 255, 60, .35); }
.stat.cred b.low { color: var(--amber); }
.stat.cred i { font-style: normal; font-size: 9px; color: var(--dim); }
.stat.rep b { font-size: 14px; color: var(--fg); }
.heat { gap: 8px; }
.heat .heatbar { width: 62px; height: 5px; background: #121a20; border: 1px solid var(--line2); position: relative; overflow: hidden; }
.heat .heatbar i { display: block; height: 100%; width: 8%; background: var(--acid); transition: width .4s, background .4s; box-shadow: 0 0 8px currentColor; }
.heat b { font-size: 12px; color: var(--fg2); min-width: 18px; }
.heat.warn .heatbar i { background: var(--amber); }
.heat.warn b { color: var(--amber); }
.heat.danger .heatbar i { background: var(--red); animation: heatPulse 1s infinite; }
.heat.danger b { color: var(--red); }
@keyframes heatPulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.topbtns { display: flex; gap: 2px; }
.topbtns button {
  width: 26px; height: 26px; display: grid; place-items: center;
  color: var(--fg2); border: 1px solid transparent; font-size: 12px; transition: .15s;
}
.topbtns button:hover { color: var(--acid); border-color: var(--line2); background: #0b1014; }
.topbtns button.off { color: var(--dim2); text-decoration: line-through; }

/* ── 侧栏 ───────────────────────────────────────────────── */
#side { border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 14px 10px 12px; gap: 2px; min-height: 0; }
.nav-id { display: flex; align-items: center; gap: 6px; padding: 0 8px 12px; border-bottom: 1px dashed var(--line); margin-bottom: 10px; font-size: 11px; overflow: hidden; }
.nav-id span { color: var(--acid); }
.nav-id b { color: var(--fg); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-id i { font-style: normal; font-size: 8px; letter-spacing: .14em; color: var(--dim); border: 1px solid var(--line2); padding: 1px 4px; margin-left: auto; }
#side > button {
  display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto; align-items: center; gap: 6px;
  padding: 9px 9px; text-align: left; color: var(--fg2); font-size: 13px; position: relative;
  border-left: 2px solid transparent; transition: .14s;
}
#side > button .ic { color: var(--dim); font-size: 12px; }
#side > button .en { font-style: normal; font-size: 8px; letter-spacing: .12em; color: var(--dim2); }
#side > button:hover { background: #0a0f13; color: var(--fg); border-left-color: var(--dim2); }
#side > button:hover .ic { color: var(--acid); }
#side > button.on { background: linear-gradient(90deg, rgba(157, 255, 60, .08), transparent); color: var(--acid); border-left-color: var(--acid); }
#side > button.on .ic { color: var(--acid); }
#side > button.on .en { color: rgba(157, 255, 60, .55); }
.badge {
  font-style: normal; font-size: 9px; background: var(--acid); color: #05130a;
  border-radius: 8px; padding: 0 5px; min-width: 16px; text-align: center; line-height: 15px;
}
#navMsg .badge { background: var(--red); color: #fff; }
.side-foot { margin-top: auto; padding: 10px 8px 0; border-top: 1px dashed var(--line); font-size: 10px; color: var(--dim); }
.sf-row { display: flex; align-items: center; justify-content: space-between; }
.sf-row .led { width: 5px; height: 5px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 6px var(--acid); }
.sf-fine { color: var(--dim2); font-size: 9px; margin-top: 6px; line-height: 1.4; }

/* ── 右栏 ───────────────────────────────────────────────── */
.panel { border: 1px solid var(--line); background: linear-gradient(180deg, #090d11, #070a0e); }
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px; border-bottom: 1px solid var(--line);
  font-size: 10px; letter-spacing: .18em; color: var(--fg2); text-transform: uppercase;
}
.panel-head .mini { font-size: 9px; color: var(--dim); letter-spacing: .08em; }
.live { width: 5px; height: 5px; border-radius: 50%; background: var(--red); box-shadow: 0 0 6px var(--red); animation: blink 1.6s infinite; }
.feed { padding: 6px 0; max-height: 230px; overflow: hidden; }
.feed-row { display: flex; gap: 7px; padding: 3px 10px; font-size: 10.5px; color: var(--dim); line-height: 1.5; }
.feed-row .dot { width: 3px; height: 3px; background: var(--dim2); margin-top: 7px; flex: none; }
.feed-row:first-child { color: var(--fg2); }
.feed-row:first-child .dot { background: var(--acid); }
.mini-contract { padding: 8px 10px; border-bottom: 1px dashed var(--line); }
.mc-top { display: flex; justify-content: space-between; font-size: 11px; color: var(--fg); }
.mc-top span { color: var(--acid); font-size: 10px; }
.mc-desc { font-size: 10px; color: var(--dim); margin: 2px 0 6px; }
.mini-bar { height: 4px; background: #1b2733; overflow: hidden; }
.mini-bar i { display: block; height: 100%; background: var(--acid); transition: width .5s; }
.empty-mini { padding: 12px 10px; font-size: 10px; color: var(--dim2); line-height: 1.6; }
.loglist { padding: 4px 0; }
.log-row { display: flex; justify-content: space-between; gap: 8px; padding: 4px 10px; font-size: 10.5px; color: var(--dim); border-bottom: 1px solid rgba(22, 33, 43, .5); }
.log-row .lt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-row .ld { flex: none; font-size: 10px; }
.log-row.pos .ld { color: var(--acid); }
.log-row.neg .ld { color: var(--red); }
.rail-foot { font-family: var(--sans); font-size: 10px; color: var(--dim2); line-height: 1.6; padding: 2px 2px 0; margin-top: auto; }

/* ── 通用视图头 ─────────────────────────────────────────── */
.view-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 16px; flex-wrap: wrap; }
.vh-left h1 { font-size: 20px; font-weight: 500; letter-spacing: .04em; color: #e8f4ea; display: flex; align-items: baseline; gap: 10px; }
.vh-left h1 .en { font-size: 9px; letter-spacing: .3em; color: var(--dim); }
.vh-left .sub { font-family: var(--sans); font-size: 11px; color: var(--dim); margin-top: 3px; }
.vh-tools { display: flex; align-items: center; gap: 8px; }
.search { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line2); background: #080c10; padding: 0 8px; height: 30px; transition: .15s; }
.search:focus-within { border-color: rgba(157, 255, 60, .45); box-shadow: 0 0 0 1px rgba(157, 255, 60, .08); }
.search span { color: var(--dim); font-size: 12px; }
.search input { border: 0; background: none; outline: none; width: 210px; font-size: 12px; }
.search input::placeholder { color: var(--dim2); }
select {
  background: #080c10; border: 1px solid var(--line2); height: 30px; padding: 0 8px;
  font-size: 11px; color: var(--fg2); outline: none; appearance: none;
}
select:focus { border-color: rgba(157, 255, 60, .45); }
.wallet-pill { border: 1px solid var(--line2); padding: 5px 10px; font-size: 11px; color: var(--fg2); background: #080c10; }
.wallet-pill b { color: var(--acid); }

/* ── 类目标签 ───────────────────────────────────────────── */
.cats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.cat {
  display: flex; align-items: center; gap: 6px; padding: 5px 10px;
  border: 1px solid var(--line); color: var(--fg2); font-size: 12px; transition: .15s; background: #080c10;
}
.cat span { color: var(--dim); font-size: 10px; }
.cat i { font-style: normal; font-size: 8px; letter-spacing: .1em; color: var(--dim2); }
.cat:hover { border-color: var(--line2); color: var(--fg); }
.cat.on { border-color: rgba(157, 255, 60, .45); color: var(--acid); background: rgba(157, 255, 60, .05); }
.cat.on span, .cat.on i { color: rgba(157, 255, 60, .6); }

/* ── 卡片网格 ───────────────────────────────────────────── */
.grid { display: grid; gap: 12px; }
.grid.items { grid-template-columns: repeat(auto-fill, minmax(262px, 1fr)); }
.grid.auctions { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.grid.companies { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card {
  position: relative; border: 1px solid var(--line); background: linear-gradient(180deg, #0a0e13, #080b0f);
  padding: 13px 14px 12px; overflow: hidden; transition: border-color .18s, transform .18s, box-shadow .18s;
  animation: cardIn .32s both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.card:hover { border-color: rgba(157, 255, 60, .34); transform: translateY(-2px); box-shadow: 0 10px 34px rgba(0, 0, 0, .55); }
.card .sweep { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(157, 255, 60, .07) 48%, transparent 62%); transform: translateX(-130%); transition: transform .7s ease; pointer-events: none; }
.card:hover .sweep { transform: translateX(130%); }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.code { font-size: 9px; letter-spacing: .14em; color: var(--dim); border: 1px solid var(--line); padding: 1px 4px; }
.rar { font-size: 9px; letter-spacing: .1em; padding: 1px 5px; border: 1px solid; }
.r-common { color: var(--dim); border-color: var(--line2); }
.r-rare { color: var(--cyan); border-color: rgba(89, 215, 255, .35); background: rgba(89, 215, 255, .05); }
.r-epic { color: var(--violet); border-color: rgba(201, 164, 255, .35); background: rgba(201, 164, 255, .05); }
.r-legend { color: var(--amber); border-color: rgba(255, 182, 77, .4); background: rgba(255, 182, 77, .06); }
.card h3 { font-size: 13.5px; font-weight: 500; color: #e2eee6; line-height: 1.35; margin-bottom: 3px; }
.vendor { font-size: 10px; color: var(--dim); display: flex; align-items: center; gap: 4px; }
.stars { color: var(--acid); letter-spacing: -.02em; font-size: 9px; }
.vendor i { font-style: normal; color: var(--dim2); }
.card .desc { font-family: var(--sans); font-size: 11px; color: var(--dim); line-height: 1.55; margin: 7px 0 9px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 34px; }
.meta-row { display: flex; align-items: center; justify-content: space-between; font-size: 9.5px; color: var(--dim2); margin-bottom: 9px; }
.risk-l { display: flex; align-items: center; gap: 5px; }
.dots { display: inline-flex; gap: 2px; }
.dots i { width: 4px; height: 4px; background: #26343e; display: inline-block; }
.dots i.on { background: var(--amber); }
.card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; border-top: 1px solid rgba(22, 33, 43, .7); padding-top: 9px; }
.price { font-size: 16px; color: #e9f7e2; display: flex; align-items: baseline; gap: 4px; }
.price i { font-style: normal; font-size: 8px; color: var(--dim); letter-spacing: .1em; }
.delta { font-size: 9px; margin-left: 4px; }
.delta.up { color: var(--acid); }
.delta.down { color: var(--red); }
.card.out { opacity: .55; }
.btn {
  border: 1px solid var(--line2); background: #0b1015; color: var(--fg2);
  padding: 6px 12px; font-size: 11px; letter-spacing: .04em; transition: .15s; white-space: nowrap;
}
.btn:hover:not(:disabled) { border-color: rgba(157, 255, 60, .45); color: var(--acid); background: #0d1410; }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn.primary { background: var(--acid); border-color: var(--acid); color: #06110a; font-weight: 600; box-shadow: 0 0 18px rgba(157, 255, 60, .18); }
.btn.primary:hover:not(:disabled) { background: #b4ff66; color: #06110a; }
.btn.danger { border-color: rgba(255, 75, 75, .5); color: var(--red); }
.btn.danger:hover:not(:disabled) { background: rgba(255, 75, 75, .1); border-color: var(--red); }
.btn.ghost { border-color: var(--line); color: var(--dim); }
.btn.sm { padding: 4px 9px; font-size: 10.5px; }
.btn.big { padding: 10px 22px; font-size: 12px; }

/* 表格 */
.tbl { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.tbl th { text-align: left; font-weight: 400; font-size: 9px; letter-spacing: .12em; color: var(--dim); border-bottom: 1px solid var(--line); padding: 7px 8px; text-transform: uppercase; }
.tbl td { padding: 8px; border-bottom: 1px solid rgba(22, 33, 43, .6); vertical-align: middle; }
.tbl td .code { margin-left: 6px; }
.tbl tbody tr:hover { background: rgba(157, 255, 60, .025); }
.tbl tr.fake td:first-child { border-left: 2px solid var(--amber); }
.tag { font-size: 9px; border: 1px solid var(--line2); padding: 1px 5px; color: var(--dim); }
.tag.good { color: var(--acid); border-color: rgba(157, 255, 60, .35); }
.tag.bad { color: var(--amber); border-color: rgba(255, 182, 77, .4); }
.empty { border: 1px dashed var(--line); padding: 26px 18px; color: var(--dim); font-size: 11px; text-align: center; font-family: var(--sans); }
.empty-cta { padding: 30px 18px 22px; background: radial-gradient(ellipse at 50% 0%, rgba(157,255,60,.04), transparent 70%); }
.empty-cta .ec-glyph { font-size: 22px; color: var(--acid); opacity: .55; margin-bottom: 10px; }
.empty-cta b { display: block; font-size: 12.5px; color: var(--fg2); font-weight: 500; letter-spacing: .06em; margin-bottom: 6px; }
.empty-cta p { font-size: 10.5px; color: var(--dim); line-height: 1.7; max-width: 460px; margin: 0 auto 14px; }
.empty-cta .ec-steps { display: flex; gap: 18px; justify-content: center; margin-top: 18px; font-size: 9px; color: var(--dim2); letter-spacing: .12em; }
.empty-cta .ec-steps span { position: relative; }
.empty-cta .ec-steps span + span::before { content: '·'; position: absolute; left: -11px; color: var(--line2); }
.heatbar { background-image: linear-gradient(90deg, transparent 59.6%, rgba(255,182,77,.45) 59.6%, rgba(255,182,77,.45) 60.4%, transparent 60.4%, transparent 84.6%, rgba(255,75,75,.5) 84.6%, rgba(255,75,75,.5) 85.4%, transparent 85.4%) !important; }
.topbtns button { width: 26px; height: 26px; }
.empty-cta { padding: 34px 18px; display: flex; flex-direction: column; align-items: center; gap: 7px; }
.empty-cta .ec-glyph { font-size: 22px; color: var(--line2); line-height: 1; margin-bottom: 2px; }
.empty-cta b { color: var(--fg2); font-size: 12px; font-weight: 500; letter-spacing: .04em; }
.empty-cta p { margin: 0; font-size: 10.5px; color: var(--dim2); }
.empty-cta .btn { margin-top: 8px; }

/* ── 详情 / 弹层 ─────────────────────────────────────────── */
#modal-root { position: fixed; inset: 0; z-index: 120; pointer-events: none; }
#modal-root.open { pointer-events: auto; }
.modal-back {
  position: absolute; inset: 0; background: rgba(2, 4, 6, .74); backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 24px; opacity: 0; transition: opacity .18s;
}
#modal-root.open .modal-back { opacity: 1; }
.modal {
  width: min(560px, 100%); max-height: 86vh; display: flex; flex-direction: column;
  background: linear-gradient(180deg, #0a0f14, #070a0e); border: 1px solid var(--line2);
  box-shadow: var(--shadow), 0 0 0 1px rgba(157, 255, 60, .04);
  transform: translateY(8px) scale(.995); animation: modalIn .22s ease forwards;
}
.modal.wide { width: min(760px, 100%); }
@keyframes modalIn { to { transform: none; } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.mh-title { font-size: 13px; color: #e6f3ea; letter-spacing: .02em; }
.mh-sub { font-size: 9.5px; color: var(--dim); margin-top: 2px; letter-spacing: .1em; }
.modal-head .x { color: var(--dim); font-size: 12px; padding: 2px 6px; }
.modal-head .x:hover { color: var(--red); }
.modal-body { padding: 14px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); }
.detail .d-hero { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.d-glyph { width: 52px; height: 52px; display: grid; place-items: center; font-size: 22px; color: var(--acid); border: 1px solid var(--line2); background: #080c10; }
.d-price { display: flex; align-items: baseline; gap: 6px; }
.d-price span { font-size: 9px; letter-spacing: .16em; color: var(--dim); display: block; }
.d-price b { font-size: 24px; color: var(--acid); font-weight: 500; }
.d-price i { font-style: normal; font-size: 9px; color: var(--dim); }
.d-desc { font-family: var(--sans); font-size: 12px; color: var(--fg2); line-height: 1.7; margin-bottom: 12px; }
.d-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.d-specs > div { border: 1px solid var(--line); padding: 8px 10px; background: #080c10; }
.d-specs label { display: block; font-size: 9px; color: var(--dim); letter-spacing: .1em; margin-bottom: 2px; }
.d-specs b { font-size: 13px; font-weight: 500; color: var(--fg); display: block; }
.d-specs span { font-size: 9px; color: var(--dim2); }
.d-specs .intel b.fake { color: var(--amber); }
.d-note { font-size: 10.5px; color: var(--dim); font-style: italic; border-left: 2px solid var(--line2); padding-left: 8px; }
.buy-box { border: 1px solid var(--line); margin-bottom: 12px; }
.buy-line { display: flex; justify-content: space-between; padding: 7px 10px; border-bottom: 1px solid rgba(22, 33, 43, .7); font-size: 11.5px; }
.buy-line span { color: var(--dim); }
.buy-line b { color: var(--fg); font-weight: 500; }
.buy-line.total { background: rgba(157, 255, 60, .04); }
.buy-line.total b { color: var(--acid); font-size: 14px; }
.escrow-steps { min-height: 4px; font-size: 11px; }
.esc-line { display: flex; gap: 7px; padding: 3px 0; color: var(--fg2); animation: lineIn .2s both; }
.esc-line .ok { color: var(--acid); }
@keyframes lineIn { from { opacity: 0; transform: translateX(-4px); } to { opacity: 1; transform: none; } }
.esc-hash { font-size: 9px; color: var(--dim2); letter-spacing: .06em; padding-top: 4px; word-break: break-all; }
.fine { font-family: var(--sans); font-size: 10px; color: var(--dim2); line-height: 1.6; margin-top: 8px; }

/* ── 拍卖 ───────────────────────────────────────────────── */
.card.auction { padding-bottom: 10px; }
.au-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.au-clock { display: flex; align-items: baseline; gap: 6px; font-size: 10px; letter-spacing: .14em; color: var(--dim); }
.au-clock b { font-family: var(--mono); font-size: 15px; letter-spacing: .02em; color: var(--acid); font-weight: 600; }
.au-clock.hot b { color: var(--red); animation: urge .9s infinite; }
.au-clock.hot { color: var(--red); }
@keyframes urge { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.card.auction.urgent { border-color: rgba(255, 75, 75, .45); box-shadow: 0 0 24px rgba(255, 75, 75, .08) inset; }
.au-price { display: flex; align-items: baseline; gap: 5px; margin: 8px 0 2px; }
.au-price span { font-size: 9px; color: var(--dim); letter-spacing: .12em; }
.au-price b { font-size: 22px; color: var(--acid); font-weight: 500; }
.au-price i { font-style: normal; font-size: 9px; color: var(--dim); }
.au-top-bid { font-size: 10px; color: var(--dim); margin-bottom: 8px; }
.au-top-bid .you { color: var(--acid); }
.au-top-bid b { color: var(--fg2); font-weight: 500; }
.bid-list { border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); padding: 4px 0; margin-bottom: 9px; min-height: 28px; }
.bid-row { display: flex; justify-content: space-between; font-size: 10px; color: var(--dim); padding: 1px 0; }
.bid-row.you { color: var(--acid); }
.bid-row b { font-weight: 400; }
.au-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.au-bar { height: 2px; background: #0f161c; margin-top: 9px; overflow: hidden; }
.au-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--acid2), var(--acid)); }
.auction-note { font-family: var(--sans); font-size: 10px; color: var(--dim2); margin-top: 14px; }

/* ── 货舱 ───────────────────────────────────────────────── */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.tab { padding: 7px 14px; font-size: 12px; color: var(--dim); border-bottom: 2px solid transparent; display: flex; align-items: center; gap: 6px; }
.tab b { font-size: 9px; color: var(--dim2); font-weight: 400; }
.tab:hover { color: var(--fg2); }
.tab.on { color: var(--acid); border-bottom-color: var(--acid); }
.cargo-list { display: flex; flex-direction: column; gap: 8px; }
.cargo-row { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); background: #080c10; padding: 11px 12px; animation: cardIn .3s both; }
.cargo-row.ready { border-color: rgba(157, 255, 60, .35); background: linear-gradient(90deg, rgba(157, 255, 60, .05), #080c10 40%); }
.cr-glyph { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line2); color: var(--dim); font-size: 14px; flex: none; }
.cr-main { flex: 1; min-width: 0; }
.cr-top { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.cr-top b { font-weight: 500; color: #e2eee6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-sub { font-size: 10px; color: var(--dim); margin: 2px 0 6px; }
.prog { height: 3px; background: #121a20; overflow: hidden; }
.prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--acid2), var(--acid)); transition: width .5s; }
.cr-act { text-align: right; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.cr-money { font-size: 11px; color: var(--fg2); }
.cr-act .btn { width: 84px; }
.cr-act .tag { font-size: 9px; }
.cargo-list .tbl { border: 1px solid var(--line); background: #080c10; }
.inspect-wrap { display: flex; gap: 16px; align-items: flex-start; }
.pkg { position: relative; width: 128px; height: 128px; border: 1px solid var(--line2); background: repeating-linear-gradient(45deg, #0a0e12 0 6px, #090c10 6px 12px); flex: none; overflow: hidden; }
.pkg-tape { position: absolute; left: 0; right: 0; top: 42%; height: 18px; background: rgba(157, 255, 60, .1); border-top: 1px dashed rgba(157, 255, 60, .3); border-bottom: 1px dashed rgba(157, 255, 60, .3); }
.pkg-code { position: absolute; left: 8px; bottom: 8px; font-size: 9px; color: var(--dim); letter-spacing: .1em; }
.scanline { position: absolute; left: 0; right: 0; height: 2px; background: var(--acid); box-shadow: 0 0 12px var(--acid); top: 0; animation: scanDown 1.8s linear infinite; opacity: .8; }
@keyframes scanDown { 0% { top: 0; } 100% { top: 100%; } }
.inspect-wrap.bad .pkg { border-color: rgba(255, 75, 75, .5); }
.inspect-wrap.bad .scanline { background: var(--red); box-shadow: 0 0 12px var(--red); }
.inspect-log { flex: 1; font-size: 11px; min-height: 128px; }
.insp-verdict { margin-top: 10px; font-size: 12px; letter-spacing: .06em; color: var(--amber); }
.insp-verdict.bad { color: var(--red); }
.fake-note { font-family: var(--sans); font-size: 10.5px; color: var(--dim); margin-top: 10px; border-left: 2px solid var(--amber); padding-left: 8px; }
.sell-box label { font-size: 10px; color: var(--dim); letter-spacing: .1em; display: block; margin-bottom: 6px; }
.sell-input { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line2); padding: 0 10px; background: #080c10; }
.sell-input input { flex: 1; background: none; border: 0; outline: none; font-size: 20px; color: var(--acid); padding: 8px 0; width: 100%; }
.sell-input span { font-size: 9px; color: var(--dim); }
.quick { display: flex; gap: 6px; margin: 8px 0; }
.quick button { font-size: 10px; border: 1px solid var(--line); padding: 3px 8px; color: var(--dim); }
.quick button:hover { color: var(--acid); border-color: rgba(157, 255, 60, .4); }
.sell-calc { font-size: 11px; color: var(--dim); }
.sell-calc b { color: var(--fg); }

/* ── 钱包 ───────────────────────────────────────────────── */
.wallet-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.balance-panel { padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.bp-label { font-size: 9px; letter-spacing: .18em; color: var(--dim); }
.bp-amount { font-size: 34px; color: var(--acid); line-height: 1.1; text-shadow: 0 0 24px rgba(157, 255, 60, .25); }
.bp-amount i { font-style: normal; font-size: 11px; color: var(--dim); margin-left: 6px; }
.bp-sub { font-size: 10px; color: var(--dim); }
.bp-chips { display: flex; gap: 18px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.bp-chips div { display: flex; flex-direction: column; gap: 2px; }
.bp-chips label { font-size: 9px; letter-spacing: .12em; color: var(--dim2); }
.bp-chips b { font-family: var(--mono); font-size: 13px; color: var(--fg2); font-weight: 500; }
.addr-row { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); display: flex; align-items: center; gap: 6px; }
.addr-row span { font-size: 9px; color: var(--dim); flex: none; }
.addr-row code { font-size: 9px; color: var(--dim2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.wallet-grid .panel { padding: 12px; }
.p-note { font-family: var(--sans); font-size: 10.5px; color: var(--dim); line-height: 1.6; margin: 8px 0; }
.p-note.big { font-size: 12px; color: var(--fg2); }
.mix-row { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.mix-row input { width: 100px; background: #080c10; border: 1px solid var(--line2); padding: 6px 8px; outline: none; font-size: 13px; color: var(--acid); }
.mix-row input:focus { border-color: rgba(157, 255, 60, .45); }
.id-row { display: flex; gap: 14px; margin: 10px 0 12px; }
.id-row label { display: block; font-size: 9px; color: var(--dim); }
.id-row b { font-size: 14px; font-weight: 500; }
.heat-num { color: var(--amber); }
.danger-panel { border-color: rgba(255, 75, 75, .22); }
.ledger { border: 1px solid var(--line); background: #080c10; }
.ledger td { font-size: 11px; }

/* ── 资产 ───────────────────────────────────────────────── */
.asset-summary { display: flex; gap: 100px; border: 1px solid var(--line); padding: 12px 16px; margin-bottom: 14px; background: linear-gradient(90deg, rgba(157, 255, 60, .04), transparent); flex-wrap: wrap; }
.asset-summary label { display: block; font-size: 9px; letter-spacing: .14em; color: var(--dim); }
.asset-summary b { font-size: 16px; font-weight: 500; color: var(--fg); }
.asset-summary b.warn { color: var(--amber); }
.card.company { padding-top: 14px; }
.co-top { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.co-icon { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line2); color: var(--acid); font-size: 16px; }
.card.company h3 { font-size: 13px; margin: 0; }
.card.company h3 i { font-style: normal; font-size: 8px; color: var(--dim2); letter-spacing: .12em; margin-left: 4px; }
.co-lv { font-size: 9.5px; color: var(--dim); }
.co-effect { font-size: 10px; color: var(--acid2); border-left: 2px solid rgba(157, 255, 60, .25); padding-left: 7px; margin-bottom: 9px; }
.co-pips { display: flex; gap: 3px; margin-bottom: 10px; }
.co-pips i { flex: 1; height: 3px; background: #131c23; }
.co-pips i.on { background: var(--acid); box-shadow: 0 0 6px rgba(157, 255, 60, .4); }
.co-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(22, 33, 43, .7); padding-top: 9px; }
.co-modal .co-big { font-size: 40px; color: var(--acid); text-align: center; margin-bottom: 8px; }
.co-modal p { font-family: var(--sans); font-size: 12px; color: var(--fg2); line-height: 1.7; margin-bottom: 12px; }

/* ── 消息 ───────────────────────────────────────────────── */
.threads { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.msg-grid { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 14px; align-items: start; }
.msg-side { border: 1px solid var(--line); background: #070a0e; padding: 4px 0 8px; }
.msg-side .panel-head { padding: 8px 11px 7px; }
.contact { display: grid; grid-template-columns: 26px minmax(0, 1fr) 8px; gap: 8px; align-items: center; padding: 8px 11px; border-top: 1px solid rgba(22, 33, 43, .6); }
.contact .avatar { width: 24px; height: 24px; font-size: 10px; }
.ct-info { display: flex; flex-direction: column; min-width: 0; }
.ct-info b { font-size: 10.5px; letter-spacing: .08em; color: var(--npc); font-weight: 500; }
.ct-info span { font-size: 9px; color: var(--dim); }
.ct-info i { font-style: normal; font-size: 9px; color: var(--dim2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.ct-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 6px var(--acid); }
.contact.quiet { opacity: .5; }
.contact.quiet .ct-dot { background: var(--line2); box-shadow: none; }
.thread { border: 1px solid var(--line); background: #080c10; }
.th-head { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-bottom: 1px solid var(--line); border-left: 2px solid var(--npc, var(--acid)); }
.avatar { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--npc, var(--acid)); color: var(--npc, var(--acid)); font-size: 11px; }
.th-head b { font-size: 11.5px; letter-spacing: .06em; color: var(--npc, var(--acid)); }
.th-head span { font-family: var(--sans); font-size: 9px; color: var(--dim); margin-left: 5px; }
.th-count { margin-left: auto; font-size: 9px; color: var(--dim2); }
.th-body { padding: 10px 14px; display: flex; flex-direction: column; gap: 8px; }
.bubble { border-left: 1px solid var(--line2); padding-left: 10px; animation: lineIn .3s both; }
.bubble p { font-family: var(--sans); font-size: 12px; color: var(--fg2); line-height: 1.7; }
.th-time { font-size: 8.5px; color: var(--dim2); }
.msg-tip { margin-top: 16px; font-family: var(--sans); font-size: 11px; color: var(--dim); display: flex; align-items: center; gap: 8px; }

/* ── 终端 / 杂活 ───────────────────────────────────────────────── */
.terminal { border: 1px solid var(--line2); background: #060a0c; display: flex; flex-direction: column; height: min(62vh, 560px); box-shadow: 0 0 40px rgba(157, 255, 60, .04) inset; }
.term-bar { display: flex; align-items: center; gap: 5px; padding: 6px 10px; border-bottom: 1px solid var(--line); background: #080c10; font-size: 9.5px; color: var(--dim); }
.term-bar i { width: 7px; height: 7px; border-radius: 50%; background: #1f2b33; }
.term-bar i:first-child { background: #ff5f57; opacity: .7; }
.term-bar i:nth-child(2) { background: #ffbd2e; opacity: .6; }
.term-bar i:nth-child(3) { background: #28c840; opacity: .6; }
.term-bar span { margin-left: 8px; letter-spacing: .08em; }
.term-bar b { margin-left: auto; color: var(--acid); font-size: 8.5px; letter-spacing: .14em; }
.term-out { flex: 1; overflow-y: auto; padding: 12px 14px; font-size: 12px; line-height: 1.75; color: #cfe8c8; }
.tl { white-space: pre-wrap; word-break: break-word; animation: lineIn .15s both; }
.tl.ok { color: var(--acid); }
.tl.err { color: var(--red); }
.tl.warn { color: var(--amber); }
.tl.dim { color: var(--dim); }
.tl .prompt { color: var(--acid); }
.term-input { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding: 8px 12px; }
.term-input .prompt { font-size: 11px; color: var(--acid); white-space: nowrap; }
.term-input input { flex: 1; background: none; border: 0; outline: none; font-size: 12.5px; color: var(--fg); caret-color: var(--acid); }
.term-hints { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.chip { font-size: 10px; border: 1px solid var(--line); padding: 3px 9px; color: var(--dim); }
.chip:hover { color: var(--acid); border-color: rgba(157, 255, 60, .4); }

/* ── 档案 ───────────────────────────────────────────────── */
.profile-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; margin-bottom: 12px; }
.idcard { padding: 14px; position: relative; overflow: hidden; }
.id-top { display: flex; align-items: center; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 12px; }
.id-glyph { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(157, 255, 60, .4); border-radius: 50%; color: var(--acid); font-size: 16px; }
.id-top b { display: block; font-size: 15px; color: #e6f3ea; }
.id-top span { font-size: 8.5px; letter-spacing: .18em; color: var(--dim); }
.id-stamp { position: absolute; right: 12px; top: 12px; font-size: 9px; letter-spacing: .2em; color: rgba(255, 75, 75, .55); border: 1px solid rgba(255, 75, 75, .35); padding: 2px 6px; transform: rotate(6deg); }
.id-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 12px; }
.id-rows label { display: block; font-size: 9px; color: var(--dim); }
.id-rows b { font-size: 13px; font-weight: 500; }
.id-note { font-family: var(--sans); font-size: 9px; color: var(--dim2); margin-top: 12px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
.sg { background: #080c10; padding: 10px; }
.sg label { display: block; font-size: 9px; color: var(--dim); }
.sg b { font-size: 15px; font-weight: 500; color: var(--fg); }
.contract-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1px; background: var(--line); }
.ct { background: #080c10; padding: 10px 12px; }
.ct.done { opacity: .6; }
.ct-top { display: flex; align-items: center; gap: 8px; }
.ct-top b { font-size: 11.5px; font-weight: 500; }
.ct-top span { font-size: 9px; color: var(--dim); }
.ct-top i { margin-left: auto; font-style: normal; font-size: 9px; color: var(--acid); }
.ct-desc { font-size: 10px; color: var(--dim); margin: 3px 0 5px; line-height: 1.5; }
.ct-meta { display: flex; gap: 12px; font-size: 9.5px; color: var(--dim2); margin-bottom: 7px; }
.ct-meta b { color: var(--acid); font-weight: 500; }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1px; background: var(--line); }
.ach { background: #080c10; padding: 9px 11px; opacity: .45; }
.ach.on { opacity: 1; background: linear-gradient(90deg, rgba(157, 255, 60, .05), #080c10); }
.ach b { display: block; font-size: 11px; color: var(--fg); font-weight: 500; }
.ach span { font-size: 9.5px; color: var(--dim); }
.ach.on b { color: var(--acid); }
.settings { display: flex; gap: 20px; padding: 12px; flex-wrap: wrap; }
.sw { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--fg2); cursor: pointer; }
.sw input { accent-color: var(--acid); width: 13px; height: 13px; }
.save-info { padding: 0 12px 12px; font-size: 9px; color: var(--dim2); }

/* ── 事件 / 结局 ────────────────────────────────────────── */
.event-body .ev-text { font-family: var(--sans); font-size: 13px; line-height: 1.85; color: var(--fg); }
.ev-choices { display: flex; flex-direction: column; gap: 7px; margin-top: 14px; }
.ev-choice { text-align: left; border: 1px solid var(--line2); padding: 9px 11px; transition: .15s; background: #080c10; }
.ev-choice b { display: block; font-size: 12px; font-weight: 500; color: var(--fg); }
.ev-choice span { font-size: 9.5px; color: var(--dim); }
.ev-choice:hover { border-color: rgba(157, 255, 60, .45); background: rgba(157, 255, 60, .04); }
.ev-choice:hover b { color: var(--acid); }
.event-result { text-align: center; padding: 10px 4px; }
.er-mark { width: 44px; height: 44px; margin: 0 auto 12px; display: grid; place-items: center; border: 1px solid var(--line2); color: var(--acid); font-size: 18px; border-radius: 50%; }
.event-result p { font-family: var(--sans); font-size: 12.5px; line-height: 1.8; color: var(--fg2); }
.ending {
  position: fixed; inset: 0; z-index: 200; background: #030506;
  display: grid; place-items: center; opacity: 0; transition: opacity .6s; padding: 30px;
}
.ending.in { opacity: 1; }
.ending::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 40%, rgba(157, 255, 60, .07), transparent 70%); }
.ending.arrest::before { background: radial-gradient(60% 50% at 50% 40%, rgba(255, 75, 75, .12), transparent 70%); }
.end-inner { position: relative; text-align: center; max-width: 560px; animation: cardIn .8s both; }
.end-tag { font-size: 9px; letter-spacing: .42em; color: var(--dim); }
.end-inner h1 { font-family: var(--sans); font-size: 40px; font-weight: 300; letter-spacing: .12em; margin: 10px 0 4px; color: #eaf7e6; }
.ending.arrest h1 { color: #ffd9d9; }
.end-num { font-size: 84px; line-height: 1; color: var(--acid); text-shadow: 0 0 50px rgba(157, 255, 60, .35); margin: 6px 0 10px; }
.ending.arrest .end-num { color: var(--red); text-shadow: 0 0 50px rgba(255, 75, 75, .3); }
.end-text { font-family: var(--sans); font-size: 13px; line-height: 2; color: var(--fg2); max-width: 460px; margin: 0 auto 18px; }
.end-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); margin-bottom: 20px; }
.end-stats > div { background: #060a0c; padding: 10px; }
.end-stats label { display: block; font-size: 8.5px; letter-spacing: .12em; color: var(--dim); }
.end-stats b { font-size: 14px; font-weight: 500; color: var(--fg); }
.end-actions { display: flex; gap: 8px; justify-content: center; }
.end-fine { margin-top: 18px; font-size: 9px; color: var(--dim2); letter-spacing: .08em; }

/* ── 通知 ───────────────────────────────────────────────── */
#toasts { position: fixed; right: 16px; bottom: 38px; z-index: 110; display: flex; flex-direction: column; gap: 8px; width: 320px; pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; gap: 9px; align-items: flex-start;
  background: #0a0f14; border: 1px solid var(--line2); border-left: 2px solid var(--acid);
  padding: 9px 10px; transform: translateX(120%); transition: transform .28s cubic-bezier(.2, .9, .3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
.toast.in { transform: none; }
.toast.bad { border-left-color: var(--red); }
.toast.warn { border-left-color: var(--amber); }
.toast.info { border-left-color: var(--cyan); }
.t-ico { width: 16px; height: 16px; display: grid; place-items: center; font-size: 10px; border: 1px solid var(--line2); color: var(--acid); flex: none; margin-top: 1px; }
.toast.bad .t-ico { color: var(--red); border-color: rgba(255, 75, 75, .4); }
.toast.warn .t-ico { color: var(--amber); }
.toast.info .t-ico { color: var(--cyan); }
.t-body { flex: 1; min-width: 0; }
.t-title { font-size: 11px; color: var(--fg); }
.t-text { font-family: var(--sans); font-size: 10px; color: var(--dim); line-height: 1.5; margin-top: 1px; }
.t-x { color: var(--dim2); font-size: 9px; padding: 0 2px; }
.t-x:hover { color: var(--red); }

/* ── 底栏 ───────────────────────────────────────────────── */
#statusbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 14px; border-top: 1px solid var(--line); font-size: 9px; color: var(--dim2);
  letter-spacing: .06em; background: #06090c; white-space: nowrap; overflow: hidden;
}
.sb-left { color: var(--dim); }

/* ── 快捷键小字 ─────────────────────────────────────────── */
.kbd { font-size: 8px; border: 1px solid var(--line2); padding: 0 3px; color: var(--dim2); }

/* ── 小游戏 ─────────────────────────────────────────────── */
.mg-head { margin-bottom: 12px; }
.mg-title { font-size: 12px; letter-spacing: .12em; color: var(--acid); }
.mg-sub { font-family: var(--sans); font-size: 10.5px; color: var(--dim); margin-top: 3px; line-height: 1.6; }
.mg-sub b { color: var(--fg); }
.mg-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; gap: 10px; }
.mg-hint { font-family: var(--sans); font-size: 9.5px; color: var(--dim2); }
.crack-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.crack-words { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.crack-word {
  display: flex; align-items: center; gap: 7px; border: 1px solid var(--line2); background: #080c10;
  padding: 6px 8px; font-size: 12px; letter-spacing: .08em; color: var(--fg2); text-align: left; transition: .12s;
}
.crack-word .idx { font-size: 8px; color: var(--dim2); }
.crack-word:hover { border-color: rgba(157, 255, 60, .45); color: var(--acid); }
.crack-word.bad { opacity: .35; border-color: rgba(255, 75, 75, .3); text-decoration: line-through; }
.crack-word.ok { border-color: var(--acid); color: var(--acid); background: rgba(157, 255, 60, .07); }
.crack-log { border: 1px solid var(--line); background: #060a0c; padding: 8px; height: 176px; overflow-y: auto; font-size: 10.5px; }
.crack-line { color: var(--fg2); padding: 1px 0; }
.crack-line.dim { color: var(--dim2); }
.crack-line.ok { color: var(--acid); }
.crack-line.bad { color: var(--red); }
.clean-wrap { display: flex; gap: 18px; align-items: center; }
.clean-grid { display: grid; grid-template-columns: repeat(3, 72px); gap: 6px; }
.clean-cell {
  height: 64px; border: 1px solid var(--line2); background: #080c10; color: var(--dim2);
  font-size: 10px; transition: .12s;
}
.clean-cell:hover { border-color: var(--dim); }
.clean-cell.lit { background: rgba(157, 255, 60, .14); border-color: var(--acid); box-shadow: 0 0 22px rgba(157, 255, 60, .25); color: var(--acid); }
.clean-cell.press { background: rgba(89, 215, 255, .1); border-color: var(--cyan); }
.clean-grid.broke .clean-cell { border-color: rgba(255, 75, 75, .35); }
.clean-side { flex: 1; }
.clean-status { font-size: 12px; color: var(--fg2); }
.clean-meter { height: 4px; background: #121a20; margin: 10px 0; }
.clean-meter i { display: block; height: 100%; background: var(--acid); transition: width .4s; }
.clean-note { font-size: 9.5px; }
.snipe-wrap { text-align: center; padding: 8px 0; }
.snipe-track { position: relative; height: 26px; border: 1px solid var(--line2); background: #060a0c; overflow: hidden; margin-bottom: 6px; }
.snipe-zone { position: absolute; top: 0; bottom: 0; background: rgba(157, 255, 60, .18); border-left: 1px solid var(--acid); border-right: 1px solid var(--acid); }
.snipe-needle { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--fg); box-shadow: 0 0 10px #fff; transition: background .1s; }
.snipe-needle.frozen { background: var(--amber); }
.snipe-ticks { display: flex; justify-content: space-between; margin-bottom: 14px; }
.snipe-ticks i { width: 1px; height: 5px; background: var(--line2); }
.snipe-btn { width: 100%; }
.snipe-track.res-hit { border-color: var(--acid); box-shadow: 0 0 24px rgba(157, 255, 60, .25) inset; }
.snipe-track.res-ok { border-color: var(--amber); }
.snipe-track.res-miss { border-color: var(--red); }

/* ── 启动序列 ───────────────────────────────────────────── */
#boot { position: fixed; inset: 0; z-index: 300; display: none; place-items: center; background: #030506; overflow: hidden; }
#boot.show { display: grid; }
#boot::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 60% at 50% 40%, rgba(157, 255, 60, .05), transparent 70%),
              repeating-linear-gradient(0deg, rgba(0, 0, 0, .35) 0 1px, transparent 1px 3px);
}
.boot-inner { position: relative; width: min(1020px, 92vw); display: flex; flex-direction: column; gap: 22px; }
.boot-grid { display: grid; grid-template-columns: 300px 1fr; gap: 36px; align-items: center; }
.boot-logo .onion-big {
  width: 64px; height: 64px; display: grid; place-items: center; font-size: 30px; color: var(--acid);
  border: 1px solid rgba(157, 255, 60, .45); border-radius: 50%; margin-bottom: 18px;
  box-shadow: 0 0 40px rgba(157, 255, 60, .15) inset, 0 0 30px rgba(157, 255, 60, .1);
  animation: onionPulse 4s infinite;
}
.boot-logo h1 { font-family: var(--sans); font-size: 44px; font-weight: 300; letter-spacing: .1em; line-height: 1; color: #eaf7e4; }
.boot-logo h1 span { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .52em; color: var(--acid); margin-top: 8px; }
.boot-logo p { font-family: var(--sans); font-size: 11px; color: var(--dim); letter-spacing: .3em; margin-top: 10px; }
.boot-meta { display: flex; gap: 18px; margin-top: 26px; }
.boot-meta label { display: block; font-size: 8px; letter-spacing: .2em; color: var(--dim2); }
.boot-meta b { font-size: 11px; font-weight: 400; color: var(--fg2); }
.boot-term { border: 1px solid var(--line2); background: rgba(6, 10, 12, .85); }
.bt-bar { display: flex; align-items: center; gap: 5px; padding: 6px 10px; border-bottom: 1px solid var(--line); font-size: 8.5px; color: var(--dim2); }
.bt-bar i { width: 6px; height: 6px; border-radius: 50%; background: #1c2830; }
.bt-bar i:first-child { background: #ff5f57; opacity: .6; }
.bt-bar i:nth-child(2) { background: #ffbd2e; opacity: .5; }
.bt-bar i:nth-child(3) { background: #28c840; opacity: .5; }
.bt-bar span { margin-left: 6px; letter-spacing: .1em; }
.bt-bar b { margin-left: auto; color: var(--acid); letter-spacing: .14em; font-size: 8px; }
#bootOut { height: 232px; overflow: hidden; padding: 10px 12px; font-size: 11px; line-height: 1.85; color: #bfe0b6; }
#bootOut .bl { white-space: pre-wrap; animation: lineIn .1s both; }
#bootOut .bl:last-child { color: var(--amber); }
#circuit { width: 100%; height: 48px; padding: 0 10px 6px; display: block; }
#circuit .wire { stroke: #1c2830; stroke-width: 1; }
#circuit .node { fill: #0b1116; stroke: #2a3b46; stroke-width: 1; transition: .4s; }
#circuit .node.lit { fill: var(--acid); stroke: var(--acid); filter: drop-shadow(0 0 6px rgba(157, 255, 60, .8)); }
#circuit text { font-size: 6px; fill: #4a5b55; letter-spacing: .1em; font-family: var(--mono); }
#bootGate {
  opacity: 0; transform: translateY(10px); pointer-events: none; transition: .5s;
  position: absolute; inset: 0; display: grid; place-items: center; background: rgba(3, 5, 6, .82);
  backdrop-filter: blur(3px);
}
#bootGate.in { opacity: 1; transform: none; pointer-events: auto; }
.gate-box { width: min(440px, 92vw); border: 1px solid var(--line2); background: #070b0f; padding: 20px; box-shadow: var(--shadow); }
.gate-title { font-size: 14px; letter-spacing: .1em; color: #e6f3ea; }
.gate-who { font-size: 9px; color: var(--dim); letter-spacing: .12em; margin: 3px 0 16px; min-height: 14px; }
.gate-label { display: block; font-size: 9px; letter-spacing: .16em; color: var(--dim); margin-bottom: 5px; }
#bootAlias { width: 100%; background: #05080a; border: 1px solid var(--line2); padding: 9px 10px; outline: none; font-size: 14px; color: var(--acid); letter-spacing: .06em; }
#bootAlias:focus { border-color: rgba(157, 255, 60, .5); box-shadow: 0 0 0 2px rgba(157, 255, 60, .07); }
.gate-check { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 16px; font-family: var(--sans); font-size: 11px; line-height: 1.6; color: var(--dim); cursor: pointer; }
.gate-check input { margin-top: 2px; accent-color: var(--acid); width: 13px; height: 13px; flex: none; }
.gate-check b { color: var(--fg2); font-weight: 400; font-family: "Microsoft YaHei UI", "Microsoft YaHei", var(--sans); border-bottom: 1px solid rgba(157,255,60,.45); padding-bottom: 1px; }
.gate-actions { display: flex; gap: 8px; }
.gate-actions .btn { flex: 1; padding: 9px; }
.gate-fine { font-size: 9px; color: var(--dim2); margin-top: 10px; letter-spacing: .04em; }
#bootSkip { position: absolute; right: 18px; bottom: 14px; font-size: 10px; color: var(--dim); letter-spacing: .1em; border-bottom: 1px solid var(--line2); padding-bottom: 1px; }
#bootSkip:hover { color: var(--acid); }

/* ── 减少动效 ───────────────────────────────────────────── */
body.reduce-motion *,
body.reduce-motion *::before,
body.reduce-motion *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
body.reduce-motion #rain { display: none; }
body.reduce-motion .sweep { display: none; }

/* ── 热度警示 ───────────────────────────────────────────── */
body.heat-warn #app::after,
body.heat-danger #app::after {
  content: ""; position: fixed; inset: 0; z-index: 85; pointer-events: none;
  box-shadow: inset 0 0 120px rgba(255, 75, 75, .18);
  animation: vignette 3.2s ease-in-out infinite;
}
body.heat-danger #app::after { box-shadow: inset 0 0 180px rgba(255, 75, 75, .32); animation: vignette 1.4s ease-in-out infinite; }
@keyframes vignette { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }

/* ── 响应式 ─────────────────────────────────────────────── */
@media (max-width: 1280px) {
  #shell { grid-template-columns: 190px minmax(0, 1fr) 270px; }
  #view { padding: 18px 20px 40px; }
}
@media (max-width: 980px) { .msg-grid { grid-template-columns: minmax(0, 1fr); } .msg-side { order: -1; } }
@media (max-width: 1120px) {
  #rail { display: none; }
  #shell { grid-template-columns: 190px minmax(0, 1fr); }
  .wallet-grid { grid-template-columns: 1fr 1fr; }
  .balance-panel { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  body { overflow: auto; }
  #app { height: auto; min-height: 100vh; grid-template-rows: auto 1fr auto; }
  #topbar { flex-wrap: wrap; height: auto; padding: 8px 12px; gap: 8px; }
  .top-meta { order: 3; width: 100%; font-size: 10px; }
  .addr { max-width: 170px; font-size: 10px; }
  .top-stats { gap: 10px; }
  .stat.heat .heatbar { width: 40px; }
  #shell { grid-template-columns: 1fr; }
  #side {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    flex-direction: row; overflow-x: auto; padding: 0; gap: 0;
    border-right: 0; border-top: 1px solid var(--line2); background: #060a0d;
  }
  .nav-id, .side-foot { display: none; }
  #side > button { flex: 1 0 auto; grid-template-columns: 1fr; justify-items: center; gap: 1px; padding: 7px 8px; border-left: 0; border-top: 2px solid transparent; }
  #side > button .en { display: none; }
  #side > button .nm { font-size: 10px; }
  #side > button .ic { font-size: 12px; }
  #side > button.on { border-top-color: var(--acid); border-left-color: transparent; background: rgba(157, 255, 60, .05); }
  #view { padding: 14px 12px 90px; overflow: visible; }
  #statusbar { margin-bottom: 58px; font-size: 8px; }
  .grid.items, .grid.auctions, .grid.companies { grid-template-columns: 1fr; }
  .profile-grid, .wallet-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .d-specs { grid-template-columns: 1fr; }
  .crack-wrap { grid-template-columns: 1fr; }
  .clean-wrap { flex-direction: column; align-items: flex-start; }
  .crack-log { height: 120px; }
  #toasts { left: 10px; right: 10px; width: auto; top: 64px; }
  .boot-grid { grid-template-columns: 1fr; gap: 18px; }
  .boot-logo h1 { font-size: 34px; }
  .boot-meta, .boot-logo p { display: none; }
  #bootOut { height: 170px; font-size: 10px; }
  .end-inner h1 { font-size: 30px; }
  .end-num { font-size: 64px; }
  .end-stats { grid-template-columns: 1fr 1fr; }
  .modal-back { padding: 10px; align-items: end; }
  .modal { max-height: 90vh; }
  .au-actions { grid-template-columns: 1fr 1fr 1fr; }
}

/* 终端双栏 + 杂活 */
.term-grid { display: grid; grid-template-columns: minmax(0, 1fr) 252px; gap: 14px; align-items: start; }
.gig-side { border: 1px solid var(--line); background: #080c10; }
.gig {
  display: block; width: 100%; text-align: left; padding: 10px 11px; border-bottom: 1px solid var(--line);
  transition: .15s; position: relative;
}
.gig:hover { background: #0b1217; }
.gig:hover b { color: var(--acid); }
.gig b { display: block; font-size: 12px; color: var(--fg); font-weight: 500; margin-bottom: 3px; letter-spacing: .04em; }
.gig span { display: block; font-size: 10px; color: var(--dim); line-height: 1.55; }
.gig-note { padding: 9px 11px; font-size: 9.5px; color: var(--dim2); line-height: 1.6; }
@media (max-width: 980px) { .term-grid { grid-template-columns: 1fr; } .gig-side { order: -1; } }

/* ── 状态与可用性修补 ─────────────────────────────────────── */
.btn:disabled, .btn[disabled] { opacity: .32 !important; filter: grayscale(.7); cursor: not-allowed; pointer-events: none; }
@media (max-width: 860px) {
  #toasts { left: 10px; right: 10px; width: auto; top: auto; bottom: 76px; }
  .top-stats { gap: 7px; align-items: center; }
  #btnCrt, #btnFx { display: none; }
  .stat label { display: block; font-size: 7px; line-height: 1; letter-spacing: .08em; color: var(--dim); }
  .stat.cred .val { font-size: 15px; }
  .stat.rep b { font-size: 12px; }
  .stat.heat .heatbar { width: 26px; height: 4px; }
  .stat.heat b { font-size: 11px; }
  .topbtns { gap: 2px; }
  .topbtns button { width: 22px; height: 22px; font-size: 9px; }
  .cats { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; scrollbar-width: none; }
  .cats::-webkit-scrollbar { display: none; }
  .cat { flex: 0 0 auto; }
}

/* 市场卡片：买入按钮降噪（描边为主，悬停填充） */
.item .btn.primary { background: transparent; color: var(--acid); border-color: rgba(157,255,60,.38); }
.item .btn.primary:hover { background: var(--acid); color: #060a08; border-color: var(--acid); }
.item .btn.primary:disabled { background: transparent; color: var(--dim2); border-color: var(--line); }

/* 主按钮禁用态：透明化，避免亮色误导可点 */
.btn.primary:disabled, .btn.primary[disabled] {
  background: transparent !important; color: var(--dim2) !important;
  border-color: var(--line) !important; opacity: 1 !important; filter: none;
}

/* 移动端顶栏：三行网格，避免挤压截断 */
@media (max-width: 860px) {
  #topbar {
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand btns" "meta meta" "stats stats";
    align-items: center; gap: 7px 8px; padding: 8px 12px;
  }
  .brand { grid-area: brand; min-width: 0; }
  .brand-text span { display: none; }
  .topbtns { grid-area: btns; justify-self: end; }
  .top-meta { grid-area: meta; width: 100%; min-width: 0; overflow: hidden; gap: 6px; }
  .addr { flex: 1 1 auto; min-width: 0; max-width: none; }
  .top-stats { grid-area: stats; margin: 0; width: 100%; justify-content: space-between; gap: 6px; }
  #online:not(.daily-live) { display: none; }
  .stat { min-width: 0; gap: 4px; }
  .stat label { font-size: 7px; }
  .stat.cred b { font-size: 14px; }
  .stat.heat .heatbar { width: 34px; }
  #statusbar { display: none; }
  .empty-cta { padding: 24px 16px; }
}

/* ── 存档码 / 行情卡 ─────────────────────────────────────── */
.save-tools { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 2px; }
.save-tools .btn { flex: 1 1 auto; min-height: 30px; padding: 6px 12px; }
.save-info { margin-top: 12px; }
.save-code {
  width: 100%; min-height: 148px; margin-top: 10px; padding: 12px 14px;
  background: #070b0e; border: 1px solid var(--line); color: var(--fg2);
  font: 12px/1.65 var(--mono); resize: vertical; word-break: break-all;
}
.save-code:focus { outline: none; border-color: var(--acid); }
.save-err { margin-top: 8px; min-height: 16px; color: #ff6b6b; font: 12px/1.5 var(--mono); }
.card-prev {
  margin-top: 4px; padding: 10px; border: 1px solid var(--line);
  background: #05070a; display: flex; justify-content: center;
}
.card-prev img { width: 100%; max-width: 440px; height: auto; display: block; }
@media (max-width: 860px) {
  .card-prev img { max-width: 100%; }
  .save-code { min-height: 120px; font-size: 11px; }
}

/* ── 每日挑战 ───────────────────────────────────────────── */
.acid { color: var(--acid); }
#online.daily-live { display: inline-flex; align-items: center; gap: 6px; color: var(--acid); border: 1px solid rgba(157,255,60,.32); padding: 2px 8px; font-size: 10px; letter-spacing: .08em; }
#online.daily-live b { font-family: var(--mono); font-size: 11px; color: var(--acid); letter-spacing: 0; }
.lb { display: flex; flex-direction: column; margin-top: 4px; }
.lb-row { display: flex; align-items: center; gap: 14px; padding: 10px 2px; border-bottom: 1px solid var(--line); font: 12px var(--mono); color: var(--fg2); }
.lb-row b { width: 26px; color: var(--dim2); font-weight: 400; }
.lb-row span { flex: 1; color: var(--fg); }
.lb-row i { font-style: normal; color: var(--acid); }
.daily-panel { border-color: rgba(157,255,60,.16); }
.dp-top { display: flex; align-items: baseline; gap: 8px; padding: 10px 2px 6px; }
.dp-top b { font: 600 28px var(--mono); color: var(--acid); letter-spacing: .02em; }
.dp-top span { font-size: 10px; color: var(--dim2); letter-spacing: .18em; }
.dp-row { display: flex; justify-content: space-between; font: 11px var(--mono); color: var(--fg2); padding: 8px 2px 2px; }
.dp-row b { color: var(--fg); font-weight: 500; }
.dp-note { margin: 6px 2px 10px; font-size: 11px; line-height: 1.6; color: var(--fg2); }
.daily-panel .btn { width: 100%; }
@media (max-width: 860px) {
  .save-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .save-tools .btn { width: 100%; min-width: 0; padding: 8px 4px; }
}
@media (max-width: 860px) {
  .card-prev img { max-height: 40vh; width: auto; max-width: 100%; object-fit: contain; margin: 0 auto; }
}


/* ── 序章 PROLOGUE ─────────────────────────────────────── */
#prologue { position: fixed; inset: 0; z-index: 320; background: #04070a; display: grid; place-items: center; padding: 26px; }
#prologue.out { opacity: 0; transition: opacity .35s; }
.pl-inner { width: min(720px, 100%); position: relative; }
.pl-tag { font: 10px var(--mono); letter-spacing: .22em; color: var(--dim2); margin-bottom: 28px; }
.pl-lines p { font: 16px/1.95 var(--mono); color: var(--fg); margin: 0 0 15px; opacity: 0; transform: translateY(6px); animation: plIn .8s ease forwards; }
.pl-lines p:nth-child(3) { color: var(--acid); }
.pl-lines p:last-child { color: var(--fg2); }
@keyframes plIn { to { opacity: 1; transform: none; } }
.pl-foot { display: flex; align-items: center; gap: 18px; margin-top: 36px; }
.pl-foot span { font: 10px var(--mono); color: var(--dim2); letter-spacing: .08em; }
.pl-skip { position: absolute; right: 0; top: -8px; background: none; border: 0; color: var(--dim2); font: 11px var(--mono); cursor: pointer; }
.pl-skip:hover { color: var(--fg2); }
@media (max-width: 860px) { .pl-lines p { font-size: 14px; line-height: 1.85; } }


/* ── 账本 / 债务 ───────────────────────────────────────── */
.debt-panel { border-color: rgba(255,90,77,.22); margin-bottom: 16px; padding-bottom: 14px; }
.debt-grid { padding: 0 14px; }
.debt-panel .panel-head { padding: 10px 14px; }
.debt-foot { margin: 12px 14px 0; padding-top: 10px; border-top: 1px dashed var(--line); font: 10.5px var(--sans); color: var(--dim); line-height: 1.6; }
.debt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 12px; }
.dq-label { font: 10px var(--mono); letter-spacing: .18em; color: var(--dim2); }
.dq-amount { font: 600 34px/1.25 var(--mono); color: var(--fg); margin: 8px 0 4px; }
.dq-amount i { font: 11px var(--mono); font-style: normal; color: var(--dim2); margin-left: 8px; letter-spacing: .1em; }
.dq-sub { font: 11px var(--mono); color: var(--fg2); }
.dq-bar { height: 3px; background: #101820; margin: 16px 0 12px; }
.dq-bar i { display: block; height: 100%; background: var(--acid); }
.dq-bar.med i { background: #ff8fa3; }
.dq-foot { display: flex; gap: 14px; font: 11px var(--mono); color: var(--dim2); align-items: baseline; }
.dq-foot b { color: var(--fg); font-weight: 500; }
.dq-actions { display: flex; gap: 8px; margin-top: 14px; }
.dq-actions .btn { flex: 1; }
.dq-stamp { margin-top: 14px; padding: 8px 10px; border: 1px dashed rgba(157,255,60,.4); color: var(--acid); font: 11px var(--mono); letter-spacing: .18em; text-align: center; }
.dq-note { margin: 12px 0 0; font-size: 11px; line-height: 1.7; color: var(--dim2); }
.lg-row { display: flex; justify-content: space-between; font: 11px var(--mono); padding: 7px 0; color: var(--dim2); border-bottom: 1px solid var(--line); }
.lg-row b { color: var(--fg); font-weight: 500; }
.lg-row b.red { color: var(--red); }
@media (max-width: 860px) { .debt-grid { grid-template-columns: 1fr; gap: 20px; } .dq-amount { font-size: 28px; } }

/* ── 左栏账本 ─────────────────────────────────────────── */
.ledger-panel { padding-bottom: 8px; }
.lg-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 7px 10px 0; font: 10.5px var(--mono); color: var(--dim2); }
.lg-row b { color: var(--fg2); font-weight: 500; white-space: nowrap; }
.lg-row b.red { color: #ff5a4d; }
.mini-bar { height: 2px; background: #101820; margin: 9px 10px 2px; }
.mini-bar i { display: block; height: 100%; background: var(--acid); }

.gate-sub { margin: -8px 0 16px; font: 11px/1.7 var(--mono); color: #ff8fa3; letter-spacing: .02em; }
@media (max-width: 860px) { .gate-sub { font-size: 10.5px; margin: -6px 0 14px; } }

/* ── 章节插页 / 病历 ─────────────────────────────────── */
#chapter { position: fixed; inset: 0; z-index: 300; background: rgba(4,7,10,.78); display: grid; place-items: center; padding: 24px; animation: chIn .3s ease; }
#chapter.out { opacity: 0; transition: opacity .32s; }
@keyframes chIn { from { opacity: 0; } }
.ch-inner { width: min(560px, 100%); background: #070b0f; border: 1px solid var(--line2); border-left: 2px solid var(--acid); padding: 26px 26px 24px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.ch-tag { font: 10px var(--mono); letter-spacing: .22em; color: var(--acid); }
.ch-title { font: 600 30px/1.25 var(--mono); color: var(--fg); margin: 10px 0 18px; letter-spacing: .02em; }
.ch-lines p { font: 14px/1.9 var(--mono); color: var(--fg2); margin: 0 0 10px; opacity: 0; animation: plIn .7s ease forwards; }
#chGo { margin-top: 20px; }
.sis-stable { color: var(--acid) !important; }
.sis-weak { color: var(--amber) !important; }
.sis-critical { color: #ff5a4d !important; }
.med-card { grid-column: 1 / -1; }
.med-rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 18px; margin-top: 8px; }
.med-rows label { display: block; font: 9px var(--mono); color: var(--dim2); letter-spacing: .14em; }
.med-rows b { font: 12px var(--mono); color: var(--fg2); font-weight: 500; word-break: break-word; }
.med-rows b.bad { color: #ff5a4d; }
.med-card .id-note { margin-top: 10px; }
@media (max-width: 860px) {
  #chapter { background: rgba(4,7,10,.9); }
  .ch-title { font-size: 22px; }
  .ch-lines p { font-size: 13px; }
  .med-rows { grid-template-columns: 1fr; }
}
