/* ================================================================
   TradFi — Apple 极简设计系统
   浅色 · 留白 · 精致排版 · 克制配色
   ================================================================ */
:root {
  --bg: #0B0B0D;
  --bg-secondary: #15130F;
  --surface: #101014;
  --surface-2: #1C1916;
  --text: #F5F2EA;
  --text-secondary: #B8B2A6;
  --text-tertiary: #6E675C;
  --border: rgba(212, 175, 55, 0.14);
  --border-hover: rgba(212, 175, 55, 0.3);
  --accent: #D4AF37;
  --accent-hover: #E8C55A;
  --accent-soft: rgba(212, 175, 55, 0.14);
  --up: #14C784;
  --down: #F6465D;
  --green: #14C784;
  --red: #F6465D;
  --yellow: #D4AF37;
  --up-soft: rgba(20, 199, 132, 0.1);
  --down-soft: rgba(246, 70, 93, 0.1);
  --shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 8px 40px rgba(0, 0, 0, 0.6);
  --radius: 14px;
  --radius-sm: 10px;
  --pill: 980px;
  --nav-h: 60px;
  --tab-h: 60px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea { -webkit-user-select: text; user-select: text; }
html, body { -webkit-text-size-adjust: 100%; touch-action: manipulation; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--font);
  font-size: 15px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 84px);
  /* 固定左右宽度, 禁止横向滑动 */
  overflow-x: hidden; max-width: 100vw;
}
html { overflow-x: hidden; }
body.no-tabbar, body.admin-page { padding-bottom: 0; }
/* 后台保持浅色 */
body.admin-page {
  --bg: #f5f6f8;
  --bg-secondary: #eef0f3;
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --text: #1d1d1f;
  --text-secondary: #666b73;
  --text-tertiary: #9aa0a8;
  --border: rgba(0,0,0,.08);
  background: #f5f6f8; color: #1d1d1f;
}
a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; }
.num, input[type="number"] { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,.12); border-radius: 3px; }
::-webkit-scrollbar-track { background: transparent; }

/* ===== 顶栏 ===== */
.topbar {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 24px;
  background: rgba(11, 14, 17, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.logo { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; color: var(--text); cursor: pointer; }
.logo b { color: var(--accent); font-weight: 800; text-shadow: 0 0 18px rgba(212,175,55,.35); }
.topbar-left { display: flex; align-items: center; gap: 10px; }
.page-title { display: flex; align-items: center; gap: 8px; }
.page-title button {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); background: #1A2026;
  color: var(--text); font-size: 18px; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.page-title b { font-size: 16px; font-weight: 700; white-space: nowrap; }
.topbar .links { display: none; gap: 2px; margin-left: 28px; }
.topbar .links a { color: var(--text-secondary); padding: 7px 14px; border-radius: var(--pill); font-size: 14px; font-weight: 500; cursor: pointer; transition: color .2s var(--ease), background .2s var(--ease); }
.topbar .links a:hover { color: var(--text); background: rgba(0,0,0,.04); }
.topbar .links a.active { color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.topbar .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; cursor: pointer; letter-spacing: .02em; transition: transform .2s var(--ease); }
.avatar:active { transform: scale(.94); }

/* ===== 按钮 (胶囊) ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--accent); color: #fff; border: none;
  padding: 11px 24px; border-radius: var(--pill); font-size: 14px; font-weight: 600;
  font-family: var(--font); cursor: pointer;
  transition: transform .15s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease), opacity .2s;
  letter-spacing: .01em;
}
.btn:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,113,227,.28); }
.btn:active { transform: scale(.96); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn.ghost:hover { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn.green { background: var(--up); color: #fff !important; }
.btn.green:hover { background: #2db84f; box-shadow: 0 4px 16px rgba(52,199,89,.3); }
.btn.red { background: var(--down); color: #fff !important; }
.btn.red:hover { background: #e8332a; box-shadow: 0 4px 16px rgba(255,59,48,.3); }
.btn.sm { padding: 7px 16px; font-size: 13px; }
.btn.block { width: 100%; }
.btn.buy, .btn.sell { height: 46px; font-size: 15px; border-radius: var(--pill); }
.btn.buy { background: var(--up); box-shadow: none; }
.btn.buy:hover { background: #2db84f; box-shadow: 0 4px 16px rgba(52,199,89,.28); }
.btn.sell { background: var(--down); box-shadow: none; }
.btn.sell:hover { background: #e8332a; box-shadow: 0 4px 16px rgba(255,59,48,.28); }

/* ===== 卡片 / 面板 ===== */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); }
.section-title { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; }
.container { max-width: 1080px; margin: 0 auto; padding: 28px 24px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.flex { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.mb8 { margin-bottom: 8px; } .mb16 { margin-bottom: 16px; } .mb24 { margin-bottom: 24px; }
.muted { color: var(--text-secondary); }
.green:not(button) { color: var(--up); } .red:not(button) { color: var(--down); } .blue:not(button) { color: var(--accent); } .yellow:not(button) { color: #d7a300; }
.up:not(button) { color: var(--up); } .down:not(button) { color: var(--down); }

/* ===== 底部 Tab ===== */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  display: none; height: calc(var(--tab-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(16, 20, 24, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--border);
}
.tabbar.show { display: flex; }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--text-tertiary); font-size: 10px; cursor: pointer; transition: color .2s; position: relative; }
.tabbar a svg { width: 21px; height: 21px; fill: none; stroke: currentColor; }
.tabbar a.active { color: var(--accent); font-weight: 600; }
.tabbar a.active svg { stroke: var(--accent); }

/* ===== 行情页 ===== */
.market-head { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 24px 10px; position: sticky; top: 0; z-index: 50; background: var(--bg); }
.search-box { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--pill); padding: 10px 16px; box-shadow: var(--shadow); }
.search-box svg { width: 16px; height: 16px; fill: var(--text-tertiary); }
.search-box input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-size: 14px; font-family: var(--font); }
.scan-btn { display: flex; align-items: center; gap: 5px; background: linear-gradient(135deg, rgba(212,175,55,.16), rgba(212,175,55,.05)); border: 1px solid rgba(212,175,55,.35); color: var(--accent); border-radius: var(--pill); padding: 0 14px; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.scan-btn svg { width: 15px; height: 15px; }
.seg { display: flex; background: var(--bg-secondary); border-radius: var(--pill); padding: 3px; gap: 2px; }
.seg button { border: none; background: none; color: var(--text-secondary); padding: 8px 18px; border-radius: var(--pill); font-size: 13px; font-weight: 500; cursor: pointer; font-family: var(--font); transition: all .2s var(--ease); }
.seg button.active { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 1px 6px rgba(0,0,0,.08); }
.pair-row { display: flex; align-items: center; gap: 12px; padding: 14px 24px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background .15s; }
.pair-row:active { background: var(--bg-secondary); }
.pair-row .coin-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-secondary); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 11px; color: var(--text); flex-shrink: 0; letter-spacing: -.02em; }
.coin-img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.pair-row .coin { font-weight: 600; font-size: 15px; }
.pair-row .sub { font-size: 12px; color: var(--text-tertiary); }
.pair-row .mid { flex: 1; text-align: right; }
.pair-row .price { font-weight: 600; font-size: 15px; font-family: var(--mono); }
.pair-row .chg { font-size: 12.5px; font-weight: 600; font-family: var(--mono); }
/* 行情页高级列表 */

/* 行情页 GMT 终端风格: 深色卡片网格 */
.mk-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 12px 12px 24px; max-width: 1080px; margin: 0 auto; }
.mk-card { background: #1A2026; border: 1px solid rgba(255,255,255,.06); border-radius: 12px; padding: 14px 14px 12px; cursor: pointer; transition: background .15s, border-color .15s; position: relative; overflow: hidden; }
.mk-card:active { background: #222A33; border-color: rgba(255,255,255,.14); }
.mk-top { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.mk-ic { width: 34px; height: 34px; border-radius: 50%; background: var(--bg-secondary); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; flex-shrink: 0; }
.mk-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: baseline; gap: 4px; }
.mk-quote { font-size: 10.5px; color: var(--text-tertiary); font-weight: 400; }
.mk-price { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; margin-bottom: 4px; white-space: nowrap; }
.mk-mid { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.mk-left { min-width: 0; }
.mk-spark { flex-shrink: 0; margin-bottom: 2px; opacity: .9; }
.mk-mid2 { display: flex; flex-direction: column; gap: 3px; margin-top: 8px; padding-top: 6px; border-top: 1px dashed rgba(212,175,55,.12); font-size: 10.5px; }
.mk-mid2 .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mk-mid2 span { color: var(--text-tertiary); flex-shrink: 0; }
.mk-mid2 .num { color: var(--text-secondary); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.mk-chg { display: inline-block; font-size: 11.5px; font-weight: 600; margin-bottom: 6px; font-variant-numeric: tabular-nums; padding: 2px 8px; border-radius: 6px; background: var(--up-soft); }
.mk-chg.down { background: var(--down-soft); }
.mk-vol { font-size: 10.5px; color: var(--text-tertiary); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 899px) {

}

/* ===== 交易页 ===== */
.trade-head { display: flex; align-items: center; gap: 14px; padding: 16px 24px 0; }
.trade-head .sym { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.trade-head .tag { font-size: 11px; color: var(--accent); background: var(--accent-soft); border-radius: var(--pill); padding: 2px 10px; font-weight: 600; }
.trade-head .tprice { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; font-family: var(--mono); }
.th-chg { font-size: 14px; font-weight: 700; font-family: var(--mono); margin-top: 1px; }
.th-chg.up { color: var(--up); }
.th-chg.down { color: var(--down); }
.trade-head .tinfo { font-size: 11px; color: var(--text-secondary); text-align: left; line-height: 1.9; margin-left: auto; }
.trade-head .tinfo b { color: var(--text); font-family: var(--mono); font-weight: 600; }
.trade-head .th-volrow { border-top: 1px solid var(--border); margin-top: 2px; padding-top: 2px; }
.trade-head .th-volrow2 { margin-top: 0; }
.tf-switch { display: inline-flex; background: var(--bg-secondary); border-radius: var(--pill); padding: 4px; margin: 14px 24px 0; gap: 4px; border: 1px solid var(--border); flex-wrap: nowrap; }
.fund-row { display: flex; align-items: center; gap: 8px; margin: 10px 24px 0; font-size: 12px; }
.tf-switch button { border: none; background: none; color: var(--text-secondary); padding: 9px 18px; border-radius: var(--pill); font-size: 13.5px; font-weight: 600; cursor: pointer; font-family: var(--font); transition: all .2s var(--ease); white-space: nowrap; }
.tf-switch button.active { background: var(--accent); color: #fff; box-shadow: 0 2px 10px rgba(0,113,227,.3); }
.chart-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin: 14px 24px 0; overflow: hidden; box-shadow: var(--shadow); }
.chart-toolbar { display: flex; align-items: center; gap: 2px; padding: 10px 14px 0; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
.chart-toolbar::-webkit-scrollbar { display: none; }
.chart-toolbar button { border: none; background: none; color: var(--text-tertiary); font-size: 12.5px; padding: 6px 12px; border-radius: var(--pill); cursor: pointer; font-family: var(--font); transition: all .2s; flex-shrink: 0; white-space: nowrap; }
.chart-toolbar button.active { color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.chart-box { height: 400px; width: 100%; background: linear-gradient(180deg, #0B0E11 0%, #101418 55%, #0B0E11 100%); }
#chart canvas { touch-action: none; }
.chart-wrap { background: var(--surface); }
/* 交易页: 价格 + K线倒计时模块 */
.chart-live {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px 2px; flex-wrap: wrap;
}
.cl-price-row { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.cl-price {
  font-size: 22px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
  font-family: var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cl-chg { font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cl-chg.up { color: var(--up); } .cl-chg.down { color: var(--down); }
.cl-count-row { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.cl-count-lbl { font-size: 11px; color: var(--text-tertiary); font-weight: 600; letter-spacing: .04em; }
.cl-count {
  font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--accent);
  background: var(--accent-soft); padding: 3px 10px; border-radius: var(--pill);
  min-width: 56px; text-align: center; font-family: var(--mono);
}
.chart-legend { position: absolute; top: 42px; left: 10px; right: 10px; z-index: 5; pointer-events: none; font-size: 10.5px; overflow: hidden; }
.lg-row { display: flex; flex-wrap: nowrap; align-items: center; gap: 0 10px; background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: 10px; padding: 4px 10px; backdrop-filter: blur(10px); box-shadow: var(--shadow); overflow: hidden; white-space: nowrap; width: max-content; max-width: 100%; }
.lg-time { color: var(--text); font-weight: 700; margin-right: 2px; font-family: var(--mono); flex-shrink: 0; }
.lg-item { color: var(--text-tertiary); white-space: nowrap; flex-shrink: 0; font-size: 10px; }
.lg-item b { color: var(--text); font-weight: 600; font-family: var(--mono); margin-left: 2px; font-size: 10px; }
.chart-pct { position: absolute; right: 10px; top: 44%; z-index: 6; display: none; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: var(--pill); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-hover); font-family: var(--mono); pointer-events: none; }
.chart-pct::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chart-pct.up { color: var(--up); } .chart-pct.down { color: var(--down); }
/* 指标栏 (K线图下方) */
.ind-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ind-bar .ind-lbl { font-size: 11px; color: var(--text-tertiary); margin-right: 4px; font-weight: 600; letter-spacing: .04em; }
.ind-bar button { border: 1px solid var(--border); background: var(--bg); color: var(--text-secondary); font-size: 12px; padding: 5px 14px; border-radius: var(--pill); cursor: pointer; font-family: var(--font); transition: all .2s; }
.ind-bar button.active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); font-weight: 600; }

.trade-mid { display: grid; grid-template-columns: minmax(0, 1fr) 430px; padding: 14px 24px 0; gap: 16px; }
/* 下单面板 */
.order-panel { padding: 24px; }
.op-side { display: flex; gap: 12px; margin-bottom: 20px; }
.op-side button { flex: 1; height: 44px; border: 1px solid var(--border); border-radius: var(--pill); font-size: 14px; font-weight: 600; cursor: pointer; font-family: var(--font); transition: all .2s var(--ease); }
.op-side button.buy { background: var(--up-soft); color: var(--up); border-color: transparent; }
.op-side button.sell { background: var(--down-soft); color: var(--down); border-color: transparent; }
.op-side button.buy.active { background: var(--up); color: #fff; box-shadow: 0 2px 10px rgba(52,199,89,.3); }
.op-side button.sell.active { background: var(--down); color: #fff; box-shadow: 0 2px 10px rgba(255,59,48,.3); }
.op-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.op-row.lev-row { flex-wrap: wrap; }
.op-row.lev-row .lev-slider { flex-basis: 100%; margin-top: 4px; }
.op-label { font-size: 12px; color: var(--text-secondary); min-width: 64px; font-weight: 500; }
.op-label b { color: var(--text); }
.op-field { margin-bottom: 16px; }
.op-field .op-label { margin-bottom: 6px; display: flex; align-items: center; }
.op-lev { color: var(--accent); font-size: 14px; }
.mm-seg, .ot-seg { display: flex; background: var(--bg-secondary); border-radius: var(--pill); padding: 3px; flex: 1; gap: 2px; min-width: 0; overflow: hidden; }
.ot-seg button { min-width: 0; }
.mm-seg button, .ot-seg button { flex: 1; border: none; background: none; color: var(--text-secondary); padding: 8px 4px; border-radius: var(--pill); font-size: 12px; font-weight: 500; cursor: pointer; font-family: var(--font); transition: all .2s; white-space: nowrap; }
@media (max-width: 899px) { .mm-seg button, .ot-seg button { font-size: 10.5px; padding: 7px 2px; } }
.mm-seg button.active, .ot-seg button.active { background: var(--accent); color: #fff !important; font-weight: 700; box-shadow: 0 2px 10px rgba(212,175,55,.35); }
body.light .mm-seg button.active, body.light .ot-seg button.active { color: #fff !important; }
.input-wrap { display: flex; align-items: center; background: var(--bg-secondary); border: 1px solid transparent; border-radius: var(--radius-sm); padding: 0 14px; transition: border-color .2s, box-shadow .2s; }
.input-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: var(--surface); }
.input-wrap input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-size: 15px; padding: 12px 0; min-width: 0; font-family: var(--mono); }
.input-wrap .unit { color: var(--text-tertiary); font-size: 13px; }
.lev-quick { display: flex; gap: 6px; flex: 1; }
.lev-quick button { flex: 1; border: 1px solid var(--border); background: var(--surface); color: var(--text-secondary); border-radius: var(--pill); padding: 7px 0; font-size: 12px; cursor: pointer; font-family: var(--mono); transition: all .2s; }
.lev-quick button.active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); font-weight: 700; }
.lev-slider { flex: 1; accent-color: var(--accent); height: 6px; margin: 0; min-width: 0; }
.op-row .op-lev { min-width: 34px; text-align: right; }
.qty-slider { width: 100%; margin: 12px 0 14px; accent-color: var(--accent); height: 5px; }
.qty-quick { display: flex; gap: 6px; }
.qty-quick button { flex: 1; border: 1px solid var(--border); background: var(--surface); color: var(--text-secondary); border-radius: var(--pill); padding: 7px 0; font-size: 12px; cursor: pointer; font-family: var(--font); transition: all .2s; }
.qty-quick button:active { background: var(--accent-soft); color: var(--accent); }
.best-price { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; color: var(--up); background: var(--up-soft); border-radius: var(--pill); padding: 7px 12px; }
.best-btn { border: none; background: var(--accent-soft); color: var(--accent); font-size: 11px; padding: 3px 10px; border-radius: var(--pill); cursor: pointer; margin-left: 4px; font-weight: 600; }
.op-tpsl { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 14px; background: var(--bg-secondary); }
.switch { position: relative; width: 44px; height: 26px; display: inline-block; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; inset: 0; background: var(--text-tertiary); border-radius: var(--pill); cursor: pointer; transition: .25s var(--ease); }
.switch .slider::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: .25s var(--ease); box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.switch input:checked + .slider { background: var(--up); }
.switch input:checked + .slider::before { transform: translateX(18px); }
.op-avail { background: var(--bg-secondary); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 14px; }
.info-row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-secondary); padding: 4px 0; }
.info-row b { color: var(--text); font-family: var(--mono); font-weight: 600; }
.op-submit { width: 100%; height: 48px; font-size: 15px; border-radius: var(--pill); color: #ffffff !important; }
.op-submit.green { background: var(--up); }
.op-submit.red { background: var(--down); }

/* 盘口 */
.market-panel { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }

.mp-price { font-size: 22px; font-weight: 700; font-family: var(--mono); letter-spacing: -0.02em; }
.mp-chg { font-size: 12.5px; font-family: var(--mono); }
.ob-th { display: flex; font-size: 11px; color: var(--text-tertiary); padding: 6px 18px; }
.ob-th span { flex: 1; text-align: right; }
.ob-th span:first-child { text-align: left; }
.ob-row { position: relative; display: flex; font-size: 12px; padding: 2.5px 18px; overflow: hidden; font-family: var(--mono); line-height: 1.5; }
.ob-row .ob-bar { position: absolute; top: 0; bottom: 0; opacity: .07; }
.ask-row .ob-bar { background: var(--down); right: 0; }
.bid-row .ob-bar { background: var(--up); left: 0; }
.ob-row span { flex: 1; text-align: right; position: relative; z-index: 1; }
.ob-row .ob-p { text-align: left; font-weight: 600; }
.ask-row .ob-p { color: var(--down); }
.bid-row .ob-p { color: var(--up); }
.ob-c { display: none !important; }
.mp-last { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 18px; background: var(--surface); }
.mp-last-price { font-size: 16px; }
.mp-last-chg { font-size: 10.5px; }
.mp-sub { border-top: 1px solid var(--border); }
.mp-sub-hd { font-size: 11px; color: var(--text-tertiary); padding: 10px 18px 4px; font-weight: 600; letter-spacing: .04em; }
.tr-row { display: flex; gap: 8px; padding: 3px 14px; font-size: 11.5px; justify-content: flex-start; align-items: center; font-family: var(--mono); white-space: nowrap; }
.tr-row .tr-t { margin-left: auto; color: var(--text-tertiary); flex-shrink: 0; }
.tr-row .num { white-space: nowrap; }
#trList { max-height: 148px; overflow-y: auto; -webkit-overflow-scrolling: touch; }  /* 默认显示约5条, 可滑动查看更多 */

/* 订单表 (全宽) */
.orders-panel { margin-top: 14px; }
.right-col { min-width: 0; display: flex; flex-direction: column; }
.order-scroll { max-height: 320px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.order-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.order-tabs button { border: none; background: none; color: var(--text-tertiary); font-size: 13px; font-weight: 500; padding: 10px 16px; cursor: pointer; font-family: var(--font); position: relative; transition: color .2s; }
.order-tabs button.active { color: var(--text); font-weight: 600; }
.order-tabs button.active::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: -1px; height: 2px; background: var(--accent); border-radius: 1px; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; color: var(--text-tertiary); font-weight: 500; font-size: 11.5px; padding: 8px 12px; border-bottom: 1px solid var(--border); letter-spacing: .03em; white-space: nowrap; }
td { padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 13px; font-family: var(--font); white-space: nowrap; }
td.num { font-family: var(--mono); }
tr:active td { background: var(--bg-secondary); }
.table-wrap { overflow-x: auto; }

/* 持仓卡 */
.pos-card { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; margin-bottom: 12px; background: var(--surface); }
.pos-card .hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.pos-card .tag { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: var(--pill); }
.pos-card .tag.long { background: var(--up-soft); color: var(--up); }
.pos-card .tag.short { background: var(--down-soft); color: var(--down); }
.pos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; font-size: 12.5px; }
.pos-grid span { color: var(--text-tertiary); }
.pos-grid b { font-family: var(--mono); font-weight: 600; }
.pos-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }

/* ===== 认证页 ===== */
.auth-card { max-width: 420px; margin: 80px auto; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 40px; box-shadow: var(--shadow-hover); }
.auth-card .logo-lg { font-size: 28px; font-weight: 800; letter-spacing: -0.04em; margin-bottom: 6px; }
.auth-card .logo-lg b { color: var(--accent); }
.auth-card h2 { margin-bottom: 24px; font-size: 22px; letter-spacing: -0.02em; font-weight: 700; }
.auth-card input { width: 100%; background: var(--bg-secondary); border: 1px solid transparent; color: var(--text); padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 14px; font-size: 15px; outline: none; font-family: var(--font); transition: all .2s; }
.auth-card input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: var(--surface); }
.auth-card .btn { width: 100%; margin-top: 6px; height: 48px; }
.auth-card .foot { text-align: center; margin-top: 20px; font-size: 13px; color: var(--text-secondary); }

/* ===== 弹窗 / 抽屉 ===== */
.mask { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 300; display: flex; align-items: flex-end; justify-content: center; backdrop-filter: blur(2px); }
.mask.center { align-items: center; }
.sheet { width: 100%; max-width: 520px; background: var(--surface); border-radius: 24px 24px 0 0; padding: 20px 24px calc(20px + env(safe-area-inset-bottom)); max-height: 86vh; overflow-y: auto; animation: sheetUp .3s var(--ease); border-top: 1px solid var(--border); box-shadow: 0 -8px 40px rgba(0,0,0,.08); }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--border-hover); margin: 0 auto 18px; }
.sheet .sheet-input { width: 100%; background: var(--bg-secondary); border: 1px solid transparent; color: var(--text); padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 6px; font-size: 15px; outline: none; font-family: var(--font); -webkit-user-select: text; user-select: text; transition: all .2s; }
.sheet .sheet-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: var(--surface); }
.sheet .op-label { font-size: 12px; color: var(--text-secondary); margin-bottom: 6px; }
.modal { width: 92%; max-width: 420px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 26px; max-height: 84vh; overflow-y: auto; animation: modalPop .25s var(--ease); box-shadow: var(--shadow-hover); }
.modal-mask {
  position: fixed; inset: 0; z-index: 999; background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 16px;
}
.modal-mask .modal { width: 100%; }
.modal h3 { margin-bottom: 16px; font-size: 17px; letter-spacing: -0.02em; }
.modal input, .modal select, .modal textarea { width: 100%; background: var(--bg-secondary); border: 1px solid transparent; color: var(--text); padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 12px; font-size: 14px; outline: none; font-family: var(--font); transition: all .2s; }
.modal input:focus, .modal select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: var(--surface); }
.actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
@keyframes sheetUp { from { transform: translateY(60px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes modalPop { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }

/* ===== 徽章 ===== */
.badge { display: inline-block; padding: 3px 10px; border-radius: var(--pill); font-size: 11px; font-weight: 600; }
.badge.green { background: var(--up-soft); color: var(--up); }
.badge.red { background: var(--down-soft); color: var(--down); }
.badge.yellow { background: rgba(215,163,0,.12); color: #b8860b; }
.badge.gray { background: var(--bg-secondary); color: var(--text-secondary); }
.badge.blue { background: var(--accent-soft); color: var(--accent); }

/* ===== Toast ===== */
.toast-wrap { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 999; display: flex; flex-direction: column; gap: 8px; align-items: center; width: 90%; max-width: 420px; pointer-events: none; }
.toast { background: rgba(255,255,255,.14); color: #fff; padding: 12px 20px; border-radius: var(--pill); font-size: 13px; box-shadow: var(--shadow-hover); animation: toastDown .3s var(--ease); text-align: center; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,.1); }
.toast.success { background: rgba(52,199,89,.95); }
.toast.error { background: rgba(255,59,48,.95); }
@keyframes toastDown { from { transform: translateY(-16px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ===== 首页 ===== */
.hero { text-align: center; padding: 64px 24px 20px; max-width: 980px; margin: 0 auto; }
.hero-badge { display: inline-block; color: var(--accent); font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; background: var(--accent-soft); border-radius: var(--pill); padding: 6px 16px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(34px, 5.5vw, 52px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.08; margin-bottom: 18px; }
.hero h1 b { color: var(--accent); }
.hero p { font-size: 17px; color: var(--text-secondary); max-width: 560px; margin: 0 auto 28px; line-height: 1.7; }
.hero .btns { display: flex; gap: 12px; justify-content: center; }
.hero-product { max-width: 1080px; margin: 28px auto 0; padding: 0 24px; }
.product-frame { background: linear-gradient(180deg, #151A20, #0B0E11); border-radius: 28px; padding: 40px 32px; min-height: 240px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); }
.product-frame .pairs-demo { width: 100%; max-width: 640px; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-hover); overflow: hidden; }
.product-specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; }
.product-specs .st { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; text-align: center; box-shadow: var(--shadow); }
.product-specs .st .v { font-size: 22px; font-weight: 700; font-family: var(--mono); letter-spacing: -0.02em; }
.product-specs .st .l { font-size: 12px; color: var(--text-tertiary); margin-top: 4px; }
.home-sec { max-width: 1080px; margin: 0 auto; padding: 40px 24px 0; }
.home-sec .sec-hd { text-align: center; margin-bottom: 28px; }
.home-sec .sec-hd h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 8px; }
.home-sec .sec-hd p { color: var(--text-secondary); font-size: 15px; }
.feature-card { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.feature-card .fc-ic { width: 48px; height: 48px; border-radius: 14px; background: var(--bg-secondary); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; color: var(--accent); margin-bottom: 14px; }
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.02em; }
.feature-card p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.6; }

/* ===== 资产页 ===== */
.eq-ic { width: 42px; height: 42px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; flex-shrink: 0; }
.eq-card .arr { margin-left: auto; color: var(--text-tertiary); font-size: 18px; }

/* ===== 我的页 ===== */
.mine-head { display: flex; align-items: center; gap: 16px; padding: 28px 24px; max-width: 1080px; margin: 0 auto; }
.mine-head .avatar-lg { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; position: relative; }
.avatar-edit {
  position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.55); color: #fff;
  font-size: 10px; text-align: center; padding: 3px 0 4px; border-radius: 0 0 50% 50%;
}
/* 资产走势时间区间: 曲线下方居中, 等距一排 */
.net-ranges { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; padding: 14px 2px 2px; }
.net-ranges button {
  border: 1px solid rgba(212,175,55,.18); background: rgba(212,175,55,.06); color: var(--text-secondary);
  font-size: 12px; padding: 7px 0; border-radius: 12px; cursor: pointer; transition: all .2s; white-space: nowrap; text-align: center;
}
.net-ranges button.active { background: var(--accent); border-color: var(--accent); color: #0B0B0D; font-weight: 700; }
.mine-head .name { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.mine-head .uid { font-size: 13px; color: var(--text-tertiary); }
.mine-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 0 24px; max-width: 1080px; margin: 0 auto; }
.mine-grid .it { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 10px; text-align: center; cursor: pointer; box-shadow: var(--shadow); transition: transform .25s var(--ease); }
.mine-grid .it:active { transform: scale(.97); }
.mine-grid .it .v { font-size: 17px; font-weight: 700; font-family: var(--mono); }
.mine-grid .it .l { font-size: 11.5px; color: var(--text-tertiary); margin-top: 4px; }
.mine-list { max-width: 1080px; margin: 0 auto; padding: 18px 0 0; }
.mine-list .card { margin-bottom: 16px; overflow: hidden; }
.mine-list .li { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background .15s; }
.mine-list .li:last-child { border-bottom: none; }
.mine-list .li:hover { background: var(--bg-secondary); }
.mine-list .li .lbl { flex: 1; font-size: 14.5px; font-weight: 500; }
.mine-list .li .arr { color: var(--text-tertiary); font-size: 17px; }

/* ===== 管理后台 (重构: 黑金玻璃卡片风) ===== */
.admin-layout { display: flex; min-height: 100vh; }
.admin-side {
  width: 232px; background: linear-gradient(180deg, #101418 0%, #0B0E11 100%);
  border-right: 1px solid rgba(212,175,55,.14); padding: 20px 0 24px; flex-shrink: 0;
  position: sticky; top: 0; height: 100vh; overflow-y: auto; scrollbar-width: none;
}
.admin-side::-webkit-scrollbar { display: none; }
.admin-side .logo {
  padding: 0 24px 22px; font-size: 18px; font-weight: 800; letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--accent), #E8C55A); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.admin-side .logo b { color: var(--accent); -webkit-text-fill-color: var(--accent); }
.admin-side .side-group {
  padding: 18px 24px 8px; font-size: 10.5px; font-weight: 800; color: var(--text-tertiary);
  letter-spacing: .14em; text-transform: uppercase;
}
.admin-side .side-group:first-child { padding-top: 4px; }
.admin-side a {
  display: block; margin: 2px 10px; padding: 10px 16px; color: var(--text-secondary);
  cursor: pointer; font-size: 13.5px; font-weight: 500; transition: all .18s var(--ease);
  border-radius: 12px; border: 1px solid transparent;
}
.admin-side a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.admin-side a.active {
  color: var(--accent); background: rgba(212,175,55,.1); font-weight: 700;
  border-color: rgba(212,175,55,.3); box-shadow: 0 4px 14px rgba(212,175,55,.08);
  border-radius: 12px;
}
.admin-main { flex: 1; padding: 28px 32px; overflow-x: auto; min-width: 0; }
.admin-main h2 {
  margin-bottom: 20px; font-size: 21px; letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 10px;
}
.admin-main h2::before {
  content: ''; width: 4px; height: 20px; border-radius: 4px;
  background: linear-gradient(180deg, var(--accent), rgba(212,175,55,.3));
  display: inline-block;
}
.admin-main h3 { color: var(--text); }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat {
  background: linear-gradient(160deg, rgba(255,255,255,.035), rgba(255,255,255,.008));
  border: 1px solid rgba(212,175,55,.16); border-radius: 16px; padding: 18px 20px;
  box-shadow: 0 6px 22px rgba(0,0,0,.22); position: relative; overflow: hidden;
}
.stat::after { content: ''; position: absolute; right: -28px; top: -28px; width: 90px; height: 90px; background: radial-gradient(circle, rgba(212,175,55,.12), transparent 65%); }
.stat .num { font-size: 23px; font-weight: 800; margin-top: 6px; font-family: var(--mono); letter-spacing: -0.02em; }
.stat .lbl { color: var(--text-secondary); font-size: 12px; font-weight: 500; }
.admin-main .panel {
  background: linear-gradient(160deg, rgba(255,255,255,.03), rgba(255,255,255,.008));
  border: 1px solid rgba(212,175,55,.14); border-radius: 16px;
  box-shadow: 0 8px 28px rgba(0,0,0,.18);
}
.admin-main table {
  border-collapse: collapse; width: 100%; font-size: 13px;
}
.admin-main th {
  text-align: left; padding: 11px 12px; font-size: 11.5px; color: var(--text-tertiary);
  font-weight: 700; letter-spacing: .04em; border-bottom: 1px solid rgba(212,175,55,.18);
  background: rgba(212,175,55,.05); white-space: nowrap;
}
.admin-main td { padding: 11px 12px; border-bottom: 1px solid rgba(255,255,255,.05); vertical-align: middle; }
.admin-main tr:hover td { background: rgba(255,255,255,.02); }
.admin-main .btn {
  border: 1px solid rgba(212,175,55,.4); background: linear-gradient(135deg, rgba(212,175,55,.18), rgba(212,175,55,.06));
  color: var(--text); border-radius: 10px; transition: all .18s;
}
.admin-main .btn:hover { background: linear-gradient(135deg, rgba(212,175,55,.3), rgba(212,175,55,.12)); border-color: rgba(212,175,55,.6); }
.admin-main .btn.red { background: linear-gradient(135deg, rgba(246,70,93,.2), rgba(246,70,93,.08)); border-color: rgba(246,70,93,.45); color: var(--down); }
.admin-main .btn.ghost { background: transparent; color: var(--text-secondary); }
.admin-main input, .admin-main select, .admin-main textarea {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); color: var(--text);
  padding: 10px 13px; border-radius: 11px; font-size: 13px; outline: none; font-family: var(--font); transition: all .2s;
}
.admin-main input:focus, .admin-main select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(212,175,55,.15); background: rgba(255,255,255,.05); }
.admin-main select { cursor: pointer; }
#adminMain .flex { display: flex; flex-wrap: wrap; }
#adminMain .flex.wrap { gap: 8px; }
#adminMain .mb16 { margin-bottom: 16px; }
#adminMain .mt8 { margin-top: 8px; }
#adminMain .mt16 { margin-top: 16px; }
#adminMain .muted { color: var(--text-tertiary); }

/* ===== 后台表单 (分组标签式弹窗表单) ===== */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar .tl { display: flex; align-items: center; gap: 8px; min-width: 0; }
.toolbar h2 { margin: 0; }
.adm-search { background: var(--bg-secondary); border: 1px solid var(--border); color: var(--text); padding: 9px 14px; border-radius: 999px; font-size: 13px; outline: none; width: 220px; }
.fg-modal { width: 92%; max-width: 560px; }
.fg-modal .modal { max-height: 80vh; overflow-y: auto; }
.fg-group { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.fg-group-t { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 3px; display: flex; align-items: center; gap: 6px; }
.fg-group-t::before { content: ''; width: 3px; height: 13px; border-radius: 2px; background: var(--accent); display: inline-block; }
.fg-group-hint { font-size: 11.5px; color: var(--text-tertiary); margin: 0 0 10px; line-height: 1.6; }
.fg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.fg-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.fg-field.full { grid-column: 1 / -1; }
.fg-field label { font-size: 12px; color: var(--text-secondary); font-weight: 600; }
.fg-field .fg-unit { font-size: 11px; color: var(--text-tertiary); }
.fg-field input, .fg-field select { width: 100%; padding: 9px 11px; }
.fg-actions { display: flex; gap: 10px; justify-content: flex-end; padding-top: 4px; }
.form-desc { background: var(--bg-secondary); border: 1px dashed var(--border); border-radius: 10px; padding: 10px 12px; font-size: 12px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 12px; }
/* 设置页分组列表 */
.set-group { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.set-group h3 { margin: 0 0 10px; font-size: 13.5px; display: flex; align-items: center; gap: 6px; }
.set-group h3::before { content: ''; width: 3px; height: 13px; border-radius: 2px; background: var(--accent); display: inline-block; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,.05); }
.set-row:last-child { border-bottom: none; }
.set-row .sl { font-size: 13px; color: var(--text); }
.set-row .sl small { display: block; color: var(--text-tertiary); font-size: 11px; margin-top: 1px; }
.set-row input, .set-row select { width: 220px; max-width: 55%; padding: 8px 10px; }
/* 危险操作卡片 */
.danger-card { background: #fff5f5; border: 1px solid #f9c9ce; border-radius: 12px; padding: 14px 16px; }
.danger-card h3 { color: #e03; margin: 0 0 4px; font-size: 13.5px; }
.danger-card p { color: #a55; }

/* ===== 响应式 ===== */
@media (max-width: 899px) {
  .trade-mid { grid-template-columns: minmax(0,1.1fr) minmax(0,0.9fr); padding: 12px 12px 0; gap: 12px; }
  .orders-panel { margin: 12px 12px 0; }
  .order-panel { padding: 16px; }
  .op-side button { height: 42px; font-size: 14px; }
  .op-field { margin-bottom: 12px; }
  .op-field .op-label { font-size: 11.5px; }
  .input-wrap input { padding: 10px 0; font-size: 14px; }
  .qty-quick button { padding: 6px 0; font-size: 11.5px; }
  .op-avail { padding: 10px 12px; }
  .info-row { font-size: 11.5px; }
  .op-submit { height: 44px; font-size: 14px; }
  .market-panel { padding: 12px 14px 8px; }
  .mp-price { font-size: 19px; }
  .ob-th, .ob-row { padding-left: 10px; padding-right: 10px; font-size: 11px; }
  .tr-row { padding: 2px 10px; font-size: 11px; }
  .order-scroll { max-height: 220px; }
  .order-tabs button { padding: 9px 10px; font-size: 12.5px; }
  .pos-grid { grid-template-columns: 1fr 1fr; }
  .chart-box { height: 300px; }
  .ind-bar { padding: 8px 12px; }
  .chart-wrap { margin: 12px 12px 0; }
  .trade-head { padding: 14px 16px 0; }
  .tf-switch { margin: 12px 16px 0; width: fit-content; max-width: 100%; overflow-x: auto; }
  .hero { padding: 48px 20px 12px; }
  .hero h1 { font-size: 34px; }
  .hero p { font-size: 15px; }
  .product-frame { padding: 24px 16px; min-height: 200px; }
  .product-specs { grid-template-columns: repeat(2, 1fr); }
  .home-sec { padding: 32px 16px 0; }
  .home-sec .sec-hd h2 { font-size: 24px; }
  .feature-card { padding: 20px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .earn-quick { grid-template-columns: 1fr 1fr; }
  .container { padding: 20px 16px; }
  .mine-grid { grid-template-columns: repeat(2, 1fr); padding: 0 16px; }
  .mine-head { padding: 22px 16px; }
  .mine-list { padding: 16px 0 0; }
  .admin-layout { flex-direction: column; }
  .admin-side { width: 100%; display: flex; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--border); padding: 8px 0; }
  .admin-side .logo { display: none; }
  .admin-side .side-group { display: none; }
  .admin-side a { white-space: nowrap; padding: 9px 16px; }
}
@media (min-width: 900px) {
  /* 顶栏已移除: 桌面端同样显示底部导航 (居中卡片式) */
  .tabbar { max-width: 760px; left: 50%; right: auto; transform: translateX(-50%); border-radius: 18px 18px 0 0; border-left: 1px solid var(--border); border-right: 1px solid var(--border); box-shadow: 0 -6px 24px rgba(0,0,0,.18); }
  .topbar .links { display: flex; }
  .trade-mid { grid-template-columns: minmax(0, 1fr) 430px; padding: 14px 24px 0; gap: 16px; }
  .trade-col-left, .trade-col-mid, .trade-col-right { display: block !important; }
  .chart-box { height: 440px; }
}

/* ================================================================
   v36: 全张开交易页 + 盈亏日历 + 行情优化 + 全局打磨
   ================================================================ */


/* 交易页全张开: 无卡片包裹、无边距 */
body.page-trade { background: var(--surface); }
body.page-trade .trade-mid { padding: 0; gap: 0; }
body.page-trade .order-panel,
body.page-trade .market-panel,
body.page-trade .orders-panel,
body.page-trade .chart-wrap { border: none; border-radius: 0; box-shadow: none; background: transparent; }
body.page-trade .order-panel { padding: 14px 16px; }
body.page-trade .right-col { flex: 1; }
body.page-trade .market-panel { border-left: 1px solid var(--border); padding: 0 14px 8px; }
body.page-trade .orders-panel { margin: 0; border-top: 1px solid var(--border); padding: 12px 16px 104px; }  /* 底部预留空间, 避免被固定导航栏遮挡 */
body.page-trade .trade-head { padding: 14px 16px 6px; }
body.page-trade .tf-switch { margin: 12px 16px 0; }
body.page-trade .fund-row { margin: 10px 16px 0; }
body.page-trade .chart-wrap { margin: 12px 0 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
body.page-trade .chart-box { height: 380px; }
body.page-trade .order-scroll { max-height: 300px; }

/* 盈亏卡片 + 日历 */
.pnl-card .num { font-size: 17px; font-weight: 700; font-family: var(--mono); letter-spacing: -0.01em; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-head .btn { padding: 6px 14px; font-size: 15px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-wd { text-align: center; font-size: 11px; color: var(--text-tertiary); padding: 4px 0; font-weight: 500; }
.cal-cell { border-radius: 10px; padding: 6px 3px; min-height: 54px; background: var(--bg-secondary); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.cal-cell.dim { background: transparent; }
.cal-cell.today { box-shadow: inset 0 0 0 1.5px var(--accent); }
.cal-cell.g { background: var(--up-soft); }
.cal-cell.r { background: var(--down-soft); }
.cal-cell .cal-day { font-size: 12px; font-weight: 600; }
.cal-cell .cal-pnl { font-size: 10px; font-family: var(--mono); font-weight: 600; }
.cal-cell.g .cal-pnl { color: var(--up); }
.cal-cell.r .cal-pnl { color: var(--down); }

/* 资产页: OKX 黑白极简 */
.asset-total { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); padding: 18px 16px 16px; box-shadow: var(--shadow); }
.asset-total .lbl { font-size: 13px; color: var(--text-tertiary); margin-bottom: 6px; }
.asset-total .val { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--text); line-height: 1.15; }
.wallet-actions { display: flex; gap: 8px; margin-top: 14px; }
.wallet-actions .btn { flex: 1; height: 42px; font-size: 14px; }
/* 反转色 CTA: 主按钮黑底白字 (OKX 标志语言), 次按钮白底描边 */
.btn-dark { background: var(--text); color: var(--surface); border: 1px solid var(--text); }
.btn-dark:active { opacity: .85; }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:active { background: var(--bg-secondary); }
/* 资产账户 tab: 胶囊, 激活黑色 */
.asset-tabs { display: flex; gap: 8px; margin: 18px 0 12px; }
.asset-tabs button { flex: 1; height: 38px; border: 1px solid var(--border); background: var(--surface); color: var(--text-secondary); border-radius: var(--pill); font-size: 13px; font-weight: 500; cursor: pointer; font-family: var(--font); transition: all .2s; }
.asset-tabs button.active { background: var(--text); color: var(--surface); border-color: var(--text); font-weight: 600; }
/* 资产列表行: 数字等宽右对齐 */
.account-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); margin-bottom: 10px; }
.account-row .ic { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-secondary); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; flex-shrink: 0; }
.account-row .nm { font-weight: 600; font-size: 15px; }
.account-row .ds { font-size: 11px; color: var(--text-tertiary); margin-top: 2px; }
.account-row .rt { margin-left: auto; text-align: right; }
.account-row .rt .v { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.account-row .rt .s { font-size: 11px; color: var(--text-tertiary); margin-top: 2px; font-variant-numeric: tabular-nums; }
/* 盈亏卡片: 精简 */
.pnl-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.pnl-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 13px 15px; }
.pnl-card .lbl { font-size: 11.5px; color: var(--text-tertiary); margin-bottom: 5px; }
.pnl-card .num { font-size: 17px; font-weight: 700; font-family: var(--mono); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
/* 赚币/借币快捷入口 */
.earn-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 4px; }
.eq-card { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; cursor: pointer; }
.eq-card .eq-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--bg-secondary); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; flex-shrink: 0; color: var(--text); }
.eq-card .arr { margin-left: auto; color: var(--text-tertiary); font-size: 18px; }

/* 全局打磨 */
.section-title { font-size: 16px; letter-spacing: -0.01em; }
.panel { box-shadow: 0 1px 12px rgba(0,0,0,.03); }
.card { transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.card:active { transform: scale(.985); }

@media (max-width: 899px) {
  .mk-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 10px 10px 20px; }
  body.page-trade .order-panel { padding: 12px; }
  body.page-trade .market-panel { padding: 0 10px 8px; }
  .cal-cell { min-height: 46px; }
  .cal-cell .cal-pnl { font-size: 9px; }
  .pnl-card { padding: 11px 12px; }
  .pnl-card .num { font-size: 15px; }
}

/* ================================================================
   v38: 手机端欧易式单列交易布局 (K线 → 盘口 → 下单 → 委托)
   ================================================================ */
@media (max-width: 899px) {
  /* 欧易手机端布局: K线全宽在上, 下方 左盘口 + 右下单 左右分栏 */
  body.page-trade .trade-mid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.86fr); gap: 0; }
  body.page-trade .order-panel { order: 0; } /* 左列: 下单 (宽) */
  body.page-trade .right-col { order: 1; } /* 右列: 盘口 + 最近成交 (窄) */
  body.page-trade .market-panel { border-left: 1px solid var(--border); border-right: none; }
  body.page-trade .order-panel { padding: 12px 10px 14px; }
  body.page-trade .market-panel { padding: 2px 10px 8px; }
  body.page-trade .chart-box { height: 340px; }
  /* 模块间距 (欧易 App: 区块间距 24pt) */
  body.page-trade .tf-switch { margin: 16px 16px 4px; }
  body.page-trade .fund-row { margin: 14px 16px 4px; }
  body.page-trade .chart-wrap { margin: 14px 0 0; border-bottom: 1px solid var(--border); }
  body.page-trade .orders-panel { padding: 14px 16px 108px; border-top: 1px solid var(--border); } /* 底部留白防遮挡 */
  /* 下单面板紧凑: 按钮不换行, 小字号 */
  body.page-trade .op-side button { height: 44px; font-size: 13.5px; }
  body.page-trade .op-submit { height: 44px; font-size: 14px; }
  body.page-trade .ob-row, body.page-trade .ob-th { padding-left: 6px; padding-right: 6px; font-size: 10.5px; }
  body.page-trade .ob-th span { text-align: left; }
  body.page-trade .ob-row .ob-p { text-align: left; }
  body.page-trade .ob-row .ob-q { text-align: right; }
  body.page-trade .mp-last { padding: 6px 6px 6px; align-items: flex-start; }
  body.page-trade .mp-last-price { font-size: 15px; }
  body.page-trade .mp-sub { padding: 2px 6px 8px; }
  body.page-trade .mp-sub-hd { padding: 8px 0 3px; }
  body.page-trade .tr-row { padding: 3px 0; }
  body.page-trade .ot-seg button { font-size: 11px; padding: 8px 4px; white-space: nowrap; }
  body.page-trade .mm-seg button { font-size: 11px; padding: 8px 4px; white-space: nowrap; }
  body.page-trade .op-label { font-size: 11px; min-width: 52px; white-space: nowrap; }
  body.page-trade .op-row { gap: 8px; margin-bottom: 12px; flex-wrap: nowrap; }
  body.page-trade .op-field { margin-bottom: 12px; }
  body.page-trade .input-wrap input { font-size: 13px; padding: 8px 0; }
  body.page-trade .qty-quick button { padding: 8px 0; font-size: 11px; white-space: nowrap; }
  body.page-trade .op-avail { margin-bottom: 12px; }
  body.page-trade .op-tpsl { margin-bottom: 12px; }
  body.page-trade .op-side { margin-bottom: 14px; }
  /* 最近成交: 高度与左侧下单面板一致, 内部滚动查看历史 */
  body.page-trade .right-col { display: flex; flex-direction: column; min-height: 0; }
  body.page-trade .market-panel { display: flex; flex-direction: column; flex: 1; min-height: 0; }
  body.page-trade .mp-sub { flex: 1; display: flex; flex-direction: column; min-height: 0; max-height: none; }
  body.page-trade #trList { flex: 1; overflow-y: auto; min-height: 0; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  body.page-trade .order-scroll { max-height: 260px; }

}

/* ================================================================
   GMT 终端风格组件 (借币/赚币/资产页)
   ================================================================ */
.g-page { padding: 12px 12px 24px; max-width: 1080px; margin: 0 auto; }
/* 子页面返回键 (仅借币/赚币显示) */
.page-back { display: flex; align-items: center; gap: 10px; padding: 2px 2px 14px; }
.page-back button {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); background: #1A2026;
  color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0;
  font-size: 20px; font-weight: 700;
}
.page-back button:active { background: #222A33; }
.page-back b { font-size: 18px; font-weight: 700; }
.g-hd { display: flex; align-items: baseline; justify-content: space-between; padding: 4px 4px 10px; }
.g-hd > span:first-child { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.g-hd-sub { font-size: 11px; color: var(--text-tertiary); }
.g-card { background: #1A2026; border: 1px solid rgba(255,255,255,.06); border-radius: 12px; padding: 14px; }
.g-lbl { font-size: 12px; color: var(--text-tertiary); margin-bottom: 8px; font-weight: 500; }
.g-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; }
.g-row + .g-row { border-top: 1px solid rgba(255,255,255,.05); }
.g-row span { color: var(--text-tertiary); font-size: 12.5px; white-space: nowrap; }
.g-row b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.g-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin-top: 10px; }
.g-m { display: flex; flex-direction: column; gap: 2px; }
.g-m span { font-size: 11px; color: var(--text-tertiary); white-space: nowrap; }
.g-m b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.g-ic { width: 40px; height: 40px; border-radius: 10px; background: rgba(212,175,55,.14); display: flex; align-items: center; justify-content: center; font-weight: 800; color: #D4AF37; flex-shrink: 0; font-size: 13px; }
.g-sub { font-size: 11px; color: var(--text-tertiary); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-quick { flex: 1; display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; background: var(--surface-2); cursor: pointer; min-width: 0; }
.g-quick .g-qi { width: 36px; height: 36px; border-radius: 10px; background: var(--bg-secondary); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; flex-shrink: 0; }
.g-quick b { font-size: 13.5px; white-space: nowrap; }
.g-quick .g-sub { font-size: 10.5px; }
.mt14 { margin-top: 14px; }
.mt4 { margin-top: 4px; }
.mb8 { margin-bottom: 8px; } .mb10 { margin-bottom: 10px; } .mb12 { margin-bottom: 12px; } .mb16 { margin-bottom: 16px; } .mb24 { margin-bottom: 24px; }

/* ================================================================
   v52: 资产/借币/赚币 页 GMT 终端风格增强
   ================================================================ */
/* 顶部总览大卡 */
.g-hero {
  background: linear-gradient(160deg, #1E2530 0%, #141A21 55%, #101418 100%);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  padding: 18px 16px 14px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}
.g-hero::after {
  content: ''; position: absolute; right: -40px; top: -40px; width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(212,175,55,.16) 0%, transparent 70%);
  pointer-events: none;
}
.g-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hide-btn {
  width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.08); color: var(--text-tertiary);
  cursor: pointer; flex-shrink: 0; transition: color .2s;
}
.hide-btn:active { color: var(--text); }
.g-hero-lbl { font-size: 13px; color: var(--text-tertiary); font-weight: 500; }
.g-hero-badge {
  font-size: 11px; padding: 3px 10px; border-radius: 20px;
  background: rgba(212,175,55,.14); color: #E8C55A; font-weight: 600;
  white-space: nowrap;
}
.g-hero-val { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; margin: 8px 0 2px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.g-hero-sub { font-size: 11.5px; color: var(--text-tertiary); margin-bottom: 12px; }
.g-pnl-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.g-pnl {
  background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.05);
  border-radius: 10px; padding: 9px 10px; display: flex; flex-direction: column; gap: 3px;
  min-width: 0;
}
.g-pnl span { font-size: 10.5px; color: var(--text-tertiary); white-space: nowrap; }
.g-pnl b { font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-actions { display: flex; gap: 10px; margin-top: 14px; }
.g-actions .btn { flex: 1; height: 40px; font-size: 13.5px; }

/* 资产页: 转赠/借币/赚币 3 按钮 */
.g-acts3 { display: flex; gap: 10px; margin: 14px 0 16px; }
.act3 {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: #1A2026; border: 1px solid rgba(255,255,255,.06); border-radius: 12px;
  padding: 14px 8px 12px; cursor: pointer; transition: background .15s, border-color .15s;
}
.act3:active { background: #222A33; border-color: rgba(255,255,255,.14); }
.act3-ic { width: 38px; height: 38px; border-radius: 50%; background: rgba(0,0,0,.3); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 800; }
.act3 b { font-size: 13.5px; font-weight: 600; }

/* ===== 资产页 (去模块化, 扁平布局) ===== */
.wl-page { max-width: 1080px; margin: 0 auto; padding: 2px 16px 42px; }
.wl-hero {
  padding: 26px 22px 20px; position: relative; border-radius: 20px; margin-top: 6px;
  background: linear-gradient(155deg, rgba(212,175,55,.16) 0%, rgba(212,175,55,.05) 42%, rgba(21,26,36,.4) 100%);
  border: 1px solid rgba(212,175,55,.22); overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.06);
}
.wl-hero::before {
  content: ''; position: absolute; right: -60px; top: -70px; width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(212,175,55,.18) 0%, transparent 62%); pointer-events: none;
}
.wl-hero::after {
  content: ''; position: absolute; left: -40px; right: -40px; top: 0; bottom: 0;
  background: radial-gradient(ellipse at 20% 0%, rgba(212,175,55,.14) 0%, transparent 60%);
  pointer-events: none;
}
.wl-hero-top { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.wl-lbl {
  font-size: 12.5px; color: var(--text-tertiary); font-weight: 500; letter-spacing: .04em;
  display: inline-flex; align-items: center; gap: 7px;
}
.wl-lbl::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px rgba(212,175,55,.8); }
.wl-val { font-size: 42px; font-weight: 800; letter-spacing: -0.03em; margin: 12px 0 4px; font-variant-numeric: tabular-nums; line-height: 1.1; position: relative; z-index: 1; }
.wl-sub { font-size: 11.5px; color: var(--text-tertiary); margin-bottom: 18px; position: relative; z-index: 1; }
.wl-pnl { display: flex; gap: 10px; position: relative; z-index: 1; }
.wl-pnl-item {
  flex: 1; background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 11px 14px;
  display: flex; flex-direction: column; gap: 4px; min-width: 0;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.wl-pnl-item span { font-size: 10.5px; color: var(--text-tertiary); }
.wl-pnl-item b { font-size: 15.5px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-sec {
  padding: 20px 14px 6px; border: 1px solid rgba(255,255,255,.06); border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0)); margin-top: 16px;
}
.wl-sec-hd { display: flex; align-items: baseline; justify-content: space-between; padding: 0 2px 12px; }
.wl-sec-hd > span:first-child { font-size: 15px; font-weight: 700; letter-spacing: .01em; }
.wl-acts {
  display: flex; flex-wrap: nowrap; gap: 4px; justify-content: space-between;
  padding: 18px 0 8px;
}
.wl-act {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  flex: 1 1 0; min-width: 0;
  background: none; border: none; padding: 6px 0 8px; cursor: pointer;
  border-radius: 14px; transition: background .2s, transform .15s;
}
.wl-act:hover { background: rgba(255,255,255,.035); }
.wl-act:active { transform: scale(.96); }
.wl-act span {
  width: 62px; height: 62px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, rgba(212,175,55,.14), rgba(212,175,55,.04));
  border: 1.5px solid rgba(212,175,55,.4); box-shadow: 0 6px 18px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.08);
}
.wl-act b { font-size: 12.5px; font-weight: 600; color: var(--text-secondary); }

/* 资产行: 卡片化, 悬浮细节 */
#accList .wl-asset {
  display: flex; align-items: center; gap: 13px; padding: 13px 12px;
  border: 1px solid transparent; border-radius: 14px; transition: all .18s;
}
#accList .wl-asset:hover { background: rgba(255,255,255,.035); border-color: rgba(255,255,255,.07); }
#accList .wl-asset + .wl-asset { border-top: 1px solid rgba(255,255,255,.045); }
.wl-asset-ic {
  width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-weight: 800; font-size: 12px;
  background: linear-gradient(150deg, rgba(212,175,55,.16), rgba(212,175,55,.05)) !important;
  border: 1px solid rgba(212,175,55,.25); overflow: hidden;
}
.wl-asset-ic .coin-img { width: 100%; height: 100%; object-fit: cover; }
.wl-tx {
  padding: 12px 10px; border-bottom: 1px solid rgba(255,255,255,.05); display: flex; align-items: center; gap: 12px;
  border-radius: 10px; transition: background .15s;
}
.wl-tx:hover { background: rgba(255,255,255,.025); }

/* 资产页自适应: 宽屏时资产与流水双栏 */
@media (min-width: 860px) {
  .wl-page { padding: 2px 22px 46px; }
  .wl-hero { padding: 30px 28px 24px; }
  .wl-val { font-size: 48px; }
  .wl-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
  .wl-grid2 > .wl-sec { margin-top: 16px; }
}
@media (max-width: 420px) {
  .wl-val { font-size: 34px; }
  .wl-hero { padding: 20px 16px 16px; }
  .wl-acts { gap: 2px; padding: 14px 0 6px; }
  .wl-act span { width: 52px; height: 52px; }
  .wl-pnl-item { padding: 9px 10px; }
}

/* 资金流水分类 */
.tx-cats { display: flex; gap: 6px; padding: 2px 2px 12px; overflow-x: auto; scrollbar-width: none; }
.tx-cats::-webkit-scrollbar { display: none; }
.tx-cats button {
  flex-shrink: 0; white-space: nowrap; border: 1px solid rgba(212,175,55,.16); background: rgba(212,175,55,.05);
  color: var(--text-secondary); font-size: 12px; padding: 5px 14px; border-radius: 15px; cursor: pointer; transition: all .2s;
}
.tx-cats button.active { background: var(--accent); border-color: var(--accent); color: #0B0B0D; font-weight: 700; }
.tx-more { text-align: center; font-size: 11.5px; color: var(--text-tertiary); padding: 12px 0 20px; }
/* 借币「全部」按钮 (小号圆角胶囊, 靠右) */
.btn-all {
  height: 26px; padding: 0 10px; margin: 0 2px 0 auto; border-radius: 13px; flex-shrink: 0;
  border: 1px solid rgba(212,175,55,.4); background: linear-gradient(135deg, rgba(212,175,55,.18), rgba(212,175,55,.08));
  color: var(--accent); font-size: 11px; font-weight: 600; cursor: pointer; transition: all .2s;
}
.btn-all:active { background: var(--accent); color: #0B0B0D; }

/* 排行榜 */
.wl-asset { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid rgba(255,255,255,.05); }
.wl-asset-ic { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-weight: 800; font-size: 12px; }
.wl-tx { padding: 11px 4px; border-bottom: 1px solid rgba(255,255,255,.05); display: flex; align-items: center; gap: 10px; }
.rk-seg { display: flex; gap: 8px; margin-bottom: 14px; }
.rk-seg button {
  flex: 1; padding: 9px 0; border-radius: 10px; border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03); color: var(--text-secondary); font-size: 13.5px; cursor: pointer;
}
.rk-seg button.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.rk-list { display: flex; flex-direction: column; }
.rk-hd, .rk-row { display: flex; align-items: center; gap: 10px; padding: 11px 6px; border-bottom: 1px solid rgba(255,255,255,.05); }
.rk-hd { font-size: 11px; color: var(--text-tertiary); }
.rk-hd span:first-child { width: 44px; } .rk-hd span:last-child { margin-left: auto; text-align: right; }
.rk-rank { width: 44px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rk-rank.top { color: var(--accent); }
.rk-user { flex: 1; font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-pnl { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.rk-reward { font-size: 10.5px; color: var(--yellow); white-space: nowrap; }
.rk-joined { font-size: 11.5px; color: var(--green); background: rgba(20,199,132,.12); border: 1px solid rgba(20,199,132,.35); padding: 3px 10px; border-radius: 999px; font-weight: 600; }
.rk-join-btn { height: 28px; padding: 0 14px; font-size: 12.5px; border-radius: 999px; background: linear-gradient(135deg, #D4AF37, #8A6D1F); color: #0B0B0D; font-weight: 700; border: none; cursor: pointer; }
.rk-tip { background: rgba(212,175,55,.08); border: 1px dashed rgba(212,175,55,.4); border-radius: 10px; padding: 10px 12px; font-size: 12px; color: var(--text-secondary); margin-bottom: 14px; line-height: 1.6; }
.rk-me { display: flex; gap: 8px; margin-bottom: 14px; }
.rk-me-cell { flex: 1; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); border-radius: 12px; padding: 10px 12px; text-align: center; }
.net-arrow { transition: transform .25s var(--ease); color: var(--text-tertiary); }

/* 资产走势线图 */
.net-line { padding: 6px 2px 0; }
.net-line svg { border-radius: 8px; }
.net-date { text-align: center; font-size: 11.5px; color: var(--text-secondary); margin-top: 10px; font-variant-numeric: tabular-nums; }
.net-tag {
  position: absolute; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 6px;
  background: rgba(11,14,17,.82); border: 1px solid rgba(255,255,255,.1); white-space: nowrap;
  pointer-events: none; font-variant-numeric: tabular-nums;
}
.tag-min { color: #F6465D; }
.tag-max { color: #14C784; }

/* 行情分类 tab */
.mk-cats { display: flex; gap: 8px; padding: 4px 12px 2px; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }

/* 横盘扫描 */
.scan-settings { background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: 14px; padding: 14px; margin-bottom: 14px; }
.scan-row { display: flex; gap: 10px; margin-bottom: 12px; }
.scan-field { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.scan-field label { font-size: 11.5px; color: var(--text-secondary); }
.scan-field input { background: var(--surface); border: 1px solid var(--border); color: var(--text); padding: 9px 12px; border-radius: 10px; font-size: 14px; outline: none; }
.scan-seg { display: flex; gap: 6px; margin-bottom: 12px; }
.scan-seg button { flex: 1; padding: 8px 0; border-radius: 9px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); color: var(--text-secondary); font-size: 12.5px; cursor: pointer; }
.scan-seg button.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.scan-status { margin-bottom: 12px; }
.scan-ok { background: rgba(20,199,132,.1); border: 1px solid rgba(20,199,132,.3); color: var(--green); border-radius: 10px; padding: 10px 12px; font-size: 12.5px; }
.scan-loading { display: flex; align-items: center; gap: 10px; color: var(--text-secondary); font-size: 12.5px; padding: 6px 2px; }
.scan-loading span { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(212,175,55,.3); border-top-color: var(--accent); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.scan-item { display: block; padding: 12px 10px; border-bottom: 1px solid rgba(255,255,255,.05); cursor: pointer; }
.scan-main { display: flex; align-items: center; gap: 10px; width: 100%; }
.scan-item:active { background: rgba(255,255,255,.04); }
.sc-sym { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sc-sym b { font-size: 13.5px; }
.sc-ex { width: fit-content; font-size: 10px; padding: 1px 7px; border-radius: 999px; font-weight: 600; }
.sc-ex.okx { color: #4E9BF5; background: rgba(78,155,245,.12); }
.sc-ex.binance { color: #F0B90B; background: rgba(240,185,11,.12); }
.sc-ex.paper { color: var(--accent); background: rgba(212,175,55,.12); }
.sc-nums { display: flex; flex-direction: column; gap: 3px; align-items: flex-end; }
.sc-price { font-weight: 700; font-variant-numeric: tabular-nums; }
.sc-range { font-size: 11px; color: var(--text-secondary); }
.sc-chg { min-width: 56px; text-align: right; font-size: 12.5px; font-weight: 600; }
.sc-spark { display: flex; align-items: center; flex-shrink: 0; }
.scan-ai { background: linear-gradient(135deg, rgba(212,175,55,.1), rgba(20,199,132,.05)); border: 1px solid rgba(212,175,55,.28); border-radius: 14px; padding: 14px; margin-bottom: 14px; }
.scan-ai-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.scan-ai-hd span { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13.5px; color: var(--accent); }
.scan-ai-body { font-size: 12.5px; line-height: 1.7; color: var(--text-secondary); max-height: 320px; overflow-y: auto; }
.ai-news-src { font-size: 11px; color: var(--text-tertiary); margin-bottom: 8px; }
.ai-line { padding: 4px 0; color: var(--text); }
.ai-para { padding: 5px 0 5px 10px; border-left: 2px solid rgba(212,175,55,.4); margin: 6px 0; color: var(--text-secondary); }
.cd-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.04); }
.cd-row:last-child { border-bottom: none; }
.cd-row span { color: var(--text-secondary); }
.cd-row b { font-variant-numeric: tabular-nums; }
.mk-cats::-webkit-scrollbar { display: none; }
.mk-cats button {
  flex-shrink: 0; white-space: nowrap; border: 1px solid rgba(255,255,255,.08); background: #1A2026;
  color: var(--text-tertiary); font-size: 12.5px; padding: 5px 14px; border-radius: 16px; cursor: pointer; transition: all .2s;
}
.mk-cats button.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }

/* 交易页图表类型切换 */
.toolbar-sep { width: 1px; height: 16px; background: rgba(255,255,255,.12); margin: 0 6px; flex-shrink: 0; }
.ct-switch { border: 1px solid rgba(255,255,255,.12) !important; border-radius: 6px !important; padding: 4px 10px !important; font-size: 11.5px !important; }
.ct-switch.active { color: #fff !important; background: var(--accent) !important; border-color: var(--accent) !important; font-weight: 600; }

/* 资产净值趋势条 */
.g-trend { display: flex; align-items: flex-end; gap: 3px; height: 64px; padding: 4px 2px 0; }
.g-trend .bar { flex: 1; min-width: 2px; border-radius: 2px 2px 0 0; background: rgba(212,175,55,.4); position: relative; }
.g-trend .bar.today { background: var(--accent); }
.g-trend .bar.up { background: rgba(20,199,132,.5); }
.g-trend .bar.down { background: rgba(246,70,93,.5); }
.g-trend-x { display: flex; justify-content: space-between; font-size: 10px; color: var(--text-tertiary); margin-top: 6px; }
.g-net-list { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; }
.g-net-row { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-top: 1px solid rgba(255,255,255,.04); font-size: 12px; }
.g-net-row .d { color: var(--text-tertiary); width: 74px; flex-shrink: 0; }
.g-net-row .v { flex: 1; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.g-net-row .c { width: 88px; text-align: right; font-variant-numeric: tabular-nums; }

/* 质押资产 chips (横向滚动) */
.g-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin-bottom: 10px; -webkit-overflow-scrolling: touch; }
.g-chips::-webkit-scrollbar { display: none; }
.g-chip {
  flex-shrink: 0; min-width: 84px; text-align: center;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px;
  padding: 10px 12px; cursor: pointer; transition: all .18s;
}
.g-chip b { display: block; font-size: 14px; white-space: nowrap; }
.g-chip span { display: block; font-size: 10px; color: var(--text-tertiary); margin-top: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.g-chip.active { border-color: var(--accent); background: rgba(212,175,55,.14); }
.g-chip.active b { color: var(--accent); }

/* 借款/持仓密集行 */
.g-loan-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.g-loan-hd b { font-size: 13px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-loan-body { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 14px; }
.g-loan-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.g-loan-item span { font-size: 11px; color: var(--text-tertiary); white-space: nowrap; }
.g-loan-item b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.g-loan-ft { display: flex; gap: 10px; margin-top: 12px; }
.g-loan-ft .btn { flex: 1; }

/* 赚币产品行 */
.g-earn { display: flex; align-items: center; gap: 12px; }
.g-earn-l { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.g-apy { text-align: right; flex-shrink: 0; display: flex; flex-direction: column; gap: 1px; }
.g-apy b { font-size: 18px; font-weight: 800; color: var(--up); font-variant-numeric: tabular-nums; }
.g-apy span { font-size: 10px; color: var(--text-tertiary); }

/* 资产 tab (终端胶囊) */
.g-tabs { display: flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 3px; gap: 3px; margin: 16px 0 12px; }
.g-tabs button {
  flex: 1; height: 36px; border: none; background: none; color: var(--text-secondary);
  border-radius: 9px; font-size: 13px; font-weight: 500; cursor: pointer; font-family: var(--font);
}
.g-tabs button.active { background: var(--accent); color: #fff; font-weight: 600; }

/* 日历 cell 微调 (深色终端) */
.cal-cell { min-height: 44px; }
.cal-cell .cal-day { font-size: 11px; }
.cal-cell .cal-pnl { font-size: 9.5px; }

/* ===== K线点击弹窗 (交易页) ===== */
.kl-pop { padding: 2px 0; }
.kl-hd { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 12px; }
.kl-hd .kl-time { color: var(--text-secondary); font-size: 12px; }
.kl-hd .kl-iv { margin-left: auto; font-size: 11px; }
.kl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 18px; padding: 12px 14px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 12px; }
.kl-grid > div { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; }
.kl-grid b { font-weight: 600; }
.kl-trades { margin-top: 12px; max-height: 190px; overflow-y: auto; }
.kl-sub-hd { font-size: 12px; margin-bottom: 6px; }
.kl-tr { display: grid; grid-template-columns: 52px 1fr 1fr 64px; font-size: 12px; padding: 5px 0; border-bottom: 1px dashed rgba(255,255,255,.06); }
.kl-tr span:last-child { text-align: right; }

/* ===== 扫描结果参考数据行 (做市/LP) ===== */
.sc-sub { font-size: 11px; color: var(--text-tertiary); margin-top: 5px; line-height: 1.5; }
.sc-lpline { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sc-lp { display: inline-block; font-size: 10px; padding: 1px 7px; border-radius: 999px; border: 1px solid; flex-shrink: 0; }
.sc-lp.hi { color: #14C784; border-color: rgba(20,199,132,.45); background: rgba(20,199,132,.08); }
.sc-lp.mid { color: #E8C55A; border-color: rgba(232,197,90,.45); background: rgba(232,197,90,.08); }
.sc-lp.lo { color: #8a8f98; border-color: rgba(138,143,152,.4); background: rgba(138,143,152,.06); }

/* ================================================================
   浅色主题 (body.light): 与深色自由切换, 全部页面生效
   ================================================================ */
body.light {
  --bg: #F6F5F1; --bg-secondary: #EFEDE7; --surface: #FFFFFF; --surface-2: #F5F3ED;
  --text: #1D1C18; --text-secondary: #67635B; --text-tertiary: #9B958A;
  --border: rgba(0,0,0,.09); --border-hover: rgba(0,0,0,.2);
  --accent: #B8860B; --accent-hover: #A0740A; --accent-soft: rgba(184,134,11,.13);
  --up: #0FA36F; --down: #E23B4E;
  --up-soft: rgba(15,163,111,.1); --down-soft: rgba(226,59,78,.1);
  --shadow: 0 2px 14px rgba(80,64,16,.07); --shadow-hover: 0 10px 34px rgba(80,64,16,.13);
}
body.light .tabbar { background: rgba(255,255,255,.94); }
body.light .toast { background: rgba(44,42,36,.88); }
body.light .mk-card { background: #FFFFFF; border-color: rgba(0,0,0,.07); box-shadow: var(--shadow); }
body.light .mk-card:active { background: #F5F3ED; }
body.light .mk-cats button:not(.active) { background: #FFFFFF; border-color: rgba(0,0,0,.1); color: var(--text-secondary); }
body.light .mk-cats button.active { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
body.light .mk-mid2 { border-top-color: rgba(184,134,11,.2); }
body.light .chart-box { background: linear-gradient(180deg, #FFFFFF 0%, #F7F8FA 55%, #FFFFFF 100%); }
body.light .lg-row { background: rgba(255,255,255,.72); }
body.light .product-frame { background: linear-gradient(180deg, #F2F0E9, #FFFFFF); }
body.light .g-hero { background: linear-gradient(160deg, #FFFFFF 0%, #F7F5EF 55%, #F2F0E9 100%); border-color: rgba(0,0,0,.08); }
body.light .g-card { background: #FFFFFF; border-color: rgba(0,0,0,.07); }
body.light .g-row + .g-row, body.light .g-net-row { border-top-color: rgba(0,0,0,.06); }
body.light .g-pnl { background: rgba(0,0,0,.04); border-color: rgba(0,0,0,.07); }
body.light .hide-btn { background: rgba(0,0,0,.05); border-color: rgba(0,0,0,.08); }
body.light .page-back button { background: #FFFFFF; border-color: rgba(0,0,0,.12); color: var(--text); }
body.light .page-back button:active { background: #F1EFE9; }
body.light .wl-hero { background: linear-gradient(155deg, rgba(184,134,11,.15) 0%, rgba(184,134,11,.04) 42%, rgba(255,255,255,.65) 100%); border-color: rgba(184,134,11,.32); box-shadow: 0 10px 30px rgba(120,95,20,.1), inset 0 1px 0 rgba(255,255,255,.75); }
body.light .wl-pnl-item { background: rgba(0,0,0,.03); border-color: rgba(0,0,0,.07); }
body.light .wl-sec { background: #FFFFFF; border-color: rgba(0,0,0,.07); }
body.light .wl-act:hover { background: rgba(0,0,0,.03); }
body.light .wl-act span { background: linear-gradient(150deg, rgba(184,134,11,.14), rgba(184,134,11,.04)); border-color: rgba(184,134,11,.45); box-shadow: 0 6px 16px rgba(120,95,20,.12), inset 0 1px 0 rgba(255,255,255,.7); }
body.light #accList .wl-asset:hover { background: rgba(0,0,0,.028); border-color: rgba(0,0,0,.06); }
body.light #accList .wl-asset + .wl-asset { border-top-color: rgba(0,0,0,.06); }
body.light .wl-asset-ic { background: linear-gradient(150deg, rgba(184,134,11,.14), rgba(184,134,11,.05)) !important; border-color: rgba(184,134,11,.3); }
body.light .wl-tx { border-bottom-color: rgba(0,0,0,.06); }
body.light .wl-tx:hover { background: rgba(0,0,0,.025); }
body.light .rk-seg button:not(.active), body.light .rk-me-cell { background: rgba(0,0,0,.03); border-color: rgba(0,0,0,.08); }
body.light .rk-seg button.active { background: var(--accent); border-color: var(--accent); }
body.light .rk-hd, body.light .rk-row { border-bottom-color: rgba(0,0,0,.06); }
body.light .net-tag { background: rgba(255,255,255,.93); border-color: rgba(0,0,0,.1); }
body.light .net-ranges button:not(.active), body.light .tx-cats button:not(.active) { border-color: rgba(184,134,11,.22); background: rgba(184,134,11,.06); }
body.light .net-ranges button.active, body.light .tx-cats button.active { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
body.light .toolbar-sep { background: rgba(0,0,0,.12); }
body.light .ct-switch { border-color: rgba(0,0,0,.14) !important; color: var(--text-secondary) !important; }
body.light .ob-bar { opacity: .09; }
body.light .sheet { border-top-color: rgba(0,0,0,.08); }
body.light .search-box { box-shadow: 0 1px 8px rgba(80,64,16,.06); }
body.light .ind-bar button:not(.active), body.light .qty-quick button:not(.active), body.light .lev-quick button:not(.active) { background: #FFFFFF; }
body.light .ind-bar button.active { background: var(--accent-soft); }
body.light .qty-quick button:active, body.light .lev-quick button:active { background: var(--accent-soft); }
body.light .g-tabs { background: var(--surface-2); }
body.light .theme-btn { background: #FFFFFF; }

/* 主题切换按钮 (行情页) */
.theme-btn { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--border); color: var(--text-secondary); cursor: pointer; box-shadow: var(--shadow); flex-shrink: 0; transition: all .2s; }
.theme-btn:active { transform: scale(.94); color: var(--accent); }

/* 交易页控件: 点按更灵敏 */
.op-side button, .ot-seg button, .mm-seg button, .qty-quick button, .tf-switch button, .chart-toolbar button, .ind-bar button, .theme-btn { touch-action: manipulation; }
.op-side button:active, .ot-seg button:active, .mm-seg button:active { filter: brightness(.9); }
.qty-quick button:active { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }

/* 资金流水: 底部留白, 避免滚动不到底 */
#txList { padding-bottom: 18px; }

/* ===== 后台: 横盘扫描 ===== */
.asc-lbl { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-secondary); white-space: nowrap; }
.asc-lbl input { width: 88px; }
.asc-seg { display: inline-flex; gap: 6px; }
.asc-seg button { border: 1px solid rgba(0,0,0,.14); background: #FFFFFF; color: var(--text-secondary); font-size: 12.5px; padding: 6px 14px; border-radius: 999px; cursor: pointer; transition: all .18s; }
.asc-seg button.active { background: var(--accent); border-color: var(--accent); color: #FFFFFF; font-weight: 600; }
.asc-hint { font-size: 11px; color: var(--text-tertiary); }
#ascBox table.asc-table { width: 100%; border-collapse: collapse; font-size: 12.5px; white-space: nowrap; }
#ascBox table.asc-table th { position: sticky; top: 0; z-index: 2; background: #FBF8EE; cursor: pointer; user-select: none; text-align: left; padding: 9px 10px; font-weight: 700; border-bottom: 1px solid rgba(0,0,0,.14); }
#ascBox table.asc-table td { padding: 8px 10px; text-align: left; border-bottom: 1px solid rgba(0,0,0,.06); }
#ascBox table.asc-table tr:hover td { background: rgba(184,134,11,.05); }

/* ===== 悬浮返回按钮 (借币/赚币/排行/扫描子页面) ===== */
.g-page.has-fab { padding-top: 58px; }
.float-back { position: fixed; top: 12px; left: 12px; z-index: 170; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(16,20,24,.62); color: var(--text); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 6px 20px rgba(0,0,0,.28); cursor: pointer; transition: transform .15s, background .15s; }
.float-back:active { transform: scale(.9); }
body.light .float-back { background: rgba(255,255,255,.75); border-color: rgba(0,0,0,.1); box-shadow: 0 6px 20px rgba(80,64,16,.18); }

/* ===== 我的页: 高级排版 (防自动换行) ===== */
.mine-head { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); padding: 18px 16px; display: flex; align-items: center; gap: 14px; max-width: 1080px; margin: 0 auto; }
.mine-head .info { min-width: 0; flex: 1; }
.mine-head .name { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mine-head .uid { font-size: 12px; color: var(--text-tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mine-head-right { margin-left: auto; text-align: right; flex-shrink: 0; }
.mine-head-right .muted { white-space: nowrap; }
.mine-grid .it { padding: 16px 8px; }
.mine-grid .it .v { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mine-grid .it .l { white-space: nowrap; }
.mine-sec-hd { padding: 2px 0 10px; font-size: 13px; font-weight: 700; color: var(--text-secondary); letter-spacing: .02em; display: flex; align-items: center; gap: 8px; }
.mine-sec-hd::before { content: ''; width: 3px; height: 13px; border-radius: 2px; background: var(--accent); display: inline-block; }
.mine-list .card { margin-bottom: 18px; }
.mine-list .li .lbl { flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mine-list .li .muted { margin-left: auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; }

/* 扫描条件: 3 字段自适应 */
.scan-row { flex-wrap: wrap; }
.scan-field { min-width: 88px; }

/* ===== 我的页 v2 (高级排版: 渐变卡片 + 数据面板 + 图标列表) ===== */
.mine-hero { position: relative; overflow: hidden; border-radius: 20px; padding: 20px 18px; margin: 0 auto; max-width: 1080px; background: linear-gradient(155deg, rgba(212,175,55,.16) 0%, rgba(212,175,55,.04) 45%, rgba(21,26,36,.35) 100%); border: 1px solid rgba(212,175,55,.25); box-shadow: 0 10px 32px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.05); }
.mine-hero::after { content: ''; position: absolute; right: -60px; top: -70px; width: 230px; height: 230px; background: radial-gradient(circle, rgba(212,175,55,.18), transparent 62%); pointer-events: none; }
.mh-top { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.mine-hero .avatar-lg { width: 58px; height: 58px; box-shadow: 0 0 0 3px rgba(212,175,55,.22); border: 1px solid rgba(212,175,55,.5); }
.mh-info { min-width: 0; flex: 1; }
.mh-name { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mh-uid { font-size: 12px; color: var(--text-tertiary); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mh-right { margin-left: auto; text-align: right; flex-shrink: 0; }
.mh-since { font-size: 10.5px; color: var(--text-tertiary); margin-top: 8px; white-space: nowrap; }
body.light .mine-hero { background: linear-gradient(155deg, rgba(184,134,11,.13) 0%, rgba(184,134,11,.04) 45%, rgba(255,255,255,.65) 100%); border-color: rgba(184,134,11,.3); box-shadow: 0 10px 28px rgba(120,95,20,.1), inset 0 1px 0 rgba(255,255,255,.75); }

.mine-stats { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; margin: 12px auto 0; max-width: 1080px; box-shadow: var(--shadow); }
.ms-cell { padding: 16px 16px 15px; cursor: pointer; min-width: 0; transition: background .15s; }
.ms-cell:nth-child(2n) { border-left: 1px solid var(--border); }
.ms-cell:nth-child(n+3) { border-top: 1px solid var(--border); }
.ms-cell:active { background: var(--bg-secondary); }
.ms-l { font-size: 11px; color: var(--text-tertiary); margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-v { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.light .mine-stats { background: #fff; }

.mine-list .li { padding: 13px 16px; gap: 12px; }
.mine-list .mi { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mine-list .mi svg { width: 18px; height: 18px; }

/* ================= 行情页: 交易所列表式排版 (2026-10) ================= */
.mk-wrap { max-width: 1080px; margin: 0 auto; padding: 4px 12px 44px; }
.mk-tr { display: grid; align-items: center; gap: 8px;
  grid-template-columns: 26px minmax(96px, 1.5fr) minmax(72px, 1fr) minmax(78px, .95fr) minmax(70px, .95fr) 64px; }
.mk-hd { position: sticky; top: 58px; z-index: 20; padding: 9px 10px 7px; font-size: 11px; color: var(--text-tertiary);
  background: var(--bg); letter-spacing: .02em; }
.mk-hd .mk-pr, .mk-hd .mk-ch, .mk-hd .mk-vl { text-align: right; }
.mk-r { padding: 11px 10px; border-radius: 10px; border-bottom: 1px solid rgba(255,255,255,.05);
  cursor: pointer; transition: background .14s; }
.mk-r:active { background: rgba(255,255,255,.06); }
.mk-r:hover { background: rgba(255,255,255,.035); }
.mk-fav { display: flex; align-items: center; justify-content: center; color: var(--text-tertiary); padding: 4px 0; }
.mk-fav.on { color: #E8C55A; }
.mk-nm { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mk-nm .mk-ic { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.06); font-size: 11px; font-weight: 700; }
.mk-nm .mk-ic .coin-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.mk-nm b { font-size: 14px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.mk-nm em { font-style: normal; font-size: 11px; color: var(--text-tertiary); flex-shrink: 0; }
.mk-pr { text-align: right; font-size: 14.5px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mk-ch { text-align: right; }
.mk-vl { text-align: right; font-size: 12.5px; color: var(--text-secondary); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mk-sp { display: flex; justify-content: flex-end; }
.mk-r .mk-chg { margin: 0; padding: 3px 9px; border-radius: 7px; font-size: 12px; font-weight: 650; }
body.light .mk-hd { background: var(--bg); }
body.light .mk-r { border-bottom-color: rgba(0,0,0,.06); }
body.light .mk-r:hover { background: rgba(0,0,0,.025); }
body.light .mk-nm .mk-ic { background: rgba(0,0,0,.05); }
@media (max-width: 640px) {
  .mk-wrap { padding: 2px 10px 22px; }
  .mk-tr { grid-template-columns: 24px minmax(80px, 1.4fr) minmax(66px, 1fr) minmax(70px, .95fr); gap: 6px; }
  .mk-hd .mk-vl, .mk-r .mk-vl, .mk-hd .mk-sp, .mk-r .mk-sp { display: none; }
  .mk-r { padding: 10px 8px; }
  .mk-nm b { font-size: 13.5px; }
  .mk-pr { font-size: 13.5px; }
  .mk-r .mk-chg { padding: 3px 7px; font-size: 11.5px; }
}

/* ================= 资产页 今日/本周/本月: 完整显示不被遮挡 ================= */
.wl-pnl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.wl-pnl-item { padding: 9px 10px; gap: 4px; }
.wl-pnl-item b {
  font-size: clamp(11px, 3.1vw, 16px); letter-spacing: -.02em;
  white-space: nowrap; overflow: visible; text-overflow: clip; line-height: 1.3;
}
@media (max-width: 420px) {
  .wl-pnl { gap: 5px; }
  .wl-pnl-item { padding: 8px 7px; gap: 4px; }
  .wl-pnl-item span { font-size: 10px; }
}

/* ================= DeFi 流动性页 ================= */
.defi-hero { padding: 18px 18px 16px; border-radius: 18px; border: 1px solid rgba(124,92,255,.28);
  background: linear-gradient(150deg, rgba(124,92,255,.18), rgba(124,92,255,.04)); margin-bottom: 4px; }
.defi-hero h2 { font-size: 19px; font-weight: 760; margin: 0 0 6px; }
.defi-hero p { font-size: 12.5px; color: var(--text-secondary); line-height: 1.55; margin: 0; }
.defi-form .field { margin-bottom: 12px; }
.defi-form .field > label { display: block; font-size: 12px; color: var(--text-tertiary); margin: 0 0 6px 2px; }
.df-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.defi-hint { font-size: 11.5px; color: var(--text-tertiary); padding: 2px 2px 0; }
.input-wrap select { flex: 1; background: none; border: none; outline: none; color: var(--text);
  font-size: 14.5px; padding: 12px 0; min-width: 0; -webkit-appearance: none; appearance: none; }
.defi-pool { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 10px; border-bottom: 1px solid rgba(255,255,255,.05); border-radius: 10px; cursor: pointer; }
.defi-pool:hover { background: rgba(255,255,255,.035); }
.defi-pool .dp-l { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.defi-pool .dp-l b { font-size: 14px; }
.defi-pool .dp-l span { font-size: 11px; }
.defi-pool .dp-r { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.defi-pool .dp-r b { font-size: 14px; }
.defi-pool .dp-r span { font-size: 11.5px; }
.defi-pos { border: 1px solid rgba(255,255,255,.07); border-radius: 14px; padding: 12px 13px; margin-bottom: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0)); }
.defi-pos .dp-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.defi-pos .dp-hd b { font-size: 14.5px; }
.defi-pos .dp-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 3px 0; font-size: 12.5px; }
.defi-pos .dp-row span { color: var(--text-tertiary); flex-shrink: 0; }
.defi-pos .dp-row b { font-variant-numeric: tabular-nums; text-align: right; }
body.light .defi-pos { border-color: rgba(0,0,0,.07); }
body.light .defi-pool { border-bottom-color: rgba(0,0,0,.06); }
@media (max-width: 420px) { .df-grid { gap: 8px; } }

/* ============ 行情页排序 + 交易页自选 (2026-10-01) ============ */
.mk-hd .mk-sort { cursor: pointer; user-select: none; -webkit-user-select: none; white-space: nowrap; font-style: normal; }
.mk-hd .mk-sort:hover { color: var(--text-secondary); }
.mk-hd .arw { font-style: normal; font-size: 9px; margin-left: 3px; opacity: .6; }
.mk-hd .arw.off { opacity: .25; }
/* 数字/百分比统一正体, 不做倾斜 */
.num, .mk-pr, .mk-chg, .mk-vl, .th-chg, .tprice, .cl-price, .cl-chg { font-style: normal !important; }
.fav-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 1px solid var(--border); background: var(--bg-secondary); color: var(--text-tertiary);
  transition: color .15s, background .15s, border-color .15s, transform .12s;
}
.fav-btn.on { color: #E8C55A; border-color: rgba(232,197,90,.5); background: rgba(232,197,90,.12); }
.fav-btn:hover { border-color: rgba(232,197,90,.4); }
.fav-btn:active { transform: scale(.9); }

/* ============ DeFi 界面美化 v2 (2026-10-01) ============ */
.defi-page .wl-sec { padding: 18px 16px 10px; }
.defi-hero { padding: 18px 18px 16px; border-radius: 18px; border: 1px solid rgba(124,92,255,.3);
  background: linear-gradient(150deg, rgba(124,92,255,.2), rgba(124,92,255,.05) 70%, rgba(255,255,255,0)); }
.defi-hero .dh-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.defi-hero h2 { font-size: 19px; font-weight: 760; margin: 0; }
.defi-hero .dh-badge { font-size: 10.5px; font-weight: 600; color: #A88BFF; background: rgba(124,92,255,.16);
  border: 1px solid rgba(124,92,255,.35); border-radius: 999px; padding: 2px 9px; }
.defi-hero p { font-size: 12.5px; color: var(--text-secondary); line-height: 1.6; margin: 0; }
.defi-form .field { margin-bottom: 14px; }
.defi-form .field > label { display: block; font-size: 12px; color: var(--text-tertiary); margin: 0 0 7px 2px; }
.df-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.df-grid > * { min-width: 0; }
.df-ratio-wrap { max-width: 50%; }
/* 订单/持仓面板顶部操作条 (全部取消 / 全部平仓) */
.ord-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--border, rgba(255,255,255,.06)); }
.ord-bar .muted { font-size: 12px; }
.ord-bar .btn.sm { padding: 4px 12px; height: auto; }
.ord-bar .btn[disabled] { opacity: .45; pointer-events: none; }
.input-wrap { min-width: 0; box-sizing: border-box; }
.input-wrap input { min-width: 0; width: 100%; }
.input-wrap input:disabled { opacity: .45; }
.defi-tip { font-size: 11.5px; color: var(--text-tertiary); padding: 6px 2px 0; line-height: 1.5; }
.muted.pad16 { padding: 16px; }
.defi-apr { border: 1px solid rgba(20,199,132,.22); background: linear-gradient(150deg, rgba(20,199,132,.09), rgba(20,199,132,.02));
  border-radius: 14px; padding: 12px 14px; margin: 2px 0 14px; }
.defi-apr .apr-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 3px 0; font-size: 12.5px; }
.defi-apr .apr-row span { color: var(--text-tertiary); }
.defi-apr .apr-row b { font-variant-numeric: tabular-nums; font-style: normal; }
.defi-apr .apr-tip { font-size: 10.5px; color: var(--text-tertiary); margin-top: 6px; padding-top: 6px; border-top: 1px dashed rgba(20,199,132,.2); }
.defi-pool { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 12px; border-bottom: 1px solid rgba(255,255,255,.05); border-radius: 12px; cursor: pointer; transition: background .15s; }
.defi-pool:hover { background: rgba(255,255,255,.04); }
.defi-pool .dp-l { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.defi-pool .dp-l b { font-size: 14px; }
.defi-pool .dp-l span { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.defi-pool .dp-r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.defi-pool .dp-r b { font-size: 14px; font-variant-numeric: tabular-nums; }
.defi-pool .df-apr { font-size: 11px; font-weight: 600; color: #14C784; background: rgba(20,199,132,.12); border-radius: 999px; padding: 2px 8px; }
.defi-pos { border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 13px 14px; margin-bottom: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0)); }
.defi-pos .dp-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.defi-pos .dp-hd b { font-size: 14.5px; }
.defi-pos .dp-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 3.5px 0; font-size: 12.5px; }
.defi-pos .dp-row span { color: var(--text-tertiary); flex-shrink: 0; }
.defi-pos .dp-row b { font-variant-numeric: tabular-nums; text-align: right; font-style: normal; }
body.light .defi-pos { border-color: rgba(0,0,0,.08); background: #fff; }
body.light .defi-pool { border-bottom-color: rgba(0,0,0,.06); }
@media (max-width: 420px) { .df-grid { gap: 8px; } .defi-page .wl-sec { padding: 16px 12px 8px; } }

/* ============ 策略交易 / 网格交易 (2026-10-01) ============ */
.strat-entry { display: flex; gap: 8px; padding: 8px 16px 0; }
.strat-entry button {
  flex: 1; height: 36px; border-radius: 10px; cursor: pointer; font-size: 13px; font-weight: 600;
  color: var(--text-secondary); background: var(--bg-secondary); border: 1px solid var(--border);
  transition: color .15s, border-color .15s, background .15s;
}
.strat-entry button:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.strat-hero, .grid-hero { padding: 18px 18px 16px; border-radius: 18px; border: 1px solid rgba(20,199,132,.28);
  background: linear-gradient(150deg, rgba(20,199,132,.16), rgba(20,199,132,.04) 70%, rgba(255,255,255,0)); }
.strat-hero h2 { font-size: 19px; font-weight: 760; margin: 0 0 6px; }
.strat-hero p { font-size: 12.5px; color: var(--text-secondary); margin: 0; line-height: 1.6; }
.grid-hero .dh-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.grid-hero h2 { font-size: 19px; font-weight: 760; margin: 0; }
.grid-hero .dh-badge { font-size: 10.5px; font-weight: 600; color: #14C784; background: rgba(20,199,132,.14);
  border: 1px solid rgba(20,199,132,.35); border-radius: 999px; padding: 2px 9px; }
.grid-hero p { font-size: 12.5px; color: var(--text-secondary); margin: 0; line-height: 1.6; }
.strat-card { display: flex; align-items: center; gap: 12px; padding: 14px 12px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,.06); margin-bottom: 10px; cursor: pointer; transition: background .15s, border-color .15s; }
.strat-card:hover { background: rgba(255,255,255,.035); border-color: rgba(255,255,255,.12); }
.sc-ic { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; flex-shrink: 0; }
.sc-body { flex: 1; min-width: 0; }
.sc-hd { display: flex; align-items: center; gap: 8px; }
.sc-hd b { font-size: 14.5px; }
.sc-tag { font-size: 10px; font-weight: 600; color: var(--text-tertiary); border: 1px solid var(--border); border-radius: 999px; padding: 1px 7px; }
.sc-desc { font-size: 11.5px; color: var(--text-tertiary); margin-top: 3px; line-height: 1.5; }
.sc-arrow { color: var(--text-tertiary); font-size: 20px; }
.strat-sum { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 2px 12px; font-size: 12px; color: var(--text-tertiary); }
.strat-sum b { font-style: normal; }
.grid-card { border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 13px 14px; margin-bottom: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0)); }
.gc-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.gc-hd b { font-size: 14.5px; }
.gc-tag { font-size: 10px; font-weight: 600; color: #14C784; background: rgba(20,199,132,.13); border-radius: 999px; padding: 2px 8px; margin-left: 8px; }
.gc-pnl { font-size: 15px; font-weight: 700; font-style: normal; }
.gc-pnl small { font-size: 11px; font-weight: 600; opacity: .85; }
.gc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.gc-grid > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; padding: 2.5px 0; }
.gc-grid span { color: var(--text-tertiary); flex-shrink: 0; }
.gc-grid b { font-variant-numeric: tabular-nums; font-style: normal; text-align: right; }
.gc-acts { display: flex; gap: 8px; margin-top: 10px; }
.gc-acts button { flex: 1; }
.btn.danger { background: rgba(246,70,93,.14); border-color: rgba(246,70,93,.4); color: #F6465D; }
.btn.danger:hover { background: rgba(246,70,93,.22); }
.gt-row { display: grid; grid-template-columns: 44px 1fr 1fr 1fr auto; gap: 8px; align-items: center;
  padding: 8px 2px; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 12px; }
.gt-side { font-size: 10.5px; font-weight: 700; border-radius: 6px; padding: 2px 6px; text-align: center; }
.gt-side.buy { color: #14C784; background: rgba(20,199,132,.14); }
.gt-side.sell { color: #F6465D; background: rgba(246,70,93,.14); }
.gt-row .num { font-variant-numeric: tabular-nums; font-style: normal; text-align: right; }
body.light .strat-card, body.light .grid-card { border-color: rgba(0,0,0,.08); }
@media (max-width: 420px) { .gc-grid { grid-template-columns: 1fr; } }

/* ============ 订单簿大窗 (盘口 + 深度图 + 最新成交) ============ */
.ob-expand { margin-left: auto; color: var(--text-tertiary); font-size: 13px; }
.ob-th { cursor: pointer; }
.ob-empty { padding: 12px 0; text-align: center; font-size: 11.5px; color: var(--text-tertiary); }
.obs-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 2px 2px 10px; }
.obs-hd .obs-sym b { font-size: 17px; font-weight: 750; }
.obs-hd .obs-sym span { font-size: 12px; }
.obs-hd .obs-px { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.obs-hd .obs-px i { font-style: normal; font-size: 12px; margin-left: 4px; }
.obs-tabs { display: flex; gap: 6px; padding: 0 2px 10px; overflow-x: auto; scrollbar-width: none; }
.obs-tabs::-webkit-scrollbar { display: none; }
.obs-tabs button {
  flex-shrink: 0; padding: 6px 12px; border-radius: 999px; font-size: 12px; cursor: pointer;
  color: var(--text-secondary); background: var(--bg-secondary); border: 1px solid var(--border);
}
.obs-tabs button.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.obs-body { max-height: 62vh; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
.obs-sec { margin-bottom: 12px; }
.obs-sec-hd { font-size: 11.5px; color: var(--text-tertiary); padding: 6px 2px; position: sticky; top: 0; background: var(--surface); z-index: 1; }
.obs-trhead { display: grid; grid-template-columns: 1fr 1fr 1fr; font-size: 11px; color: var(--text-tertiary); padding: 4px 8px; }
.obs-trhead span:nth-child(2), .obs-trhead span:nth-child(3) { text-align: right; }
.obs-trhead span:only-child, .obs-trhead span:first-child { text-align: left; }
.obs-row { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  padding: 6px 8px; font-size: 12.5px; border-radius: 6px; overflow: hidden; }
.obs-row .obs-bar { position: absolute; right: 0; top: 0; bottom: 0; opacity: .15; }
.obs-row.ask .obs-bar { background: #F6465D; }
.obs-row.bid .obs-bar { background: #14C784; }
.obs-row .obs-p { position: relative; font-variant-numeric: tabular-nums; }
.obs-row.ask .obs-p { color: #F6465D; }
.obs-row.bid .obs-p { color: #14C784; }
.obs-row .obs-q { position: relative; text-align: right; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.obs-chart { width: 100%; height: 150px; background: var(--bg-secondary); border-radius: 12px; overflow: hidden; }
.obs-svg { width: 100%; height: 100%; display: block; }
.obs-tr { display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 5px 8px; font-size: 12.5px; }
.obs-tr span:nth-child(2), .obs-tr span:nth-child(3) { text-align: right; }
.obs-tr.buy span:first-child { color: #14C784; }
.obs-tr.sell span:first-child { color: #F6465D; }
.obs-tr span { font-variant-numeric: tabular-nums; }

/* ==================================================================
   2026-10 改版: 行情全市场搜索 / 盘口买卖并排 / 深度V形图 / 我的页(黄黑)
   ================================================================== */

/* ===== 行情列表: 5 列 + 更大行距 (防溢出) ===== */
.mk-wrap { overflow-x: hidden; }
.mk-tr { display: grid; align-items: center; gap: 10px; width: 100%;
  grid-template-columns: 26px minmax(0, 1.8fr) minmax(84px, .95fr) minmax(80px, .9fr) minmax(92px, 1fr); }
.mk-tr > * { min-width: 0; }
.mk-r { padding: 15px 12px; border-radius: 12px; }
.mk-nm { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; }
.mk-nm .mk-nmtxt { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.mk-nm .mk-nmtxt b { font-size: 14px; line-height: 1.25; }
.mk-nm .mk-nmtxt em { font-style: normal; font-size: 10.5px; line-height: 1.2; color: var(--text-tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-tag { font-style: normal; font-size: 9.5px; padding: 1px 5px; border-radius: 5px; background: rgba(240,185,11,.14); color: #F0B90B; margin-left: 2px; flex-shrink: 0; }
.mk-tag.on { background: rgba(20,199,132,.14); color: #14C784; }
body.light .mk-tag { background: rgba(180,140,10,.14); color: #8a6d09; }
@media (max-width: 640px) {
  .mk-tr { grid-template-columns: 20px minmax(0, 1fr) 68px 58px 62px; gap: 5px; padding-left: 8px; padding-right: 8px; }
  .mk-hd { padding-left: 8px; padding-right: 8px; }
  .mk-hd .mk-vl, .mk-r .mk-vl { display: block; }
  .mk-hd .mk-sp, .mk-r .mk-sp { display: none; }
  .mk-r { padding-top: 13px; padding-bottom: 13px; }
  .mk-nm .mk-nmtxt b { font-size: 12.5px; }
  .mk-nm .mk-nmtxt em { font-size: 9.5px; }
  .mk-nm .mk-ic { width: 22px; height: 22px; }
  .mk-pr { font-size: 12px; }
  .mk-ch .mk-chg { font-size: 10.5px; padding: 2px 6px; }
  .mk-vl { font-size: 10.5px; }
}

/* ===== 订单簿: 买左卖右并排 + 精度 ===== */
.ob-top { display: flex; align-items: center; gap: 8px; padding: 9px 14px 6px; }
.ob-title { font-size: 12px; color: var(--text-secondary); font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.ob-last { font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ob-last i { font-style: normal; font-size: 11px; margin-left: 4px; }
.ob-prec { margin-left: auto; display: flex; gap: 3px; }
.ob-prec button { font-size: 10.5px; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--border); background: transparent; color: var(--text-secondary); cursor: pointer; }
.ob-prec button.active { background: #F0B90B; border-color: #F0B90B; color: #0b0e11; font-weight: 700; }
.ob-cols-head { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 2px 14px 4px; font-size: 10.5px; color: var(--text-tertiary); }
.ob-cols-head span { text-align: right; }
.ob-grid { padding: 0 8px 8px; }
.ob-line { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ob-side { position: relative; display: flex; font-size: 11.5px; padding: 3.5px 6px; overflow: hidden; font-family: var(--mono); border-radius: 4px; }
.ob-side .ob-bar { position: absolute; top: 0; bottom: 0; right: 0; opacity: .10; }
.ob-side.bid .ob-bar { background: #14C784; }
.ob-side.ask .ob-bar { background: #F6465D; }
.ob-side span { position: relative; z-index: 1; }
.ob-side .ob-p { flex: 1; text-align: left; font-weight: 600; }
.ob-side.bid .ob-p { color: var(--up); }
.ob-side.ask .ob-p { color: var(--down); }
.ob-side .ob-q { flex: 1; text-align: right; color: var(--text-secondary); }
.ob-side.empty { opacity: .22; }

/* ===== 订单簿大窗: 盘口并排 / 深度图 ===== */
.obs-prec { display: flex; gap: 4px; padding: 0 0 9px; }
.obs-prec button { font-size: 11px; padding: 3px 9px; border-radius: 8px; border: 1px solid var(--border); background: transparent; color: var(--text-secondary); cursor: pointer; }
.obs-prec button.active { background: #F0B90B; border-color: #F0B90B; color: #0b0e11; font-weight: 700; }
.obs-chead { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 2px 7px; font-size: 10.5px; color: var(--text-tertiary); }
.obs-chead span:last-child { text-align: right; }
.obs-crow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.obs-c2 { position: relative; display: flex; font-size: 12px; padding: 4px 6px; overflow: hidden; font-family: var(--mono); border-radius: 4px; }
.obs-c2 .obs-bar { position: absolute; top: 0; bottom: 0; right: 0; opacity: .10; }
.obs-c2.bid .obs-bar { background: #14C784; }
.obs-c2.ask .obs-bar { background: #F6465D; }
.obs-c2 span { position: relative; z-index: 1; }
.obs-c2 .obs-p { flex: 1; text-align: left; font-weight: 600; }
.obs-c2.bid .obs-p { color: var(--up); }
.obs-c2.ask .obs-p { color: var(--down); }
.obs-c2 .obs-q { flex: 1; text-align: right; color: var(--text-secondary); }
.obs-c2.empty { opacity: .22; }
.obs-svg { display: block; width: 100%; }

/* ===== 我的页面 (币安黄黑风) ===== */
.mine2 { max-width: 1080px; margin: 0 auto; padding: 14px 16px 30px; }
.mine2-hero { position: relative; overflow: hidden; border-radius: 20px; padding: 20px 18px 16px;
  background: linear-gradient(135deg, #0b0e11 0%, #1b1f26 62%, #2a2410 100%);
  border: 1px solid rgba(240,185,11,.28);
  box-shadow: 0 14px 40px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.04); }
.mine2-hero::after { content: ''; position: absolute; right: -70px; top: -80px; width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(240,185,11,.25), transparent 62%); pointer-events: none; }
.mine2-id { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.avatar-lg { width: 60px; height: 60px; border-radius: 50%; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; position: relative; flex-shrink: 0; }
.mine2-av { box-shadow: 0 0 0 3px rgba(240,185,11,.25); border: 1px solid rgba(240,185,11,.55); cursor: pointer; }
.mine2-av .av-gen { width: 100%; height: 100%; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 19px; }
.mine2-av img { width: 100%; height: 100%; border-radius: 50%; }
.mine2-av-edit { position: absolute; right: -2px; bottom: -2px; width: 20px; height: 20px; border-radius: 50%; background: #F0B90B; color: #0b0e11; font-size: 11px; font-style: normal; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.mine2-meta { flex: 1; min-width: 0; }
.mine2-name { font-size: 18px; font-weight: 750; color: #fff; }
.mine2-uid { font-size: 11.5px; color: rgba(255,255,255,.55); margin-top: 3px; word-break: break-all; }
.mine2-set { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #fff; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.mine2-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; position: relative; z-index: 1; }
.mine2-tag { font-size: 11px; padding: 3px 9px; border-radius: 20px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.75); }
.mine2-tag.ok { background: rgba(20,199,132,.16); color: #2ee0a0; }
.mine2-tag.warn { background: rgba(240,185,11,.18); color: #F0B90B; }
.mine2-tag.vip { background: linear-gradient(135deg, #F0B90B, #e8a80b); color: #0b0e11; font-weight: 700; }
.mine2-earn { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 24px 0 8px; }
.me-fn { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 13px 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); cursor: pointer; color: var(--text); }
.me-fn b { font-size: 14px; font-weight: 700; }
.me-fn span { font-size: 10.5px; color: var(--text-tertiary); }
.me-fn:active { transform: scale(.97); }
.mine2-sec { font-size: 12px; color: var(--text-tertiary); margin: 16px 4px 8px; }
.mine2-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.mine2-card .li { display: flex; align-items: center; gap: 11px; padding: 14px; border-bottom: 1px solid var(--border); cursor: pointer; }
.mine2-card .li:last-child { border-bottom: none; }
.mine2-card .li .lbl { flex: 1; font-size: 14px; font-weight: 600; }
.mine2-card .li .arr { color: var(--text-tertiary); font-size: 18px; }
.mine2-card .li .mi { width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mine2-card .li .mi svg { width: 17px; height: 17px; }
.mine2-card .li.danger { color: var(--red); }
body.light .mine2-hero { background: linear-gradient(135deg, #fdf6df 0%, #f6f1e4 60%, #f3ecd8 100%); border-color: rgba(200,160,20,.4); }
body.light .mine2-name { color: #241f12; }
body.light .mine2-uid { color: rgba(0,0,0,.45); }
body.light .mine2-set { background: rgba(0,0,0,.04); border-color: rgba(0,0,0,.1); color: #241f12; }
body.light .mine2-tag { background: rgba(0,0,0,.06); color: rgba(0,0,0,.6); }
@media (max-width: 480px) {
  .mine2-earn { gap: 8px; }
  .me-fn b { font-size: 13px; }
}
.sym-q { font-style: normal; font-size: 12px; color: var(--text-tertiary); font-weight: 400; }

/* ===== 币种图标 (交易所图标本地缓存 + 字母兜底) ===== */
.ci-wrap { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.ci-wrap b { position: relative; z-index: 0; font-weight: 700; }
.ci-wrap img { position: absolute; inset: 0; z-index: 1; }
.ci-mini { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; overflow: hidden; background: rgba(255,255,255,.06); flex-shrink: 0; font-size: 11px; font-weight: 700; }
body.light .ci-mini { background: rgba(0,0,0,.05); }
.pos-coin { display: inline-flex; align-items: center; gap: 8px; }
.pos-coin b { font-weight: 600; }

/* ===== 内联订单簿: 价格/数量不重叠 ===== */
.ob-row { gap: 10px; }
.ob-row .ob-p, .ob-row .ob-q { white-space: nowrap; }
.ob-th span { white-space: nowrap; }

/* ===== 安全设置弹窗输入框间距 ===== */
.sheet .field + .field { margin-top: 14px; }

/* ===== 行情列表表头: 取消 sticky, 修复首行被表头遮挡 ===== */
.mk-hd { position: static; top: auto; }

/* ===== 行情页: 下滑加载更多 + 底部留白修复 ===== */
.mk-more { text-align: center; color: var(--text-tertiary); font-size: 12px; padding: 16px 0 6px; }
#app { padding-bottom: 20px; }
.mine2 { padding-bottom: 78px; }
[data-tab="mine"] .mine2-card:last-child { margin-bottom: 0; }

/* ===== 我的页图标: 高级扁平化 (中性底 + 单色描边, 去掉彩虹底) ===== */
.mine2-card .li .mi { background: var(--bg-secondary) !important; color: var(--text-secondary) !important; border: 1px solid var(--border); }
.mine2-card .li .mi svg { stroke-width: 1.6; }
.mine2-card .li.danger .mi { color: var(--red) !important; }
body.light .mine2-card .li .mi { background: rgba(0,0,0,.045) !important; }
