/* ==========================================================================
 * GooSun FX 移动端样式（< 1024px 自动激活）
 * 设计参考四屏移动版：行情 / 交易 / 持仓 / 资讯 / 我的
 * 品牌色：金色 #E5A83A，深底 #0d1226，绿涨 #16a34a，红跌 #ef4444
 * ========================================================================== */

/* 基础变量 */
:root {
  --gx-gold: #E5A83A;
  --gx-gold-soft: rgba(229, 168, 58, 0.12);
  --gx-up: #16a34a;
  --gx-down: #ef4444;
  --gx-bg: #0d1226;
  --gx-bg-2: #131a36;
  --gx-bg-3: #1a2244;
  --gx-card: #161d3a;
  --gx-border: rgba(255, 255, 255, 0.06);
  --gx-text: #f1f5f9;
  --gx-text-2: #94a3b8;
  --gx-text-3: #64748b;
}

/* ==========================================================================
 * 桌面端默认隐藏移动壳，移动端隐藏桌面壳
 * ========================================================================== */
#mobile-shell { display: none; }

@media (max-width: 1023px) {
  /* 隐藏桌面交易终端 */
  body > .bg-slate-900[data-symbol] > .max-w-\[1600px\],
  #desktop-trade-shell {
    display: none !important;
  }
  /* 显示移动壳 */
  #mobile-shell {
    display: block !important;
    background: var(--gx-bg);
    color: var(--gx-text);
    min-height: 100vh;
    padding-bottom: 72px; /* 给底部 Tab 留空间 */
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }
  /* 隐藏桌面所有顶栏菜单等 */
  body > div > .bg-slate-800.rounded-lg { display: none; }
}

/* ==========================================================================
 * 顶部状态栏（仿 iOS）
 * ========================================================================== */
.gx-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gx-text);
}
.gx-statusbar .gx-time { font-variant-numeric: tabular-nums; }
.gx-statusbar .gx-icons { display: flex; gap: 6px; align-items: center; font-size: 12px; }

/* ==========================================================================
 * 通用 - 卡片 / 间距 / 按钮
 * ========================================================================== */
.gx-page { padding: 0 16px; }

.gx-card {
  background: var(--gx-card);
  border-radius: 14px;
  padding: 14px;
  border: 1px solid var(--gx-border);
}

.gx-card-gold {
  background: var(--gx-card);
  border-radius: 14px;
  padding: 16px;
  border: 1px solid var(--gx-gold);
  position: relative;
  overflow: hidden;
}
.gx-card-gold::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  background: var(--gx-gold);
  opacity: 0.06;
  border-radius: 50%;
  pointer-events: none;
}

.gx-btn-gold {
  background: var(--gx-gold);
  color: #0d1226;
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 14px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: opacity 0.15s;
  width: 100%;
}
.gx-btn-gold:active { opacity: 0.85; }

.gx-btn-ghost {
  background: var(--gx-bg-2);
  color: var(--gx-text);
  border: 1px solid var(--gx-border);
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  width: 100%;
}
.gx-btn-ghost:active { opacity: 0.85; }

/* ==========================================================================
 * 顶部品牌栏（每页通用）
 * ========================================================================== */
.gx-brand-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px 12px;
}
.gx-brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.gx-brand-logo .gx-logo-mark {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
  /* 金色 logo 在深色背景下自带通透感,无需额外底色 */
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.35));
}
.gx-brand-logo .gx-logo-text {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.gx-brand-logo .gx-logo-text .accent { color: var(--gx-gold); }

.gx-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gx-text-2);
  background: transparent;
  border: none;
  cursor: pointer;
}
.gx-icon-btn:active { background: var(--gx-bg-2); }

/* ==========================================================================
 * Screen 1：行情 - 资产卡 + 分类 Pill + 品种列表
 * ========================================================================== */

/* 顶部紧凑资产卡 */
.gx-asset-card {
  background: var(--gx-card);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 0 16px 14px;
}
.gx-asset-card .gx-asset-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--gx-text-2);
  margin-bottom: 4px;
}
.gx-asset-card .gx-asset-label .gx-chip-health {
  background: rgba(22, 163, 74, 0.18);
  color: var(--gx-up);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}
.gx-asset-card .gx-asset-eye {
  color: var(--gx-text-3);
  cursor: pointer;
  margin-left: 8px;
}
.gx-asset-card .gx-asset-balance {
  font-size: 28px;
  font-weight: 800;
  font-feature-settings: 'tnum';
  letter-spacing: -0.5px;
  margin: 2px 0 12px;
  color: var(--gx-text);
}
.gx-asset-card .gx-asset-balance .gx-cents {
  font-size: 18px;
  color: var(--gx-text-2);
  font-weight: 700;
}
.gx-asset-card .gx-asset-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  border-top: 1px solid var(--gx-border);
  padding-top: 10px;
}
.gx-asset-card .gx-asset-cell .lab {
  font-size: 10px;
  color: var(--gx-text-3);
  margin-bottom: 2px;
}
.gx-asset-card .gx-asset-cell .val {
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.gx-asset-card .gx-asset-cell .val.up { color: var(--gx-up); }
.gx-asset-card .gx-asset-cell .val.down { color: var(--gx-down); }
.gx-asset-card .gx-asset-cell .val.gold { color: var(--gx-gold); }

/* 分类 Pill 横向滚动 */
.gx-pill-bar {
  display: flex;
  gap: 8px;
  padding: 0 16px 12px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.gx-pill-bar::-webkit-scrollbar { display: none; }
.gx-pill {
  flex-shrink: 0;
  padding: 8px 16px;
  background: var(--gx-bg-2);
  color: var(--gx-text-2);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
}
.gx-pill.active {
  background: var(--gx-gold);
  color: #0d1226;
  font-weight: 700;
}
.gx-pill .gx-star { color: var(--gx-gold); margin-right: 4px; }
.gx-pill.active .gx-star { color: #0d1226; }

/* 品种列表 */
.gx-symbol-list {
  background: transparent;
}
.gx-symbol-row {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  background: transparent;
  cursor: pointer;
  border-left: 2px solid transparent;
  transition: background 0.15s;
}
.gx-symbol-row:active { background: var(--gx-bg-2); }
.gx-symbol-row.selected {
  border-left-color: var(--gx-gold);
  background: rgba(229, 168, 58, 0.05);
}
.gx-symbol-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gx-bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  margin-right: 12px;
  flex-shrink: 0;
}
.gx-symbol-icon.gold { background: rgba(229, 168, 58, 0.2); color: var(--gx-gold); }
.gx-symbol-icon.silver { background: rgba(148, 163, 184, 0.2); color: #cbd5e1; }
.gx-symbol-icon.forex { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.gx-symbol-icon.crypto { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.gx-symbol-icon.index { background: rgba(168, 85, 247, 0.2); color: #c084fc; }
.gx-symbol-icon.oil { background: rgba(100, 116, 139, 0.2); color: #94a3b8; }
.gx-symbol-info { flex: 1; min-width: 0; }
.gx-symbol-info .sym {
  font-size: 15px;
  font-weight: 700;
  color: var(--gx-text);
  letter-spacing: 0.3px;
}
.gx-symbol-info .name {
  font-size: 11px;
  color: var(--gx-text-3);
  margin-top: 2px;
}
.gx-symbol-spark {
  width: 60px;
  height: 24px;
  margin: 0 12px;
  flex-shrink: 0;
}
.gx-symbol-quote { text-align: right; flex-shrink: 0; min-width: 80px; }
.gx-symbol-quote .price {
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.gx-symbol-quote .price.up { color: var(--gx-up); }
.gx-symbol-quote .price.down { color: var(--gx-down); }
.gx-symbol-quote .pct {
  font-size: 11px;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.gx-symbol-quote .pct.up { color: var(--gx-up); }
.gx-symbol-quote .pct.down { color: var(--gx-down); }

/* ==========================================================================
 * Screen 2：交易 - 报价区 + 图表 + BUY/SELL + 手数 + SL/TP
 * ========================================================================== */
.gx-trade-header {
  display: flex;
  align-items: center;
  padding: 8px 16px 12px;
  gap: 8px;
}
.gx-trade-header .back {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gx-text-2);
  cursor: pointer;
}
.gx-trade-header .sym-picker {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 700;
}
.gx-trade-header .sym-picker .gx-symbol-icon {
  width: 28px; height: 28px; margin: 0; font-size: 11px;
}
.gx-trade-header .sym-picker .arrow { color: var(--gx-text-3); font-size: 11px; }
.gx-trade-header .star {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gx-gold);
  font-size: 18px;
  cursor: pointer;
}
.gx-trade-header .more {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gx-text-2);
  cursor: pointer;
}

.gx-quote-block {
  padding: 0 16px 12px;
}
.gx-quote-price {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
  display: inline-block;
  margin-right: 8px;
}
.gx-quote-price.up { color: var(--gx-up); }
.gx-quote-price.down { color: var(--gx-down); }
.gx-quote-spark {
  display: inline-block;
  vertical-align: middle;
  width: 60px;
  height: 24px;
  opacity: 0.6;
}
.gx-quote-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--gx-text-2);
  font-variant-numeric: tabular-nums;
}
.gx-quote-meta .chg.up { color: var(--gx-up); }
.gx-quote-meta .chg.down { color: var(--gx-down); }

/* 时间周期 */
.gx-tf-bar {
  display: flex;
  gap: 4px;
  padding: 0 16px 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.gx-tf-bar::-webkit-scrollbar { display: none; }
.gx-tf-pill {
  padding: 6px 14px;
  background: transparent;
  color: var(--gx-text-2);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.gx-tf-pill.active {
  background: var(--gx-bg-2);
  color: var(--gx-gold);
}

/* 移动版图表容器 */
.gx-chart-mobile {
  height: 200px;
  margin: 0 16px 12px;
  border-radius: 10px;
  background: var(--gx-bg);
  position: relative;
  overflow: hidden;
}

/* BUY / SELL 大按钮 */
.gx-trade-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 16px 12px;
}
.gx-bs-btn {
  border-radius: 12px;
  padding: 14px 12px;
  text-align: center;
  cursor: pointer;
  border: none;
  color: white;
  font-family: inherit;
}
.gx-bs-btn.sell { background: var(--gx-down); }
.gx-bs-btn.buy { background: var(--gx-up); }
.gx-bs-btn:active { opacity: 0.85; }
.gx-bs-btn .lab {
  font-size: 11px;
  letter-spacing: 1px;
  opacity: 0.9;
  margin-bottom: 4px;
  font-weight: 700;
}
.gx-bs-btn .price {
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.gx-bs-btn .price sup {
  font-size: 14px;
  font-weight: 700;
  vertical-align: super;
  margin-left: 1px;
  opacity: 0.9;
}
.gx-bs-btn .pip {
  font-size: 11px;
  opacity: 0.85;
  margin-top: 4px;
  font-weight: 600;
}

/* 手数控件 */
.gx-lot-card {
  background: var(--gx-card);
  border-radius: 14px;
  padding: 14px;
  margin: 0 16px 12px;
}
.gx-lot-head {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--gx-text-2);
  margin-bottom: 8px;
}
.gx-lot-head .notional { color: var(--gx-text-3); }
.gx-lot-input-row {
  display: flex;
  align-items: center;
  background: var(--gx-bg-2);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 8px;
}
.gx-lot-input-row .lot-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: var(--gx-text-2);
  font-size: 18px;
  cursor: pointer;
  font-weight: 700;
}
.gx-lot-input-row .lot-btn:active { background: var(--gx-bg-3); }
.gx-lot-input-row input {
  flex: 1;
  background: transparent;
  border: none;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--gx-text);
  font-variant-numeric: tabular-nums;
  outline: none;
  padding: 8px 0;
}
.gx-lot-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.gx-lot-preset {
  background: var(--gx-bg-2);
  color: var(--gx-text-2);
  border: 1px solid var(--gx-border);
  border-radius: 8px;
  padding: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}
.gx-lot-preset.active {
  border-color: var(--gx-gold);
  color: var(--gx-gold);
  background: var(--gx-gold-soft);
}

/* 风险摘要条 */
.gx-risk-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px 8px;
  font-size: 11px;
  color: var(--gx-text-3);
}
.gx-risk-bar span.val { color: var(--gx-text-2); font-weight: 700; }
.gx-risk-bar .sltp-toggle {
  background: transparent;
  border: 1px solid var(--gx-border);
  color: var(--gx-text-2);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
}

/* SL/TP 折叠区 */
.gx-sltp-panel {
  padding: 0 16px 12px;
  display: none;
}
.gx-sltp-panel.open { display: block; }
.gx-sltp-panel .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.gx-sltp-panel .field {
  background: var(--gx-card);
  border-radius: 10px;
  padding: 10px 12px;
}
.gx-sltp-panel .field .lab { font-size: 11px; color: var(--gx-text-3); margin-bottom: 4px; }
.gx-sltp-panel .field input {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--gx-text);
  font-size: 14px;
  font-weight: 600;
  outline: none;
  padding: 0;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
 * Screen 3：订单中心
 * ========================================================================== */
.gx-orders-tabs {
  display: flex;
  gap: 18px;
  padding: 0 16px 14px;
  border-bottom: 1px solid var(--gx-border);
}
.gx-orders-tab {
  background: transparent;
  border: none;
  color: var(--gx-text-2);
  font-size: 14px;
  font-weight: 600;
  padding: 4px 0 8px;
  cursor: pointer;
  position: relative;
}
.gx-orders-tab.active {
  color: var(--gx-text);
  font-weight: 700;
}
.gx-orders-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gx-gold);
  border-radius: 2px;
}
.gx-orders-tab .badge {
  font-size: 11px;
  margin-left: 4px;
  color: var(--gx-text-3);
  font-weight: 600;
}

/* 合计浮盈大卡 */
.gx-total-pnl-card {
  background: var(--gx-card);
  border-radius: 14px;
  padding: 16px;
  margin: 14px 16px 12px;
  border: 1px solid rgba(22, 163, 74, 0.3);
}
.gx-total-pnl-card.loss { border-color: rgba(239, 68, 68, 0.3); }
.gx-total-pnl-card .head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--gx-text-2);
  margin-bottom: 4px;
}
.gx-total-pnl-card .total {
  font-size: 30px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.gx-total-pnl-card .total.up { color: var(--gx-up); }
.gx-total-pnl-card .total.down { color: var(--gx-down); }
.gx-total-pnl-card .total .pct {
  font-size: 14px;
  font-weight: 600;
  margin-left: 8px;
}
.gx-total-pnl-card .meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--gx-text-3);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--gx-border);
}
.gx-total-pnl-card .meta b { color: var(--gx-text); font-weight: 700; }

/* 持仓卡片 */
.gx-pos-card {
  background: var(--gx-card);
  border-radius: 14px;
  padding: 14px;
  margin: 0 16px 10px;
  border-left: 3px solid var(--gx-up);
  position: relative;
}
.gx-pos-card.sell { border-left-color: var(--gx-down); }
.gx-pos-card .head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.gx-pos-card .head .gx-symbol-icon { width: 30px; height: 30px; margin: 0; font-size: 11px; }
.gx-pos-card .head .info { flex: 1; min-width: 0; }
.gx-pos-card .head .info .sym {
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; gap: 6px;
}
.gx-pos-card .head .info .sym .side {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
}
.gx-pos-card .head .info .sym .side.buy { background: rgba(22, 163, 74, 0.18); color: var(--gx-up); }
.gx-pos-card .head .info .sym .side.sell { background: rgba(239, 68, 68, 0.18); color: var(--gx-down); }
.gx-pos-card .head .info .id {
  font-size: 10px; color: var(--gx-text-3); margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.gx-pos-card .head .pnl-area { text-align: right; }
.gx-pos-card .head .pnl-area .pnl {
  font-size: 17px; font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.gx-pos-card .head .pnl-area .pnl.up { color: var(--gx-up); }
.gx-pos-card .head .pnl-area .pnl.down { color: var(--gx-down); }
.gx-pos-card .head .pnl-area .pip {
  font-size: 11px; margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.gx-pos-card .head .pnl-area .pip.up { color: var(--gx-up); }
.gx-pos-card .head .pnl-area .pip.down { color: var(--gx-down); }

.gx-pos-card .price-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  font-variant-numeric: tabular-nums;
  padding: 8px 0;
  border-top: 1px solid var(--gx-border);
  border-bottom: 1px solid var(--gx-border);
  margin-bottom: 10px;
}
.gx-pos-card .price-row .cell .lab {
  font-size: 10px; color: var(--gx-text-3); margin-bottom: 2px;
}
.gx-pos-card .price-row .cell .val { font-size: 13px; font-weight: 700; }
.gx-pos-card .price-row .cell .val.sl { color: var(--gx-down); }
.gx-pos-card .price-row .cell .val.tp { color: var(--gx-up); }
.gx-pos-card .price-row .cell .val.muted { color: var(--gx-text-3); font-weight: 600; }

.gx-pos-card .actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 8px;
}
.gx-pos-card .actions .btn-edit {
  background: var(--gx-bg-2);
  color: var(--gx-text);
  border: 1px solid var(--gx-border);
  border-radius: 8px;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.gx-pos-card .actions .btn-edit.gold {
  border-color: var(--gx-gold);
  color: var(--gx-gold);
  background: var(--gx-gold-soft);
}
.gx-pos-card .actions .btn-close {
  background: rgba(239, 68, 68, 0.15);
  color: var(--gx-down);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  padding: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.gx-pos-card .actions .btn-close:active { background: var(--gx-down); color: white; }

/* 风险提示卡 */
.gx-risk-tip {
  background: rgba(229, 168, 58, 0.08);
  border: 1px solid rgba(229, 168, 58, 0.3);
  border-radius: 12px;
  padding: 14px;
  margin: 8px 16px 12px;
  display: flex;
  gap: 10px;
}
.gx-risk-tip .icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(229, 168, 58, 0.18);
  color: var(--gx-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.gx-risk-tip .body { flex: 1; }
.gx-risk-tip .body .title {
  font-size: 13px; font-weight: 700; color: var(--gx-gold);
  margin-bottom: 2px;
}
.gx-risk-tip .body .desc {
  font-size: 11px; color: var(--gx-text-2);
  line-height: 1.5;
}

/* ==========================================================================
 * Screen 4：我的
 * ========================================================================== */
.gx-profile-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px 18px;
}
.gx-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gx-bg-2);
  border: 2px solid var(--gx-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gx-gold);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.gx-profile-head .info { flex: 1; min-width: 0; }
.gx-profile-head .info .name {
  display: flex; align-items: center; gap: 6px;
  font-size: 16px; font-weight: 800; color: var(--gx-text);
}
.gx-profile-head .info .name .vip {
  background: rgba(229, 168, 58, 0.18);
  color: var(--gx-gold);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.gx-profile-head .info .id {
  font-size: 11px; color: var(--gx-text-3); margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.gx-profile-head .arrow { color: var(--gx-text-3); }

/* 净值大卡 */
.gx-equity-card {
  margin: 0 16px 18px;
}
.gx-equity-card .equity-label {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--gx-gold); margin-bottom: 6px;
  font-weight: 700;
}
.gx-equity-card .equity-balance {
  font-size: 30px; font-weight: 800; letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
  margin-bottom: 14px;
  color: var(--gx-text);
}
.gx-equity-card .equity-balance .gx-cents {
  font-size: 18px; color: var(--gx-text-2); font-weight: 700;
}
.gx-equity-card .equity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  border-top: 1px solid var(--gx-border);
  padding-top: 12px;
}
.gx-equity-card .equity-grid .cell .lab {
  font-size: 11px; color: var(--gx-text-3); margin-bottom: 2px;
}
.gx-equity-card .equity-grid .cell .val {
  font-size: 15px; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.gx-equity-card .equity-grid .cell .val.up { color: var(--gx-up); }
.gx-equity-card .equity-grid .cell .val.gold { color: var(--gx-gold); }

/* 入金/出金双 CTA */
.gx-cta-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 10px;
  padding: 0 16px 18px;
}
.gx-cta-row .cta-deposit {
  background: var(--gx-gold);
  color: #0d1226;
  border-radius: 10px;
  padding: 14px;
  font-weight: 800;
  font-size: 14px;
  border: none;
  cursor: pointer;
}
.gx-cta-row .cta-withdraw {
  background: var(--gx-bg-2);
  color: var(--gx-text);
  border: 1px solid var(--gx-border);
  border-radius: 10px;
  padding: 14px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

/* 菜单分组 */
.gx-section-title {
  font-size: 12px;
  color: var(--gx-text-3);
  margin: 8px 16px 8px;
  font-weight: 600;
}
.gx-menu-list {
  background: var(--gx-card);
  border-radius: 12px;
  margin: 0 16px 14px;
  overflow: hidden;
}
.gx-menu-item {
  display: flex;
  align-items: center;
  padding: 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--gx-border);
  background: transparent;
  border-left: none;
  border-right: none;
  border-top: none;
  width: 100%;
  text-align: left;
  color: var(--gx-text);
  font-family: inherit;
}
.gx-menu-item:last-child { border-bottom: none; }
.gx-menu-item:active { background: var(--gx-bg-2); }
.gx-menu-item .mi-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
}
.gx-menu-item .mi-icon.green { background: rgba(22, 163, 74, 0.18); color: var(--gx-up); }
.gx-menu-item .mi-icon.gold { background: rgba(229, 168, 58, 0.18); color: var(--gx-gold); }
.gx-menu-item .mi-icon.gray { background: var(--gx-bg-2); color: var(--gx-text-2); }
.gx-menu-item .mi-icon.red { background: rgba(239, 68, 68, 0.18); color: var(--gx-down); }
.gx-menu-item .mi-label { flex: 1; font-size: 14px; font-weight: 600; }
.gx-menu-item .mi-label .desc {
  font-size: 11px; color: var(--gx-text-3); font-weight: 500; margin-top: 2px;
}
.gx-menu-item .mi-chip {
  font-size: 11px; font-weight: 600;
  margin-right: 8px;
  font-variant-numeric: tabular-nums;
}
.gx-menu-item .mi-chip.green { color: var(--gx-up); }
.gx-menu-item .mi-chip.gold { color: var(--gx-gold); }
.gx-menu-item .mi-arrow { color: var(--gx-text-3); font-size: 11px; }

.gx-version {
  text-align: center;
  font-size: 11px;
  color: var(--gx-text-3);
  padding: 14px 16px 8px;
}

/* ==========================================================================
 * 资讯（Screen 5）
 * ========================================================================== */
.gx-news-tabs {
  display: flex;
  gap: 18px;
  padding: 0 16px 14px;
  border-bottom: 1px solid var(--gx-border);
  overflow-x: auto;
  scrollbar-width: none;
}
.gx-news-tabs::-webkit-scrollbar { display: none; }
.gx-news-tab {
  background: transparent;
  border: none;
  color: var(--gx-text-2);
  font-size: 14px;
  font-weight: 600;
  padding: 4px 0 8px;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}
.gx-news-tab.active { color: var(--gx-text); font-weight: 700; }
.gx-news-tab.active::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0;
  height: 2px; background: var(--gx-gold); border-radius: 2px;
}

.gx-news-card {
  background: var(--gx-card);
  border-radius: 12px;
  padding: 14px;
  margin: 14px 16px 0;
  display: flex;
  gap: 12px;
  cursor: pointer;
}
.gx-news-card .icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--gx-bg-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.gx-news-card .body { flex: 1; min-width: 0; }
.gx-news-card .body .meta {
  font-size: 11px; color: var(--gx-text-3);
  display: flex; gap: 8px; margin-bottom: 4px;
}
.gx-news-card .body .meta .tag {
  background: rgba(229, 168, 58, 0.15);
  color: var(--gx-gold);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}
.gx-news-card .body .title {
  font-size: 14px;
  font-weight: 700;
  color: var(--gx-text);
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gx-news-card .body .summary {
  font-size: 12px;
  color: var(--gx-text-2);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 经济日历 */
.gx-cal-card {
  background: var(--gx-card);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 10px 16px 0;
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 12px;
  align-items: center;
}
.gx-cal-card .time {
  font-size: 13px;
  font-weight: 700;
  color: var(--gx-gold);
  font-variant-numeric: tabular-nums;
}
.gx-cal-card .time .date {
  font-size: 10px; color: var(--gx-text-3); font-weight: 500; margin-top: 2px;
}
.gx-cal-card .info .country {
  font-size: 11px; color: var(--gx-text-3); margin-bottom: 2px;
}
.gx-cal-card .info .event {
  font-size: 13px; font-weight: 700; color: var(--gx-text);
}
.gx-cal-card .impact .stars { color: var(--gx-down); font-size: 10px; }
.gx-cal-card .impact .stars.med { color: var(--gx-gold); }
.gx-cal-card .impact .stars.low { color: var(--gx-text-3); }

/* ==========================================================================
 * 底部 Tab 栏（5 项）
 * ========================================================================== */
.gx-tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(13, 18, 38, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--gx-border);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.gx-tabbar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 4px 8px;
  background: transparent;
  border: none;
  color: var(--gx-text-3);
  cursor: pointer;
  font-family: inherit;
}
.gx-tabbar-item .ic {
  font-size: 18px;
  margin-bottom: 3px;
}
.gx-tabbar-item .lab {
  font-size: 11px;
  font-weight: 600;
}
.gx-tabbar-item.active {
  color: var(--gx-gold);
}

/* 加载状态 */
.gx-loading {
  text-align: center;
  padding: 40px 16px;
  color: var(--gx-text-3);
  font-size: 13px;
}
.gx-empty {
  text-align: center;
  padding: 60px 16px;
  color: var(--gx-text-3);
  font-size: 13px;
}
.gx-empty .ic { font-size: 36px; opacity: 0.3; margin-bottom: 10px; display: block; }

/* 页面切换动画 */
.gx-page-fade { animation: gxFade 0.18s ease-out; }
@keyframes gxFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* ==========================================================================
 * PC 端风格深度对齐 — 合计浮盈卡盈亏染色 + 一键平所有仓按钮 + 平仓按钮盈利绿
 * ========================================================================== */

/* 合计浮盈卡：profit / loss / neutral 三态整体染色（与 PC 端 acc-pnl-card 一致） */
.gx-total-pnl-card {
  transition: all 0.2s;
  background: linear-gradient(135deg, #131a36 0%, #161d3a 100%);
  border: 2px solid var(--gx-border);
}
.gx-total-pnl-card.profit {
  border-color: rgba(22, 163, 74, 0.6);
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.15) 0%, rgba(22, 163, 74, 0.05) 100%);
  box-shadow: 0 0 18px rgba(22, 163, 74, 0.35);
}
.gx-total-pnl-card.loss {
  border-color: rgba(239, 68, 68, 0.6);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.05) 100%);
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.35);
}
.gx-total-pnl-card.neutral {
  border-color: var(--gx-border);
  box-shadow: none;
}

/* 一键平所有仓按钮（合计浮盈卡内底部）— 颜色 + 图标 随盈亏切换 */
.gx-close-all-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: white;
  cursor: pointer;
  transition: all 0.18s;
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.gx-close-all-btn .count {
  background: rgba(255, 255, 255, 0.22);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.gx-close-all-btn.profit {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.45);
}
.gx-close-all-btn.profit:active {
  background: linear-gradient(135deg, #15803d 0%, #166534 100%);
  transform: scale(0.98);
}
.gx-close-all-btn.loss,
.gx-close-all-btn.neutral {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.45);
}
.gx-close-all-btn.loss:active,
.gx-close-all-btn.neutral:active {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  transform: scale(0.98);
}

/* 持仓单笔平仓按钮：盈利绿态（与 PC 端持仓表 btn-close-pos.profit 一致） */
.gx-pos-card .actions .btn-close.profit {
  background: rgba(22, 163, 74, 0.15);
  color: var(--gx-up);
  border: 1px solid rgba(22, 163, 74, 0.35);
}
.gx-pos-card .actions .btn-close.profit:active {
  background: var(--gx-up);
  color: white;
}

/* 多单/空单按钮文字层次（与 PC 端 LONG / SHORT 视觉一致） */
.gx-bs-btn.buy {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
}
.gx-bs-btn.sell {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}
.gx-bs-btn:active { transform: scale(0.97); opacity: 0.9; }
.gx-bs-btn .lab i { opacity: 0.9; }

/* 移动端 PC 端 modal-mask 居中弹窗适配（共享 modal-mask 容器，确保不超屏） */
@media (max-width: 1023px) {
  #modal-mask {
    z-index: 9999 !important;
    padding: 16px !important;
  }
  #modal-box {
    max-width: 100% !important;
    width: 100% !important;
    max-height: 88vh !important;
    border-radius: 14px !important;
  }
  #modal-mask .text-2xl { font-size: 20px !important; }
  #modal-mask .text-xl { font-size: 17px !important; }
  /* 二次确认大按钮在小屏更易点击 */
  #modal-mask button { min-height: 44px; }
}

/* 顶部状态栏（移动端时间钟）使用品牌金色细节 */
.gx-statusbar .gx-time { color: var(--gx-gold); }

/* ==========================================================================
 * PC 端风格深度对齐 — 市场屏资产卡 + 我的屏净值卡 实时浮盈染色
 * ========================================================================== */

/* 市场屏顶部资产卡：盈亏整体染色 + 光晕 */
.gx-asset-card {
  transition: all 0.2s;
  border: 2px solid transparent;
}
.gx-asset-card.profit {
  border-color: rgba(22, 163, 74, 0.5);
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.12) 0%, var(--gx-card) 100%);
  box-shadow: 0 0 16px rgba(22, 163, 74, 0.25);
}
.gx-asset-card.loss {
  border-color: rgba(239, 68, 68, 0.5);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, var(--gx-card) 100%);
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.25);
}
.gx-asset-card.neutral { border-color: var(--gx-border); }

/* 我的屏净值卡：盈亏整体染色 + 实时浮盈大数字行 */
.gx-equity-card {
  transition: all 0.2s;
  border: 2px solid transparent;
}
.gx-equity-card.profit {
  border-color: rgba(22, 163, 74, 0.55);
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.14) 0%, var(--gx-card) 100%);
  box-shadow: 0 0 18px rgba(22, 163, 74, 0.3);
}
.gx-equity-card.loss {
  border-color: rgba(239, 68, 68, 0.55);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.14) 0%, var(--gx-card) 100%);
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.3);
}
.gx-equity-card.neutral { border-color: var(--gx-border); }

/* 净值卡内的实时浮盈行（与 PC 端 acc-pnl 大数字一致） */
.gx-equity-card .equity-pnl-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: baseline;
  gap: 8px;
  padding: 10px 12px;
  margin: 10px 0 12px;
  background: rgba(13, 18, 38, 0.55);
  border: 1px solid var(--gx-border);
  border-radius: 10px;
}
.gx-equity-card .equity-pnl-row .lab {
  font-size: 11px;
  color: var(--gx-text-2);
  font-weight: 700;
  letter-spacing: 0.3px;
}
.gx-equity-card .equity-pnl-row .big {
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.3px;
}
.gx-equity-card .equity-pnl-row .big.up { color: var(--gx-up); }
.gx-equity-card .equity-pnl-row .big.down { color: var(--gx-down); }
.gx-equity-card .equity-pnl-row .pct {
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.gx-equity-card .equity-pnl-row .pct.up { color: var(--gx-up); }
.gx-equity-card .equity-pnl-row .pct.down { color: var(--gx-down); }

/* 品种列表 hover/active 微交互（更接近 PC 列表） */
.gx-symbol-row {
  position: relative;
}
.gx-symbol-row.selected::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--gx-gold);
  box-shadow: 0 0 8px var(--gx-gold);
}
.gx-symbol-row .price.up { text-shadow: 0 0 4px rgba(22, 163, 74, 0.25); }
.gx-symbol-row .price.down { text-shadow: 0 0 4px rgba(239, 68, 68, 0.25); }

/* 菜单卡片化：与 PC 端账户菜单 hover 一致的轻微抬升感 */
.gx-menu-list { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18); }
.gx-menu-item:hover { background: var(--gx-bg-2); }

/* 入金按钮品牌金高光（与 PC 端顶栏入金按钮一致） */
.gx-cta-row .cta-deposit {
  background: linear-gradient(135deg, #f0c050 0%, #E5A83A 50%, #c8941e 100%);
  box-shadow: 0 4px 14px rgba(229, 168, 58, 0.45);
}
.gx-cta-row .cta-deposit:active { transform: scale(0.97); }

/* ==========================================================================
   历史订单卡片盈亏整体染色（对齐 PC 风格）
   ========================================================================== */
.gx-pos-card.history-card {
  transition: all 0.25s ease;
}
.gx-pos-card.history-card.history-profit {
  border-left-color: var(--gx-up);
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.10) 0%, rgba(22, 163, 74, 0.02) 100%);
  box-shadow: 0 0 12px rgba(22, 163, 74, 0.15);
}
.gx-pos-card.history-card.history-loss {
  border-left-color: var(--gx-down);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.10) 0%, rgba(239, 68, 68, 0.02) 100%);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.12);
}
.gx-pos-card.history-card.history-neutral {
  border-left-color: var(--gx-border);
  background: var(--gx-card);
}

/* ==========================================================================
   底部 Tab 持仓徽章（盈/亏/中性三态）
   ========================================================================== */
.gx-tabbar-item { position: relative; }
.gx-tabbar-item .badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 18px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
  color: #fff;
  background: var(--gx-gold);
  box-shadow: 0 0 6px rgba(229, 168, 58, 0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}
.gx-tabbar-item .badge.profit {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  box-shadow: 0 0 6px rgba(22, 163, 74, 0.6);
}
.gx-tabbar-item .badge.loss {
  background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
}
.gx-tabbar-item .badge.neutral {
  background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
  box-shadow: 0 0 6px rgba(100, 116, 139, 0.4);
}

/* ==========================================================================
   资讯卡片分类色边
   ========================================================================== */
.gx-news-card { border-left: 3px solid transparent; transition: all 0.2s ease; }
.gx-news-card.cat-gold    { border-left-color: #E5A83A; }
.gx-news-card.cat-forex   { border-left-color: #3b82f6; }
.gx-news-card.cat-crypto  { border-left-color: #a855f7; }
.gx-news-card.cat-stock   { border-left-color: #16a34a; }
.gx-news-card.cat-energy  { border-left-color: #f97316; }
.gx-news-card.cat-default { border-left-color: var(--gx-border); }

.gx-news-card .meta .tag.cat-gold    { background: rgba(229, 168, 58, 0.18); color: #E5A83A; }
.gx-news-card .meta .tag.cat-forex   { background: rgba(59, 130, 246, 0.18); color: #3b82f6; }
.gx-news-card .meta .tag.cat-crypto  { background: rgba(168, 85, 247, 0.18); color: #a855f7; }
.gx-news-card .meta .tag.cat-stock   { background: rgba(22, 163, 74, 0.18); color: var(--gx-up); }
.gx-news-card .meta .tag.cat-energy  { background: rgba(249, 115, 22, 0.18); color: #f97316; }

/* ==========================================================================
   移动端杠杆调整 pill（在风险栏内）
   ========================================================================== */
.gx-mob-lev-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  line-height: 1.2;
  background: linear-gradient(135deg, rgba(229, 168, 58, 0.18) 0%, rgba(229, 168, 58, 0.06) 100%);
  border: 1px solid rgba(229, 168, 58, 0.45);
  color: #f5d27a;
  cursor: pointer;
  transition: all 0.15s ease;
}
.gx-mob-lev-pill:active {
  transform: scale(0.95);
  background: linear-gradient(135deg, rgba(229, 168, 58, 0.32) 0%, rgba(229, 168, 58, 0.18) 100%);
}
.gx-mob-lev-pill.custom {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.20) 0%, rgba(34, 197, 94, 0.06) 100%);
  border-color: rgba(34, 197, 94, 0.55);
  color: #4ade80;
}

/* ============================================================
 * ✨ 子页（点击进入，独立页面，覆盖主页与底部 Tab）
 * ============================================================ */
.gx-subpage {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--gx-bg, #0b1023);
  color: var(--gx-text-1, #e2e8f0);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: gxSubSlideIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  padding-bottom: 24px;
}
@keyframes gxSubSlideIn {
  from { transform: translateX(40px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
.gx-sub-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 12px;
  background: var(--gx-bg, #0b1023);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}
.gx-sub-back {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: none; background: transparent;
  color: var(--gx-text-1, #e2e8f0);
  font-size: 18px;
  border-radius: 50%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s;
}
.gx-sub-back:active { background: rgba(148, 163, 184, 0.18); transform: scale(0.92); }
.gx-sub-title {
  flex: 1;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.gx-sub-right { width: 36px; }
.gx-sub-body { padding: 12px 14px 32px; }
.gx-sub-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.55), rgba(15, 23, 42, 0.55));
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.gx-sub-card.center { text-align: center; padding: 22px 18px; }
.gx-sub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  font-size: 13px;
}
.gx-sub-row:last-child { border-bottom: none; }
.gx-sub-row .lab { color: #94a3b8; flex: 1; min-width: 0; }
.gx-sub-row .val { color: #e2e8f0; font-weight: 600; text-align: right; }
.gx-sub-row .val.up    { color: #16a34a; }
.gx-sub-row .val.down  { color: #ef4444; }
.gx-sub-row .val.gold  { color: #E5A83A; }
.gx-sub-row .val.muted { color: #64748b; font-weight: 500; }
.gx-sub-row .sub { font-size: 11px; color: #64748b; margin-top: 2px; }
.gx-funds-row { align-items: flex-start; }

/* 头像区点击反馈（提示用户可点击进入账户详情） */
.gx-profile-head {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s;
}
.gx-profile-head:active { background: rgba(229, 168, 58, 0.08); }

/* 浅色主题适配 */
html.theme-light .gx-subpage { background: #fbf8ef; color: #2b2416; }
html.theme-light .gx-sub-header { background: #fbf8ef; border-bottom-color: rgba(43, 36, 22, 0.12); }
html.theme-light .gx-sub-back { color: #2b2416; }
html.theme-light .gx-sub-back:active { background: rgba(43, 36, 22, 0.08); }
html.theme-light .gx-sub-card {
  background: linear-gradient(135deg, #fff8e7, #fdf3d3);
  border-color: rgba(229, 168, 58, 0.25);
}
html.theme-light .gx-sub-row { border-bottom-color: rgba(43, 36, 22, 0.08); }
html.theme-light .gx-sub-row .lab { color: #78715a; }
html.theme-light .gx-sub-row .val { color: #2b2416; }
html.theme-light .gx-sub-row .val.muted { color: #a59c83; }
