:root {
  /* 亮色（白底）色板 */
  --bg: #f5f6f8;            /* 页面主背景 浅灰白 */
  --bg-2: #ffffff;          /* 次级背景 白（顶栏/输入框等） */
  --card: #ffffff;          /* 卡片/区块背景 白 */
  --card-2: #fafbfc;        /* 卡片次级背景 极浅灰 */
  --border: #e3e6ec;        /* 分隔线 浅灰 */
  --border-2: #d4d8e0;      /* 分隔线次级 */
  --input: #ffffff;         /* 输入框/搜索框背景 白 */
  --input-2: #f0f2f5;
  --text: #1f2430;          /* 主文字 深 */
  --text-2: #3a4150;        /* 次文字 */
  --muted: #8a93a6;         /* 次要说明 */
  --muted-2: #9aa1b2;
  --primary: #2b6cff;       /* 主色蓝 保留 */
  --primary-d: #1f5be0;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif; background: var(--bg); color: var(--text); }
.send-tag { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.send-tag.pending { background: rgba(255,193,7,.15); color: #ffc107; }
.send-tag.ok { background: rgba(74,222,128,.15); color: #4ade80; }
.send-tag.warn { background: rgba(248,113,113,.15); color: #f87171; }
.send-tag.bad { background: rgba(239,68,68,.2); color: #ef4444; }
a { color: #5b9cff; }
button { cursor: pointer; border: none; border-radius: 6px; padding: 8px 14px; font-size: 13px; background: #2b6cff; color: #fff; transition: .15s; }
button:hover { filter: brightness(1.1); }
button.ghost { background: #eef0f4; color: var(--text-2); }
.pager { display: flex; align-items: center; gap: 6px; margin-top: 12px; justify-content: space-between; }
.pager-actions { display: flex; align-items: center; gap: 6px; }
.page-btn { background: #eef0f4; color: var(--text-2); padding: 6px 11px; font-size: 13px; min-width: 34px; border: 1px solid transparent; }
.page-btn:hover:not(:disabled):not(.active) { background: #e2e6ec; }
.page-btn.active { background: #2b6cff; color: #fff; border-color: #2b6cff; font-weight: 600; }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }
.page-ellipsis { color: #6b7793; padding: 0 2px; user-select: none; }
.page-info { color: #6b7793; font-size: 12px; }
button.danger { background: #e0483d; }
button.success { background: #1faa59; }
input, select { background: var(--input); border: 1px solid var(--border); color: var(--text); border-radius: 6px; padding: 8px 10px; font-size: 13px; width: 100%; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
.grid { display: grid; gap: 14px; }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .cols-4, .cols-2 { grid-template-columns: 1fr; } }
.muted { color: #8493b0; font-size: 12px; }
.pos { color: #34d399; } .neg { color: #f87171; }
.label { color: #8493b0; font-size: 12px; margin-bottom: 6px; }
.big { font-size: 24px; font-weight: 600; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); }
th { color: #8493b0; font-weight: 500; }
.row { display: flex; gap: 10px; align-items: center; }
.vip-type-card { flex: 1; min-width: 0; background: var(--card-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; cursor: pointer; transition: all .15s ease; }
.vip-type-card:hover { border-color: var(--border-2); }
.vip-type-card.active { background: #161616; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(43,108,255,.25); }
.vip-type-card.vip.active { border-color: #d4a024; box-shadow: 0 0 0 2px rgba(212,160,36,.25); }
.vip-type-title { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.vip-type-card.vip .vip-type-title { color: #f7c94b; }
.wrap { padding: 18px; max-width: 1280px; margin: 0 auto; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; background: var(--bg-2); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; position: relative; }
.nav button { background: transparent; color: var(--text-2); }
.nav button.active { background: var(--primary); color: #fff; }
/* 汉堡按钮 + 当前标题:PC 端默认隐藏,仅手机端显示 */
.nav .hamburger, .nav .nav-title { display: none; }
.nav .hamburger { font-size: 20px; line-height: 1; padding: 6px 12px; border: 1px solid var(--border); border-radius: 8px; color: var(--text); }
.nav .nav-title { font-size: 16px; font-weight: 600; color: var(--text); margin-left: 4px; }
/* 手机端下拉菜单:PC 端不渲染(由 v-if 控制),无 PC 样式需求 */
.nav-dropdown { display: none; }
/* 下拉遮罩:默认隐藏,仅手机端下拉时显示,点击空白关闭 */
.nav-backdrop { display: none; }
/* 会员端顶部右侧操作区 */
.member-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.user-menu { position: relative; display: inline-flex; }
/* 右上角人物头像下拉（收益报表 / 修改密码 / 退出） */
.user-menu { position: relative; display: inline-flex; }
.user-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; background: var(--card); border: 1px solid var(--border); border-radius: 999px; cursor: pointer; user-select: none; }
.user-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: var(--primary); }
.user-avatar-letter { display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 700; }
.user-name { font-size: 13px; color: var(--text); font-weight: 500; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-caret { font-size: 10px; color: var(--muted); transition: transform .15s; margin-left: -2px; }
.user-caret.open { transform: rotate(180deg); }
.mode-tag { font-size: 11px; color: #a78bfa; border: 1px solid #a78bfa; border-radius: 999px; padding: 1px 5px; }
.user-dropdown { position: absolute; top: calc(100% + 6px); right: 0; min-width: 140px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 6px 16px rgba(0,0,0,.12); z-index: 25; overflow: hidden; }
.user-dropdown button { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 12px 14px; font-size: 14px; border: none; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent; color: var(--text-2); white-space: nowrap; }
.user-dropdown button:last-child { border-bottom: none; }
.user-dropdown-icon { width: 18px; text-align: center; }
.user-backdrop { position: fixed; inset: 0; background: transparent; z-index: 24; }
/* 引擎控制模块（投注记录页） */
.engine-control-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.engine-control-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.engine-icon { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, #34d399, #10b981); display: flex; align-items: center; justify-content: center; font-size: 26px; color: #fff; flex: 0 0 auto; box-shadow: 0 2px 8px rgba(16,185,129,.25); }
.engine-control-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.engine-control-title { display: flex; align-items: center; gap: 8px; }
.engine-control-name { font-size: 18px; font-weight: 600; color: var(--text); }
.status-tag { font-size: 12px; padding: 2px 8px; border-radius: 999px; font-weight: 500; }
.status-tag.running { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.status-tag.stopped { background: #f3f4f6; color: #6b7280; border: 1px solid #e5e7eb; }
.engine-control-uptime { font-size: 13px; color: var(--muted); margin-left: 4px; }
.engine-control-uptime b { color: var(--text-2); font-weight: 600; }
.engine-control-hint { font-size: 13px; color: var(--muted); }
.engine-control-hint .sep { margin-left: 6px; }
.engine-control-hint b { color: var(--text-2); font-weight: 600; }
.engine-control-right { flex: 0 0 auto; }
.btn-engine-start { background: var(--primary); color: #fff; border: none; padding: 12px 24px; font-size: 15px; font-weight: 600; border-radius: 10px; cursor: pointer; box-shadow: 0 2px 8px rgba(43,108,255,.25); transition: transform .1s; }
.btn-engine-start:hover { background: #1f5be0; }
.btn-engine-start:active { transform: translateY(1px); }
.btn-engine-stop { background: var(--primary); color: #fff; border: none; padding: 12px 24px; font-size: 15px; font-weight: 600; border-radius: 10px; cursor: pointer; box-shadow: 0 2px 8px rgba(43,108,255,.25); transition: transform .1s; }
.btn-engine-stop:hover { background: #1f5be0; }
.btn-engine-stop:active { transform: translateY(1px); }
.btn-stop-params { background: #9ca3af; color: #fff; border: none; padding: 12px 24px; font-size: 15px; font-weight: 600; border-radius: 10px; cursor: pointer; transition: transform .1s, background .15s; }
.btn-stop-params:hover { filter: brightness(1.05); }
.btn-stop-params:active { transform: translateY(1px); }
.btn-stop-params.active { background: var(--primary); box-shadow: 0 2px 8px rgba(43,108,255,.25); }
.btn-stop-params.active { background: var(--primary); box-shadow: 0 2px 8px rgba(43,108,255,.25); }
.expire-warn { margin: -6px 0 14px; padding: 0 4px; font-size: 13px; color: #f59e0b; line-height: 1.6; }
.expire-warn b { color: #ea580c; font-weight: 700; }
.engine-rule-hint { margin: 8px 0 12px; padding: 8px 12px; font-size: 13px; line-height: 1.6; border-radius: 8px; background: rgba(43,108,255,.08); color: #2b6cff; border: 1px solid rgba(43,108,255,.2); }
.engine-rule-hint.warn { background: rgba(245,158,11,.1); color: #d97706; border-color: rgba(245,158,11,.35); }
.engine-rule-hint b { font-weight: 700; }
.login { max-width: 360px; margin: 12vh auto; }
.login .card { padding: 28px; }
.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; z-index: 50; }
.modal { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 22px; width: 420px; max-width: 92vw; }
.section-title { font-size: 15px; font-weight: 600; margin: 18px 0 10px; }
.link-more { font-size: 13px; font-weight: 500; color: #2b6cff; cursor: pointer; user-select: none; }
.link-more:hover { text-decoration: underline; }

/* 重新随机 + 本次随机 */
.reroll-bar { display: flex; align-items: center; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.btn-reroll {
  background: linear-gradient(135deg, #2b6cff 0%, #4f8bff 100%);
  color: #fff; font-size: 14px; font-weight: 600; padding: 11px 24px;
  border-radius: 8px; box-shadow: 0 4px 14px rgba(43,108,255,.32);
  display: inline-flex; align-items: center; gap: 8px;
  transition: filter .15s, transform .15s, box-shadow .15s;
}
.btn-reroll:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(43,108,255,.42); }
.btn-reroll:active { transform: translateY(0); }
.cur-random {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--input); border: 1px solid var(--border); border-radius: 8px;
  padding: 9px 16px; font-size: 13px; color: var(--muted);
}
.cur-random .cr-label { color: #8493b0; }
.cur-random .cr-val { font-size: 18px; font-weight: 700; color: var(--text-2); }
.cur-random .cr-val b { color: #2b6cff; }
.cur-random .cr-sep { color: #5b6b8a; margin: 0 3px; }
.cur-random .cr-max { color: #5b6b8a; font-weight: 600; }
.cur-random .cr-amt { color: var(--text); font-weight: 600; }
.h-title { font-size: 22px; font-weight: 700; }
.brandrow { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.daysbadge { background: #1f3d2a; color: #5be8a0; border: 1px solid #234; border-radius: 20px; padding: 6px 14px; font-size: 13px; white-space: nowrap; }
.home2col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; align-items: stretch; }
.home-right { display: flex; flex-direction: column; gap: 14px; }
.home-right .card-fill { flex: 1 1 auto; display: flex; flex-direction: column; }
.home-right .card-fill > .section-title { flex-shrink: 0; }
.home-right .card-tip {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  opacity: .7;
  padding: 8px 0;
  min-height: 60px;
}
.home-right .card-tip .tip-emoji { font-size: 26px; }
@media (max-width: 900px) { .home2col { grid-template-columns: 1fr; } .home-right { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } @media (max-width:600px){ .home-right { grid-template-columns: 1fr; } } }
.numgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 8px; }
.numcell { background: var(--input); border: 1px solid var(--border); color: var(--text-2); padding: 0; font-size: 15px; font-weight: 500; height: 44px; border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.numcell.sel { background: var(--primary); border-color: var(--primary); color: #fff; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pill { background: #eef0f4; border: 1px solid var(--border); border-radius: 20px; padding: 4px 10px; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.pill .x { background: transparent; color: #f87171; padding: 0 2px; font-size: 14px; }
.infobar { background: #1a2230; border: 1px solid #2a3a4d; color: #8fc7ff; border-radius: 8px; padding: 12px 14px; font-size: 13px; margin-top: 14px; }
.modebar { display: flex; align-items: center; gap: 8px; }
.modebar button.active { background: #2b6cff; color: #fff; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 11px; background: #233; color: #7fd; }
.tag.run { background: #1f3d2a; color: #5be; }
.tag.stop { background: #3d2323; color: #f99; }
.chart { width: 100%; height: 320px; }
.toast { position: fixed; top: 18px; right: 18px; background: #1faa59; color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 99; }
.toast.err { background: #e0483d; }

/* 偏好配置卡片 */
.pref-card { cursor: pointer; transition: border-color .15s, background .15s; }
.pref-card:hover { border-color: #2b6cff; }
.pref-card.disabled { cursor: not-allowed; opacity: .55; }
.pref-card.disabled:hover { border-color: var(--border); }
.pref-head { display: flex; justify-content: space-between; align-items: center; font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.pref-head .muted { font-size: 20px; font-weight: 400; line-height: 1; }
.pref-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.pref-grid > div { display: flex; justify-content: space-between; font-size: 13px; }
.pref-grid .muted { font-size: 12px; }
button.active { background: #2b6cff !important; color: #fff !important; }
.badge-mini { background: #16341f; color: #4ade80; padding: 1px 6px; border-radius: 4px; font-size: 11px; margin-left: 6px; font-weight: 400; }

/* 偏好弹窗内部布局 */
.pref-row { display: flex; align-items: center; gap: 8px; margin: 10px 0; }

/* 投注窗口搜索结果 */
.search-hit { background: var(--input); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; }
.target-chip { border: 1px solid var(--border); }

/* 随机投注运行抬头 */
.run-banner { background: linear-gradient(135deg, #161a2a 0%, #1f2742 100%); border: 1px solid var(--border); border-radius: 10px; padding: 12px 18px; margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 16px; }
.run-stat { display: flex; flex-direction: column; gap: 3px; min-width: 140px; }
.run-stat .label { color: var(--muted); font-size: 11px; }
.run-stat .big { font-size: 15px; font-weight: 500; color: var(--text-2); display: flex; align-items: center; flex-wrap: wrap; }
.run-stat .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-left: 6px; }
.run-stat .dot.ok { background: #4ade80; }
.run-stat .dot.off { background: #f87171; }

/* 最近下注 mini 表格 */
.table-wrap { overflow-x: auto; }
.mini-table th, .mini-table td { padding: 7px 8px; white-space: nowrap; font-size: 12.5px; }
.bet-mini-row { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 13px; align-items: center; }
.bet-mini-row:last-child { border-bottom: none; }
.bet-mini-row span { display: inline-block; }
.mono { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 12px; }
.pref-row > span:first-child { width: 86px; color: var(--text-2); font-size: 13px; flex-shrink: 0; }
.pref-row input { width: 76px; text-align: center; padding: 6px 4px; }
.pref-row input[type=text], .pref-row input:not([type=number]) { width: 100%; text-align: left; }
.pref-toggle { display: flex; gap: 6px; margin: 4px 0 0 94px; }
.pref-toggle button { background: #eef0f4; color: var(--text-2); padding: 6px 12px; font-size: 12px; }
.pref-toggle button.on { background: var(--primary); color: #fff; }

/* 下注结果胶囊：✓中奖 / ✗未中 / 待开 */
.bet-result { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap; }
.bet-result .ic { font-size: 12px; line-height: 1; }
.bet-result.win   { background: rgba(74,222,128,.14); color: #4ade80; border: 1px solid rgba(74,222,128,.45); }
.bet-result.lose  { background: rgba(248,113,113,.14); color: #f87171; border: 1px solid rgba(248,113,113,.45); }
.bet-result.pending { background: rgba(148,163,184,.12); color: #94a3b8; border: 1px solid rgba(148,163,184,.3); }

/* 手机端投注记录默认隐藏,仅在@media内显示 */
.bet-cards { display: none; }
/* 桌面端保留横表 */
.records-desktop { display: table; }

/* 数据看板：k/v 行 + 百分比徽章 + 迷你环形图 */
.kv-card-title { font-size: 14px; font-weight: 600; color: var(--text-2); padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 6px; }
.kv-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--border); flex-wrap: nowrap; min-height: 46px; box-sizing: border-box; }
.kv-row:last-child { border-bottom: none; padding-bottom: 0; }
.kv-row > .muted { color: var(--muted); font-size: 13px; display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0; }
.kv-row > .big { font-size: 18px; font-weight: 700; display: inline-flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 3px; min-width: 0; flex-wrap: nowrap; }
.kv-row > .big .has-usdt { font-size: 18px; }
.pct { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; line-height: 1; white-space: nowrap; }
.pct.up   { background: rgba(74,222,128,.14); color: #4ade80; }
.pct.down { background: rgba(248,113,113,.14); color: #f87171; }
.pct.flat { background: rgba(148,163,184,.12); color: #94a3b8; }
.pct::before { font-size: 10px; opacity: .9; }
.pct.up::before   { content: '▲'; }
.pct.down::before { content: '▼'; }
.mini-donut { width: 38px; height: 38px; border-radius: 50%; background: conic-gradient(#4ade80 0%, #eef0f4 0%); position: relative; flex-shrink: 0; }
.mini-donut::after { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: var(--card); }
/* 投注统计未中率行:右侧环形 + 文字 */
.kv-row-winrate { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kv-row-winrate-val { display: inline-flex; align-items: center; gap: 8px; }

/* 余额走势卡片（浅色风格，与参考图一致） */
.trend-card { background: #ffffff !important; border: 1px solid #e5e7eb !important; border-radius: 12px !important; padding: 14px 16px !important; color: #111827; }
.trend-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.trend-title { font-size: 15px; font-weight: 600; color: #374151; }
.trend-initial { font-size: 13px; color: #6b7280; display: inline-flex; align-items: center; gap: 6px; }
.trend-initial b { color: #111827; font-weight: 600; }
.trend-info { color: #22c55e; font-size: 14px; }
.trend-chart { width: 100%; height: 240px; }

/* 实时统计（首页右栏） */
.stat-bar { flex: 1; height: 8px; background: #eef0f4; border-radius: 4px; overflow: hidden; }
.stat-bar-fill { height: 100%; background: linear-gradient(90deg, #2b6cff 0%, #4f8bff 100%); transition: width .3s; }
.stat-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 13px; border-bottom: 1px solid #1c1c1c; }
.stat-row:last-child { border-bottom: none; }
.stat-row span:first-child { color: #8493b0; }

/* 金额 USDT 绿色图标（数字后方固定列对齐） */
.has-usdt {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  gap: 5px;
  min-width: 70px;
  justify-content: flex-end;
}
.has-usdt::after {
  content: 'T';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  background: #27a17b;
  border-radius: 50%;
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  font-family: Arial, sans-serif;
  line-height: 1;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(39,161,123,.25);
}

/* ===== 账号绑定页（深色主题，与投注记录等页面一致） ===== */
.sa-light { display: contents; } /* 不再限宽浅色，外层 .wrap 提供深色全宽 */

/* 顶部标题区：融入全局品牌栏（深色） */
.sa-topbar { padding: 2px 0; }
.sa-topbar .brandrow { align-items: center; gap: 14px; }
.sa-topbar .h-title { color: var(--text); }
.sa-topbar .muted { color: var(--muted-2); font-size: 13px; margin-top: 4px; }
.bind-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  padding: 12px 14px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  color: #92400e;
}
.bind-warning-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f59e0b;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 50%;
  margin-top: 1px;
}
.bind-warning-title { font-size: 15px; font-weight: 700; line-height: 1.5; }
.bind-warning-sub { font-size: 13px; color: #b45309; line-height: 1.6; margin-top: 4px; }
.bind-warning-tip {
  margin-top: 16px;
  padding: 0;
  background: transparent;
  border-left: none;
  border-radius: 0;
  font-size: 13px;
  color: #047857;
  line-height: 1.8;
}

.sa-topbar-line {
  display: flex; align-items: center; justify-content: flex-start;
  gap: 10px; margin-top: 14px;
}
.sa-topbar-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--card-2); border: 1px solid var(--border); border-radius: 24px;
  height: 36px; min-width: 150px; padding: 0 12px;
  box-sizing: border-box;
  cursor: pointer;
}
.sa-topbar-pill-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, #5b9cff, #2b6cff);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; color: #fff;
  object-fit: cover; overflow: hidden;
}
.sa-topbar-pill-text { font-size: 14px; font-weight: 600; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
.sa-topbar-pill-del {
  background: transparent; border: none; font-size: 14px; color: var(--muted-2);
  cursor: pointer; padding: 2px 4px; line-height: 1;
}
.sa-topbar-pill-del:hover { color: #ff7a7a; }
.sa-topbar-pill.add {
  background: #fff; color: var(--text); border-color: var(--border-2);
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.sa-topbar-pill.add:hover { background: #f5f6f8; border-color: var(--primary); }
.sa-topbar-pill-plus {
  font-size: 16px; font-weight: 500; color: var(--primary); line-height: 1;
  margin-right: 2px;
}
.sa-topbar-pill.add .sa-topbar-pill-text { color: var(--text); }

/* 通用深色卡片 */
.sa-card {
  background: var(--card-2); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px;
}

/* 绑定新账号按钮（主色） */
.sa-bind-btn {
  background: #2b6cff; color: #fff; border: none; border-radius: 10px;
  padding: 10px 18px; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer;
}
.sa-bind-btn:hover { background: var(--primary-d); }
.sa-bind-btn.ghost { background: #eef0f4; color: var(--primary); }
.sa-bind-btn.ghost:hover { background: #e2e6ec; }

/* 第一块：用户信息卡片 */
.sa-ucard { display: flex; align-items: center; gap: 14px; padding: 4px 0; }
.sa-ucard-clickable { cursor: pointer; }
.sa-ucard-clickable:hover .sa-avatar { box-shadow: 0 0 0 3px var(--primary); }
.sa-card-active { border-color: var(--primary); }
.sa-ucard-hint { font-size: 12px; color: var(--primary); margin-top: 4px; }
.sa-badge.primary {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(43,108,255,.15); color: #6ea8ff;
  border: 1px solid rgba(43,108,255,.4); border-radius: 20px; padding: 2px 10px; font-size: 12px; font-weight: 600;
}
.sa-badge.primary .sa-badge-dot { background: #2b6cff; }
.sa-avatar {
  width: 60px; height: 60px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #5b9cff, #2b6cff);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 600; color: #fff;
  object-fit: cover; overflow: hidden;
}
.sa-ucard-main { flex: 1; text-align: left; min-width: 0; }
.sa-ucard-top {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.sa-acc-name { font-size: 18px; font-weight: 700; color: var(--text); }
.sa-badge.bound {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--card-2); color: var(--muted);
  border: 1px solid var(--border); border-radius: 20px; padding: 2px 10px; font-size: 12px; font-weight: 600;
}
.sa-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #22c55e;
}
.sa-refresh {
  background: transparent; color: #6fb0ff; border: 1px solid #34507d;
  border-radius: 20px; padding: 3px 12px; font-size: 12px; font-weight: 500; cursor: pointer;
}
.sa-refresh:hover { background: var(--card-2); border-color: var(--primary); }
.sa-ucard-idline {
  font-size: 13px; color: var(--muted-2); margin-top: 5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* 第二块：账号详情 */
.sa-detail {
  margin: 12px 0 0 74px;
  display: flex; flex-direction: column; gap: 8px;
}
.sa-detail-row { display: flex; align-items: baseline; gap: 10px; text-align: left; }
.sa-detail-label { font-size: 13px; color: var(--muted-2); width: 56px; flex-shrink: 0; }
.sa-detail-val { font-size: 14px; color: var(--text-2); font-weight: 400; }

.sa-acc-foot { display: flex; gap: 16px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.sa-text-btn { background: transparent; border: none; color: #6fb0ff; font-size: 13px; font-weight: 600; cursor: pointer; }
.sa-text-btn.danger { color: #ff7a7a; }

/* 空态 */
.sa-empty {
  text-align: center; padding: 36px 16px; background: var(--card-2); border: 1px dashed var(--border); border-radius: 14px;
}
.sa-empty-emoji { font-size: 40px; margin-bottom: 12px; }
.sa-empty-title { font-size: 17px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.sa-empty-sub { color: var(--muted-2); font-size: 13px; margin-bottom: 16px; }

/* 第三块：投注窗口 */
.sa-block-head { text-align: left; margin-bottom: 14px; }
.sa-block-title { font-size: 16px; font-weight: 700; color: var(--text); }
.sa-block-sub { font-size: 12px; color: var(--muted-2); margin-top: 3px; }
.sa-search { display: flex; gap: 10px; }
.sa-search-input {
  flex: 1; min-width: 0; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--input); color: var(--text); font-size: 13px;
}
.sa-search-input::placeholder { color: var(--muted-2); }
.sa-search-btn {
  white-space: nowrap; background: var(--primary); color: #fff; border: none;
  border-radius: 10px; padding: 10px 16px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.sa-search-btn:disabled { background: #c9ced6; cursor: not-allowed; }

.sa-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  align-items: center;
}
.sa-example-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 11px;
  font-size: 12px;
  color: var(--text-2);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.sa-example-pill:hover { background: #eef0f4; border-color: #34507d; }
.sa-link-icon {
  display: inline-block;
  width: 11px;
  height: 11px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa6c0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E") center/contain no-repeat;
}

.sa-search-results { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.search-hit { background: var(--input); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }

.sa-pill {
  background: var(--card-2); color: var(--text-2); border: 1px solid var(--border);
  border-radius: 20px; padding: 6px 14px; font-size: 12px; cursor: pointer; white-space: nowrap;
}
.sa-pill:hover { background: #eef0f4; }

/* 已添加条目 */
.sa-added { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 14px; }
.sa-added-head { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.sa-win-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--input); border: 1px solid var(--border); border-radius: 14px;
  padding: 12px 14px; margin-bottom: 10px;
}
.sa-win-main { flex: 1; text-align: left; min-width: 0; }
.sa-win-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sa-win-name { font-size: 15px; font-weight: 700; color: var(--text); }
.sa-win-link { font-size: 12px; color: #6fb0ff; }
.sa-win-channel { font-size: 12px; color: var(--muted-2); margin-top: 3px; }
.sa-win-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.sa-icon-btn { background: transparent; border: none; font-size: 16px; cursor: pointer; color: var(--muted-2); }
.sa-win-summary { font-size: 12px; color: var(--muted-2); margin-top: 8px; }
.sa-win-empty { text-align: center; padding: 24px; color: var(--muted-2); background: var(--input); border: 1px dashed var(--border); border-radius: 14px; margin-top: 14px; }

/* 第四块：底部机器人区域（已隐藏，样式保留） */
.sa-alliance { display: flex; gap: 10px; flex-wrap: wrap; }
.sa-alliance-tag {
  background: var(--card-2); color: var(--text-2); border: 1px solid var(--border);
  border-radius: 20px; padding: 6px 14px; font-size: 12px; font-weight: 600;
}
.sa-bot-card {
  display: flex; align-items: center; gap: 12px; background: var(--input);
  border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-top: 12px;
}
.sa-win-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: var(--card-2); display: flex; align-items: center; justify-content: center; font-size: 22px;
}

/* 开关 */
.sa-switch { position: relative; display: inline-block; width: 38px; height: 22px; cursor: pointer; }
.sa-switch input { opacity: 0; width: 0; height: 0; }
.sa-switch-track {
  position: absolute; inset: 0; background: var(--border-2); border-radius: 22px; transition: .2s;
}
.sa-switch-track::before {
  content: ''; position: absolute; height: 18px; width: 18px; left: 2px; top: 2px;
  background: #fff; border-radius: 50%; transition: .2s;
}
.sa-switch input:checked + .sa-switch-track { background: var(--primary); }
.sa-switch input:checked + .sa-switch-track::before { transform: translateX(16px); }

/* ===== 绑定 Telegram 账号弹窗（深色主题） ===== */
.sa-modal-mask {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10,15,28,.6);
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
}
.sa-modal {
  background: var(--card-2); border: 1px solid var(--border); border-radius: 16px;
  width: 100%; max-width: 420px; max-height: 92vh; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.sa-modal-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 14px; padding: 22px 22px 12px; text-align: left;
}
.sa-modal-title { font-size: 18px; font-weight: 600; color: var(--text); }
.sa-modal-title b { font-weight: 700; }
.sa-modal-sub { color: var(--muted-2); font-size: 12px; margin-top: 4px; }
.sa-modal-close {
  background: transparent; color: var(--muted-2); font-size: 18px; padding: 4px 8px;
  border-radius: 8px; line-height: 1; border: none; cursor: pointer;
}
.sa-modal-close:hover { background: var(--card); color: var(--text); }
.sa-modal-tabs {
  display: flex; gap: 8px; padding: 0 22px 16px; border-bottom: 1px solid var(--border);
}
.sa-tab {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--card-2); color: var(--muted); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 0; font-size: 13px; font-weight: 600; cursor: pointer;
}
.sa-tab.active { background: #eaf1ff; color: var(--primary); border-color: var(--primary); }
.sa-modal-body { padding: 22px; min-height: 220px; text-align: center; }
.sa-qr-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.sa-qr {
  width: 220px; height: 220px; max-width: 100%; aspect-ratio: 1 / 1;
  background: #fff; border: 1px solid #2b3a5c; border-radius: 16px; padding: 16px; display: block;
}
.sa-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; height: 220px; }
.sa-spinner {
  width: 36px; height: 36px; border: 3px solid var(--border-2); border-top-color: var(--primary); border-radius: 50%;
  animation: sa-spin 1s linear infinite;
}
@keyframes sa-spin { to { transform: rotate(360deg); } }
.sa-phone-form { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 10px; }

/* 引擎控制卡片 */
.engine-control-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.engine-control-body { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.engine-control-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, #2b6cff 0%, #4f8bff 100%);
  color: #fff; font-size: 24px; display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; box-shadow: 0 4px 12px rgba(43,108,255,.28);
}
.engine-control-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.engine-control-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.engine-control-title .section-title { font-size: 16px; font-weight: 700; color: var(--text); }
.engine-status-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: 600;
}
.engine-status-tag.run { background: rgba(31,170,89,.12); color: #1faa59; }
.engine-status-tag.stop { background: rgba(138,147,166,.12); color: #8a93a6; }
.engine-control-uptime { font-size: 13px; }
.engine-control-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; }
.engine-control-btn {
  flex-shrink: 0; white-space: nowrap;
  padding: 10px 18px; border-radius: 8px; font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px; transition: filter .15s, transform .15s, box-shadow .15s;
}
.engine-control-btn.start { background: #1faa59; color: #fff; box-shadow: 0 4px 12px rgba(31,170,89,.28); }
.engine-control-btn.stop { background: #2b6cff; color: #fff; box-shadow: 0 4px 12px rgba(43,108,255,.28); }
.engine-control-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.engine-control-btn:active { transform: translateY(0); }
@media (max-width: 900px) {
  .engine-control-card { flex-direction: column; align-items: stretch; gap: 14px; }
  .engine-control-btn { justify-content: center; width: 100%; }
}
.sa-phone-form .sa-flow-input { width: 100%; max-width: 320px; }
.sa-flow-input {
  width: 260px; max-width: 100%; padding: 11px 14px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--input); color: var(--text); text-align: center; margin-bottom: 12px;
}
.sa-flow-input::placeholder { color: var(--muted-2); }
.sa-flow-sub { color: var(--muted-2); font-size: 13px; margin-bottom: 16px; line-height: 1.5; }
.sa-flow-error { padding: 20px 0; }
.sa-flow-error .sa-flow-emoji { font-size: 40px; margin-bottom: 12px; }
.sa-flow-error .sa-flow-title { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 6px; }

/* ===================== 移动端适配（手机 / 平板窄屏） ===================== */
/* 注意:很多布局用内联 style 写死(如 grid-template-columns:repeat(3,1fr))，
   故此处用 !important 强制覆盖,让手机真正单列堆叠,而非裁切。 */

@media (max-width: 720px) {
  /* 正常文档流 + overflow-x:hidden 禁横向拖动。
     关键:所有网格/弹性子项加 min-width:0,防止被内部超宽内容撑大 body。 */
  html, body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    position: relative;
    overscroll-behavior-x: none !important;
    touch-action: pan-y !important;
    -webkit-text-size-adjust: 100%;
  }
  #app {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    overscroll-behavior-x: none !important;
    touch-action: pan-y !important;
  }

  /* 网格/弹性子项允许收缩,杜绝被内部宽内容撑宽导致整页可横拖 */
  .grid, .cols-4, .cols-2, .home2col, .home-right, .card,
  .modal, .pills, .row, .brandrow, .run-banner, .modebar { min-width: 0 !important; }

  /* 所有网格一律单列 */
  .grid, .cols-4, .cols-2, .home2col, .home-right,
  [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .home-right { display: grid !important; grid-template-columns: 1fr !important; gap: 12px !important; }
  /* 投注记录 4 卡:手机端两列布局 */
  .kv-cards { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
  .kv-cards .card { padding: 12px !important; overflow: hidden !important; }
  .kv-cards .kv-card-title { font-size: 13px !important; }
    .kv-cards .kv-row { font-size: 13px !important; gap: 6px !important; flex-wrap: nowrap !important; min-height: 42px !important; }
  .kv-cards .kv-row > .muted { flex-shrink: 0 !important; }
  .kv-cards .kv-row > .big { flex-direction: column !important; align-items: flex-end !important; justify-content: center !important; flex-wrap: nowrap !important; row-gap: 2px !important; min-width: 0 !important; }
  .kv-cards .big { font-size: 15px !important; }
  .kv-cards .big .has-usdt { font-size: 15px !important; }
  .kv-cards .pct { font-size: 11px !important; padding: 2px 6px !important; white-space: nowrap !important; }
  .kv-cards .mini-donut { width: 32px !important; height: 32px !important; }
  .kv-cards .mini-donut::after { inset: 5px !important; }

  /* 顶栏:手机端 4个菜单 + 头像 同一排显示,不换行 */
  .topbar { position: sticky !important; flex-wrap: nowrap !important; flex-direction: row !important; align-items: center; justify-content: space-between; gap: 4px; padding: 8px 8px; width: 100%; box-sizing: border-box; }
  .nav { display: flex !important; flex-wrap: nowrap !important; gap: 3px; align-items: stretch; padding: 0; background: transparent; border: none; box-sizing: border-box; width: auto !important; flex: 1 1 auto !important; min-width: 0; order: 1; }
  /* 手机端菜单项:一行4个,名字上下两字双排 */
  .nav .nav-item { display: flex !important; flex-direction: column !important; align-items: center; justify-content: center; line-height: 1.15; flex: 1 1 0 !important; min-width: 0; padding: 6px 1px; font-size: 12px; letter-spacing: 0; white-space: nowrap; }
  .nav .nav-item .nav-2line { display: block; text-align: center; }
  .nav .hamburger, .nav .nav-title { display: none !important; }
  /* 下拉面板与遮罩在手机端不再使用 */
  .nav-dropdown { display: none !important; }
  .nav-backdrop { display: none !important; }
  /* 头像/操作区:与菜单同一排,只占内容宽度 */
  .member-actions { order: 2; display: flex !important; flex-wrap: nowrap !important; gap: 4px; align-items: center; justify-content: flex-end !important; width: auto !important; max-width: none !important; flex: 0 0 auto !important; min-width: 0; overflow: visible; white-space: nowrap; }
  .member-actions > * { flex: 0 0 auto; }
  .member-actions .user-name { display: none !important; }
  .member-actions .user-caret { font-size: 9px; }
  .member-actions .user-pill { padding: 2px 6px 2px 2px; gap: 3px; }
  .member-actions .user-avatar { width: 28px; height: 28px; }
  .member-actions .ghost { padding: 4px 8px; font-size: 13px; }
  .user-dropdown { display: block !important; }
  .user-backdrop { display: block !important; }

  /* 引擎控制:移动端竖向堆叠,按钮满宽 */
  .engine-control-row { flex-direction: column !important; align-items: stretch !important; gap: 12px !important; }
  .engine-control-left { gap: 12px !important; }
  .engine-icon { width: 44px !important; height: 44px !important; font-size: 22px !important; }
  .engine-control-name { font-size: 16px !important; }
  .btn-engine-start, .btn-engine-stop { width: 100% !important; padding: 12px !important; }

  .wrap { padding: 14px; width: 100%; max-width: 100%; box-sizing: border-box; }

  /* 卡片:不再加 overflow:hidden,避免把内部滚动容器/号码格裁掉 */
  .card { padding: 12px; max-width: 100%; width: 100%; box-sizing: border-box; }

  /* 号码格:手机端改为 4 列换行,0-27 共 28 个正好 7 行,无需横滑也不会溢出 */
  .numgrid { grid-template-columns: repeat(4, 1fr) !important; gap: 8px; }
  .numcell { height: 48px; font-size: 16px; }

  /* 候选 pills:确保在卡片内自动换行,单个不撑宽 */
  .pills { width: 100%; box-sizing: border-box; }
  .pill { max-width: 100%; box-sizing: border-box; }
  /* 手机端隐藏桌面表格,显示卡片式投注记录 */
  .card > table.records-desktop { display: none; }
  .bet-cards { display: flex; flex-direction: column; gap: 10px; }

  /* 投注记录卡片(手机端) */
  .bet-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 14px;
    padding-left: 16px;
    overflow: hidden;
    color: #111827;
  }
  .bet-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
  }
  .bet-card.hit::before { background: #22c55e; }
  .bet-card.miss::before { background: #ef4444; }
  .bet-card.pending::before { background: #9ca3af; }
  .bet-card-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .bet-card-row + .bet-card-row { margin-top: 8px; }
  .bet-card-top { align-items: center; gap: 8px; }
  .bet-card-time { font-size: 14px; font-weight: 500; color: #374151; }
  .bet-card-period { font-size: 12px; color: #6b7280; margin-right: auto; }
  .bet-card-middle { justify-content: flex-start; gap: 12px; }
  .bet-mode { color: #2563eb; font-size: 13px; font-weight: 600; }
  .bet-amount { font-size: 15px; font-weight: 600; color: #111827; }
  .bet-card-bottom { align-items: center; }
  .bet-draw { font-size: 14px; font-weight: 500; color: #374151; font-family: monospace; }
  .bet-balance { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: #6b7280; }
  .bet-balance .pos, .bet-balance .neg { font-weight: 600; }
  .bet-empty { text-align: center; padding: 24px 0; }
  .bet-card .bet-result { padding: 3px 10px; font-size: 12px; }

  /* 表格:卡片内独立横滑容器;不锁 touch-action,纵滑冒泡给页面、横滑自身处理 */
  .card > table, .table-wrap { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; box-sizing: border-box; }
  .card > table { min-width: 0; }
  .card > table th, .card > table td, .table-wrap th, .table-wrap td { white-space: nowrap; }
  .table-wrap table { min-width: 600px; }
  .member-note-cell { max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .table-wrap th, .table-wrap td { padding: 7px 9px; font-size: 12px; }
  /* 收益报表表格：手机端整屏显示，禁止横向滑动 */
  .profit-table { display: block !important; overflow: hidden !important; width: 100% !important; }
  .profit-table > table { display: table !important; width: 100% !important; min-width: 0 !important; max-width: 100% !important; table-layout: fixed !important; }
  .profit-table th, .profit-table td { white-space: nowrap; padding: 8px 4px; font-size: 11.5px; text-align: center; overflow: hidden; }
  .profit-table th:nth-child(1), .profit-table td:nth-child(1) { width: 34%; }
  .profit-table th:nth-child(2), .profit-table td:nth-child(2),
  .profit-table th:nth-child(3), .profit-table td:nth-child(3),
  .profit-table th:nth-child(4), .profit-table td:nth-child(4) { width: 22%; }

  /* 强制所有内联固定宽度/最小宽度的元素在手机端收缩,杜绝横向溢出 */
  [style*="min-width"] { min-width: 0 !important; }
  [style*="width:"] { max-width: 100% !important; }
  [style*="width:"][style*="flex:1"] { width: auto !important; }
  .row, .brandrow { width: 100%; box-sizing: border-box; }
  .row > *, .brandrow > * { max-width: 100%; box-sizing: border-box; }
  /* 兜底：手机端禁止任何整页横向溢出 */
  html, body { overflow-x: hidden !important; max-width: 100% !important; }

  /* 按钮/输入触控加大 */
  button { padding: 11px 14px; font-size: 14px; max-width: 100%; box-sizing: border-box; }
  input, select { padding: 11px 10px; font-size: 15px; max-width: 100%; box-sizing: border-box; }

  .h-title { font-size: 19px; }
  .big { font-size: 22px; }
  .daysbadge { font-size: 12px; white-space: normal; }

  /* 号码格加大触控 */
  .numgrid { gap: 6px; }
  .numcell { height: 46px; font-size: 16px; }

  /* 弹窗底部弹出 */
  .modal-mask { align-items: flex-end; }
  .modal { width: 100% !important; max-width: 100vw !important; left: 0; right: 0; padding: 18px; box-sizing: border-box; border-radius: 14px 14px 0 0; max-height: 92vh; overflow-y: auto; overscroll-behavior: contain; }
  .modal[style*="max-width:520px"] { max-width: 100vw !important; }

  /* 看板/统计行 */
  .kv-row > .big, .kv-row > .big .has-usdt { font-size: 16px; }
  .stat-row { font-size: 14px; }
  .kv-card-title { font-size: 13px; }

  /* 运行抬头 */
  .run-banner { gap: 12px; flex-direction: column; align-items: stretch; }
  .run-stat { min-width: 0 !important; width: 100%; }

  /* toast */
  .toast { top: 14px; right: 14px; left: 14px; text-align: center; }

  .login { margin: 8vh auto; width: 100%; max-width: 360px; box-sizing: border-box; }

  /* 操作按钮行换行 */
  .row { flex-wrap: wrap; }
  .modebar { flex-wrap: wrap; }

  /* 二维码图固定尺寸 → 手机端按比例收缩 */
  img[style*="width:260px"] { width: 100% !important; max-width: 260px; height: auto !important; aspect-ratio: 1 / 1; }

  /* 隐藏手机端所有滚动条(上下/左右),但仍可滚动 */
  html, body, #app, .wrap,
  .card, .table-wrap, .card > table,
  .modal, .modal-mask, .topbar, .nav,
  [style*="overflow"] { scrollbar-width: none !important; -ms-overflow-style: none !important; }
  html::-webkit-scrollbar, body::-webkit-scrollbar, #app::-webkit-scrollbar,
  .wrap::-webkit-scrollbar, .card::-webkit-scrollbar, .table-wrap::-webkit-scrollbar,
  .card > table::-webkit-scrollbar, .modal::-webkit-scrollbar, .modal-mask::-webkit-scrollbar,
  .topbar::-webkit-scrollbar, .nav::-webkit-scrollbar { width: 0 !important; height: 0 !important; display: none !important; }

  /* 看板 4 卡间距 */
  .grid { gap: 12px; }
}

@media (max-width: 420px) {
  .pref-grid { grid-template-columns: 1fr; }
  .pref-toggle { margin-left: 0; }
  .has-usdt { min-width: 0; }
  .run-stat { min-width: 100px; }
  .chart { height: 260px; }
}
