/* ============================================================
   MINUS 设计系统 v4 —— 「黑白灰 · 低饱和青蓝 · 极简商务」
   骨架：统一容器 / 统一圆角 / 统一内边距 / 统一描边 / 统一轻阴影
   颜色：白 + 浅灰为主，深色只留给标题与主按钮，
        辅助色 --accent 低饱和深青蓝，只用于重点态、图标、流程节点、数据高亮
   导航：顶部轻量文字导航（不再有底部固定 Tab）
   ============================================================ */

/* ---------- 桥接：让 React 业务页（商品/下单/余额/登录）沿用同一套色板 ---------- */
:root {
  --paper: #F4F6F7;
  --paper-deep: #EAEEF0;
  --paper-card: #FFFFFF;
  --ink: #14161A;
  --ink-soft: #3D4249;
  --ink-mute: #767D86;
  --ink-faint: #9AA1A9;
  --line: rgba(20, 22, 26, 0.09);
  --line-strong: rgba(20, 22, 26, 0.16);
  --brand-wash: #EEF3F5;
  --sky: #2E4A5C;
  --sky-wash: #EDF2F5;
  --mint-wash: #EDF3EF;
  --clay-wash: #F4EEE7;
}

/* ============================================================
   0. 令牌
   ============================================================ */
#v3 {
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  -webkit-tap-highlight-color: transparent;
  font-size: 14px;
  line-height: 1.55;

  --bg: #F5F6F7;
  --bg-soft: #FAFBFC;
  --surface: #FFFFFF;
  --surface-2: #F7F8F9;

  --t1: #14161A;
  --t2: #3D4249;
  --t3: #767D86;
  --t4: #9AA1A9;

  --bd: rgba(20, 22, 26, 0.09);
  --bd-soft: rgba(20, 22, 26, 0.055);
  --bd-strong: rgba(20, 22, 26, 0.15);

  --accent: #2E4A5C;
  --accent-2: #3F6478;
  --accent-wash: #EDF2F5;
  --accent-line: rgba(46, 74, 92, 0.18);

  --ok: #2F6B52;
  --ok-wash: #EDF3EF;
  --warn: #8A6320;
  --warn-wash: #F7F1E6;
  --err: #8E3B41;
  --err-wash: #F7EDEE;
  --run: #2E4A5C;
  --run-wash: #EDF2F5;

  --r-xl: 24px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --r-pill: 999px;

  --shadow: 0 1px 2px rgba(20, 22, 26, 0.035), 0 18px 44px -36px rgba(20, 22, 26, 0.5);
  --shadow-lift: 0 2px 4px rgba(20, 22, 26, 0.04), 0 24px 52px -38px rgba(20, 22, 26, 0.55);

  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC",
    "Noto Sans SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: "Manrope", "SF Mono", ui-monospace, Menlo, monospace;

  display: block;
  background: var(--bg);
  color: var(--t1);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 旧的底部 Tab 一律隐藏（结构留着，避免老缓存页面出现两条导航） */
.v3-tabbar,
.v3-tab,
.v3-tab-fab {
  display: none !important;
}

#v3 *,
#v3 *::before,
#v3 *::after { box-sizing: border-box; -webkit-text-size-adjust: 100%; }
#v3 img { max-width: 100%; display: block; }
#v3 a { color: inherit; text-decoration: none; }
#v3 button { font: inherit; color: inherit; cursor: pointer; }
#v3 ul, #v3 ol { margin: 0; padding-left: 18px; }
#v3 h1, #v3 h2, #v3 h3, #v3 h4, #v3 p { margin: 0; font-weight: 600; }
#v3 input, #v3 textarea, #v3 select {
  font-family: inherit;
  font-size: 16px;
  color: var(--t1);
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}
#v3 input::placeholder, #v3 textarea::placeholder { color: var(--t4); }

/* ============================================================
   1. 骨架
   ============================================================ */
.v3-page {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 18px 56px;
  box-sizing: border-box;
  animation: v3in 0.26s ease both;
}
@keyframes v3in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.v3-page *,
.v3-page *::before,
.v3-page *::after { box-sizing: border-box; }

/* 顶部导航（轻量文字导航，替代底部固定 Tab） */
.v3-topnav {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  margin: 0 0 16px;
  padding: 8px 0 8px;
  background: rgba(245, 246, 247, 0.9);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--bd-soft);
}
.v3-topnav-in {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.v3-topnav .v3-brand { flex: 0 0 auto; }
.v3-navlinks {
  margin-left: auto;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-end;
  display: flex;
  align-items: center;
  gap: 1px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.v3-navlinks::-webkit-scrollbar { display: none; }
.v3-navlink {
  flex: 0 0 auto;
  font-size: 12.5px;
  line-height: 1;
  color: var(--t3);
  text-decoration: none;
  padding: 8px 9px;
  border-radius: var(--r-pill);
  letter-spacing: 0.01em;
  transition: color 0.16s ease, background 0.16s ease;
}
.v3-navlink.on {
  color: var(--t1);
  font-weight: 700;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(20, 22, 26, 0.05);
  border: 1px solid var(--bd);
  padding: 7px 9px;
}
.v3-nav-more {
  color: var(--accent);
  border: 1px solid var(--accent-line);
  background: var(--accent-wash);
  font-weight: 600;
}

/* 品牌 */
.v3-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.v3-mark {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 9px;
  background: var(--t1);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  letter-spacing: 0;
}
.v3-brand-txt { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.v3-brand-name {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--t1);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v3-brand-sub {
  font-size: 10px;
  color: var(--t4);
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v3-top-btn {
  flex: 0 0 auto;
  height: 32px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--t2);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--bd);
  border-radius: var(--r-pill);
}
.v3-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0 12px;
}
.v3-top .v3-brand-name { font-size: 14px; }

/* 老结构的顶部条（backBar / m4Nav 用），统一成同一栅格 */
.m4-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0 10px;
}
.m4-nav-back {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--bd);
  color: var(--t2);
  font-size: 13px;
  text-decoration: none;
}
.m4-nav-title { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.m4-nav-title b { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; }
.m4-nav-title span { font-size: 11px; color: var(--t4); }
.m4-nav-slot { margin-left: auto; }

/* ============================================================
   2. 卡片 / 区块
   ============================================================ */
.v3-card,
.m4-card {
  background: var(--surface);
  border: 1px solid var(--bd);
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: var(--shadow);
}
.v3-card-title,
.v3-card-tit { font-size: 14.5px; font-weight: 700; letter-spacing: -0.01em; }
.v3-card-sub {
  font-size: 12px;
  color: var(--t3);
  line-height: 1.7;
  margin-top: 5px;
}
.v3-sec,
.m4-sec { margin-top: 22px; }
.v3-sec-head,
.m4-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
  padding: 0 2px;
}
.v3-sec-head h2,
.m4-sec-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--t1);
}
.v3-sec-head span,
.m4-sec-head span {
  font-size: 11.5px;
  color: var(--t4);
  white-space: nowrap;
}
.v3-more,
.v3-sec-head a,
.m4-sec-head a {
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}
.v3-subhead {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--t4);
  font-weight: 700;
}

/* ============================================================
   3. Hero
   ============================================================ */
.v3-hero,
.m4-hero {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--bd);
  border-radius: var(--r-xl);
  padding: 22px 20px 20px;
  box-shadow: var(--shadow);
}
.v3-hero::after,
.m4-hero::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -90px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(46, 74, 92, 0.09), rgba(46, 74, 92, 0) 68%);
  pointer-events: none;
}
.v3-hero-kicker,
.m4-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.m4-hero-top {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.m4-brand {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--t1);
  background: var(--surface-2);
  border: 1px solid var(--bd);
  padding: 5px 9px;
  border-radius: var(--r-pill);
}
.m4-avatar {
  margin-left: auto;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--accent-wash);
  color: var(--accent);
  border: 1px solid var(--accent-line);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.v3-hero h1,
.m4-h1 {
  margin: 0 0 9px;
  font-size: 29px;
  line-height: 1.2;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: var(--t1);
  position: relative;
  z-index: 1;
}
.v3-hero p,
.m4-sub {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--t3);
  position: relative;
  z-index: 1;
}
.v3-hero-actions {
  display: flex;
  gap: 9px;
  margin-top: 16px;
  position: relative;
  z-index: 1;
}
.v3-hero-stats,
.m4-hero-meta {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 0;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--bd-soft);
  position: relative;
  z-index: 1;
}
.v3-hero-stat,
.m4-hero-meta > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 14px;
  border-left: 1px solid var(--bd-soft);
  min-width: 0;
}
.v3-hero-stat:first-child,
.m4-hero-meta > div:first-child { padding-left: 0; border-left: 0; }
.v3-hero-stat b,
.m4-hero-meta b {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--t1);
  font-variant-numeric: tabular-nums;
}
.v3-hero-stat span,
.m4-hero-meta span {
  font-size: 10.5px;
  color: var(--t4);
  letter-spacing: 0.01em;
}
.m4-hero-meta b { color: var(--accent); }

/* Hero 里的插画位 */
.v3-hero-illus {
  margin-top: 16px;
  border-radius: var(--r-md);
  background: linear-gradient(160deg, #FAFBFC 0%, #EFF3F5 100%);
  border: 1px solid var(--bd-soft);
  padding: 12px 10px 6px;
  position: relative;
  z-index: 1;
}
.v3-hero-illus svg { display: block; width: 100%; height: auto; }

/* ============================================================
   4. 搜索
   ============================================================ */
.v3-search,
.m4-search {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--surface);
  border: 1px solid var(--bd);
  border-radius: var(--r-pill);
  padding: 6px 6px 6px 15px;
  margin-top: 14px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.v3-search svg,
.m4-search-ico svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: var(--t4);
}
.m4-search-ico { display: flex; align-items: center; flex: 0 0 auto; }
.v3-search input,
.m4-search input {
  flex: 1 1 auto;
  min-width: 0;
  height: 34px;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 16px;
  color: var(--t1);
  font-family: inherit;
}
.v3-search input::placeholder,
.m4-search input::placeholder { color: var(--t4); font-size: 13px; }
.v3-search-btn,
.m4-search-btn {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--t1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.v3-search-btn svg,
.m4-search-btn svg { width: 16px; height: 16px; color: #fff; }

/* ============================================================
   5. 按钮
   ============================================================ */
.v3-btn,
.m4-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  background: var(--t1);
  color: #fff !important;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.14s ease, opacity 0.14s ease, background 0.16s ease;
}
.v3-btn:active,
.m4-btn:active { transform: scale(0.985); opacity: 0.94; }
.v3-btn.light,
.m4-btn.light {
  background: var(--surface);
  color: var(--t1) !important;
  border-color: var(--bd-strong);
}
.v3-btn.ghost,
.m4-btn.ghost {
  background: var(--surface-2);
  color: var(--t1) !important;
  border-color: var(--bd);
}
.v3-btn.ghost-dark {
  background: var(--accent-wash);
  color: var(--accent) !important;
  border-color: var(--accent-line);
}
.v3-btn.accent,
.m4-btn.accent {
  background: var(--accent);
  color: #fff !important;
  border-color: var(--accent);
}
.v3-btn.sm,
.m4-btn.sm {
  height: 36px;
  padding: 0 14px;
  font-size: 12.5px;
  border-radius: var(--r-pill);
}
.v3-btn.block,
.m4-btn.block { width: 100%; display: flex; }
.v3-btn[disabled],
.m4-btn[disabled] { opacity: 0.5; pointer-events: none; }

/* ============================================================
   6. 列表 / 商品卡
   ============================================================ */
.v3-grid,
.m4-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 359px) {
  .v3-grid, .m4-grid { grid-template-columns: minmax(0, 1fr); }
}
.v3-tile,
.m4-tile {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--bd);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--t1);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
  min-width: 0;
}
.v3-tile:active,
.m4-tile:active { transform: scale(0.99); }
.v3-tile-cover,
.m4-tile-cover {
  aspect-ratio: 4 / 3;
  width: 100%;
  background: linear-gradient(150deg, #F7F8F9, #EDF1F3);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--bd-soft);
}
.v3-tile-cover img,
.m4-tile-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v3-tile h4,
.m4-tile h4 {
  margin: 0;
  padding: 11px 12px 0;
  font-size: 12.5px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--t1);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 49px;   /* 固定两行高度：一行标题的卡片也占两行，价格行才能横向对齐 */
  word-break: break-word;
}
.v3-tile-sub,
.m4-tile-sub {
  padding: 5px 12px 0;
  font-size: 10.5px;
  color: var(--t4);
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v3-tile-foot,
.m4-tile-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px 12px;
  margin-top: auto;
}
.v3-tile-price,
.m4-tile-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--t1);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.v3-tile-price i,
.m4-tile-price i {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 600;
  margin-right: 1px;
}
.v3-tile-go,
.m4-tile-go {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-wash);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.v3-tile-go svg,
.m4-tile-go svg { width: 13px; height: 13px; }

/* 明细行 */
.v3-list,
.m4-rows {
  background: var(--surface);
  border: 1px solid var(--bd);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.v3-item,
.m4-row {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.v3-item + .v3-item,
.m4-row + .m4-row { border-top: 1px solid var(--bd-soft); }
.v3-item-row,
.m4-row b {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--t1);
}
.v3-item-sub,
.m4-row span {
  font-size: 12px;
  line-height: 1.7;
  color: var(--t3);
}
.m4-row { flex-direction: row; align-items: flex-start; gap: 11px; }
.m4-row-dot {
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.m4-row b { display: block; }
.m4-row > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }

/* ============================================================
   7. 徽标 / 标签
   ============================================================ */
.v3-badge,
.m4-pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--bd);
  color: var(--t3);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.v3-badge.ok,
.m4-pill.ok { background: var(--ok-wash); color: var(--ok); border-color: rgba(47, 107, 82, 0.14); }
.v3-badge.run,
.m4-pill.run { background: var(--run-wash); color: var(--run); border-color: var(--accent-line); }
.v3-badge.warn,
.m4-pill.warn { background: var(--warn-wash); color: var(--warn); border-color: rgba(138, 99, 32, 0.14); }
.v3-badge.err,
.m4-pill.err { background: var(--err-wash); color: var(--err); border-color: rgba(142, 59, 65, 0.14); }
.m4-pill.ghost { background: var(--surface); color: var(--t3); }

/* ============================================================
   8. 表单
   ============================================================ */
.v3-label,
.m4-label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--t3);
  margin-bottom: 7px;
  letter-spacing: 0.01em;
}
.v3-input,
.m4-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--bd);
  border-radius: var(--r-md);
  background: var(--bg-soft);
  font-size: 16px;
  font-family: inherit;
  color: var(--t1);
  outline: none;
  transition: border-color 0.16s ease, background 0.16s ease;
}
.v3-input:focus,
.m4-input:focus {
  border-color: var(--accent-line);
  background: var(--surface);
}
.v3-input::placeholder,
.m4-input::placeholder { color: var(--t4); font-size: 13px; }
.v3-field { margin-top: 13px; }
.v3-seg,
.m4-seg {
  display: flex;
  gap: 3px;
  padding: 3px;
  background: #EDF0F2;
  border-radius: var(--r-pill);
  margin-top: 14px;
}
.v3-seg button,
.m4-seg button {
  flex: 1 1 0;
  min-width: 0;
  height: 36px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--t3);
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}
.v3-seg button.on,
.m4-seg button.on {
  background: var(--surface);
  color: var(--t1);
  box-shadow: 0 1px 2px rgba(20, 22, 26, 0.06);
}
.v3-switch {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: var(--r-pill);
  background: #DFE4E8;
  border: 0;
  cursor: pointer;
  transition: background 0.18s ease;
  flex: 0 0 42px;
}
.v3-switch.on { background: var(--accent); }
.v3-switch i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.18s ease;
}
.v3-switch.on i { transform: translateX(18px); }
.v3-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 1px dashed var(--bd-strong);
  border-radius: var(--r-md);
  background: var(--bg-soft);
  font-size: 12px;
  color: var(--t3);
  cursor: pointer;
}
.v3-imgprev {
  margin-top: 10px;
  width: 100%;
  max-height: 150px;
  object-fit: cover;
  border-radius: var(--r-md);
  border: 1px solid var(--bd);
  display: block;
}

/* ============================================================
   9. 订单
   ============================================================ */
.v3-order,
.m4-order {
  background: var(--surface);
  border: 1px solid var(--bd);
  border-radius: var(--r-lg);
  padding: 17px 18px;
  box-shadow: var(--shadow);
}
.v3-order + .v3-order,
.m4-order + .m4-order { margin-top: 11px; }
.v3-order-head,
.m4-order-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.v3-order-no,
.m4-order-no {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--t1);
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}
.m4-order-date {
  margin-top: 4px;
  font-size: 11px;
  color: var(--t4);
}
.v3-bar,
.m4-prog-bar {
  height: 5px;
  border-radius: var(--r-pill);
  background: #EDF0F2;
  overflow: hidden;
}
.v3-bar i,
.m4-prog-bar i {
  display: block;
  height: 100%;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  transition: width 0.4s ease;
}
.v3-order-meta,
.m4-prog {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.m4-prog { margin-top: 13px; }
.m4-prog .m4-prog-bar { flex: 1 1 auto; }
.m4-prog span {
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  min-width: 32px;
  text-align: right;
}
.v3-order-meta span {
  font-size: 11.5px;
  color: var(--t4);
}
.v3-steps,
.m4-tl {
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid var(--bd-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.v3-step,
.m4-tl-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--t4);
}
.v3-step i {
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  margin-top: 6px;
  border-radius: 50%;
  background: #D8DDE1;
}
.v3-step.done,
.m4-tl-item.done { color: var(--t2); }
.v3-step.done i { background: var(--accent); }
.m4-tl-item { position: relative; padding-left: 14px; }
.m4-tl-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #D8DDE1;
}
.m4-tl-item.done::before { background: var(--accent); }
.v3-recent {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0 0;
  scrollbar-width: none;
}
.v3-recent::-webkit-scrollbar { display: none; }
.v3-recent button {
  flex: 0 0 auto;
  height: 30px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--bd);
  background: var(--surface);
  color: var(--t3);
  font-size: 11px;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

/* ============================================================
   10. 空状态 / 骨架 / 提示
   ============================================================ */
.v3-empty {
  padding: 26px 18px 30px;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--t4);
  background: var(--surface);
  border: 1px solid var(--bd);
  border-radius: var(--r-lg);
}
.v3-empty svg { display: block; margin: 0 auto 10px; width: 108px; height: auto; }
.v3-skel,
.m4-skel {
  border-radius: var(--r-md);
  background: linear-gradient(90deg, #F0F2F4 25%, #F7F8F9 50%, #F0F2F4 75%);
  background-size: 200% 100%;
  animation: v3sh 1.2s infinite linear;
}
.v3-skel-card,
.m4-skel { height: 200px; border: 1px solid var(--bd); }
@keyframes v3sh {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}
.m4-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding: 13px 15px;
  background: var(--accent-wash);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-md);
}
.m4-note-tag {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  padding-top: 2px;
}
.m4-note-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.m4-note-body b { font-size: 12.5px; color: var(--t1); }
.m4-note-body span { font-size: 11.5px; line-height: 1.6; color: var(--t3); }

/* ============================================================
   11. 加到桌面
   ============================================================ */
.v3-install {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--bd);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  cursor: pointer;
}
.v3-install-ico {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--t1);
  color: #fff;
  font-size: 21px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.v3-install-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.v3-install-txt b { font-size: 13px; font-weight: 700; color: var(--t1); }
.v3-install-txt span { font-size: 11px; color: var(--t4); }
.v3-install .v3-btn { flex: 0 0 auto; }

/* ============================================================
   12. FAQ
   ============================================================ */
.v3-faq,
.m4-faq {
  background: var(--surface);
  border: 1px solid var(--bd);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.v3-faq-item + .v3-faq-item,
.m4-faq-item + .m4-faq-item { border-top: 1px solid var(--bd-soft); }
.v3-faq-q,
.m4-faq-q {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 15px 18px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--t1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.v3-faq-q::after,
.m4-faq-q::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 400;
  color: var(--t4);
  transition: transform 0.18s ease;
}
.v3-faq-item.open .v3-faq-q::after,
.m4-faq-item.open .m4-faq-q::after { transform: rotate(45deg); }
.v3-faq-a,
.m4-faq-a {
  display: none;
  padding: 0 18px 16px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--t3);
}
.v3-faq-item.open .v3-faq-a,
.m4-faq-item.open .m4-faq-a { display: block; }

/* ============================================================
   13. 流程（四步）
   ============================================================ */
.v3-flow-card {
  background: var(--surface);
  border: 1px solid var(--bd);
  border-radius: var(--r-lg);
  padding: 20px 18px 18px;
  box-shadow: var(--shadow);
}
.v3-flow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0;
  margin-top: 16px;
}
.v3-flow-node {
  flex: 0 0 auto;
  width: 62px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.v3-flow-node .n {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--bd);
  color: var(--t3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.v3-flow-node .n svg { width: 19px; height: 19px; }
.v3-flow-node.on .n {
  background: var(--accent-wash);
  border-color: var(--accent-line);
  color: var(--accent);
}
.v3-flow-node span {
  font-size: 11px;
  color: var(--t3);
  text-align: center;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.v3-flow-node.on span { color: var(--accent); font-weight: 600; }
.v3-flow-arrow {
  flex: 1 1 auto;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #CDD3D8;
  min-width: 10px;
}
.v3-flow-arrow svg { width: 100%; max-width: 34px; height: 12px; }
.v3-flow-note {
  margin: 15px 0 0;
  padding-top: 13px;
  border-top: 1px solid var(--bd-soft);
  font-size: 11.5px;
  line-height: 1.75;
  color: var(--t4);
}

/* ============================================================
   14. 配图容器
   ============================================================ */
.v3-illus {
  margin-top: 14px;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, #FAFBFC 0%, #EFF3F5 100%);
  border: 1px solid var(--bd-soft);
  padding: 14px 12px 8px;
}
.v3-illus svg { display: block; width: 100%; height: auto; max-height: 168px; }
.v3-illus-mini {
  margin: 0;
  padding: 10px;
  border-radius: var(--r-md);
  background: var(--accent-wash);
  border: 1px solid var(--accent-line);
}
.v3-illus-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--bd);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.v3-illus-row .txt { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; gap: 5px; }
.v3-illus-row .txt b { font-size: 13.5px; font-weight: 700; }
.v3-illus-row .txt span { font-size: 11.5px; line-height: 1.7; color: var(--t3); }
.v3-illus-row .art { flex: 0 0 96px; width: 96px; }
.v3-illus-row .art svg { width: 100%; height: auto; display: block; }

/* ============================================================
   15. 招商 / 代理
   ============================================================ */
.m4-plan {
  background: var(--surface);
  border: 1px solid var(--bd);
  border-radius: var(--r-xl);
  padding: 22px 20px;
  margin-top: 12px;
  box-shadow: var(--shadow);
}
.m4-plan.dark {
  background: linear-gradient(170deg, #F3F7F9 0%, #EAF0F3 100%);
  border-color: var(--accent-line);
}
.m4-plan-name {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
}
.m4-plan.dark .m4-plan-name { color: var(--accent); }
.m4-price {
  margin-top: 10px;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--t1);
  font-variant-numeric: tabular-nums;
}
.m4-price small { font-size: 16px; font-weight: 700; margin-right: 3px; }
.m4-price-note { margin-top: 7px; font-size: 11.5px; color: var(--t4); }
.m4-feats {
  list-style: none;
  margin: 16px 0 18px;
  padding: 15px 0 0;
  border-top: 1px solid var(--bd-soft);
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.m4-feats li { display: flex; align-items: flex-start; gap: 9px; font-size: 12px; line-height: 1.7; color: var(--t2); }
.m4-feats i {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--accent-wash);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  font-style: normal;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.m4-calc-out {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.m4-calc-cell {
  padding: 12px 10px;
  background: var(--bg-soft);
  border: 1px solid var(--bd-soft);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.m4-calc-cell span { font-size: 10px; color: var(--t4); line-height: 1.4; }
.m4-calc-cell b { font-size: 16px; font-weight: 800; color: var(--accent); letter-spacing: -0.02em; }
.m4-calc-cell b i { font-style: normal; font-size: 10px; font-weight: 600; }
.m4-calc-cell b em { font-style: normal; font-variant-numeric: tabular-nums; }
.m4-steps-list { display: flex; flex-direction: column; gap: 14px; }
.m4-step-item { display: flex; align-items: flex-start; gap: 12px; }
.m4-step-num {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: var(--accent-wash);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.m4-step-item b { font-size: 12.5px; color: var(--t1); display: block; }
.m4-step-item p { margin: 3px 0 0; font-size: 11.5px; line-height: 1.7; color: var(--t3); }

.v3-ad {
  margin-top: 14px;
  padding: 16px;
  border-radius: var(--r-lg);
  background: var(--accent-wash);
  border: 1px solid var(--accent-line);
}
.v3-ad-title { font-size: 13px; font-weight: 700; color: var(--t1); }
.v3-ad p { margin: 6px 0 0; font-size: 11.5px; line-height: 1.7; color: var(--t2); }
.v3-ad img { width: 100%; border-radius: var(--r-md); margin-top: 10px; display: block; }

/* “我的”页 */
.v3-me-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--bd);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow);
}
.v3-me-ava {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--accent-wash);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
}
.v3-me-id { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 auto; }
.v3-me-id b { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; }
.v3-me-id span { font-size: 11.5px; color: var(--t4); word-break: break-all; }
.v3-me-balance {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.v3-me-bal {
  padding: 15px 16px;
  background: var(--surface);
  border: 1px solid var(--bd);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.v3-me-bal span { font-size: 10.5px; color: var(--t4); letter-spacing: 0.02em; }
.v3-me-bal b {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--t1);
}
.v3-me-bal b i { font-style: normal; font-size: 11px; font-weight: 600; margin-right: 2px; }
.v3-me-bal.accent b { color: var(--accent); }
.v3-me-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.v3-me-cell {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 15px;
  background: var(--surface);
  border: 1px solid var(--bd);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: var(--t1);
  box-shadow: var(--shadow);
  min-width: 0;
}
.v3-me-cell .ico {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--accent-wash);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.v3-me-cell .ico svg { width: 16px; height: 16px; }
.v3-me-cell .t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.v3-me-cell .t b { font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.v3-me-cell .t span { font-size: 10.5px; color: var(--t4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============================================================
   16. 弹层 / 页脚
   ============================================================ */
.v3-sheet-mask {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 22, 26, 0.36);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}
.v3-sheet {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: 22px 20px calc(20px + env(safe-area-inset-bottom));
  animation: v3up 0.24s ease both;
  border: 1px solid var(--bd);
}
@keyframes v3up {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.v3-sheet h3 { margin: 0 0 8px; font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }
.v3-sheet p { margin: 0 0 14px; font-size: 12.5px; line-height: 1.8; color: var(--t3); }
.v3-sheet ol { margin: 0 0 16px; padding-left: 18px; font-size: 12.5px; line-height: 2; color: var(--t2); }
.v3-foot,
.m4-foot {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--bd-soft);
  text-align: center;
  font-size: 10.5px;
  line-height: 1.9;
  color: var(--t4);
  letter-spacing: 0.02em;
}

/* 底部安全区：没有固定 Tab 了，只留自然留白 */
@supports (padding: env(safe-area-inset-bottom)) {
  .v3-page { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
}

/* 窄屏细节 */
@media (max-width: 400px) {
  .v3-page { padding-left: 15px; padding-right: 15px; }
  .v3-topnav-in { padding-left: 15px; padding-right: 15px; }
  .v3-brand-sub { display: none; }
  .v3-navlink { padding: 8px 7px; font-size: 12px; }
  .v3-navlinks { gap: 0; }
  .v3-hero h1, .m4-h1 { font-size: 26px; }
  .v3-hero, .m4-hero { padding: 18px 16px 16px; }
  .v3-navlink { padding: 8px 7px; font-size: 12px; }
  .m4-price { font-size: 33px; }
}
@media (max-width: 340px) {
  .v3-brand-sub { display: none; }
  .v3-flow-node { width: 54px; }
  .v3-flow-node .n { width: 38px; height: 38px; border-radius: 12px; }
}

/* ---------- 全站取消固定底部 Tab（React 业务页那套也一起收掉） ---------- */
.x-tabbar { display: none !important; }
body.has-x-tabbar { padding-bottom: 0 !important; }
body.has-x-tabbar footer { padding-bottom: 0 !important; }
