:root {
  --brand: #059669;
  --brand-strong: #047857;
  --brand-soft: #ecfdf5;
  --bg: #f4f6f8;
  --sidebar-bg: #ffffff;
  --card-bg: #ffffff;
  --text: #1f2937;
  --text-2: #6b7280;
  --border: #e8ecef;
  --radius: 10px;
  --shadow: 0 8px 30px rgba(17, 24, 39, 0.06);
  --el-color-primary: #059669;
}

* { box-sizing: border-box; }
html, body, #app { height: 100%; margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  -webkit-text-size-adjust: 100%;
}
.el-button--primary {
  --el-button-bg-color: var(--brand);
  --el-button-border-color: var(--brand);
  --el-button-hover-bg-color: var(--brand-strong);
  --el-button-hover-border-color: var(--brand-strong);
  --el-button-active-bg-color: var(--brand-strong);
  --el-button-active-border-color: var(--brand-strong);
}
.el-pagination .el-pager li.is-active,
.el-checkbox__input.is-checked .el-checkbox__inner,
.el-input__wrapper.is-focus,
.el-select .el-input.is-focus .el-input__wrapper {
  --el-color-primary: var(--brand);
}
.el-tag { border-radius: 5px; }

/* 官方 Razer logo（svg 用 currentColor，以 mask 着色） */
.logo-mark {
  display: inline-block;
  flex: none;
  background: var(--brand);
  -webkit-mask: url(/razer.svg) no-repeat center / contain;
  mask: url(/razer.svg) no-repeat center / contain;
}
.logo-mark.lg { width: 54px; height: 54px; }
.logo-mark.md { width: 28px; height: 28px; background: var(--brand); }
.logo-mark.sm { width: 18px; height: 18px; }

/* ============ 极简登录页 ============ */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 16px;
}
.login-card {
  width: 360px;
  max-width: 92vw;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 36px 34px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.login-brand { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 28px; }
.login-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text);
  text-align: center;
}
.login-card .el-input { margin-bottom: 16px; }
.login-card .el-button { width: 100%; height: 40px; font-size: 14px; letter-spacing: 2px; }
.login-trust { width: 100%; margin: -4px 0 14px; }
.qr-box {
  width: 190px; height: 190px;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin: 4px auto 14px;
  background: #fff;
}
.qr-box svg { width: 172px; height: 172px; }
.totp-secret {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12px;
  background: #f3f4f6;
  border-radius: 6px;
  padding: 6px 9px;
  word-break: break-all;
  color: var(--text-2);
  margin-bottom: 14px;
}
.login-step-tip { color: var(--text-2); font-size: 12.5px; line-height: 1.7; margin: 0 0 16px; text-align: center; }

/* ============ 主布局 ============ */
.layout { display: flex; height: 100vh; overflow: hidden; }
.sidebar {
  width: 214px;
  flex: none;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.sidebar.mobile { width: 100%; height: 100%; border-right: none; }
.sidebar-brand {
  height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
}
.sidebar-brand .name { font-size: 15px; font-weight: 700; letter-spacing: .5px; }
.sidebar-menu { flex: 1; overflow-y: auto; padding: 10px 8px; }
.sidebar-user { padding: 12px 16px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sidebar-user .uname { font-size: 13px; font-weight: 600; margin-right: auto; }
.menu-drawer .el-drawer__body { padding: 0; }
.menu-group { margin-bottom: 10px; }
.menu-group-title {
  font-size: 11px;
  color: #9ca3af;
  padding: 8px 12px 4px;
  letter-spacing: 1px;
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text);
  margin-bottom: 2px;
  font-size: 13px;
}
.menu-item:hover { background: #f3f5f7; }
.menu-item.active { background: var(--brand-soft); color: var(--brand-strong); font-weight: 600; }
.menu-item .el-icon { font-size: 16px; }

.main { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.topbar {
  height: 58px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}
.topbar-left { display: flex; align-items: center; gap: 6px; min-width: 0; }
.menu-btn { padding: 6px; color: var(--text); }
.topbar-title { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-refresh { margin-left: 8px; flex: none; }
.topbar-refresh .el-icon { font-size: 14px; }
.topbar-user { display: flex; align-items: center; gap: 10px; }
.topbar-user .uname { font-size: 13px; }
.role-tag { transform: scale(.92); }

.content { flex: 1; overflow-y: auto; padding: 18px 20px; }
.content-mobile { padding: 12px 10px 20px; }
.panel {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px;
  transition: border-color .18s ease, box-shadow .18s ease;
  animation: fadeUp .24s ease both;
}
.panel:hover { border-color: #d3dbe6; box-shadow: 0 3px 12px rgba(15, 23, 42, .05); }
/* 全局按压反馈：按钮 / 分段 / 开关 */
.el-button:active { transform: scale(.97); }
.el-radio-button__inner:active { transform: scale(.97); }
.el-tabs__item { transition: color .15s ease, opacity .15s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.panel + .panel { margin-top: 16px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.panel-head h3 { margin: 0; font-size: 15px; }
.subtle { color: var(--text-2); font-size: 12px; }

/* 统计卡片 */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.stat-card .label { color: var(--text-2); font-size: 12.5px; margin-bottom: 8px; }
.stat-card .value { font-size: 24px; font-weight: 700; }
.stat-card .value.green { color: var(--brand-strong); }
.stat-card .sub { font-size: 11.5px; color: var(--text-2); margin-top: 4px; }
.currency-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.currency-card { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.currency-card .cur { font-weight: 600; font-size: 13px; }
.currency-card .val { font-size: 16px; font-weight: 700; margin-top: 6px; }
.currency-card .cny { font-size: 12px; color: var(--brand-strong); margin-top: 3px; }
/* 封禁/限额损失明细 */
.risk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.risk-col { border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }
.risk-banned { border-top: 3px solid #ef4444; background: #fefdfd; }
.risk-limited { border-top: 3px solid #f59e0b; background: #fffdf8; }
.risk-head { display: flex; align-items: center; justify-content: space-between; }
.risk-title { font-size: 14px; font-weight: 700; }
.risk-banned .risk-title { color: #ef4444; }
.risk-limited .risk-title { color: #d97706; }
.risk-count { font-size: 12.5px; color: var(--text-2); }
.risk-total { font-size: 22px; font-weight: 800; margin: 8px 0 10px; }
.risk-banned .risk-total { color: #dc2626; }
.risk-limited .risk-total { color: #d97706; }
.risk-cur {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; padding: 6px 0; border-top: 1px dashed var(--border);
  font-variant-numeric: tabular-nums;
}
.risk-cur b { font-weight: 700; }
.risk-empty { font-size: 12.5px; padding: 6px 0; }
@media (max-width: 768px) {
  .risk-grid { grid-template-columns: 1fr; }
  .risk-total { font-size: 19px; }
}

/* 工具条/筛选 */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.toolbar .el-input, .toolbar .el-select { width: 150px; }
.toolbar .kw { width: 200px; }
.charts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.chart-box { height: 280px; }
.chart-box.tall { height: 320px; }

/* 高密度表格 */
.el-table { font-size: 12.5px; }
.el-table .cell { padding: 0 6px; }
.el-table th.el-table__cell { background: #f8fafb !important; color: #374151; font-weight: 600; }
.amount { font-variant-numeric: tabular-nums; font-weight: 600; }
.amount.cny { color: var(--brand-strong); }
.inline-click { cursor: pointer; }
.inline-click:hover { color: var(--brand); text-decoration: underline; }
.table-ops { display: flex; gap: 6px; }
.copy-mini { padding: 2px; height: auto; min-height: 0; }

/* ============ TOTP 验证码徽章（环形倒计时，低调融入表格） ============ */
.totp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 6px 2px 9px;
  border-radius: 8px;
  background: #f6f7f9;
  border: 1px solid #e4e7eb;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  user-select: none;
}
.totp-badge:hover { border-color: #86d3b3; background: #f0fdf4; }
.totp-badge:active { transform: scale(.98); }
.totp-badge.urgent {
  background: #fef6f6;
  border-color: #f3c6c6;
}
.totp-digits {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.5px;
  color: #059669;
  line-height: 1;
  white-space: nowrap;
}
.totp-badge.urgent .totp-digits { color: #dc2626; }
.totp-digits { animation: totpFade .3s ease; }
@keyframes totpFade { from { opacity: .3; } to { opacity: 1; } }
.totp-ring { position: relative; width: 26px; height: 26px; flex: none; }
.totp-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.totp-ring circle { fill: none; stroke-width: 2.5; }
.totp-ring .ring-bg { stroke: #e5e7eb; }
.totp-ring .ring-fg { stroke: #10b981; stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.totp-badge.urgent .totp-ring .ring-fg { stroke: #ef4444; }
.ring-sec {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: #059669; font-variant-numeric: tabular-nums;
}
.totp-badge.urgent .ring-sec { color: #dc2626; }
/* 手机卡片大号（仍比之前收敛） */
.totp-badge.lg { width: 100%; padding: 9px 14px; border-radius: 10px; gap: 12px; }
.totp-badge.lg .totp-digits { font-size: 22px; letter-spacing: 3px; }
.totp-badge.lg .totp-ring { width: 36px; height: 36px; }
.totp-badge.lg .ring-sec { font-size: 12px; }

/* 充值状态标签（单行；供应商与汇率已移到标签下方） */
.recharge-tag {
  height: auto;
  padding: 2px 8px;
}
.recharge-tag .el-tag__content {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  line-height: 1.3;
}
.recharge-tag .rt-label { font-size: 12px; }
.recharge-tag .rt-rate {
  font-size: 10px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  opacity: .72;
}

/* ============ 充值状态卡片（仅“充值中”显示供应商与汇率） ============ */
.rc-card {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 3px 9px;
  border-radius: 7px;
  border: 1px solid;
  cursor: pointer;
  line-height: 1.25;
  max-width: 100%;
  transition: box-shadow .15s, border-color .15s, background .15s, color .15s;
}
.rc-card.rc-locked { cursor: default; }

/* 充值中：蓝色（刻意避开“限额”的橙色） */
.rc-card.rc-pending { background: #eff6ff; border-color: #bfdbfe; }
.rc-card.rc-pending:not(.rc-locked):hover { border-color: #60a5fa; box-shadow: 0 1px 5px rgba(37,99,235,.18); }
.rc-card.rc-pending .rc-sup { color: #1d4ed8; font-weight: 700; }
.rc-card.rc-pending .rc-state { color: #2563eb; font-weight: 600; }
.rc-card.rc-pending .rc-rate { color: #3b82f6; }

/* 充值完成：显示「开始采购」动作（绿色描边，可点） */
.rc-card.rc-done { background: #ecfdf5; border-color: #6ee7b7; color: #047857; }
.rc-card.rc-done:not(.rc-locked):hover { border-color: #10b981; background:#d1fae5; box-shadow: 0 1px 5px rgba(16,185,129,.2); }
.rc-card.rc-done .rc-start-purchase b { font-weight: 700; }
.rc-card.rc-done .rc-start-purchase .el-icon { margin-right: 2px; }

/* 采购中：显示「完成采购」（紫色，区别于充值中蓝、限额橙、开始采购绿） */
.rc-card.rc-ordering { background: #f5f3ff; border-color: #c4b5fd; color: #6d28d9; }
.rc-card.rc-ordering:not(.rc-locked):hover { border-color: #8b5cf6; background:#ede9fe; box-shadow: 0 1px 5px rgba(124,58,237,.2); }
.rc-card.rc-ordering .rc-purchase b { font-weight: 700; }
.rc-card.rc-ordering .rc-purchase .el-icon { margin-right: 2px; }

/* 待充值：白底灰框 */
.rc-card.rc-none { background: #fff; border-color: #e5e7eb; color: #9ca3af; }
.rc-card.rc-none:not(.rc-locked):hover { border-color: #60a5fa; background: #eff6ff; color: #2563eb; }

.rc-main { font-size: 13px; display: inline-flex; align-items: center; white-space: nowrap; }
.rc-sup, .rc-state { font-size: 13px; }
.rc-rate { font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rc-hint { color: #93c5fd !important; font-weight: 500 !important; }

/* 手机端：全宽卡片，左对齐 */
.rc-card.rc-m { display: flex; width: 100%; justify-content: flex-start; margin: 6px 0 2px; padding: 6px 13px; }


/* 列设置：排序行 */
.col-settings-row { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.col-settings-row .col-settings-item { margin: 2px 0; flex: 1; width: auto; }
.col-order-btns { display: inline-flex; flex: none; }
.col-order-btn { padding: 2px; margin: 0; }
.col-order-btn:disabled, .col-order-btn.is-disabled { opacity: .28; cursor: not-allowed; }

/* 账号余额单元格 */
.bal-cell { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; line-height: 1.25; }
.bal-main { font-weight: 700; color: #1f2937; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bal-sub { font-size: 11px; color: #9ca3af; font-variant-numeric: tabular-nums; }
.bal-cell:hover .bal-sub { color: #059669; }
@media (max-width: 768px) {
  .acc-meta-row .bal-sub { font-size: 12px; color: #9ca3af; margin-left: 6px; }
}

.login-cell { display: flex; align-items: center; gap: 2px; }
.login-name { word-break: break-all; }

/* ============ 密码列 ============ */
.pwd-cell { display: flex; align-items: center; gap: 2px; }
/* 密码文字固定宽度（掩码/明文同宽），按钮紧跟且查看前后位置不变 */
.pwd-cell .pwd-text, .pwd-cell .pwd-mask {
  width: 76px; flex: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pwd-mask {
  font-family: ui-monospace, Menlo, monospace;
  color: #9ca3af; letter-spacing: 1px; font-size: 13px;
}
.pwd-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px; color: #b45309; font-weight: 700;
  letter-spacing: .2px; line-height: 1.4;
}

/* ============ 可点击编辑的单元格 ============ */
.cell-edit {
  cursor: pointer; border-radius: 4px;
  border-bottom: 1px dashed transparent;
  transition: background .12s, border-color .12s;
}
.cell-edit:hover {
  background: #f0fdf4;
  border-bottom-color: #34d399;
}
.sup-cell {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 6px; padding: 2px 2px; max-width: 100%;
}
.sup-cell span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sup-cell.cell-edit:hover { background: #f0fdf4; }
.sup-empty { color: var(--text-2); font-size: 12px; padding: 2px 4px; }

/* ============ 供应商徽标（纯图标块，用于下拉/网格） ============ */
/* 供应商品牌图标：扁平纯色（圆角方块 + 白字，干净耐看） */
/* 供应商轻量标识：纯色圆点（不再用带简称的大徽章） */
.sup-dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  flex: none; box-shadow: 0 0 0 1px rgba(15,23,42,.10);
}
.sup-dot.sm { width: 8px; height: 8px; }
.sup-dot.lg { width: 14px; height: 14px; }
.sup-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px;
  color: #fff; flex: none; position: relative;
  box-shadow: 0 1px 2px rgba(15,23,42,.14);
}
.sup-badge em {
  position: relative; font-style: normal; font-weight: 700; font-size: 12px;
  letter-spacing: .2px; line-height: 1;
}
/* 两字时缩小字号，避免拥挤 */
.sup-badge.n2 em, .sup-badge.n3 em, .sup-badge.n4 em { letter-spacing: 0; }
.sup-badge.n2 em { font-size: 10.5px; }
.sup-badge.n3 em { font-size: 9px; }
.sup-badge.n4 em { font-size: 8px; }
.sup-badge.sm { width: 24px; height: 24px; border-radius: 7px; }
.sup-badge.sm em { font-size: 10px; }
.sup-badge.sm.n2 em { font-size: 8.5px; }
.sup-badge.sm.n3 em { font-size: 7.5px; }
.sup-badge.sm.n4 em { font-size: 6.5px; }
.sup-badge.lg { width: 42px; height: 42px; border-radius: 12px; }
.sup-badge.lg em { font-size: 16px; }
.sup-badge.lg.n2 em { font-size: 13.5px; }
.sup-badge.lg.n3 em { font-size: 12px; }
.sup-badge.lg.n4 em { font-size: 10.5px; }

/* ============ 供应商品牌芯片（两段式：实色图标块 + 浅色名称块，区别于状态软 pill） ============ */
.sup-chip {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  border-radius: 8px; flex: none;
  height: 22px;
}
.sup-chip.sm { height: 20px; gap: 5px; }
.sup-chip .sup-chip-name {
  display: inline-flex; align-items: center; padding: 0 8px; border-radius: 7px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.sup-chip.sm .sup-chip-name { padding: 0 6px; font-size: 11.5px; }
.sup-inline { display: inline-flex; align-items: center; min-width: 0; }
.sup-opt { display: inline-flex; align-items: center; gap: 8px; }
.sup-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-height: 340px; overflow-y: auto;
}
.sup-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border: 1.5px solid var(--border); border-radius: 10px;
  background: #fff; cursor: pointer; text-align: left;
  transition: .12s;
}
.sup-item:hover { border-color: var(--brand); background: var(--brand-soft); }
.sup-item.add { border-style: dashed; color: var(--brand-strong); }
.sup-item-name { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sup-manage {
  margin-top: 12px; text-align: center;
  font-size: 12.5px; color: var(--text-2); cursor: pointer;
}
.sup-manage:hover { color: var(--brand); }

/* 充值弹窗里的金额/汇率 */
.recharge-amount { border-top: 1px dashed var(--border); margin-top: 4px; }
.recharge-preview {
  text-align: right; font-size: 13.5px; color: var(--text-2);
  margin-top: -4px;
}
.recharge-preview .amount { font-size: 16px; }

/* 充值弹窗：余额联动预览 */
.recharge-balance {
  margin-top: -4px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg, #f7f8fa); padding: 10px 12px;
}
.recharge-balance .rb-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--text-2); padding: 3px 0;
}
.recharge-balance .rb-row b { font-weight: 600; color: var(--text); }
.recharge-balance .rb-row.total {
  border-top: 1px dashed var(--border); margin-top: 4px; padding-top: 8px;
  font-size: 14px;
}
.recharge-balance .rb-row.total b { color: var(--brand-strong, #059669); font-size: 16px; }
.recharge-balance .rb-tip {
  margin-top: 8px; font-size: 11.5px; color: var(--text-2); line-height: 1.5;
}
.sup-opt { display: inline-flex; align-items: center; gap: 8px; }

/* 列设置 popover */
.col-settings { padding: 2px 2px; }
.col-settings-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px; font-size: 13px;
}
.col-settings-item { display: block; margin: 6px 0; width: 100%; }
.col-resetw { width: 100%; margin-top: 8px; }
.col-settings-tip { margin-top: 8px; font-size: 11px; color: var(--text-2); line-height: 1.5; }

/* 充值记录弹窗 */
.rec-summary { display: flex; gap: 10px; }
.rec-sum-item {
  flex: 1; border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 12px; text-align: center; background: var(--bg, #f7f8fa);
}
.rec-sum-item .lab { font-size: 11.5px; color: var(--text-2); }
.rec-sum-item .val { font-size: 17px; font-weight: 700; margin-top: 5px; }
.cum-hint { color: var(--brand-strong, #059669); margin-top: 4px; }
.currency-card .cur-recharge { font-size: 11.5px; color: var(--text-2); margin-top: 5px; }
@media (max-width: 640px) {
  .rec-summary { flex-direction: column; gap: 8px; }
}

/* 账号名 */
.acc-cards { display: flex; flex-direction: column; gap: 10px; }
.acc-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(17,24,39,.04);
}
.acc-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.acc-login { display: flex; align-items: center; gap: 2px; min-width: 0; }
.acc-login .login-name { font-weight: 700; font-size: 14px; }
.acc-country { font-size: 12px; color: var(--text-2); white-space: nowrap; }
.acc-totp { margin: 10px 0; }
.acc-totp.none { background: #f9fafb; border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; }
.acc-pwd {
  display: flex; align-items: center; gap: 6px;
  background: #fffbeb; border: 1px solid #fde68a;
  border-radius: 8px; padding: 6px 10px; margin-bottom: 10px;
}
.acc-pwd-label { font-size: 12px; color: #92400e; font-weight: 600; flex: none; }
.acc-pwd .pwd-mask { font-size: 12.5px; }
.acc-ops .el-button .el-icon { margin-right: 4px; }
.acc-ops .op-glyph { margin-right: 4px; flex: none; }
/* 采购计划（移动端）：紫色描边按钮，避免橙色像冷却号 */
.acc-ops .m-plan-btn {
  --el-button-text-color: #7c3aed;
  --el-button-border-color: #c4b5fd;
  --el-button-bg-color: #f5f3ff;
  --el-button-hover-text-color: #6d28d9;
  --el-button-hover-bg-color: #ede9fe;
  --el-button-hover-border-color: #a78bfa;
}
/* 清余额采购（移动端）：琥珀色描边，与冷却色区分（更亮一档） */
.acc-ops .m-clean-btn {
  --el-button-text-color: #b45309;
  --el-button-border-color: #fcd34d;
  --el-button-bg-color: #fffbeb;
  --el-button-hover-text-color: #92400e;
  --el-button-hover-bg-color: #fef3c7;
  --el-button-hover-border-color: #fbbf24;
}
.acc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; align-items: flex-start; }
.acc-meta { display: flex; flex-direction: column; gap: 4px; }
.acc-meta-row {
  display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px;
  border-radius: 6px; padding: 2px 4px;
}
.acc-meta-row span { color: var(--text-2); flex: none; }
.acc-meta-row b { font-weight: 600; text-align: right; word-break: break-all; display:inline-flex; align-items:center; gap:6px; }
.acc-ops { display: flex; gap: 8px; margin-top: 12px; }
.acc-ops .el-button { flex: 1; }
.acc-pager { margin-top: 14px; justify-content: center; }
@media (min-width: 769px) { .acc-pager { justify-content: flex-end; } }

/* 状态选择弹窗（底部动作面板风格） */
.status-options { display: flex; flex-direction: column; gap: 10px; }
.status-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--border);
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  transition: .12s;
}
.status-option:active { background: #f3f5f7; }
.status-option.active { border-color: var(--brand); background: var(--brand-soft); }
.status-option .check { font-size: 18px; color: var(--brand); }
.status-option .el-tag { font-size: 13px; }

/* 表单网格 */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; }
.form-grid .full { grid-column: 1 / -1; }
/* 完整编辑账号弹窗：字段较多，限制内容区高度并滚动，避免超出视口底部被截断 */
.form-dialog .el-dialog__body { max-height: 72vh; overflow-y: auto; }
/* 只读字段（如自动记录的注册时间） */
.field-readonly { color: #475569; font-size: 13px; line-height: 32px; }
.form-label { font-size: 12.5px; color: var(--text-2); margin: 10px 0 4px; }
.dialog-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }

/* 点卡计算器 */
.calc-toolbar { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-bottom: 18px; }
.calc-lines { display: flex; flex-direction: column; gap: 10px; }
.calc-line { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr 40px; gap: 10px; align-items: center; }
.calc-line-head { font-weight: 600; color: #6b7280; font-size: 12px; }
.calc-total { display: flex; justify-content: flex-end; gap: 26px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.calc-total .big { font-size: 22px; font-weight: 700; color: var(--brand-strong); }

/* 卡密查重 */
.dedup-textarea textarea { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; line-height: 1.7; }
.dup-row { color: #dc2626; }
.muted-row { color: #9ca3af; }

/* ============ 通用计算器（iQOO 风格） ============ */
.calculator-wrap { display: flex; justify-content: center; }
.calc-pad {
  width: 380px;
  max-width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.calc-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 4px;
  position: relative;
}
.calc-title { font-size: 14px; font-weight: 600; color: var(--text-2); }
.calc-topbar .el-button { position: relative; padding: 6px; color: var(--text-2); }
.hist-badge {
  position: absolute; top: 0; right: 0;
  background: var(--brand); color: #fff;
  font-size: 10px; line-height: 1;
  min-width: 15px; height: 15px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
}
.calc-display {
  background: #0f172a; color: #fff;
  padding: 18px 18px 20px;
  text-align: right;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.calc-display .expr { font-size: 15px; color: #94a3b8; min-height: 20px; word-break: break-all; line-height: 1.35; }
.calc-display .out { font-size: 38px; font-weight: 700; margin-top: 6px; word-break: break-all; line-height: 1.2; }
.calc-keys {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 14px;
  background: #f1f4f8;
}
.calc-key {
  height: 58px;
  border: none;
  background: #ffffff;
  border-radius: 12px;
  font-size: 20px;
  font-weight: 500;
  color: #1f2937;
  cursor: pointer;
  transition: transform .05s, background .1s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 1px 2px rgba(17,24,39,.05);
}
.calc-key.fn { background: #dfe5ec; color: #374151; font-weight: 600; }
.calc-key.op { background: #e7f6f0; color: var(--brand-strong); font-weight: 700; }
.calc-key.eq { background: var(--brand); color: #fff; font-weight: 700; }
.calc-key.zero { grid-column: span 2; }
.calc-key:hover { background: #eef2f5; }
.calc-key.op:hover { background: #d6f1e6; }
.calc-key.eq:hover { background: var(--brand-strong); }
.calc-key.pressed { transform: scale(.94); background: #cdd5df; }
.calc-key.op.pressed { background: var(--brand-strong); color: #fff; }
.calc-key.eq.pressed { background: var(--brand-strong); }
.calc-hint { text-align: center; font-size: 11.5px; color: #9ca3af; padding: 0 14px 14px; background: #f1f4f8; }

/* 计算器历史记录 */
.hist-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 12px; }
.hist-list { display: flex; flex-direction: column; gap: 8px; }
.hist-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  background: #fff;
}
.hist-item:hover { border-color: var(--brand); background: var(--brand-soft); }
.hist-item .hist-expr { font-size: 12.5px; color: var(--text-2); word-break: break-all; font-family: ui-monospace, Menlo, monospace; }
.hist-item .hist-result { font-size: 18px; font-weight: 700; text-align: right; margin-top: 4px; font-variant-numeric: tabular-nums; }
.hist-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.hist-time { font-size: 11px; color: #9ca3af; }

/* 权限勾选 */
.perm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.perm-group { font-size: 12px; color: var(--text-2); margin: 12px 0 6px; }

/* ============ 弹窗公共移动端适配 ============ */
@media (max-width: 768px) {
  .el-dialog { width: 94% !important; margin-top: 6vh !important; }
  .el-dialog__body { padding: 16px 14px; }
  /* 底部动作面板 */
  .sheet-dialog .el-overlay-dialog { display: flex; align-items: flex-end; }
  .sheet-dialog .el-dialog {
    width: 100% !important;
    margin: 0 !important;
    border-radius: 16px 16px 0 0;
    max-width: 100%;
  }
  .sheet-dialog .el-dialog__header { padding: 16px 16px 8px; }
  .sheet-dialog .el-dialog__body { padding: 8px 16px 18px; }
  /* 表单弹窗单列 */
  .form-grid.mobile { grid-template-columns: 1fr; gap: 0; }
  .form-grid.mobile .el-form-item { margin-bottom: 14px; }
}

/* ============ 响应式 ============ */
@media (max-width: 1100px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .currency-cards { grid-template-columns: repeat(2, 1fr); }
  .charts { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  body { font-size: 13px; }
  .topbar { padding: 0 12px; height: 52px; }
  .topbar-title { font-size: 15px; }
  .panel { padding: 12px; border-radius: 10px; }

  /* 首页统计 */
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
  .stat-card { padding: 12px; }
  .stat-card .value { font-size: 20px; }
  .currency-cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .chart-box { height: 240px; }

  /* 工具栏：筛选控件整行 */
  .toolbar { gap: 8px; }
  .toolbar .el-input, .toolbar .el-select,
  .toolbar .kw { width: calc(50% - 4px); }
  .toolbar .el-date-editor { width: calc(50% - 4px) !important; }

  /* 点卡计算器：卡片式档位行 */
  .calc-toolbar { flex-direction: column; align-items: stretch; gap: 4px; }
  .calc-toolbar .el-select, .calc-toolbar .el-input { width: 100% !important; }
  .calc-tool { margin-bottom: 8px; }
  .calc-line {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "denom del"
      "qty qty"
      "foreign cny";
    gap: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px;
  }
  .cl-denom { grid-area: denom; font-weight: 600; }
  .cl-del { grid-area: del; }
  .cl-qty { grid-area: qty; }
  .cl-foreign { grid-area: foreign; font-size: 13px; }
  .cl-cny { grid-area: cny; font-size: 13px; text-align: right; }
  .calc-total { gap: 18px; }

  /* 查重统计卡 */
  .dedup-stats { grid-template-columns: repeat(2, 1fr) !important; }

  /* 通用计算器 */
  .calc-pad { width: 100%; border-radius: 14px; }
  .calc-key { height: 62px; font-size: 22px; border-radius: 12px; }
  .calc-display .out { font-size: 42px; }

  /* 分页 */
  .el-pagination { flex-wrap: wrap; gap: 4px; }
  .el-pagination button, .el-pagination .el-pager li { min-width: 30px; }

  /* 权限勾选项单列 */
  .perm-grid { grid-template-columns: 1fr; }

  /* 登录页 */
  .login-card { padding: 30px 24px 26px; }
}

/* 超窄屏 */
@media (max-width: 360px) {
  .stat-grid { grid-template-columns: 1fr; }
  .calc-display .out { font-size: 36px; }
}

/* ============ 短信接码弹窗 ============ */
.sms-dialog .el-dialog__body { padding-top: 10px; }
.sms-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: #374151; margin-bottom: 14px;
  padding-bottom: 10px; border-bottom: 1px dashed #e5e7eb;
}
.sms-head .sms-flag { font-size: 20px; }
.sms-head .sms-cc { font-weight: 700; }
.sms-head .sms-login {
  color: #6b7280; font-size: 12.5px; margin-left: auto;
  max-width: 52%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sms-idle { text-align: center; padding: 8px 4px 4px; }
.sms-intro {
  font-size: 13.5px; color: #4b5563; line-height: 1.7;
  background: #f8fafc; border: 1px solid #eef2f7; border-radius: 12px;
  padding: 12px 14px; margin-bottom: 16px; text-align: left;
}
.sms-buy-btn { width: 100%; height: 46px; font-size: 16px; border-radius: 12px; }
.sms-tip { margin-top: 12px; font-size: 12px; color: #9ca3af; line-height: 1.6; }
.sms-buy-panel { margin-bottom: 14px; }
.sms-buy-panel .sms-intro { margin-bottom: 12px; }
.sms-active-list { display: flex; flex-direction: column; gap: 12px; max-height: 52vh; overflow-y: auto; padding: 1px; }
.sms-order-card { border: 1px solid #e5e7eb; border-radius: 14px; padding: 10px; background: #fff; }
.sms-order-card.is-waiting { border-color: #bfdbfe; }
.sms-order-card.is-received { border-color: #a7f3d0; }
.sms-order-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 9px; color: #94a3b8; font-size: 11.5px; }
.sms-empty { padding: 18px 10px; text-align: center; color: #94a3b8; font-size: 13px; background: #f8fafc; border-radius: 10px; }
.sms-dialog .el-dialog__body { max-height: 76vh; overflow-y: auto; }

.sms-number-card {
  border: 1.5px solid #bfdbfe; background: #eff6ff;
  border-radius: 14px; padding: 16px 16px 14px; text-align: center;
}
.sms-num-label { font-size: 12.5px; color: #2563eb; margin-bottom: 6px; }
.sms-num-row { display: flex; align-items: center; justify-content: center; gap: 10px; }
.sms-number {
  font-size: 27px; font-weight: 800; letter-spacing: .5px; color: #1e3a8a;
  font-variant-numeric: tabular-nums;
}
.sms-num-meta {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 10px; font-size: 12.5px; color: #6b7280;
}
.sms-timer b { color: #b45309; font-variant-numeric: tabular-nums; }
.sms-wait-tip { text-align: center; font-size: 12.5px; color: #6b7280; margin: 12px 2px 4px; line-height: 1.6; }
.sms-cancel-btn { display: block; margin: 12px auto 0; }

.sms-otp-card {
  border: 1.5px solid #a7f3d0; background: #ecfdf5;
  border-radius: 14px; padding: 16px; text-align: center;
}
.sms-otp-label { font-size: 12.5px; color: #047857; margin-bottom: 6px; }
.sms-otp-row { display: flex; align-items: center; justify-content: center; gap: 12px; }
.sms-otp {
  font-size: 38px; font-weight: 800; letter-spacing: 4px; color: #065f46;
  font-variant-numeric: tabular-nums;
}
.sms-num-line {
  margin-top: 10px; font-size: 13px; color: #374151;
  display: flex; align-items: center; justify-content: center; gap: 2px;
}
.sms-msg {
  margin-top: 12px; background: #fff; border: 1px solid #d1fae5; border-radius: 10px;
  padding: 10px 12px; text-align: left;
}
.sms-msg-sender { font-size: 11.5px; color: #9ca3af; margin-bottom: 3px; }
.sms-msg-content { font-size: 14px; color: #1f2937; line-height: 1.6; word-break: break-all; }
.sms-actions { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }

.sms-ended { text-align: center; padding: 14px 0 8px; }
.sms-ended-title { font-size: 16px; font-weight: 700; color: #374151; margin-bottom: 6px; }
.sms-ended-sub { font-size: 13px; color: #9ca3af; margin-bottom: 16px; }

.sms-history { margin-top: 16px; border-top: 1px dashed #e5e7eb; padding-top: 10px; }
.sms-history-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: #4b5563; cursor: pointer; padding: 4px 2px; user-select: none;
}
.sms-history-list { margin-top: 8px; max-height: 200px; overflow-y: auto; }
.sms-hist-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px; border-radius: 8px; background: #f9fafb; margin-bottom: 6px;
}
.sms-hist-main { display: flex; align-items: center; gap: 8px; }
.sms-hist-num { font-size: 13.5px; font-weight: 600; color: #1f2937; font-variant-numeric: tabular-nums; }
.sms-hist-sub { display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: #9ca3af; }
.sms-hist-otp { color: #047857; font-weight: 700; }

@media (max-width: 768px) {
  .sms-number { font-size: 24px; }
  .sms-otp { font-size: 33px; }
  .sms-order-footer { align-items: flex-start; flex-direction: column; }
  .sms-order-footer .el-button { width: 100%; margin-left: 0; }
  .sms-hist-item { align-items: flex-start; gap: 6px; flex-direction: column; }
}

/* ============ 临时工作标记（下单中/购买中） ============ */
/* 表格账号列：标记徽章 */
.work-tag-badge {
  display: inline-flex; align-items: center; gap: 3px;
  margin-top: 3px;
  padding: 1px 8px; border-radius: 10px;
  font-size: 12px; line-height: 1.6;
  border: 1px solid transparent; cursor: pointer;
  user-select: none; white-space: nowrap;
}
.work-tag-badge b { font-weight: 600; }
.work-tag-badge .wt-x { display: none; margin-left: 2px; font-size: 11px; }
.work-tag-badge:hover .wt-x { display: inline-flex; }
/* 操作列标记按钮 */
.tag-ops-btn { color: #9ca3af; }
.tag-ops-btn.tag-active { color: #d97706; }
.tag-ops-btn.tag-active .el-icon { animation: wtpop 0.25s ease; }
@keyframes wtpop { 0% { transform: scale(0.6); } 100% { transform: scale(1); } }
/* 手机卡片：标记横幅（独占一行） */
.work-tag-banner {
  display: flex; align-items: center; gap: 6px;
  width: 100%; box-sizing: border-box;
  margin-top: 8px; padding: 6px 10px;
  border-radius: 8px; border: 1px dashed transparent;
  font-size: 13px; cursor: pointer;
}
.work-tag-banner b { font-weight: 700; }
.work-tag-banner .wt-banner-x { margin-left: auto; font-size: 11px; opacity: 0.75; }
/* 标记弹窗 */
.tag-pop { display: flex; flex-direction: column; gap: 12px; }
.tag-pop-tip { font-size: 12px; color: #6b7280; line-height: 1.6; }
.tag-pop-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-pick {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 16px; border-radius: 18px; border: 1.5px solid;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: transform .12s, box-shadow .12s;
}
.tag-pick:hover { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(0,0,0,.12); }
.tag-pick.on { outline: 2px solid rgba(217,119,6,.35); outline-offset: 1px; }
.tag-pop-custom { display: flex; gap: 8px; }
.tag-pop-current { display: flex; align-items: center; gap: 8px; font-size: 13px; }
/* 备注列 */
.note-cell { font-size: 12.5px; color: #374151; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note-cell.is-empty { color: #c0c4cc; }
.note-cell.cell-edit { cursor: pointer; }
@media (max-width: 768px) {
  .tag-pick { padding: 7px 14px; font-size: 13px; }
}

/* ============ 国旗图片（替代 emoji，Windows/手机一致） ============ */
.flag-img {
  display: inline-block; width: 20px; height: 14px;
  object-fit: cover; border-radius: 3px; vertical-align: middle;
  border: 1px solid rgba(0,0,0,.12);
  box-shadow: 0 0 0 1px rgba(255,255,255,.6);
  background: #f3f4f6;
}
.flag-img.md { width: 26px; height: 18px; }
.flag-img.sm { width: 18px; height: 13px; }
.cell-flag { margin-right: 1px; }
.opt-flag { display: inline-flex; align-items: center; gap: 7px; }
.opt-flag .flag-img { flex: 0 0 auto; }
.sms-flag .flag-img { width: 30px; height: 21px; }

/* ============ 各国余额：HTML 横向条形图 ============ */
#chart-country.chart-box { height: auto; min-height: 220px; }
.cb-title { font-size: 14px; font-weight: 700; color: #1f2937; text-align: center; margin-bottom: 16px; }
.cb-list { display: flex; flex-direction: column; gap: 13px; }
.cb-row { display: grid; grid-template-columns: 118px 1fr 132px; align-items: center; gap: 10px; }
.cb-label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #374151; min-width: 0; }
.cb-label span { white-space: nowrap; }
.cb-track { height: 18px; background: #f1f5f9; border-radius: 9px; overflow: hidden; }
.cb-fill {
  height: 100%; border-radius: 9px;
  background: linear-gradient(90deg, #34d399, #059669);
  box-shadow: 0 1px 3px rgba(5,150,105,.3);
  transition: width .5s ease;
}
.cb-val { font-size: 13px; font-weight: 600; color: #1f2937; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cb-val em { font-style: normal; font-weight: 400; color: #9ca3af; font-size: 11.5px; margin-left: 2px; }
@media (max-width: 768px) {
  #chart-country.chart-box { min-height: 0; }
  .cb-row { grid-template-columns: 84px 1fr 104px; gap: 8px; }
  .cb-label { font-size: 12px; gap: 5px; }
  .cb-track { height: 15px; }
  .cb-val { font-size: 12px; }
  .cb-val em { display: block; }
  .flag-img { width: 18px; height: 13px; }
  .flag-img.md { width: 22px; height: 15px; }
}

/* ============ 范围 / 排序 / 近期筛选工具条（scope-bar） ============ */
.scope-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 4px 0 12px; width: 100%; }
.action-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; width: 100%; }
.seg {
  display: inline-flex; background: #f1f5f9; border: 1px solid #e2e8f0;
  border-radius: 9px; padding: 2px; gap: 2px;
}
.seg button {
  border: 0; background: transparent; color: #475569;
  font-size: 13px; line-height: 1; padding: 6px 11px; border-radius: 7px;
  cursor: pointer; white-space: nowrap; transition: all .15s;
}
.seg button:hover { color: #0f172a; }
.seg button.on { background: #fff; color: #0d9488; font-weight: 700; box-shadow: 0 1px 3px rgba(15,23,42,.14); }
.seg button.seg-more, .seg button.seg-sort { display: inline-flex; align-items: center; gap: 3px; }
.seg button.seg-more .el-icon, .seg button.seg-sort .el-icon { font-size: 12px; }
@media (max-width: 768px) {
  .scope-bar { gap: 8px; }
  .seg button { font-size: 12.5px; padding: 6px 9px; }
}

/* ============ 仪表盘待办概览（todo-bar） ============ */
.todo-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px 0; }
.todo-item {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid #e2e8f0; border-radius: 12px; padding: 13px 15px;
  background: #fff; cursor: pointer; transition: all .15s;
}
.todo-item:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(15,23,42,.08); }
.todo-item .el-icon { font-size: 22px; }
.todo-item b { font-size: 22px; line-height: 1; }
.todo-item span { font-size: 13.5px; color: #475569; }
.todo-pending .el-icon, .todo-pending b { color: #2563eb; }
.todo-order .el-icon, .todo-order b { color: #d97706; }
.todo-retired .el-icon, .todo-retired b { color: #6b7280; }
@media (max-width: 768px) {
  .todo-bar { gap: 8px; }
  .todo-item { padding: 10px 11px; gap: 7px; }
  .todo-item .el-icon { font-size: 18px; }
  .todo-item b { font-size: 18px; }
  .todo-item span { font-size: 12px; }
}

/* ============ 分币种账号余额表（ctable） ============ */
.ctable-scroll { overflow-x: auto; }
.ctable { min-width: 560px; }
.ctable-head, .ctable-row {
  display: grid; grid-template-columns: 1.1fr .6fr 1.3fr .7fr 1.1fr 1.2fr;
  align-items: center; gap: 8px;
}
.ctable-head {
  font-size: 12px; color: #64748b; font-weight: 600;
  padding: 0 12px 8px; border-bottom: 1px solid #eef2f7;
}
.ctable-row { padding: 11px 12px; border-bottom: 1px solid #f1f5f9; font-size: 13.5px; color: #1e293b; }
.ctable-row:last-child { border-bottom: 0; }
.ctable-row:hover { background: #f8fafc; }
.ct-cur { display: flex; align-items: center; gap: 6px; }
.ct-sym { color: #64748b; font-weight: 600; }
.ct-num { text-align: right; color: #475569; }
.ct-amt { text-align: right; font-weight: 600; }
.ct-rate { text-align: right; color: #64748b; font-size: 12.5px; }
.ct-cny { text-align: right; font-weight: 700; color: #0d9488; }
.ct-rc { text-align: right; color: #64748b; font-size: 12.5px; }
@media (max-width: 768px) {
  .ctable { min-width: 520px; }
  .ctable-row, .ctable-head { font-size: 12.5px; padding-left: 10px; padding-right: 10px; }
}

/* ============ 搁置隔离（retired） ============ */
.el-table .row-retired { background: #f8fafc !important; }
.el-table .row-retired td { color: #94a3b8 !important; }
.acc-card.row-retired { background: #f8fafc; }
.acc-card.row-retired .acc-login,
.acc-card.row-retired .acc-country,
.acc-card.row-retired .acc-totp,
.acc-card.row-retired .acc-rows { color: #94a3b8; }
.retired-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0;
  font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 6px;
  margin-left: 6px; vertical-align: middle;
}
.retired-banner {
  display: flex; align-items: center; gap: 6px;
  background: #f1f5f9; color: #64748b; border: 1px dashed #cbd5e1;
  border-radius: 8px; padding: 7px 10px; margin: 8px 0; font-size: 12.5px;
}
.retired-banner span { color: #94a3b8; }

/* ============ 仪表盘 8 统计卡片（可拖拽） ============ */
.stat-grid-8 { grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat-card-x {
  position: relative;
  background: var(--card-bg, #fff);
  border: 1px solid #e9edf3;
  border-radius: 12px;
  padding: 13px 14px 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  transition: box-shadow .18s, border-color .18s, transform .12s;
  user-select: none;
}
.stat-card-x.clickable { cursor: pointer; }
.stat-card-x.clickable:hover { box-shadow: 0 6px 18px rgba(15, 23, 42, .10); border-color: #d7deea; }
.stat-card-x.dragging { opacity: .55; border-style: dashed; }
.stat-card-x.dragover { border-color: #6366f1; border-style: dashed; box-shadow: 0 0 0 2px rgba(99,102,241,.18); }
.scx-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.scx-label { font-size: 12.5px; color: #6b7280; font-weight: 500; }
.scx-icon {
  font-size: 16px; width: 30px; height: 30px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
}
.scx-value { font-size: 24px; font-weight: 700; color: #111827; line-height: 1.15; word-break: break-all; font-variant-numeric: tabular-nums; }
.scx-sub { font-size: 11px; color: #94a3b8; margin-top: 5px; line-height: 1.4; }
.scx-grip {
  position: absolute; right: 8px; bottom: 6px;
  color: #cbd5e1; font-size: 12px; cursor: grab; opacity: 0; transition: opacity .15s;
}
.stat-card-x:hover .scx-grip { opacity: 1; }
.scx-grip:active { cursor: grabbing; }
.stat-drag-hint { font-size: 11.5px; color: #9ca3af; margin: -4px 0 14px; }
/* 卡片主题色：图标同色淡底圆角，整体更精致 */
.stat-card-x.blue .scx-icon { color: #3b82f6; background: rgba(59,130,246,.12); }
.stat-card-x.green .scx-icon { color: #10b981; background: rgba(16,185,129,.12); }
.stat-card-x.green .scx-value { color: #059669; }
.stat-card-x.amber .scx-icon { color: #f59e0b; background: rgba(245,158,11,.14); }
.stat-card-x.amber .scx-value { color: #d97706; }
.stat-card-x.orange .scx-icon { color: #f97316; background: rgba(249,115,22,.14); }
.stat-card-x.orange .scx-value { color: #ea580c; }
.stat-card-x.slate .scx-icon { color: #64748b; background: rgba(100,116,139,.14); }
.stat-card-x.slate .scx-value { color: #475569; }
.stat-card-x.red .scx-icon { color: #ef4444; background: rgba(239,68,68,.12); }
.stat-card-x.red .scx-value { color: #dc2626; }
@media (max-width: 1100px) {
  .stat-grid-8 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .stat-grid-8 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-card-x { padding: 11px 12px; }
  .scx-value { font-size: 19px; }
  .scx-grip { opacity: 1; }
}

/* ============ 各国账号余额表（国旗） ============ */
.ctable .ct-cur img.flag-img { width: 24px; height: 17px; flex: 0 0 auto; border-radius: 2px; }
.ctable .ct-cur b { font-weight: 600; color: #1e293b; }

/* ============ 邮件箱 ============ */
.mailbox-dialog .el-dialog__body { padding: 10px 16px 16px; }
.mx-topbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: #f8fafc; border: 1px solid #eef2f7; border-radius: 10px;
  padding: 10px 12px; margin-bottom: 12px;
}
.mx-otp { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; flex-wrap: wrap; }
.mx-otp-label { font-size: 12px; color: #64748b; font-weight: 600; }
.mx-otp-code { font-size: 26px; font-weight: 800; letter-spacing: 3px; color: #4f46e5; }
.mx-otp-hint { font-size: 12px; color: #94a3b8; }
.mx-top-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.mx-body { display: flex; gap: 12px; height: 560px; }
.mx-list-pane {
  flex: 0 0 38%; display: flex; flex-direction: column;
  border: 1px solid #e9edf3; border-radius: 10px; overflow: hidden;
}
.mx-folder-tabs { display: flex; border-bottom: 1px solid #eef2f7; }
.mx-folder-tabs button {
  flex: 1; padding: 9px 6px; font-size: 13px; color: #64748b;
  background: #fff; border: 0; cursor: pointer;
}
.mx-folder-tabs button + button { border-left: 1px solid #eef2f7; }
.mx-folder-tabs button.on { color: #4f46e5; font-weight: 600; box-shadow: inset 0 -2px 0 #4f46e5; }
.mx-badge-unread {
  display: inline-block; min-width: 16px; padding: 0 4px; margin-left: 4px;
  line-height: 16px; font-size: 11px; font-weight: 600; color: #fff;
  background: #ef4444; border-radius: 9px;
}
.mx-stats {
  display: flex; flex-wrap: wrap; gap: 4px 10px;
  padding: 7px 10px; margin: 8px 8px 0;
  background: #f8fafc; border: 1px solid #eef2f7; border-radius: 8px;
}
.mx-st { font-size: 12px; color: #64748b; }
.mx-st b { color: #1e293b; font-weight: 700; }
.mx-st .unread-n { color: #ef4444; }
.mx-st.st-reload b { color: #2563eb; }
.mx-st.st-purchase b { color: #059669; }
.mx-search { margin: 8px; width: calc(100% - 16px); }
.mx-list { flex: 1; overflow-y: auto; padding: 0 6px 6px; }
.mx-item {
  padding: 9px 9px; border-radius: 8px; cursor: pointer; margin-bottom: 4px;
  border: 1px solid transparent;
}
.mx-item:hover { background: #f8fafc; }
.mx-item.active { background: #eef2ff; border-color: #c7d2fe; }
.mx-item.unread .mx-item-subject { font-weight: 700; color: #111827; }
.mx-item-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.mx-item-from { font-size: 12.5px; color: #374151; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-item-time { font-size: 10.5px; color: #9ca3af; flex: 0 0 auto; }
.mx-item-subject { font-size: 12.5px; color: #4b5563; margin: 2px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-item-code {
  display: inline-block; background: #eef2ff; color: #4f46e5; font-weight: 700;
  border-radius: 4px; padding: 0 5px; margin-right: 4px; font-size: 11.5px;
}
.mx-item-preview {
  font-size: 11.5px; color: #9ca3af; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap;
}
.mx-detail-pane {
  flex: 1; display: flex; flex-direction: column;
  border: 1px solid #e9edf3; border-radius: 10px; overflow: hidden; background: #fff;
}
.mx-detail-head { padding: 12px 14px; border-bottom: 1px solid #eef2f7; }
.mx-detail-subject { font-size: 15px; font-weight: 700; color: #111827; margin-bottom: 8px; }
.mx-detail-meta { font-size: 12px; color: #6b7280; line-height: 1.8; }
.mx-meta-k { color: #9ca3af; }
.mx-detail-code {
  background: #f5f3ff; border: 1px solid #ddd6fe; border-radius: 8px;
  padding: 6px 10px; margin: 6px 0; color: #5b21b6; font-size: 13px;
}
.mx-detail-code b { font-size: 20px; letter-spacing: 2px; }
.mx-iframe { flex: 1; border: 0; width: 100%; background: #fff; }
.mx-text {
  flex: 1; border: 0; padding: 14px; margin: 0; white-space: pre-wrap;
  word-break: break-word; font-family: inherit; font-size: 13px; color: #374151;
  overflow: auto;
}
@media (max-width: 768px) {
  .mx-body { flex-direction: column; height: auto; }
  .mx-list-pane { flex: 0 0 auto; max-height: 320px; }
  .mx-detail-pane { min-height: 360px; }
  .mx-iframe { min-height: 280px; }
}
.provision-result {
  width: 100%; background: #f8fafc; border: 1px solid #eef2f7;
  border-radius: 8px; padding: 9px 11px; font-size: 12.5px; color: #475569; line-height: 1.7;
}
.provision-failed { color: #dc2626; margin-top: 4px; }

/* ============ 操作列（图标+文字，大、易懂） ============ */
.ops-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 5px;
}
.ops-btn {
  margin: 0; padding: 5px 8px; height: auto; min-height: 30px;
  border-radius: 8px; font-size: 12px; font-weight: 600; line-height: 1;
}
.ops-btn .el-icon { font-size: 15px; margin-right: 3px; }
.ops-btn span { line-height: 1; }
.ops-btn.is-on { box-shadow: 0 0 0 1px rgba(245,158,11,.4); }

/* 桌面操作列：一排纯图标，紧凑不换行 */
.ops-bar.ops-mini { flex-wrap: nowrap; gap: 0; }
.ops-ico {
  margin: 0; padding: 3px; height: 26px; width: 26px; border-radius: 6px;
  color: #64748b; background: transparent;
}
.ops-ico .el-icon { font-size: 17px; }
.ops-ico:hover { background: #f1f5f9; color: #0d9488; }
.ops-ico.ops-edit { color: #2563eb; }
.ops-ico.ops-edit:hover { background: #eff6ff; color: #1d4ed8; }
/* 账户资金（钱包）：绿色，对应“余额/资金”语义 */
.ops-ico.ops-money { color: #059669; }
.ops-ico.ops-money:hover { background: #ecfdf5; color: #047857; }
/* 采购计划（采字）：紫色，对应“采购”语义 */
.ops-ico.ops-plan { color: #7c3aed; }
.ops-ico.ops-plan:hover { background: #f5f3ff; color: #6d28d9; }
.ops-ico.ops-clean { color: #d97706; }
.ops-ico.ops-clean:hover { background: #fffbeb; color: #b45309; }
/* “采”字小图标（采购计划） */
.op-glyph {
  display: inline-flex; align-items: center; justify-content: center;
  width: 17px; height: 17px;
  font-size: 12px; font-weight: 700;
  border: 1.5px solid currentColor; border-radius: 5px;
  line-height: 1;
}
.ops-ico.ops-temp { color: #0891b2; }
.ops-ico.ops-temp:hover { background: #ecfeff; color: #0e7490; }
/* 邮件箱：天蓝，对应“邮件”语义 */
.ops-ico.ops-mail { color: #0ea5e9; }
.ops-ico.ops-mail:hover { background: #f0f9ff; color: #0284c7; }
.ops-ico.ops-retire { color: #94a3b8; }
.ops-ico.ops-retire:hover { background: #f1f5f9; color: #64748b; }
.ops-ico.ops-restore { color: #059669; }
.ops-ico.ops-restore:hover { background: #ecfdf5; color: #047857; }
/* 手机已绑定：绿色实心图标 + 右下对勾角标 */
.ops-ico.ops-phone-bound { color: #059669; position: relative; }
.ops-ico.ops-phone-bound:hover { background: #ecfdf5; color: #047857; }
.ops-phone-dot {
  position: absolute; right: -2px; bottom: -2px;
  width: 13px; height: 13px; border-radius: 50%;
  background: #059669; color: #fff; display: flex;
  align-items: center; justify-content: center;
  border: 1.5px solid #fff; line-height: 1;
}
.ops-phone-dot .el-icon { font-size: 9px; color: #fff; }
/* 短信接码弹窗内的接码分享链接条 */
.sms-share-row { display: flex; align-items: center; gap: 8px; margin: 2px 0 12px; }
.sms-share-label { flex: none; font-size: 13px; color: #6b7280; font-weight: 600; }
.sms-share-input { flex: 1; min-width: 0; }
.sms-share-input .el-input__inner { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
/* AI 资料按钮：紫色；已生成带对勾角标 */
.ops-ico.ops-ai { color: #7c3aed; }
.ops-ico.ops-ai:hover { background: #f5f3ff; color: #6d28d9; }
.ops-ico.ops-ai-done { color: #7c3aed; position: relative; }
.ops-ai-dot {
  position: absolute; right: -2px; bottom: -2px;
  width: 13px; height: 13px; border-radius: 50%;
  background: #7c3aed; color: #fff; display: flex;
  align-items: center; justify-content: center;
  border: 1.5px solid #fff; line-height: 1;
}
.ops-ai-dot .el-icon { font-size: 9px; color: #fff; }
.rtb-restore { margin-left: auto; }

/* 账号列内：下单标记小图标（替代操作列大按钮） */
.order-mini {
  padding: 2px; height: auto; min-height: 0; color: #93c5fd; border-radius: 6px;
}
.order-mini .el-icon { font-size: 15px; }
.order-mini:hover { color: #1d4ed8; background: #eff6ff; }
.order-mini.is-on { color: #1d4ed8; background: #dbeafe; }
.order-mini.is-on .el-icon { animation: wtpop 0.25s ease; }

/* 货币单位后置（浅色小字，弱化符号、突出数字） */
.cur-u { color: #94a3b8; font-style: normal; font-weight: 600; font-size: .86em; margin-left: 1px; }

/* 谷歌验证未绑定：可点的绑定按钮（虚线，低调，hover 变绿） */
.totp-bind {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 8px; border-radius: 8px; cursor: pointer;
  border: 1px dashed #cbd5e1; background: #f8fafc; color: #64748b;
  font-size: 12px; line-height: 1.4; transition: all .15s; white-space: nowrap;
}
.totp-bind .el-icon { font-size: 13px; }
.totp-bind:hover { border-color: #34d399; color: #059669; background: #ecfdf5; }
.totp-bind:active { transform: scale(.97); }
.totp-bind-box .tbb-account { font-size: 13px; color: #334155; margin-bottom: 8px; word-break: break-all; }
.totp-bind-box .tbb-tip { font-size: 12px; color: #64748b; line-height: 1.6; margin: 0 0 10px; }
.totp-bind-box .tbb-tip code { background: #f1f5f9; padding: 1px 5px; border-radius: 4px; color: #0d9488; }

/* 充值弹窗：账号信息摘要 */
.rch-summary {
  margin-top: 12px; border: 1px solid #eef0f3; border-radius: 10px;
  background: #f8fafc; padding: 10px 12px;
}
.rch-s-head { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.rch-s-mail { font-size: 13px; color: #1e293b; word-break: break-all; flex: 1; }
.rch-s-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 12px; }
.rch-s-item { display: flex; flex-direction: column; gap: 2px; }
.rch-s-item.rch-s-wide { grid-column: 1 / -1; }
.rch-s-item span { font-size: 11px; color: #94a3b8; }
.rch-s-item b { font-size: 13px; color: #334155; font-weight: 600; word-break: break-all; }

/* 一键添加弹窗 */
.qa-tip { font-size: 12px; color: #64748b; line-height: 1.6; margin: 0 0 12px; }
.qa-count-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 13px; color: #334155; }
.qa-count-bar .el-input-number { width: 120px; }
.qa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.qa-country {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 6px; border-radius: 12px; border: 1px solid #e6e9ef;
  background: #fff; cursor: pointer; transition: all .15s; position: relative;
}
.qa-country:hover { border-color: #2f6fed; background: #f5f8ff; transform: translateY(-1px); }
.qa-country:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.qa-flag { font-size: 26px; }
.qa-flag img { width: 28px; height: 19px; border-radius: 3px; object-fit: cover; }
.qa-name { font-size: 13px; font-weight: 600; color: #334155; }
.qa-add { font-size: 18px; color: #2f6fed; position: absolute; top: 6px; right: 6px; }
.qa-done { margin-top: 14px; border-top: 1px dashed #e6e9ef; padding-top: 10px; }
.qa-done-title { font-size: 12px; color: #64748b; margin-bottom: 6px; }
.qa-done-item { display: flex; align-items: center; gap: 6px; padding: 4px 0; font-size: 12.5px; }
.qa-done-item .ok { color: #16a34a; font-size: 15px; }
.qa-mail { color: #1e293b; word-break: break-all; }
.qa-country-tag { margin-left: auto; color: #94a3b8; font-size: 11px; }
.qa-fail {
  margin-top: 12px; display: flex; align-items: center; gap: 6px;
  background: #fef2f2; border: 1px solid #fecaca; color: #dc2626;
  border-radius: 8px; padding: 8px 10px; font-size: 12px; line-height: 1.5;
}

/* 一键添加新账号：纵向国家列表 + 每国数量 */
.qa-rows {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 14px;
}
.qa-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border: 1px solid #eef2f7; border-radius: 10px; background: #fafbfc;
}
.qa-row-country { display: inline-flex; align-items: center; gap: 8px; flex: 1; min-width: 0; font-size: 13px; font-weight: 600; color: #334155; }
.qa-row-country .qa-flag { width: 22px; height: 15px; flex: none; }
.qa-row .el-input-number { width: 118px; }
.qa-row-unit { font-size: 12px; color: #64748b; flex: none; }
.qa-actions { display: flex; justify-content: flex-end; padding-top: 2px; }

/* ============ 账号分组弹窗 ============ */
.group-dialog .el-dialog__body { padding: 10px 16px 16px; }
.group-summary {
  border-radius: 10px; padding: 10px 12px; margin-bottom: 12px;
  border: 1px solid #eef2f7; background: #f8fafc;
}
.group-summary.banned { background: #fef2f2; border-color: #fecaca; }
.group-summary.limited { background: #fffbeb; border-color: #fde68a; }
.group-summary-total { font-size: 14px; color: #374151; margin-bottom: 8px; }
.group-summary-total b { font-size: 17px; color: #059669; }
.group-summary.banned .group-summary-total b { color: #dc2626; font-size: 17px; }
.group-summary.limited .group-summary-total b { color: #d97706; font-size: 17px; }
.group-summary-hint { font-size: 12px; color: #64748b; font-weight: 400; }
.group-summary-list { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.group-summary-item {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; color: #4b5563;
}
.group-summary-item .flag-img { width: 18px; height: 13px; }
.group-list { max-height: 480px; overflow-y: auto; }
.group-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 9px; border: 1px solid #eef2f7; border-radius: 10px; margin-bottom: 7px;
}
.group-row-main { flex: 1; min-width: 0; }
.group-row-login { font-size: 13px; font-weight: 600; color: #1f2937; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.group-row-note {
  font-size: 11.5px; color: #6b7280; margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.group-row-bal {
  flex: 0 0 auto; text-align: right; font-size: 12.5px; font-weight: 700; color: #374151;
}
.group-row-bal em { display: block; font-style: normal; font-size: 11px; font-weight: 600; color: #0d9488; }
.group-row-actions { flex: 0 0 auto; display: flex; gap: 5px; }
@media (max-width: 768px) {
  .group-row { flex-wrap: wrap; }
  .group-row-actions { width: 100%; }
  .group-row-actions .el-button { flex: 1; }
}

/* ============ 备注小旗 ============ */
.flag-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; cursor: pointer; flex: 0 0 auto;
  border-radius: 6px;
}
.flag-mark.disabled { cursor: default; }
.flag-mark svg { width: 18px; height: 18px; display: block; }
.flag-mark.set.red { color: #ef4444; }
.flag-mark.set.orange { color: #f97316; }
.flag-mark.set.yellow { color: #eab308; }
.flag-mark.set.green { color: #22c55e; }
.flag-mark.set.blue { color: #3b82f6; }
.flag-mark.set.purple { color: #a855f7; }
.flag-picker { display: flex; flex-wrap: wrap; gap: 6px; }
.flag-picker-item {
  flex: 1 1 28%; text-align: center; font-size: 12px; font-weight: 600;
  padding: 6px 4px; border-radius: 7px; cursor: pointer;
  color: #fff;
}
.flag-picker-item.red { background: #ef4444; }
.flag-picker-item.orange { background: #f97316; }
.flag-picker-item.yellow { background: #eab308; }
.flag-picker-item.green { background: #22c55e; }
.flag-picker-item.blue { background: #3b82f6; }
.flag-picker-item.purple { background: #a855f7; }
.flag-picker-item.none { background: #f1f5f9; color: #64748b; flex-basis: 100%; }
.flag-filter { display: inline-flex; align-items: center; }
.flag-filter::before {
  content: ''; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px;
}
.flag-filter.red::before { background: #ef4444; }
.flag-filter.orange::before { background: #f97316; }
.flag-filter.yellow::before { background: #eab308; }
.flag-filter.green::before { background: #22c55e; }
.flag-filter.blue::before { background: #3b82f6; }
.flag-filter.purple::before { background: #a855f7; }
.flag-filter.none::before { background: #cbd5e1; }

/* ============ 邮箱域名权重配置 ============ */
.domain-weights { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.domain-weight-item { display: inline-flex; align-items: center; gap: 8px; }
.domain-weight-name { font-size: 13px; font-weight: 600; color: #374151; }

/* ============ 卡密库存 / 金币流水 / 待确认 / 对账 ============ */
.menu-badge {
  margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: #ef4444; color: #fff;
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.cards-toolbar .tab-dot {
  display: inline-block; min-width: 16px; height: 16px; padding: 0 4px; margin-left: 5px;
  border-radius: 8px; background: #ef4444; color: #fff; font-size: 11px; line-height: 16px; font-style: normal;
}

.monitor-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 9px;
  padding: 9px 12px; margin-bottom: 14px; font-size: 12.5px; color: #075985;
}
.monitor-bar .el-icon { font-size: 15px; }
.monitor-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: #fff; border: 1px solid #e0f2fe; border-radius: 20px;
  padding: 2px 10px; font-size: 12px; color: #0f172a;
}
.monitor-chip em { font-style: normal; font-size: 11px; border-radius: 6px; padding: 0 5px; }
.monitor-chip .m-pend { background: #fef3c7; color: #b45309; }
.monitor-chip .m-order { background: #fce7f3; color: #be185d; }
.monitor-empty { color: #64748b; font-size: 12px; }

.pend-section { margin-bottom: 18px; }
.pend-sec-title {
  display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700;
  color: #1f2937; margin-bottom: 10px;
}
.pend-card {
  border: 1px solid var(--border); border-radius: 12px; padding: 13px 14px;
  margin-bottom: 12px; background: #fff; box-shadow: 0 2px 10px rgba(17,24,39,.04);
}
.pend-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.pend-mail { font-size: 13.5px; }
.pend-meta { color: var(--text-2); font-size: 12px; }

.reload-amount {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
  border: 1px solid #a7f3d0; border-radius: 10px; padding: 11px 14px; margin-bottom: 10px;
}
.reload-big { display: flex; align-items: baseline; gap: 7px; }
.rl-label { font-size: 12px; color: #047857; margin-right: 4px; }
.rl-num { font-size: 24px; font-weight: 800; color: #047857; }
.rl-sym { font-size: 14px; color: #047857; font-weight: 600; }
.rl-cnt { font-size: 12px; color: #059669; background: #d1fae5; border-radius: 6px; padding: 1px 7px; }
.reload-side { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; }
.rl-row { display: flex; gap: 8px; }
.rl-row span { color: var(--text-2); }
.rl-row b { font-weight: 600; }
.pend-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.card-confirm-list { border: 1px solid #f1f5f9; border-radius: 9px; overflow: hidden; margin-bottom: 10px; }
.card-confirm-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 9px 11px; font-size: 12.5px; border-bottom: 1px solid #f1f5f9; background: #fff;
}
.card-confirm-row:last-child { border-bottom: 0; }
.card-confirm-row.incomplete { background: #fffbeb; }
.cc-brand { font-weight: 600; min-width: 130px; }
.cc-face, .cc-cost { color: #374151; }
.cc-pin { font-family: ui-monospace, Menlo, Consolas, monospace; color: #1d4ed8; background: #eff6ff; border-radius: 5px; padding: 1px 7px; font-size: 12px; }
.cc-ops { margin-left: auto; display: inline-flex; gap: 2px; }

.stock-toolbar { margin-bottom: 12px; }
.stock-summary { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-bottom: 16px; }
.ss-item { border: 1px solid var(--border); border-radius: 11px; padding: 11px 13px; background: #fff; }
.ss-top { display: flex; align-items: center; gap: 7px; font-size: 13.5px; }
.ss-qty { margin-left: auto; background: var(--brand-soft); color: var(--brand-strong); font-weight: 700; border-radius: 7px; padding: 0 8px; font-size: 13px; }
.ss-face { font-size: 18px; font-weight: 800; color: #0f172a; margin: 6px 0 3px; }
.ss-totals { font-size: 12px; color: var(--text-2); }
.pin-cell { font-family: ui-monospace, Menlo, Consolas, monospace; color: #1d4ed8; }

.card-m-list { display: flex; flex-direction: column; gap: 10px; }
.card-m-item { border: 1px solid var(--border); border-radius: 11px; padding: 11px 12px; background: #fff; }
.cm-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.cm-line { font-size: 12.5px; color: #374151; margin: 2px 0; }
.cm-line.pin { font-family: ui-monospace, Menlo, Consolas, monospace; color: #1d4ed8; background: #eff6ff; border-radius: 6px; padding: 3px 8px; }
.cm-ops { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

.txn-list { display: flex; flex-direction: column; gap: 8px; }
.txn-item {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--border); border-left-width: 4px; border-radius: 10px;
  padding: 10px 13px; background: #fff;
}
.txn-item.in { border-left-color: #10b981; }
.txn-item.out { border-left-color: #ef4444; }
.txn-icon {
  width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  flex: none; color: #fff;
}
.txn-item.in .txn-icon { background: #10b981; }
.txn-item.out .txn-icon { background: #ef4444; }
.txn-main { flex: 1; min-width: 0; }
.txn-line1 { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.txn-line2 { font-size: 12px; color: var(--text-2); margin-top: 3px; word-break: break-all; }
.txn-amt { text-align: right; font-weight: 800; font-size: 15px; white-space: nowrap; }
.txn-amt.in { color: #059669; }
.txn-amt.out { color: #dc2626; }
.txn-bal { font-size: 11px; font-weight: 500; color: var(--text-2); margin-top: 2px; }

.reconcile-tip {
  display: flex; align-items: flex-start; gap: 7px; background: #fffbeb; border: 1px solid #fde68a;
  border-radius: 9px; padding: 9px 12px; font-size: 12.5px; color: #92400e; margin-bottom: 13px;
}
.diff-ok { color: #059669; font-weight: 700; }
.diff-warn { color: #d97706; font-weight: 700; }
.rec-m-list { display: flex; flex-direction: column; gap: 10px; }
.rec-m-item { border: 1px solid var(--border); border-radius: 11px; padding: 11px 12px; background: #fff; }
.rec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 12px; margin-top: 7px; font-size: 12.5px; }
.rec-grid > div { display: flex; justify-content: space-between; }
.rec-grid span { color: var(--text-2); }
.rec-grid .rec-diff { grid-column: 1 / -1; border-top: 1px dashed #e5e7eb; padding-top: 5px; }

/* 充值弹窗·邮件到账 */
.mail-reload-box {
  background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
  border: 1px solid #86efac; border-radius: 11px; padding: 12px 14px; margin-bottom: 14px; text-align: center;
}
.mail-reload-box.is-loading { background: #f8fafc; border-color: #e2e8f0; color: var(--text-2); font-size: 13px; }
.mrl-head { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; color: #047857; }
.mrl-amount { margin: 4px 0; }
.mrl-amount b { font-size: 30px; font-weight: 800; color: #047857; }
.mrl-amount span { font-size: 15px; color: #047857; font-weight: 700; margin-left: 4px; }
.mrl-tip { font-size: 12px; color: #059669; }

/* 充值确认弹窗（卡密页） */
.rc-dlg .rc-acct { font-size: 14px; margin-bottom: 12px; }
.rc-big { text-align: center; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 11px; padding: 14px; margin-bottom: 14px; }
.rc-big span { font-size: 13px; color: var(--text-2); display: block; }
.rc-big b { font-size: 30px; color: #047857; font-weight: 800; }
.rc-big em { font-size: 15px; color: #047857; font-style: normal; font-weight: 700; }
.rc-big small { display: block; color: #059669; font-size: 12px; margin-top: 3px; }
.rc-tip { font-size: 12.5px; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 8px 10px; }

/* 邮件箱：激活链接 */
.mx-topbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.mx-top-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; flex: 1; }
.mx-act-link {
  display: inline-flex; align-items: center; gap: 8px;
  background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 9px; padding: 6px 10px;
}
.mx-act-link .mx-otp-label { color: #1d4ed8; }
.mx-act-url { color: #1d4ed8; font-size: 13px; font-weight: 600; text-decoration: none; }
.mx-item-link { color: #fff; background: #3b82f6; border-radius: 5px; padding: 0 6px; font-size: 11px; margin-right: 5px; }
.mx-detail-link { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mx-detail-link a { color: #1d4ed8; }

@media (max-width: 640px) {
  .reload-amount { flex-direction: column; align-items: flex-start; gap: 8px; }
  .cc-brand { min-width: 0; flex: 1 1 100%; }
  .cc-ops { margin-left: 0; }
  .txn-item { flex-wrap: wrap; }
  .txn-amt { margin-left: auto; }
  .rc-big b, .mrl-amount b { font-size: 26px; }
}


/* ===== 第二轮：金额可修正 / 账号维度资金 / 卡密页提示 ===== */
.mail-reload-hint { display:flex; align-items:flex-start; gap:6px; background:#eff6ff; border:1px solid #bfdbfe; color:#1e40af; border-radius:8px; padding:8px 10px; font-size:12.5px; line-height:1.55; margin-bottom:10px; }
.mail-reload-hint .el-icon { margin-top:2px; flex:none; }
.mail-reload-hint.is-loading { background:#f8fafc; border-color:#e2e8f0; color:var(--text-2); }
.cards-hint { color: var(--text-2); font-size: 12px; margin-left:8px; }
.rec-tabs { margin-top:4px; }
.rec-card { border:1px solid #eef2f7; border-radius:10px; padding:10px 12px; margin-bottom:10px; background:#fff; }
.rec-card .cc-top { display:flex; justify-content:space-between; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:6px; }
.rec-card .cc-brand { display:flex; align-items:center; gap:6px; flex-wrap:wrap; min-width:0; font-size:13.5px; }
.rec-card .cc-brand b { color:#111827; }
.rec-card .cc-face { color:#059669; font-weight:700; }
.rec-card .cc-cost { font-size:12.5px; color:#4b5563; }
.rec-card .cc-cost span { color:#9ca3af; margin-left:6px; }
.rec-card .cc-pin { display:flex; align-items:center; gap:6px; margin:4px 0; flex-wrap:wrap; }
.rec-card .cc-pin-val { font-family:ui-monospace,Menlo,Consolas,monospace; color:#1d4ed8; background:#eff6ff; border-radius:5px; padding:2px 8px; font-size:12.5px; letter-spacing:.5px; }
.rec-card .cc-meta { display:flex; gap:12px; flex-wrap:wrap; font-size:12px; color:#9ca3af; align-items:center; }
.rec-card .cc-actions { margin-left:auto; display:flex; gap:2px; }
.rec-reconcile { padding:4px 2px; }
.rc-rowline { display:flex; justify-content:space-between; align-items:center; padding:9px 4px; border-bottom:1px dashed #eef2f7; font-size:13.5px; }
.rc-rowline span { color:#6b7280; }
.rc-rowline b { color:#111827; }
.rc-rowline b.in { color:#059669; }
.rc-rowline b.out { color:#dc2626; }
.rc-rowline.diff-warn b { color:#d97706; }
.rc-note { margin-top:10px; font-size:12px; color:#9ca3af; line-height:1.6; background:#f8fafc; border-radius:8px; padding:8px 10px; }
@media (max-width:640px){
  .rec-card .cc-top { flex-direction:column; align-items:flex-start; }
  .rec-card .cc-actions { margin-left:0; width:100%; }
  .cards-hint { display:none; }
}

/* ===================== 第三轮：交易时间线 / 卡密仓库 / 邮件分类 ===================== */

/* 账户资金顶部：充值/消费配色 */
.rec-sum-item .val.in { color: #059669; }
.rec-sum-item .val.out { color: #dc2626; }

/* 交易时间线 */
.tl-list { max-height: 430px; overflow-y: auto; padding: 2px 4px 2px 2px; }
.tl-item { display: flex; gap: 10px; padding: 10px 6px; border-bottom: 1px dashed #eef2f7; }
.tl-item:last-child { border-bottom: none; }
.tl-ic {
  flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.tl-item.recharge .tl-ic { background: #ecfdf5; color: #059669; }
.tl-item.purchase .tl-ic { background: #fef2f2; color: #dc2626; }
.tl-body { flex: 1 1 auto; min-width: 0; }
.tl-t { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tl-tag { display: inline-flex; align-items: center; }
.tl-amt { font-weight: 800; font-size: 15px; white-space: nowrap; }
.tl-amt.in { color: #059669; }
.tl-amt.out { color: #dc2626; }
.tl-sub { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin-top: 4px; font-size: 12px; color: var(--text-2); }
.tl-time { color: #94a3b8; }
.tl-after { margin-left: auto; color: #475569; font-weight: 600; }
.tl-pin {
  display: inline-flex; align-items: center; gap: 4px; width: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px; color: #334155; background: #f1f5f9; border: 1px dashed #cbd5e1;
  border-radius: 6px; padding: 2px 8px; cursor: pointer; user-select: all;
}
.tl-pin:hover { background: #eef2ff; border-color: #818cf8; color: #3730a3; }

/* 卡密仓库概览 */
.stock-overview {
  display: flex; gap: 16px; align-items: stretch; flex-wrap: wrap;
  border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px;
  background: linear-gradient(135deg, #ffffff, #f6fbf9); margin-bottom: 14px;
}
.ov-main { flex: 0 0 auto; display: flex; flex-direction: column; justify-content: center; padding-right: 18px; border-right: 1px solid var(--border); }
.ov-num { font-size: 34px; font-weight: 800; color: var(--brand-strong); line-height: 1; }
.ov-label { font-size: 12px; color: var(--text-2); margin-top: 6px; }
.ov-curs { flex: 1 1 auto; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.ov-cur { border-left: 3px solid var(--brand); padding-left: 10px; }
.ov-cur-h { font-size: 13.5px; font-weight: 700; color: #0f172a; }
.ov-cur-b { font-size: 12.5px; color: var(--text-2); margin-top: 2px; }
.ov-cur-empty { font-size: 12.5px; color: #9ca3af; }

/* 品牌 → 面值 分组 */
.stock-groups { margin-bottom: 16px; display: flex; flex-direction: column; gap: 10px; }
/* 品牌卡片网格（卡密仓库，参考游戏点数页） */
.card-brand-grid { margin-bottom: 6px; }
.card-brand-card { padding: 15px 11px 13px; }
.card-brand-card .gp-game-price { color: #16a34a; }
/* 按国家分区（卡密仓库：避免不同国家同款游戏混在一起） */
.card-country-sec { margin-bottom: 18px; }
.card-country-sec:last-child { margin-bottom: 0; }
.card-country-head { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 0 2px; }
.card-country-head .flag-img { width: 24px; height: 17px; flex: none; border-radius: 3px; }
.card-country-name { font-size: 14px; font-weight: 700; color: #334155; }
.card-country-count { font-size: 12px; color: #94a3b8; }
/* 品牌库存详情弹窗 */
.brand-dlg .el-dialog__header { padding: 14px 20px 10px; border-bottom: 1px solid #eef2f7; }
.brand-dlg .el-dialog__body { max-height: 62vh; overflow-y: auto; padding: 14px 20px 16px; }
.brand-dlg .el-dialog__footer { padding: 10px 20px 16px; }
.bd-header { display: flex; align-items: center; gap: 12px; }
.bd-ico { width: 44px; height: 44px; border-radius: 10px; margin-bottom: 0; flex: none; }
.bd-ico .gp-game-emoji { font-size: 22px; }
.bd-title { font-size: 16px; font-weight: 700; color: #0f172a; }
.bd-sub { font-size: 12px; color: #94a3b8; margin-top: 2px; }
.bd-face { border: 1px solid #eef2f7; border-radius: 10px; overflow: hidden; background: #fff; margin-bottom: 10px; }
.bd-face:last-child { margin-bottom: 0; }
.bd-face-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 13px; background: #f8fafc; }
.bd-face-info { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 1; min-width: 0; }
.bd-face-value { font-size: 14px; font-weight: 700; color: #2563eb; }
.bd-face-points { font-size: 12px; color: #7c3aed; font-weight: 600; }
.bd-face-qty { font-size: 12.5px; color: #fff; background: #6366f1; border-radius: 10px; padding: 1px 9px; }
.bd-face-cost { font-size: 12px; color: #64748b; }
.bd-face-flags { display: inline-flex; gap: 3px; }
.bd-face-ops { display: inline-flex; gap: 6px; flex: none; }
.bd-cards { border-top: 1px dashed #eef2f7; padding: 4px 13px 8px; }
.bd-card { display: flex; align-items: center; gap: 8px; font-size: 12.5px; padding: 5px 0; border-bottom: 1px solid #f1f5f9; }
.bd-card:last-child { border-bottom: none; }
.bd-pin { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #0f172a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-acc { font-size: 11.5px; color: #94a3b8; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-op { color: #dc2626; }
.bd-time { font-size: 11px; color: #b6bcc8; white-space: nowrap; }
.brand-block { border: 1px solid var(--border); border-radius: 11px; background: #fff; overflow: hidden; }
.brand-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 14px; background: #f8fafc; cursor: pointer; user-select: none;
}
.brand-head:hover { background: #f1f5f9; }
.brand-caret { font-size: 13px; color: #94a3b8; }
.brand-name { font-size: 14px; font-weight: 700; color: #0f172a; }
.brand-qty { font-size: 12.5px; color: var(--brand-strong); font-weight: 700; }
.brand-total { margin-left: auto; font-size: 12.5px; color: var(--text-2); }
/* 面值分组（品牌下每个面值一块） */
.face-blocks { padding: 8px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.face-block { border: 1px solid #eef2f7; border-radius: 9px; overflow: hidden; background: #fcfdff; }
.face-head {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  padding: 7px 11px; cursor: pointer; user-select: none;
}
.face-head:hover { background: #f6f9ff; }
.face-value { font-weight: 700; color: #0f172a; font-size: 13.5px; }
.face-qty { color: #1d4ed8; font-weight: 700; font-size: 13px; }
.face-cost { color: #64748b; font-size: 12px; }
.face-flags { display: inline-flex; gap: 2px; }
.face-caret { font-size: 12px; color: #94a3b8; margin-left: auto; }
.face-cards { padding: 4px 11px 10px; border-top: 1px dashed #eef2f7; display: flex; flex-direction: column; gap: 3px; }
.face-card-line { display: flex; align-items: center; gap: 7px; font-size: 12.5px; }
.fc-pin { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; color: #0f172a; letter-spacing: .3px; }
.fc-acc { color: #94a3b8; font-size: 11px; margin-left: auto; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 出库 / 退回 */
.face-checkout { color: #b45309; font-size: 12px; font-weight: 600; padding: 0 4px; }
.face-checkout:hover { color: #92400e; }
.face-checkout .el-icon { font-size: 13px; margin-right: 2px; }
.fc-out { color: #d97706; padding: 1px; }
.fc-out:hover { color: #b45309; }
.fc-return { color: #94a3b8; padding: 1px; }
.fc-return:hover { color: #1d4ed8; }
.fc-time { color: #94a3b8; font-size: 10.5px; }
.copy-face-btn {
  align-self: flex-start; margin-top: 5px; display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid #bfdbfe; background: #f0f7ff; color: #1d4ed8; border-radius: 6px;
  padding: 3px 10px; font-size: 12px; font-weight: 600; cursor: pointer;
}
.copy-face-btn:hover { background: #dbeafe; }
.copy-face-btn .el-icon { font-size: 13px; }

/* 异常待处理提示 */
.issues-tip {
  font-size: 12.5px; color: #92400e; background: #fffbeb; border: 1px solid #fde68a;
  border-radius: 9px; padding: 9px 12px; margin: 10px 0 4px; line-height: 1.6;
}

/* 邮件分类徽章 */
.mx-cat-tag { margin-right: 6px; flex: 0 0 auto; }
.mx-detail-subject { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

@media (max-width: 640px) {
  .stock-overview { flex-direction: column; gap: 12px; }
  .ov-main { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 12px; padding-right: 0; }
  .ov-num { font-size: 28px; }
  .brand-total { margin-left: 0; width: 100%; }
  .tl-after { margin-left: 0; width: 100%; }
}

/* ============ 小旗：包裹 + 文字标签 + 新色点面板 ============ */
.flag-wrap { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; vertical-align: middle; }
.flag-wrap.disabled { cursor: default; }
.flag-tag {
  font-size: 11px; line-height: 1; padding: 3px 7px; border-radius: 6px;
  font-weight: 600; white-space: nowrap; border: 1px solid transparent;
}
.flag-tag.red { color: #dc2626; background: #fef2f2; border-color: #fecaca; }
.flag-tag.orange { color: #ea580c; background: #fff7ed; border-color: #fed7aa; }
.flag-tag.yellow { color: #a16207; background: #fefce8; border-color: #fde68a; }
.flag-tag.green { color: #059669; background: #ecfdf5; border-color: #a7f3d0; }
.flag-tag.blue { color: #2563eb; background: #eff6ff; border-color: #bfdbfe; }
.flag-tag.purple { color: #9333ea; background: #faf5ff; border-color: #e9d5ff; }
.flag-picker { display: block; }
.fp-colors { display: flex; gap: 8px; }
.fp-dot {
  width: 22px; height: 22px; border-radius: 50%; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid transparent; box-shadow: 0 0 0 1px rgba(0,0,0,.06);
}
.fp-dot.red { background: #ef4444; } .fp-dot.orange { background: #f97316; }
.fp-dot.yellow { background: #eab308; } .fp-dot.green { background: #22c55e; }
.fp-dot.blue { background: #3b82f6; } .fp-dot.purple { background: #a855f7; }
.fp-dot.on { border-color: #111827; transform: scale(1.12); }
.fp-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }

/* ============ 分组弹窗：一键添加 + 信息卡片 ============ */
.group-topbar { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.group-topbar-tip { font-size: 12px; color: #94a3b8; }
.qa-inline {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 10px; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 10px; margin-bottom: 6px;
}
.qa-country {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid #e2e8f0; background: #fff; border-radius: 8px;
  padding: 6px 10px; font-size: 13px; cursor: pointer; transition: all .15s;
}
.qa-country:hover:not(:disabled) { border-color: #6366f1; color: #4f46e5; box-shadow: 0 1px 4px rgba(99,102,241,.18); }
.qa-country:disabled { opacity: .55; cursor: not-allowed; }
.qa-flag { width: 20px; height: 14px; }
.qa-add { font-size: 14px; color: #6366f1; }
.qa-inline-done { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; }
.qa-done-item {
  font-size: 12px; color: #059669; background: #ecfdf5; border: 1px solid #a7f3d0;
  border-radius: 6px; padding: 3px 8px; display: inline-flex; align-items: center; gap: 4px;
}
.qa-done-item em { color: #6b7280; font-style: normal; }
.group-card {
  border: 1px solid #e9edf3; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; background: #fff;
}
.group-card:hover { border-color: #d7deea; box-shadow: 0 2px 8px rgba(15,23,42,.05); }
.gc-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gc-login { font-weight: 600; font-size: 13.5px; color: #111827; }
.gc-bal { margin-left: auto; font-size: 13.5px; font-weight: 700; color: #111827; font-variant-numeric: tabular-nums; }
.gc-bal em { font-style: normal; color: #94a3b8; font-weight: 500; font-size: 11.5px; margin-left: 5px; }
.gc-actions { display: inline-flex; gap: 6px; }
.gc-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 12px; color: #64748b; }
.gc-meta .gm label { color: #94a3b8; margin-right: 4px; }
.gc-meta .gm b { color: #334155; font-weight: 600; }
.gc-meta .gm-recharge { color: #047857; }
.gc-meta .gm-badges { display: inline-flex; gap: 8px; }
.gc-meta .gm-badges .el-icon { color: #10b981; font-size: 15px; }
.gc-note { margin-top: 6px; font-size: 12px; color: #b45309; background: #fffbeb; border-radius: 6px; padding: 3px 8px; }

/* ============ 下单流程 ============ */
.order-flow { display: inline-flex; align-items: center; gap: 2px; margin-top: 3px; }
.order-flow .wt-cancel { color: #cbd5e1; font-size: 13px; padding: 2px; }
.order-flow .wt-cancel:hover { color: #ef4444; }
.work-tag-badge .wt-finish {
  font-style: normal; font-size: 10.5px; margin-left: 5px; background: rgba(255,255,255,.65);
  border-radius: 4px; padding: 0 5px; font-weight: 700;
}
/* （采购中 rc-ordering 紫色样式已并入上方 rc-card 区块） */
.rc-order-btn {
  margin-top: 7px; border: none; border-radius: 6px; padding: 5px 14px;
  font-size: 12.5px; font-weight: 600; cursor: pointer; width: 100%;
}
.rc-order-btn.start { background: #dbeafe; color: #1d4ed8; }
.rc-order-btn.start:hover { background: #bfdbfe; }
.rc-order-btn.finish { background: #22c55e; color: #fff; }
.rc-order-btn.finish:hover { background: #16a34a; }
.work-tag-banner { justify-content: space-between; align-items: center; }
.work-tag-banner .wtb-left { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.work-tag-banner .wtb-finish { font-style: normal; font-size: 11px; text-decoration: underline; opacity: .9; }
.work-tag-banner .wtb-x { color: inherit; padding: 0; }

/* ============ 账户资金：对账条 + 采购分组 ============ */
.rec-balance-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  border-radius: 8px; padding: 8px 12px; font-size: 12.5px; margin-top: 4px;
}
.rec-balance-bar b { font-variant-numeric: tabular-nums; }
.rec-balance-bar.ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.rec-balance-bar.warn { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.rbb-sep { color: #cbd5e1; }
.rbb-ok, .rbb-warn { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.rec-proc-bar {
  display: flex; align-items: center; justify-content: space-between;
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px;
  padding: 8px 12px; margin-bottom: 10px; font-size: 13px; color: #334155;
}
.rec-proc-bar b { font-variant-numeric: tabular-nums; color: #111827; }
.rec-proc-bar .rpb-total { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.rec-proc-bar .rpb-cny { color: #6d28d9; font-size: 12.5px; }
.rec-proc-bar .rpb-cny b { color: #6d28d9; }
.rec-brand { margin-bottom: 16px; }
.rec-brand-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 2px 2px 8px; border-bottom: 2px solid #e0e7ff; margin-bottom: 8px; }
.rec-brand-head .rg-brand { font-size: 15px; font-weight: 700; color: #1e3a8a; }
.rec-brand-total { font-size: 12px; color: #64748b; }
.rec-group { border: 1px solid #e9edf3; border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.rg-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #f8fafc; padding: 8px 12px; }
.rg-brand { font-size: 13.5px; color: #111827; }
.rg-face { font-size: 12.5px; color: #2563eb; font-weight: 600; }
.rg-count { font-size: 12px; color: #fff; background: #6366f1; border-radius: 10px; padding: 1px 9px; }
.rg-cost { font-size: 12px; color: #64748b; font-variant-numeric: tabular-nums; }
.rg-cost .rg-cny { color: #6d28d9; }
.rg-copy { margin-left: auto; }
/* 备注列：小旗 + 备注文字结合 */
.note-cell.note-with-flag { display: inline-flex; align-items: center; gap: 5px; }
.note-cell.note-with-flag .note-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 移动端备注行：小旗 + 备注 */
.acc-meta-row.note-row { display: flex; align-items: center; gap: 6px; }
.acc-meta-row.note-row .note-val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-pins { padding: 6px 12px; }
.rg-pin-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px dashed #f1f5f9; flex-wrap: wrap; }
.rg-pin-row:last-child { border-bottom: none; }
.rg-pin {
  font-family: ui-monospace, Menlo, Consolas, monospace; color: #1d4ed8; background: #eff6ff;
  border-radius: 5px; padding: 2px 9px; font-size: 12.5px; letter-spacing: .4px; cursor: pointer;
}
.rg-pin:hover { background: #dbeafe; }
.rg-pin-time { font-size: 11px; color: #94a3b8; }
.rg-pin-ops { margin-left: auto; display: inline-flex; gap: 2px; }

/* ============ 卡密仓库概览统计 + 明文遮罩 ============ */
.ov-stat { display: flex; gap: 22px; align-items: center; }
.ov-stat-item { display: flex; flex-direction: column; gap: 3px; }
.ov-stat-item b { font-size: 20px; color: #111827; font-variant-numeric: tabular-nums; }
.ov-stat-item span { font-size: 11.5px; color: #94a3b8; }
.ov-stat-item.ov-cny b { color: #dc2626; }
.ov-cur-b em { font-style: normal; color: #94a3b8; font-size: 11px; }
.pin-cell.masked, .cm-line.pin.masked, .cc-pin.masked, .rg-pin.masked {
  color: #94a3b8; background: #f1f5f9; -webkit-text-security: disc;
}

/* ============ 待人工处理：监控折叠 ============ */
.monitor-fold { border: 1px solid #e2e8f0; border-radius: 8px; margin-bottom: 10px; }
.monitor-fold summary {
  cursor: pointer; padding: 8px 12px; font-size: 12.5px; color: #64748b; user-select: none;
}
.monitor-fold[open] summary { border-bottom: 1px solid #eef2f7; }
.monitor-fold .monitor-bar { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 12px; }
.issues-tip { display: flex; align-items: flex-start; gap: 6px; }

@media (max-width: 640px) {
  .gc-bal { margin-left: 0; flex-basis: 100%; }
  .ov-stat { gap: 14px; }
  .rg-copy { margin-left: 0; }
  .rg-pin-ops { margin-left: 0; }
}

/* ============ 供应商钱包与独立汇率：紧凑摘要 + 按需展开 ============ */
.supplier-wallet-panel .panel-head h3 { margin-bottom: 4px; }
.supplier-add-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 10px 12px; margin-bottom: 12px; background: #f8fafc; border: 1px solid #eef2f7; border-radius: 10px; }
.supplier-add-bar .el-input { width: 240px; }
.supplier-error { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; margin-bottom: 12px; color: #b91c1c; background: #fef2f7; border: 1px solid #fecaca; border-radius: 8px; font-size: 13px; }
.supplier-list { display: flex; flex-direction: column; gap: 10px; }
/* 供应商卡片网格（参考游戏点数页：一个供应商一张卡） */
.supplier-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; align-items: stretch; }
.sup-card { display: flex; flex-direction: column; gap: 8px; padding: 14px; background: var(--card-bg); border: 1.5px solid #e8edf5; border-radius: 14px; transition: border-color .16s, box-shadow .16s, transform .16s; }
.sup-card:hover { border-color: #c7d2fe; box-shadow: 0 5px 18px rgba(79,109,245,.10); transform: translateY(-2px); }
.sup-card.is-inactive { opacity: .55; }
.sup-card-head { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.sup-ico { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; font-weight: 700; flex: none; }
.sup-ico.lg { width: 56px; height: 56px; font-size: 26px; border-radius: 14px; }
.sup-ico.has-avatar { background: #f1f5f9; }
.sup-avatar-emoji { font-size: 24px; line-height: 1; }
.sup-ico.lg .sup-avatar-emoji { font-size: 30px; }
.sup-avatar-picker { display: flex; flex-wrap: wrap; gap: 6px; }
.sup-avatar-opt { width: 40px; height: 40px; border: 1.5px solid #e5e7eb; border-radius: 10px; background: #fff; font-size: 22px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: border-color .15s, background .15s; }
.sup-avatar-opt:hover { border-color: #a5b4fc; background: #f5f7ff; }
.sup-avatar-opt.active { border-color: #4f6df5; background: #eef2ff; }
.sup-avatar-opt.clear { font-size: 12px; color: #64748b; }
.sup-avatar-opt:disabled { cursor: not-allowed; opacity: .5; }
.sup-name { font-size: 15px; font-weight: 700; color: #1e293b; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sup-off { font-size: 11px; color: #94a3b8; background: #f1f5f9; border-radius: 8px; padding: 1px 7px; flex: none; }
.sup-cbal { display: flex; align-items: baseline; gap: 8px; }
.sup-cbal .scb-lab { font-size: 11.5px; color: #64748b; }
.sup-cbal b { font-size: 16px; font-weight: 700; color: #0f766e; font-variant-numeric: tabular-nums; }
.sup-cbal.neg b { color: #dc2626; }
.sup-group { font-size: 12px; color: #6366f1; background: #eef2ff; border-radius: 8px; padding: 3px 9px; align-self: flex-start; }
.sup-card-ops { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.sup-config-top { display: flex; gap: 14px; margin-bottom: 6px; }
.sup-config-fields { flex: 1; min-width: 0; }
.sup-config-fields .el-form-item { margin-bottom: 14px; }
.supplier-card { min-width: 0; padding: 12px 14px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; display: flex; flex-direction: column; gap: 10px; transition: border-color .18s ease, box-shadow .18s ease; }
.supplier-card:hover { border-color: #c9d4e2; box-shadow: 0 3px 12px rgba(15, 23, 42, .06); }
.sup-card-main { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; }
.sup-card-balance { display: flex; align-items: baseline; gap: 8px; margin-left: auto; white-space: nowrap; }
.sup-card-balance .scb-lab { color: var(--text-2); font-size: 11.5px; }
.sup-card-balance strong { color: #0f766e; font-size: 17px; font-variant-numeric: tabular-nums; }
.sup-card-balance strong small { font-size: 11px; font-weight: 500; }
.sup-card-balance strong.is-negative { color: #dc2626; }
.sup-card-balance .scb-owed { color: #dc2626; font-size: 11.5px; font-style: normal; font-weight: 600; }
.sup-link { cursor: pointer; }
.sup-link .sup-chip:hover { text-decoration: underline; }
.supplier-card.is-inactive { background: #fafafa; }
.supplier-summary { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.supplier-identity { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; min-width: 0; }
.supplier-color-dot { width: 8px; height: 26px; flex: none; border-radius: 4px; }
.supplier-name-input { width: 170px; max-width: 100%; }
.supplier-wallet-stats { display: flex; align-items: center; gap: 24px; white-space: nowrap; }
.supplier-wallet-stat > span { display: block; color: var(--text-2); font-size: 11px; }
.supplier-wallet-stat strong { display: block; margin-top: 2px; color: #0f766e; font-size: 17px; line-height: 1.25; font-variant-numeric: tabular-nums; }
.supplier-wallet-stat strong small { font-size: 11px; font-weight: 500; }
.supplier-wallet-stat strong.is-negative, .supplier-wallet-stat strong.is-owed { color: #dc2626; }
.supplier-wallet-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.supplier-wallet-actions .el-button { margin-left: 0; }
.supplier-details { margin-top: 0; padding: 10px 0 0; border-top: 1px dashed #e2e8f0; border-left: 0; padding-left: 0; }
.supplier-rate-title { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 10px; font-size: 13px; }
.supplier-rate-title .el-button { margin-left: auto; }
.supplier-rate-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.supplier-rate-item { min-width: 0; }
.supplier-rate-label { display: flex; align-items: center; gap: 5px; margin-bottom: 6px; color: #475569; font-size: 12px; }
.supplier-rate-label b { color: #1e293b; }
.supplier-rate-label .flag-img { width: 22px; height: 16px; flex: none; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.supplier-rate-item .el-input__inner { text-align: right; }
.supplier-wallet-dialog .wallet-brief { padding: 12px; margin-bottom: 16px; color: #475569; background: #f8fafc; border-radius: 9px; font-size: 13px; line-height: 1.7; }
.supplier-wallet-dialog .wallet-brief strong { color: #0f172a; font-size: 17px; font-variant-numeric: tabular-nums; }
.supplier-wallet-dialog .wallet-after { margin: -6px 0 16px; color: #475569; font-size: 13px; }
.supplier-wallet-dialog .wallet-after strong { margin-left: 6px; color: #0f766e; font-size: 17px; font-variant-numeric: tabular-nums; }
.supplier-wallet-dialog .wallet-after strong.is-negative { color: #dc2626; }
.supplier-wallet-dialog .wallet-quick { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: -12px 0 16px; }
.supplier-wallet-dialog .wallet-quick .el-button { margin-left: 0; font-variant-numeric: tabular-nums; }
.supplier-wallet-dialog .wallet-error, .supplier-txn-dialog .supplier-error { margin-bottom: 12px; }
.supplier-txn-dialog .amount-in { color: #059669; font-weight: 700; }
.supplier-txn-dialog .amount-out, .supplier-txn-dialog .balance-negative { color: #dc2626; font-weight: 700; }
.supplier-txn-footer { display: flex; align-items: center; gap: 10px; }
.supplier-txn-footer .subtle { margin-right: auto; }
/* ============ 系统设置：模块紧挨、紧凑排布 ============ */
.settings-wrap { width: 100%; }
.settings-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; align-items: stretch; }
.settings-grid > .panel { padding: 13px 14px; }
.settings-grid > .panel .panel-head { margin-bottom: 10px; }
.settings-cell { margin: 0; min-width: 0; }
.settings-cell.col-4 { grid-column: span 4; }
.settings-cell.col-6 { grid-column: span 6; }
.settings-cell.col-8 { grid-column: span 8; }
.settings-cell.span-2 { grid-column: 1 / -1; }
.settings-cell .panel-head { flex-wrap: wrap; gap: 6px; }
/* 设置页左列：短信接码 + AI 大模型 上下紧排（右列为邮箱平台；AI 拉伸填满左列高度不留空） */
.settings-left-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.settings-left-col > .panel { padding: 13px 14px; }
.settings-left-col > .panel + .panel { margin-top: 0; }
.settings-left-col > .panel .panel-head { margin-bottom: 10px; }
.settings-left-col > .panel:last-child { flex: 1; }
/* 信任设备：设备明细 + IP 位置双行展示 */
.dev-line-main { font-weight: 600; color: #1e293b; font-size: 12.5px; line-height: 1.35; }
.dev-line-sub { color: #94a3b8; font-size: 11.5px; margin-top: 2px; line-height: 1.3; }
/* 分区标题：账号注册渠道 / 资料生成 */
.settings-section-title {
  margin: 2px 0 0; padding: 0 2px;
  color: #334155; font-size: 14px; font-weight: 700; letter-spacing: .02em;
  display: flex; align-items: center; gap: 10px;
}
.settings-section-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.settings-compact-form .el-form-item { margin-bottom: 14px; }
.settings-compact-form .el-form-item:last-child { margin-bottom: 0; }
.settings-subtitle { margin-bottom: 12px; color: #334155; font-size: 13px; font-weight: 700; }
.settings-note { padding: 9px 11px; margin: 0 0 14px; color: #64748b; background: #f8fafc; border-radius: 8px; font-size: 12px; line-height: 1.65; }
.settings-field-tip { margin-top: 6px; color: #94a3b8; font-size: 11.5px; line-height: 1.5; }
.email-config-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.email-config-section { min-width: 0; }
.email-config-section:first-child { padding: 0 0 14px; border-bottom: 1px solid #eef2f7; }
.email-config-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.email-config-actions .el-button { margin-left: 0; }
.email-provision-result { margin-top: 14px; }
.security-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 24px; }
.security-controls { padding-right: 24px; border-right: 1px solid #eef2f7; }
.security-devices { min-width: 0; }
/* 冷却账号规则 */
.retire-rule-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  padding: 10px 12px; margin-bottom: 8px;
  background: #f8fafc; border: 1px solid #eef2f7; border-radius: 8px;
}
.retire-rule-tag { min-width: 200px; font-weight: 600; color: #1e293b; font-size: 12.5px; }
.retire-rule-tag-def { color: var(--brand-strong); }
.retire-unit { color: #64748b; font-size: 12px; }
.retire-add-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

@media (max-width: 1100px) {
  .sup-card-balance { margin-left: 0; }
  .supplier-wallet-actions { justify-content: flex-start; }
  .supplier-rate-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  .settings-cell.col-4, .settings-cell.col-6, .settings-cell.col-8, .settings-cell.span-2 { grid-column: 1 / -1; }
  .email-config-grid { gap: 18px; }
  .email-config-section:first-child { padding: 0 0 14px; }
  .security-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 18px; }
  .security-controls { padding-right: 18px; }
}
@media (max-width: 640px) {
  .settings-grid { gap: 8px; }
  .supplier-add-bar .el-input { width: 100%; }
  .supplier-name-input { width: 160px; flex: 1; }
  .supplier-wallet-stats { justify-content: flex-start; gap: 28px; }
  .supplier-wallet-actions { justify-content: flex-start; }
  .supplier-rate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .email-config-grid, .security-layout { grid-template-columns: 1fr; }
  .email-config-section:first-child, .security-controls { padding: 0 0 18px; border-right: 0; border-bottom: 1px solid #eef2f7; }
  .security-devices { overflow-x: auto; }
}

/* 汇率设置：国旗 + 简写货币名 + 窄输入框 */
.rate-rows { display: flex; flex-direction: column; gap: 11px; padding: 2px 2px 4px; }
.rate-row { display: flex; align-items: center; gap: 10px; }
.rate-row .flag-img.sm { width: 25px; height: 18px; border-radius: 3px; object-fit: cover; flex: none;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08); }
.rate-name { width: 44px; flex: none; color: #374151; font-size: 13.5px; font-weight: 600; }
.rate-input { width: 118px; flex: none; }
.rate-input .el-input__inner { text-align: right; }

/* ============ AI 注册资料弹窗 ============ */
.pf-head {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; margin-bottom: 14px;
  background: #f8fafc; border: 1px solid #eef2f7; border-radius: 10px;
}
.pf-cc { font-size: 15px; font-weight: 700; color: #1f2937; }
.pf-time { margin-left: auto; font-size: 12px; color: #94a3b8; }
.pf-empty {
  text-align: center; padding: 34px 20px 26px;
  display: flex; flex-direction: column; align-items: center;
}
.pf-empty-ico { font-size: 46px; color: #7c3aed; margin-bottom: 16px; }
.pf-empty-txt {
  color: #64748b; font-size: 13.5px; line-height: 1.8;
  max-width: 420px; margin-bottom: 22px;
}
.pf-gen-btn { min-width: 180px; }
.pf-body { max-height: 62vh; overflow-y: auto; padding-right: 4px; }
.pf-grid {
  display: flex; flex-direction: column; gap: 6px;
}
.pf-field {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid #eef2f7; border-radius: 8px; padding: 6px 11px;
  background: #fcfcfd; transition: border-color .15s, box-shadow .15s;
}
.pf-field:hover { border-color: #ddd6fe; box-shadow: 0 2px 10px rgba(124,58,237,.08); }
.pf-field-label {
  flex: none; min-width: 118px; font-size: 12.5px; color: #6b7280; white-space: nowrap;
}
.pf-field-value {
  flex: 1; display: flex; align-items: center; gap: 6px;
  font-size: 14px; color: #1f2937; cursor: pointer;
  word-break: break-all; line-height: 1.45;
}
.pf-field-value span { flex: 1; }
.pf-copy { font-size: 13px; color: #c4b5fd; opacity: 0; transition: opacity .15s; flex: none; }
.pf-field:hover .pf-copy { opacity: 1; }
.pf-footer { display: flex; justify-content: flex-end; gap: 8px; }
@media (max-width: 640px) {
  .pf-field-label { min-width: 96px; }
}

/* ============ 游戏点数：独立主导航页（电商式商品卡 + 弹窗编辑） ============ */
.gp-page { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.gp-hero { padding: 16px 18px 14px; }
.gp-hero-top { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.gp-hero-title h3 { margin: 0 0 3px; font-size: 16.5px; color: #111827; }
.gp-hero-title .subtle { font-size: 12.5px; }
.gp-hero-ops { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.gp-hero-ops .el-button { margin-left: 0; }

/* 国家选择：国旗图片胶囊（角标 = 该国有规格的游戏数） */
.gp-country-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.gp-cty {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px; border: 1px solid #e5e9f2; border-radius: 999px;
  background: #fbfcfe; color: #334155; font-size: 13px; cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.gp-cty:hover { border-color: #c7d2fe; background: #f5f7ff; }
.gp-cty.active { background: #4f6df5; border-color: #4f6df5; color: #fff; font-weight: 600; }
.gp-cty.active .gp-cty-badge { background: rgba(255,255,255,.25); color: #fff; }
.gp-cty-flag { flex: none; }
.gp-cty-name { white-space: nowrap; }
.gp-cty-badge {
  min-width: 17px; padding: 0 5px; border-radius: 999px;
  background: #e8edfb; color: #4356b8; font-size: 10.5px; font-weight: 700;
  text-align: center; line-height: 17px;
}
.gp-unify-tip {
  display: flex; align-items: center; gap: 7px; margin-top: 12px; padding: 9px 12px;
  background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 9px;
  color: #075985; font-size: 12.5px; line-height: 1.6;
}
.gp-unify-tip .el-icon { flex: none; color: #0ea5e9; }

/* 当前国家的游戏列表条 */
.gp-games-bar { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; padding: 0 2px; }
.gp-games-title { font-size: 14px; font-weight: 700; color: #1e293b; }
.gp-games-bar .subtle { font-size: 12px; }

/* 商品卡网格（竖版电商卡：Logo / 名称 / 规格数 / 价格→点数） */
.gp-game-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 12px; align-items: stretch;
}
.gp-game-card {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  width: 100%; padding: 16px 12px 13px; text-align: center; cursor: pointer;
  background: #fff; border: 1.5px solid #e8edf5; border-radius: 14px;
  transition: border-color .16s, box-shadow .16s, background .16s, transform .16s;
}
.gp-game-card:hover { border-color: #c7d2fe; box-shadow: 0 5px 18px rgba(79,109,245,.10); transform: translateY(-2px); }
.gp-game-card:active { transform: scale(.98); }
.gp-game-card.active { border-color: #4f6df5; background: #f5f7ff; box-shadow: 0 5px 18px rgba(79,109,245,.14); }
.gp-game-card.is-generic { border-style: dashed; background: #fbfcfe; }
.gp-game-card.is-unnamed { border-color: #fdba74; border-style: dashed; background: #fffbeb; }
.gp-game-ico {
  width: 56px; height: 56px; border-radius: 13px; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  background: #f1f5fd; margin-bottom: 6px;
}
.gp-game-ico img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gp-game-ico.hasimg { background: #fff; box-shadow: 0 2px 8px rgba(15,23,42,.08); }
.gp-game-emoji { font-size: 28px; line-height: 1; }
.gp-game-card.active .gp-game-ico { background: #e6ebfd; }
.gp-game-name { font-size: 13.5px; font-weight: 700; color: #1e293b; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-game-meta { font-size: 11.5px; color: #94a3b8; min-height: 15px; }
.gp-game-price { font-size: 12.5px; font-weight: 700; color: #e0592a; margin-top: 3px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-game-price.unset { color: #b6bcc8; font-weight: 500; }
/* 商品卡网格进出场 / 补位动画（transition-group name="gp"） */
.gp-enter-active { transition: opacity .28s ease, transform .28s ease; }
.gp-enter-from { opacity: 0; transform: translateY(10px) scale(.96); }
.gp-move { transition: transform .28s ease; }
.gp-leave-active { display: none; }
/* 规格行进出场动画（transition-group name="gpr"） */
.gpr-enter-active { transition: opacity .2s ease, transform .2s ease; }
.gpr-enter-from { opacity: 0; transform: translateX(-8px); }
.gpr-leave-active { transition: opacity .15s ease; }
.gpr-leave-to { opacity: 0; transform: translateX(8px); }
.gpr-move { transition: transform .2s ease; }

/* 编辑弹窗：Logo 上传（商品首图）+ 规格配置 */
.gp-edit-dlg .el-dialog__body { padding-top: 8px; }
.gp-edit-body { display: flex; flex-direction: column; gap: 12px; }
.gp-edit-top { display: flex; gap: 14px; align-items: center; }
.gp-logo-box {
  position: relative; flex: none; width: 84px; height: 84px; border-radius: 15px; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  background: #f1f5fd; border: 1px solid #e8edf5;
}
.gp-logo-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gp-logo-emoji { font-size: 40px; line-height: 1; }
.gp-logo-box.uploadable { cursor: pointer; }
.gp-logo-mask {
  position: absolute; inset: 0; display: inline-flex; flex-direction: column; gap: 1px;
  align-items: center; justify-content: center;
  background: rgba(15,23,42,.55); color: #fff; font-size: 10.5px; font-weight: 600;
  opacity: 0; transition: opacity .18s ease; pointer-events: none;
}
.gp-logo-box.uploadable:hover .gp-logo-mask, .gp-logo-mask.busy { opacity: 1; }
.gp-logo-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.gp-edit-fields { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.gp-edit-fields .gp-name-in { width: 100%; }
.gp-edit-fields .gp-label-in { width: 100%; }
.gp-generic-name { font-size: 13.5px; font-weight: 700; color: #334155; }
.gp-generic-name .subtle { font-weight: 400; margin-left: 8px; font-size: 11.5px; }
.gp-edit-sec { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }
.gp-edit-sec-title { font-size: 13px; font-weight: 700; color: #1e293b; }
.gp-edit-sec-title .subtle { font-weight: 400; margin-left: 8px; font-size: 11.5px; }

.gp-specs { display: flex; flex-direction: column; gap: 7px; margin-top: 0; }
.gp-spec {
  display: flex; align-items: center; flex-wrap: wrap; gap: 7px;
  padding: 7px 9px; background: #f8fafc; border: 1px solid #eef2f7; border-radius: 9px;
  transition: border-color .15s;
}
.gp-spec:hover { border-color: #dbe4f5; }
.gp-spec.is-unset { border-style: dashed; border-color: #fcd34d; background: #fffdf5; }
.gp-cur { flex: none; width: 18px; color: #64748b; font-size: 13px; font-weight: 700; text-align: center; }
.gp-in .el-input__inner { text-align: right; font-variant-numeric: tabular-nums; }
.gp-in-face { width: 96px; }
.gp-in-pts { width: 126px; }
.gp-cost-tag { color: #94a3b8; font-size: 11px; font-weight: 700; flex: none; margin-left: 5px; }
.gp-in-cost { width: 100px; }
.gp-arrow { color: #94a3b8; font-size: 12px; flex: none; }
.gp-unit-tag { color: #64748b; font-size: 11.5px; font-weight: 700; flex: none; }
.gp-del {
  flex: none; width: 19px; height: 19px; line-height: 17px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: #cbd5e1;
  font-size: 14px; cursor: pointer; transition: color .15s, background .15s;
}
.gp-del:hover { color: #ef4444; background: #fee2e2; }
.gp-spec-empty {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding: 10px 4px; font-size: 12.5px;
}
.gp-editor-foot { margin-top: 2px; }
.gp-editor-foot .subtle { font-size: 11.5px; }

/* 空状态 */
.gp-blank { text-align: center; padding: 46px 20px; }
.gp-blank-ico { font-size: 44px; margin-bottom: 12px; }
.gp-blank-txt { color: #64748b; font-size: 13.5px; line-height: 1.9; margin-bottom: 18px; }
.gp-blank-ops { display: flex; justify-content: center; gap: 10px; }

@media (max-width: 980px) {
  .gp-game-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
@media (max-width: 640px) {
  .gp-hero { padding: 13px 13px 12px; }
  .gp-hero-ops { width: 100%; }
  .gp-hero-ops .el-button { flex: 1; margin-left: 0; }
  .gp-game-grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 9px; }
  .gp-game-card { padding: 13px 9px 11px; border-radius: 12px; }
  .gp-game-ico { width: 48px; height: 48px; border-radius: 11px; }
  .gp-game-emoji { font-size: 24px; }
  .gp-edit-top { gap: 11px; }
  .gp-logo-box { width: 72px; height: 72px; }
  .gp-logo-emoji { font-size: 32px; }
  .gp-spec { gap: 6px; }
  .gp-cur { width: 14px; font-size: 12px; }
  .gp-in-face { width: 86px; }
  .gp-in-pts { width: 102px; }
  .gp-in-cost { width: 88px; }
  .gp-cost-tag { margin-left: 0; }
  .gp-cty { padding: 6px 10px; font-size: 12.5px; }
}

/* 邮箱平台连接失败提示行（含重试按钮） */
.email-conn-err { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.email-conn-err .el-button { margin-left: 0; }

/* 充值弹窗：汇率同步状态提示 */
.rate-sync-tip { margin-top: 4px; font-size: 11.5px; line-height: 1.5; }
.rate-sync-tip .el-icon { color: #16a34a; vertical-align: -2px; }
.rate-sync-tip > span:first-child { color: #16a34a; }

/* 完成采购选项弹窗（转待充值 / 继续充值中） */
.finish-dlg .finish-account-line {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px;
  padding: 8px 12px; margin-bottom: 12px;
  background: #f8fafc; border-radius: 9px; font-size: 13px;
}
.finish-dlg .finish-account-line b { color: #0f172a; }
.finish-options { display: flex; flex-direction: column; gap: 10px; }
.finish-option {
  display: flex; align-items: flex-start; gap: 12px; width: 100%;
  padding: 12px 14px; text-align: left; cursor: pointer;
  background: #fff; border: 1.5px solid #e2e8f0; border-radius: 11px;
  transition: border-color .16s ease, box-shadow .16s ease, transform .12s ease;
}
.finish-option:hover { border-color: #94a3b8; box-shadow: 0 2px 10px rgba(15, 23, 42, .07); transform: translateY(-1px); }
.finish-option:active { transform: scale(.99); }
.finish-option:disabled { cursor: not-allowed; opacity: .55; }
.finish-option:disabled:hover { border-color: #e2e8f0; box-shadow: none; transform: none; }
.finish-option .fo-icon {
  flex: none; width: 34px; height: 34px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center; font-size: 17px;
}
.finish-option .fo-icon.fo-done { background: #ecfdf5; color: #059669; }
.finish-option .fo-icon.fo-stay { background: #eff6ff; color: #2563eb; }
.finish-option .fo-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.finish-option .fo-main b { font-size: 13.5px; color: #0f172a; }
.finish-option .fo-main span { font-size: 12px; color: var(--text-2); line-height: 1.55; }
.finish-option .fo-main .fo-warn { color: #dc2626; }
.finish-both-note { margin-top: 12px; text-align: center; font-size: 11.5px; }

/* ============ 供应商钱包与汇率（独立页面） ============ */
.sup-page { width: 100%; }
.sup-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
  margin-bottom: 14px;
}
.sup-stat {
  background: var(--card-bg, #fff); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 16px; display: flex; flex-direction: column; gap: 3px; min-width: 0;
}
.sup-stat .ss-lab { color: var(--text-2); font-size: 12px; }
.sup-stat .ss-val { color: #0f766e; font-size: 20px; line-height: 1.3; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sup-stat .ss-val.in { color: #059669; }
.sup-stat .ss-val.out { color: #dc2626; }
.sup-stat .ss-val.neg { color: #dc2626; }
.sup-stat .ss-sub { color: var(--text-2); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sup-tabs .el-tabs__header { margin-bottom: 14px; }
.sup-filter { margin-bottom: 12px; flex-wrap: wrap; row-gap: 8px; }
.sup-filter .el-button { margin-left: 0; }
.sup-filter .el-date-editor.el-input__wrapper,
.sup-filter .el-date-editor { --el-date-editor-width: 150px; }
@media (max-width: 1100px) { .sup-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sup-stats { grid-template-columns: 1fr; } }

/* 钱包账单 / 对账通用金额配色 */
.amount-in { color: #059669; font-weight: 700; }
.amount-out, .balance-negative { color: #dc2626; font-weight: 700; }

/* ============ 2026-10-30 迭代：充值联动 / 账目校验 / 记录分区 / 最优下单规划 ============ */
/* 充值面板实时联动行 */
.recharge-balance .rb-row.rb-live { color: var(--text-2); }
.recharge-balance .rb-row.rb-live b { font-variant-numeric: tabular-nums; }
.recharge-balance .rb-row.rb-live .rb-in { color: #059669; font-weight: 700; }
.recharge-balance .rb-row .rb-out { color: #dc2626; font-weight: 700; font-variant-numeric: tabular-nums; }
.recharge-temp-entry { margin-top: 12px; }
.recharge-temp-entry .el-button { width: 100%; }
.recharge-balance .rb-row.rb-after b { color: #2563eb; font-weight: 700; font-variant-numeric: tabular-nums; }
.rb-check { font-size: 12px; margin-top: 8px; padding: 6px 10px; border-radius: 8px; line-height: 1.4; }
.rb-check.ok { color: #059669; background: #ecfdf5; }
.rb-check.bad { color: #dc2626; background: #fef2f2; }

/* 账户资金：账目校验标签 */
.rec-sum-item.rec-check-item .val { font-size: 14px; }

/* 采购记录分区筛选 */
.rec-filter-bar { display: flex; justify-content: flex-end; margin-bottom: 10px; }

/* 最优下单规划弹窗：余额渐变卡 + 购物清单式结果 */
.plan-body { display: flex; flex-direction: column; gap: 13px; }
.plan-balance {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px; border-radius: 12px;
  background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
  color: rgba(255,255,255,.85); font-size: 13px;
  box-shadow: 0 3px 12px rgba(20,184,166,.22);
}
.plan-balance b { font-size: 20px; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.plan-totp {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: 10px;
  background: #f5f3ff; border: 1px solid #ddd6fe;
}
.plan-totp-label { font-size: 12px; color: #6d28d9; font-weight: 600; white-space: nowrap; }
.plan-form { display: flex; gap: 8px; }
.plan-form .el-button { flex: none; }
.plan-empty {
  padding: 16px; text-align: center; color: var(--text-2); font-size: 13px;
  background: var(--bg, #f7f8fa); border: 1px dashed var(--border); border-radius: 12px;
}
.plan-items { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; }
.plan-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 15px;
  font-size: 13px; border-bottom: 1px solid var(--border);
  transition: background .15s ease;
}
.plan-item:hover { background: #f4fbfa; }
.plan-item:last-child { border-bottom: 0; }
.plan-item .pi-face { flex: 1; color: var(--text); font-weight: 600; }
.plan-item .pi-brand {
  padding: 1px 8px; border-radius: 999px; background: #eef2ff; color: #4338ca;
  font-size: 11px; font-weight: 600; white-space: nowrap;
}
.plan-item .pi-qty {
  padding: 2px 10px; border-radius: 999px; background: #ecfdf5;
  color: #059669; font-weight: 700; font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}
.plan-item .pi-sub { color: var(--text-2); font-variant-numeric: tabular-nums; min-width: 66px; text-align: right; }
.plan-item .pi-cost { color: #d97706; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.plan-item .pi-exclude { color: #dc2626; flex: none; }
.plan-excluded { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding: 8px 10px; background: #fef2f2; border: 1px solid #fecaca; border-radius: 10px; }
.plan-total { background: #f8fafc; border: 1px solid var(--border); border-radius: 12px; padding: 11px 15px; }
.plan-total .pt-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 3px 0; font-size: 13px; color: var(--text-2);
}
.plan-total .pt-row b { color: var(--text); font-variant-numeric: tabular-nums; font-size: 13.5px; }
.plan-total .pt-row:nth-child(1) b { color: #0f766e; }
.plan-total .pt-row:nth-child(3) b { color: #16a34a; }
.plan-total .pt-row.pt-topup { border-top: 1px dashed #e2e8f0; margin-top: 3px; padding-top: 6px; }
.plan-total .pt-row.pt-topup span { color: #d97706; font-weight: 600; }
.plan-total .pt-row.pt-topup b { color: #d97706; font-weight: 700; }
@media (max-width: 640px) {
  .plan-form { flex-direction: column; }
  .plan-form .el-button { width: 100%; }
}

/* 短信接码弹窗内：手动标记已绑定 */
.sms-buy-panel .sms-bind-btn { margin-top: 10px; }

/* 手机卡片 AI 资料按钮 */
.m-ai-btn { color: #7c3aed; border-color: #ddd6fe; background: #faf5ff; }
.m-ai-btn:hover { color: #6d28d9; border-color: #c4b5fd; background: #f5f3ff; }

/* AI 资料分组标题 */
.pf-group { margin-bottom: 14px; }
.pf-group:last-child { margin-bottom: 0; }
.pf-group-title {
  font-size: 13px; font-weight: 700; color: #6d28d9;
  margin-bottom: 8px; padding-left: 9px;
  border-left: 3px solid #a78bfa; line-height: 1.3;
}

/* 游戏到账点数标签（卡密库存 / 采购记录） */
.face-points, .rg-points {
  display: inline-block; margin-left: 6px; padding: 1px 8px;
  border-radius: 999px; background: #fef3c7; color: #92400e;
  font-size: 12px; font-weight: 700; line-height: 18px; white-space: nowrap;
}


/* ===================== 应用内多标签页（VS Code 风格，iter16） ===================== */
.app-tabs {
  position: sticky; top: -18px; z-index: 6;
  display: flex; align-items: flex-end; gap: 6px;
  overflow-x: auto; scrollbar-width: none;
  margin: -4px -4px 12px; padding: 6px 4px 0;
  background: var(--page-bg);
}
.app-tabs::-webkit-scrollbar { display: none; }
.app-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 10px 8px 12px; border-radius: 10px 10px 0 0;
  background: #eef1f7; color: #64748b; cursor: pointer;
  font-size: 12.5px; line-height: 1; white-space: nowrap; user-select: none;
  border: 1px solid #e3e8f0; border-bottom: none;
  transition: background .18s, color .18s, box-shadow .18s;
  max-width: 200px; position: relative;
}
.app-tab:hover { background: #e6ebf4; color: #334155; }
.app-tab.on {
  background: var(--card-bg, #fff); color: #1e293b; font-weight: 600;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .07);
}
.app-tab.on::after {
  content: ''; position: absolute; left: 11px; right: 11px; bottom: 0; height: 2px;
  background: #2563eb; border-radius: 2px 2px 0 0;
}
.app-tab-ico { flex-shrink: 0; }
.app-tab-name { overflow: hidden; text-overflow: ellipsis; }
.app-tab-x {
  display: inline-flex; align-items: center; justify-content: center;
  width: 17px; height: 17px; border-radius: 50%;
  color: #9aa6b8; transition: background .15s, color .15s; flex-shrink: 0;
}
.app-tab-x:hover { background: #dbe2ee; color: #334155; }
.tab-pane { display: flex; flex-direction: column; flex: 1; min-width: 0; }

@media (max-width: 768px) {
  .app-tabs { top: -12px; margin: -2px -2px 10px; padding: 5px 2px 0; }
  .app-tab { padding: 6px 8px 7px 10px; font-size: 12px; max-width: 150px; gap: 4px; }
  .app-tab.on::after { left: 8px; right: 8px; }
}

/* ===== 卡密筛重（重复卡密面板） ===== */
.dup-group { border: 1px solid #fee2e2; border-radius: 10px; background: #fff; overflow: hidden; margin-bottom: 10px; }
.dup-group-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 12px; background: #fef2f2;
}
.dup-count { color: #dc2626; font-weight: 700; font-size: 13px; }
.dup-mask { color: #9f1239; font-size: 12.5px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.dup-card { display: flex; align-items: center; gap: 9px; padding: 6px 12px; border-top: 1px solid #fef2f2; font-size: 12.5px; }
.dup-card:first-of-type { border-top: none; }
.dup-brand { font-weight: 600; color: #0f172a; white-space: nowrap; }
.dup-face { color: #1d4ed8; font-weight: 700; white-space: nowrap; }
.dup-pin { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #0f172a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dup-acc { color: #94a3b8; font-size: 11.5px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== 产品成本测算（上架 / 网购形态） ===== */
.cost-panel { display: flex; flex-direction: column; gap: 14px; }
.cost-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 0; }
.cost-field-label { font-size: 13px; color: var(--text-2, #475569); font-weight: 600; }
/* 商品卡片网格 */
.cost-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.cost-card {
  border: 1px solid var(--border, #e6e8ef); border-radius: 12px; background: #fff;
  padding: 10px 12px; cursor: pointer;
  display: flex; flex-direction: row; align-items: center; gap: 12px;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.cost-card:hover { transform: translateY(-2px); border-color: #cbd5e1; box-shadow: 0 8px 22px rgba(15, 23, 42, .08); }
.cost-card.open { border-color: #86d3b3; box-shadow: 0 0 0 3px rgba(5, 150, 105, .08); }
.cost-card-icon {
  width: 56px; height: 56px; border-radius: 12px; overflow: hidden; flex: none;
  background: #f1f5fd; border: 1px solid #e8edf5;
  display: flex; align-items: center; justify-content: center; color: #cbd5e1;
}
.cost-card-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cost-card-icon.placeholder .el-icon { font-size: 22px; }
.cost-card-info { flex: 1; min-width: 0; }
.cost-card-name { font-size: 14px; font-weight: 700; color: #0f172a; line-height: 1.35; word-break: break-word; }
.cost-card-sub { font-size: 12px; color: #94a3b8; margin-top: 2px; }
.cost-card-ops { display: flex; align-items: center; gap: 2px; flex: none; }
.cost-card-expand { display: inline-flex; align-items: center; color: #94a3b8; font-size: 14px; margin-left: 2px; }
/* 展开后的规格详情 */
.cost-detail {
  border: 1px solid var(--border, #e6e8ef); border-radius: 12px; background: #fff; overflow: hidden;
  margin-top: 2px; animation: fadeUp .2s ease both;
}
.cost-detail-title { padding: 12px 15px; font-size: 14.5px; font-weight: 700; color: #0f172a; border-bottom: 1px solid #eef2f7; }
.cost-detail-title-sub { font-size: 12px; color: #94a3b8; font-weight: 400; }
.cost-detail-denom { border-bottom: 1px solid #f1f5f9; }
.cost-detail-denom:last-child { border-bottom: none; }
.cost-detail-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 9px 15px; background: #fbfcfe;
}
.cost-detail-face { font-size: 14px; color: #334155; font-weight: 600; }
.cost-detail-face b { color: #0f172a; font-weight: 800; font-size: 15px; }
.cost-denom-best {
  color: #16a34a; font-weight: 700; font-size: 13px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 5px;
  background: #f0fdf4; border: 1px solid #bbf7d0; padding: 3px 10px; border-radius: 999px;
}
.cost-denom-best b { font-size: 14px; }
.cost-detail-none { font-size: 12px; color: #94a3b8; }
.cost-country-cards { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 10px 10px; }
.cost-country-card {
  flex: 1 1 130px; min-width: 120px; max-width: 190px;
  border: 1px solid #eef2f7; border-radius: 10px; background: #fff; padding: 8px 10px;
  display: flex; flex-direction: column; gap: 5px;
}
.cost-country-card.best { border-color: #4ade80; background: #f0fdf4; box-shadow: 0 0 0 2px rgba(22, 163, 74, .08); }
.cc-top { display: flex; align-items: center; gap: 6px; }
.cc-flag-name { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: #0f172a; }
.cc-tag { margin-left: auto; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; white-space: nowrap; background: #dcfce7; color: #16a34a; }
.cc-tag.diff { background: #fee2e2; color: #dc2626; }
.cc-tag.none { background: #f1f5f9; color: #94a3b8; }
.cc-cny { font-size: 16px; font-weight: 800; color: #0f172a; line-height: 1.1; }
.cost-country-card.best .cc-cny { color: #16a34a; }
.cc-price { font-size: 11.5px; color: #94a3b8; }
.cost-detail-rows { padding: 4px 8px 8px; }
.cost-detail-row {
  display: grid; grid-template-columns: 1.6fr .8fr .9fr .8fr;
  align-items: center; gap: 8px; padding: 7px 8px; font-size: 12.5px;
  border-bottom: 1px solid #f7f9fc;
}
.cost-detail-row:last-child { border-bottom: none; }
.cost-detail-row.head { font-size: 12px; color: #94a3b8; font-weight: 600; border-bottom: 1px solid #f1f5f9; }
.cost-detail-row.best { background: #f0fdf4; border-radius: 8px; }
.rank-badge { color: #16a34a; font-weight: 700; font-size: 11px; margin-left: 6px; white-space: nowrap; }
.c-country { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: #0f172a; }
.c-price { color: #1d4ed8; font-weight: 700; }
.c-diff { color: #dc2626; font-weight: 700; }
.c-cny { color: #b45309; font-weight: 700; }
/* 上架产品弹窗：自由填写国家 */
.cost-edit-dialog .el-dialog__body { max-height: 68vh; overflow-y: auto; }
.cost-edit-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cost-edit-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cost-deno-block { border: 1px solid #eef2f7; border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; background: #fafbfc; }
.cost-deno-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.cde-face { flex: 1; }
.cost-country-row { display: grid; grid-template-columns: 1.4fr 1fr auto; align-items: center; gap: 8px; margin-bottom: 6px; }
.cost-add-country { margin: 0; }
.cost-add-denom { width: 100%; margin-top: 2px; border-style: dashed; }
.cost-icon-upload { display: flex; align-items: center; gap: 12px; }
.cost-icon-preview {
  width: 64px; height: 64px; border-radius: 12px; overflow: hidden; flex: none;
  border: 1px dashed #cbd5e1; background: #f8fafc; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: #94a3b8;
}
.cost-icon-preview img { width: 100%; height: 100%; object-fit: contain; }
.cost-icon-preview .el-icon { font-size: 22px; }
.cost-icon-actions { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.cost-icon-hint { font-size: 11px; color: #94a3b8; }
@media (max-width: 768px) {
  .cost-grid { grid-template-columns: 1fr; }
  .cost-country-card { flex: 1 1 46%; min-width: 0; max-width: none; }
  .cost-country-row { grid-template-columns: 1fr 1fr auto; }
  .cost-country-row .el-select { grid-column: 1 / -1; }
  .cost-deno-head { flex-wrap: wrap; }
  .cde-face { flex: 1; width: auto; }
}

/* ============ 备忘录 ============ */
.memo-panel { display: flex; flex-direction: column; gap: 14px; }
.memo-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.memo-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: #0f172a; }
.memo-title-ico { color: var(--brand, #059669); font-size: 18px; }
.memo-total {
  font-size: 12px; font-weight: 600; color: var(--text-2, #6b7280);
  background: #f1f5f9; padding: 2px 9px; border-radius: 999px;
}
.memo-seg b { font-weight: 700; margin-left: 5px; color: #94a3b8; }
.memo-seg button.on b { color: var(--brand, #059669); }

/* 快速记录卡片 */
.memo-compose {
  border: 1px solid var(--border, #e8ecef); border-radius: 12px; background: #fff; padding: 14px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.memo-compose:hover { border-color: #cbd5e1; }
.memo-compose:focus-within { border-color: var(--brand, #059669); box-shadow: 0 0 0 3px rgba(5, 150, 105, .08); }
.memo-compose-cats { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.memo-cat {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--border, #e8ecef); background: #fff; color: #64748b; font-size: 12.5px;
  cursor: pointer; transition: all .15s ease;
}
.memo-cat:hover { border-color: #cbd5e1; color: #0f172a; }
.memo-cat .el-icon { font-size: 13px; }
.memo-cat.on { font-weight: 600; }
.memo-cat.account.on { border-color: #fbbf24; background: #fffbeb; color: #b45309; }
.memo-cat.recharge.on { border-color: #93c5fd; background: #eff6ff; color: #1d4ed8; }
.memo-cat.card.on { border-color: #34d399; background: #ecfdf5; color: #047857; }
.memo-cat.other.on { border-color: #94a3b8; background: #f1f5f9; color: #334155; }
.memo-compose-foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; }

/* 列表 */
.memo-list { display: flex; flex-direction: column; gap: 8px; }
.memo-item {
  display: flex; align-items: flex-start; gap: 12px;
  border: 1px solid var(--border, #e8ecef); border-radius: 12px; background: #fff; padding: 12px 14px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  animation: fadeUp .22s ease both;
}
.memo-item:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(15, 23, 42, .07); border-color: #d3dbe6; }
.memo-dot { width: 4px; align-self: stretch; min-height: 40px; border-radius: 999px; flex: none; }
.memo-dot.account { background: #f59e0b; }
.memo-dot.recharge { background: #3b82f6; }
.memo-dot.card { background: #10b981; }
.memo-dot.other { background: #94a3b8; }
.memo-body { flex: 1; min-width: 0; }
.memo-content { font-size: 13.5px; color: #1f2937; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }
.memo-meta { display: flex; align-items: center; gap: 6px; margin-top: 7px; font-size: 11.5px; color: #94a3b8; }
.memo-meta-sep { opacity: .5; }
.memo-cat-label { font-weight: 600; }
.memo-cat-label.account { color: #b45309; }
.memo-cat-label.recharge { color: #2563eb; }
.memo-cat-label.card { color: #047857; }
.memo-cat-label.other { color: #475569; }
.memo-ops { display: flex; align-items: center; gap: 2px; flex: none; }
.memo-op { color: #94a3b8; }
.memo-op:hover { color: var(--brand, #059669); }
.memo-op.el-button--danger { color: #f87171; }
.memo-op.el-button--danger:hover { color: #dc2626; }

/* 编辑态 */
.memo-item.editing { border-color: var(--brand, #059669); box-shadow: 0 0 0 3px rgba(5, 150, 105, .08); }
.memo-edit-body { display: flex; flex-direction: column; gap: 10px; }
.memo-edit-cats { margin-bottom: 0; }
.memo-edit-ops { display: flex; flex-direction: column; gap: 6px; flex: none; align-items: stretch; }

@media (max-width: 768px) {
  .memo-head { flex-direction: column; align-items: stretch; }
  .memo-seg { overflow-x: auto; }
  .memo-edit-ops { flex-direction: row; }
}
