/* 云商通 · 后台样式（浅色主题，移动端自适应）
 *
 * ★★ 2026-10-17 UI 改版 v2.11.0（用户定规：稳重 / 专业 / 可靠，面向代理商户）
 *   基线：git ee034b5（= 真机 iOS build 14 / 安卓 vAnd.1.3.0 所跑版本），在其上改，不重写。
 *   五条改版铁则（写死在本文件，后续任何页面改版都不得违反）：
 *   ① 色彩：主色沉稳（深藏蓝 #1F3A6E），中性灰打底；辅助色一律低饱和，
 *      禁止高饱和亮色与大面积渐变（原 #2f5cf6 亮蓝 / 青绿渐变 logo 已全部替换）。
 *   ② 布局：留白充足、模块分区清晰、信息层级分明；按钮 / 卡片 / 输入框全局同一套规格。
 *   ③ 动效：极简。只保留「状态反馈」类必要动效（focus / hover / 骨架 / 旋转 loading），
 *      时长压到 120~160ms，且不做位移 / 缩放 / 弹跳类花哨动画。
 *      ★ 原 `.stat.clickable:hover { transform: translateY(-2px) }` 的上浮动效已移除。
 *   ④ 字体：无衬线（系统中文字体栈），建立 5 级字号阶梯；重点数据用 --fs-num 加粗突出，
 *      次要信息统一 --text-3 弱化。数字启用 tabular-nums（等宽数字），
 *      保证金额纵向对齐、扫读不跳行。
 *   ⑤ 调性：面向金融业务的安全感 —— 低对比刺激、边界清晰、状态色语义化。
 */

/* ============ 设计令牌（Design Tokens）============ */
:root {
  /* ---- 主色：与新图标同源（2026-10-17 三轮改版）----
   * 图标实测色相：深蓝 220°（#0E46B6）+ 亮青 205°（#46A8FC）。
   * 页面主色据此下调饱和（56%→46%）、微提明度（26%→30%）：
   * 既与图标同一色系（一眼同源），又比图标更沉稳（页面大面积使用需克制）。
   * ⚠️ 别再写死色值，统一用令牌；改主色只改这 6 行。 */
  --brand:        #1840e0;   /* 主色：按钮、选中态、强调数字 */
  --brand-dark:   #0f30b2;   /* 主色按下/悬停 */
  --brand-deep:   #082081;   /* 更深一级：顶栏/侧栏底衬 */
  --brand-soft:   #e8ebf7;   /* 主色浅底：选中背景、标签底 */
  --brand-line:   #afb8de;   /* 主色描边：输入框聚焦环、标签边 */
  --accent:       #2e5ddf;   /* 强调色：图标亮青，用于图表线/重点高亮 */

  /* ---- 强调卡亮蓝（2026-10-17 四轮）----
   * 用户要求「页面里那个深蓝色改成图标里的亮蓝色」。
   * 取值经过实测筛选，不是随手调的：
   *   图标原亮青 #48aff8 → 白字对比 2.40:1 ✗ 不可用
   *   本值 #1438cc           → 白字对比 8.51:1 ✓ WCAG AA
   * 它与图标深蓝（色相 220°）同族，一眼同源，但比图标更沉稳（页面大面积用）。 */
  --hero:       #1438cc;   /* 强调卡底：今日交易额 */
  --hero-line:  #0f2ead;   /* 强调卡描边 */
  --hero-deep:  #0a2389;   /* 强调卡左侧竖条 */

  /* ---- 语义色（全部低饱和，遵循国内红涨绿跌习惯）---- */
  --up:        #b3261e;   /* 涨 / 收益正向 / 危险操作（国内习惯：红） */
  --up-soft:   #fbecea;
  --down:      #1a6b4a;   /* 跌 / 负向 / 成功（国内习惯：绿） */
  --down-soft: #e8f3ee;
  --warn:      #9a6208;   /* 警告：克制到接近棕褐，不刺眼 */
  --warn-soft: #fbf1e0;
  --info:      #1d3cb8;   /* 提示 */
  --info-soft: #e8ebf6;

  /* ---- 业务分区色（莫兰迪色板）----
   * ★ 2026-10-17 二轮改版新增：首页按业务属性给各功能区一个色彩身份，
   *   让代理用户扫一眼就知道「这是钱 / 这是经营 / 这是交易 / 这是团队」。
   *   全部为莫兰迪低饱和色（HSL 饱和度 ≤30%，实测），深字压浅底对比度
   *   全部 ≥4.96:1（WCAG AA），既补足色彩层次又不会长时间浏览刺眼。
   *   ⚠️ 只用于图标底衬 / 小色块 / 标签，绝不用于大面积铺底。 */
  /* ★ 与图标同源微调（2026-10-17）：交易色直接用主色同族，资金/经营/团队
     保持原有语义色相（红涨绿跌的业务语义不能丢），仅把明度略微对齐图标。 */
  --tone-money:      #7a6248;   /* 资金收益（钱包 / 分润 / 提现）— 暖铜 */
  --tone-money-soft: #f3efe9;
  --tone-biz:        #3f6f6a;   /* 经营（机具 / 商户）— 沉青 */
  --tone-biz-soft:   #e9f1f0;
  --tone-trade:      #193abc;   /* 交易（交易管理 / 明细）— 与主色同族 */
  --tone-trade-soft: #e8edf4;
  --tone-team:       #5f6b45;   /* 团队（我的团队 / 邀请下级）— 橄榄 */
  --tone-team-soft:  #edf0e8;

  /* ---- 中性灰阶（基础底色，长时间浏览不刺眼）---- */
  --bg:         #f2f3f5;   /* 页面底色：冷调浅灰，比纯白柔和 */
  --bg-2:       #e9ebee;   /* 次级底色：分段控件槽、侧栏底 */
  --card:       #ffffff;   /* 卡片面 */
  --line:       #dcdfe4;   /* 常规描边 */
  --line-soft:  #edeff2;   /* 弱描边：行分隔线 */
  --line-strong:#c3c8d0;   /* 强描边：需要强调边界的输入框 */
  --text:       #1c2430;   /* 主文本：近黑蓝，比纯黑柔和 */
  --text-2:     #4d5769;   /* 次级文本 */
  --text-3:     #858d9c;   /* 弱化文本：说明、单位、辅助 */

  /* ---- 字号阶梯（5 档，全站只用这 5 档，禁止随手写 font-size）---- */
  --fs-num:  26px;   /* L1 重点数据：金额、笔数（卡片主数值） */
  --fs-lg:   17px;   /* L2 大标题：区块标题、弹层标题、关键次级数字 */
  --fs-md:   14px;   /* L3 正文：默认、卡片标题、列表主行 */
  --fs-sm:   13px;   /* L4 次级：表格内容、按钮、输入框 */
  --fs-xs:   12px;   /* L5 辅助：标签、单位、说明文字 */

  /* ---- 间距阶梯（4 档）---- */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  14px;
  --sp-4:  20px;

  /* ---- 圆角：统一克制，避免圆润亲和风 ---- */
  --radius:    10px;
  --radius-sm: 7px;
  --radius-lg: 14px;

  /* ---- 阴影：极轻，只用于表达层级不用来装饰 ---- */
  --shadow:    0 1px 2px rgba(22, 32, 52, .05);
  --shadow-md: 0 2px 8px rgba(22, 32, 52, .07);
  --shadow-lg: 0 12px 32px -12px rgba(22, 32, 52, .22);

  /* ---- 动效：只允许必要反馈，统一时长与缓动 ---- */
  --dur:    140ms;
  --dur-lg: 180ms;

  /* ★ 公告滚动播报一圈的时长（秒，2026-10-18）。
     JS 按「条目数 × 每条停留 3.6s」动态覆盖，保证每条停留时间恒定。 */
  --notice-dur: 18s;
  --ease:   cubic-bezier(.2, .6, .3, 1);

  /* ---- 布局常量 ---- */
  --side-w: 232px;
  --top-h:  58px;
  --tab-h:  58px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  /* ④ 字体：清晰稳重无衬线。中文优先 PingFang SC / 思源黑体，系统栈兜底；
     数字统一 tabular-nums，金额纵向对齐、扫读不跳行。 */
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Source Han Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "tnum" 1;
  -webkit-font-feature-settings: "tnum" 1;
  font-variant-numeric: tabular-nums;
  background: var(--bg);
  color: var(--text);
  font-size: var(--fs-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
[hidden] { display: none !important; }

/* ---------------- 登录 ---------------- */
/* ① 色彩：去掉原「蓝紫 + 青绿」两团高饱和 radial-gradient，改为单一冷灰底 + 极轻主色晕，
   视觉重心落在中间那张白卡上。 */
.auth {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: var(--bg);
}
.auth-card {
  width: 100%; max-width: 400px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px 24px;
  box-shadow: var(--shadow-md);
}
.auth-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 24px; }
.auth-brand h1 { font-size: var(--fs-lg); letter-spacing: 1px; }
.auth-brand p { margin: 3px 0 0; color: var(--text-3); font-size: var(--fs-xs); }
/* ★ 2026-10-18 20:38 修「登录页 logo 四周被啃一圈」
 * 根因：**双重圆角**。logo.png 本身已带 21.9% 圆角（生成时 radius=112/512），
 *   CSS 又叠了一层 `border-radius: var(--radius)`（10px/44px = 22.7%），
 *   两层圆角错位叠加 → 图片四周被"啃"掉一圈，图案显小、边缘发虚。
 * 修法：**去掉容器 border-radius 与 overflow:hidden**，圆角交给图片自带。
 *   保留 `background: var(--brand)` 兜底（图片加载失败时仍是纯色方块，不塌）。
 * 顺带：`object-fit: cover` 保持不变（满铺不缩图）。 */
.logo {
  width: 44px; height: 44px; flex: none;
  /* 不设 border-radius / overflow:hidden —— 图片自带圆角，容器再裁就是双重圆角 */
  background: var(--brand);
  color: #fff; font-weight: 700; font-size: var(--fs-lg);
  display: flex; align-items: center; justify-content: center;
}
.logo img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.logo.sm { width: 30px; height: 30px; font-size: 14px; }
.auth-foot { margin: 20px 0 0; text-align: center; color: var(--text-3); font-size: var(--fs-xs); }

/* 本地测试「一键登录」（正式部署时整块是隐藏的） */
.auth-quick { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.auth-quick .q-title { margin: 0 0 10px; font-size: var(--fs-xs); color: var(--text-3); }
.auth-quick .q-btns { display: flex; gap: var(--sp-2); }
.auth-quick .q-btns .btn { flex: 1; justify-content: center; padding: 8px 10px; }
.auth-quick .q-tip { margin: 10px 0 0; font-size: var(--fs-xs); line-height: 1.7; color: var(--text-3); }

.tabs { display: flex; gap: 2px; background: var(--bg-2); padding: 3px; border-radius: var(--radius-sm); margin-bottom: 20px; }
.tab {
  flex: 1; border: 0; background: transparent; padding: 8px 0; border-radius: 5px;
  color: var(--text-2); cursor: pointer; font-weight: 500;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.tab.active { background: var(--card); color: var(--brand); font-weight: 600; box-shadow: var(--shadow); }

.form { display: block; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: var(--fs-sm); color: var(--text-2); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--card); outline: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { min-height: 80px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31, 58, 110, .12);
}
.hint { min-height: 18px; margin: var(--sp-2) 0 0; font-size: var(--fs-sm); color: var(--up); }
/* 重置密码面板（忘记密码）：顶部说明 + 「验证码 + 获取按钮」一行 + 底部返回链接。
 * ⚠️ 用 .field .field-row（0,2,0）而不是 .field-row（0,1,0）—— 上面有 .field > span { display:block }
 *    （0,1,1）会把它压回 block，按钮就掉到输入框下一行去了（截图里真出现过）。 */
.form-tip { margin: 0 0 var(--sp-3); font-size: var(--fs-sm); line-height: 1.7; color: var(--text-2); }
.field .field-row { display: flex; gap: 8px; align-items: stretch; }
.field .field-row input { flex: 1; min-width: 0; }
.field .field-row .btn { flex: none; align-self: stretch; padding: 0 13px; }
.auth-links { margin: 10px 0 0; text-align: right; font-size: var(--fs-sm); }

/* 勾选框行（登录页「保持登录」等）
 * ★ 2026-10-17 改版补：此前 .field.check 没有任何样式，勾选框被 .field > span{display:block}
 *   顶成独占一行且勾选框与文字上下分离（截图实锤）。此处补齐横排规格。 */
.field.check {
  display: flex; align-items: center; gap: 8px;
  margin: -2px 0 var(--sp-3); cursor: pointer; user-select: none;
}
.field.check input {
  width: 15px; height: 15px; flex: none; margin: 0; cursor: pointer;
  accent-color: var(--brand);
}
.field.check > span {
  display: inline; font-size: var(--fs-sm); color: var(--text-2); margin: 0;
}
.auth-links a { color: var(--brand); text-decoration: none; }
.auth-links a:hover { text-decoration: underline; }

/* ---------------- 按钮（全局唯一规格）----------------
   ② 控件统一：全站按钮只有「默认 / 主要 / 危险 / 幽灵」四种，同一高度（38px），
   同一圆角（--radius-sm），同一字号（--fs-sm），同一过渡时长。
   ③ 动效：仅保留 hover 变色与 active 压深 1px，不做位移/缩放。 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px;
  border: 1px solid var(--line-strong); background: var(--card); color: var(--text);
  padding: 0 16px; border-radius: var(--radius-sm); cursor: pointer;
  font-size: var(--fs-sm); font-weight: 500;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--bg-2); border-color: var(--line-strong); }
.btn:active { background: var(--line-soft); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn.primary:active { background: var(--brand-deep); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--bg-2); color: var(--text); }
.btn.danger { color: var(--up); border-color: #e8c4c0; background: var(--card); }
.btn.danger:hover { background: var(--up-soft); border-color: #dfb0ab; }
.btn.sm { height: 32px; padding: 0 12px; font-size: var(--fs-xs); }
.btn.block { width: 100%; height: 44px; font-size: var(--fs-md); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.icon-btn {
  border: 0; background: transparent; cursor: pointer;
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  color: var(--text-2); font-size: 16px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.icon-btn:hover { background: var(--bg-2); color: var(--text); }

/* ---------------- 布局 ----------------
   ② 留白：页面内边距 20px（桌面）/ 12px（移动），卡片间距 14px，
   模块之间靠「卡片 + 留白」分隔，不靠色块堆叠。 */
.app { min-height: 100vh; }
.side {
  position: fixed; inset: 0 auto 0 0; width: var(--side-w);
  background: var(--card); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; z-index: 40;
}
.side-brand {
  height: var(--top-h); display: flex; align-items: center; gap: 10px;
  padding: 0 18px; border-bottom: 1px solid var(--line-soft);
  font-weight: 600; font-size: var(--fs-md); letter-spacing: .5px;
}
.nav { flex: 1; overflow-y: auto; padding: var(--sp-2) var(--sp-2) var(--sp-4); }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  height: 38px; padding: 0 11px; border-radius: var(--radius-sm); cursor: pointer;
  color: var(--text-2); margin-bottom: 1px; border: 0; background: transparent;
  width: 100%; text-align: left; font-size: var(--fs-sm);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav-item:hover { background: var(--bg-2); color: var(--text); }
.nav-item.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.nav-item .ic { width: 18px; text-align: center; font-size: 15px; flex: none; }
.nav-item .badge { margin-left: auto; }
/* 二级子菜单（2026-10-03 用户定规）：侧边栏平铺，「我的费率」点开 = 结算费率 / 流量费 */
.nav-branch .nav-sub { display: none; padding-left: 28px; font-size: var(--fs-xs); }
.nav-branch.open .nav-sub { display: flex; }
.nav-branch .nav-sub .ic { font-size: 10px; opacity: .5; }
.nav-parent .nav-caret { margin-left: auto; font-size: 11px; color: var(--text-3); transition: transform var(--dur) var(--ease); }
.nav-branch.open .nav-caret { transform: rotate(90deg); }
.side-foot { border-top: 1px solid var(--line-soft); padding: 14px var(--sp-3); }
.side-user { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 34px; height: 34px; border-radius: var(--radius-sm); flex: none;
  background: var(--brand-soft); color: var(--brand); font-weight: 600;
  display: flex; align-items: center; justify-content: center; font-size: var(--fs-sm);
}
.side-user .nm { font-size: var(--fs-sm); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user .rl { font-size: var(--fs-xs); color: var(--text-3); }

.main { margin-left: var(--side-w); min-height: 100vh; display: flex; flex-direction: column; }
/* 顶栏：不透明白底（原 backdrop-filter 毛玻璃在移动端会拖影且降低文字对比度），
   改用实底 + 底部细线，边界更清晰、文字更可读。 */
.topbar {
  height: var(--top-h); flex: none; position: sticky; top: 0; z-index: 30;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px; padding: 0 var(--sp-4);
}
html.is-app .topbar {
  padding-top: env(safe-area-inset-top);
  height: calc(var(--top-h) + env(safe-area-inset-top));
}
.topbar h2 { font-size: var(--fs-lg); font-weight: 600; letter-spacing: .3px; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: var(--sp-2); }
.pill {
  font-size: var(--fs-xs); color: var(--text-2); background: var(--bg-2);
  padding: 4px 10px; border-radius: var(--radius-sm); white-space: nowrap;
}
.pill.brand { background: var(--brand); color: #fff; font-weight: 600; }
/* 展业端顶栏：当前登录的代理商名称（长名字省略号收尾，鼠标悬停看全名） */
.pill.me {
  background: var(--brand-soft); color: var(--brand); font-weight: 600;
  max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ② 视图留白：20px 起，移动端 12px；限宽保证长行可读 */
.view { padding: var(--sp-4); max-width: 1240px; width: 100%; }
.tabbar { display: none; }
.scrim { position: fixed; inset: 0; background: rgba(22, 32, 52, .38); z-index: 35; }

/* ---------------- 通用块 ----------------
   ② 模块分区清晰：卡片 = 白面 + 1px 描边 + 轻阴影，标题与内容间距 14px，
   卡片之间 14px 留白。标题统一 15px/600，卡内正文 13px。 */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--sp-3) var(--sp-4); margin-bottom: var(--sp-3);
}
.card.pad0 { padding: 0; overflow: hidden; }
.card-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: var(--sp-3); flex-wrap: wrap;
}
.card-head h3 { font-size: var(--fs-md); font-weight: 600; letter-spacing: .2px; }
.card-head .right { margin-left: auto; display: flex; gap: var(--sp-2); align-items: center; flex-wrap: wrap; }
.grid { display: grid; gap: var(--sp-3); }
.grid.c2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.grid.c5 { grid-template-columns: repeat(5, minmax(0,1fr)); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.muted { color: var(--text-3); }
.dim { color: var(--text-2); }
.tiny { font-size: var(--fs-xs); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--fs-xs); }
.up { color: var(--up); }
.down { color: var(--down); }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.mt8 { margin-top: var(--sp-2); } .mt12 { margin-top: var(--sp-3); } .mt16 { margin-top: var(--sp-4); }
.mb0 { margin-bottom: 0; }

/* 指标卡（④ 重点数据突出）
   - 标签 12px 弱化灰 → 数值 26px/700 主文本色（不再靠彩色大字）
   - accent 变体原为「蓝紫渐变满色块」，改为「深藏蓝实底」——保留强调但去掉渐变装饰 */
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--sp-3) var(--sp-4); position: relative; overflow: hidden;
}
.stat .lb { font-size: var(--fs-xs); color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.stat .vl {
  font-size: var(--fs-num); font-weight: 700; letter-spacing: -.5px; margin-top: 6px;
  color: var(--text); line-height: 1.2;
}
.stat .vl small { font-size: var(--fs-sm); font-weight: 500; color: var(--text-3); margin-left: 3px; }
.stat .ex { font-size: var(--fs-xs); color: var(--text-3); margin-top: 5px; }
/* accent：深藏蓝实底白字（原 #3a67ff→#6e56f6 渐变已废，改为沉稳实色） */
.stat.accent { background: var(--brand); border-color: var(--brand); color: #fff; }
.stat.accent .lb, .stat.accent .ex { color: rgba(255,255,255,.75); }
.stat.accent .vl, .stat.accent .vl small { color: #fff; }
/* ③ 动效：去掉 translateY(-2px) 上浮，只留边框与底色反馈 */
.stat.clickable { cursor: pointer; transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease); }
.stat.clickable:hover { border-color: var(--brand-line); background: #fbfcfe; }

/* 标签（① 全部改低饱和语义色，去掉高饱和底） */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: var(--fs-xs); padding: 2px 8px; border-radius: var(--radius-sm);
  background: var(--bg-2); color: var(--text-2); white-space: nowrap; line-height: 1.7;
}
.tag.brand { background: var(--brand-soft); color: var(--brand); }
.tag.ok { background: var(--down-soft); color: var(--down); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.bad { background: var(--up-soft); color: var(--up); }
.tag.info { background: var(--info-soft); color: var(--info); }
.badge {
  font-size: 11px; padding: 1px 7px; border-radius: var(--radius-sm);
  background: var(--up); color: #fff; min-width: 18px; text-align: center;
}
.badge.gray { background: var(--text-3); }

/* 表格（② 文字可读性优先：表头灰底区分、正文 13px、行高留足） */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* ★ 2026-10-17 二轮改版修真 bug：原来只有 overflow-x:auto，但表格没有最小宽度，
   窄屏（手机）下浏览器为了塞进容器把中文按字断行 → 「瑞锦烟酒商行」竖成一列，完全不可读。
   给表格一个下限宽度，让它横向滚动而不是压字（移动端数据表标准做法）。 */
table.tbl { width: 100%; min-width: 640px; border-collapse: collapse; font-size: var(--fs-sm); }
table.tbl th, table.tbl td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line-soft); }
table.tbl th {
  color: var(--text-3); font-weight: 600; font-size: var(--fs-xs);
  background: var(--bg); white-space: nowrap; letter-spacing: .3px;
}
table.tbl tbody tr { transition: background var(--dur) var(--ease); }
table.tbl tbody tr:hover { background: #fafbfc; }
table.tbl tbody tr:last-child td { border-bottom: 0; }
table.tbl td.act { white-space: nowrap; }
table.tbl td.act .btn { margin-right: 4px; }

/* 品牌分组条（2026-10-07 用户定规「产品以品牌为维度」）：
 * 一个品牌一块表，品牌名只在组头出现一次；费率仍逐机型一行一列地设
 * （同品牌不同机型的成本线可能不一样，不能合并）。 */
.brand-bar {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: 10px var(--sp-3); background: var(--bg); border-left: 3px solid var(--brand);
  border-bottom: 1px solid var(--line-soft); font-size: var(--fs-sm);
}
.brand-bar .b { font-weight: 600; }
.brand-bar .n { color: var(--text-3); font-size: var(--fs-xs); }
.brand-bar + .tbl-wrap { margin-bottom: var(--sp-3); }

/* 列表（移动端友好） */
.list { display: flex; flex-direction: column; }
.li {
  display: flex; gap: var(--sp-3); align-items: center;
  padding: 13px 4px; border-bottom: 1px solid var(--line-soft);
}
.li:last-child { border-bottom: 0; }
.li .grow { flex: 1; min-width: 0; }
.li .t1 { font-weight: 600; font-size: var(--fs-md); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.li .t2 { font-size: var(--fs-xs); color: var(--text-3); margin-top: 3px; display: flex; gap: 10px; flex-wrap: wrap; }
.li .t3 { font-weight: 600; font-size: var(--fs-md); text-align: right; white-space: nowrap; }

/* 空态 / 加载 */
.empty { padding: 40px var(--sp-4); text-align: center; color: var(--text-3); }
.empty .big { font-size: 28px; opacity: .35; margin-bottom: var(--sp-2); }
.skel { padding: 10px 0; }
.skel i {
  display: block; height: 14px; border-radius: var(--radius-sm); margin-bottom: 10px;
  background: linear-gradient(90deg, #e9ebee 25%, #f4f5f7 37%, #e9ebee 63%);
  background-size: 400% 100%; animation: sk 1.3s ease infinite;
}
@keyframes sk { 0% { background-position: 100% 50% } 100% { background-position: 0 50% } }
.spin { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: sp .7s linear infinite; }
@keyframes sp { to { transform: rotate(360deg) } }

/* 分段控件 */
.seg { display: inline-flex; background: var(--bg-2); padding: 3px; border-radius: var(--radius-sm); gap: 2px; }
.seg button {
  border: 0; background: transparent; padding: 6px 13px; border-radius: 5px;
  cursor: pointer; color: var(--text-2); font-size: var(--fs-sm);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.seg button:hover { color: var(--text); }
.seg button.active { background: var(--card); color: var(--brand); font-weight: 600; box-shadow: var(--shadow); }
.seg.wrap { flex-wrap: wrap; }

/* 搜索行 */
.search {
  display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap;
}
.search input[type=search], .search input[type=text], .search select {
  height: 36px; padding: 0 12px; border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); background: var(--card); outline: none;
  font-size: var(--fs-sm);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.search input[type=search] { min-width: 190px; }
.search input:focus, .search select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31,58,110,.1); }

/* 分页 */
.pager { display: flex; align-items: center; gap: var(--sp-2); justify-content: flex-end; padding: var(--sp-3) var(--sp-1) var(--sp-1); }
.pager .muted { margin-right: auto; font-size: var(--fs-sm); }

/* 弹层（③ 去掉花哨弹窗动画：仅遮罩淡入 + 面板轻微淡入上移 6px/140ms，无缩放弹跳） */
.modal {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center; padding: 18px;
  background: rgba(22, 32, 52, .42);
  animation: mFade var(--dur-lg) var(--ease);
}
.modal-panel {
  background: var(--card); border-radius: var(--radius-lg); width: 100%; max-width: 560px;
  max-height: 88vh; display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: mRise var(--dur-lg) var(--ease);
}
@keyframes mFade { from { opacity: 0; } }
@keyframes mRise { from { opacity: 0; transform: translateY(6px); } }
.modal.wide .modal-panel { max-width: 860px; }
.modal-head { display: flex; align-items: center; padding: 15px var(--sp-4); border-bottom: 1px solid var(--line-soft); }
.modal-head h3 { font-size: var(--fs-lg); font-weight: 600; }
.modal-head .icon-btn { margin-left: auto; }
.modal-body { padding: var(--sp-4); overflow-y: auto; }
.modal-foot { padding: 13px var(--sp-4); border-top: 1px solid var(--line-soft); display: flex; gap: var(--sp-2); justify-content: flex-end; }

/* Toast（③ 极简：只做淡入上移 4px/140ms，无缩放） */
.toasts { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: var(--sp-2); align-items: center; pointer-events: none; }
.toast {
  background: var(--text); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  box-shadow: var(--shadow-lg); animation: tin var(--dur) var(--ease);
  max-width: 80vw; text-align: center;
}
.toast.ok { background: var(--down); } .toast.err { background: var(--up); }
@keyframes tin { from { opacity: 0; transform: translateY(4px); } }

/* 图表 */
.chart { width: 100%; height: 190px; display: block; }
.chart-legend { display: flex; gap: var(--sp-4); font-size: var(--fs-xs); color: var(--text-2); margin-top: var(--sp-2); }
.chart-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; }

/* 进度条 */
.bar { height: 6px; background: var(--bg-2); border-radius: 3px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--brand); border-radius: 3px; }

/* 描述列表 */
.dl { display: grid; grid-template-columns: 96px 1fr; gap: 10px var(--sp-3); font-size: var(--fs-sm); }
.dl dt { color: var(--text-3); }
.dl dd { margin: 0; word-break: break-all; }

/* 树形 */
.tree { font-size: var(--fs-sm); }
.tree-node { padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.tree-node:last-child { border-bottom: 0; }
.tree-line { display: inline-block; color: var(--text-3); margin-right: 6px; }

/* 商城机型卡（2026-10-10 用户要求：一排 4 个、整体紧凑缩 whitespace） */
.model {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 12px var(--sp-3);
  display: flex; flex-direction: column; gap: 4px; background: var(--card);
  transition: border-color var(--dur) var(--ease);
}
.model:hover { border-color: var(--brand-line); }
.model .row { gap: 6px; }
.model .nm { font-weight: 600; font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.model .pr { font-size: var(--fs-lg); font-weight: 700; color: var(--text); }
.model .pr small { font-size: var(--fs-xs); color: var(--text-3); font-weight: 400; margin-left: 4px; }
.model .tiny { font-size: var(--fs-xs); line-height: 1.6; }
.model .ops { margin-top: auto; padding-top: var(--sp-2); }

/* ---------------- 今日交易额强调卡（2026-10-17 二轮改版）
   用户定规「突出今日交易额」：全页唯一一块深色大卡，反白数字做视觉焦点。
   深藏蓝底 + 白字，不使用渐变（拒绝浮夸）；左侧留主色深一档的竖条增加层次。 */
/* ★ 2026-10-17 四轮：强调卡改亮蓝（用户要求「改成图标里的亮蓝色」）。
   取值实测筛选，不是随手调的：
     图标原亮青 #48aff8 → 白字对比仅 2.40:1（远低于 AA，不可用）
     本值 #1438cc           → 白字对比 8.51:1（WCAG AA）
   与图标深蓝（色相 220°）同族，一眼同源，但比图标沉稳（页面大面积用）。 */
.hero-card {
  background: var(--hero); border: 1px solid var(--hero-line);
  border-radius: var(--radius); padding: var(--sp-4);
  margin-bottom: 0; position: relative; overflow: hidden;
}
.hero-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--hero-deep);
}
.hero-lb { font-size: var(--fs-xs); color: rgba(255,255,255,.78); letter-spacing: .5px; }
.hero-vl {
  font-size: 34px; font-weight: 700; color: #fff; line-height: 1.15;
  letter-spacing: -.5px; margin-top: 6px;
}
.hero-ft { display: flex; align-items: center; gap: var(--sp-2); margin-top: var(--sp-3); }
.hero-chip {
  font-size: var(--fs-xs); font-weight: 600; color: var(--hero-deep);
  background: rgba(255,255,255,.94); border-radius: var(--radius-sm);
  padding: 3px 9px;
}
.hero-tip { font-size: var(--fs-xs); color: rgba(255,255,255,.62); }
@media (max-width: 480px) { .hero-vl { font-size: 30px; } }

/* ---------------- 平台公告紧凑样式（2026-10-17 五轮）
   用户要求「公告条太大了，上下宽度缩小到一半」。
   做法：给公告卡加 .notice-compact 类 —— 行内内边距与行高各砍约一半，
   标题字号降一档，单条公告从约 64px 压到约 34px。
   ⚠️ 只作用于首页公告，不影响其它卡片的默认留白。 */
/* ★ 实测调优：初版只压到 75%（211→158px），不够。
   继续砍：①条目上下内边距 13→4px ②标题与时间改为**同行**（时间靠右），
   单条公告从「两行 + 大留白」变成「一行 + 极小留白」，高度才真正减半。 */
.notice-compact { padding: 6px var(--sp-3) 8px; margin-bottom: var(--sp-3); }
.notice-compact .card-head { margin-bottom: 4px; }
.notice-compact .card-head h3 { font-size: var(--fs-sm); }
.notice-compact .li {
  padding: 4px 2px;                  /* 上下内边距 13px → 4px */
  align-items: center;
}
.notice-compact .li .t1 { font-size: var(--fs-sm); line-height: 1.4; }
  .notice-compact .li .t2 { margin-top: 0; font-size: 11.5px; white-space: nowrap; flex: none; }
/* 标题与时间同行：标题可省略号截断，时间固定靠右 */
.notice-row { display: flex; align-items: center; gap: var(--sp-2); }
.notice-row .t1 { flex: 1; min-width: 0; }
.notice-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 标题与时间同行：标题可省略号截断，时间固定靠右（单条公告从两行压到一行） */
.notice-row { display: flex; align-items: center; gap: var(--sp-2); }
.notice-row .t1 { flex: 1; min-width: 0; }
.notice-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 标题与时间同行：标题可省略号截断，时间固定靠右（单条公告从两行压到一行） */
.notice-row { display: flex; align-items: center; gap: var(--sp-2); }
.notice-row .t1 { flex: 1; min-width: 0; }
.notice-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 480px) {
  .notice-compact .li { padding: 4px 2px; }
  .notice-compact .li .t2 { display: none; }   /* 手机端隐藏时间，进一步压高度 */
}

/* ---------------- 紧凑筛选下拉（2026-10-18 用户定规「下拉框做小一点」）
   * 原 .search select 的 padding 8px 12px + 默认字号，在筛选行里显得又高又宽。
   * 这里给筛选行的 select 单独一档：高度 30px、字号 12px、内边距收紧，
   * 多个下拉并排时视觉密度明显提升（不影响表单里的大下拉）。 */
.filter-bar { display: flex; gap: 'var(--sp-2)'; flex-wrap: wrap; align-items: center; }
.filter-bar > label { font-size: var(--fs-xs); color: var(--text-3); margin-right: -2px; }
.filter-bar select {
  height: 30px; padding: 0 26px 0 9px; font-size: var(--fs-xs);
  color: var(--text-2); background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  cursor: pointer; max-width: 150px;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23858d9c' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center;
}
.filter-bar select:hover { border-color: var(--brand-line); }
.filter-bar select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

/* ---------------- 首页公告：滚动播报 + 详情弹层（2026-10-18 用户定规）--------
 * 需求：① 平台公告改成滚动的 ② 点公告进详情 ③ 未读加圆点标记
 * 实现要点：
 *   - 纯 CSS 动画（translateY + animation），**不用 JS 定时器** —— 省电、不掉帧；
 *   - 鼠标悬停 / 触摸时 pause（用户正在读时不该被滚走）；
 *   - `prefers-reduced-motion` 下退化为静态列表（尊重系统「减少动态效果」）；
 *   - 列表复制一份用于无缝循环（原始 n 条 + 克隆 n 条，滚完一遍正好接上）。
 */

/* ---------- 滚动容器 ---------- */
.notice-marquee {
  position: relative;
  height: 34px;                 /* 单行高度（与 notice-compact 的紧凑条目对齐） */
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 78%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 78%, transparent 100%);
  cursor: pointer;
  border-radius: var(--radius-sm);
}
.notice-marquee-track { animation: noticeRoll var(--notice-dur, 18s) linear infinite; will-change: transform; }
/* 悬停/触摸时暂停：用户正在读，不该被卷走 */
.notice-marquee:hover .notice-marquee-track,
.notice-marquee:focus-within .notice-marquee-track { animation-play-state: paused; }
@keyframes noticeRoll { from { transform: translateY(0); } to { transform: translateY(-50%); } }

/* 只有 1 条时不做滚动（复制两条看起来是重复，浪费版面） */
.notice-marquee[data-static="1"] .notice-marquee-track { animation: none; }

/* ---------- 单条公告 ---------- */
.notice-item {
  display: flex; align-items: center; gap: var(--sp-2);
  height: 34px; padding: 0 2px;
  border-radius: var(--radius-sm);
  transition: background var(--dur) var(--ease);
}
.notice-item:hover { background: var(--brand-soft); }
/* 触摸端：点一下有反馈，但不跳色 */
.notice-item:active { background: var(--brand-soft); }
.notice-item .ni-title {
  flex: 1; min-width: 0; font-size: var(--fs-sm); color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.notice-item .ni-time { flex: none; font-size: var(--fs-xs); color: var(--text-3); }
/* 未读小圆点（read=false 时渲染） */
.notice-item .ni-dot {
  flex: none; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand);
}
.notice-item .ni-tag { flex: none; }

/* ---------- 详情弹层 ---------- */
.notice-detail-title { font-size: var(--fs-lg); font-weight: 700; color: var(--text); line-height: 1.45; }
.notice-detail-meta { display: flex; align-items: center; gap: var(--sp-2); margin-top: 6px; }
.notice-detail-body {
  margin-top: var(--sp-3); padding-top: var(--sp-3);
  border-top: 1px solid var(--line-soft);
  font-size: var(--fs-md); line-height: 1.75; color: var(--text-2);
  white-space: pre-wrap; word-break: break-word;   /* 公告正文保留换行 */
  max-height: 46vh; overflow-y: auto;
}
.notice-detail-empty { color: var(--text-3); font-size: var(--fs-md); }

/* ---------- 响应式 / 无障碍 ---------- */
@media (max-width: 480px) {
  .notice-marquee, .notice-item { height: 32px; }
  .notice-detail-body { max-height: 52vh; }
}
/* 系统开启「减少动态效果」→ 关掉滚动，退化成可点击的静态列表 */
@media (prefers-reduced-motion: reduce) {
  .notice-marquee { height: auto; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .notice-marquee-track { animation: none !important; }
  .notice-item { height: auto; padding: 6px 2px; }
}

/* ---------------- 收益钱包摘要卡（2026-10-17 二轮改版）
   钱包从首页移入「我的」页后的落点卡。用资金分区色（烟棕）做左侧色条 + 极浅底，
   与首页的莫兰迪体系呼应；数字用等宽字体保证对齐。整卡可点（按钮在右下角）。 */
/* ★ 2026-10-18 重做：原布局用「绝对定位按钮 + padding-right:132px」，
 * 实测在**所有 iPhone 宽度（375~440px）都横向溢出 19px**（卡片比视口宽）——
 * 因为 480px 断点里按钮设了 left/right 又给 width:100%，宽度计算冲突撑破容器。
 * 根因：绝对定位 + 固定 padding 是脆的，容器一变宽/一变窄就崩。
 * 改法：**改用 flex 布局，按钮回归文档流**，桌面右侧、移动端换行到下方，
 * 彻底不用绝对定位 → 任何宽度都不会溢出。 */
.wallet-entry {
  cursor: pointer;
  background: var(--tone-money-soft);
  border: 1px solid var(--line); border-left: 3px solid var(--tone-money);
  border-radius: var(--radius); padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-3);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.wallet-entry:hover { border-color: var(--line-strong); border-left-color: var(--tone-money); background: #f0ebe4; }

/* 内容区与按钮同一行；空间不足时按钮自动换到下一行（flex-wrap） */
.wallet-entry {
  display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap;
}
.we-body { flex: 1 1 auto; min-width: 0; }   /* min-width:0 允许内部文本收缩，不撑破容器 */
.we-lb { font-size: var(--fs-xs); color: var(--text-3); }
.we-vl {
  font-size: var(--fs-num); font-weight: 700; color: var(--tone-money);
  line-height: 1.2; margin-top: 5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;  /* 长金额省略号，不换行撑高 */
}
.we-meta { display: flex; gap: var(--sp-4); flex-wrap: wrap; margin-top: var(--sp-2); }
.we-meta span { font-size: var(--fs-xs); color: var(--text-2); white-space: nowrap; }
.we-btn {
  flex: none;
  height: 36px; padding: 0 16px; white-space: nowrap;
  background: var(--tone-money); color: #fff; border: 1px solid var(--tone-money);
  border-radius: var(--radius-sm); cursor: pointer; font-size: var(--fs-sm); font-weight: 500;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.we-btn:hover { background: #574736; border-color: #574736; }

/* 窄屏：按钮换行到下方并占满宽度（不再用 left/right + width:100% 那套冲突写法） */
@media (max-width: 420px) {
  .we-btn { width: 100%; }
}

/* ---------------- 交易数据并排行（2026-10-17 四轮改版）
   用户要求「本月交易额放到今日交易额右侧，两个共用一条位置，这样首页才不会那么长」。
   桌面/手机都保持两列并排（金额在手机端降一档字号，避免换行把卡撑高）。 */
.trade-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3);
  margin-bottom: var(--sp-3); align-items: stretch;
}
.trade-row > .stat {
  margin-bottom: 0; display: flex; flex-direction: column; justify-content: center;
}
@media (max-width: 480px) {
  .trade-row { gap: var(--sp-2); }
  .trade-row .hero-vl { font-size: 22px; }
  .trade-row .stat .vl { font-size: 20px; }
  .trade-row .hero-lb,
  .trade-row .stat .lb { font-size: 11.5px; }
  .trade-row .hero-card,
  .trade-row > .stat { padding: var(--sp-3); }
}

/* ---------------- 指标卡分区色（2026-10-17 二轮改版）
   tone 参数的表现：左侧 3px 色条 + 极浅色底（不是大面积铺色）。
   深字压浅底对比度 ≥4.96:1，扫读依然清晰，符合金融业务可读性刚需。 */
.stat-tone { border-left: 3px solid var(--brand); padding-left: calc(var(--sp-4) - 3px); }
.stat-tone.tone-money { border-left-color: var(--tone-money); background: var(--tone-money-soft); }
.stat-tone.tone-biz   { border-left-color: var(--tone-biz);   background: var(--tone-biz-soft); }
.stat-tone.tone-trade { border-left-color: var(--tone-trade); background: var(--tone-trade-soft); }
.stat-tone.tone-team  { border-left-color: var(--tone-team);  background: var(--tone-team-soft); }
.stat.clickable.stat-tone:hover { background: var(--card); }

/* ---------------- 快捷入口宫格（2026-10-17 改版新增）
   ② 控件统一：首页四个快捷入口用同一套「图标底衬 + 文字」规格，
   替换原「裸按钮 + emoji + style 硬撑」写法；网格列数自适应（宽 4 列、窄 2 列）。
   ③ 动效：hover 只换底色与描边，不做位移/缩放。 */
.quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--sp-3); }
.quick-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-2);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.quick-item:hover { border-color: var(--brand-line); background: #fbfcfe; }
/* 图标底衬跟随分区色（.tone-xxx 由 JS 挂在 .quick-item 上） */
.quick-ic {
  width: 44px; height: 44px; border-radius: var(--radius);
  background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-size: 21px; line-height: 1;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.tone-money .quick-ic { background: var(--tone-money-soft); color: var(--tone-money); }
.tone-biz   .quick-ic { background: var(--tone-biz-soft);   color: var(--tone-biz); }
.tone-trade .quick-ic { background: var(--tone-trade-soft); color: var(--tone-trade); }
.tone-team  .quick-ic { background: var(--tone-team-soft);  color: var(--tone-team); }
.quick-tx { font-size: var(--fs-sm); color: var(--text-2); font-weight: 500; }
@media (max-width: 480px) {
  .quick-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* 邀请码 */
.code-box {
  display: flex; align-items: center; gap: 10px;
  background: var(--brand-soft); border: 1px dashed var(--brand-line);
  border-radius: var(--radius); padding: var(--sp-3);
}
.code-box .cd { font-size: var(--fs-lg); font-weight: 700; letter-spacing: 1.5px; color: var(--brand); font-family: ui-monospace, Menlo, monospace; }

/* ---------------- 费率时间阶梯（2026-10-03） ----------------
   嵌在「设置费率」弹层里的两个板块：① 阶梯费率（可编辑）② 阶梯生效预览（只读）。
   三列输入 + 一个删除按钮，每行一条网格线，手机上也能点得到。 */
.tier-editor {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg); padding: var(--sp-3);
}
.tier-head { display: flex; align-items: center; gap: 10px; }
.tier-head .tier-title { font-size: var(--fs-sm); font-weight: 600; color: var(--text); }
.tier-head .btn { margin-left: auto; }
.tier-cols, .tier-row {
  display: grid; grid-template-columns: 22px minmax(0,1.15fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1.35fr) 34px;
  gap: 8px; align-items: center;
}
.tier-cols { margin: 10px 0 var(--sp-1); font-size: var(--fs-xs); color: var(--text-3); }
.tier-cols span { text-align: center; white-space: nowrap; }
.tier-cols span:nth-child(2) { text-align: left; }
.tier-rows:empty { display: none; }
.tier-row {
  padding: 7px 0; border-top: 1px solid var(--line-soft);
}
.tier-row .tier-ix { font-size: var(--fs-xs); color: var(--text-3); text-align: center; }
/* 「提高多少」换算出来的结算价（2026-10-04 加），只读小字 */
.tier-row .tier-abs { font-size: var(--fs-xs); color: var(--text-3); text-align: center; }
.tier-row input {
  width: 100%; padding: 7px 9px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--card); outline: none; font-size: var(--fs-sm); text-align: center;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.tier-row input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31,58,110,.12); }
.tier-row .tier-del { padding: 5px 0; width: 34px; text-align: center; color: var(--text-3); }
.tier-tip { margin: 8px 0 0; line-height: 1.6; }
.tier-preview {
  margin-top: var(--sp-2); padding: var(--sp-3); border-radius: var(--radius-sm);
  background: var(--card); border: 1px solid var(--line);
}
.tier-preview > div { line-height: 1.75; }
.tier-warn { color: var(--warn); }

/* 仅移动端 / 仅桌面 */
.only-mobile { display: none !important; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1080px) {
  .grid.c5 { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .grid.c4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 820px) {
  .side {
    transform: translateX(-100%); transition: transform .22s ease;
    width: 250px; box-shadow: 0 0 40px -10px rgba(20,26,45,.4);
  }
  .side.open { transform: none; }
  .main { margin-left: 0; }
  .only-mobile { display: inline-flex !important; }
  .view { padding: 12px 12px calc(var(--tab-h) + 20px); }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 32;
    height: calc(var(--tab-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(255,255,255,.96); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
  }
  .tabbar button {
    flex: 1; border: 0; background: transparent; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    color: var(--text-3); font-size: 11px; padding: 4px 0;
  }
  .tabbar button .ic { font-size: 18px; line-height: 1; }
  .tabbar button.active { color: var(--brand); }
  .topbar { padding: 0 12px; }
  .grid.c3, .grid.c5 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid.c4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stat .vl { font-size: 22px; }  /* 移动端略降，保证长金额不撑破卡片 */
  .dl { grid-template-columns: 84px 1fr; }
  .modal-panel { max-width: none; max-height: 92vh; border-radius: 16px; }
}
@media (max-width: 480px) {
  .grid.c2, .grid.c3, .grid.c4, .grid.c5 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid.c2.keep { grid-template-columns: 1fr; }
  /* 三卡组（商户/机具/待处理）在 390px 屏下两列会把数字压到换行，
     改单列纵向排列：每张卡一整行，金额不折行、可点区域更大。 */
  .grid.c3.stack-xs { grid-template-columns: 1fr; }
  .search input[type=search] { min-width: 0; flex: 1; }
  .hide-xs { display: none !important; }
  .topbar-right { gap: 6px; }
  .pill.me { max-width: 104px; }
  /* 费率阶梯：手机上改成两行一条（天数换行到第二行放扫码），否则四个输入挤成一条看不清 */
  .tier-cols { display: none; }
  .tier-row {
    grid-template-columns: 20px minmax(0,1fr) minmax(0,1fr) 32px;
    grid-template-areas: "ix days swipe del" ". qr qr ." ". abs abs .";
    row-gap: 6px;
  }
  .tier-row > :nth-child(1) { grid-area: ix; }
  .tier-row > :nth-child(2) { grid-area: days; }
  .tier-row > :nth-child(3) { grid-area: swipe; }
  .tier-row > :nth-child(4) { grid-area: qr; }
  .tier-row > :nth-child(5) { grid-area: abs; }
  .tier-row > :nth-child(6) { grid-area: del; }
}

/* 2026-10-16 管理员侧栏分类配色（navColor 四类：业务/资金收益/渠道接口/展示辅助）
 * ★ 2026-10-17 改版：原四色为米黄/草绿/天蓝/浅橙，属高饱和暖亮色系，与「稳重克制」定调冲突。
 *   统一降为中性冷灰的四级层次（仅靠明度区分，不靠色相），保持分类可辨但不喧宾夺主。
 *   选中态仍由 .nav-item.active 的主色浅底承担，分类底色只在未选中时提供极弱分区感。 */
.nav-cat{padding:14px 18px 4px;font-size:11px;color:var(--text-3);letter-spacing:1.5px;font-weight:600;}
#side .nav-item.navc-biz { background:#f4f5f7; }
#side .nav-item.navc-money{ background:#eef1f5; }
#side .nav-item.navc-chan { background:#e9edf2; }
#side .nav-item.navc-aux  { background:#f6f7f8; }
#side .nav-item.navc-biz:hover,
#side .nav-item.navc-money:hover,
#side .nav-item.navc-chan:hover,
#side .nav-item.navc-aux:hover { background:#e4e8ed; }
