/* ============================================================================
   StoreOS 手机端 V2 · 组件骨架（v621）
   - 18 个 mv-* 组件，全部作用域在 .mv2 下，不污染现有桌面/手机样式
   - 颜色/圆角/字号一律走 mv2-tokens.css 的 CSS 变量：换主题只改 data-theme
   - 结构：.mv2-app > .mv2-screen > (.mv2-body + .mv2-tabbar)
   ========================================================================== */

/* ---------- 0. 根与壳 ---------- */
.mv2,
.mv2 *,
.mv2 *::before,
.mv2 *::after {
  box-sizing: border-box;
}

.mv2 {
  min-height: 100dvh;
  margin: 0;
  background: var(--mv-bg);
  color: var(--mv-text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 22px;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

.mv2 a {
  color: inherit;
  text-decoration: none;
}

.mv2 :focus-visible {
  outline: 2px solid var(--mv-brand);
  outline-offset: 2px;
}

/* 手机壳：360 全宽；桌面居中成手机列，不横向撑开 */
.mv2-app {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--mv-shell-max);
  height: 100dvh;
  margin: 0 auto;
  background: var(--mv-bg);
  overflow: hidden;
}

@media (min-width: 768px) {
  .mv2 {
    background: linear-gradient(180deg, var(--mv-bg-2), var(--mv-bg));
  }
  .mv2-app {
    height: min(900px, calc(100dvh - 40px));
    margin: 20px auto;
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(17, 24, 39, 0.16);
  }
}

/* 单屏容器：一屏 = body(滚动) + tabbar(常驻) */
.mv2-screen {
  display: none;
  flex: 1;
  min-height: 0;
  flex-direction: column;
}

.mv2-screen.is-active {
  display: flex;
}

.mv2-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 14px;
  scrollbar-width: none;
}

.mv2-body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.mv2-safe-b {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* ---------- 1. .mv-header 顶部栏 ---------- */
.mv2-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px var(--mv-gutter) 8px;
}

.mv2-header-main {
  min-width: 0;
}

.mv2-header h1 {
  margin: 0;
  font-size: var(--mv-fs-22);
  line-height: var(--mv-lh-22);
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--mv-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mv2-header-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 3px 0 0;
  font-size: var(--mv-fs-12);
  line-height: 16px;
  color: var(--mv-text-2);
}

.mv2-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.mv2-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mv-ok);
  flex: none;
}

.mv2-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  border: 2px solid var(--mv-role);
  background: var(--mv-avatar-bg);
  color: var(--mv-role);
  font-size: var(--mv-fs-15);
  font-weight: 700;
}

/* ---------- 2. .mv-hero 主指标卡 ---------- */
.mv2-hero {
  position: relative;
  margin: 2px var(--mv-gutter) var(--mv-gap);
  padding: 14px 16px 12px;
  border-radius: var(--mv-r-lg);
  background: linear-gradient(135deg, var(--mv-hero-a) 0%, var(--mv-hero-b) 100%);
  color: var(--mv-hero-ink);
  box-shadow: var(--mv-hero-shadow);
  overflow: hidden;
}

.mv2-hero::after {
  content: "";
  position: absolute;
  right: -46px;
  top: -70px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 68%);
  pointer-events: none;
}

.mv2-hero-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mv2-hero-label {
  font-size: var(--mv-fs-13);
  line-height: var(--mv-lh-13);
  color: var(--mv-hero-sub);
  letter-spacing: 0.2px;
}

.mv2-hero .mv2-chip {
  background: var(--mv-hero-chip-bg);
  color: var(--mv-hero-chip-ink);
}

.mv2-hero-amount {
  position: relative;
  z-index: 1;
  margin-top: 5px;
  font-size: 34px;
  line-height: 40px;
  font-weight: 750;
  letter-spacing: -0.6px;
  font-variant-numeric: tabular-nums;
}

.mv2-hero-amount small {
  margin-right: 2px;
  font-size: 18px;
  font-weight: 600;
  opacity: 0.88;
}

.mv2-hero-amount.is-range {
  font-size: var(--mv-fs-26);
  line-height: var(--mv-lh-26);
  letter-spacing: -0.2px;
}

.mv2-hero-metrics {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.mv2-hero[data-tone="light"] .mv2-hero-metrics {
  border-top-color: var(--mv-line);
}

.mv2-hero-metrics > div {
  flex: 1;
  min-width: 0;
}

.mv2-hero-metrics b {
  display: block;
  font-size: var(--mv-fs-17);
  line-height: var(--mv-lh-17);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.mv2-hero-metrics span {
  display: block;
  margin-top: 1px;
  font-size: var(--mv-fs-11);
  line-height: 16px;
  color: var(--mv-hero-sub);
  white-space: nowrap;
}

.mv2-hero-spark {
  position: absolute;
  right: 12px;
  bottom: 46px;
  width: 96px;
  height: 34px;
  opacity: 0.9;
  pointer-events: none;
}

/* ---------- 3. .mv-stat 指标行 ---------- */
.mv2-stats {
  display: flex;
  gap: 2px;
  margin: 0 var(--mv-gutter) var(--mv-gap);
  padding: 10px 6px;
  border-radius: var(--mv-r-lg);
  background: var(--mv-card);
  box-shadow: var(--mv-shadow);
}

.mv2-stat {
  flex: 1;
  min-width: 0;
  padding: 2px 6px;
  text-align: center;
}

.mv2-stat + .mv2-stat {
  border-left: 1px solid var(--mv-line);
}

.mv2-stat b {
  display: block;
  font-size: var(--mv-fs-17);
  line-height: var(--mv-lh-17);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--mv-text);
}

.mv2-stat span {
  display: block;
  margin-top: 2px;
  font-size: var(--mv-fs-11);
  line-height: var(--mv-lh-11);
  color: var(--mv-text-3);
}

/* ---------- 4. .mv-card 卡片 / 5. .mv-list / .mv-row ---------- */
.mv2-card {
  background: var(--mv-card);
  border-radius: var(--mv-r-lg);
  box-shadow: var(--mv-shadow);
}

.mv2-card-pad {
  padding: 14px 16px;
}

.mv2-list {
  padding: 2px 14px;
}

.mv2-row {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: var(--mv-row-h);
  padding: 8px 0;
  border-bottom: 1px solid var(--mv-line);
  width: 100%;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.mv2-row:last-child {
  border-bottom: 0;
}

.mv2-row:active {
  background: var(--mv-card-2);
}

.mv2-row-ic {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 11px;
  background: var(--mv-brand-soft);
  color: var(--mv-brand);
}

.mv2-row-ic .mv2-ic {
  width: 19px;
  height: 19px;
}

.mv2-row-main {
  flex: 1;
  min-width: 0;
}

.mv2-row-main b {
  display: block;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mv2-row-main span {
  display: block;
  font-size: var(--mv-fs-11);
  line-height: var(--mv-lh-11);
  color: var(--mv-text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mv2-row-meta {
  flex: none;
  font-size: var(--mv-fs-11);
  color: var(--mv-text-3);
}

.mv2-row-chev {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--mv-text-3);
}

/* 区块标题 */
.mv2-section {
  padding: 0 var(--mv-gutter);
  margin-bottom: 9px;
}

.mv2-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px 7px;
}

.mv2-section-head h2 {
  margin: 0;
  font-size: var(--mv-fs-15);
  line-height: 21px;
  font-weight: 700;
  letter-spacing: -0.1px;
}

.mv2-section-head a {
  position: relative;
  font-size: var(--mv-fs-12);
  line-height: 16px;
  color: var(--mv-text-3);
}

/* 次级链接视觉小字，热区补到 44px */
.mv2-section-head a::after {
  content: "";
  position: absolute;
  inset: -14px -8px;
}

/* ---------- 6. .mv-chip ---------- */
.mv2-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 9px;
  border-radius: var(--mv-r-chip);
  font-size: var(--mv-fs-11);
  line-height: 1;
  font-weight: 600;
  white-space: nowrap;
  background: var(--mv-brand-soft);
  color: var(--mv-brand);
}

.mv2-chip[data-tone="ok"] { background: var(--mv-ok-soft); color: var(--mv-ok); }
.mv2-chip[data-tone="warn"] { background: var(--mv-warn-soft); color: var(--mv-warn); }
.mv2-chip[data-tone="danger"] { background: var(--mv-danger-soft); color: var(--mv-danger); }
.mv2-chip[data-tone="info"] { background: var(--mv-info-soft); color: var(--mv-info); }

/* ---------- 7. .mv-tag ---------- */
.mv2-tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 10px;
  line-height: 1;
  font-weight: 600;
  background: var(--mv-bg-2);
  color: var(--mv-text-2);
}

.mv2-tag[data-tone="ok"] { background: var(--mv-ok-soft); color: var(--mv-ok); }
.mv2-tag[data-tone="warn"] { background: var(--mv-warn-soft); color: var(--mv-warn); }
.mv2-tag[data-tone="danger"] { background: var(--mv-danger-soft); color: var(--mv-danger); }
.mv2-tag[data-tone="info"] { background: var(--mv-info-soft); color: var(--mv-info); }

/* ---------- 8. .mv-badge ---------- */
.mv2-badge {
  display: inline-grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: var(--mv-r-chip);
  background: var(--mv-danger);
  color: #fff;
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ---------- 9. .mv-btn ---------- */
.mv2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: var(--mv-tap);
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--mv-r);
  background: var(--mv-brand);
  color: var(--mv-text-on-brand);
  font-family: inherit;
  font-size: var(--mv-fs-15);
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--mv-dur) ease, background var(--mv-dur) ease;
}

.mv2-btn:active {
  background: var(--mv-brand-press);
  transform: scale(0.98);
}

.mv2-btn.is-ghost {
  background: transparent;
  border-color: var(--mv-line);
  color: var(--mv-text);
}

.mv2-btn.is-danger {
  background: var(--mv-danger-soft);
  color: var(--mv-danger);
}

.mv2-btn.is-block {
  display: flex;
  width: 100%;
}

.mv2-btn.is-sm {
  position: relative;
  height: 36px;
  padding: 0 14px;
  font-size: var(--mv-fs-13);
}

/* 小按钮视觉 36 高，热区补到 44 */
.mv2-btn.is-sm::after {
  content: "";
  position: absolute;
  inset: -4px 0;
}

.mv2-btn:disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* ---------- 10. .mv-fab ---------- */
.mv2-fab {
  position: absolute;
  right: 16px;
  bottom: calc(var(--mv-tabbar-h) + 20px + env(safe-area-inset-bottom, 0px));
  z-index: 30;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 18px;
  background: var(--mv-brand);
  color: var(--mv-text-on-brand);
  box-shadow: 0 10px 22px -8px rgba(232, 89, 12, 0.6);
  cursor: pointer;
}

.mv2-fab .mv2-ic {
  width: 24px;
  height: 24px;
}

/* ---------- 11. .mv-tabbar ---------- */
.mv2-tabbar {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  height: calc(var(--mv-tabbar-h) + env(safe-area-inset-bottom, 0px));
  padding: 4px 6px calc(6px + env(safe-area-inset-bottom, 0px));
  flex: none;
  background: var(--mv-tab-bg);
  border-top: 1px solid var(--mv-tab-line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.mv2-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 10px;
  line-height: 13px;
  color: var(--mv-text-3);
  cursor: pointer;
  position: relative;
}

.mv2-tab .mv2-ic {
  width: 22px;
  height: 22px;
}

.mv2-tab.is-active {
  color: var(--mv-brand);
  font-weight: 600;
}

.mv2-tab .mv2-badge {
  position: absolute;
  top: 2px;
  left: calc(50% + 6px);
}

/* ---------- 12. .mv-sheet 底部弹层 ---------- */
.mv2-mask {
  position: absolute;
  inset: 0;
  z-index: 90;
  background: var(--mv-mask);
  opacity: 0;
  transition: opacity var(--mv-dur) ease;
}

.mv2-mask.is-open {
  opacity: 1;
}

.mv2-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 91;
  max-height: 82%;
  display: flex;
  flex-direction: column;
  padding: 8px var(--mv-gutter) calc(16px + env(safe-area-inset-bottom, 0px));
  border-radius: var(--mv-r-xl) var(--mv-r-xl) 0 0;
  background: var(--mv-card);
  box-shadow: var(--mv-shadow-lg);
  transform: translateY(102%);
  transition: transform var(--mv-dur) ease;
}

.mv2-sheet.is-open {
  transform: translateY(0);
}

.mv2-sheet-grip {
  width: 38px;
  height: 4px;
  margin: 2px auto 10px;
  border-radius: var(--mv-r-chip);
  background: var(--mv-line);
  flex: none;
}

.mv2-sheet-title {
  margin: 0 0 10px;
  font-size: var(--mv-fs-17);
  line-height: var(--mv-lh-17);
  font-weight: 700;
  flex: none;
}

.mv2-sheet-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.mv2-sheet-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex: none;
}

.mv2-sheet-actions > * {
  flex: 1;
}

/* ---------- 13. .mv-modal 居中弹窗 ---------- */
.mv2-modal {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 91;
  width: min(320px, calc(100% - 48px));
  padding: 18px;
  border-radius: var(--mv-r-lg);
  background: var(--mv-card);
  box-shadow: var(--mv-shadow-lg);
  transform: translate(-50%, -50%) scale(0.96);
  opacity: 0;
  transition: transform var(--mv-dur) ease, opacity var(--mv-dur) ease;
}

.mv2-modal.is-open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.mv2-modal h3 {
  margin: 0 0 8px;
  font-size: var(--mv-fs-17);
  line-height: var(--mv-lh-17);
  font-weight: 700;
}

.mv2-modal p {
  margin: 0;
  font-size: var(--mv-fs-13);
  line-height: 20px;
  color: var(--mv-text-2);
}

.mv2-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.mv2-modal-actions > * {
  flex: 1;
}

/* ---------- 14. .mv-toast ---------- */
.mv2-toast {
  position: absolute;
  left: 50%;
  bottom: calc(var(--mv-tabbar-h) + 24px + env(safe-area-inset-bottom, 0px));
  z-index: 95;
  max-width: calc(100% - 48px);
  padding: 10px 14px;
  border-radius: var(--mv-r);
  background: rgba(27, 36, 48, 0.92);
  color: #fff;
  font-size: var(--mv-fs-13);
  line-height: 18px;
  transform: translate(-50%, 8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--mv-dur) ease, transform var(--mv-dur) ease;
}

.mv2-toast.is-open {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- 15. .mv-empty ---------- */
.mv2-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 48px 24px;
  text-align: center;
}

.mv2-empty .mv2-ic {
  width: 40px;
  height: 40px;
  margin-bottom: 4px;
  color: var(--mv-text-3);
}

.mv2-empty b {
  font-size: var(--mv-fs-15);
  font-weight: 600;
  color: var(--mv-text-2);
}

.mv2-empty span {
  font-size: var(--mv-fs-12);
  line-height: var(--mv-lh-12);
  color: var(--mv-text-3);
}

/* ---------- 16. .mv-skeleton ---------- */
.mv2-skeleton {
  border-radius: var(--mv-r-sm);
  background: linear-gradient(
    90deg,
    var(--mv-card-2) 25%,
    var(--mv-bg-2) 37%,
    var(--mv-card-2) 63%
  );
  background-size: 400% 100%;
  animation: mv2-shimmer 1.4s ease infinite;
}

.mv2-skeleton.is-line { height: 12px; margin: 8px 0; }
.mv2-skeleton.is-title { height: 18px; width: 46%; }
.mv2-skeleton.is-card { height: 96px; border-radius: var(--mv-r-lg); }

@keyframes mv2-shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

/* ---------- 17. .mv-upload ---------- */
.mv2-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 104px;
  padding: 14px;
  border: 1.5px dashed var(--mv-line);
  border-radius: var(--mv-r-lg);
  background: var(--mv-card-2);
  color: var(--mv-text-3);
  font-family: inherit;
  font-size: var(--mv-fs-12);
  cursor: pointer;
}

.mv2-upload .mv2-ic {
  width: 26px;
  height: 26px;
  color: var(--mv-brand);
}

/* ---------- 18. .mv-quick 四宫格快捷 ---------- */
.mv2-quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 0 var(--mv-gutter) 13px;
}

.mv2-quick a,
.mv2-quick button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 1px 0;
  border: 0;
  background: none;
  color: var(--mv-text-2);
  font-family: inherit;
  font-size: var(--mv-fs-11);
  line-height: 15px;
  text-align: center;
  cursor: pointer;
}

.mv2-quick .mv2-badge {
  position: absolute;
  top: 0;
  right: calc(50% - 29px);
}

.mv2-quick-ic {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: var(--mv-card);
  box-shadow: var(--mv-shadow);
  color: var(--mv-brand);
}

.mv2-quick-ic .mv2-badge {
  position: absolute;
  top: -3px;
  right: -4px;
}

.mv2-quick-ic .mv2-ic {
  width: 22px;
  height: 22px;
}

/* ---------- 图标 ---------- */
.mv2-ic {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- 提示条（工作台/首页通用） ---------- */
.mv2-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 var(--mv-gutter) 11px;
  padding: 10px 12px;
  border-radius: var(--mv-r-sm);
  background: var(--mv-warn-soft);
  color: var(--mv-warn);
}

.mv2-notice .mv2-ic {
  width: 19px;
  height: 19px;
}

.mv2-notice p {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: var(--mv-fs-12);
  line-height: var(--mv-lh-12);
  color: var(--mv-text);
}

.mv2-notice p b {
  display: block;
  font-size: var(--mv-fs-13);
  line-height: var(--mv-lh-13);
  font-weight: 600;
}

/* ---------- 网格入口（工作台） ---------- */
.mv2-group {
  margin: 0 var(--mv-gutter) 9px;
  padding: 10px 10px 6px;
  border-radius: var(--mv-r-lg);
  background: var(--mv-card);
  box-shadow: var(--mv-shadow);
}

.mv2-group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 2px 7px;
}

.mv2-group-head .mv2-ic {
  width: 16px;
  height: 16px;
  color: var(--mv-text-3);
}

.mv2-group-head b {
  flex: 1;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.mv2-group-head span {
  font-size: var(--mv-fs-11);
  color: var(--mv-text-3);
}

.mv2-grid4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.mv2-grid4 a,
.mv2-grid4 button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 100%;
  padding: 8px 0 9px;
  border: 0;
  border-radius: var(--mv-r-sm);
  background: none;
  color: var(--mv-text-2);
  font-family: inherit;
  font-size: var(--mv-fs-11);
  line-height: 15px;
  text-align: center;
  cursor: pointer;
}

.mv2-grid4 a:active,
.mv2-grid4 button:active {
  background: var(--mv-card-2);
}

.mv2-grid4 .mv2-ic {
  width: 30px;
  height: 30px;
  padding: 6px;
  border-radius: 10px;
  background: var(--mv-brand-soft);
  color: var(--mv-brand);
}

.mv2-grid4 .mv2-badge {
  position: absolute;
  transform: translate(14px, -4px);
}

.mv2-grid4 button {
  position: relative;
}

/* ---------- 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  .mv2 *,
  .mv2 *::before,
  .mv2 *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* v621 壳层接管：隐藏旧手机壳，mv2 独占视口 */
body.mv2-on{overflow:hidden}
body.mv2-on #content,
body.mv2-on #mobile-header,
body.mv2-on #mobile-tabbar,
body.mv2-on .sidebar,
body.mv2-on .topbar,
body.mv2-on #btn-mobile-menu{display:none!important}
body.mv2-on #mv2-root{position:fixed;inset:0;z-index:80;overflow:auto;background:var(--mv-bg)}

/* v622 N8: 手机端首屏数据体检卡 */
.mv2-health-card .mv2-health-body { padding: 2px 0 2px; }
.mv2-health-head { display: flex; align-items: baseline; gap: 8px; padding: 2px 0 6px; }
.mv2-health-tone { font-size: 20px; font-weight: 700; letter-spacing: .5px; }
.mv2-health-card[data-state="ok"] .mv2-health-tone { color: #16a34a; }
.mv2-health-card[data-state="warn"] .mv2-health-tone { color: #d97706; }
.mv2-health-card[data-state="fail"] .mv2-health-tone { color: #dc2626; }
.mv2-health-card[data-state="error"] .mv2-health-tone { color: #dc2626; }
.mv2-health-meta { font-size: 12px; color: var(--mv2-muted, #8a8f98); }
.mv2-health-line { font-size: 13px; line-height: 1.9; color: var(--mv2-text-2, #4b5563); }
.mv2-health-card[data-state="fail"] .mv2-health-line { color: #b91c1c; }
.mv2-trust-summary { margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: #f5f7fa; color: #526174; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }

/* ---------- v623：页内压栈页 + 旧版桥返回条 ---------- */
.mv2-pushed{position:absolute;inset:0;z-index:30;background:var(--mv2-bg,#f6f7f9);display:flex;flex-direction:column;overflow:hidden;}
.mv2-pushed .mv2-body{overflow-y:auto;-webkit-overflow-scrolling:touch;flex:1;}
.mv2-page-head{display:flex;align-items:center;gap:8px;position:sticky;top:0;z-index:5;background:var(--mv2-bg,#f6f7f9);}
.mv2-back{display:inline-flex;align-items:center;gap:2px;padding:6px 8px 6px 0;color:#e8590c;font-size:14px;text-decoration:none;}
.mv2-back .mv2-ic{transform:rotate(180deg);width:16px;height:16px;}
.mv2-back-bar{position:fixed;left:0;right:0;bottom:0;z-index:9999;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px calc(10px + env(safe-area-inset-bottom));background:#1f2937;color:#fff;font-size:13px;box-shadow:0 -2px 10px rgba(0,0,0,.18);}
.mv2-back-bar button{background:#e8590c;color:#fff;border:0;border-radius:8px;padding:8px 14px;font-size:14px;font-weight:600;}
/* v2 模式屏蔽旧版弹窗（v623） */
body.mv2-on .modal-mask,body.mv2-on .modal{display:none!important;}
body.mv2-on .modal-overlay{display:none!important;}

/* v624e: 退出登录后不显示旧版浮层 */
body.mv2-logged-out .modal-overlay,
body.mv2-logged-out .modal-mask { display: none !important; }

/* v624g: 旧版页返回条改右下角小药丸，不占满底边 */
.mv2-back-bar{left:auto!important;right:12px;bottom:16px;width:auto;max-width:calc(100% - 24px);border-radius:999px;padding:7px 12px;gap:8px;font-size:12px;background:rgba(31,41,55,.92);box-shadow:0 4px 14px rgba(0,0,0,.28);justify-content:flex-start}
.mv2-back-bar button{padding:5px 12px;font-size:12px;border-radius:999px}
