/* ============================================================
   USDT量化 · 纸感 Neo-Brutalist 主题
   设计参考：导航网前端（硬边 2px + 硬投影 + 蓝橙撞色 + 纸感网格底）
   开奖走势珠球：对齐竞品格式（绿=单 / 红=双 / 发光=预测）
============================================================ */
:root {
  --paper: #f3f0e8;
  --paper-dark: #e6e1d5;
  --ink: #111111;
  --muted: #69665f;
  --blue: #2d5bff;
  --orange: #ff6b35;
  --line: #151515;
  --card: #fbfaf6;
  --shadow: 7px 7px 0 #151515;
  --shadow-sm: 4px 4px 0 #151515;
  --green: #12a150;
  --red: #e4332f;
  --gold: #f0a020;
  --radius: 4px;
  --max-width: 640px;
}

* { box-sizing: border-box; }

/* hidden 统一语义：作者样式里的 display 会覆盖浏览器默认的 [hidden]{display:none}，
   表情面板/等待条等带 display 的元素必须靠这条强制生效 */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0; padding: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(17, 17, 17, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 17, .05) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
button { font-family: inherit; cursor: pointer; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

/* ============ 登录页 ============ */
.login-wrap {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.login-card {
  width: 100%; max-width: 420px;
  background: var(--card);
  border: 2px solid var(--line);
  box-shadow: var(--shadow);
  padding: 30px 26px;
}
.brand { text-align: center; margin-bottom: 22px; }
.brand-logo {
  width: 76px; height: 76px;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 16px;
  box-shadow: 4px 4px 0 var(--orange);
  padding: 5px;
  object-fit: contain;
}
.brand h1 {
  margin: 8px 0 4px;
  font-size: 30px; letter-spacing: 2px; font-weight: 900;
  display: inline-flex; align-items: center; gap: 10px;
}
.brand h1 .accent {
  color: #fff; background: var(--blue);
  border: 2px solid var(--line);
  box-shadow: 3px 3px 0 var(--orange);
  padding: 2px 10px;
  transform: rotate(-1.5deg);
}
.brand .sub {
  color: var(--muted); font-size: 10px; letter-spacing: .22em;
  font-family: Consolas, monospace; font-weight: 700;
}
.login-tabs {
  display: flex; gap: 0; margin-bottom: 20px;
  border: 2px solid var(--line);
  background: var(--paper-dark);
}
.login-tabs button {
  flex: 1; border: 0; color: var(--muted);
  padding: 10px 0; font-size: 14px; font-weight: 900;
  transition: background .15s, color .15s;
}
.login-tabs button + button { border-left: 2px solid var(--line); }
.login-tabs button.active {
  background: var(--ink); color: #fff;
}
.field { margin-bottom: 14px; }
.field label {
  display: block; font-size: 11px; font-weight: 900;
  letter-spacing: .06em; margin-bottom: 6px;
}
.field input {
  width: 100%; padding: 11px 12px;
  background: #fff; color: var(--ink);
  border: 2px solid var(--line); outline: none;
  font-size: 14px;
}
.field input:focus { box-shadow: inset 0 0 0 2px var(--blue); }
.field input::placeholder { color: #a8a499; }
.captcha-row { display: flex; gap: 10px; align-items: stretch; }
.captcha-row input { flex: 1; }
.captcha-img {
  height: auto; cursor: pointer;
  border: 2px solid var(--line); background: #f6f8fa;
}
.btn {
  width: 100%; border: 2px solid var(--line); padding: 12px 0;
  font-size: 15px; font-weight: 900; color: #fff;
  background: var(--blue);
  box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--line); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--line); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-secondary {
  background: #fff; color: var(--ink);
}
.btn-danger { background: var(--red); }
.btn-warn { background: var(--orange); }
.btn-sm {
  width: auto; padding: 7px 12px; font-size: 12px; white-space: nowrap;
  box-shadow: 2px 2px 0 var(--line);
}
.btn-sm:hover { box-shadow: 3px 3px 0 var(--line); }
.login-foot {
  margin-top: 16px; text-align: center; color: var(--muted); font-size: 12px;
  line-height: 1.8;
}

/* ============ 主应用 ============ */
.app-wrap {
  min-height: 100vh;
  padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px));
  max-width: var(--max-width);
  margin: 0 auto;
  border-left: 2px solid var(--line);
  border-right: 2px solid var(--line);
  background:
    linear-gradient(rgba(17, 17, 17, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 17, .045) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
}
.app-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: rgba(243, 240, 232, .96);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--line);
}
.app-header .logo {
  font-weight: 900; font-size: 17px; letter-spacing: 1px;
  display: inline-flex; align-items: center; gap: 8px;
}
.app-header .logo .accent { color: var(--blue); }
.logo-img {
  width: 34px; height: 34px; flex: none;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 9px;
  padding: 2px;
  object-fit: contain;
}
.app-header .right { display: flex; align-items: center; gap: 10px; }
.balance-chip {
  background: var(--ink); color: #fff;
  border: 2px solid var(--line);
  padding: 5px 12px; font-size: 12px; font-weight: 700;
  cursor: pointer; user-select: none;
  transition: transform .12s ease, box-shadow .12s ease;
}
.balance-chip:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--line); }
.balance-chip b { color: #7d9bff; }
/* 已对接平台：平台名标绿，余额随币种切换 */
.balance-chip.on { border-color: var(--green); }
.balance-chip.on #platformName { color: var(--green); margin-right: 4px; }
.balance-chip #balanceUnit { color: #a3a3c2; font-weight: 700; margin-left: 2px; }

/* 余额圆形刷新按钮：顶栏余额芯片旁，点击强制跳过服务端缓存拉取真实余额 */
.bal-refresh {
  width: 26px; height: 26px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--card); color: var(--ink);
  border: 2px solid var(--line); border-radius: 50%;
  font-size: 14px; font-weight: 900; line-height: 1; cursor: pointer;
  box-shadow: 2px 2px 0 var(--line);
  transition: transform .12s ease, box-shadow .12s ease;
}
.bal-refresh:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--line); }
.bal-refresh:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--line); }
.bal-refresh.spin { animation: balSpin .8s linear infinite; }
@keyframes balSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* 启动投注币种选择弹窗：USDT/TRX/CNY 余额行 */
.betcur-tip { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.betcur-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 6px; }
.betcur-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; background: #fff;
  border: 2px solid var(--line); box-shadow: 2px 2px 0 var(--line);
  cursor: pointer; user-select: none;
}
.betcur-item:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--line); }
.betcur-item.sel { border-color: var(--blue); background: #eef1ff; }
.betcur-item.disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.betcur-cur { font-size: 14px; font-weight: 900; min-width: 44px; }
.betcur-src { flex: 1; font-size: 11px; color: var(--muted); font-weight: 700; }
.betcur-val { font-size: 15px; font-weight: 900; font-family: Consolas, monospace; }

/* 平台管理按钮 */
.platform-btn {
  background: var(--card); color: var(--ink);
  border: 2px solid var(--line);
  padding: 5px 14px; font-size: 12px; font-weight: 900;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.platform-btn:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--blue); }
.platform-btn.active { background: var(--blue); color: #fff; border-color: var(--line); }

/* 平台选择网格 */
.pf-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px;
}
.pf-card {
  border: 2px solid var(--line); background: #fff;
  padding: 10px 6px; text-align: center; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.pf-card:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--line); }
.pf-card .nm { font-weight: 900; font-size: 14px; }
.pf-card .st { font-size: 10px; margin-top: 3px; font-weight: 700; }
.pf-card .st.on { color: var(--green); }
.pf-card .st.off { color: var(--muted); }
.pf-card.sel { border-color: var(--blue); box-shadow: 3px 3px 0 var(--blue); }
.pf-card.locked { opacity: .5; cursor: not-allowed; }
.pf-bal-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; font-weight: 700; padding: 6px 2px;
  border-bottom: 1px dashed var(--line);
}

.view { display: none; padding: 16px; }
.view.active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; } }

.card {
  background: var(--card);
  border: 2px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 16px; margin-bottom: 16px;
}
.card h2 {
  margin: 0 0 12px; font-size: 16px; font-weight: 900;
  letter-spacing: .02em;
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 8px; border-bottom: 2px solid var(--line);
}
.card h2::before {
  content: ""; width: 12px; height: 12px; flex-shrink: 0;
  background: var(--orange); border: 2px solid var(--line);
}
.section-title {
  font-size: 12px; letter-spacing: 2px; color: var(--muted);
  font-weight: 900; margin: 18px 0 10px;
}

/* 统计 */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat-item {
  background: var(--paper-dark);
  border: 2px solid var(--line);
  padding: 12px 8px; text-align: center;
}
.stat-item .label { font-size: 11px; color: var(--muted); margin-bottom: 4px; font-weight: 700; }
.stat-item .value { font-size: 18px; font-weight: 900; font-family: Consolas, monospace; }
.stat-item .value.up { color: var(--green); }
.stat-item .value.down { color: var(--red); }
.stat-item .unit { font-size: 11px; color: var(--muted); }

/* 周期/币种切换 */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-width: 52px; text-align: center;
  background: #fff; color: var(--ink);
  border: 2px solid var(--line);
  padding: 7px 14px; font-size: 13px; font-weight: 900;
  transition: transform .12s ease, box-shadow .12s ease;
}
.chip:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--line); }
.chip.active {
  background: var(--ink); color: #fff;
  box-shadow: 3px 3px 0 var(--orange);
}
.chip.huge { flex: 1; }

/* 个人中心 / 充值卡内的小型币种切换条 */
.cur-switch { display: flex; gap: 8px; margin-bottom: 12px; }
.cur-switch .chip { min-width: 64px; padding: 6px 16px; font-size: 12px; }

/* 币种切换：与下方三张统计卡（.stat-grid）同尺寸、上下左右对齐 */
#currencyRow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
#currencyRow .chip { width: 100%; }

/* 开奖走势周期切换（3S~180S 共 7 个）：固定一行七等分，不折行 */
#cycleRow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
#cycleRow .chip {
  width: 100%; min-width: 0;
  padding: 7px 2px; font-size: 12px;
  text-align: center;
}

/* ============ 开奖走势（竞品格式） ============ */
.draw-panel { display: grid; gap: 12px; }

/* 核验条：最新区块 / 圆形倒计时 / 待开奖区块 */
.verify-strip {
  display: grid;
  grid-template-columns: 1fr 58px 1fr;
  gap: 10px;
  align-items: stretch;
}
.verify-block {
  border: 2px solid var(--line);
  background: #fff;
  padding: 10px 12px;
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
}
.verify-block span { font-size: 10px; color: var(--muted); font-weight: 700; letter-spacing: .04em; }
.verify-block strong {
  font-family: Consolas, monospace; font-size: 17px; font-weight: 900;
  letter-spacing: -.02em;
}
.verify-block small { font-size: 11px; color: var(--ink); font-weight: 700; }
.verify-block small b { color: var(--red); }
.pending-block { border-color: var(--blue); background: #fff; }
.pending-block strong { color: var(--blue); }

/* 区块卡进度条：随开奖倒计时同周期进度填充（复用 --pct），斜纹流动做动态展示 */
.vbar {
  display: block; height: 6px; margin-top: 6px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper-dark); overflow: hidden;
}
.vbar b {
  display: block; height: 100%; width: var(--pct, 0%);
  border-radius: inherit; transition: width .12s linear;
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, .4) 0 6px, transparent 6px 12px);
  background-size: 24px 24px;
  animation: vbarFlow .7s linear infinite;
}
.vbar-green b { background-color: var(--green); box-shadow: 0 0 10px rgba(18, 161, 80, .55); }
.vbar-blue b { background-color: var(--blue); box-shadow: 0 0 10px rgba(45, 91, 255, .5); }
@keyframes vbarFlow { to { background-position: 24px 0; } }

/* 圆形倒计时（conic 进度） */
.verify-countdown {
  width: 54px; height: 54px; justify-self: center; align-self: center;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--line);
  background:
    radial-gradient(circle, #fff 0 60%, transparent 62%),
    conic-gradient(var(--blue) 0 var(--pct, 0%), rgba(17, 17, 17, .14) var(--pct, 0%) 100%);
  font-family: Consolas, monospace;
  font-size: 20px; font-weight: 900;
  box-shadow: 0 0 0 5px rgba(17, 17, 17, .06);
  font-variant-numeric: tabular-nums;
}

/* 当前预测期卡片 */
.current-prediction-card {
  display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center;
  border: 2px solid var(--line);
  background: linear-gradient(135deg, rgba(45, 91, 255, .1), rgba(255, 107, 53, .06)), #fff;
  padding: 12px 14px;
}
.current-prediction-card span { font-size: 10px; color: var(--muted); font-weight: 700; letter-spacing: .04em; }
.current-prediction-card strong {
  display: block; font-family: Consolas, monospace;
  font-size: 17px; font-weight: 900; margin-top: 2px;
}
.current-prediction-card small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.pred-badge {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--line);
  font-size: 19px; font-weight: 900; color: #fff;
  background: radial-gradient(circle, #18c997 0 45%, #087c59 58%, transparent 61%), #fff;
  box-shadow: 3px 3px 0 var(--line);
}
.pred-badge.even {
  background: radial-gradient(circle, #ff686d 0 45%, #df1f38 58%, transparent 61%), #fff;
}
.pred-badge-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pred-status {
  font-size: 10px; font-weight: 900; letter-spacing: .06em; color: #8a5a00;
  background: #ffc107; border: 1.5px solid #c98a00; border-radius: 999px;
  padding: 1px 8px; white-space: nowrap;
}

/* 走势珠盘路（列状连珠）：同结果纵向堆叠成列，结果变化另起一列，最高 5 行；
   空位补空格子形成填满的矩形网格，对齐竞品 grid 布局 */
.draw-trend {
  display: grid;
  grid-template-columns: repeat(var(--road-cols, 10), 26px);
  grid-template-rows: repeat(5, 26px);
  gap: 0;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .5);
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.draw-trend::-webkit-scrollbar { display: none; }
.draw-trend span {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  padding: 0;
  color: #fff; font-size: 10px; font-weight: 900;
  background: radial-gradient(circle, #18c997 0 45%, #087c59 58%, rgba(0, 0, 0, 0) 61%);
  position: relative;
  border-right: 1.5px solid rgba(16, 24, 32, .78);
  border-bottom: 1.5px solid rgba(16, 24, 32, .78);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .24);
}
.draw-trend span.even {
  background: radial-gradient(circle, #ff686d 0 45%, #df1f38 58%, rgba(0, 0, 0, 0) 61%);
}
/* 预测珠：呼吸缩放 + 光晕环（对齐竞品 predictionBallBlink / predictionBallHalo） */
.draw-trend span.predicting {
  color: #fff;
  background: radial-gradient(circle, #ffffff 0 11%, #33ffd0 12% 43%, #049b6d 57%, rgba(0, 0, 0, 0) 63%), rgba(18, 189, 134, .18);
  outline: 2px solid rgba(18, 255, 189, .86);
  outline-offset: -5px;
  font-size: 9px;
  letter-spacing: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .42), 0 0 8px rgba(255, 255, 255, .72);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .52), 0 0 0 3px rgba(18, 189, 134, .16), 0 0 22px rgba(18, 189, 134, .62);
  animation: prediction-blink .72s ease-in-out infinite;
  z-index: 1;
}
.draw-trend span.predicting.even {
  background: radial-gradient(circle, #ffffff 0 11%, #ff8b8b 12% 43%, #df1f38 57%, rgba(0, 0, 0, 0) 63%), rgba(239, 68, 68, .2);
  outline-color: rgba(255, 100, 100, .9);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .52), 0 0 0 3px rgba(239, 68, 68, .18), 0 0 24px rgba(239, 68, 68, .68);
}
.draw-trend span.predicting::before {
  content: "";
  position: absolute;
  top: 2px; right: 2px; bottom: 2px; left: 2px;
  display: block;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, .78);
  box-shadow: 0 0 20px rgba(18, 255, 189, .78), 0 0 34px rgba(18, 189, 134, .52);
  animation: prediction-halo .58s ease-in-out infinite;
  pointer-events: none;
}
.draw-trend span.predicting.even::before {
  box-shadow: 0 0 22px rgba(255, 100, 100, .82), 0 0 36px rgba(239, 68, 68, .56);
}
@keyframes prediction-blink {
  0%, 100% { opacity: .62; transform: scale(.88); filter: brightness(.94) saturate(1.08); }
  50%      { opacity: 1;   transform: scale(1.16); filter: brightness(1.45) saturate(1.28); }
}
@keyframes prediction-halo {
  0%, 100% { opacity: .22; transform: scale(.78); }
  50%      { opacity: 1;   transform: scale(1.28); }
}
.draw-trend span.empty {
  background: transparent;
  color: transparent;
}
.draw-note {
  font-size: 11px; color: var(--muted); margin-top: 2px; line-height: 1.6;
}

/* 样本胜率概览 · 近期走势（单/双 序列，左老右新） */
.recent-trend {
  margin-top: 10px; padding-top: 10px;
  border-top: 1.5px dashed rgba(17, 17, 17, .25);
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}
.recent-label {
  font-size: 11px; font-weight: 900; letter-spacing: .06em; color: var(--muted);
  flex-shrink: 0;
}
.recent-chips { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.rt-chip {
  display: inline-block; min-width: 20px; text-align: center;
  color: #fff; background: #18c997; border: 1.5px solid #087c59;
  font-weight: 900; font-size: 10px; padding: 1px 5px; border-radius: 3px;
}
.rt-chip.even {
  background: #ff686d; border-color: #df1f38;
}

/* ============ 样本胜率概览：AI 计算质感 ============ */
/* 单/双对决卡：硬边白卡，数据到达时边框脉冲发光 */
.ai-odds-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ai-odds-item {
  border: 2px solid var(--line); background: #fff;
  box-shadow: 3px 3px 0 var(--line);
  padding: 10px 12px 12px;
}
.ai-odds-item.flash { animation: aiFlash .6s ease; }
.ai-odds-top { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.ai-odds-count { font-size: 24px; font-weight: 900; font-family: Consolas, monospace; letter-spacing: -.02em; }
.ai-odds-rate { font-size: 13px; font-weight: 900; font-family: Consolas, monospace; color: var(--muted); white-space: nowrap; }
.ai-odds-label { font-size: 11px; color: var(--muted); font-weight: 700; margin: 2px 0 8px; }
/* 胜率仪表条：刻度纹理底 + 渐变填充 */
.ai-bar {
  height: 12px; border: 2px solid var(--line);
  background: repeating-linear-gradient(90deg, rgba(17, 17, 17, .06) 0 6px, transparent 6px 12px);
  overflow: hidden;
}
.ai-bar-fill {
  display: block; height: 100%; width: 0;
  transition: width .7s cubic-bezier(.22, .9, .3, 1);
}
.ai-bar-fill.up { background: linear-gradient(90deg, #0ea36f, #18c997 60%, #7dedc8); }
.ai-bar-fill.down { background: linear-gradient(90deg, #e23b4e, #ff686d 60%, #ffabae); }

/* 样本数据池：整行深色大卡，脉冲呼吸点 */
.ai-pool {
  margin-top: 10px; padding: 10px 12px;
  border: 2px solid var(--line); background: var(--ink); color: #fff;
  box-shadow: 3px 3px 0 var(--line);
  display: flex; align-items: center; gap: 8px;
}
.ai-pool .label { color: rgba(255, 255, 255, .75); font-size: 11px; font-weight: 700; }
.ai-pool-num { font-size: 22px; font-weight: 900; font-family: Consolas, monospace; margin-left: auto; letter-spacing: -.02em; }
.ai-pool-unit { font-size: 11px; color: rgba(255, 255, 255, .75); font-weight: 700; }
.ai-pulse {
  width: 10px; height: 10px; flex-shrink: 0;
  background: #18c997; border: 1.5px solid #fff;
  animation: aiPulse 1.6s ease-out infinite;
}

/* 策略依据：蓝色竖条 + 打字机光标 */
.ai-predinfo {
  margin-top: 10px; font-size: 12px; color: var(--muted); line-height: 1.7;
  border-left: 3px solid var(--blue); padding-left: 8px;
  min-height: 20px; word-break: break-all;
}
.ai-predinfo.typing::after {
  content: '\258C'; color: var(--blue);
  animation: aiCaret .7s steps(1) infinite;
}

@keyframes aiPulse {
  0% { box-shadow: 0 0 0 0 rgba(24, 201, 151, .8); }
  70% { box-shadow: 0 0 0 9px rgba(24, 201, 151, 0); }
  100% { box-shadow: 0 0 0 0 rgba(24, 201, 151, 0); }
}
@keyframes aiFlash {
  0% { box-shadow: 3px 3px 0 var(--line), 0 0 0 3px rgba(24, 201, 151, .55), 0 0 16px rgba(24, 201, 151, .5); }
  100% { box-shadow: 3px 3px 0 var(--line), 0 0 0 0 rgba(24, 201, 151, 0), 0 0 0 rgba(24, 201, 151, 0); }
}
@keyframes aiCaret { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* 尊重减少动态偏好：动效全部直出终值 */
@media (prefers-reduced-motion: reduce) {
  .ai-pulse, .ai-odds-item.flash { animation: none !important; }
  .ai-bar-fill { transition: none !important; }
  .ai-predinfo.typing::after { content: none; }
}

/* 直播表 */
.table-wrap { overflow-x: auto; border: 2px solid var(--line); background: #fff; }
/* min-width 归零：窄屏不再出现横向裁列，靠缩小字号与间距保证单行显示 */
.live-table { width: 100%; border-collapse: collapse; font-size: 11.5px; min-width: 0; }
.live-table th {
  text-align: left; color: #fff; font-weight: 900; font-size: 11px;
  padding: 7px 8px; background: var(--ink);
  letter-spacing: .04em; white-space: nowrap;
}
.live-table td { padding: 6px 8px; border-top: 1px solid rgba(17, 17, 17, .18); white-space: nowrap; }
/* 直播状态栏：余额/盈亏单行不换行 */
.live-status { margin-bottom: 10px; font-size: 13px; flex-wrap: nowrap; }
#liveBalance { color: var(--blue); font-weight: 900; font-family: Consolas, monospace; white-space: nowrap; }
.live-profit { margin-left: auto; white-space: nowrap; }
.live-table td.mono { font-family: Consolas, monospace; color: var(--muted); }
.tag-dan {
  display: inline-block; min-width: 22px; text-align: center;
  color: #fff; background: #18c997; border: 1.5px solid #087c59;
  font-weight: 900; padding: 1px 6px; font-size: 11px;
}
.tag-shuang {
  display: inline-block; min-width: 22px; text-align: center;
  color: #fff; background: #ff686d; border: 1.5px solid #df1f38;
  font-weight: 900; padding: 1px 6px; font-size: 11px;
}
/* AI 直播进行中的下注（等待开奖） */
.live-table tr.pending-row td { background: rgba(255, 193, 7, .12); }
/* 特性调高，避免行底色覆盖预测标签的绿/红底，导致白字不可读 */
.live-table tr.pending-row td.tag-dan { background: #18c997; }
.live-table tr.pending-row td.tag-shuang { background: #ff686d; }
.tag-pending {
  display: inline-block; min-width: 34px; text-align: center;
  color: #8a5a00; background: #ffc107; border: 1.5px solid #c98a00;
  font-weight: 900; padding: 1px 6px; font-size: 11px;
}
.profit-up { color: var(--green); font-weight: 900; font-family: Consolas, monospace; }
.profit-down { color: var(--red); font-weight: 900; font-family: Consolas, monospace; }

/* ===== AI 预测下注直播驾驶舱：LIVE 徽标 / 双大Tile / 四格指标 / 胜负绶带 / 行入场动效 ===== */
.live-badge {
  display: inline-flex; align-items: center; gap: 5px; margin-left: 8px;
  padding: 2px 9px; border: 2px solid var(--red); border-radius: 999px;
  color: var(--red); background: #fff;
  font-size: 10px; font-weight: 900; letter-spacing: .12em; vertical-align: 2px;
}
.live-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: liveDot 1s ease-in-out infinite; }
@keyframes liveDot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(228, 51, 47, .5); }
  50% { opacity: .35; box-shadow: 0 0 0 5px rgba(228, 51, 47, 0); }
}
.live-cockpit { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.live-tile {
  position: relative; overflow: hidden;
  border: 2px solid var(--line); background: #fff; padding: 8px 12px;
  box-shadow: var(--shadow-sm);
}
.live-tile span { display: block; font-size: 10px; font-weight: 900; color: var(--muted); letter-spacing: .06em; }
.live-tile strong { display: block; margin-top: 3px; font-size: 19px; font-weight: 900; font-family: Consolas, monospace; letter-spacing: -.02em; }
/* 盈亏Tile变动辉光：涨绿环 / 跌红环扩散一次 */
.live-tile.flash-up { animation: tileFlashUp 1s ease; }
.live-tile.flash-down { animation: tileFlashDown 1s ease; }
@keyframes tileFlashUp { 0% { box-shadow: 0 0 0 0 rgba(18, 161, 80, .55); } 100% { box-shadow: 0 0 0 14px rgba(18, 161, 80, 0); } }
@keyframes tileFlashDown { 0% { box-shadow: 0 0 0 0 rgba(228, 51, 47, .55); } 100% { box-shadow: 0 0 0 14px rgba(228, 51, 47, 0); } }
.live-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 8px; }
.live-m { border: 1.5px solid rgba(21, 21, 21, .35); background: var(--card); padding: 5px 8px; text-align: center; }
.live-m span { display: block; font-size: 10px; font-weight: 800; color: var(--muted); white-space: nowrap; }
.live-m strong { display: block; margin-top: 2px; font-size: 15px; font-weight: 900; font-family: Consolas, monospace; }
.live-m strong.up { color: var(--green); }
.live-m strong.down { color: var(--red); }
.live-m strong.streak-up { color: var(--green); }
.live-m strong.streak-down { color: var(--red); }
/* 胜负绶带：左旧右新，最新格弹入，带面流光缓扫 */
.live-ribbon {
  position: relative; overflow: hidden; display: flex; gap: 4px; align-items: center;
  min-height: 20px; margin-bottom: 10px; padding: 3px 4px;
  border: 1.5px dashed rgba(21, 21, 21, .3); background: var(--paper);
}
.live-ribbon i { width: 14px; height: 14px; border-radius: 3px; flex: 0 0 auto; }
.live-ribbon i.win { background: var(--green); box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .25); }
.live-ribbon i.loss { background: var(--red); box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .25); }
.live-ribbon i.pop { animation: rbPop .5s cubic-bezier(.34, 1.56, .64, 1); }
.live-ribbon::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -30%; width: 26%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  animation: ribbonShine 3.2s linear infinite; pointer-events: none;
}
@keyframes ribbonShine { to { left: 115%; } }
@keyframes rbPop { 0% { transform: scale(.2); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
/* 新结算行入场：上方滑入 + 背景闪黄，结果格弹跳 */
.live-table tr.row-in { animation: rowIn .9s ease; }
.live-table tr.row-in td:nth-child(3) { animation: rbPop .55s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes rowIn {
  0% { transform: translateY(-10px); background: rgba(240, 160, 32, .35); opacity: .2; }
  60% { background: rgba(240, 160, 32, .22); }
  100% { transform: translateY(0); background: transparent; opacity: 1; }
}
/* 待揭晓行：金色流光缓扫呼应等待态 */
.live-table tr.pending-row {
  background-image: linear-gradient(100deg, transparent 42%, rgba(255, 193, 7, .18) 50%, transparent 58%);
  background-size: 220% 100%;
  animation: pendingShine 2.4s linear infinite;
}
@keyframes pendingShine { 0% { background-position: 120% 0; } 100% { background-position: -120% 0; } }

/* 策略 */
.strat-item {
  background: #fff;
  border: 2px solid var(--line);
  box-shadow: 3px 3px 0 var(--line);
  padding: 12px; margin-bottom: 10px;
}
.strat-item .name {
  font-weight: 900; margin-bottom: 6px;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.strat-item .meta { font-size: 12px; color: var(--muted); line-height: 1.8; }
.strat-item .ops { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; justify-content: space-between; }
.strat-item .ops button {
  border: 2px solid var(--line); background: #fff; color: var(--ink);
  padding: 6px 12px; font-size: 12px; font-weight: 900;
  box-shadow: 2px 2px 0 var(--line);
  transition: transform .1s ease, box-shadow .1s ease;
  flex: 1 1 auto; white-space: nowrap;
}
.strat-item .ops button:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--line); }
.strat-item .ops button.primary { background: var(--blue); color: #fff; }
.strat-item .ops button.danger { background: var(--red); color: #fff; }

/* 策略卡头部：「展示」开关 + 名称标签（对齐目标站卡片布局） */
.strat-item .head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.strat-item .head .show { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 900; color: var(--muted); cursor: pointer; user-select: none; }
.strat-item .head .show input { width: 16px; height: 16px; accent-color: var(--green); cursor: pointer; }
.strat-item .head .sname {
  background: var(--green); color: #fff; border: 2px solid var(--line);
  box-shadow: 2px 2px 0 var(--line); padding: 6px 14px;
  font-size: 13px; font-weight: 900; max-width: 65%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* 策略卡统计行：胜率 / 投注 / 次数 / 盈亏 */
.strat-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.strat-stats .cell { background: var(--paper-dark); border: 1.5px solid var(--line); padding: 6px 2px; text-align: center; min-width: 0; }
.strat-stats .cell .k { font-size: 10px; color: var(--muted); font-weight: 700; }
.strat-stats .cell .v { font-size: 12px; font-weight: 900; font-family: Consolas, monospace; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 记录监控弹窗：汇总指标 + 注单表 */
.mon-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.mon-summary .cell { background: var(--paper-dark); border: 1.5px solid var(--line); padding: 6px 2px; text-align: center; min-width: 0; }
.mon-summary .cell .k { font-size: 10px; color: var(--muted); font-weight: 700; }
.mon-summary .cell .v { font-size: 12px; font-weight: 900; font-family: Consolas, monospace; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mon-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.mon-table th, .mon-table td { border: 1.5px solid var(--line); padding: 4px 3px; text-align: center; white-space: nowrap; }
.mon-table th { background: var(--paper-dark); font-weight: 900; position: sticky; top: 0; }

/* 智能跟投页（首页「智能跟投」进入） */
.follow-btn { background: #fff; color: var(--green); border-color: var(--green) !important; }
.follow-btn:hover { background: var(--green); color: #fff; }

/* ===== 首页智能跟投横幅：hero-card + 动态 AI 能量球（对标目标站首页横幅） ===== */
.hero-card {
  position: relative; overflow: hidden; z-index: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) 104px;
  align-items: center; gap: 14px;
  margin-bottom: 14px; padding: 16px 14px 30px;
  background:
    radial-gradient(circle at 82% 28%, rgba(18, 161, 80, .16), transparent 30%),
    radial-gradient(circle at 10% 85%, rgba(45, 91, 255, .07), transparent 32%),
    var(--card);
  border: 2px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.hero-card > * { position: relative; z-index: 1; }
.hero-card.active { border-color: var(--green); animation: heroGlow 1.6s ease-in-out infinite; }
/* 运行中：卡片背后双圈波纹旋转扩散 */
.hero-card.active::after {
  content: ""; position: absolute; top: -45%; right: -45%; bottom: -45%; left: -45%; z-index: 0;
  background:
    radial-gradient(circle, transparent 32%, rgba(18, 161, 80, .20) 33%, transparent 45%),
    radial-gradient(circle, transparent 48%, rgba(18, 161, 80, .14) 49%, transparent 61%);
  animation: heroWave 1.8s linear infinite;
}
@keyframes heroGlow {
  0%, 100% { box-shadow: var(--shadow-sm), 0 0 0 rgba(18, 161, 80, 0); }
  50% { box-shadow: var(--shadow-sm), 0 0 26px rgba(18, 161, 80, .45); }
}
@keyframes heroWave {
  0% { opacity: .2; transform: scale(.72) rotate(0); }
  50% { opacity: .78; }
  100% { opacity: .08; transform: scale(1.08) rotate(1turn); }
}
.hero-status { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; font-size: 12px; font-weight: 900; color: var(--muted); }
.hero-status .dot { width: 9px; height: 9px; border-radius: 50%; background: #b9b4a8; }
.hero-card.active .hero-status { color: var(--green); }
.hero-card.active .hero-status .dot { background: var(--green); box-shadow: 0 0 8px rgba(18, 161, 80, .8); animation: heroDot 1.05s ease-in-out infinite; }
@keyframes heroDot { 0%, 100% { transform: scale(1); } 50% { transform: scale(.7); } }
.hero-start-btn {
  display: block; margin: 0 0 10px; padding: 8px 12px;
  background: transparent; color: var(--ink);
  border: 2px solid rgba(18, 161, 80, .55); border-radius: var(--radius);
  font-size: 22px; line-height: 1.1; font-weight: 900; text-align: left;
  cursor: pointer; box-shadow: 0 0 16px rgba(18, 161, 80, .18);
  transition: transform .12s ease, box-shadow .12s ease;
}
.hero-start-btn:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--green); }
.hero-card.active .hero-start-btn { border-color: var(--green); color: var(--green); }
.hero-smart-btn {
  min-height: 34px; margin: 0 0 8px; padding: 0 14px;
  border: 2px solid rgba(18, 161, 80, .5); border-radius: 999px;
  background: var(--card); color: var(--green);
  font-size: 13px; font-weight: 900; cursor: pointer;
  box-shadow: 0 0 14px rgba(18, 161, 80, .16);
  transition: background .12s ease, color .12s ease;
}
.hero-smart-btn:hover { background: var(--green); color: #fff; }
.hero-tip { margin: 0; font-size: 12px; line-height: 1.55; font-weight: 700; color: var(--muted); }
.hero-radar {
  position: relative;
  width: 96px; height: 96px; display: grid; place-items: center;
  border-radius: 999px; border: 2px solid var(--line); background: var(--paper);
  box-shadow: inset 0 0 0 14px rgba(21, 21, 21, .05), inset 0 0 0 28px rgba(21, 21, 21, .04);
}
.hero-radar span { width: 34px; height: 34px; border-radius: inherit; background: #b9b4a8; animation: coreBreath 3.2s ease-in-out infinite; }
.hero-card.active .hero-radar span {
  background: var(--green);
  box-shadow: 0 0 0 9px rgba(18, 161, 80, .24), 0 0 26px rgba(18, 161, 80, .58);
  animation: heroCore 1.05s ease-in-out infinite;
}
@keyframes heroCore {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 9px rgba(18, 161, 80, .24), 0 0 26px rgba(18, 161, 80, .58); }
  50% { opacity: .45; transform: scale(.78); box-shadow: 0 0 0 16px rgba(18, 161, 80, .12), 0 0 40px rgba(18, 161, 80, .85); }
}

/* ===== 横幅动态引擎：待机/全功率双态动效语言（自有设计） ===== */
/* 卡面扫光：待机也有一道缓行微光，横幅始终“活着” */
.hero-card::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 34%; z-index: 0;
  background: linear-gradient(100deg, transparent, rgba(18, 161, 80, .07), rgba(45, 91, 255, .05), transparent);
  animation: cardScan 7s linear infinite; pointer-events: none;
}
@keyframes cardScan { to { left: 120%; } }
/* 状态均衡器：四棒错峰跳动，待机灰慢 / 运行绿快 */
.hero-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.hero-eq b { width: 3px; height: 100%; background: currentColor; transform-origin: bottom; animation: eqBar 2.2s ease-in-out infinite; }
.hero-eq b:nth-child(2) { animation-delay: .18s; }
.hero-eq b:nth-child(3) { animation-delay: .36s; }
.hero-eq b:nth-child(4) { animation-delay: .54s; }
.hero-card.active .hero-eq b { animation-duration: .9s; }
@keyframes eqBar { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
/* 能量球三层：雷达扫描扇面 + 虚线仪表环（带卫星点） + 核心 */
.hero-radar .sweep {
  position: absolute; inset: 5px; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(21, 21, 21, .12), transparent 28%);
  animation: radarSpin 6s linear infinite;
}
.hero-card.active .hero-radar .sweep {
  background: conic-gradient(from 0deg, rgba(18, 161, 80, .45), transparent 30%);
  animation-duration: 2.4s;
}
.hero-radar .orbit {
  position: absolute; inset: -9px; border-radius: 50%;
  border: 2px dashed rgba(21, 21, 21, .28);
  animation: radarSpin 14s linear infinite;
}
.hero-radar .orbit b {
  position: absolute; top: -5px; left: 50%; width: 8px; height: 8px; margin-left: -4px;
  border-radius: 50%; background: #b9b4a8;
}
.hero-card.active .hero-radar .orbit { border-color: rgba(18, 161, 80, .55); animation-duration: 5s; }
.hero-card.active .hero-radar .orbit b { background: var(--green); box-shadow: 0 0 8px rgba(18, 161, 80, .85); }
@keyframes radarSpin { to { transform: rotate(1turn); } }
/* 待机核心呼吸（运行时被 heroCore 脉动覆写） */
@keyframes coreBreath { 0%, 100% { transform: scale(1); opacity: .72; } 50% { transform: scale(1.09); opacity: 1; } }
/* 主按钮流光邀约 */
.hero-start-btn { position: relative; overflow: hidden; }
.hero-start-btn::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -45%; width: 38%;
  background: linear-gradient(100deg, transparent, rgba(18, 161, 80, .2), transparent);
  animation: btnSheen 3s ease-in-out infinite; pointer-events: none;
}
@keyframes btnSheen { 0% { left: -45%; } 55%, 100% { left: 110%; } }
/* 风控心电图：卡底无缝流动，待机灰慢 / 运行绿快 */
.hero-ecg {
  position: absolute; left: 10px; right: 10px; bottom: 5px; height: 22px; z-index: 0;
  pointer-events: none; opacity: .38; overflow: hidden;
}
.hero-ecg polyline { fill: none; stroke: #8d887c; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.hero-ecg .ecg-run { animation: ecgRun 6s linear infinite; }
.hero-card.active .hero-ecg { opacity: .9; }
.hero-card.active .hero-ecg polyline { stroke: var(--green); filter: drop-shadow(0 0 4px rgba(18, 161, 80, .6)); }
.hero-card.active .hero-ecg .ecg-run { animation-duration: 2.2s; }
@keyframes ecgRun { to { transform: translateX(-600px); } }
.fu-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.fu-title { font-size: 18px; font-weight: 900; }
.fu-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.fu-tip { font-size: 12px; color: var(--muted); margin-top: 6px; }
.fu-log { font-family: Consolas, monospace; font-size: 11px; line-height: 2; max-height: 30vh; overflow-y: auto; }
.fu-log .t { color: var(--muted); }
.badge {
  font-size: 10px; padding: 2px 8px;
  background: var(--paper-dark); color: var(--ink);
  border: 1.5px solid var(--line); font-weight: 900;
  white-space: nowrap;
}
.badge.running { background: var(--blue); color: #fff; }

/* 表单 */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-grid .full { grid-column: 1 / -1; }
.form-item label {
  display: block; font-size: 11px; font-weight: 900;
  letter-spacing: .04em; margin-bottom: 5px;
}
.form-item input, .form-item select {
  width: 100%; padding: 9px 10px;
  background: #fff; color: var(--ink);
  border: 2px solid var(--line); outline: none; font-size: 13px;
}
.form-item input:focus, .form-item select:focus { box-shadow: inset 0 0 0 2px var(--blue); }
.btn-row { display: flex; gap: 10px; margin-top: 14px; }
.btn-row button { flex: 1; }

/* 达摩院 */
.rank-item {
  display: flex; gap: 12px; align-items: flex-start;
  background: #fff; border: 2px solid var(--line);
  box-shadow: 3px 3px 0 var(--line);
  padding: 12px; margin-bottom: 10px;
}
.rank-no {
  width: 28px; height: 28px; flex-shrink: 0;
  display: grid; place-items: center;
  font-weight: 900; font-size: 13px; color: #fff;
  background: var(--ink); border: 2px solid var(--line);
}
.rank-no.top1 { background: var(--gold); }
.rank-no.top2 { background: #9aa3b2; }
.rank-no.top3 { background: var(--orange); }
.rank-body { flex: 1; min-width: 0; }
.rank-body .name { font-weight: 900; font-size: 13px; }
.rank-body .intro { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.rank-stats { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11px; color: var(--muted); margin-top: 6px; font-family: Consolas, monospace; }
.rank-price { text-align: right; flex-shrink: 0; }
.rank-price .p { color: var(--orange); font-weight: 900; font-family: Consolas, monospace; }
.rank-price button {
  margin-top: 6px; border: 2px solid var(--line); background: var(--orange);
  color: #fff; padding: 4px 12px; font-size: 12px; font-weight: 900;
  box-shadow: 2px 2px 0 var(--line);
}

/* 我的 */
.avatar {
  width: 64px; height: 64px; margin: 0 auto 10px;
  background: var(--blue); color: #fff;
  border: 2px solid var(--line); box-shadow: 4px 4px 0 var(--orange);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 900;
  overflow: hidden; cursor: pointer; position: relative;
  transition: transform .12s ease;
}
.avatar:hover { transform: scale(1.05); }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar .cam {
  position: absolute; right: 2px; bottom: 2px;
  background: var(--orange); color: #111; font-size: 10px; font-weight: 900;
  padding: 1px 5px; border-radius: 8px; border: 1px solid var(--line);
}
/* 头像选择器弹层 */
.avatar-picker-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 200;
  display: flex; align-items: flex-end; justify-content: center;
}
.avatar-picker {
  background: var(--paper); border: 2px solid var(--line);
  box-shadow: 6px 6px 0 rgba(17,17,17,.35);
  width: min(420px, 92vw); padding: 16px; border-radius: 14px 14px 0 0;
}
.avatar-picker h3 { font-size: 15px; margin: 0 0 4px; }
.avatar-picker .tip { font-size: 11px; color: var(--muted); margin-bottom: 12px; }
.avatar-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.avatar-grid .cell {
  aspect-ratio: 1; border: 2px solid var(--line); cursor: pointer;
  overflow: hidden; background: var(--paper-dark); padding: 0;
  transition: transform .12s ease, box-shadow .12s ease;
}
.avatar-grid .cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-grid .cell:hover { transform: scale(1.06); }
.avatar-grid .cell.active { border-color: var(--orange); box-shadow: 3px 3px 0 var(--orange); }
.me-id .id { color: var(--muted); font-size: 12px; font-family: Consolas, monospace; }
.menu-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 4px; border-bottom: 2px solid rgba(17, 17, 17, .25);
  font-size: 14px; font-weight: 700; cursor: pointer;
}
.menu-item:last-child { border-bottom: 0; }
.menu-item .v { color: var(--muted); font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
/* 展开时只旋转箭头指示器，不带动状态文字（长文字旋转会竖排悬浮） */
.menu-item .v .arrow { display: inline-block; transition: transform .15s ease; }
.menu-item.open .v .arrow { transform: rotate(90deg); }
/* 功能列表分组标题：一卡多组，虚线分隔 + 小方块锚点 */
.menu-group {
  display: flex; align-items: center; gap: 6px;
  margin: 14px 0 2px; padding-top: 10px;
  border-top: 2px dashed rgba(17, 17, 17, .18);
  font-size: 12px; font-weight: 900; letter-spacing: .14em;
  color: var(--muted);
}
.menu-group::before {
  content: ""; width: 8px; height: 8px; flex-shrink: 0;
  background: var(--orange); border: 2px solid var(--line);
}
/* 卡标题后的首个分组不再重复分隔线 */
.card h2 + .menu-group { margin-top: 4px; padding-top: 0; border-top: 0; }
/* 行动行价格徽章：把原大按钮的 88/888 TRX 收敛为行内小徽章 */
.menu-item .pill {
  display: inline-block; padding: 0 7px;
  font-size: 12px; font-weight: 900; line-height: 1.7;
  background: #fff; color: var(--ink);
  border: 2px solid var(--line); box-shadow: 2px 2px 0 var(--line);
}
.menu-item .pill.warn { background: var(--orange); color: #fff; }
/* ============ 个人中心枢纽：概览导航 + 子页面双层结构 ============ */
/* 卡标题旁的英文小标签：硬边白底，强化枢纽卡识别 */
.hub-tag {
  font-size: 10px; font-weight: 900; letter-spacing: .18em;
  color: var(--muted); background: #fff;
  border: 2px solid var(--line); padding: 1px 6px; vertical-align: 2px;
}
/* 概览主栏目行：色块图标 + 标题 + 状态摘要 + 箭头 */
.me-row {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 4px; border-bottom: 2px solid rgba(17, 17, 17, .16);
  cursor: pointer;
}
.me-row:last-child { border-bottom: 0; }
.me-row:active { background: rgba(17, 17, 17, .05); }
.me-row .me-t { flex: 1; font-size: 14px; font-weight: 800; }
.me-row .v {
  color: var(--muted); font-size: 12px; max-width: 52%;
  display: inline-flex; align-items: center; gap: 6px;
}
.me-row .arrow { display: inline-block; font-style: normal; transition: transform .15s ease; }
.me-row.danger, .me-row.danger .v { color: #c0392b; }
/* 摘要文字：单行省略；会员生效时绿色加重突出关键状态 */
.me-sum { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-sum.on { color: var(--green); font-weight: 900; }
/* 类目图标：透明背景线性 SVG（描边 currentColor，取消实心色块），按业务域着色 */
.me-ico {
  width: 34px; height: 34px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--ink);
}
.me-ico svg { width: 21px; height: 21px; display: block; }
.ico-orange { color: var(--orange); }
.ico-green { color: var(--green); }
.ico-blue { color: var(--blue); }
.ico-ink { color: var(--ink); }
.ico-red { color: #c0392b; }
.ico-gray { color: #8f8f8f; }
/* ============ 个人中心栏目组：一级折叠项 ============ */
/* 组间留白分隔；收起时组头是独立硬边白卡，展开后组头融入组卡、粗线与列表分隅 */
.me-group { margin-bottom: 12px; }
.me-ghead {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 12px; min-height: 52px;
  font-family: inherit; text-align: left; cursor: pointer;
  background: #fff; border: 2px solid var(--line); box-shadow: var(--shadow-sm);
}
.me-group.open .me-ghead { border: 0; box-shadow: none; border-bottom: 2px solid var(--line); }
.me-ghead:active { transform: translate(1px, 1px); }
.me-group.open { background: #fff; border: 2px solid var(--line); box-shadow: var(--shadow-sm); }
.me-ghead .me-gt { flex: 1; font-size: 15px; font-weight: 900; letter-spacing: .02em; }
.me-gchev { display: inline-flex; align-items: center; color: var(--muted); transition: transform .25s ease; }
.me-gchev svg { width: 16px; height: 16px; }
.me-group.open .me-gchev { transform: rotate(90deg); }
/* 登出账户：独立硬边白卡，与栏目组组头同款盒子（2px 实线 + 硬投影 + 点按位移），
   覆盖 .me-row 的透明底/分隔线样式，保留 danger 红色语义与透明线性图标 */
.me-logout {
  margin-top: 4px;
  padding: 9px 12px; min-height: 52px;
  background: #fff;
  border: 2px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.me-logout:active { transform: translate(1px, 1px); }
/* 与栏目组组头逐像素对齐：登出文字升为 15px/900 与 .me-gt 一致，箭头已换成
   同款 .me-gchev SVG（muted 灰 16px），仅文字与图标保留 danger 红 */
.me-logout .me-t { flex: 1; font-size: 15px; font-weight: 900; letter-spacing: .02em; }
/* 组体：grid 行高 0fr→1fr 平滑展开收起；组内行紧凑缩进、行间细分隔线 */
.me-gbody { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s ease; }
.me-group.open .me-gbody { grid-template-rows: 1fr; }
.me-gin { overflow: hidden; min-height: 0; }
.me-gin .me-row { padding: 9px 8px 9px 16px; border-bottom: 1px solid rgba(17, 17, 17, .14); }
.me-gin .me-row:last-child { border-bottom: 0; }
/* 昵称旁的会员徽标：关键状态突出显示 */
.me-vip {
  font-size: 10px; font-weight: 900; color: #fff; background: var(--orange);
  border: 2px solid var(--line); box-shadow: 2px 2px 0 var(--line);
  padding: 1px 6px; margin-left: 6px; vertical-align: 2px; white-space: nowrap;
}
/* 子页面：返回栏粗黑分隔强化层级，滑入/滑回动画保证操作流畅 */
.me-page-head {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 10px; margin-bottom: 10px;
  border-bottom: 3px solid var(--line);
}
.me-page-head h3 { font-size: 16px; font-weight: 900; letter-spacing: .04em; }
.me-back {
  padding: 6px 12px; font-size: 12px; font-weight: 900;
  background: #fff; color: var(--ink);
  border: 2px solid var(--line); box-shadow: 2px 2px 0 var(--line);
  cursor: pointer;
}
.me-back:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--line); }
.me-page-in { animation: mePageIn .26s ease both; }
.me-nav-in { animation: meNavIn .22s ease both; }
@keyframes mePageIn { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes meNavIn { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
.invite-box {
  background: var(--paper-dark);
  border: 2px dashed var(--line);
  padding: 12px; margin-top: 10px;
}
.invite-box .code {
  color: var(--blue); font-weight: 900; letter-spacing: 2px;
  font-family: Consolas, monospace; font-size: 16px;
}
.invite-box .link { word-break: break-all; font-size: 11px; color: var(--muted); margin-top: 6px; }
/* 邀请弹窗：佣金比例 + 后台生成的可用邀请码列表 */
.invite-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--muted); font-weight: 700;
  padding-bottom: 8px; margin-bottom: 8px;
  border-bottom: 2px dashed rgba(17, 17, 17, .18);
}
.invite-meta b { color: var(--muted); font-size: 13px; }
.invite-meta b.on { color: var(--orange); }
.invite-codes { display: flex; flex-direction: column; gap: 8px; }
.invite-codes .empty { padding: 12px 0; }
.ic-row {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 2px solid var(--line);
  box-shadow: 3px 3px 0 var(--line); padding: 6px 8px;
}
.ic-code {
  flex: 1; font-family: Consolas, monospace; font-weight: 900;
  font-size: 15px; letter-spacing: 2px; color: var(--blue);
  word-break: break-all;
}
.ic-copy {
  flex-shrink: 0; padding: 3px 10px;
  font-size: 12px; font-weight: 900;
  background: var(--blue); color: #fff;
  border: 2px solid var(--line); box-shadow: 2px 2px 0 var(--line);
}
.ic-copy:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--line); }
.invite-note { font-size: 12px; color: var(--muted); margin-top: 10px; line-height: 1.6; }

/* 团队列表：汇总卡 + 层级树 + 直推比例设置 */
.team-summary {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 2px solid var(--line); background: #fff;
  box-shadow: var(--shadow-sm); margin-bottom: 12px;
}
.team-summary.solo { grid-template-columns: 1fr; }
.team-sum-item { padding: 10px 8px; text-align: center; border-right: 2px solid rgba(17, 17, 17, .16); }
.team-sum-item:last-child { border-right: 0; }
.team-sum-item span { display: block; font-size: 11px; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.team-sum-item b { font-size: 15px; font-weight: 900; font-family: Consolas, monospace; }
.team-sum-item b.on { color: var(--orange); }
.team-tip {
  font-size: 12px; line-height: 1.6; color: var(--muted);
  background: var(--paper-dark); border: 2px dashed var(--line);
  padding: 8px 10px; margin-bottom: 12px;
}
.team-node { margin-bottom: 8px; }
.team-row {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 2px solid var(--line);
  box-shadow: 3px 3px 0 var(--line); padding: 8px 10px;
}
.team-avatar {
  width: 34px; height: 34px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue); color: #fff;
  border: 2px solid var(--line);
  font-weight: 900; font-size: 15px;
}
.team-info { flex: 1; min-width: 0; }
.team-name { font-size: 13px; font-weight: 900; display: flex; align-items: center; gap: 6px; }
.team-lv {
  font-size: 10px; font-family: Consolas, monospace;
  background: var(--paper-dark); border: 2px solid var(--line);
  padding: 0 4px; line-height: 1.5;
}
.team-sub { font-size: 11px; color: var(--muted); margin-top: 2px; word-break: break-all; }
.team-right { flex-shrink: 0; display: flex; align-items: center; gap: 6px; }
.team-rate { font-family: Consolas, monospace; font-size: 13px; font-weight: 900; color: var(--muted); }
.team-rate.on { color: var(--orange); }
.team-set {
  padding: 3px 8px; font-size: 11px; font-weight: 900;
  background: #fff; color: var(--ink);
  border: 2px solid var(--line); box-shadow: 2px 2px 0 var(--line);
}
.team-set:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--line); }
.team-kids { margin: 8px 0 0 14px; padding-left: 10px; border-left: 2px dashed rgba(17, 17, 17, .25); }

/* USDT 充值订单卡片 */
.pay-order {
  display: flex; gap: 12px; margin-top: 12px;
  background: #fff; border: 2px solid var(--line);
  box-shadow: var(--shadow-sm); padding: 12px;
}
.pay-qr { flex-shrink: 0; }
.pay-qr img { width: 140px; height: 140px; display: block; }
.pay-detail { flex: 1; min-width: 0; font-size: 12px; }
.pay-amount {
  font-size: 22px; font-weight: 900; color: var(--orange);
  font-family: Consolas, monospace; line-height: 1.2; margin: 2px 0 6px;
}
.pay-amount .tail { font-size: 12px; color: var(--muted); font-weight: 700; }
.pay-row {
  display: flex; align-items: center; gap: 6px;
  margin-top: 8px; word-break: break-all;
}
.pay-row .lbl { color: var(--muted); flex-shrink: 0; font-weight: 700; }
.pay-row .val { font-family: Consolas, monospace; font-size: 11px; }
.pay-copy {
  flex-shrink: 0; border: 1.5px solid var(--line); background: var(--paper-dark);
  font-size: 10px; font-weight: 900; padding: 2px 6px; cursor: pointer;
}
.pay-copy:active { box-shadow: inset 0 0 0 2px var(--blue); }
.pay-status {
  margin-top: 10px; padding: 6px 8px; border: 2px solid var(--gold);
  background: #fff8e6; font-size: 12px; font-weight: 700;
}
.pay-status.ok { border-color: var(--green); background: #e9f9ef; color: var(--green); }
.pay-status.expired { border-color: var(--muted); background: var(--paper-dark); color: var(--muted); }
.pay-timer { font-family: Consolas, monospace; color: var(--orange); font-weight: 900; }
.pay-mini-list { margin-top: 8px; }
.pay-mini-item {
  display: flex; justify-content: space-between; gap: 8px;
  border-top: 1px dashed var(--line); padding: 7px 2px; font-size: 12px;
}
.pay-mini-item .no { font-family: Consolas, monospace; font-size: 10px; color: var(--muted); }
.pay-mini-item .amt { font-family: Consolas, monospace; font-weight: 900; }
.pay-st { font-size: 11px; font-weight: 900; }
.pay-st.pending { color: var(--gold); }
.pay-st.paid { color: var(--green); }
.pay-st.expired { color: var(--muted); }

/* 底部导航：椭圆半透明胶囊 + 滑动指示块（纸感硬边 + 毛玻璃） */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 0 12px calc(12px + env(safe-area-inset-bottom, 0px));
  max-width: var(--max-width); margin: 0 auto;
  background: transparent; border: 0;
  pointer-events: none;
}
.tabbar-inner {
  --tab-i: 0;
  position: relative;
  display: grid; grid-template-columns: repeat(6, 1fr);
  padding: 5px;
  background: rgba(251, 250, 246, .78);
  border: 2px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 5px 0 rgba(21, 21, 21, .16), 0 12px 24px rgba(17, 17, 17, .14);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  pointer-events: auto;
}
.tab-pill {
  position: absolute; left: 5px; top: 5px; bottom: 5px;
  width: calc((100% - 10px) / 6);
  border-radius: 999px;
  background: var(--ink);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .12);
  transform: translateX(calc(var(--tab-i) * 100%));
  transition: transform .32s cubic-bezier(.22, .9, .28, 1), opacity .18s;
  pointer-events: none;
}
.tabbar-inner.is-off .tab-pill { opacity: 0; }
.tabbar button {
  position: relative; z-index: 1;
  border: 0; background: transparent; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 8px 0 7px; border-radius: 999px;
  font-size: 10px; font-weight: 800; letter-spacing: .03em;
  transition: color .2s, transform .12s;
}
.tabbar button:active { transform: scale(.94); }
.tabbar button.active { color: #fff; }
.tabbar .ico { font-size: 16px; line-height: 1; }
.tabbar .lbl { line-height: 1.1; white-space: nowrap; }

/* 挂机状态悬浮条：细线 + 长圆角 + 半透明，贴在底部导航上方 */
.hangdock {
  position: fixed; left: 12px; right: 12px;
  bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  z-index: 58;
  max-width: calc(var(--max-width) - 24px); margin: 0 auto;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px 8px 14px;
  border: 1.5px solid rgba(21, 21, 21, .55);
  border-radius: 999px;
  background: rgba(251, 250, 246, .72);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
  box-shadow: 0 6px 18px rgba(17, 17, 17, .12), inset 0 1px 0 rgba(255, 255, 255, .7);
  animation: hangdock-in .26s cubic-bezier(.22, .9, .28, 1);
}
.hangdock[hidden] { display: none; }
@keyframes hangdock-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.hangdock-dot {
  flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--muted);
}
.hangdock-dot.running {
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(18, 161, 80, .55);
  animation: hangdock-pulse 1.8s ease-out infinite;
}
.hangdock-dot.idle { background: var(--paper-dark); }
@keyframes hangdock-pulse {
  0% { box-shadow: 0 0 0 0 rgba(18, 161, 80, .5); }
  70% { box-shadow: 0 0 0 7px rgba(18, 161, 80, 0); }
  100% { box-shadow: 0 0 0 0 rgba(18, 161, 80, 0); }
}
.hangdock-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.hangdock-txt b {
  font-size: 12px; font-weight: 900; letter-spacing: .02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hangdock-txt span {
  font-size: 10px; color: var(--muted); font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hangdock-stop {
  flex: 0 0 auto;
  border: 1.5px solid var(--red); border-radius: 999px;
  background: rgba(228, 51, 47, .07); color: var(--red);
  font-size: 11.5px; font-weight: 900; letter-spacing: .02em;
  padding: 6px 12px;
  transition: transform .12s, background .18s, opacity .18s;
}
.hangdock-stop:active { transform: translateY(1px) scale(.97); }
.hangdock-stop:disabled {
  border-color: rgba(105, 102, 95, .45); color: var(--muted);
  background: transparent; opacity: .55; cursor: default;
}
.hangdock-x {
  position: absolute; top: -7px; right: -5px;
  width: 21px; height: 21px; padding: 0;
  display: grid; place-items: center;
  border: 1.5px solid var(--line); border-radius: 50%;
  background: var(--card); color: var(--muted);
  font-size: 11px; line-height: 1; font-weight: 900;
  box-shadow: 1px 1px 0 rgba(21, 21, 21, .25);
  transition: transform .12s;
}
.hangdock-x:active { transform: scale(.9); }

/* 悬浮条可见时给内容额外留白，避免遮住列表末尾 */
body.has-hangdock .app-wrap { padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px)); }

/* 公告 */
/* 首页公告跑马灯（对齐竞品 home-announcement-marquee，套用纸感令牌） */
.ann-marquee {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center; gap: 10px;
  min-height: 38px; overflow: hidden;
  margin-bottom: 12px; padding: 6px 10px;
  border: 2px solid var(--line);
  background: #fff;
  box-shadow: 3px 3px 0 var(--orange);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.ann-marquee:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--orange); }
.ann-marquee:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--orange); }
.ann-marquee:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.ann-marquee-label {
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap; flex-shrink: 0;
  font-size: 11px; font-weight: 900; letter-spacing: .04em;
  color: #fff; background: var(--green);
  border: 2px solid var(--line);
  padding: 3px 9px;
}
.ann-marquee-label .dot {
  width: 7px; height: 7px; flex-shrink: 0;
  background: var(--orange); border: 1px solid var(--line);
  animation: annDotBlink 1.4s ease-in-out infinite;
}
@keyframes annDotBlink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.ann-marquee-viewport {
  min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ann-marquee-track {
  display: inline-flex; width: max-content; align-items: center; gap: 28px;
  white-space: nowrap; font-size: 12px; font-weight: 700; color: var(--ink);
  animation: annMarqueeScroll 24s linear infinite;
}
.ann-marquee-track span { display: inline-flex; align-items: center; }
.ann-marquee-track span::after {
  content: ""; width: 5px; height: 5px; margin-left: 28px; flex-shrink: 0;
  background: var(--green); border: 1px solid var(--line);
}
.ann-marquee:hover .ann-marquee-track { animation-play-state: paused; }
@keyframes annMarqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
/* 内容过短无需滚动时，居中展示且不循环 */
.ann-marquee-track.static {
  width: 100%; justify-content: center;
  animation: none;
}

.ann-card {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(17, 17, 17, .55);
  padding: 20px;
}
.ann-inner {
  width: 100%; max-width: 420px; max-height: 70vh; overflow-y: auto;
  background: var(--card); border: 2px solid var(--line);
  box-shadow: var(--shadow); padding: 20px;
}
.ann-inner h3 { margin: 0 0 12px; font-size: 17px; font-weight: 900; }
.ann-inner .content { white-space: pre-wrap; color: #34322e; line-height: 1.8; font-size: 13px; }
.ann-inner .foot { margin-top: 16px; display: flex; align-items: center; gap: 10px; }
.ann-inner .foot label { font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.ann-inner .foot button { margin-left: auto; }

/* 全局确认/输入弹窗：复用 .ann-card/.ann-inner 框体，仅覆写按钮排布、确定键配色与输入框 */
.app-confirm .content { font-size: 14px; line-height: 1.7; }
.app-confirm .foot { justify-content: flex-end; }
.app-confirm .foot button { margin-left: 0; }
.app-confirm .app-confirm-ok { background: var(--blue); color: #fff; }
.app-confirm .app-confirm-ok.danger { background: var(--red); }
.app-prompt-input {
  width: 100%; margin-top: 12px; padding: 9px 12px;
  font-size: 14px; font-family: inherit; color: var(--ink);
  background: #fff; border: 2px solid var(--line); outline: none;
}
.app-prompt-input:focus { border-color: var(--blue); box-shadow: 3px 3px 0 rgba(47, 91, 231, .25); }
/* 跑马灯悬停暂停滚动，方便点击阅读完整公告 */
.ann-marquee:hover .ann-marquee-track { animation-play-state: paused; }

/* Toast */
.toast {
  position: fixed; top: 64px; left: 50%; transform: translateX(-50%);
  z-index: 200; background: var(--ink); color: #fff;
  border: 2px solid var(--line); box-shadow: var(--shadow-sm);
  padding: 10px 18px; font-size: 13px; font-weight: 700;
  animation: toast-in .25s ease; max-width: 80vw;
}
.toast.ok { background: var(--green); }
.toast.err { background: var(--red); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, -10px); } to { opacity: 1; } }

/* ============ 在线客服（用户端） ============ */
/* 入口：与 .me-logout 同款独立白卡，位于登出上方 */
.me-support {
  margin-top: 4px;
  padding: 9px 12px; min-height: 52px;
  background: #fff;
  border: 2px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.me-support:active { transform: translate(1px, 1px); }
.me-support .me-t { flex: 1; font-size: 15px; font-weight: 900; letter-spacing: .02em; }

/* 弹窗：复用 .ann-card 遮罩，.cs-inner 覆写为固定高度的聊天布局 */
.cs-inner {
  max-width: 460px; width: 100%;
  height: min(78vh, 620px); max-height: 78vh;
  padding: 0; display: flex; flex-direction: column; overflow: hidden;
}
.cs-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-bottom: 3px solid var(--line);
  background: var(--card);
}
.cs-avatar {
  width: 38px; height: 38px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue); color: #fff;
  border: 2px solid var(--line); box-shadow: 2px 2px 0 var(--line);
}
.cs-avatar svg { width: 20px; height: 20px; }
.cs-head-txt { flex: 1; min-width: 0; }
.cs-head-txt h3 { margin: 0; font-size: 16px; font-weight: 900; line-height: 1.2; }
.cs-state { display: inline-block; margin-top: 3px; font-size: 11px; font-weight: 700; color: var(--muted); }
.cs-state::before {
  content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 5px;
  background: var(--muted); border: 1px solid var(--line); border-radius: 50%; vertical-align: 1px;
}
.cs-state.on { color: var(--green); }
.cs-state.on::before { background: var(--green); }
.cs-state.wait { color: #c2410c; }
.cs-state.wait::before { background: var(--orange); }
.cs-x {
  width: 30px; height: 30px; flex: none;
  background: #fff; border: 2px solid var(--line); box-shadow: 2px 2px 0 var(--line);
  font-size: 13px; font-weight: 900; line-height: 1;
}
.cs-x:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--line); }

/* 消息区：纸感网格底 + 硬边气泡 */
.cs-msgs {
  flex: 1; overflow-y: auto; padding: 14px 12px;
  background:
    linear-gradient(rgba(17, 17, 17, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 17, .035) 1px, transparent 1px),
    var(--paper);
  background-size: 22px 22px;
  display: flex; flex-direction: column; gap: 10px;
}
.cs-empty { margin: auto; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.8; max-width: 250px; }
.cs-row { display: flex; align-items: flex-end; gap: 6px; }
.cs-row.me { justify-content: flex-end; }
.cs-bubble {
  position: relative;
  max-width: 78%; padding: 8px 11px;
  background: #fff; border: 2px solid var(--line);
  box-shadow: 3px 3px 0 var(--line);
  font-size: 13px; line-height: 1.65; word-break: break-word; white-space: normal;
}
.cs-row.me .cs-bubble { background: #dfe8ff; }
.cs-bubble-avatar {
  flex: none; font-size: 10px; font-weight: 900; color: #fff; background: var(--orange);
  border: 2px solid var(--line); padding: 1px 4px; margin-bottom: 2px;
}
/* 时间独立成行：与正文拉开 5px，完整到秒也不遮挡内容 */
.cs-time {
  display: block; margin-top: 5px; text-align: right;
  font-size: 9px; font-style: normal; line-height: 1.4;
  color: var(--muted); white-space: nowrap;
}

/* 等待接待：橙色提示条，输入区同时禁用 */
.cs-wait {
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px 14px; background: #fff1e6;
  border-top: 2px solid var(--line);
}
.cs-wait b { font-size: 12px; color: #c2410c; font-weight: 900; }
.cs-wait span { font-size: 11px; color: var(--muted); }

/* 会话结束提示卡：纸感硬边，位于聊天消息下方、输入区上方 */
.cs-closed {
  margin: 8px 12px 10px;
  padding: 10px 12px 11px;
  background: #fff8e8;
  border: 2px solid var(--line);
  box-shadow: 3px 3px 0 var(--line);
  animation: cs-closed-in .26s cubic-bezier(.22, .9, .28, 1);
}
.cs-closed-head { display: flex; align-items: center; gap: 7px; }
.cs-closed-mark {
  flex: none; width: 17px; height: 17px; line-height: 13px;
  text-align: center; font-size: 10px; font-weight: 900;
  color: #fff; background: var(--green); border: 2px solid var(--line);
}
.cs-closed-head b { font-size: 13px; font-weight: 900; letter-spacing: .02em; }
.cs-closed-wish { margin-top: 6px; font-size: 12px; font-weight: 800; }
.cs-closed-back { margin-top: 2px; font-size: 11px; color: var(--muted); }
@keyframes cs-closed-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* 表情面板：内置常用表情网格（无自定义上传） */
.cs-emos {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px;
  padding: 8px; max-height: 132px; overflow-y: auto;
  background: var(--card); border-top: 2px solid var(--line);
}
.cs-emos button { border: 0; background: transparent; font-size: 20px; line-height: 1; padding: 5px 0; }
.cs-emos button:hover { background: var(--paper-dark); }
.cs-emos button:active { transform: scale(.9); }

/* 输入区 */
.cs-inputbar {
  display: flex; align-items: flex-end; gap: 8px;
  padding: 10px 12px; border-top: 3px solid var(--line); background: var(--card);
}
.cs-emo-btn {
  flex: none; width: 38px; height: 38px;
  background: #fff; border: 2px solid var(--line); box-shadow: 2px 2px 0 var(--line);
  font-size: 19px; line-height: 1;
}
.cs-emo-btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--line); }
.cs-emo-btn:disabled { opacity: .45; box-shadow: none; }
#csInput {
  flex: 1; min-height: 38px; max-height: 96px; resize: none;
  padding: 8px 10px; font-size: 13px; line-height: 1.5;
  background: #fff; color: var(--ink);
  border: 2px solid var(--line); outline: none;
  font-family: inherit;
}
#csInput:disabled { background: var(--paper-dark); color: var(--muted); }
.cs-send { flex: none; width: auto; padding: 9px 16px; min-width: 70px; font-size: 13px; }
.cs-send:disabled { opacity: .5; }
.cs-foot {
  padding: 6px 12px 8px; font-size: 10px; color: var(--muted);
  background: var(--card); border-top: 2px dashed rgba(17, 17, 17, .2);
}

.empty { text-align: center; color: var(--muted); padding: 30px 0; font-size: 13px; }
.mono { font-family: Consolas, monospace; }
.row-flex { display: flex; gap: 10px; align-items: center; }
.spin { display: inline-block; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 运行状态条 */
.status-bar {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 2px solid var(--line);
  box-shadow: 3px 3px 0 var(--line);
  padding: 10px 12px; margin-bottom: 14px;
  font-size: 12px; font-weight: 700;
}
.status-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #c9c4b8; border: 2px solid var(--line);
}
.status-bar.running .status-dot { background: var(--green); box-shadow: 0 0 8px rgba(18, 201, 151, .8); }
.status-bar.running { color: var(--green); }

@media (max-width: 480px) {
  .form-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .verify-strip { grid-template-columns: 1fr 48px 1fr; }
  .verify-block strong { font-size: 14px; }
  .card { box-shadow: 3px 3px 0 var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; }
}

/* ============================================================
   历史注单 · 原型球包裹面板
   汇总指标（流水/盈亏）与注单状态以"能量球"呈现：
   2px 硬边 + 硬投影保持 Neo-Brutalist 语言；球面感来自
   顶部白色高光渐变叠底色渐变；赢绿 / 输红双色区分结果，
   待开奖用金色虚线表示未定状态
============================================================ */
.hist-shell {
  display: flex; flex-direction: column; gap: 8px;
  margin: 6px 0;
  padding: 10px;
  background: linear-gradient(180deg, #fffdf6 0%, var(--paper-dark) 100%);
  border: 2px solid var(--line);
  box-shadow: var(--shadow-sm);
}

/* orb-stat 球体胶囊：--orb 变量注入底色渐变，高光层恒定 */
.orb-stat {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border: 2px solid var(--line);
  box-shadow: 3px 3px 0 var(--line), inset 0 -3px 0 rgba(0, 0, 0, .18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, 0) 48%),
    var(--orb, linear-gradient(180deg, #4d7bff 0%, var(--blue) 100%));
  color: #fff;
}
.orb-stat .orb-lbl {
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .35);
  display: inline-flex; align-items: center; gap: 6px;
}
/* 标签前的小球标：双层圆模拟剖面 */
.orb-stat .orb-lbl::before {
  content: ""; width: 12px; height: 12px; border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .95) 0 22%, rgba(255, 255, 255, 0) 45%),
    var(--orb-dot, #fff);
  border: 2px solid rgba(0, 0, 0, .35);
  flex: none;
}
.orb-stat .orb-num {
  font-size: 16px; font-weight: 900;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .35), 0 0 12px rgba(255, 255, 255, .35);
  font-family: Consolas, "Microsoft YaHei", monospace;
}
/* 蓝：投注总流水（资金质感） */
.orb-stat.orb-blue {
  --orb: linear-gradient(180deg, #4d7bff 0%, #1e44cc 100%);
  --orb-dot: #8fb0ff;
}
/* 绿：盈利（红绿双色方案 · 正收益） */
.orb-stat.orb-green {
  --orb: linear-gradient(180deg, #1ec268 0%, #0d7a3d 100%);
  --orb-dot: #7fe6ae;
  box-shadow: 3px 3px 0 var(--line), inset 0 -3px 0 rgba(0, 0, 0, .18), 0 0 14px rgba(30, 194, 104, .45);
}
/* 红：亏损（红绿双色方案 · 负收益） */
.orb-stat.orb-red {
  --orb: linear-gradient(180deg, #f2554e 0%, #b71f1c 100%);
  --orb-dot: #ffa29d;
  box-shadow: 3px 3px 0 var(--line), inset 0 -3px 0 rgba(0, 0, 0, .18), 0 0 14px rgba(242, 85, 78, .45);
}

/* ============ 我的：个人资产融合卡 ============ */
.me-card {
  padding: 16px;
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(17, 17, 17, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 17, .055) 1px, transparent 1px);
  background-size: 18px 18px;
}
/* 会员徽标移至资料行最右侧（.me-id flex:1 顶到右缘），顶对齐昵称行 */
.me-top .me-vip { align-self: flex-start; margin-top: 2px; }
.me-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.me-top .avatar { width: 56px; height: 56px; margin: 0; flex-shrink: 0; }
.me-id { flex: 1; min-width: 0; text-align: left; }
.me-id .nick { font-size: 16px; font-weight: 900; }
.me-id .id { font-size: 11px; color: var(--muted); margin-top: 2px; }
.me-top .cur-switch { margin-bottom: 0; flex-shrink: 0; }

/* 余额 tab：量化TRX / 量化USDT / 平台（等分，切平台出现第三枚） */
.me-baltab { display: flex; gap: 6px; margin-bottom: 10px; }
.me-baltab .chip {
  flex: 1; min-width: 0; padding: 6px 4px; font-size: 11.5px; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* 余额面板：硬边列表行，无球体，简洁直读 */
.me-bals { border: 2px solid var(--line); background: #fff; box-shadow: 3px 3px 0 var(--line); }
.me-bal-row {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 10px 12px; border-top: 1.5px dashed rgba(17, 17, 17, .15);
  font-size: 12px; min-width: 0;
}
.me-bal-row:first-child { border-top: none; }
.me-bal-row .k { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-bal-row .v {
  font-family: Consolas, "Microsoft YaHei", monospace;
  font-weight: 900; font-size: 14px; white-space: nowrap; flex-shrink: 0;
}
/* 主角行：可用余额加粗高亮 */
.me-bal-row.main { background: rgba(36, 86, 255, .06); }
.me-bal-row.main .k { font-weight: 900; }
.me-bal-row.main .v { color: var(--blue); }
/* 平台来源行：左侧绿色竖条标识外部平台资产 */
.me-bal-row.plat { border-left: 4px solid #18c997; padding-left: 8px; }

/* 个人中心：邀请弹窗二维码 / 危险操作项 */
.invite-qr { display: flex; justify-content: center; margin: 14px 0; }
.invite-qr img, .invite-qr canvas {
  display: block; border: 2px solid var(--line);
  box-shadow: 4px 4px 0 var(--line); background: #fff; padding: 6px;
}
.menu-item.danger, .menu-item.danger .v { color: #c0392b; }

/* his-badge 注单状态徽章：赢绿 / 输红 / 待开奖金 */
.his-badge {
  display: inline-block;
  min-width: 52px;
  text-align: center;
  padding: 3px 8px;
  font-size: 12px; font-weight: 900;
  color: #fff;
  border: 2px solid var(--line);
  box-shadow: 2px 2px 0 var(--line);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .3);
}
.his-badge.win {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, 0) 50%),
    linear-gradient(180deg, #1ec268 0%, #0d7a3d 100%);
}
.his-badge.loss {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, 0) 50%),
    linear-gradient(180deg, #f2554e 0%, #b71f1c 100%);
}
.his-badge.pending {
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .6);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .7) 0%, rgba(255, 255, 255, 0) 50%),
    linear-gradient(180deg, #ffcf5c 0%, var(--gold) 100%);
  border-style: dashed; /* 未定状态：虚线包裹 */
  box-shadow: none;
}

/* 注单行在包裹壳内的分隔线 */
.hist-shell .menu-item {
  background: rgba(255, 255, 255, .55);
  border: 2px solid transparent;
  box-shadow: none;
  border-bottom: 2px solid rgba(21, 21, 21, .18);
  cursor: default; /* 壳内为纯展示行，非菜单入口 */
}
.hist-shell .menu-item:last-child { border-bottom-color: transparent; }

/* 历史注单顶部 流水/盈亏 指标条：能量球改细线条线稿风，与 .hist-btn 同一
   「轻交互」语言 —— 极浅纸底 + 1.5px 墨线 + 小硬投影；数值保留语义色但去掉
   高光/内阴影/白字。限定 .hist-shell，挂机页 .run-stats 与基础 .orb-stat 不动 */
.hist-shell .orb-stat {
  padding: 7px 12px;
  background: rgba(243, 240, 232, .6);
  border: 1.5px solid var(--line);
  box-shadow: 2px 2px 0 var(--line);
  color: var(--ink);
}
.hist-shell .orb-stat .orb-lbl {
  font-size: 11px; letter-spacing: 2px;
  color: var(--muted); text-shadow: none;
}
.hist-shell .orb-stat .orb-lbl::before { content: none; }
.hist-shell .orb-stat .orb-num {
  font-size: 15px; font-weight: 900; letter-spacing: .4px; text-shadow: none;
}
.hist-shell .orb-stat.orb-blue .orb-num { color: var(--blue); }
.hist-shell .orb-stat.orb-green .orb-num { color: var(--green); }
.hist-shell .orb-stat.orb-red .orb-num { color: var(--red); }

/* 赢/输/待开奖徽章线稿化：实心渐变改同色系透明底 + 细边 + 同色小投影，
   与上方指标条、.hist-btn 视觉语言统一。限定 .hist-shell 作用域 */
.hist-shell .his-badge.win {
  color: var(--green);
  background: rgba(18, 161, 80, .1);
  border: 1.5px solid var(--green);
  box-shadow: 2px 2px 0 rgba(18, 161, 80, .4);
  text-shadow: none;
}
.hist-shell .his-badge.loss {
  color: var(--red);
  background: rgba(228, 51, 47, .08);
  border: 1.5px solid var(--red);
  box-shadow: 2px 2px 0 rgba(228, 51, 47, .4);
  text-shadow: none;
}
.hist-shell .his-badge.pending {
  color: #b57d10;
  background: rgba(240, 160, 32, .12);
  border: 1.5px dashed var(--gold);
  box-shadow: none;
  text-shadow: none;
}

/* 历史注单区按钮（清空投注记录 + 上一页/下一页）细线条线稿风：替代原 .btn
   蓝色实心大块。覆写 .btn-row button 的 flex:1 均分，靠右紧凑排布；hover 轻微
   位移放大投影，active 反向点按，disabled 淡置。限定 .hist-shell 作用域 */
.hist-shell .hist-btn {
  flex: none;
  padding: 6px 14px;
  font-size: 12px; font-weight: 700; font-family: inherit; white-space: nowrap;
  color: var(--ink); background: transparent;
  border: 1.5px solid var(--line);
  box-shadow: 2px 2px 0 var(--line);
  cursor: pointer;
}
.hist-shell .hist-btn:hover:not(:disabled) {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--line);
}
.hist-shell .hist-btn:active:not(:disabled) {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--line);
}
.hist-shell .hist-btn:disabled {
  opacity: .45; cursor: default;
}

/* 策略停止原因（止损/止盈/最大手数等自动停止后的提示条） */
.stop-reason {
  margin: 8px 0 2px;
  padding: 8px 10px;
  font-size: 12px; font-weight: 700; line-height: 1.6;
  color: #7a2e00;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .6) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(180deg, #ffd76a 0%, #ffb020 100%);
  border: 2px solid var(--line);
  box-shadow: 2px 2px 0 var(--line);
}

/* 余额不足自动停止：红色告警条（策略卡 / 智能跟投 / 记录监控共用配色） */
.stop-reason.balance {
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(180deg, #ff6a5e 0%, #d61f1f 100%);
}
.stop-reason.balance span {
  display: block; margin-top: 2px;
  font-size: 11px; font-weight: 600; opacity: .92;
}

/* 记录监控弹窗顶部：余额不足停止提示 */
.mon-stop-banner {
  margin: 10px 0 0;
  padding: 10px 12px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(180deg, #ff6a5e 0%, #d61f1f 100%);
  border: 2px solid var(--line);
  box-shadow: 2px 2px 0 var(--line);
}
.mon-stop-banner b { display: block; font-size: 14px; font-weight: 900; letter-spacing: .5px; }
.mon-stop-banner span { display: block; margin-top: 3px; font-size: 11px; font-weight: 600; opacity: .92; }

/* 记录监控状态列：余额不足导致的下注失败高亮 */
.mon-fail-shortage { color: #c01818; font-weight: 900; }

/* 运行中策略实时指标：累计流水 + 当前盈亏，装在与运行状态条同款的白底硬边框内 */
.run-stats {
  display: flex; justify-content: space-between; align-items: stretch;
  background: #fff; border: 2px solid var(--line); box-shadow: 3px 3px 0 var(--line);
  padding: 12px 16px; margin-bottom: 14px; position: relative;
}
/* 框内仪表分区：左右两组指标贴边对齐、中间细分隔线；
   标签前彩色硬边小方块点缀（--stat-c），数值 28px/900 突出，币种后缀
   缩小 muted，盈亏数值按 --green/--red 着色。限定 .run-stats 作用域，
   不影响历史注单区的 .hist-shell 能量球 */
.run-stats::before {
  content: ""; position: absolute; left: 50%; top: 12px; bottom: 12px;
  width: 1px; background: rgba(17, 17, 17, .16);
}
.run-stats .orb-stat {
  flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 4px; padding: 0 2px;
  background: none; border: 0; box-shadow: none;
  cursor: default;
}
.run-stats .orb-stat:last-child { align-items: flex-end; }
.run-stats .orb-lbl {
  font-size: 11px; font-weight: 700; letter-spacing: 3px;
  color: var(--muted); text-shadow: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.run-stats .orb-lbl::before {
  content: ""; width: 8px; height: 8px; flex: none;
  background: var(--stat-c, var(--ink));
}
.run-stats .orb-blue { --stat-c: var(--blue); }
.run-stats .orb-green { --stat-c: var(--green); }
.run-stats .orb-red { --stat-c: var(--red); }
.run-stats .orb-num {
  font-size: 28px; font-weight: 900; letter-spacing: .4px;
  color: var(--ink); text-shadow: none; line-height: 1.1; white-space: nowrap;
}
.run-stats .orb-num .cur { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: 1px; margin-left: 5px; }
.run-stats .orb-green .orb-num { color: var(--green); }
.run-stats .orb-red .orb-num { color: var(--red); }

/* 多币种并存（如 CNY + TRX 策略同时运行）：能量球按币种成对换行铺开，
   取消贴边对分与中间分隔线，避免不同口径金额挤在一行 */
.run-stats.multi { flex-wrap: wrap; gap: 10px 24px; justify-content: flex-start; }
.run-stats.multi::before { display: none; }
.run-stats.multi .orb-stat { flex: 0 0 calc(50% - 12px); }
.run-stats.multi .orb-stat:last-child { align-items: flex-start; }

/* AI 跟单计划：全部视图的平台分组标题——深色硬边块 + 白字 */
.ai-group-title {
  margin: 12px 0 2px;
  font-size: 13px; font-weight: 900; letter-spacing: .04em;
  padding: 5px 12px;
  background: var(--ink); color: #fff;
  border: 2px solid var(--line);
  border-left: 6px solid #ff5c1a;
  box-shadow: 3px 3px 0 var(--line);
  display: inline-block;
}
.ai-group-title:first-child { margin-top: 2px; }

/* 周期徽标：蓝色高亮，明确区分 6S / 30S / 60S / 180S 计划 */
.badge-cycle {
  background: linear-gradient(180deg, #4d7bff 0%, #1e44cc 100%);
  color: #fff;
  border-color: var(--line);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .3);
}

/* ============ AI 跟单计划卡：紧凑垂直布局 ============ */
/* 列表容器：垂直堆叠 + 统一间距 */
#aiPlanList { display: flex; flex-direction: column; gap: 10px; }
.ai-plan-card {
  border: 2px solid var(--line); background: #fff;
  box-shadow: 3px 3px 0 var(--line);
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 6px;
  min-width: 0;
}
/* 标题行：名称加粗省略 + 周期徽标随行，均不换行 */
.apc-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.apc-name {
  flex: 1 1 auto; min-width: 0;
  font-size: 14px; font-weight: 900;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.apc-head .badge-cycle { flex-shrink: 0; font-size: 11px; padding: 2px 7px; }
/* 参数行：方向(加粗) · 策略 · 基础 · 倍率，紧凑单行 */
.apc-meta {
  display: flex; align-items: center; flex-wrap: nowrap;
  font-size: 11.5px; min-width: 0; overflow: hidden;
}
.apc-meta b { font-weight: 900; flex-shrink: 0; }
.apc-meta span { flex-shrink: 0; white-space: nowrap; }
.apc-meta i { font-style: normal; color: var(--muted); margin: 0 5px; flex-shrink: 0; }
/* 次级参数：muted 灰小字，降低视觉权重 */
.apc-sub {
  font-size: 10.5px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* 价格行：按钮组右对齐 */
.apc-foot { display: flex; justify-content: flex-end; min-width: 0; }
.apc-btns { display: inline-flex; gap: 6px; margin-left: auto; flex: none; }
/* 云端方案卡购买按钮组（.cloud-btns）：独占一行两列等宽，左右边缘与上方周期
   chips 行（gap 6px）完全对齐；不再 inline-flex 塞进 chips 行内靠右挤在 180S
   旁（排序与大小都和 chips 不一致）。已购买徽章通栏居中。智能跟投 AI 计划卡
   的 .apc-btns（.apc-foot 内）保持原 inline-flex 不动 */
.cloud-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.cloud-btns .apc-btn { width: 100%; min-height: 40px; }
.cloud-btns .apc-owned { grid-column: 1 / -1; justify-content: center; }
.apc-btn {
  min-height: 44px; padding: 0 14px;
  border: 2px solid var(--line); box-shadow: 3px 3px 0 var(--line);
  font-size: 12px; font-weight: 900; font-family: inherit;
  cursor: pointer; white-space: nowrap;
}
.apc-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--line); }
.apc-btn.trx { background: #2456ff; color: #fff; }
.apc-btn.usdt { background: #fff; color: var(--ink); }
/* 已购买：绿色硬边徽章 */
.apc-owned {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 2px solid #0d9268; box-shadow: 3px 3px 0 #0d9268;
  background: rgba(24, 201, 151, .12); color: #0d9268;
  font-size: 12px; font-weight: 900; white-space: nowrap;
}

/* ============================================================
   云端中心：四套云端 AI 方案卡（复用 .apc-* 头部与按钮）
============================================================ */
.cloud-sub { font-size: 12px; color: var(--muted); font-weight: 700; margin: -4px 0 12px; line-height: 1.8; }
#cloudPlans { display: flex; flex-direction: column; gap: 12px; }
.cloud-plan-card {
  border: 2px solid var(--line); background: #fff;
  box-shadow: 3px 3px 0 var(--line);
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 8px;
  min-width: 0;
}
.cloud-rule { font-size: 11.5px; color: var(--muted); font-weight: 700; line-height: 1.8; }
.cloud-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cloud-st {
  background: var(--paper-dark);
  border: 2px solid var(--line);
  padding: 8px 4px; text-align: center; min-width: 0;
}
.cloud-st .label { font-size: 10px; color: var(--muted); margin-bottom: 3px; font-weight: 700; }
.cloud-st .value { font-size: 14px; font-weight: 900; font-family: Consolas, monospace; white-space: nowrap; }
.cloud-st .value.up { color: var(--green); }
.cloud-st .value.down { color: var(--red); }
.cloud-note { font-size: 11px; color: var(--muted); line-height: 1.9; margin-top: 12px; }
.cloud-note b { color: var(--ink); }

/* 周期 Tab（挂机页策略卡 / 云端中心方案卡 / 智能跟投页方案周期统计）：小号 chips + 来源标注 */
.chip.sm { min-width: 40px; padding: 5px 8px; font-size: 11px; }
.strat-cycle-row { margin: 6px 0 2px; }
.cloud-cycle-row { margin: 2px 0 0; gap: 6px; align-items: center; }
.cycle-stat-src { font-size: 10px; color: var(--muted); font-weight: 700; margin: 6px 0 4px; }

/* ============================================================
   移动端自适应（≤640px，覆盖 iPhone SE/14 Pro 与常见安卓机）
   Neo-Brutalist 语言不变：硬边、硬投影保留，窄屏下降级堆叠
============================================================ */
@media (max-width: 640px) {
  /* 基础节奏：内边距收窄但纸感不丢 */
  .card { padding: 12px; margin-bottom: 12px; }
  .card h2 { font-size: 15px; }

  /* 横幅窄屏：能量球与主按钮收缩，保留心电图条带 */
  .hero-card { grid-template-columns: minmax(0, 1fr) 78px; padding: 14px 12px 28px; }
  .hero-radar { width: 74px; height: 74px; }
  .hero-radar span { width: 26px; height: 26px; }
  .hero-start-btn { font-size: 18px; }

  /* 顶部 Header：标题/余额/平台按钮均不换行挤压，余额过长省略号 */
  .app-header { padding: 10px 12px; gap: 8px; }
  .app-header .logo { font-size: 14px; letter-spacing: 0; white-space: nowrap; gap: 6px; }
  .logo-img { width: 28px; height: 28px; border-radius: 7px; }
  .app-header .right { gap: 6px; min-width: 0; }
  .balance-chip {
    padding: 4px 8px; font-size: 11px;
    max-width: 42vw; overflow: hidden;
    white-space: nowrap; text-overflow: ellipsis;
  }
  /* 与左侧余额芯片完全同尺寸等高（盒模型逐项对齐 4px/8px/11px） */
  .platform-btn { min-height: 0; padding: 4px 8px; font-size: 11px; font-weight: 700; white-space: nowrap; flex-shrink: 0; }

  /* 主按钮点击区域 ≥44px */
  .btn { padding: 13px 0; }

  /* 运行中能量球：标签与数值绝不折行 */
  /* 运行指标窄屏降级：框内单列堆叠、隐藏分隔线、左对齐，数值略收防挤压 */
  .run-stats { flex-direction: column; gap: 12px; padding: 10px 12px; }
  .run-stats::before { display: none; }
  .run-stats .orb-stat:last-child { align-items: flex-start; }
  .run-stats .orb-num { font-size: 22px; }

  /* 榜单/计划/策略卡片：价格区独占一行，主体不再被挤压成竖排 */
  .rank-item { flex-wrap: wrap; gap: 8px; padding: 10px; }
  .rank-no { width: 26px; height: 26px; font-size: 12px; }
  .rank-body { flex: 1 1 calc(100% - 42px); }
  .rank-body .name { font-size: 13px; line-height: 1.55; word-break: break-all; }
  .rank-body .intro { font-size: 11px; }
  .rank-stats { gap: 8px; font-size: 11px; }
  .rank-price {
    flex: 1 1 100%;
    display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  }
  .rank-price .p { margin: 0; font-size: 14px; }
  .rank-price button,
  .rank-price .btn-sm { min-height: 40px; padding: 8px 14px; font-size: 12px; }

  /* 策略卡片操作按钮（停止/记录监控/编辑策略/导出码/删除）：窄屏每行最多 3 枚
     （3+2 折行、大触控区防误触），末行按钮拉伸填满保持对齐 */
  .strat-item .ops { gap: 6px; }
  .strat-item .ops button { flex: 1 1 30%; min-height: 40px; padding: 8px 4px; font-size: 12px; }

  /* 统计卡：3 张卡 2 列排布时落单的一张拉通整行，保持对齐 */
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:last-child:nth-child(odd) { grid-column: 1 / -1; }

  /* 开奖走势核验条：中间倒计时圆略缩，两侧文字不挤 */
  .verify-strip { grid-template-columns: 1fr 52px 1fr; }

  /* 底部 Tabbar：胶囊缩小左右留白，点击区 ≥46px，保留安全区 */
  .tabbar { padding: 0 8px calc(10px + env(safe-area-inset-bottom, 0px)); }
  .tabbar button { min-height: 48px; font-size: 10px; }
  .tabbar .ico { font-size: 17px; }

  /* 挂机悬浮条：窄屏收紧内边距与按钮 */
  .hangdock { left: 8px; right: 8px; bottom: calc(88px + env(safe-area-inset-bottom, 0px)); gap: 8px; padding: 7px 8px 7px 12px; }
  .hangdock-txt b { font-size: 11.5px; }
  .hangdock-txt span { font-size: 9.5px; }
  .hangdock-stop { padding: 6px 10px; font-size: 11px; }

  /* 弹窗：边距收窄、高度上限放宽 */
  .ann-card { padding: 12px; }
  .ann-inner { padding: 16px; max-height: 82vh; }

  /* 首页币种切换与资金统计：窄屏也保持三个一行排列 */
  #currencyRow { grid-template-columns: repeat(3, 1fr); }
  #currencyRow .chip { min-width: 0; padding: 7px 6px; font-size: 12px; }
  #fundStatGrid { grid-template-columns: repeat(3, 1fr); }
  #fundStatGrid .stat-item { padding: 8px 2px; }
  #fundStatGrid .stat-item .label { font-size: 10px; }
  #fundStatGrid .stat-item .value { font-size: 14px; }
  /* 覆盖“落单卡拉通整行”规则，三张卡始终各居一列 */
  #fundStatGrid .stat-item:last-child { grid-column: auto; }

  /* 我的：资产卡窄屏——头像行收紧、余额 tab 与面板收紧 */
  .me-card { padding: 12px; }
  .me-top { gap: 10px; margin-bottom: 12px; }
  .me-top .avatar { width: 48px; height: 48px; }
  .me-id .nick { font-size: 15px; }
  .me-baltab { gap: 5px; margin-bottom: 8px; }
  .me-baltab .chip { padding: 6px 2px; font-size: 11px; }
  .me-bal-row { padding: 9px 10px; font-size: 11.5px; }
  .me-bal-row .v { font-size: 13px; }

  /* 开奖走势周期行窄屏收紧间距 */
  #cycleRow { gap: 5px; }

  /* AI 预测下注直播：窄屏再收紧字号与间距 */
  .live-table { font-size: 11px; }
  .live-table th { padding: 6px 6px; font-size: 10.5px; }
  .live-table td { padding: 5px 6px; }
  .live-status { font-size: 12px; gap: 6px; }
  .live-cockpit { gap: 8px; }
  .live-tile strong { font-size: 16px; }
  .live-metrics { gap: 5px; }
  .live-m strong { font-size: 13px; }
  .live-ribbon i { width: 12px; height: 12px; }
  .live-ribbon i.pop { width: 16px; height: 16px; }
  .live-tile { padding: 6px 8px; }
  .live-tile.flash-up { padding: 8px 10px; }
  .live-tile.flash-down { padding: 8px 10px; }

  /* 个人中心枢纽：窄屏收紧行高与摘要宽度，触控区不缩水 */
  .me-row { padding: 12px 2px; gap: 8px; }
  .me-gin .me-row { padding: 10px 6px 10px 12px; }
  .me-row .me-t { font-size: 13px; }
  .me-row .v { font-size: 11px; max-width: 46%; }
  .me-ico { width: 30px; height: 30px; }
  .me-ico svg { width: 19px; height: 19px; }
  .me-ghead { min-height: 48px; padding: 8px 10px; }
  .me-ghead .me-gt { font-size: 14px; }
  .me-page-head h3 { font-size: 15px; }
  .me-back { padding: 6px 10px; font-size: 11px; }

  /* 样本胜率概览：数字与进度条适配窄屏 */
  .ai-odds-item { padding: 8px 10px 10px; }
  .ai-odds-count { font-size: 20px; }
  .ai-odds-rate { font-size: 12px; }
  .ai-pool { padding: 8px 10px; }
  .ai-pool-num { font-size: 19px; }

  /* AI 跟单计划卡：窄屏收紧内边距与字号，按钮保持 44px 触控高度 */
  .ai-plan-card { padding: 10px; gap: 5px; }
  .apc-name { font-size: 13px; }
  .apc-head .badge-cycle { font-size: 10px; padding: 2px 6px; }
  .apc-meta { font-size: 11px; }
  .apc-meta i { margin: 0 4px; }
  .apc-sub { font-size: 10px; }
  .apc-btn { padding: 0 12px; font-size: 11.5px; }
  .apc-owned { padding: 0 14px; font-size: 11.5px; }

  /* 云端中心窄屏：四格统计收紧防盈亏长数字溢出 */
  .cloud-plan-card { padding: 10px; gap: 6px; }
  .cloud-rule { font-size: 11px; }
  .cloud-stats { gap: 6px; }
  /* 窄屏：购买组折行独占整行、两键均分大触控区 */
  .cloud-cycle-row .apc-btns, .cloud-cycle-row .apc-owned { margin-left: 0; flex: 1 1 100%; }
  .cloud-cycle-row .apc-btns .apc-btn { flex: 1; }
  .cloud-st { padding: 6px 2px; }
  .cloud-st .value { font-size: 12px; }

  /* 表单两列在窄屏降级单列，输入不被挤压 */
  .form-grid { grid-template-columns: 1fr; }
}

/* 超小屏（≤360px，安卓窄机）再收紧一档 */
@media (max-width: 360px) {
  .balance-chip { max-width: 38vw; font-size: 10px; }
  .platform-btn { padding: 4px 8px; font-size: 10px; }
  .run-stats .orb-num { font-size: 11px; }
  .chip { min-width: 44px; padding: 7px 10px; font-size: 12px; }
  .stat-item .value { font-size: 16px; }
  #fundStatGrid .stat-item .value { font-size: 13px; }
  #fundStatGrid .stat-item .label { font-size: 9px; }
  .ai-odds-count { font-size: 17px; }
  .ai-odds-rate { font-size: 11px; }
  .ai-pool-num { font-size: 17px; }
  .ai-predinfo { font-size: 11px; }
  /* AI 跟单计划卡：最窄档再压缩 */
  .apc-name { font-size: 12.5px; }
  .apc-meta { font-size: 10.5px; }
  .apc-meta i { margin: 0 3px; }
  .apc-sub { font-size: 9.5px; }
  .apc-btn { padding: 0 10px; font-size: 11px; }
  .apc-btn.usdt { padding: 0 9px; }
  .me-id .nick { font-size: 14px; }
  .me-top .cur-switch .chip { min-width: 40px; padding: 5px 8px; font-size: 11px; }
  #cycleRow { gap: 4px; }
  #cycleRow .chip { padding: 6px 0; font-size: 11px; }
  .live-table { font-size: 10.5px; }
  .live-table th { padding: 5px 4px; font-size: 10px; }
  .live-table td { padding: 4px 4px; }
  .live-status { font-size: 11px; gap: 4px; }
  .live-tile { padding: 6px 8px; }
  .live-tile strong { font-size: 14px; }
  .live-m { padding: 4px 4px; }
  .live-m span { font-size: 9px; }
  .live-m strong { font-size: 12px; }
  .live-ribbon i { width: 10px; height: 10px; }
  .live-ribbon i.pop { width: 14px; height: 14px; }
  /* 个人中心枢纽：超窄屏再降一档，摘要优先省略不撑破行；行高保住 40px 触控线 */
  .me-row { gap: 6px; padding: 12px 0; }
  .me-gin .me-row { padding: 10px 4px 10px 10px; }
  .me-row .me-t { font-size: 12.5px; }
  .me-row .v { font-size: 10.5px; max-width: 42%; }
  .me-ico { width: 28px; height: 28px; }
  .me-ico svg { width: 18px; height: 18px; }
  .me-ghead .me-gt { font-size: 13px; }
  .me-page-head h3 { font-size: 14px; }
}

/* 在线客服：移动端全屏聊天（保留硬边纸感，去掉遮罩留白） */
@media (max-width: 640px) {
  #supportModal { padding: 0; align-items: stretch; }
  .cs-inner { max-width: none; height: 100dvh; max-height: none; border: 0; box-shadow: none; }
  .cs-msgs { padding: 12px 10px; }
  .cs-bubble { max-width: 84%; }
  .cs-emos { grid-template-columns: repeat(8, 1fr); max-height: 150px; }
  .cs-emos button { font-size: 22px; }
  .me-support { padding: 9px 10px; }
}

/* ============ 平台官网内嵌浏览器弹窗（人机验证官网登录） ============ */
.pfb-mask {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(17, 17, 17, .55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.pfb-card {
  width: min(880px, 100%); height: min(680px, 100%);
  background: var(--card); border: 2px solid var(--line);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; overflow: hidden;
}
.pfb-head {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: var(--ink); color: #fff;
  border-bottom: 3px solid var(--line);
}
.pfb-head b { font-size: 14px; font-weight: 900; letter-spacing: .04em; white-space: nowrap; }
.pfb-host {
  flex: 1; min-width: 0; font-size: 12px; font-family: Consolas, monospace;
  color: rgba(255, 255, 255, .68); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pfb-mini {
  width: auto; padding: 4px 12px; font-size: 12px; font-weight: 900;
  background: #fff; color: var(--ink); border: 2px solid #fff; cursor: pointer;
}
.pfb-mini:hover { background: var(--orange); color: #fff; }
.pfb-status {
  padding: 8px 14px; font-size: 12px; font-weight: 700; color: var(--ink);
  background: var(--paper-dark); border-bottom: 2px solid var(--line);
}
.pfb-frame { flex: 1; width: 100%; border: 0; background: #fff; }
.pfb-foot { padding: 8px 14px; border-top: 2px solid var(--line); background: var(--card); }
.pfb-fallback { font-size: 12px; color: var(--muted); cursor: pointer; text-decoration: underline; }

/* 窄屏：弹窗全屏化，尽量把空间留给官网页面 */
@media (max-width: 640px) {
  .pfb-mask { padding: 0; }
  .pfb-card { width: 100%; height: 100dvh; border: 0; box-shadow: none; }
  .pfb-head { padding: 8px 10px; gap: 8px; }
  .pfb-head b { font-size: 13px; }
  .pfb-status { padding: 6px 10px; font-size: 11px; }
}

/* ============================================================
   开户中心（云端中心双 Tab）
   批量注册下级量化账户：表单 + 开户结果弹窗（账号/密码/登录地址）
   ============================================================ */
#cloudTabs { margin-bottom: 12px; }
.oa-tip {
  font-size: 12px; color: var(--muted); font-weight: 700; line-height: 1.9;
  background: var(--paper-dark); border: 2px dashed var(--line);
  padding: 10px 12px; margin-bottom: 14px;
}
.oa-tip b { color: var(--ink); }
.oa-textarea {
  width: 100%; min-height: 132px; padding: 10px; resize: vertical;
  background: #fff; color: var(--ink);
  border: 2px solid var(--line); outline: none;
  font-size: 13px; font-family: Consolas, monospace; line-height: 1.7;
}
.oa-textarea:focus { box-shadow: inset 0 0 0 2px var(--blue); }
.oa-pwd-row { display: flex; gap: 8px; align-items: stretch; }
.oa-pwd-row input { flex: 1; min-width: 0; }
.oa-pwd-row .btn-sm { flex-shrink: 0; min-width: 76px; padding: 7px 12px; }
#openAccountPanel .btn { margin-top: 14px; }
.oa-note { font-size: 11px; color: var(--muted); line-height: 1.9; margin-top: 10px; word-break: break-all; }
.oa-note b { color: var(--ink); font-family: Consolas, monospace; }

/* 开户结果弹窗：内容区改为普通排版（.ann-inner .content 是 pre-wrap，需 id 提升特异性）；
   white-space 会向下继承，复制按钮必须单独恢复 nowrap，否则两个字被拆成竖排 */
#openAccResultBody { white-space: normal; }
#openAccResultBody .oa-copy-btn { white-space: nowrap; padding: 7px 12px; min-width: 64px; }
#openAccResultMask { z-index: 120; }
.oa-result-url {
  border: 2px solid var(--line); background: var(--paper-dark);
  padding: 8px 10px; margin-bottom: 12px;
  font-size: 12px; font-weight: 700; line-height: 1.75; word-break: break-all;
}
.oa-result-url b { font-family: Consolas, monospace; font-size: 13px; }
.oa-result-item {
  position: relative; border: 2px solid var(--line); background: #fff;
  box-shadow: 3px 3px 0 var(--line); padding: 10px 12px 10px;
  margin-bottom: 10px; padding-right: 78px;
}
.oa-result-item .oa-result-line { display: flex; align-items: baseline; gap: 8px; font-size: 12px; line-height: 1.9; }
.oa-result-item .oa-k { color: var(--muted); font-weight: 700; flex-shrink: 0; }
.oa-result-item .oa-v { font-family: Consolas, monospace; font-weight: 900; font-size: 13px; word-break: break-all; }
.oa-result-item .oa-copy-btn { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); margin: 0; width: auto; white-space: nowrap; }
.oa-fail-title { font-size: 12px; font-weight: 900; color: var(--red); margin: 12px 0 6px; }
.oa-fail-item { font-size: 12px; color: var(--red); line-height: 1.8; word-break: break-all; }
@media (max-width: 640px) {
  /* 窄屏结果卡片：复制按钮回到行内，避免挤压账号密码 */
  .oa-result-item { padding-right: 12px; }
  .oa-result-item .oa-copy-btn { position: static; transform: none; margin-top: 8px; }
  .oa-pwd-row .btn-sm { min-width: 64px; }
}

/* ============ APP 下载（用户端） ============ */
/* 入口：与在线客服、登出同款独立白卡，位置在两者之间 */
.me-appdl {
  margin-top: 4px;
  padding: 9px 12px; min-height: 52px;
  background: #fff;
  border: 2px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.me-appdl:active { transform: translate(1px, 1px); }
.me-appdl .me-t { flex: 1; font-size: 15px; font-weight: 900; letter-spacing: .02em; }

/* 弹窗：深色品牌头 + 优势宫格 + 双端安装卡，延续硬边纸感但更强视觉层次 */
.adl-inner {
  max-width: 460px; padding: 0; overflow: hidden;
  position: relative; background: var(--card);
}
.adl-x {
  position: absolute; right: 10px; top: 10px; z-index: 3;
  width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .12); color: #e9f7f2;
  border: 2px solid rgba(255, 255, 255, .35); cursor: pointer;
}
.adl-x svg { width: 15px; height: 15px; }
.adl-x:active { transform: translate(1px, 1px); }

/* 品牌头：深色渐变 + 青绿光晕，与 logo 取色一致 */
.adl-hero {
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 24px 20px 20px;
  background:
    radial-gradient(circle at 18% 12%, rgba(46, 230, 168, .30), transparent 55%),
    radial-gradient(circle at 82% 90%, rgba(47, 91, 231, .26), transparent 55%),
    #0b0f10;
  border-bottom: 2px solid var(--line);
  color: #fff;
}
.adl-logo {
  width: 62px; height: 62px; flex-shrink: 0;
  border: 2px solid rgba(46, 230, 168, .85); border-radius: 16px;
  box-shadow: 0 0 26px rgba(46, 230, 168, .42);
}
.adl-brand h3 {
  margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 20px; font-weight: 900; letter-spacing: .02em; color: #fff;
}
.adl-ver {
  font-size: 10px; font-weight: 900; letter-spacing: .04em;
  color: #04231a; background: #2ee6a8;
  padding: 2px 7px; border-radius: 999px;
}
.adl-brand p { margin: 5px 0 0; font-size: 12px; color: #9fb3ae; letter-spacing: .02em; }

/* 优势宫格 */
.adl-feats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 14px 16px 4px;
}
.adl-feat {
  border: 2px solid var(--line); background: #fff;
  box-shadow: 2px 2px 0 var(--line);
  padding: 9px 10px;
}
.adl-feat b { display: block; font-size: 13px; font-weight: 900; letter-spacing: .01em; }
.adl-feat i { display: block; margin-top: 3px; font-size: 11px; font-style: normal; color: var(--muted); line-height: 1.55; }

/* 双端安装卡 */
.adl-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 16px 0; }
.adl-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  border: 2px solid var(--line); background: var(--paper-dark);
  box-shadow: 3px 3px 0 var(--line);
  padding: 12px 10px; text-align: center;
}
.adl-cico {
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--line); background: #fff;
  box-shadow: 2px 2px 0 var(--line); color: var(--ink);
}
.adl-cico svg { width: 20px; height: 20px; }
.adl-cm b { display: block; font-size: 13px; font-weight: 900; }
.adl-cm i { display: block; margin-top: 2px; font-size: 10.5px; font-style: normal; color: var(--muted); }
.adl-btn {
  width: 100%; margin-top: 4px; min-height: 38px;
  background: var(--green); color: #fff;
  border: 2px solid var(--line); box-shadow: 2px 2px 0 var(--line);
  font-family: inherit; font-size: 13px; font-weight: 900; letter-spacing: .02em;
  cursor: pointer;
}
.adl-btn:active { transform: translate(1px, 1px); }

/* 说明区与底部 */
.adl-note {
  margin: 14px 16px 0; padding: 10px 12px;
  border-left: 4px solid var(--green); background: rgba(46, 230, 168, .10);
  font-size: 11.5px; line-height: 1.7; color: #3d3a35;
}
.adl-note b { display: block; font-size: 12px; font-weight: 900; margin-bottom: 2px; }
.adl-foot {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px 16px; margin-top: 12px;
  border-top: 2px solid var(--line);
}
.adl-foot span { flex: 1; font-size: 11px; color: var(--muted); font-weight: 700; }
.adl-close {
  background: #fff; border: 2px solid var(--line); box-shadow: 2px 2px 0 var(--line);
  padding: 7px 20px; font-family: inherit; font-size: 13px; font-weight: 900; cursor: pointer;
}
.adl-close:active { transform: translate(1px, 1px); }

/* 新版本提示条：悬在 header 下方，不遮挡余额与刷新操作 */
.app-upd {
  position: fixed; left: 50%; transform: translateX(-50%);
  top: 62px; z-index: 300;
  display: flex; align-items: center; gap: 9px;
  max-width: min(430px, calc(100vw - 24px));
  padding: 8px 10px 8px 12px;
  background: #0b0f10; color: #eafff7;
  border: 2px solid var(--line); box-shadow: 4px 4px 0 rgba(17, 17, 17, .35);
  animation: app-upd-in .28s ease;
}
@keyframes app-upd-in {
  from { opacity: 0; transform: translate(-50%, -12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
.app-upd-dot {
  width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%;
  background: #2ee6a8; box-shadow: 0 0 10px #2ee6a8;
}
.app-upd-t {
  flex: 1; font-size: 12px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.app-upd-btn {
  flex-shrink: 0; background: #2ee6a8; color: #04231a;
  border: 2px solid #04231a; padding: 4px 12px;
  font-family: inherit; font-size: 12px; font-weight: 900; cursor: pointer;
}
.app-upd-btn:active { transform: translate(1px, 1px); }

@media (max-width: 640px) {
  .adl-hero { padding: 20px 16px 16px; gap: 12px; }
  .adl-logo { width: 54px; height: 54px; border-radius: 14px; }
  .adl-brand h3 { font-size: 18px; }
  .adl-feats { padding: 12px 14px 2px; gap: 7px; }
  .adl-dl { padding: 12px 14px 0; gap: 8px; }
  .adl-note { margin: 12px 14px 0; }
  .adl-foot { padding: 12px 14px 14px; }
  .app-upd { top: 58px; }
}

/* ===== 我的策略 · 组合编辑器（组合单双 / 组合大小） ===== */
.combo-wrap {
  max-height: 320px;
  overflow-y: auto;
  border: 2px solid var(--line);
  background: #fff;
}
.combo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-bottom: 1px solid #eceae2;
}
.combo-row:last-child { border-bottom: none; }
.combo-row:nth-child(even) { background: #faf9f4; }
.combo-idx {
  width: 48px;
  color: var(--muted);
  font-size: 12px;
  font-family: Consolas, monospace;
}
.combo-key {
  flex: 1;
  font-family: Consolas, monospace;
  font-weight: 800;
  letter-spacing: 3px;
  word-break: break-all;
}
.combo-row select {
  width: 92px;
  padding: 4px 6px;
  border: 2px solid var(--line);
  background: var(--card);
  font-weight: 700;
}
@media (max-width: 640px) {
  .combo-key { letter-spacing: 1px; font-size: 13px; }
  .combo-row select { width: 78px; }
  .combo-wrap { max-height: 260px; }
}

/* ===== 财神甄选 / 量子监控编辑器 ===== */
.chk-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
/* 财神甄选行：形态串 + N 口方向块 + 倍投档位输入 */
.plan-dirs { display: flex; gap: 3px; flex-wrap: wrap; flex: 1; }
.plan-dir-btn {
  min-width: 24px;
  padding: 2px 4px;
  border: 2px solid var(--line);
  background: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.4;
  cursor: pointer;
}
.plan-dir-btn.off { color: var(--muted); background: #f2f0e8; border-style: dashed; }
.plan-dir-btn:active { transform: translate(1px, 1px); }
.plan-tiers {
  width: 152px;
  padding: 4px 6px;
  border: 2px solid var(--line);
  background: var(--card);
  font-size: 12px;
  font-weight: 700;
}
/* 量子监控：形态方向块 + 追号表 */
.q-dir-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.q-dir-btn {
  min-width: 34px;
  padding: 4px 8px;
  border: 2px solid var(--line);
  background: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}
.q-dir-btn.on { background: #eafff2; border-color: #04231a; }
.q-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-bottom: 1px solid #eceae2;
}
.q-row:last-child { border-bottom: none; }
.q-row:nth-child(even) { background: #faf9f4; }
.q-row .q-idx {
  width: 44px;
  color: var(--muted);
  font-size: 12px;
  font-family: Consolas, monospace;
}
.q-row select { width: 78px; padding: 4px 6px; border: 2px solid var(--line); background: var(--card); font-weight: 700; }
.q-row input { width: 120px; padding: 4px 6px; border: 2px solid var(--line); background: var(--card); font-weight: 700; }
.q-row .q-del {
  margin-left: auto;
  border: 2px solid var(--line);
  background: #fff4f4;
  padding: 2px 8px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
/* 演练钱包余额卡（sim / vdemo 分账） */
.plan-wallets { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.plan-wallet {
  flex: 1;
  min-width: 150px;
  border: 2px solid var(--line);
  background: #fff;
  padding: 8px 10px;
}
.plan-wallet .pw-mode { font-size: 12px; font-weight: 900; }
.plan-wallet .pw-bal { font-size: 18px; font-weight: 900; margin-top: 2px; }
.plan-wallet .pw-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
/* 爆仓记录 */
.plan-blowups { max-height: 260px; overflow-y: auto; border: 2px solid var(--line); background: #fff; }
.plan-blowup-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  padding: 7px 10px;
  border-bottom: 1px solid #eceae2;
  font-size: 12px;
}
.plan-blowup-row:last-child { border-bottom: none; }
.plan-blowup-row:nth-child(even) { background: #faf9f4; }
.plan-blowup-row .pb-time { color: var(--muted); font-family: Consolas, monospace; }
.plan-blowup-row .pb-name { font-weight: 900; }
.plan-blowup-row .pb-loss { color: #c0392b; font-weight: 900; }
.plan-blowup-row .pb-tag {
  padding: 1px 6px;
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 800;
}
/* 爆仓报警浮层 */
.plan-alarm-pop {
  position: fixed;
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  z-index: 9999;
  max-width: min(560px, 92vw);
  background: #fff4f4;
  border: 3px solid #c0392b;
  box-shadow: 5px 5px 0 rgba(192, 57, 43, .35);
  padding: 12px 14px;
}
.plan-alarm-pop .pa-title { color: #c0392b; font-weight: 900; font-size: 14px; }
.plan-alarm-pop .pa-line { font-size: 12px; margin-top: 4px; }
.plan-alarm-pop .pa-close {
  position: absolute;
  right: 6px;
  top: 4px;
  border: none;
  background: none;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  color: #c0392b;
}
@media (max-width: 640px) {
  .plan-tiers { width: 118px; }
  .plan-dir-btn { min-width: 20px; font-size: 11px; }
  .q-row input { width: 92px; }
  .plan-wallet { min-width: 120px; }
}
