/* ===========================================================
   云朵代理 App · 设计系统
   风格：轻拟态 + 渐变主色 + 大圆角卡片 + 悬浮胶囊导航
   =========================================================== */

:root {
  /* 品牌色 */
  --brand-1: #5a6cff;
  --brand-2: #8b5cf6;
  --brand-3: #a78bfa;
  --brand-soft: #eef0ff;
  --mint: #00c9a7;
  --mint-soft: #e3fbf6;
  --gold: #ffa53c;
  --gold-soft: #fff3e2;
  --rose: #ff5e7a;
  --rose-soft: #ffebef;
  --sky: #38bdf8;
  --sky-soft: #e4f5ff;

  /* 中性色 */
  --ink-1: #171b2e;
  --ink-2: #616a8b;
  --ink-3: #9aa2bd;
  --ink-4: #c3c9dc;
  --bg: #f1f4fa;
  --card: #ffffff;
  --line: #eceff7;

  /* 尺寸 */
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 11px;
  --gap: 14px;
  --pad: 16px;
  --nav-h: 64px;

  /* 阴影 */
  --sh-1: 0 2px 10px rgba(88, 100, 150, 0.06);
  --sh-2: 0 6px 22px rgba(88, 100, 150, 0.1);
  --sh-3: 0 12px 34px rgba(88, 100, 150, 0.16);
  --sh-brand: 0 8px 22px rgba(90, 108, 255, 0.28);

  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

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

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #e8ecf6;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'HarmonyOS Sans SC',
    'Microsoft YaHei', 'Segoe UI', Roboto, sans-serif;
  color: var(--ink-1);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  outline: none;
  border: none;
  background: none;
}
button { cursor: pointer; }
img { display: block; max-width: 100%; }

/* 手机壳容器（桌面预览时居中） */
#app {
  max-width: 460px;
  margin: 0 auto;
  min-height: 100%;
  background: var(--bg);
  position: relative;
  overflow-x: clip;
  box-shadow: 0 0 60px rgba(30, 40, 80, 0.12);
}

/* ============ 通用文本 ============ */
.t-xs { font-size: 11px; }
.t-sm { font-size: 12px; }
.t-md { font-size: 14px; }
.t-lg { font-size: 16px; }
.t-xl { font-size: 19px; }
.t-2xl { font-size: 25px; }
.muted { color: var(--ink-2); }
.muted2 { color: var(--ink-3); }
.bold { font-weight: 600; }
.heavy { font-weight: 700; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; }
.center { text-align: center; }
.ellip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row { display: flex; align-items: center; }
.row-b { display: flex; align-items: center; justify-content: space-between; }
.col { display: flex; flex-direction: column; }
.grow { flex: 1; min-width: 0; }

/* ============ 顶部渐变头 ============ */
.hero {
  position: relative;
  padding: calc(var(--safe-t) + 18px) var(--pad) 62px;
  background: linear-gradient(135deg, #5a6cff 0%, #7c5cf6 52%, #a855f7 100%);
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  width: 220px; height: 220px;
  right: -70px; top: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.22), rgba(255,255,255,0) 70%);
}
.hero::after {
  content: '';
  position: absolute;
  width: 160px; height: 160px;
  left: -60px; bottom: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.14), rgba(255,255,255,0) 70%);
}
.hero > * { position: relative; z-index: 2; }
.hero .wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  z-index: 1;
  display: block;
}

/* 头像 */
.avatar {
  width: 42px; height: 42px;
  border-radius: 14px;
  background: rgba(255,255,255,.2);
  border: 1.5px solid rgba(255,255,255,.5);
  display: grid; place-items: center;
  font-weight: 700; font-size: 17px;
  color: #fff;
  backdrop-filter: blur(4px);
  flex: none;
}

/* 玻璃余额卡 */
.glass-card {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(40,20,90,.18);
}
.glass-card .bal {
  font-size: 32px; font-weight: 800; letter-spacing: -.5px;
  font-variant-numeric: tabular-nums;
}
.glass-card .bal-sub { font-size: 11.5px; opacity: .85; }
.pill-ghost {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.2);
  font-size: 11.5px; font-weight: 600;
}

/* ============ 页面容器 ============ */
.page {
  padding: 0 var(--pad) calc(var(--nav-h) + 34px + var(--safe-b));
  animation: pgIn .26s cubic-bezier(.22,.9,.3,1);
}
.page-up { margin-top: -48px; position: relative; z-index: 3; }
@keyframes pgIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ============ 卡片 ============ */
.card {
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  padding: 16px;
  margin-bottom: var(--gap);
}
.card-tight { padding: 12px 14px; }
.card-hd {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.card-hd h3 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: -.2px; }

/* 分区标题 */
.sec-title {
  display: flex; align-items: center; gap: 7px;
  margin: 18px 2px 10px;
  font-size: 13px; font-weight: 700; color: var(--ink-2);
}
.sec-title .bar {
  width: 3px; height: 13px; border-radius: 2px;
  background: linear-gradient(180deg, var(--brand-1), var(--brand-2));
}

/* ============ 数据格 ============ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 11px;
}
.stat {
  background: #fff; border-radius: 18px; padding: 13px 14px;
  box-shadow: var(--sh-1);
  position: relative; overflow: hidden;
}
.stat .ico {
  width: 30px; height: 30px; border-radius: 10px;
  display: grid; place-items: center; margin-bottom: 9px;
}
.stat .v {
  font-size: 21px; font-weight: 800; letter-spacing: -.4px;
  font-variant-numeric: tabular-nums; line-height: 1.15;
}
.stat .k { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.stat::after {
  content: ''; position: absolute; right: -18px; bottom: -18px;
  width: 58px; height: 58px; border-radius: 50%;
  background: currentColor; opacity: .06;
}

/* ============ 快捷入口 ============ */
.quick {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.quick-item {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 12px 2px;
  border-radius: 16px;
  transition: transform .16s, background .16s;
}
.quick-item:active { transform: scale(.93); background: var(--brand-soft); }
.quick-item .qi {
  width: 46px; height: 46px; border-radius: 15px;
  display: grid; place-items: center;
  box-shadow: 0 5px 14px rgba(90,108,255,.2);
}
.quick-item span { font-size: 11px; color: var(--ink-2); font-weight: 500; }

/* ============ 列表项 ============ */
.list { display: flex; flex-direction: column; gap: 10px; }
.item {
  background: #fff; border-radius: 18px; padding: 13px 14px;
  box-shadow: var(--sh-1);
  display: flex; align-items: center; gap: 12px;
  animation: itemIn .3s backwards cubic-bezier(.22,.9,.3,1);
  transition: transform .15s;
}
.item:active { transform: scale(.985); }
@keyframes itemIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.item-ico {
  width: 40px; height: 40px; border-radius: 13px; flex: none;
  display: grid; place-items: center;
}

/* 列表项右侧的直接复制按钮：一点即复制，不弹菜单 */
.item .copy-btn {
  flex: none;
  width: 36px; height: 36px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--brand-soft);
  color: var(--brand-1);
  transition: transform .15s ease, background .15s ease;
}
.item .copy-btn:active { transform: scale(.9); background: #e2e7ff; }

/* 状态标签 */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 600; line-height: 1.6;
}
.tag-ok { background: var(--mint-soft); color: #00997e; }
.tag-warn { background: var(--gold-soft); color: #d97f14; }
.tag-bad { background: var(--rose-soft); color: #e0415c; }
.tag-info { background: var(--brand-soft); color: var(--brand-1); }
.tag-gray { background: #f0f2f8; color: var(--ink-3); }

/* 行内操作按钮组 */
.acts { display: flex; gap: 7px; flex-wrap: wrap; }
.act {
  padding: 6px 12px; border-radius: 999px;
  background: #f4f6fc; color: var(--ink-2);
  font-size: 12px; font-weight: 600;
  transition: transform .14s, background .14s;
}
.act:active { transform: scale(.94); background: var(--brand-soft); color: var(--brand-1); }
.act-brand { background: var(--brand-soft); color: var(--brand-1); }
.act-rose { background: var(--rose-soft); color: #e0415c; }

/* ============ 按钮 ============ */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; height: 47px; border-radius: 15px;
  font-size: 15px; font-weight: 600;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: #fff;
  box-shadow: var(--sh-brand);
  transition: transform .15s, opacity .15s;
}
.btn:active { transform: scale(.97); opacity: .9; }
.btn[disabled] { opacity: .5; box-shadow: none; }
.btn-ghost {
  background: #fff; color: var(--ink-1);
  border: 1.5px solid var(--line); box-shadow: none;
}
.btn-mint { background: linear-gradient(135deg, #00c9a7, #21b391); box-shadow: 0 8px 22px rgba(0,201,167,.28); }
.btn-sm { height: 40px; font-size: 14px; border-radius: 13px; }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }

/* ============ 表单 ============ */
.field { margin-bottom: 13px; }
.field > label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--ink-2); margin-bottom: 6px; padding-left: 2px;
}
.input {
  width: 100%; height: 46px; padding: 0 14px;
  background: #f5f7fc; border: 1.5px solid transparent;
  border-radius: 14px; font-size: 14.5px;
  transition: border-color .18s, background .18s;
}
.input:focus { border-color: var(--brand-1); background: #fff; }
.input::placeholder { color: var(--ink-4); }
/* 锁定态：由上下文带入、不需要修改的值（如从列表点进来的账号） */
.input.locked {
  background: #eef1f7; color: var(--ink-3);
  border-style: dashed; border-color: #d6dcec;
  cursor: default; -webkit-text-fill-color: var(--ink-3);
}
.input.locked:focus { border-color: #d6dcec; background: #eef1f7; }
textarea.input { height: auto; padding: 12px 14px; resize: none; line-height: 1.5; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239aa2bd' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 34px; }

/* 数量步进器 */
.stepper { display: flex; align-items: center; gap: 9px; }
.stepper button {
  width: 46px; height: 46px; flex: none;
  border-radius: 14px;
  background: #f5f7fc; color: var(--ink-2);
  font-size: 19px; font-weight: 600; line-height: 1;
  display: grid; place-items: center;
  transition: background .16s, color .16s, transform .16s;
}
.stepper button:active { transform: scale(.93); background: var(--brand-soft); color: var(--brand-1); }
.stepper input { text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* 连体步进器（提取弹窗用）：左右按钮贴着输入框，一格一格的 */
.tk-field { margin-bottom: 17px; }
.tk-field > label {
  display: block;
  font-size: 13px; font-weight: 700; color: var(--ink-2);
  margin-bottom: 9px;
}
.numstep {
  display: flex; align-items: stretch;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  overflow: hidden;
}
.numstep button {
  width: 52px; flex: none;
  display: grid; place-items: center;
  font-size: 21px; font-weight: 500; line-height: 1;
  color: var(--ink-2);
  background: #f8fafe;
  transition: background .15s, color .15s;
}
.numstep button:active { background: var(--brand-soft); color: var(--brand-1); }
.numstep .ns-sep { width: 1px; background: var(--line); flex: none; }
.numstep input {
  flex: 1; min-width: 0;
  text-align: center;
  font-size: 16.5px; font-weight: 700; color: var(--ink-1);
  font-variant-numeric: tabular-nums;
  border: none; outline: none; background: transparent;
}
.numstep input::-webkit-outer-spin-button,
.numstep input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* 提取弹窗里的积分合计 */
.tk-sum {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-top: 4px; padding-top: 15px;
  border-top: 1px dashed var(--line);
  font-size: 13.5px; font-weight: 700; color: var(--ink-2);
}
.tk-sum b {
  font-size: 22px; font-weight: 800;
  color: #ff5a3c;
  letter-spacing: -.5px;
  font-variant-numeric: tabular-nums;
}

/* 搜索条 */
.searchbar {
  display: flex; align-items: center; gap: 9px;
  background: #fff; border-radius: 15px;
  padding: 0 12px; height: 44px;
  box-shadow: var(--sh-1);
}
.searchbar input { flex: 1; height: 100%; font-size: 14px; }
.searchbar .sb-btn {
  padding: 5px 12px; border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: #fff; font-size: 12.5px; font-weight: 600;
}

/* 分段控件 */
.seg {
  display: flex; gap: 4px; padding: 4px;
  background: #eef1f8; border-radius: 13px;
}
.seg button {
  flex: 1; height: 33px; border-radius: 10px;
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
  transition: all .2s;
}
.seg button.on {
  background: #fff; color: var(--brand-1);
  box-shadow: 0 2px 8px rgba(90,108,255,.16);
}

/* 筛选 chips */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 7px 14px; border-radius: 999px;
  background: #fff; color: var(--ink-2);
  font-size: 12.5px; font-weight: 600;
  box-shadow: var(--sh-1);
  transition: all .18s;
}
.chip.on {
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: #fff; box-shadow: var(--sh-brand);
}

/* ============ 底部弹层 ============ */
.mask {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(20, 24, 45, .45);
  backdrop-filter: blur(2px);
  animation: fadeIn .2s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.sheet {
  position: fixed; z-index: 81;
  left: 50%; transform: translateX(-50%);
  bottom: 0; width: 100%; max-width: 460px;
  background: #fff;
  border-radius: 26px 26px 0 0;
  padding: 8px 18px calc(20px + var(--safe-b));
  box-shadow: 0 -8px 40px rgba(30,40,90,.2);
  animation: sheetUp .3s cubic-bezier(.22,.9,.3,1);
  max-height: 86vh; overflow-y: auto;
}
@keyframes sheetUp { from { transform: translate(-50%, 100%); } to { transform: translate(-50%, 0); } }
.sheet-bar {
  width: 38px; height: 4px; border-radius: 3px;
  background: var(--ink-4); margin: 6px auto 14px;
}
.sheet h4 { margin: 0 0 4px; font-size: 17px; font-weight: 700; }
.sheet .sh-sub { font-size: 12.5px; color: var(--ink-3); margin-bottom: 16px; }

/* 居中弹窗 */
.dialog {
  position: fixed; z-index: 81;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: calc(100% - 64px); max-width: 360px;
  background: #fff; border-radius: 24px; padding: 22px 20px 18px;
  box-shadow: var(--sh-3);
  animation: dlgIn .26s cubic-bezier(.22,.9,.3,1);
}
@keyframes dlgIn { from { opacity: 0; transform: translate(-50%,-46%) scale(.94); } to { opacity: 1; transform: translate(-50%,-50%) scale(1); } }
.dialog h4 { margin: 0 0 8px; font-size: 17px; font-weight: 700; text-align: center; }
.dialog p { margin: 0 0 18px; font-size: 13.5px; color: var(--ink-2); text-align: center; line-height: 1.6; }

/* ============ Toast ============ */
.toast-wrap {
  position: fixed; z-index: 99;
  left: 50%; transform: translateX(-50%);
  top: calc(var(--safe-t) + 16px);
  width: 100%; max-width: 460px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none;
}
.toast {
  padding: 11px 18px; border-radius: 14px;
  background: rgba(23, 27, 46, .92); color: #fff;
  font-size: 13.5px; font-weight: 500;
  box-shadow: 0 8px 24px rgba(20,24,45,.3);
  animation: toastIn .28s cubic-bezier(.22,.9,.3,1);
  max-width: 86%; text-align: center;
}
.toast.ok { background: rgba(0, 160, 132, .95); }
.toast.err { background: rgba(224, 65, 92, .95); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }

/* ============ 底部悬浮导航 ============ */
.tabbar {
  position: fixed; z-index: 60;
  left: 50%; transform: translateX(-50%);
  bottom: calc(12px + var(--safe-b));
  width: calc(100% - 32px); max-width: 428px;
  height: var(--nav-h);
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(50,60,110,.16);
  display: flex; align-items: center;
  padding: 0 6px;
}
.tab {
  flex: 1; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--ink-3);
  position: relative;
  transition: color .2s;
}
.tab svg { transition: transform .2s; }
.tab.on { color: var(--brand-1); }
.tab.on svg { transform: translateY(-2px) scale(1.06); }
.tab span { font-size: 10.5px; font-weight: 600; letter-spacing: .2px; }
.tab .dot {
  position: absolute; top: 9px; width: 16px; height: 3px;
  border-radius: 2px; background: transparent; transition: background .2s;
}
.tab.on .dot { background: linear-gradient(90deg, var(--brand-1), var(--brand-2)); }

/* ============ 桌面版窗口控制条 ============ */
#winbar { display: none; }
body.is-electron #winbar {
  display: flex; align-items: center;
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  height: 38px;
  padding: 0 8px 0 0;
  pointer-events: none;
}
body.is-electron .wb-drag {
  flex: 1; height: 100%;
  -webkit-app-region: drag;
  pointer-events: auto;
}
body.is-electron .wb-btns {
  display: flex; gap: 5px;
  pointer-events: auto;
  -webkit-app-region: no-drag;
}
body.is-electron .wb-btns button {
  width: 27px; height: 27px; border-radius: 9px;
  display: grid; place-items: center;
  background: rgba(18, 20, 40, .22);
  color: #fff;
  backdrop-filter: blur(6px);
  transition: background .16s, transform .16s;
}
body.is-electron .wb-btns button:hover { background: rgba(18, 20, 40, .46); }
body.is-electron .wb-btns button:active { transform: scale(.92); }
body.is-electron .wb-btns button.on { background: rgba(90, 108, 255, .92); }
body.is-electron #wb-close:hover { background: #ef4b6b; }

/* 桌面版：给顶部留出窗口条空间 */
body.is-electron .hero { padding-top: 46px; }
body.is-electron .topbar { padding-top: 46px; }
body.is-electron .login-wrap { padding-top: 66px; }

/* 桌面版：隐藏移动端安全区 */
body.is-electron { --safe-t: 0px; --safe-b: 0px; }

/* 桌面版滚动条 */
body.is-electron ::-webkit-scrollbar { width: 8px; }
body.is-electron ::-webkit-scrollbar-thumb { background: rgba(120,130,170,.35); border-radius: 4px; }
body.is-electron ::-webkit-scrollbar-track { background: transparent; }

/* ============ 登录页 ============ */
.login-wrap {
  min-height: 100vh; min-height: 100dvh;
  background: linear-gradient(160deg, #4c5ef5 0%, #7c5cf6 45%, #b06ef5 100%);
  display: flex; flex-direction: column;
  padding: calc(var(--safe-t) + 48px) 26px calc(30px + var(--safe-b));
  color: #fff; position: relative; overflow: hidden;
}
.login-wrap::before, .login-wrap::after {
  content: ''; position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.16), rgba(255,255,255,0) 70%);
}
.login-wrap::before { width: 300px; height: 300px; right: -110px; top: -80px; }
.login-wrap::after { width: 220px; height: 220px; left: -80px; bottom: 40px; }
.login-wrap > * { position: relative; z-index: 2; }
.login-logo {
  width: 66px; height: 66px; border-radius: 22px;
  background: rgba(255,255,255,.18);
  border: 1.5px solid rgba(255,255,255,.4);
  display: grid; place-items: center; margin-bottom: 18px;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(40,20,90,.2);
}
.login-panel {
  background: #fff; border-radius: 26px;
  padding: 24px 20px 22px; color: var(--ink-1);
  box-shadow: 0 20px 50px rgba(30,20,80,.28);
  margin-top: 22px;
}
.li-field { margin-bottom: 14px; }
.li-field label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; padding-left: 2px; }
.li-input {
  width: 100%; height: 50px; padding: 0 14px 0 42px;
  background: #f5f7fc; border: 1.5px solid transparent; border-radius: 15px;
  font-size: 15px; transition: all .18s;
}
.li-input:focus { border-color: var(--brand-1); background: #fff; }
.li-wrap { position: relative; }
.li-wrap > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.remember { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); margin: 4px 0 18px; }
.chk {
  width: 19px; height: 19px; border-radius: 6px;
  border: 1.6px solid var(--ink-4); display: grid; place-items: center;
  transition: all .18s; flex: none;
}
.chk.on { background: linear-gradient(135deg, var(--brand-1), var(--brand-2)); border-color: transparent; }

/* ============ 空状态 / 加载 ============ */
.empty { padding: 54px 20px; text-align: center; color: var(--ink-3); }
.empty svg { margin-bottom: 12px; opacity: .55; }
.empty p { margin: 0; font-size: 13.5px; }

.skel {
  background: linear-gradient(90deg, #eef1f7 25%, #f7f9fd 50%, #eef1f7 75%);
  background-size: 200% 100%;
  animation: sk 1.2s infinite;
  border-radius: 8px;
}
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.load-more { text-align: center; padding: 16px; font-size: 12.5px; color: var(--ink-3); }

/* ============ 详情页信息行 ============ */
.info-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 0; border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.info-row:last-child { border-bottom: none; }
.info-row .k { color: var(--ink-3); font-size: 13px; }
.info-row .v { font-weight: 600; text-align: right; max-width: 62%; word-break: break-all; }

/* 流水项 */
.flow {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 13px 14px; background: #fff; border-radius: 16px;
  box-shadow: var(--sh-1);
}
.flow .amt { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.amt-in { color: var(--mint); }
.amt-out { color: var(--ink-1); }

/* 卡密条目 */
.kami {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px; letter-spacing: .2px;
  word-break: break-all; line-height: 1.45;
}

/* 顶部返回条 */
.topbar {
  display: flex; align-items: center; gap: 10px;
  padding: calc(var(--safe-t) + 14px) var(--pad) 12px;
  background: linear-gradient(135deg, #5a6cff, #8b5cf6);
  color: #fff;
  position: sticky; top: 0; z-index: 40;
}
.topbar .tb-title { font-size: 17px; font-weight: 700; }
.topbar .back { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: rgba(255,255,255,.18); }

/* ============ 底部主操作条 ============
   压在底部导航之上，拇指直接够到；页面内容需额外留出底部空间 */
.act-bar {
  position: fixed; z-index: 55;
  left: 50%; transform: translateX(-50%);
  bottom: calc(var(--nav-h) + 22px + var(--safe-b));
  width: calc(100% - 32px); max-width: 428px;
  pointer-events: none;
}
.act-bar .act-main {
  pointer-events: auto;
  width: 100%; height: 50px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: #fff;
  font-size: 15px; font-weight: 800; letter-spacing: .5px;
  box-shadow: 0 10px 24px rgba(90,108,255,.40), 0 2px 6px rgba(90,108,255,.22);
  transition: transform .14s ease, box-shadow .14s ease;
}
.act-bar .act-main:active {
  transform: scale(.975);
  box-shadow: 0 5px 14px rgba(90,108,255,.44);
}
.act-bar .act-main svg { stroke-width: 2.2; }
.act-bar .act-hint {
  font-size: 11.5px; font-weight: 600;
  opacity: .84; letter-spacing: 0;
}
.act-bar .act-hint:not(:empty)::before {
  content: ''; display: inline-block;
  width: 1px; height: 11px;
  background: rgba(255,255,255,.45);
  margin: 0 9px 0 1px; vertical-align: -1px;
}

/* 高亮数值块 */
.hl {
  display: inline-flex; align-items: baseline; gap: 3px;
  font-weight: 800; font-variant-numeric: tabular-nums;
}
.hl .u { font-size: 11px; font-weight: 600; color: var(--ink-3); }

/* 渐变色板工具类 */
.bg-brand { background: linear-gradient(135deg, var(--brand-1), var(--brand-2)); color: #fff; }
.bg-mint { background: linear-gradient(135deg, #00c9a7, #21b391); color: #fff; }
.bg-gold { background: linear-gradient(135deg, #ffb03c, #ff8a3c); color: #fff; }
.bg-rose { background: linear-gradient(135deg, #ff6b85, #f0486a); color: #fff; }
.bg-sky { background: linear-gradient(135deg, #38bdf8, #2c9fe0); color: #fff; }
.c-brand { color: var(--brand-1); }
.c-mint { color: var(--mint); }
.c-gold { color: var(--gold); }
.c-rose { color: var(--rose); }
.c-sky { color: var(--sky); }

/* 佣金积分 → 可点击转换成余额 */
.cm-convert{text-align:right;background:none;border:0;padding:2px 0 2px 12px;color:inherit;font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:opacity .15s}
.cm-convert .bal-sub{display:inline-flex;align-items:center;gap:4px}
.cm-convert .cm-hint{font-size:11px;color:rgba(255,255,255,.75);margin-top:3px;letter-spacing:.2px}
.cm-convert:active{opacity:.65}

.yd-warn{margin-top:8px;padding:9px 11px;border-radius:12px;background:#fff6e8;color:#9a6b1f;font-size:12px;line-height:1.6}


