/* ════════════════════════════════════════════════════════════════
 * Mulee Aurora Light · Portal + Mulee 共享主题
 * ────────────────────────────────────────────────────────────────
 * 4 个 HTML 都 <link> 这个文件
 * 改主题色 = 改本文件，不需要动 4 处
 * 与 ERP 的 layout.less 保持设计语言完全一致
 * ────────────────────────────────────────────────────────────────
 * [Mulee 2026-06-11 DS] 本文件是统一设计系统的 token 落地层。
 * 单一事实源（canonical spec）：docs/mulee-design-system-2026-06-11.md
 * 同步点：本文件 :root ↔ jshERP-web/src/views-mobile/styles/m-ui.less
 *        ↔ jshERP-web/src/assets/less/theme.less（三处 hex 逐字一致）
 * 迁移约定：旧 token 名一律保留（只改值/不删名）；规范新增语义
 * 一律走 --ds-* 前缀与 .ds-* 组件类，渐进迁移、零破坏。
 * ════════════════════════════════════════════════════════════════ */

:root {
  /* ─── 背景层 ─── */
  /* [Mulee 2026-06-11 DS] --bg 旧值 #f6f7fb 已废，规范页底统一 #f5f6fa */
  --bg: #f5f6fa;
  --bg-soft: #f8f9fc;
  --surface: #ffffff;
  --surface2: #f4f6fb;
  --surface3: #eef2ff;

  /* ─── 边框 ─── */
  --border: #eef0f5;
  --border2: #e4e7ef;
  --border3: #d8dde8;

  /* ─── 品牌色（与 ERP 完全一致）─── */
  --accent: #4e7fff;
  --accent2: #8b5cf6;
  --accent-hover: #6b91ff;
  --accent2-hover: #a78bfa;
  --gradient: linear-gradient(135deg, #4e7fff 0%, #8b5cf6 100%);
  --gradient-r: linear-gradient(90deg, #4e7fff 0%, #8b5cf6 100%);
  --gradient-soft: linear-gradient(135deg, rgba(78,127,255,.10) 0%, rgba(139,92,246,.10) 100%);
  --gradient-softer: linear-gradient(135deg, rgba(78,127,255,.05) 0%, rgba(139,92,246,.05) 100%);

  /* ─── 文字 ─── */
  /* [Mulee 2026-06-11 DS] --text 旧值 #1a1f2e 已废，规范主墨统一 #0a0e27 */
  --text: #0a0e27;
  --text2: #5a6478;
  --text3: #9aa3b5;
  --text-on-primary: #ffffff;

  /* ─── 语义色 ─── */
  --green: #0d9488; /* [Mulee 2026-06-11 DS2] 完成青统一(旧 #10b981 退辅) */
  --green-soft: rgba(13, 148, 136, 0.10);
  --red: #ef4444;
  --red-soft: rgba(239, 68, 68, 0.10);
  --orange: #f59e0b;
  --orange-soft: rgba(245, 158, 11, 0.10);
  /* [Mulee 2026-06-11 DS] --gold = 金额橙，旧值 #f59e0b 已废，规范统一 #fa8c16（一切金额数字） */
  --gold: #fa8c16;
  --cyan: #06b6d4;
  --cyan-soft: rgba(6, 182, 212, 0.10);

  /* ─── 圆角 ─── */
  --r-sm: 6px;
  --r: 10px;
  /* [Mulee 2026-06-11 DS] --r-lg 14→12（规范卡圆角 12）、--r-xl 18→16（规范弹窗/抽屉 16） */
  --r-lg: 12px;
  --r-xl: 16px;

  /* ─── 阴影 ─── */
  /* [Mulee 2026-06-11 DS] 对齐规范：卡 0 1px 2px slate.04；悬浮 .10；焦点 .12；品牌钮 .30 */
  --shadow-card: 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-card-hover: 0 4px 24px rgba(78, 127, 255, .10);
  --shadow-card-elevated: 0 12px 32px rgba(78, 127, 255, .15);
  --shadow-focus: 0 0 0 3px rgba(78, 127, 255, 0.12);
  --shadow-primary: 0 4px 14px rgba(78, 127, 255, .30);

  /* ─── 字体 ─── */
  --font: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei UI', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Cascadia Code', Menlo, Consolas, monospace;

  /* ════════════════════════════════════════════════════════════
   * [Mulee 2026-06-11 DS] 规范新增语义 token（--ds-* 前缀，渐进迁移）
   * 出处：docs/mulee-design-system-2026-06-11.md §1-§4
   * ════════════════════════════════════════════════════════════ */
  /* 颜色补档 */
  --ds-text4: #6b7280;            /* 墨灰第四档（按钮文字灰） */
  --ds-zebra: #fafbfc;            /* 斑马：偶数行/内嵌小卡 */
  --ds-accent-active: #3a6eef;    /* 品牌蓝 active */
  --ds-red-deep: #dc2626;         /* 危红·深 */
  --ds-red-deepest: #cf1322;      /* 危红·极深 */
  --ds-teal: #0d9488;             /* 完成青（入库/完成语义，辅 = --green） */
  --ds-teal-soft: rgba(13, 148, 136, 0.10);
  --ds-orange-text: #b45309;      /* 警橙文字档 */
  --ds-amount: var(--gold);       /* 金额橙别名（一切金额数字） */
  /* 等级四档（标签用填充，大数字用 num 档） */
  --ds-lv1: #2563eb;  --ds-lv1-bg: #e8f0fe;
  --ds-lv2: #b45309;  --ds-lv2-bg: #fef0dc;  --ds-lv2-num: #f59e0b;
  --ds-lv3: #ef4444;                          --ds-lv3-num: #dc2626;
  --ds-lv4: #dc2626;                          --ds-lv4-num: #991b1b;
  /* 圆角语义档（§2：卡12/钮10/输入10/chip16-20/标签7/弹窗16/抽屉16 16 0 0） */
  --ds-r-card: 12px;
  --ds-r-btn: 10px;
  --ds-r-input: 10px;
  --ds-r-chip: 18px;
  --ds-r-tag: 7px;
  --ds-r-modal: 16px;
  --ds-r-drawer: 16px 16px 0 0;
  /* 间距 8 网格（§2） */
  --ds-sp-1: 4px;  --ds-sp-2: 8px;   --ds-sp-3: 12px;  --ds-sp-4: 16px;
  --ds-sp-5: 20px; --ds-sp-6: 24px;  --ds-sp-8: 32px;
  /* 阴影语义档（§2） */
  --ds-shadow-card: 0 1px 2px rgba(15, 23, 42, .04);
  --ds-shadow-float: 0 4px 24px rgba(78, 127, 255, .10);
  --ds-shadow-btn: 0 4px 14px rgba(78, 127, 255, .30);
  /* 控件高度（§4：CTA46/弹窗主钮44/行内32-36/输入≥44/可点≥40） */
  --ds-h-cta: 46px;
  --ds-h-btn: 44px;
  --ds-h-btn-sm: 36px;
  --ds-h-input: 44px;
  --ds-h-touch: 40px;
}

/* ════════════════════════════════════════════════════════════════
 * 全局 reset
 * ════════════════════════════════════════════════════════════════ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "tnum";
  min-height: 100vh;
}

input, select, button, textarea {
  font-family: inherit;
  font-feature-settings: "tnum";
}

/* 滚动条精修 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d0d6e3; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #a8b2c5; }

::selection { background: rgba(78,127,255,.18); color: var(--text); }

/* ════════════════════════════════════════════════════════════════
 * 装饰背景球（Aurora 的核心视觉签名）
 * ════════════════════════════════════════════════════════════════ */
.bg-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.bg-blob.b1 {
  width: 480px; height: 480px;
  background: var(--accent);
  top: -150px; left: -150px;
}
.bg-blob.b2 {
  width: 420px; height: 420px;
  background: var(--accent2);
  bottom: -100px; right: -100px;
}

/* ════════════════════════════════════════════════════════════════
 * 共享组件类（页面可直接使用，不用重复写样式）
 * ════════════════════════════════════════════════════════════════ */

/* ─── 玻璃卡片（核心容器）─── */
.glass-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card-elevated);
}

.solid-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}

/* ─── 渐变文字（标题专用）─── */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ─── 品牌方块（Logo 容器）─── */
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px; height: 60px;
  background: var(--gradient);
  border-radius: 16px;
  box-shadow: var(--shadow-primary), 0 0 0 1px rgba(255,255,255,0.5) inset;
  color: #fff;
  font-weight: 700;
  font-size: 26px;
}
.brand-mark.sm { width: 32px; height: 32px; border-radius: 9px; font-size: 14px; }
.brand-mark.md { width: 40px; height: 40px; border-radius: 11px; font-size: 18px; }
.brand-mark img { width: 70%; height: 70%; display: block; }

/* ─── 加载 spinner ─── */
.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--surface2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: aurora-spin 1s linear infinite;
}
.spinner.lg { width: 50px; height: 50px; border-width: 3px; }
@keyframes aurora-spin { to { transform: rotate(360deg); } }

/* ─── 主按钮（渐变填充）─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 18px;
  background: var(--gradient);
  border: none;
  border-radius: var(--r);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-primary);
  transition: all 0.18s ease;
  font-family: inherit;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(78,127,255,.42);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
  box-shadow: var(--shadow-primary);
}
.btn-primary.lg {
  padding: 14px 20px;
  font-size: 15px;
  border-radius: var(--r);
}
.btn-primary.full { width: 100%; }

/* ─── 次按钮（描边 hover 蓝紫）─── */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--r);
  color: var(--text2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}
.btn-ghost:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--surface3);
}

/* ─── 输入框 ─── */
.input,
input.input,
select.input,
textarea.input {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--border2);
  border-radius: var(--r);
  padding: 12px 14px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: all 0.15s ease;
}
.input:hover { border-color: var(--border3); }
.input:focus {
  border-color: var(--accent);
  box-shadow: var(--shadow-focus);
}
.input:disabled {
  background: var(--surface2);
  color: var(--text3);
  cursor: not-allowed;
}

/* ─── Tab 切换 ─── */
/* [Mulee 2026-06-11 DS] 对齐规范 §4 状态 tabs：灰底胶囊、选中=深墨 */
.tab-group {
  display: flex;
  background: var(--surface2);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}
.tab-item {
  flex: 1;
  padding: 9px 14px;
  text-align: center;
  border-radius: 999px;
  font-size: 13px;
  color: var(--text2);
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}
.tab-item:hover { color: var(--text); }
.tab-item.active {
  background: var(--text);
  color: #fff;
  font-weight: 600;
  box-shadow: var(--shadow-card);
}

/* ─── 徽章 ─── */
/* [Mulee 2026-06-11 DS] 对齐规范 §3 状态标签：11/800/3px 9px，圆角 7 */
.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: var(--ds-r-tag);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2px;
}
.badge.gradient {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 2px 6px rgba(78,127,255,.3);
}
.badge.accent {
  background: rgba(78,127,255,.10);
  color: var(--accent);
}
.badge.accent2 {
  background: rgba(139,92,246,.10);
  color: var(--accent2);
}
.badge.green   { background: var(--green-soft); color: var(--green); }
.badge.red     { background: var(--red-soft); color: var(--red); }
.badge.orange  { background: var(--orange-soft); color: var(--orange); }
.badge.cyan    { background: var(--cyan-soft); color: var(--cyan); }
.badge.neutral { background: var(--surface2); color: var(--text2); }

/* ─── 提示条 ─── */
.tip-box {
  background: var(--gradient-softer);
  border-left: 3px solid var(--accent);
  padding: 10px 14px;
  border-radius: var(--r-sm);
  font-size: 12.5px;
  color: var(--text2);
  line-height: 1.55;
}
.tip-box.ok   { background: var(--green-soft); border-left-color: var(--green); color: #0d9488; } /* [DS2] */
.tip-box.err  { background: var(--red-soft); border-left-color: var(--red); color: #dc2626; /* [DS2] */ }
.tip-box.warn { background: var(--orange-soft); border-left-color: var(--orange); color: var(--ds-orange-text); } /* [Mulee 2026-06-11 DS] 同值 token 化 */

/* ─── 头像 ─── */
.av {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  flex-shrink: 0;
}
.av.sm { width: 24px; height: 24px; font-size: 11px; }
.av.lg { width: 44px; height: 44px; font-size: 15px; }

/* ─── 表格基础（重设计：蓝紫渐变表头 + 渐变下划线 + 斑马纹）─── */
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.tbl thead tr {
  position: relative;
}
.tbl thead tr::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--gradient-r);
  opacity: 0.5;
  pointer-events: none;
}
.tbl thead th {
  text-align: left;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(78,127,255,.07) 0%, rgba(139,92,246,.05) 100%);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  border-bottom: 0;
  white-space: nowrap;
}
.tbl tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.tbl tbody tr:nth-child(even) td {
  background: rgba(78,127,255,.015);
}
.tbl tbody tr:hover td {
  background: rgba(78,127,255,.04);
}
.tbl tbody tr:last-child td { border-bottom: 0; }

/* ─── 微动画 ─── */
@keyframes aurora-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes aurora-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes aurora-pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.7; }
}

.fade-up { animation: aurora-fade-up 0.45s ease both; }
.fade-in { animation: aurora-fade-in 0.3s ease both; }
.bg-blob.animated {
  animation: aurora-pulse 7s ease-in-out infinite;
}
.bg-blob.b2.animated { animation-duration: 9s; animation-direction: reverse; }

/* ─── 链接 ─── */
a.link, .link {
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease;
}
a.link:hover, .link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* ─── 数字等宽 ─── */
.tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* ─── 容器宽度 ─── */
.container-narrow { max-width: 440px; margin: 0 auto; }
.container-mid { max-width: 720px; margin: 0 auto; }
.container-wide { max-width: 1400px; margin: 0 auto; }

/* ════════════════════════════════════════════════════════════════
 * Aurora Tea Loader · Cute Tea 奶茶可爱风（方案 B）
 * ────────────────────────────────────────────────────────────────
 * 用法：
 *   <div class="atl-page">
 *     <div class="atl-cup">
 *       <div class="atl-steam"><span></span><span></span><span></span></div>
 *       <div class="atl-straw"></div>
 *       <div class="atl-foam"></div>
 *       <div class="atl-body">
 *         <div class="atl-liquid"></div>
 *         <div class="atl-pearl"></div><div class="atl-pearl"></div>
 *         <div class="atl-pearl"></div><div class="atl-pearl"></div>
 *       </div>
 *       <div class="atl-brand">MULEE</div>
 *     </div>
 *     <div class="atl-text">
 *       <div class="atl-title"><span class="atl-emoji">🧋</span>正在为你冲泡 Mulee</div>
 *       <div class="atl-sub">珍珠和数据都需要时间慢慢沉淀</div>
 *     </div>
 *   </div>
 * ════════════════════════════════════════════════════════════════ */

.atl-page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  min-height: 100vh;
  justify-content: center;
  padding: 20px;
}

.atl-cup {
  position: relative;
  width: 120px;
  height: 140px;
  animation: atl-wobble 2.4s ease-in-out infinite;
}
@keyframes atl-wobble {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}

/* 蒸汽 */
.atl-steam {
  position: absolute;
  left: 50%; top: -30px;
  transform: translateX(-50%);
  width: 60px; height: 30px;
  pointer-events: none;
}
.atl-steam span {
  position: absolute; bottom: 0;
  width: 4px; height: 20px;
  border-radius: 2px;
  background: linear-gradient(180deg, transparent, rgba(139,92,246,.4) 50%, rgba(78,127,255,.6));
  animation: atl-steam 2s ease-out infinite;
  opacity: 0;
}
.atl-steam span:nth-child(1) { left: 14px; animation-delay: 0s; }
.atl-steam span:nth-child(2) { left: 28px; animation-delay: .5s; }
.atl-steam span:nth-child(3) { left: 42px; animation-delay: 1s; }
@keyframes atl-steam {
  0% { opacity: 0; transform: translateY(0) scaleY(1); }
  30% { opacity: .8; }
  100% { opacity: 0; transform: translateY(-30px) scaleY(.6); }
}

/* 杯盖（foam）*/
.atl-foam {
  position: absolute;
  left: 50%; top: 8px;
  transform: translateX(-50%);
  width: 108px; height: 36px;
  background: #ffffff;
  border-radius: 54px 54px 30px 30px / 36px 36px 12px 12px;
  border: 2px solid #e4e7ef;
  border-bottom: none;
  box-shadow: inset 0 -8px 0 0 #f4f6fb;
  z-index: 3;
}
.atl-foam::before {
  content: '';
  position: absolute;
  left: 14px; top: 6px;
  width: 14px; height: 8px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #e4e7ef;
}
.atl-foam::after {
  content: '';
  position: absolute;
  right: 18px; top: 8px;
  width: 10px; height: 6px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #e4e7ef;
}

/* 杯身 */
.atl-body {
  position: absolute;
  left: 50%; top: 36px;
  transform: translateX(-50%);
  width: 96px; height: 96px;
  background: #ffffff;
  border: 2px solid #e4e7ef;
  border-radius: 6px 6px 36px 36px / 6px 6px 30px 30px;
  overflow: hidden;
  z-index: 2;
}

/* 奶茶液体（蓝紫渐变）*/
.atl-liquid {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 72%;
  background: linear-gradient(180deg, rgba(78,127,255,.85) 0%, rgba(139,92,246,.95) 100%);
  overflow: hidden;
}
.atl-liquid::before {
  content: '';
  position: absolute;
  left: -50%; top: -8px;
  width: 200%; height: 16px;
  background:
    radial-gradient(ellipse at 30% 50%, #fff 0%, transparent 50%),
    radial-gradient(ellipse at 70% 50%, rgba(255,255,255,.7) 0%, transparent 50%);
  opacity: .4;
  animation: atl-wave 3s linear infinite;
}
@keyframes atl-wave {
  to { transform: translateX(50%); }
}

/* 珍珠 */
.atl-pearl {
  position: absolute;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #1a1f2e, #0a0d1a);
  box-shadow: 0 0 4px rgba(255,255,255,.4) inset;
  bottom: 5px;
  animation: atl-rise 3s ease-in-out infinite;
}
.atl-body .atl-pearl:nth-of-type(1) { left: 22%; animation-delay: 0s; }
.atl-body .atl-pearl:nth-of-type(2) { left: 42%; animation-delay: .6s; }
.atl-body .atl-pearl:nth-of-type(3) { left: 62%; animation-delay: 1.2s; }
.atl-body .atl-pearl:nth-of-type(4) { left: 78%; animation-delay: 1.8s; }
@keyframes atl-rise {
  0% { transform: translateY(0); opacity: .9; }
  60% { transform: translateY(-40px); opacity: 1; }
  100% { transform: translateY(-60px); opacity: 0; }
}

/* 杯子标签 */
.atl-brand {
  position: absolute;
  left: 50%; top: 58%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 6px;
  padding: 3px 7px;
  font-size: 9px;
  font-weight: 700;
  color: #4e7fff;
  letter-spacing: .5px;
  box-shadow: 0 1px 3px rgba(78,127,255,.2);
  z-index: 4;
}

/* 吸管 */
.atl-straw {
  position: absolute;
  left: 50%; top: -12px;
  transform: translateX(50%) rotate(8deg);
  width: 8px; height: 60px;
  background: linear-gradient(90deg, #8b5cf6 0%, #4e7fff 50%, #8b5cf6 100%);
  background-size: 8px 12px;
  border-radius: 4px;
  z-index: 4;
}

/* 文字 */
.atl-text {
  text-align: center;
  animation: aurora-fade-up .5s ease both;
}
.atl-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: .5px;
  margin-bottom: 6px;
}
.atl-emoji {
  display: inline-block;
  animation: atl-bounce 1.6s ease-in-out infinite;
  margin-right: 4px;
}
@keyframes atl-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.atl-sub {
  font-size: 12.5px;
  color: var(--text3);
}

/* 紧凑版（inline 在卡片或弹窗里）*/
.atl-mini {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.atl-mini .atl-cup {
  transform: scale(.55);
  transform-origin: center;
  width: 66px;
  height: 77px;
  margin: -16px -20px;
}

/* ════════════════════════════════════════════════════════════════
 * [Mulee 2026-06-11 DS] 规范控件层（新增 .ds-* 命名空间，与旧类并存）
 * ────────────────────────────────────────────────────────────────
 * 出处：docs/mulee-design-system-2026-06-11.md §4 控件
 * 旧类（.btn-primary/.btn-ghost/.input/.badge…）一律保留不删；
 * 新页面/重构页面改用下面这套，老页面渐进迁移。
 * ════════════════════════════════════════════════════════════════ */

/* ─── 按钮层级（§4 全系统统一五档）─── */
.ds-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 18px;
  min-height: var(--ds-h-btn-sm);
  border: none;
  border-radius: var(--ds-r-btn);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}
.ds-btn:disabled { opacity: .55; cursor: not-allowed; }
/* 1. 品牌 CTA（登录/新增大入口/FAB）= 渐变底白字，手机高 46 */
.ds-btn-cta {
  background: var(--gradient);
  color: #fff;
  min-height: var(--ds-h-cta);
  box-shadow: var(--ds-shadow-btn);
}
/* 2. 弹窗/流程主钮 = 深墨白字，44 */
.ds-btn-ink {
  background: var(--text);
  color: #fff;
  min-height: var(--ds-h-btn);
}
/* 3. 行内主操作 = 蓝实底（或深墨小钮）32-36 */
.ds-btn-blue { background: var(--accent); color: #fff; }
.ds-btn-blue:active { background: var(--ds-accent-active); }
/* 4. 次按钮 = 灰底墨字 */
.ds-btn-sec { background: #f5f5f7; color: var(--text); }
/* 5. 危险 = 红描边白底（轻）/ 红实底（重） */
.ds-btn-danger {
  background: var(--surface);
  color: var(--red);
  border: 1px solid var(--red);
}
.ds-btn-danger.solid { background: var(--red); color: #fff; border: none; }
/* 全屏宽 */
.ds-btn-full { width: 100%; }

/* ─── 卡片（§4：白面 12 圆角 line 边 + 微阴影）─── */
.ds-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--ds-r-card);
  box-shadow: var(--ds-shadow-card);
}

/* ─── 输入（§4：手机 ≥44 高、圆角 10、聚焦蓝描边 + 3px 蓝晕）─── */
.ds-input {
  width: 100%;
  min-height: var(--ds-h-input);
  background: var(--surface);
  border: 1.5px solid var(--border2);
  border-radius: var(--ds-r-input);
  padding: 10px 14px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: all 0.15s ease;
}
.ds-input:hover { border-color: var(--border3); }
.ds-input:focus { border-color: var(--accent); box-shadow: var(--shadow-focus); }
.ds-input:disabled { background: var(--surface2); color: var(--text3); cursor: not-allowed; }

/* ─── 筛选 chips（§4：白底 line2 边、选中=蓝实底白字）─── */
.ds-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  min-height: 32px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--ds-r-chip);
  font-size: 12px;
  font-family: inherit;
  color: var(--text2);
  cursor: pointer;
  transition: all 0.15s ease;
}
.ds-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ─── 状态标签（§3：11/800/3px 9px，圆角 7；等级四档用填充）─── */
.ds-tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: var(--ds-r-tag);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.2px;
}
.ds-tag.lv1 { background: var(--ds-lv1-bg); color: var(--ds-lv1); }
.ds-tag.lv2 { background: var(--ds-lv2-bg); color: var(--ds-lv2); }
.ds-tag.lv3 { background: var(--red-soft);  color: var(--ds-lv3); }
.ds-tag.lv4 { background: rgba(220, 38, 38, .12); color: var(--ds-lv4); }

/* ─── 金额（§3：金额 700 橙 + tabular-nums）─── */
.ds-amount {
  color: var(--ds-amount);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}
