/* 设计令牌：直接对齐《AiTrader手机版UI设计稿_v0.3》 */
:root {
  --bg: #07090D;
  --panel: #0D1117;
  --surface: #141A22;
  --surface2: #1B232E;
  --line: rgba(255, 255, 255, .07);
  --line2: rgba(255, 255, 255, .13);
  --text: #EEF2F7;
  --muted: #8D99A9;
  --dim: #586474;
  --up: #F0545E;
  --down: #1FBF75;
  --gold: #F5B940;
  --info: #5B9DFF;
  --amber: #F0A93B;
  --f: "Alibaba PuHuiTi", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  --fn: "Bahnschrift", "DIN Alternate", "SF Mono", "Roboto Condensed", var(--f);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body {
  height: 100%;
  background: #05070A;
  /* 阻止移动端下拉刷新 / 横向橡皮筋：SPA 自己管滚动，浏览器别插手 */
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
  color: var(--text);
  font-family: var(--f);
  font-size: 13px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, input, select, textarea { font: inherit; color: inherit; border: 0; background: none; outline: none; }
button { cursor: pointer; touch-action: manipulation; }
/* 可点区域统一消除双击缩放延迟 */
a, [data-act], [data-toggle], .row, .lrow { touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

.up { color: var(--up); }
.down { color: var(--down); }
.gold-t { color: var(--gold); }
.num { font-family: var(--fn); font-variant-numeric: tabular-nums; letter-spacing: .1px; }
.cap { font-size: 11px; color: var(--dim); }
.row { display: flex; align-items: center; justify-content: space-between; }
.row.base { align-items: baseline; }
.hide { display: none !important; }
