/* ============ 字体(本地,不依赖外网)============ */
@font-face { font-family: Plex; src: url(/assets/fonts/ibm-plex-sans-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Plex; src: url(/assets/fonts/ibm-plex-sans-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Plex; src: url(/assets/fonts/ibm-plex-sans-600.woff2) format("woff2"); font-weight: 600 800; font-display: swap; }
@font-face { font-family: PlexMono; src: url(/assets/fonts/ibm-plex-mono-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: PlexMono; src: url(/assets/fonts/ibm-plex-mono-500.woff2) format("woff2"); font-weight: 500 800; font-display: swap; }
@font-face { font-family: NotoSC; src: url(/assets/fonts/noto-sans-sc-400.woff2) format("woff2"); font-weight: 400 500; font-display: swap; unicode-range: U+2E80-2FDF, U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: NotoSC; src: url(/assets/fonts/noto-sans-sc-600.woff2) format("woff2"); font-weight: 600 800; font-display: swap; unicode-range: U+2E80-2FDF, U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }

/* ============ 设计变量 ============ */
:root, [data-theme="dark"] {
  --bg: #0b0c0e; --bg-2: #0e0f12;
  --panel: #121417; --panel-2: #171a1e; --panel-3: #1e2227;
  --line: #20242a; --line-2: #2b3038;
  --txt: #e8eaed; --txt-2: #9ca3ad; --txt-3: #656c77;
  --brand: #f5b400; --brand-2: #ffc933; --brand-ink: #141007; --brand-soft: rgba(245, 180, 0, .11);
  --agent: #a090ff; --agent-soft: rgba(160, 144, 255, .12);
  --up: #1fc77e; --up-soft: rgba(31, 199, 126, .12);
  --down: #f2475f; --down-soft: rgba(242, 71, 95, .12);
  --info: #4f8cff; --info-soft: rgba(79, 140, 255, .12);
  --stock: #2ec5b0; --stock-soft: rgba(46, 197, 176, .12);
  --c-new: #1fc77e; --c-near: #f5b400; --c-launched: #a090ff;
  --shadow: 0 10px 30px rgba(0, 0, 0, .5);
  --glow: none; --top-bg: #0d0e10;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f3f4f6; --bg-2: #eceef1;
  --panel: #ffffff; --panel-2: #f6f7f9; --panel-3: #eceef2;
  --line: #e3e6ea; --line-2: #d3d7de;
  --txt: #121418; --txt-2: #555d69; --txt-3: #8f96a2;
  --brand: #d99a00; --brand-2: #b98200; --brand-ink: #ffffff; --brand-soft: rgba(217, 154, 0, .12);
  --agent: #6d54f0; --agent-soft: rgba(109, 84, 240, .10);
  --up: #079a5d; --up-soft: rgba(7, 154, 93, .10);
  --down: #df2f4a; --down-soft: rgba(223, 47, 74, .09);
  --info: #2e6cf0; --info-soft: rgba(46, 108, 240, .10);
  --stock: #0d9a88; --stock-soft: rgba(13, 154, 136, .10);
  --c-new: #079a5d; --c-near: #d99a00; --c-launched: #6d54f0;
  --shadow: 0 8px 24px rgba(16, 24, 40, .10);
  --top-bg: #ffffff;
  color-scheme: light;
}
:root {
  --font: Plex, NotoSC, "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  --mono: PlexMono, "SF Mono", "Cascadia Mono", Consolas, monospace;
  /* 数字:Plex Sans 本身就是等宽数字(和币安同一套字形),比等宽字体更清爽;地址 / 哈希仍用等宽 */
  --num: Plex, NotoSC, "PingFang SC", "Microsoft YaHei UI", system-ui, sans-serif;
  --top: 48px; --tick: 0px; --r: 6px; --r-sm: 4px;
}

/* ============ 基础 ============ */
* { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; overflow-x: hidden; color: var(--txt); background: var(--bg); font: 13px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
code, .mono { font-family: var(--mono); }
.n { font-family: var(--num); font-variant-numeric: tabular-nums; }
.n { font-size: .96em; }
.num { font-variant-numeric: tabular-nums; }
.dim { color: var(--txt-2); } .mute { color: var(--txt-3); } .small { font-size: 12px; }
.up { color: var(--up); } .dn { color: var(--down); } .warn { color: var(--down); } .ok { color: var(--up); } .ag { color: var(--agent); } .warn-amber { color: var(--brand); }
.ic { display: inline-block; vertical-align: -0.18em; flex: none; }
::selection { background: var(--brand-soft); }
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; }
.glass, .panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: 8px; }
.sep { width: 1px; align-self: stretch; background: var(--line); }

/* ============ 顶栏 ============ */
.top { position: sticky; top: 0; z-index: 30; height: var(--top); display: flex; align-items: center; gap: 18px; padding: 0 16px; background: var(--top-bg); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; letter-spacing: .1px; white-space: nowrap; }
.brand em { font-style: normal; color: var(--brand); }
.nav { display: flex; align-self: stretch; }
.nav a { position: relative; display: flex; align-items: center; gap: 6px; padding: 0 11px; color: var(--txt-2); font-weight: 500; white-space: nowrap; }
.nav a:hover { color: var(--txt); }
.nav a.on { color: var(--txt); }
.nav a.on::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: -1px; height: 2px; background: var(--brand); }
.nav a .ic { display: none; }
.gsearch { position: relative; width: 340px; }
.gsearch .ic { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--txt-3); pointer-events: none; }
.gsearch input { width: 100%; height: 32px; padding: 0 10px 0 32px; border-radius: var(--r-sm); outline: none; background: var(--panel-2); border: 1px solid var(--line); color: var(--txt); }
.gsearch input::placeholder { color: var(--txt-3); }
.gsearch input:focus { border-color: var(--line-2); background: var(--panel); }
.gsearch kbd { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font: 11px var(--mono); color: var(--txt-3); border: 1px solid var(--line-2); border-radius: 3px; padding: 0 4px; }
.sugg { position: absolute; top: 38px; left: 0; width: 460px; padding: 4px; z-index: 40; box-shadow: var(--shadow); background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r); max-height: 70vh; overflow: auto; }
.sugg a { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: var(--r-sm); }
.sugg a:hover, .sugg a.on { background: var(--panel-2); }
.sugg small { color: var(--txt-2); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.stat-chip { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 9px; border-radius: var(--r-sm); font-size: 12px; color: var(--txt-2); border: 1px solid var(--line); white-space: nowrap; }
.stat-chip b { color: var(--txt); font-weight: 600; font-family: var(--num); }
.chain-badge { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 9px; border-radius: var(--r-sm); font-size: 12px; color: var(--txt-2); border: 1px solid var(--line); white-space: nowrap; }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--txt-3); flex: none; }
.dot.ok, .ok > .dot { background: var(--up); }
.dot.bad, .bad > .dot { background: var(--down); }
.dot.warn { background: var(--brand); }
.icon-btn { width: 30px; height: 30px; display: grid; place-items: center; border-radius: var(--r-sm); border: 1px solid var(--line); background: transparent; color: var(--txt-2); cursor: pointer; }
.icon-btn:hover { color: var(--txt); border-color: var(--line-2); }
.wsel { position: relative; }
.wsel-btn { height: 30px; padding: 0 10px; display: flex; align-items: center; gap: 7px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--panel-2); cursor: pointer; font-weight: 500; white-space: nowrap; }
.wsel-btn:hover { border-color: var(--txt-3); }
.wsel-btn b { font-family: var(--num); }
.wsel-btn.none { color: var(--brand-ink); background: var(--brand); border-color: var(--brand); }
.menu { position: absolute; right: 0; top: 36px; width: 340px; padding: 6px; z-index: 40; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow); }
.menu-h { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px; font-size: 11px; color: var(--txt-3); text-transform: uppercase; letter-spacing: .3px; }
.menu-h a, .menu-h button { text-transform: none; letter-spacing: 0; color: var(--txt-2); background: none; border: 0; cursor: pointer; font-size: 12px; }
.menu-h a:hover, .menu-h button:hover { color: var(--txt); }
.menu-i { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: var(--r-sm); cursor: pointer; width: 100%; border: 0; background: none; text-align: left; }
.menu-i:hover { background: var(--panel-2); }
.menu-i small { color: var(--txt-3); font-size: 11.5px; }
.menu-i .grow b { display: block; font-weight: 500; }
.menu-i input[type=checkbox] { accent-color: var(--brand); width: 14px; height: 14px; }
.menu-sep { height: 1px; background: var(--line); margin: 6px 0; }
.menu-empty { padding: 14px 10px; color: var(--txt-2); font-size: 12.5px; line-height: 1.6; }

/* ============ 通用组件 ============ */
.view { padding: 12px 16px 24px; max-width: 1920px; margin: 0 auto; }
.view-host { min-width: 0; }
.loading { display: grid; place-items: center; height: 40vh; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--txt-2); animation: spin .8s linear infinite; }
.spin-sm { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--txt-2); animation: spin .8s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { color: var(--txt-3); text-align: center; padding: 28px 10px; font-size: 12.5px; }
.empty a { color: var(--brand); }
.empty.big { padding: 70px 20px; font-size: 14px; color: var(--txt-2); line-height: 2.2; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: var(--r-sm); cursor: pointer; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--txt); font-weight: 500; font-size: 13px; white-space: nowrap; }
.btn:hover:not(:disabled) { border-color: var(--txt-3); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.sm { height: 26px; padding: 0 9px; font-size: 12px; }
.btn.xs { height: 22px; padding: 0 7px; font-size: 11.5px; }
.btn.lg, .btn.big { height: 38px; padding: 0 16px; font-size: 14px; }
.btn.block { width: 100%; }
.btn.primary, .btn.gold { border-color: var(--brand); color: var(--brand-ink); background: var(--brand); font-weight: 600; }
.btn.primary:hover:not(:disabled), .btn.gold:hover:not(:disabled) { filter: brightness(1.07); border-color: var(--brand); }
.btn.buy, .btn.green { border-color: var(--up); color: #fff; background: var(--up); font-weight: 600; }
.btn.sell, .btn.red { border-color: var(--down); color: #fff; background: var(--down); font-weight: 600; }
.btn.violet { border-color: var(--agent); color: #fff; background: var(--agent); }
.btn.buy:hover:not(:disabled), .btn.sell:hover:not(:disabled), .btn.violet:hover:not(:disabled) { filter: brightness(1.08); }
.btn.ghost { background: transparent; }
.btn.link { border: 0; background: none; padding: 0 4px; color: var(--txt-2); }
.btn.link:hover { color: var(--txt); }
.btn.danger { color: var(--down); }
.mini, .btn.mini-btn { height: 24px; padding: 0 8px; font-size: 12px; border-radius: var(--r-sm); display: inline-flex; align-items: center; gap: 5px; }
.mini { border: 1px solid var(--line-2); background: var(--panel-2); cursor: pointer; }
.mini:hover { border-color: var(--txt-3); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border-radius: var(--r-sm); border: 1px solid var(--line); background: transparent; color: var(--txt-2); cursor: pointer; font-size: 12.5px; font-weight: 500; user-select: none; white-space: nowrap; }
.chip:hover { color: var(--txt); border-color: var(--line-2); }
.chip.on { color: var(--txt); border-color: var(--brand); background: var(--brand-soft); }
.chip .cnt { font: 500 11px var(--num); color: var(--txt-3); background: none; padding: 0; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.seg { display: inline-flex; padding: 2px; gap: 2px; border-radius: var(--r-sm); background: var(--panel-2); border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; padding: 3px 9px; border-radius: 3px; color: var(--txt-2); cursor: pointer; font-weight: 500; font-size: 12px; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.seg button:hover { color: var(--txt); }
.seg button.on { background: var(--panel-3); color: var(--txt); }
.tog { display: inline-flex; align-items: center; gap: 6px; color: var(--txt-2); cursor: pointer; font-size: 12.5px; user-select: none; white-space: nowrap; }
.tog input { accent-color: var(--brand); width: 14px; height: 14px; }
.tog:hover { color: var(--txt); }
.in, .sel { height: 30px; padding: 0 9px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--panel-2); color: var(--txt); outline: none; min-width: 0; }
.in:focus, .sel:focus { border-color: var(--txt-3); }
.in.sm, .sel.sm { height: 26px; font-size: 12px; padding: 0 7px; }
.sel { cursor: pointer; }
.sel option { background: var(--panel); }
textarea.in { height: auto; padding: 8px 9px; resize: vertical; line-height: 1.5; }
.unit-in { display: inline-flex; align-items: center; height: 30px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--panel-2); padding: 0 8px; gap: 6px; }
.unit-in:focus-within { border-color: var(--txt-3); }
.unit-in input { width: 70px; border: 0; background: none; outline: none; color: var(--txt); font-family: var(--num); font-weight: 600; font-size: 13px; }
.unit-in span { color: var(--txt-3); font-size: 12px; }

/* 标签 */
.tg { display: inline-flex; align-items: center; gap: 3px; height: 18px; padding: 0 5px; border-radius: 3px; font-size: 11px; font-weight: 500; color: var(--txt-2); border: 1px solid var(--line-2); white-space: nowrap; line-height: 1; }
.tg img { width: 12px; height: 12px; border-radius: 50%; object-fit: cover; }
.tg .ic { width: 11px; height: 11px; }
.tg.agent, .tg.violet, .tg.div { color: var(--agent); border-color: color-mix(in srgb, var(--agent) 40%, transparent); }
.tg.stock { color: var(--stock); border-color: color-mix(in srgb, var(--stock) 40%, transparent); }
.tg.warn { color: var(--down); border-color: color-mix(in srgb, var(--down) 40%, transparent); }
.tg.green { color: var(--up); border-color: color-mix(in srgb, var(--up) 40%, transparent); }
.tg.hot, .tg.brand { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 40%, transparent); }
.tg.orange { color: var(--txt-2); }
.tg.cap { color: var(--down); border-color: color-mix(in srgb, var(--down) 40%, transparent); }
.tg.cap b { font-family: var(--num); font-weight: 600; }
.tg.cap.done { opacity: .5; }
.tg.pad { color: var(--txt); border-color: var(--line-2); background: var(--panel-3); }
.tg.pad-agentpad { color: var(--brand-ink); background: var(--brand); border-color: var(--brand); }
.tg.pad-gang { color: #ff7a7a; border-color: rgba(255, 122, 122, .35); }
.tg.pad-four { color: #f0b429; border-color: rgba(240, 180, 41, .35); }
.tg.pad-flap { color: #3fb8e8; border-color: rgba(63, 184, 232, .35); }
.tg.pad-flapagent { color: #3fb8e8; border-color: rgba(63, 184, 232, .35); }
[data-theme="light"] .tg.pad-four { color: #a87700; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: var(--r-sm); font-weight: 500; font-size: 12.5px; }
.pill.violet { background: var(--agent-soft); color: var(--agent); }
.pill.orange { background: var(--panel-3); color: var(--txt-2); }
.bar { height: 4px; background: var(--panel-3); border-radius: 2px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 2px; background: var(--ac, var(--brand)); transition: width .5s; }
.bar.big { height: 6px; }
.sec-h { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; margin-bottom: 10px; }
.sec-h small { color: var(--txt-2); font-weight: 400; font-size: 12px; }
.sec-h .btn, .sec-h .seg { margin-left: auto; }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.kv:last-child { border-bottom: 0; }
.kv > span { color: var(--txt-2); }
.kv b { font-weight: 500; text-align: right; word-break: break-all; font-family: var(--num); font-size: 12.5px; }
.live-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--up); }
.flash-up { animation: fu .9s; } .flash-dn { animation: fd .9s; }
@keyframes fu { 0% { background: var(--up-soft); } }
@keyframes fd { 0% { background: var(--down-soft); } }
.av { position: relative; display: grid; place-items: center; overflow: hidden; flex: none; font-weight: 600; color: #fff; border-radius: var(--r-sm); background: var(--panel-3); }
.av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.note { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: var(--r-sm); background: var(--panel-2); border: 1px solid var(--line); color: var(--txt-2); font-size: 12px; line-height: 1.55; }
.note.warn { color: var(--down); background: var(--down-soft); border-color: color-mix(in srgb, var(--down) 30%, transparent); }
.note.info { color: var(--txt-2); }
.note .ic { margin-top: 1px; }

/* 表格 */
.table-wrap { max-height: 560px; overflow: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.tbl th { text-align: left; color: var(--txt-3); font-weight: 500; font-size: 11.5px; padding: 7px 10px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); z-index: 1; white-space: nowrap; }
.tbl th.sort { cursor: pointer; user-select: none; }
.tbl th.sort:hover { color: var(--txt-2); }
.tbl td { padding: 7px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; }
.tbl .n, .tbl td.m { font-family: var(--num); }
.tbl tbody tr:hover { background: var(--panel-2); }
.tbl a { color: var(--txt); }
.tbl a:hover { color: var(--brand); }
.side-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }

/* 弹窗 / 提示 */
.modal-back { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity .15s; padding: 16px; }
.modal-back.on { opacity: 1; }
.modal { width: min(440px, 100%); padding: 18px; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow); max-height: calc(100vh - 32px); overflow: auto; }
.modal.wide { width: min(980px, 100%); }
.modal h3 { font-size: 15px; font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.modal h3 .x { margin-left: auto; cursor: pointer; color: var(--txt-3); background: none; border: 0; display: grid; place-items: center; }
.modal h3 .x:hover { color: var(--txt); }
.modal-body { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.modal-body p { margin-top: 4px; font-size: 12px; }
.modal-actions { display: flex; gap: 8px; margin-top: 16px; justify-content: flex-end; }
.modal-actions .btn { min-width: 96px; height: 34px; }
#toasts { position: fixed; bottom: 18px; right: 18px; z-index: 70; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 9px; padding: 9px 13px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 13px; opacity: 0; transform: translateY(6px); transition: .2s; max-width: min(460px, 92vw); }
.toast.on { opacity: 1; transform: none; }
.toast a { color: var(--brand); }
.toast.tk { cursor: pointer; }
.toast.tk:hover { border-color: var(--line-3, var(--txt-3)); }
.toast.tk .spin-sm { flex: none; }
.t-ok .ic { color: var(--up); } .t-err .ic { color: var(--down); } .t-warn .ic { color: var(--brand); } .t-info .ic { color: var(--txt-2); }
.confetti { display: none; }
.foot { display: flex; justify-content: space-between; gap: 10px; padding: 10px 16px 18px; font-size: 11.5px; color: var(--txt-3); max-width: 1920px; margin: 0 auto; flex-wrap: wrap; border-top: 1px solid var(--line); }
.foot a:hover { color: var(--txt-2); }

/* ============ 扫链 ============ */
.v-scan { padding-bottom: 8px; }
.sc-bar { display: flex; align-items: center; gap: 10px; padding: 8px 10px; flex-wrap: wrap; margin-bottom: 8px; }
.sc-bar .chip .dot { width: 6px; height: 6px; }
.sc-status { margin-left: auto; display: flex; gap: 12px; align-items: center; font-size: 11.5px; color: var(--txt-3); }
.sc-quick { display: flex; align-items: center; gap: 8px; padding: 7px 10px; flex-wrap: wrap; margin-bottom: 8px; }
.sc-quick > b { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.sc-quick > b .ic { color: var(--brand); }
.sc-quick .hint { color: var(--txt-3); font-size: 12px; }
.sc-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; height: calc(100vh - var(--top) - 118px); min-height: 520px; }
.sc-col { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.sc-col.c-new { --ac: var(--c-new); } .sc-col.c-near { --ac: var(--c-near); } .sc-col.c-launched { --ac: var(--c-launched); }
.sc-head { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--line); flex: none; }
.sc-head h2 { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; margin-right: auto; white-space: nowrap; }
.sc-head h2::before { content: ""; width: 3px; height: 13px; border-radius: 1px; background: var(--ac); }
.sc-head .cnt { font: 500 11px var(--num); color: var(--txt-3); }
.sc-head .in, .sc-head .sel { height: 24px; font-size: 11.5px; padding: 0 6px; }
.sc-head .in { width: 84px; }
.sc-list { flex: 1 1 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.sc-foot { flex: none; text-align: center; color: var(--txt-3); font-size: 11px; padding: 5px; border-top: 1px solid var(--line); }
.sc-row { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 3px 10px; padding: 9px 10px 10px; border-bottom: 1px solid var(--line); cursor: pointer; contain: layout paint; }
.sc-row:hover { background: var(--panel-2); }
.sc-row.fresh { animation: rowin 1.2s ease-out; }
@keyframes rowin { 0% { background: var(--brand-soft); } 100% { background: transparent; } }
.sc-row .av { grid-row: 1 / 4; width: 44px; height: 44px; font-size: 16px; border-radius: var(--r); }
.sc-row .av .pg { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(0, 0, 0, .55); }
.sc-row .av .pg i { display: block; height: 100%; background: var(--ac); }
.l1 { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.l1 .sym { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.l1 .nm { color: var(--txt-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.l1 .age { font: 500 11.5px var(--num); color: var(--up); white-space: nowrap; }
.l1 .ca { color: var(--txt-3); cursor: pointer; display: inline-flex; }
.l1 .ca:hover { color: var(--txt); }
.l2 { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; min-height: 18px; }
.l3 { display: flex; gap: 10px; align-items: center; font: 11.5px var(--num); color: var(--txt-3); white-space: nowrap; overflow: hidden; }
.l3 > span { display: inline-flex; align-items: center; gap: 3px; }
.l3 .ic { color: var(--txt-3); opacity: .8; }
.l3 b { color: var(--txt-2); font-weight: 500; }
.l3 b.up { color: var(--up); } .l3 b.dn { color: var(--down); }
.l3 .pct { color: var(--txt-2); margin-left: auto; font-family: var(--num); }
.l3 .pct.up { color: var(--up); } .l3 .pct.dn { color: var(--down); }
.rt { grid-column: 3; grid-row: 1 / 4; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 4px; }
.rt .mc { font: 600 13px var(--num); color: var(--txt); }
.rt .mc small { display: block; text-align: right; font-size: 11px; color: var(--txt-3); }
.qb { display: flex; gap: 4px; }
.qb button { height: 24px; padding: 0 8px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--panel-2); color: var(--txt); font: 600 12px var(--num); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.qb button .ic { color: var(--brand); }
.qb button:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.qb button.max { color: var(--agent); }
.qb button.max:hover:not(:disabled) { border-color: var(--agent); color: var(--agent); }
.qb button:disabled { opacity: .4; cursor: not-allowed; }
.qb .view-only { font-size: 11.5px; color: var(--txt-3); }

/* ============ 单币页 ============ */
.px-head { display: flex; align-items: center; gap: 14px 22px; padding: 12px 16px; margin-bottom: 8px; flex-wrap: wrap; }
.px-head .av { width: 44px; height: 44px; font-size: 17px; border-radius: 50%; }
.px-id { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.px-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.px-name h1 { font-size: 18px; font-weight: 600; letter-spacing: .2px; }
.px-name .nm { color: var(--txt-2); font-size: 13px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.px-ca { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 7px; border-radius: 11px; border: 1px solid var(--line); background: var(--panel-2); color: var(--txt-3); font: 11.5px var(--mono); cursor: pointer; }
.px-ca:hover { color: var(--txt); border-color: var(--line-2); }
.px-links { display: inline-flex; gap: 2px; }
.px-links a { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 4px; border-radius: 11px; color: var(--txt-3); font-size: 12px; font-weight: 600; }
.px-links a:hover { color: var(--txt); background: var(--panel-3); }
.px-tags { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.px-sub { font-size: 12px; color: var(--txt-3); margin-left: 4px; }
.px-sub a { color: var(--txt-2); }
.px-sub a:hover { color: var(--brand); }
.px-price { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding-left: 18px; border-left: 1px solid var(--line); }
.px-price b { font-size: 22px; font-weight: 600; letter-spacing: -.2px; }
.px-price span { font-size: 13px; font-weight: 500; }
.px-mets { display: flex; gap: 4px 26px; margin-left: auto; flex-wrap: wrap; }
.px-mets .mt { display: flex; flex-direction: column; gap: 3px; min-width: 64px; }
.px-mets .mt b { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.px-mets .mt small { font-size: 11.5px; color: var(--txt-3); white-space: nowrap; }
.px-mets .mt.prog .bar { width: 80px; height: 4px; margin-top: 2px; background: var(--line-2); }
.px-mets .mt.prog .bar i { background: var(--brand); }
.px-grid { display: grid; grid-template-columns: 252px minmax(0, 1fr) 360px; gap: 8px; align-items: start; }
.px-grid.nl-off { grid-template-columns: 30px minmax(0, 1fr) 360px; }
/* 单币页左栏:新盘 */
.px-new { position: sticky; top: calc(var(--top) + 8px); max-height: calc(100vh - var(--top) - 16px); display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; overflow: hidden; }
.nl-h { display: flex; align-items: center; gap: 6px; padding: 8px 10px 6px; }
.nl-h b { font-size: 13px; }
.nl-h small { color: var(--txt-3); font: 11px var(--num); }
.nl-fold { border: 0; background: none; color: var(--txt-3); cursor: pointer; font-size: 14px; padding: 0 2px; }
.nl-fold:hover { color: var(--txt); }
.nl-tabs { display: flex; gap: 4px; padding: 0 8px 8px; border-bottom: 1px solid var(--line); }
.nl-tabs button { flex: 1; border: 1px solid var(--line); background: none; color: var(--txt-2); border-radius: var(--r-sm); font-size: 11.5px; padding: 3px 0; cursor: pointer; }
.nl-tabs button.on { background: var(--brand); border-color: var(--brand); color: #111; font-weight: 600; }
.nl-list { overflow-y: auto; scrollbar-width: thin; }
.nl-row { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.nl-row:hover { background: var(--panel-2); }
.nl-row.on { background: var(--panel-2); box-shadow: inset 2px 0 0 var(--brand); }
.nl-row .av { position: relative; width: 30px; height: 30px; flex: none; border-radius: 6px; display: grid; place-items: center; font-size: 12px; color: #fff; overflow: hidden; }
.nl-row .av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nl-row .av .pg { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(0, 0, 0, .45); }
.nl-row .av .pg i { display: block; height: 100%; background: var(--brand); }
.nl-mid { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.nl-l1 { display: flex; align-items: baseline; gap: 5px; min-width: 0; }
.nl-l1 b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nl-l1 small { font-size: 10.5px; color: var(--txt-3); white-space: nowrap; }
.nl-l2 { font-size: 11px; color: var(--txt-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nl-l2 b { color: var(--txt); font-weight: 500; }
.nl-rt { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: none; }
.nl-rt .pct { font-size: 11px; color: var(--brand); }
.nl-rt button { border: 1px solid var(--up); background: rgba(14, 203, 129, .12); color: var(--up); border-radius: var(--r-sm); font-size: 11px; font-weight: 600; padding: 2px 7px; cursor: pointer; white-space: nowrap; }
.nl-rt button:hover { background: var(--up); color: #0b0e11; }
.px-grid.nl-off .nl-tabs, .px-grid.nl-off .nl-list, .px-grid.nl-off .nl-h b, .px-grid.nl-off .nl-h small { display: none; }
.px-grid.nl-off .nl-h { padding: 8px 0; justify-content: center; }
/* 悬浮一键买卖卡 */
.qt { position: fixed; z-index: 60; width: 284px; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow); padding: 0 10px 10px; user-select: none; }
.qt-h { display: flex; align-items: center; gap: 6px; padding: 8px 0 6px; cursor: move; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.qt-h b { font-size: 12.5px; }
.qt-mode { font-size: 10.5px; padding: 1px 6px; border-radius: 10px; border: 1px solid var(--line-2); color: var(--txt-3); }
.qt-mode.fast { border-color: var(--brand); color: var(--brand); }
.qt-x { border: 0; background: none; color: var(--txt-3); cursor: pointer; font-size: 16px; line-height: 1; padding: 0 2px; }
.qt-x:hover { color: var(--txt); }
.qt-lbl { display: flex; align-items: baseline; justify-content: space-between; font-size: 12px; margin: 6px 0 4px; }
.qt-lbl small { font-size: 10.5px; color: var(--txt-3); }
.qt-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.qt-grid button { border: 1px solid var(--line-2); background: var(--panel-2); color: var(--txt); border-radius: var(--r-sm); font: 600 12px var(--num); padding: 6px 0; cursor: pointer; }
.qt-grid button.b:hover { border-color: var(--up); color: var(--up); }
.qt-grid button.s:hover { border-color: var(--down); color: var(--down); }
.qt-max { width: 100%; margin-top: 4px; border: 1px solid var(--up); background: rgba(14, 203, 129, .12); color: var(--up); border-radius: var(--r-sm); font-size: 12px; font-weight: 600; padding: 5px 0; cursor: pointer; }
.qt-max:hover { background: var(--up); color: #0b0e11; }
.qt-foot { margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; }
.qt-foot div { display: flex; align-items: baseline; gap: 6px; }
.qt-foot span { color: var(--txt-3); min-width: 40px; }
.qt-foot small { color: var(--txt-3); font-size: 10.5px; }
.qt-foot small.up { color: var(--up); } .qt-foot small.dn { color: var(--down); }
.qt-h kbd { font: 600 10px var(--num); color: var(--txt-3); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px; padding: 0 4px; }
.dk-body { max-height: min(72vh, 640px); overflow-y: auto; scrollbar-width: thin; }
.dk-sec + .dk-sec { margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--line); }
.qt-sub { font-size: 11px; color: var(--txt-2); margin: 6px 0 4px; }
.qt-sub small { color: var(--txt-3); font-size: 10.5px; }
.qt-lbl b { font-weight: 600; }
.dk-re { border: 0; background: none; color: var(--txt-3); cursor: pointer; padding: 0 2px; }
.dk-re:hover { color: var(--txt); }
.dk-pos { display: flex; flex-direction: column; }
.dk-row { display: flex; align-items: center; gap: 6px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.dk-row:last-child { border-bottom: 0; }
.dk-row.on { box-shadow: inset 2px 0 0 var(--brand); padding-left: 4px; }
.dk-sym { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1; color: inherit; text-decoration: none; }
.dk-sym .av { position: relative; width: 24px; height: 24px; flex: none; border-radius: 5px; display: grid; place-items: center; font-size: 11px; color: #fff; overflow: hidden; }
.dk-sym .av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dk-nm { display: flex; flex-direction: column; min-width: 0; }
.dk-nm b { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-nm small { font-size: 10.5px; color: var(--txt-3); white-space: nowrap; }
.dk-sym:hover b { color: var(--brand); }
.dk-pct { font-size: 11px; flex: none; min-width: 42px; text-align: right; }
.dk-btns { display: flex; gap: 3px; flex: none; }
.dk-btns button { border: 1px solid var(--line-2); background: var(--panel-2); color: var(--txt-2); border-radius: var(--r-sm); font: 600 10.5px var(--num); padding: 3px 5px; cursor: pointer; }
.dk-btns button:hover { border-color: var(--down); color: var(--down); }
#dockBtn.on { color: var(--brand); }
.px-main, .px-side { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.px-side { position: sticky; top: calc(var(--top) + 8px); max-height: calc(100vh - var(--top) - 16px); overflow-y: auto; scrollbar-width: none; }
.px-side::-webkit-scrollbar { display: none; }

/* 图表:TradingView 式工具栏 + 底栏 */
.px-chart { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.ch-bar, .ch-foot { display: flex; align-items: center; gap: 2px; padding: 0 8px; flex: none; }
.ch-bar { height: 38px; border-bottom: 1px solid var(--line); }
.ch-foot { height: 30px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--txt-3); }
.ch-sep { width: 1px; height: 16px; background: var(--line-2); margin: 0 6px; flex: none; }
.ch-ivs, .ch-rng { display: flex; gap: 1px; }
.ch-ivs button, .ch-rng button, .ch-txt, .ch-btn, .ch-seg button { border: 0; background: none; color: var(--txt-2); cursor: pointer; border-radius: 4px; font: 500 12.5px var(--font); white-space: nowrap; }
.ch-ivs button { height: 26px; padding: 0 8px; }
.ch-rng button, .ch-foot .ch-txt { height: 22px; padding: 0 7px; font-size: 11.5px; color: var(--txt-3); }
.ch-ivs button:hover, .ch-rng button:hover, .ch-txt:hover, .ch-btn:hover, .ch-seg button:hover { color: var(--txt); background: var(--panel-3); }
.ch-ivs button.on { color: var(--brand); }
.ch-txt { height: 26px; padding: 0 8px; }
.ch-txt.on, .ch-btn.on { color: var(--brand); }
.ch-foot .ch-txt.on { color: var(--brand); }
.ch-btn { width: 28px; height: 26px; display: grid; place-items: center; }
.ch-seg { display: inline-flex; gap: 1px; margin-left: 4px; }
.ch-seg button { height: 26px; padding: 0 8px; }
.ch-seg button.on { color: var(--txt); background: var(--panel-3); }
.ch-clock { color: var(--txt-3); margin-left: 8px; }
.ch-tv { color: var(--txt-3); font-size: 11px; white-space: nowrap; }
.ch-tv:hover { color: var(--txt-2); }
.ch-src { color: var(--txt-3); }
.tv-wrap { position: relative; height: clamp(380px, calc(100vh - 330px), 640px); }
.tv-legend { position: absolute; left: 10px; top: 8px; z-index: 3; pointer-events: none; display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--txt-3); font-variant-numeric: tabular-nums; }
.tv-legend > div { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.tv-legend b { font-weight: 500; margin-left: 3px; color: var(--txt-2); }
.tv-legend .up b, .tv-legend b.up { color: var(--up); }
.tv-legend .dn b, .tv-legend b.dn { color: var(--down); }
.tv-legend .lg-sym { font-size: 13px; font-weight: 600; color: var(--txt); }
.tv-legend .lg-tag { color: var(--txt-3); }
.tv-legend .lg-tag::before { content: "·"; margin-right: 6px; }
.tv-legend .lg-ohlc { display: inline-flex; gap: 8px; margin-left: 6px; }
.tv-legend .lg2 b { color: inherit; }
.tv-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--txt-3); font-size: 12.5px; z-index: 2; pointer-events: none; }
.tv-credit { display: flex; justify-content: flex-end; gap: 6px; font-size: 11px; color: var(--txt-3); margin-top: 4px; }
.tv-loading { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; background: color-mix(in srgb, var(--panel) 55%, transparent); pointer-events: none; }
.px-chart:fullscreen { border-radius: 0; border: 0; }
.px-chart:fullscreen .tv-wrap, .px-chart:fullscreen .dex-frame { flex: 1; height: auto; }
.dex-frame { width: 100%; height: clamp(380px, calc(100vh - 330px), 640px); border: 0; background: var(--panel-2); }

/* 成交 / 我的交易 */
.px-act { padding: 0; overflow: hidden; }
.px-tabs { display: flex; align-items: center; gap: 2px; height: 38px; padding: 0 8px; border-bottom: 1px solid var(--line); }
.px-tabs button { height: 38px; padding: 0 10px; border: 0; background: none; color: var(--txt-2); font-weight: 500; cursor: pointer; position: relative; }
.px-tabs button:hover { color: var(--txt); }
.px-tabs button.on { color: var(--txt); }
.px-tabs button.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--brand); }
.px-tabs small { color: var(--txt-3); font-size: 11.5px; }
.px-act .table-wrap { max-height: 460px; }
.px-tbl td { padding: 6px 10px; }
.px-tbl tr.me td { background: var(--brand-soft); }
.bs { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 3px; font-size: 11.5px; font-weight: 600; }
.bs.b { color: var(--up); background: var(--up-soft); }
.bs.s { color: var(--down); background: var(--down-soft); }
.tbl a.tx { color: var(--txt-3); display: inline-grid; place-items: center; }
.tbl a.tx:hover { color: var(--brand); }

/* 右侧卡片 */
.px-card { padding: 12px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.card-h b { font-size: 13px; font-weight: 600; }
.card-h small { color: var(--txt-3); font-size: 11.5px; }
.fl-wins { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 10px; }
.fl-wins button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: var(--r-sm); border: 1px solid var(--line); background: transparent; cursor: pointer; color: var(--txt-2); }
.fl-wins button small { font-size: 11px; color: var(--txt-3); }
.fl-wins button b { font-size: 12.5px; font-weight: 600; }
.fl-wins button:hover { border-color: var(--line-2); }
.fl-wins button.on { border-color: var(--txt-3); background: var(--panel-2); }
.fl-row { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--txt-2); }
.fl-row b { font-weight: 600; color: var(--txt); }
.fl-row b.up { color: var(--up); } .fl-row b.dn { color: var(--down); }
.fl-bar { height: 4px; border-radius: 2px; background: var(--down); overflow: hidden; margin: 8px 0; }
.fl-bar i { display: block; height: 100%; background: var(--up); border-right: 2px solid var(--panel); }
.ds-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.ds-grid > div { display: flex; flex-direction: column; gap: 2px; padding: 7px 8px; border-radius: var(--r-sm); background: var(--panel-2); min-width: 0; }
.ds-grid small { font-size: 11px; color: var(--txt-3); white-space: nowrap; }
.ds-grid b { font-size: 12.5px; font-weight: 600; }
.ds-grid .hot b { color: var(--down); }
.px-card .kv:first-of-type { padding-top: 0; }

/* 交易面板 */
.tp { padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.tp-side { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.tp-side button { height: 32px; border: 0; background: var(--panel-2); color: var(--txt-2); font-weight: 600; cursor: pointer; }
.tp-side button.on[data-v=buy] { background: var(--up); color: #fff; }
.tp-side button.on[data-v=sell] { background: var(--down); color: #fff; }
.tp-route { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 11.5px; color: var(--txt-3); }
.tp-route b { color: var(--txt-2); font-weight: 500; }
.tp-amt { display: flex; align-items: center; height: 44px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--panel-2); padding: 0 12px; gap: 10px; cursor: text; }
.tp-amt:focus-within { border-color: var(--txt-3); }
.tp-amt .lb { color: var(--txt-3); font-size: 12px; }
.tp-amt input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--txt); text-align: right; }
.tp-amt input::placeholder { color: var(--txt-3); }
.tp-amt .unit { color: var(--txt-2); font-weight: 600; }
.tp-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px; color: var(--txt-3); font-size: 12.5px; }
.tp-presets { display: flex; gap: 4px; flex-wrap: wrap; }
.tp-presets button { flex: 1; min-width: 44px; height: 26px; border-radius: var(--r-sm); border: 1px solid var(--line); background: transparent; color: var(--txt-2); font: 500 12px var(--num); cursor: pointer; }
.tp-presets button:hover { color: var(--txt); border-color: var(--line-2); }
.tp-presets button.on { color: var(--txt); border-color: var(--brand); background: var(--brand-soft); }
.tp-max { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; height: 30px; padding: 0 10px; border-radius: var(--r-sm); border: 1px dashed color-mix(in srgb, var(--agent) 45%, transparent); background: transparent; color: var(--agent); font: 500 12px var(--font); cursor: pointer; }
.tp-max span { display: inline-flex; align-items: center; gap: 5px; }
.tp-max small { color: var(--txt-3); font-size: 11px; font-weight: 400; }
.tp-max:hover { border-color: var(--agent); }
.tp-max.on { border-style: solid; border-color: var(--agent); background: var(--agent-soft); }
.tp-max.on small { color: var(--agent); }
.tp-line { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--txt-2); }
.tp-wallets { border: 1px solid var(--line); border-radius: var(--r-sm); max-height: 240px; overflow: auto; }
.tp-wallets .h { display: flex; justify-content: space-between; align-items: center; padding: 5px 8px; font-size: 11.5px; color: var(--txt-3); border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); }
.tp-wallets .h button { background: none; border: 0; color: var(--txt-2); cursor: pointer; font-size: 11.5px; }
.tp-wallets label { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 8px; cursor: pointer; border-bottom: 1px solid var(--line); }
.tp-wallets label:last-child { border-bottom: 0; }
.tp-wallets label:hover { background: var(--panel-2); }
.tp-wallets input { accent-color: var(--brand); }
.tp-wallets .wn { min-width: 0; }
.tp-wallets .wn b { display: block; font-weight: 500; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-wallets .wn small { font: 11px var(--mono); color: var(--txt-3); }
.tp-wallets .wv { text-align: right; font: 500 11.5px var(--num); color: var(--txt-2); }
.tp-wallets .wv small { display: block; color: var(--txt-3); }
.tp-wallets .off { opacity: .5; }
.tp-go { height: 42px; font-size: 14px; }
.tp-foot { font-size: 11.5px; color: var(--txt-3); line-height: 1.6; }
.tp-foot .ic { vertical-align: -2px; color: var(--up); }
.info-card { padding: 10px 12px; }
.info-card h4 { font-size: 12.5px; font-weight: 600; margin-bottom: 6px; color: var(--txt-2); }

/* ============ 交易确认 / 进度 ============ */
.tm-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.tm-head .av { width: 32px; height: 32px; font-size: 13px; }
.tm-head b { font-size: 14px; }
.tm-sum { display: flex; gap: 16px; flex-wrap: wrap; padding: 8px 10px; border-radius: var(--r-sm); background: var(--panel-2); border: 1px solid var(--line); margin-bottom: 10px; font-size: 12px; color: var(--txt-2); }
.tm-sum b { color: var(--txt); font: 600 13px var(--num); }
.tm-tbl td { vertical-align: top; }
.tm-tbl .wn b { display: block; font-weight: 500; }
.tm-tbl .wn small { font: 11px var(--mono); color: var(--txt-3); }
.tm-steps { display: flex; gap: 4px; flex-wrap: wrap; }
.tm-steps span { font-size: 11px; color: var(--txt-3); }
.tm-steps span.done { color: var(--up); }
.st { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; white-space: nowrap; }
.st.ready { color: var(--txt-2); } .st.done { color: var(--up); } .st.failed { color: var(--down); } .st.run { color: var(--brand); } .st.pause { color: var(--brand); } .st.app { color: var(--agent); }
.tm-risk { margin-top: 3px; font-size: 11.5px; color: var(--down); white-space: normal; max-width: 360px; }
.tm-err { font-size: 11.5px; color: var(--down); white-space: normal; max-width: 320px; }
.tm-tx { font: 11.5px var(--mono); color: var(--txt-2); }
.tm-tx a:hover { color: var(--brand); }
.tm-acks { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.tm-acks label { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--down); cursor: pointer; }
.tm-acks input { accent-color: var(--down); }
.tm-fast { margin-right: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--txt-2); cursor: pointer; user-select: none; }
.tm-fast input { accent-color: var(--brand); }

/* ============ 钱包 / 持仓 / 设置 / 记录 ============ */
.pg-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.pg-h h1 { font-size: 16px; font-weight: 600; margin-right: auto; }
.pg-h h1 small { font-size: 12.5px; color: var(--txt-2); font-weight: 400; margin-left: 8px; }
.wl-tbl td { vertical-align: middle; padding-top: 9px; padding-bottom: 9px; }
.wl-tbl tr.off td { color: var(--txt-2); }
.wl-name { display: flex; align-items: center; gap: 10px; }
.wl-name .av { width: 30px; height: 30px; font-size: 12px; border-radius: 50%; }
.wl-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wl-row { display: flex; align-items: center; gap: 6px; }
.wl-id small { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--txt-3); }
.wl-id small .btn.link { height: auto; padding: 0; font-size: 11.5px; color: var(--txt-3); }
.wl-nm { border: 0; background: none; padding: 0; color: var(--txt); font-weight: 600; font-size: 13px; cursor: text; text-align: left; }
.wl-nm:hover { text-decoration: underline dotted var(--txt-3); text-underline-offset: 3px; }
.wl-id .in { width: 160px; }
.wl-actions { display: flex; gap: 4px; justify-content: flex-end; }
.wl-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 10px; color: var(--txt-3); }
.wl-empty b { color: var(--txt); font-size: 14px; }
.wl-empty .btn { margin-top: 6px; }
.wl-help { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.wl-help > div { display: flex; gap: 10px; padding: 12px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); font-size: 12px; line-height: 1.65; color: var(--txt-2); }
.wl-help .ic { color: var(--brand); margin-top: 2px; }
.wl-help b { display: block; color: var(--txt); font-size: 12.5px; margin-bottom: 2px; }

/* 添加 / 登录钱包弹窗 */
.lg-modal { width: min(540px, 100%); }
.lg-scan { display: flex; gap: 18px; align-items: center; }
.lg-qr { flex: none; padding: 10px; border-radius: var(--r); background: #fff; line-height: 0; }
.lg-qr img { width: 200px; height: 200px; image-rendering: pixelated; }
.lg-side { flex: 1; min-width: 0; }
.lg-side .lg-steps { margin-bottom: 10px; }
.lg-pair { display: flex; flex-direction: column; gap: 2px; margin-bottom: 6px; }
.lg-pair small { color: var(--txt-3); font-size: 12px; }
.lg-pair b { font-size: 26px; font-weight: 600; letter-spacing: 3px; font-variant-numeric: tabular-nums; }
.lg-side .lg-meta { justify-content: flex-start; margin: 0; }
.lg-scan + .lg-btns { margin-top: 14px; }
@media (max-width: 560px) { .lg-scan { flex-direction: column; } }
.lg-who { font-size: 13px; margin-bottom: 10px; }
.lg-who .mute { margin-left: 6px; font-size: 12px; }
.lg-steps { margin: 0 0 14px; padding-left: 20px; font-size: 13px; line-height: 1.9; color: var(--txt-2); }
.lg-steps b { color: var(--txt); font-weight: 500; }
.lg-steps .mute { font-size: 12px; margin-left: 4px; }
.lg-code { text-align: center; font-size: 34px; font-weight: 600; letter-spacing: 4px; font-variant-numeric: tabular-nums; padding: 14px 0; border-radius: var(--r); background: var(--panel-2); border: 1px solid var(--line); }
.lg-meta { display: flex; justify-content: center; margin: 8px 0 12px; font-size: 12px; color: var(--txt-3); }
.lg-meta b { color: var(--txt-2); }
.lg-btns { display: flex; gap: 8px; justify-content: center; }
.lg-status { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: 12.5px; color: var(--agent); }
.lg-wait { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 34px 0; color: var(--txt-2); }
.lg-ok { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--r); background: var(--up-soft); color: var(--up); }
.lg-ok > div { display: flex; flex-direction: column; gap: 4px; color: var(--txt); }
.lg-ok small { color: var(--txt-2); font-size: 12px; }
.lg-ok .t { font-size: 14px; }
.lg-done { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--txt-2); }
.menu-i.off { opacity: .75; }
.menu-i.off input { visibility: hidden; }
.menu-add { color: var(--brand); border-top: 1px solid var(--line); border-radius: 0; margin-top: 4px; padding-top: 9px; }
.menu-add .grow b { color: var(--brand); }
.ps-group { margin-bottom: 8px; }
.ps-group > header { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ps-group > header b { font-weight: 600; }
.ps-tok { display: flex; align-items: center; gap: 8px; }
.ps-tok .av { width: 24px; height: 24px; font-size: 10px; }
/* 盈亏 */
.ps-sum { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.ps-kpi { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; min-width: 0; }
.ps-kpi small { color: var(--txt-3); font-size: 11.5px; }
.ps-kpi b { font-size: 18px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-kpi .sub { font-size: 11.5px; color: var(--txt-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-kpi .up { color: var(--up); } .ps-kpi .dn { color: var(--down); }
.ps-note { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin: 0 0 10px; color: var(--txt-3); font-size: 11.5px; line-height: 1.6; }
.ps-note .ic { flex: none; }
.ps-tbl td { vertical-align: middle; }
.two { display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1.3; }
.two b { font-weight: 500; }
.two small, .pnl small { font-family: var(--num); font-size: 11px; color: var(--txt-3); }
.pnl { display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1.3; }
.pnl b { font-family: var(--num); font-weight: 600; }
.pnl.up b, .pnl.up small, .pnl-inline.up { color: var(--up); }
.pnl.dn b, .pnl.dn small, .pnl-inline.dn { color: var(--down); }
.pnl-inline { font-weight: 600; }
.pnl-flag { display: inline-flex; vertical-align: top; margin-left: 4px; color: var(--brand); cursor: help; }
.ps-closed { margin-top: 10px; }
.ps-closed > header { display: flex; align-items: center; gap: 8px; padding: 9px 10px; cursor: pointer; user-select: none; }
.ps-closed > header:hover { background: var(--panel-2); }
.ps-closed > header b { font-weight: 600; }
.ps-closed .table-wrap { border-top: 1px solid var(--line); }
.chev { display: inline-flex; color: var(--txt-3); transform: rotate(-90deg); transition: transform .15s; }
.chev.open { transform: none; }
/* 单币页:我的盈亏 */
.my-pnl .mp-main { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.my-pnl .mp-main b { font: 600 20px var(--num); letter-spacing: -.01em; }
.my-pnl .mp-main span { font: 600 12.5px var(--num); }
.my-pnl .mp-main .up { color: var(--up); } .my-pnl .mp-main .dn { color: var(--down); }
.my-pnl .kv b.up { color: var(--up); } .my-pnl .kv b.dn { color: var(--down); }
.my-pnl .mp-w { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.my-pnl .mp-w div { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--txt-2); }
.my-pnl .mp-w b { font-family: var(--num); font-weight: 500; }
.my-pnl .mp-w b.up { color: var(--up); } .my-pnl .mp-w b.dn { color: var(--down); }
.my-pnl .mp-note { margin-top: 8px; font-size: 11px; color: var(--txt-3); line-height: 1.5; }
.my-pnl .mp-hist { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); display: grid; gap: 3px; }
.my-pnl .mp-hh { font-size: 11px; color: var(--txt-3); margin-bottom: 2px; }
.my-pnl .mp-hist > div:not(.mp-hh) { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 8px; align-items: baseline; font-size: 11.5px; }
.my-pnl .mp-hist span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.my-pnl .mp-hist b { font-weight: 500; text-align: right; white-space: nowrap; }
.my-pnl .mp-hist .up { color: var(--up); } .my-pnl .mp-hist .dn { color: var(--down); }
.form-grid { display: grid; grid-template-columns: 200px minmax(0, 360px); gap: 10px 14px; align-items: center; padding: 14px; }
.form-grid label { color: var(--txt-2); font-size: 12.5px; }
.form-grid small { grid-column: 2; color: var(--txt-3); font-size: 11.5px; margin-top: -6px; }
.form-grid .tog { white-space: normal; align-items: flex-start; line-height: 1.5; }
.form-grid .tog input { flex: none; margin-top: 2px; }

/* ============ 响应式 ============ */
@media (max-width: 1400px) { .gsearch { width: 260px; } .stat-chip.px { display: none; } }
@media (max-width: 1200px) { .px-grid, .px-grid.nl-off { grid-template-columns: minmax(0, 1fr) 320px; } .px-new { display: none; } .gsearch { width: 200px; } }
@media (max-width: 1050px) {
  .sc-board { grid-template-columns: 1fr; height: auto; }
  .sc-col { height: 70vh; }
  .px-grid { grid-template-columns: 1fr; }
  .px-side { position: static; max-height: none; }
  .px-mets { margin-left: 0; width: 100%; }
  .px-price { border-left: 0; padding-left: 0; }
  .wl-help { grid-template-columns: 1fr; }
  .gsearch, .chain-badge, .stat-chip { display: none; }
  .ps-sum { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) { .ps-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .top { gap: 8px; padding: 0 10px; }
  .nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; justify-content: space-around; align-self: auto; padding: 4px 2px calc(4px + env(safe-area-inset-bottom)); background: var(--panel); border-top: 1px solid var(--line); }
  .nav a { flex-direction: column; gap: 2px; padding: 4px 6px; font-size: 11px; }
  .nav a .ic { display: block; width: 18px; height: 18px; }
  .nav a.on { color: var(--brand); }
  .nav a.on::after { display: none; }
  body { padding-bottom: 58px; }
  .brand span { display: none; }
  .x-link { display: none; } /* 手机顶栏放不下:页脚里有 X 链接 */
  .menu { position: fixed; left: 8px; right: 8px; top: 54px; width: auto; }
  .view { padding: 8px 10px 20px; }
  .tv-wrap, .dex-frame { height: 340px; }
  .ch-bar { overflow-x: auto; scrollbar-width: none; }
  .ch-rng { display: none; }
  .ds-grid { grid-template-columns: repeat(2, 1fr); }
  .l3 .t10 { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid small { grid-column: 1; }
  .table-wrap { overflow-x: auto; }
  .modal.wide .table-wrap { max-height: 50vh; }
}

/* 手机宽度不显示悬浮一键买卖卡(会挡住页面);交易用下面的交易面板 */
@media (max-width: 720px) { .qt { display: none; } }

/* 部署发射台页 */
.dp { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.dp-card { padding: 20px 22px; }
.dp-card h1 { display: flex; align-items: center; gap: 8px; font-size: 22px; margin: 0 0 6px; }
.dp-card h3 { font-size: 15px; margin: 0 0 8px; }
.dp-card p { margin: 0 0 12px; line-height: 1.6; }
.dp-rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.dp-rules > div { display: grid; gap: 2px; padding: 12px; border-radius: var(--r-sm); background: var(--panel-2); border: 1px solid var(--line); }
.dp-rules b { font-family: var(--num); font-size: 18px; color: var(--brand); }
.dp-rules span { font-weight: 600; font-size: 13px; }
.dp-rules small { color: var(--txt-2); font-size: 11.5px; line-height: 1.45; }
.dp-kv { margin-top: 4px; }
.dp-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0 4px; }
.dp-in { display: grid; gap: 6px; margin-top: 12px; font-size: 12.5px; color: var(--txt-2); }
.dp-in input { height: 34px; padding: 0 10px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--panel-2); color: var(--txt); font-family: var(--mono); font-size: 12.5px; }
.dp-chk { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 13px; cursor: pointer; }
.dp-status { margin-top: 12px; font-size: 13px; line-height: 1.7; word-break: break-all; }
.dp-status:empty { display: none; }
.dp-status .spinner { display: inline-block; width: 13px; height: 13px; vertical-align: -2px; margin-right: 4px; }
.dp-status.ok { color: var(--up); }
.dp-status.bad { color: var(--down); }
#view .dp .spinner { display: inline-block; width: 13px; height: 13px; vertical-align: -2px; }
@media (max-width: 720px) { .dp-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dp-card { padding: 16px; } }

/* 发射台首页:回购飞轮(链上数字 + 最近的回购 / 销毁 / 矿机动态) */
.lp-fw { margin-bottom: 8px; }
.lp-fw .sec-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 700; margin-bottom: 8px; }
.lp-fw .sec-h small { font-weight: 400; color: var(--txt-2); }
.lp-fw .sec-h .btn { margin-left: auto; }
.lp-fw-feed { max-height: 260px; overflow: auto; }
.lp-fw-feed .kv b { font-weight: 500; overflow-wrap: anywhere; }

/* 发射台首页:实时动态条 + 三栏英雄区(介绍 / 即将毕业 / 数据) */
.lp-feed { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px; margin-bottom: 8px; overflow: hidden; }
.lp-live { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--up); }
.lp-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 0 rgba(31, 199, 126, .6); animation: lpPulse 1.6s infinite; }
@keyframes lpPulse { 70% { box-shadow: 0 0 0 7px rgba(31, 199, 126, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 199, 126, 0); } }
.lp-items { display: flex; gap: 6px; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); }
.lp-ev { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 4px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); font-size: 12px; color: var(--txt-2); white-space: nowrap; }
.lp-ev:hover { border-color: var(--line-2); color: var(--txt); }
.lp-ev b { font-weight: 600; color: var(--txt); font-family: var(--num); }
.lp-ev b.up { color: var(--up); } .lp-ev b.dn { color: var(--down); }
.lp-ev-av { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 10.5px; font-weight: 700; color: #fff; }
.lp-ev-ag { display: inline-flex; align-items: center; gap: 2px; padding: 0 5px; height: 17px; border-radius: 4px; font-size: 10.5px; color: var(--agent); background: var(--agent-soft); }
.lp-ev .lp-new { color: var(--brand); display: inline-flex; align-items: center; gap: 3px; }
.lp-ev .lp-grad { color: var(--up); display: inline-flex; align-items: center; gap: 3px; }
.lp-div { color: var(--agent) !important; }
.lp-ev.in { animation: lpIn .7s cubic-bezier(.2, .8, .2, 1); }
.lp-ev.in.trade.b { animation: lpIn .7s cubic-bezier(.2, .8, .2, 1), lpFlashUp 1.4s; }
.lp-ev.in.trade.s { animation: lpIn .7s cubic-bezier(.2, .8, .2, 1), lpFlashDn 1.4s; }
.lp-ev.in.create, .lp-ev.in.grad { animation: lpIn .7s cubic-bezier(.2, .8, .2, 1), lpShake .5s .1s 2; }
@keyframes lpIn { from { transform: translateX(-30px); opacity: 0; } }
@keyframes lpFlashUp { 0% { background: var(--up-soft); border-color: var(--up); } }
@keyframes lpFlashDn { 0% { background: var(--down-soft); border-color: var(--down); } }
@keyframes lpShake { 25% { transform: translateX(-3px) rotate(-1deg); } 75% { transform: translateX(3px) rotate(1deg); } }

.hero.lp-hero { grid-template-columns: minmax(0, 1.25fr) minmax(280px, .85fr) minmax(0, 1fr); gap: 18px; padding: 22px 22px; overflow: hidden; }
.hero.lp-hero::before { content: ""; position: absolute; right: -120px; top: -160px; width: 520px; height: 380px; border-radius: 50%; background: radial-gradient(closest-side, var(--brand-soft), transparent); pointer-events: none; }
.lp-h1 { display: flex; align-items: center; gap: 12px; font-size: 32px !important; font-weight: 700 !important; letter-spacing: .01em; margin-bottom: 8px !important; }
.lp-h1 .logo-mark { flex: 0 0 auto; filter: drop-shadow(0 6px 18px rgba(245, 180, 0, .25)); }
.lp-agent { color: var(--agent); }
.lp-spot { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--r); background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 10%, var(--panel-2)), var(--panel-2) 60%); border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--line)); color: var(--txt); transition: transform .15s, border-color .15s; }
.lp-spot:hover { transform: translateY(-2px); border-color: var(--brand); }
.lp-spot-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lp-spot-h small { color: var(--txt-2); font-size: 11.5px; }
.lp-hot { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: var(--down-soft); color: var(--down); font-size: 12px; font-weight: 600; }
.lp-spot-m { display: flex; gap: 12px; align-items: center; }
.lp-spot-av { position: relative; flex: 0 0 auto; width: 64px; height: 64px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; font-size: 26px; font-weight: 700; color: #fff; box-shadow: 0 0 0 2px var(--brand), 0 8px 24px rgba(245, 180, 0, .25); }
.lp-spot-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lp-spot-id { display: grid; gap: 1px; min-width: 0; }
.lp-spot-id b { font-size: 19px; }
.lp-spot-id span { color: var(--txt-2); font-size: 12.5px; }
.lp-spot-id small { color: var(--txt-3); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-spot-n { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.lp-spot-n div { display: grid; gap: 1px; }
.lp-spot-n b { font: 600 15px var(--num); }
.lp-spot-n small { color: var(--txt-2); font-size: 11px; }
.lp-spot-bar { height: 8px; border-radius: 99px; background: var(--panel-3); overflow: hidden; }
.lp-spot-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--brand-2)); box-shadow: 0 0 12px rgba(245, 180, 0, .5); transition: width .6s; }
.lp-spot-f { display: flex; justify-content: space-between; font: 500 12px var(--num); color: var(--txt-2); margin-top: -4px; }
.lp-spot-f span:first-child { color: var(--brand); font-weight: 600; }
@media (max-width: 1280px) { .hero.lp-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .hero.lp-hero .tiles { grid-column: 1 / -1; } }
@media (max-width: 760px) { .hero.lp-hero { grid-template-columns: minmax(0, 1fr); } .lp-h1 { font-size: 24px !important; } }
.dp-dex { margin-top: 10px; font-size: 12.5px; }
.dp-dex summary { cursor: pointer; color: var(--txt-2); padding: 4px 0; }
.dp-dex p { margin: 6px 0 4px; }
.dp-dex .kv b { font-family: inherit; line-height: 1.7; }

/* 多用户部署:登录界面、顶栏账号 */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(ellipse at 50% 0%, var(--brand-soft), transparent 60%), var(--bg); }
.auth-card { width: min(440px, 100%); padding: 28px 26px; display: grid; gap: 14px; text-align: center; }
.auth-logo { display: grid; place-items: center; }
.auth-logo .logo-mark { filter: drop-shadow(0 10px 30px rgba(245, 180, 0, .3)); }
.auth-card h1 { font-size: 22px; margin: 0; }
.auth-card p { margin: 0; line-height: 1.65; font-size: 13.5px; }
.auth-st { min-height: 20px; font-size: 13px; color: var(--txt-2); }
.auth-st .spinner { display: inline-block; width: 13px; height: 13px; vertical-align: -2px; margin-right: 4px; }
.auth-st.ok { color: var(--up); } .auth-st.bad { color: var(--down); }
.auth-x { justify-self: center; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--txt-2); }
.auth-x:hover { color: var(--txt); }
.auth-tips { margin: 4px 0 0; padding: 12px 14px 12px 28px; text-align: left; font-size: 12px; line-height: 1.7; color: var(--txt-2); background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r-sm); }
.acct { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--panel-2); color: var(--txt-2); font-size: 12px; cursor: pointer; }
.acct:hover { color: var(--txt); border-color: var(--txt-3); }
.acct b { color: var(--brand); font-weight: 600; }
