/* 移动端外壳：客户端 / 维修端共用 */
body.m-body {
  background:
    radial-gradient(900px 600px at 15% -10%, #dbe7ff 0%, transparent 60%),
    radial-gradient(800px 500px at 100% 110%, #d8f4ef 0%, transparent 55%),
    #e9eff7;
}
.app {
  max-width: 480px; margin: 0 auto; min-height: 100dvh; background: var(--bg);
  position: relative; display: flex; flex-direction: column;
  box-shadow: 0 0 90px rgba(7, 24, 46, 0.16);
  overflow: hidden;
}
.app-main { flex: 1; min-height: 0; }
.page { padding: 16px 16px calc(30px + env(safe-area-inset-bottom)); }
.page.with-tab { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
.page.with-action { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

/* ---------- 顶部深色区 ---------- */
.m-hero {
  position: relative; color: #fff; padding: 14px 18px 58px; overflow: hidden;
  background:
    radial-gradient(120% 120% at 100% 0%, #2f74ff 0%, #123a6b 45%, #07182e 100%);
  border-radius: 0 0 26px 26px;
}
.m-hero::before {
  content: ""; position: absolute; inset: 0; opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(120% 90% at 80% 0%, #000 0%, transparent 72%);
}
.m-hero::after {
  content: ""; position: absolute; width: 300px; height: 300px; right: -120px; top: -160px;
  background: radial-gradient(circle, rgba(64, 134, 255, 0.55), transparent 65%);
  border-radius: 50%; pointer-events: none;
}
.m-hero > * { position: relative; z-index: 1; }
.m-hero.plain { padding-bottom: 26px; }

.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brandline { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brandline .name { font-size: 15px; font-weight: 700; letter-spacing: 0.01em; }
.brandline .sub { font-size: 10px; color: rgba(255, 255, 255, 0.55); letter-spacing: 0.14em; margin-top: 1px; }
.hero-greeting { margin-top: 24px; }
.hero-greeting .hi { font-size: 13px; color: rgba(255, 255, 255, 0.66); }
.hero-greeting h1 { font-size: 23px; font-weight: 700; letter-spacing: -0.02em; margin-top: 5px; line-height: 1.3; }
.hero-greeting .meta { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 99px;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 11.5px; color: rgba(255, 255, 255, 0.86); backdrop-filter: blur(6px);
}
.hero-pill .ico { width: 12px; height: 12px; opacity: 0.9; }

/* ---------- 子页头 ---------- */
.sub-head {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; background: rgba(244, 247, 251, 0.86); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(231, 236, 244, 0.7);
}
.sub-head h2 { font-size: 16px; font-weight: 700; flex: 1; letter-spacing: -0.01em; }
.sub-head .icon-btn { background: #fff; }
.sub-head .actions { display: flex; gap: 8px; }

/* ---------- 底部导航 ---------- */
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 480px;
  z-index: 50; display: flex; padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.93); backdrop-filter: blur(18px) saturate(1.2);
  border-top: 1px solid rgba(231, 236, 244, 0.9);
}
.tab-item {
  flex: 1; border: 0; background: transparent; display: flex; flex-direction: column; align-items: center;
  gap: 3px; color: #94a2b6; font-size: 10.5px; font-weight: 600; padding: 3px 0; position: relative;
}
.tab-item .ico { width: 22px; height: 22px; }
.tab-item.on { color: var(--brand); }
.tab-item.on::before {
  content: ""; position: absolute; top: -9px; width: 22px; height: 3px; border-radius: 0 0 3px 3px;
  background: var(--brand);
}
.tab-item .badge {
  position: absolute; top: -2px; right: 50%; transform: translateX(22px);
  min-width: 15px; height: 15px; padding: 0 4px; border-radius: 99px; background: var(--red);
  color: #fff; font-size: 9px; display: grid; place-items: center; border: 1.5px solid #fff;
}

/* ---------- 底部操作条 ---------- */
.action-bar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 480px;
  z-index: 45; display: flex; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(16px);
  border-top: 1px solid rgba(231, 236, 244, 0.9);
}
.action-bar .btn { flex: 1; height: 46px; border-radius: 13px; }
.action-bar .btn.auto { flex: 0 0 auto; padding: 0 16px; }
.action-tip { font-size: 11px; color: var(--soft); text-align: center; padding-top: 4px; }

/* ---------- 底部弹层 ---------- */
.overlay.sheet { align-items: flex-end; padding: 0; }
.overlay.sheet .modal {
  max-width: 480px; border-radius: 22px 22px 0 0; transform: translateY(100%);
  max-height: 88dvh; padding-bottom: env(safe-area-inset-bottom);
}
.overlay.sheet.open .modal { transform: none; }
.overlay.sheet .modal::before {
  content: ""; display: block; width: 38px; height: 4px; border-radius: 99px; background: #e2e8f1;
  margin: 9px auto -4px;
}
.modal-hd .close { margin-top: -4px; }

/* ---------- 通用移动卡片 ---------- */
.m-card {
  background: #fff; border-radius: var(--radius); padding: 16px;
  border: 1px solid rgba(15, 29, 51, 0.045); box-shadow: var(--shadow-sm);
}
.m-card + .m-card { margin-top: 12px; }
.m-section { margin-top: 22px; }
.m-section-hd { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 10px; }
.m-section-title { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; display: flex; align-items: center; gap: 7px; }
.m-section-title .bar { width: 3px; height: 15px; border-radius: 2px; background: var(--brand); }
.m-section-more { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 1px; }

/* 统计小条 */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat-box {
  background: #fff; border-radius: 14px; padding: 12px 13px; border: 1px solid rgba(15, 29, 51, 0.045);
  box-shadow: var(--shadow-sm);
}
.stat-box .num { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.stat-box .num small { font-size: 11px; font-weight: 600; color: var(--soft); margin-left: 2px; }
.stat-box .lbl { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.stat-box.brand { background: linear-gradient(150deg, #2f74ff, #1b5bf7 55%, #1444cd); color: #fff; border: 0; box-shadow: 0 10px 24px rgba(27, 91, 247, 0.28); }
.stat-box.brand .lbl { color: rgba(255, 255, 255, 0.72); }
.stat-box.brand .num small { color: rgba(255, 255, 255, 0.6); }

/* 列表进入动画 */
.stagger > * { animation: fadeIn 0.4s var(--ease) both; }
.stagger > *:nth-child(1) { animation-delay: 0.02s; }
.stagger > *:nth-child(2) { animation-delay: 0.06s; }
.stagger > *:nth-child(3) { animation-delay: 0.1s; }
.stagger > *:nth-child(4) { animation-delay: 0.14s; }
.stagger > *:nth-child(5) { animation-delay: 0.18s; }
.stagger > *:nth-child(6) { animation-delay: 0.22s; }
