/* ══════════════════════════════════════════════════════════
   黄金交易平台 · App 用户端
   设计立场：金色只标「钱」，其余保持中性；深色底 + 香槟金
   ══════════════════════════════════════════════════════════ */
:root {
  --gold: #c9a227;
  --gold-l: #e8c86a;
  --gold-d: #96771a;
  --grad: linear-gradient(135deg, #edcf7d 0%, #c9a227 55%, #a8841c 100%);
  --bg: #0a0a0c;
  --bg2: #0e0e10;
  --card: #16161a;
  --card2: #1c1c21;
  --line: #26262c;
  --line2: #303038;
  --text: #f4f1ea;
  --text2: #a09a8e;
  --text3: #6b665c;
  --up: #e34d4d;
  --down: #2bb673;
  --warn: #e8a33d;
  --danger: #e05a4f;
  --ok: #3dbb7d;
  --r: 14px;
  --r-lg: 18px;
  --shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
  /* 安全区：iPhone 刘海/灵动岛 + 底部 Home 条 + 横屏左右缺口 */
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --nav-h: 52px;
  --tab-h: 60px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  height: 100%;
  background: #050506;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  /* 禁止 iOS 横屏/系统字号导致的字体二次放大 */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* 禁止整页橡皮筋回弹（iOS 上会让固定栏跟着抖） */
  overscroll-behavior: none;
  /* App 观感：默认不可选中，输入框单独放开 */
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

input, textarea, select { -webkit-user-select: text; user-select: text; }

/* 手机壳：桌面浏览器居中显示，手机端全屏 */
.device {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  height: 100dvh;
  background: var(--bg2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overscroll-behavior: contain;
  box-shadow: 0 0 0 1px #1a1a1e, 0 24px 80px rgba(0, 0, 0, 0.7);
}
@supports not (height: 100dvh) { .device { height: 100vh; } }
@media (min-width: 480px) { .device { height: 100dvh; max-height: none; } }

/* ── 顶部栏 ── */
.nav {
  flex: none;
  min-height: calc(var(--nav-h) + var(--safe-t));
  padding: var(--safe-t) calc(14px + var(--safe-r)) 0 calc(14px + var(--safe-l));
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(14, 14, 16, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 20;
}
.nav-title { font-size: 16px; font-weight: 600; letter-spacing: 0.3px; }
.nav-back {
  width: 32px; height: 32px; margin-left: -6px;
  display: grid; place-items: center;
  border-radius: 9px; cursor: pointer; color: var(--text);
  background: transparent; border: none;
}
.nav-back:active { background: #1e1e24; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-ghost {
  font-size: 12px; color: var(--text2); background: none; border: none;
  cursor: pointer; padding: 6px 8px; border-radius: 8px;
}
.nav-ghost:active { background: #1e1e24; }

/* ── 滚动区 ── */
.screen {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px calc(14px + var(--safe-r)) 20px calc(14px + var(--safe-l));
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
}
.screen::-webkit-scrollbar { display: none; }
.screen.has-tab { padding-bottom: calc(var(--tab-h) + 16px + var(--safe-b)); }
.screen.has-footer { padding-bottom: calc(76px + var(--safe-b)); }

/* ── 通用 ── */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px;
}
.card.flat { background: transparent; border-color: var(--line); }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.muted { color: var(--text2); }
.dim { color: var(--text3); }
.gold { color: var(--gold-l); }
.up { color: var(--up); }
.down { color: var(--down); }
.center { text-align: center; }
.row-between { display: flex; align-items: center; justify-content: space-between; }
.gap6 { gap: 6px; } .gap8 { gap: 8px; } .gap10 { gap: 10px; }
.mt6 { margin-top: 6px; } .mt8 { margin-top: 8px; } .mt10 { margin-top: 10px; }
.mt14 { margin-top: 14px; } .mt18 { margin-top: 18px; }
.f11 { font-size: 11px; } .f12 { font-size: 12px; } .f13 { font-size: 13px; }
.f16 { font-size: 16px; } .f18 { font-size: 18px; } .f22 { font-size: 22px; }

.sec-title {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; font-weight: 600; color: var(--text);
  margin: 18px 2px 10px;
}
.sec-title .more { font-size: 11.5px; color: var(--text3); font-weight: 400; cursor: pointer; }

/* ── 按钮 ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 46px; padding: 0 18px; width: 100%;
  border: none; border-radius: 12px; cursor: pointer;
  font-size: 15px; font-weight: 600; font-family: inherit;
  transition: transform 0.08s, opacity 0.15s;
}
.btn:active { transform: scale(0.985); }
.btn-primary { background: var(--grad); color: #241b03; box-shadow: 0 6px 20px rgba(201, 162, 39, 0.22); }
.btn-ghost { background: #1e1e24; color: var(--text); border: 1px solid var(--line2); }
.btn-line { background: transparent; color: var(--gold-l); border: 1px solid rgba(201, 162, 39, 0.4); }
.btn-danger { background: rgba(224, 90, 79, 0.12); color: var(--danger); border: 1px solid rgba(224, 90, 79, 0.35); }
.btn-sm { height: 34px; font-size: 12.5px; border-radius: 9px; width: auto; padding: 0 13px; }
.btn:disabled { opacity: 0.4; pointer-events: none; }
.btn-row { display: flex; gap: 10px; }
.btn-row > .btn { flex: 1; }

/* ── 输入 ── */
.field { margin-bottom: 14px; }
.field label {
  display: block; font-size: 12.5px; color: var(--text2); margin-bottom: 7px; font-weight: 500;
}
.field .hint { font-size: 11.5px; color: var(--text3); margin-top: 6px; line-height: 1.45; }
.input, select.input, textarea.input {
  width: 100%; height: 46px; padding: 0 14px;
  background: #131317; border: 1px solid var(--line2); border-radius: 11px;
  color: var(--text); font-size: 15px; font-family: inherit; outline: none;
  transition: border-color 0.15s, background 0.15s;
}
textarea.input { height: auto; padding: 12px 14px; resize: vertical; min-height: 76px; }
.input:focus { border-color: rgba(201, 162, 39, 0.6); background: #16161b; }
.input::placeholder { color: #4e4a43; }
.input-affix { position: relative; }
.input-affix .input { padding-right: 62px; }
.input-affix .suffix {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font-size: 12.5px; color: var(--text2); background: none; border: none; cursor: pointer;
}
.input-affix .suffix.gold { color: var(--gold-l); font-weight: 600; }

/* ── 标签 ── */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  height: 21px; padding: 0 8px; border-radius: 6px;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.2px;
}
.tag-gold { background: rgba(201, 162, 39, 0.14); color: var(--gold-l); }
.tag-warn { background: rgba(232, 163, 61, 0.14); color: var(--warn); }
.tag-ok { background: rgba(61, 187, 125, 0.13); color: var(--ok); }
.tag-danger { background: rgba(224, 90, 79, 0.13); color: var(--danger); }
.tag-dim { background: #222228; color: var(--text2); }

/* ── 列表行 ── */
.list { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.list-row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; border-bottom: 1px solid var(--line);
  cursor: pointer; background: none; border-left: none; border-right: none; border-top: none;
  width: 100%; text-align: left; color: inherit; font-family: inherit;
}
.list-row:last-child { border-bottom: none; }
.list-row:active { background: #191920; }
.list-row .chev { margin-left: auto; color: #3d3a35; flex: none; }
.list-row .lr-main { flex: 1; min-width: 0; }
.list-row .lr-title { font-size: 14px; font-weight: 500; }
.list-row .lr-sub { font-size: 11.5px; color: var(--text3); margin-top: 3px; }
.list-row .lr-val { font-size: 14px; font-weight: 600; text-align: right; flex: none; }

/* ── 底部 tab ── */
.tabbar {
  position: absolute; left: var(--safe-l); right: var(--safe-r); bottom: 0;
  height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: flex; align-items: stretch;
  background: rgba(16, 16, 19, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--line);
  z-index: 30;
}
.tabbar .tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; background: none; border: none; cursor: pointer;
  color: var(--text3); font-size: 10px; font-family: inherit;
  min-height: 44px; /* 触控最小热区 */
}
.tabbar .tab.on { color: var(--gold-l); }
.tabbar .tab svg { width: 21px; height: 21px; }

/* 底部固定操作条 */
.footbar {
  position: absolute; left: var(--safe-l); right: var(--safe-r); bottom: 0;
  padding: 10px calc(14px + var(--safe-r)) calc(10px + var(--safe-b)) calc(14px + var(--safe-l));
  background: linear-gradient(to top, #0e0e10 62%, rgba(14, 14, 16, 0));
  display: flex; gap: 10px; align-items: center;
  border-top: 1px solid rgba(38, 38, 44, 0.7);
  z-index: 25;
}
.footbar .btn { flex: 1; }

/* ── Toast / Modal ── */
#toast {
  position: fixed; left: 50%; bottom: 110px; transform: translate(-50%, 16px);
  background: rgba(28, 28, 34, 0.97); color: var(--text);
  padding: 11px 18px; border-radius: 11px; font-size: 13px;
  border: 1px solid var(--line2); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  opacity: 0; pointer-events: none; transition: all 0.22s; z-index: 999;
  max-width: 84vw; text-align: center; line-height: 1.45;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.err { border-color: rgba(224, 90, 79, 0.5); }

.mask {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.62);
  display: flex; align-items: flex-end; justify-content: center;
  z-index: 200; animation: fadeIn 0.16s;
}
@media (min-width: 480px) { .mask { align-items: center; } }
@keyframes fadeIn { from { opacity: 0; } }
.sheet {
  width: 100%; max-width: 430px; background: #17171c;
  border-radius: 20px 20px 0 0; padding: 20px 16px calc(20px + var(--safe-b));
  animation: slideUp 0.24s cubic-bezier(0.2, 0.9, 0.3, 1);
  max-height: 86dvh; overflow-y: auto;
}
@media (min-width: 480px) { .sheet { border-radius: 18px; max-width: 380px; } }
@keyframes slideUp { from { transform: translateY(28px); opacity: 0.4; } }
.sheet h3 { font-size: 16px; margin-bottom: 6px; }
.sheet .sheet-desc { font-size: 12.5px; color: var(--text2); line-height: 1.55; margin-bottom: 16px; }

/* ══════════ 页面专属 ══════════ */

/* 登录 */
.auth-wrap { padding: 0 22px; display: flex; flex-direction: column; height: 100%; }
.auth-logo {
  width: 62px; height: 62px; border-radius: 18px; background: var(--grad);
  display: grid; place-items: center; margin: 56px auto 20px;
  box-shadow: 0 14px 40px rgba(201, 162, 39, 0.3);
}
.auth-title { font-size: 23px; font-weight: 700; text-align: center; letter-spacing: 0.5px; }
.auth-sub { font-size: 12.5px; color: var(--text3); text-align: center; margin-top: 7px; }
.auth-form { margin-top: 32px; }
.auth-foot { margin-top: auto; padding: 20px 0 26px; text-align: center; font-size: 11.5px; color: var(--text3); line-height: 1.7; }
.auth-links { display: flex; justify-content: space-between; margin-top: -4px; margin-bottom: 20px; font-size: 12.5px; }
.auth-links a { color: var(--gold-l); text-decoration: none; }
.auth-links a.dim { color: var(--text3); }

/* 首页牌价卡 */
.price-card {
  border-radius: var(--r-lg); padding: 16px 17px 14px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(201, 162, 39, 0.16) 0%, transparent 58%),
    linear-gradient(160deg, #1c1a15 0%, #16161a 58%);
  border: 1px solid rgba(201, 162, 39, 0.22);
  position: relative; overflow: hidden;
}
.price-card::after {
  content: ""; position: absolute; right: -30px; top: -30px; width: 130px; height: 130px;
  border-radius: 50%; background: radial-gradient(circle, rgba(201, 162, 39, 0.12), transparent 68%);
}
.price-label { font-size: 11.5px; color: var(--text2); display: flex; align-items: center; gap: 6px; }
.price-main { display: flex; align-items: flex-end; gap: 8px; margin-top: 7px; }
.price-main .big {
  font-size: 38px; font-weight: 700; letter-spacing: -1px; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.price-main .unit { font-size: 12.5px; color: var(--text3); padding-bottom: 5px; }
.price-main .chg { margin-left: auto; font-size: 13px; font-weight: 600; padding-bottom: 4px; }
.price-formula {
  margin-top: 12px; padding-top: 11px; border-top: 1px dashed rgba(201, 162, 39, 0.2);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--text2);
}
.price-formula b { color: var(--gold-l); font-size: 14px; }
.spark { margin-top: 9px; width: 100%; height: 46px; display: block; }
.price-foot {
  display: flex; justify-content: space-between; align-items: center; margin-top: 8px;
  font-size: 10.5px; color: var(--text3);
}

/* 双资产卡 */
.assets { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 11px; }
.asset {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 13px 14px; position: relative; overflow: hidden; cursor: pointer;
}
.asset .a-label { font-size: 11.5px; color: var(--text2); display: flex; align-items: center; gap: 5px; }
.asset .a-val { font-size: 23px; font-weight: 700; margin-top: 6px; letter-spacing: -0.6px; }
.asset .a-val small { font-size: 11.5px; font-weight: 400; color: var(--text3); margin-left: 3px; }
.asset .a-sub { font-size: 10.5px; color: var(--text3); margin-top: 4px; }
.asset.hi { border-color: rgba(201, 162, 39, 0.3); background: linear-gradient(150deg, #1b1913, #16161a 70%); }
.asset.hi .a-val { color: var(--gold-l); }

/* 三资产卡：投资（锁定）/ 金库（提货）/ 可划转（转他人） */
.assets.three { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.assets.three .asset { padding: 12px 10px; }
.assets.three .asset .a-val { font-size: 18px; letter-spacing: -0.4px; }
.assets.three .asset .a-sub { font-size: 10px; white-space: nowrap; }
.asset.lock { border-color: rgba(255, 255, 255, 0.07); background: #16161a; }
.asset.lock .a-val { color: var(--text2); }
.a-lock {
  font-size: 9.5px; padding: 1px 5px; border-radius: 4px; line-height: 1.5;
  background: rgba(255, 255, 255, 0.07); color: var(--text3); font-weight: 400; letter-spacing: 0;
}
.a-live {
  font-size: 9.5px; padding: 1px 5px; border-radius: 4px; line-height: 1.5;
  background: rgba(201, 162, 39, 0.16); color: var(--gold-l); font-weight: 400; letter-spacing: 0;
}
/* 账户说明行 */
.acc-line { display: flex; align-items: center; gap: 8px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.acc-line:last-child { border-bottom: none; }
.acc-line .acc-k { font-size: 12.5px; color: var(--text2); }
.acc-line .acc-v { margin-left: auto; font-size: 15px; font-weight: 600; }
.acc-tip { font-size: 10.5px; color: var(--text3); margin-top: 2px; }

/* 期权行 */
.opt-row { display: flex; align-items: center; gap: 11px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.opt-row:last-of-type { border-bottom: none; }
.opt-ico {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
  background: rgba(201, 162, 39, 0.12); color: var(--gold-l);
}
.opt-name { font-size: 13.5px; font-weight: 500; }
.opt-meta { font-size: 10.5px; color: var(--text3); margin-top: 2px; }
.opt-pct { font-size: 14px; font-weight: 700; text-align: right; }
.warn-line {
  display: flex; align-items: flex-start; gap: 5px; font-size: 10.5px; color: var(--warn);
  margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line);
  line-height: 1.45;
}

/* 实盘交易数据（lingdom 数据源） */
.live-quote { display: flex; align-items: flex-start; gap: 14px; padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.live-head { display: flex; align-items: baseline; gap: 9px; }
.live-px { font-size: 25px; font-weight: 700; letter-spacing: -0.7px; }
.live-spread { font-size: 11px; color: var(--text3); }
.live-state { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text2); padding: 9px 0; line-height: 1.45; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.live-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.live-grid .k { font-size: 10.5px; color: var(--text3); }
.live-grid .v { font-size: 15px; font-weight: 600; margin-top: 4px; letter-spacing: -0.3px; }
.live-trades { padding-top: 9px; }
.live-tr { display: flex; align-items: center; gap: 9px; padding: 6px 0; }
.live-tag { font-size: 10px; padding: 1px 5px; border-radius: 4px; flex: none; font-weight: 500; }
.live-tag.buy { background: rgba(227, 77, 77, 0.15); color: var(--up); }
.live-tag.sell { background: rgba(43, 182, 115, 0.15); color: var(--down); }


/* 三分块收益 */
.bars { display: flex; gap: 3px; height: 6px; border-radius: 3px; overflow: hidden; margin-top: 10px; }
.bars span { display: block; height: 100%; }
.legend { display: flex; gap: 14px; margin-top: 9px; flex-wrap: wrap; }
.legend .lg { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text2); }
.legend .dot { width: 7px; height: 7px; border-radius: 2px; }

/* 订单卡 */
.order-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px; margin-bottom: 10px; cursor: pointer;
}
.order-card:active { background: #191920; }
.oc-head { display: flex; align-items: center; justify-content: space-between; }
.oc-no { font-size: 12px; color: var(--text2); font-variant-numeric: tabular-nums; }
.oc-body { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 11px; }
.oc-g { font-size: 22px; font-weight: 700; letter-spacing: -0.5px; }
.oc-g small { font-size: 11.5px; font-weight: 400; color: var(--text3); margin-left: 3px; }
.oc-meta { font-size: 11px; color: var(--text3); margin-top: 5px; line-height: 1.6; }

/* 团队 */
.invite-code {
  font-size: 30px; font-weight: 700; letter-spacing: 5px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.qr {
  width: 74px; height: 74px; border-radius: 11px; background: #f4f1ea;
  display: grid; place-items: center; flex: none; padding: 6px;
}
.qr svg { width: 100%; height: 100%; }
.stat3 { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.stat3 .s-val { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat3 .s-label { font-size: 10.5px; color: var(--text3); margin-top: 3px; }
.stat3 > div + div { border-left: 1px solid var(--line); }

/* 我的 */
.profile-head { display: flex; align-items: center; gap: 13px; padding: 6px 2px 18px; }
.avatar {
  width: 54px; height: 54px; border-radius: 16px; flex: none;
  display: grid; place-items: center; font-size: 20px; font-weight: 700;
  color: #241b03; background: var(--grad);
}
/* 可更换头像 */
.avatar-edit { position: relative; overflow: hidden; cursor: pointer; }
.avatar-edit img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-edit .avatar-cam {
  position: absolute; right: 2px; bottom: 2px;
  width: 18px; height: 18px; border-radius: 6px;
  background: rgba(14,14,16,.72); color: #e8c86a;
  display: grid; place-items: center;
  border: 1px solid rgba(232,200,106,.35);
}

/* 空态 */
.empty { padding: 48px 20px; text-align: center; color: var(--text3); }
.empty .e-ico { font-size: 34px; opacity: 0.32; margin-bottom: 12px; }
.empty .e-t { font-size: 13px; }
.empty .e-s { font-size: 11.5px; margin-top: 6px; color: #4e4a43; }

/* 步骤条 */
.steps { display: flex; align-items: center; gap: 0; margin: 4px 0 16px; }
.steps .st { flex: 1; text-align: center; position: relative; font-size: 10.5px; color: var(--text3); }
.steps .st .dot2 {
  width: 20px; height: 20px; border-radius: 50%; margin: 0 auto 6px;
  display: grid; place-items: center; font-size: 10px; font-weight: 700;
  background: #222228; color: var(--text3); border: 1px solid var(--line2);
}
.steps .st.on .dot2 { background: var(--grad); color: #241b03; border-color: transparent; }
.steps .st.on { color: var(--gold-l); }
.steps .st.done .dot2 { background: rgba(61, 187, 125, 0.16); color: var(--ok); border-color: rgba(61, 187, 125, 0.4); }
.steps .st::before {
  content: ""; position: absolute; top: 10px; left: -50%; width: 100%; height: 1px;
  background: var(--line2); z-index: -1;
}
.steps .st:first-child::before { display: none; }

/* SKU 选择 */
.sku-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.sku {
  padding: 12px; border-radius: 11px; border: 1.5px solid var(--line2);
  background: #131317; cursor: pointer; text-align: left;
  color: inherit; font-family: inherit;
}
.sku.on { border-color: var(--gold); background: rgba(201, 162, 39, 0.09); }
.sku .s-name { font-size: 13px; font-weight: 600; }
.sku .s-sub { font-size: 10.5px; color: var(--text3); margin-top: 3px; }

/* 地址卡 */
.addr {
  padding: 13px 14px; border-radius: var(--r); border: 1.5px solid var(--line);
  background: var(--card); margin-bottom: 9px; cursor: pointer;
}
.addr.on { border-color: var(--gold); background: rgba(201, 162, 39, 0.07); }
.addr .a-top { display: flex; align-items: center; gap: 9px; }
.addr .a-name { font-size: 14px; font-weight: 600; }
.addr .a-phone { font-size: 12.5px; color: var(--text2); font-variant-numeric: tabular-nums; }
.addr .a-detail { font-size: 12px; color: var(--text2); margin-top: 6px; line-height: 1.5; }

/* 费用小结 */
.fee-box { background: #131317; border: 1px solid var(--line); border-radius: 11px; padding: 13px 14px; }
.fee-line { display: flex; justify-content: space-between; font-size: 12.5px; padding: 5px 0; color: var(--text2); }
.fee-line b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.fee-line.total { border-top: 1px dashed var(--line2); margin-top: 6px; padding-top: 9px; }
.fee-line.total b { color: var(--gold-l); font-size: 15px; }

/* 提示条 */
.notice {
  display: flex; gap: 8px; padding: 11px 12px; border-radius: 10px;
  font-size: 11.5px; line-height: 1.55;
  background: rgba(232, 163, 61, 0.08); border: 1px solid rgba(232, 163, 61, 0.22);
  color: #d8b075;
}
.notice.info { background: rgba(90, 140, 220, 0.08); border-color: rgba(90, 140, 220, 0.22); color: #8fb0dd; }
.notice .n-ico { flex: none; font-size: 12px; line-height: 1.4; }

/* 时间线 */
.tl { position: relative; padding-left: 22px; }
.tl::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: var(--line2); }
.tl-item { position: relative; padding-bottom: 16px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -21px; top: 5px; width: 9px; height: 9px;
  border-radius: 50%; background: #2a2a32; border: 2px solid #0e0e10;
}
.tl-item.on::before { background: var(--gold); }
.tl-item.done::before { background: var(--ok); }
.tl-t { font-size: 13px; font-weight: 500; }
.tl-s { font-size: 11px; color: var(--text3); margin-top: 3px; line-height: 1.5; }

/* 分段控件 */
.seg {
  display: flex; gap: 4px; padding: 3px; background: #16161a;
  border-radius: 10px; border: 1px solid var(--line); margin-bottom: 14px;
}
.seg button {
  flex: 1; height: 32px; border: none; border-radius: 8px; cursor: pointer;
  background: transparent; color: var(--text2); font-size: 12.5px; font-family: inherit; font-weight: 500;
}
.seg button.on { background: #26262e; color: var(--text); }

/* 加载 */
.loading { display: grid; place-items: center; padding: 60px 0; color: var(--text3); font-size: 12.5px; }
.spinner {
  width: 26px; height: 26px; border: 2px solid #26262c; border-top-color: var(--gold);
  border-radius: 50%; animation: spin 0.7s linear infinite; margin-bottom: 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 图表 */
.chart-wrap { margin: 4px -2px 0; }
.chart-svg { width: 100%; display: block; }

/* ══════════════════════════════════════════════════════════
   移动端适配层 —— Android / iOS 通用
   目标：安全区不遮挡、不出橡皮筋、iOS 输入框不放大、触控热区达标
   ══════════════════════════════════════════════════════════ */

/* ① 触摸行为：去掉 300ms 点击延迟与双击缩放，保留正常滚动 */
button, .tab, .asset, .list-row, .card, a, label,
[data-nav], [data-act], [data-form], [data-change] { touch-action: manipulation; }

/* ② iOS：输入框字号 <16px 会在聚焦时自动放大整页，这里强制 16px（仅 iOS，安卓保持原设计） */
@supports (-webkit-touch-callout: none) {
  input, select, textarea { font-size: 16px !important; }
  .screen { scroll-padding-bottom: 140px; }
}
/* 数字/密码键盘：去掉数字框的上下箭头，避免安卓上误触加减 */
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ③ 触控热区：导航小按钮与列表行不低于 44px（Apple HIG / Material 共识） */
.nav-ghost { min-height: 36px; padding: 8px 10px; }
.nav-back { width: 36px; height: 36px; }
.list-row { min-height: 52px; }

/* ④ 小屏收紧：安卓 360 / iPhone SE 375 下三资产卡与实盘数字不挤 */
@media (max-width: 374px) {
  .screen { padding-left: calc(12px + var(--safe-l)); padding-right: calc(12px + var(--safe-r)); }
  .assets.three { gap: 6px; }
  .assets.three .asset { padding: 11px 8px; }
  .assets.three .asset .a-val { font-size: 16px; }
  .assets.three .asset .a-label { font-size: 10.5px; gap: 3px; }
  .assets.three .asset .a-sub { font-size: 9px; }
  .live-px { font-size: 22px; }
  .live-grid .v { font-size: 13.5px; }
  .live-grid .k { font-size: 10px; }
  .price-main .big, .big { font-size: 32px; }
  .stat3 .s-val { font-size: 16px; }
}

/* ⑤ 大屏留白：iPhone Pro Max / 安卓 6.7" 不要贴边 */
@media (min-width: 414px) {
  .screen { padding-left: calc(16px + var(--safe-l)); padding-right: calc(16px + var(--safe-r)); }
  .assets.three .asset .a-val { font-size: 19px; }
  .live-px { font-size: 27px; }
}

/* ⑥ 横屏 / 折叠屏展开：避免内容被拉成一条 */
@media (orientation: landscape) and (max-height: 520px) {
  .device { max-width: 100%; }
  .screen { padding-top: 10px; }
  .nav { min-height: calc(46px + var(--safe-t)); }
}

/* ⑦ 文字防溢出：标签与副标题不折行，长数字不撑破卡片 */
.a-sub, .live-tag, .tag, .s-label { white-space: nowrap; }
.mono { font-variant-numeric: tabular-nums; }
.price-main, .live-head, .stat3 .s-val, .asset .a-val { word-break: keep-all; }

/* ⑧ 暗色下的系统控件跟随（安卓 Chrome 的 select/输入光标） */
select, input, textarea { color-scheme: dark; }

/* ══════════════════════════════════════════════════════════
   注册 / 登录 / 找回密码 —— 验证码相关
   ══════════════════════════════════════════════════════════ */

/* 页头（注册、找回密码页） */
.auth-head { padding: 2px 2px 18px; }
.auth-h-t { font-size: 21px; font-weight: 700; letter-spacing: 0.3px; color: var(--text); }
.auth-h-s { font-size: 12px; color: var(--text3); margin-top: 7px; line-height: 1.5; }

/* 登录页「密码登录 / 验证码登录」切换 */
.seg-auth { margin-bottom: 0; }
.seg-auth button { flex: 1; height: 36px; font-size: 13px; }

/* 验证码输入框：给右侧按钮留足宽度，按钮与输入区之间有分隔线 */
.input-affix.has-code .input { padding-right: 112px; }
.input-affix .suffix.code-btn {
  font-size: 12px; color: var(--gold-l); font-weight: 600;
  min-width: 92px; text-align: right; padding-left: 11px;
  border-left: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.input-affix .suffix.code-btn:disabled { color: var(--text3); font-weight: 500; cursor: default; }
.input-affix .suffix.code-btn.counting { color: var(--text3); font-weight: 500; }

/* 邀请链接自动填入的邀请码：只读态给视觉反馈 */
.input-locked { background: #131317 !important; color: var(--gold-l); border-color: rgba(201, 162, 39, 0.28) !important; }
