/* =========================================================
   销售看板 Hub + 子模块（v100）
   复用 app.css 的设计 token：--brand / --ink-* / --bg / --r-* / --sh-* / --font-display
   风格：苹果 · 留白 · 柔和阴影 · 圆角；每模块带独立强调色（--mc / --mc-bg）
   ========================================================= */

/* ---------- 三个新模块图标（与 .ico mask 体系一致，24×24 stroke） ---------- */
.ico-car {
  -webkit-mask-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 13l2-5a2 2 0 0 1 1.9-1.4h10.2A2 2 0 0 1 19 8l2 5v4a1 1 0 0 1-1 1h-1.5'/%3E%3Cpath d='M3 13v4a1 1 0 0 0 1 1h1.5'/%3E%3Ccircle cx='7' cy='16.6' r='1.5'/%3E%3Ccircle cx='17' cy='16.6' r='1.5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 13l2-5a2 2 0 0 1 1.9-1.4h10.2A2 2 0 0 1 19 8l2 5v4a1 1 0 0 1-1 1h-1.5'/%3E%3Cpath d='M3 13v4a1 1 0 0 0 1 1h1.5'/%3E%3Ccircle cx='7' cy='16.6' r='1.5'/%3E%3Ccircle cx='17' cy='16.6' r='1.5'/%3E%3C/svg%3E");
}
.ico-mortgage {
  -webkit-mask-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 11l8-6 8 6'/%3E%3Cpath d='M6 10v9h12v-9'/%3E%3Cpath d='M9.5 14.5l5 3'/%3E%3Ccircle cx='9' cy='14' r='1.5'/%3E%3Ccircle cx='15' cy='18' r='1.5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 11l8-6 8 6'/%3E%3Cpath d='M6 10v9h12v-9'/%3E%3Cpath d='M9.5 14.5l5 3'/%3E%3Ccircle cx='9' cy='14' r='1.5'/%3E%3Ccircle cx='15' cy='18' r='1.5'/%3E%3C/svg%3E");
}
.ico-shield {
  -webkit-mask-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5c0 4.5-3 7.4-7 9-4-1.6-7-4.5-7-9V6z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5c0 4.5-3 7.4-7 9-4-1.6-7-4.5-7-9V6z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
}

/* v104 二次营销：循环箭头 —— 对已交付客户的再销售（延保 / 焕新无忧） */
.ico-remarket {
  -webkit-mask-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11a8 8 0 0 0-13.7-4.6L4 8.7'/%3E%3Cpath d='M4 4v4.7h4.7'/%3E%3Cpath d='M4 13a8 8 0 0 0 13.7 4.6L20 15.3'/%3E%3Cpath d='M20 20v-4.7h-4.7'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11a8 8 0 0 0-13.7-4.6L4 8.7'/%3E%3Cpath d='M4 4v4.7h4.7'/%3E%3Cpath d='M4 13a8 8 0 0 0 13.7 4.6L20 15.3'/%3E%3Cpath d='M20 20v-4.7h-4.7'/%3E%3C/svg%3E");
}

/* ---------- Hub 容器 ---------- */
.dash-hub { padding: 8px 0 24px; max-width: 720px; margin: 0 auto; }

.dash-hub-hd { margin: 6px 4px 16px; }
.dash-hub-hd .dh-title {
  font-size: 22px; font-weight: 700; letter-spacing: -.01em; color: var(--ink-1);
  display: flex; align-items: center; gap: 9px;
}
.dash-hub-hd .dh-title::before {
  content: ''; width: 4px; height: 20px; border-radius: 2px; background: var(--brand);
}
.dash-hub-hd .dh-sub { margin-top: 6px; font-size: 13px; font-weight: 400; color: var(--ink-3); }

/* ---------- 2 列网格 ---------- */
.dash-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

.dash-card {
  --mc: var(--brand); --mc-bg: var(--brand-50); --mc-rgb: 47, 128, 237;
  /* 底色：纯色（肉哥 2026-09-03 定稿，去掉渐变）。
     层次感全交给彩色的图标块（--mc-bg），卡片本体保持干净白底。
     注释留档：曾经试过四角线性渐变（135/225/315/45deg），肉哥嫌「不高级」，已废弃。 */
  position: relative; overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  padding: 18px 16px 16px;
  box-shadow: var(--sh-sm);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease), border-color .18s;
}
.dash-card:active { transform: scale(.97); }
.dash-card:hover { box-shadow: var(--sh); border-color: var(--mc); }

.dash-card .dc-ico {
  width: 44px; height: 44px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: var(--mc-bg); color: var(--mc);
  margin-bottom: 14px; position: relative; z-index: 1;
}
.dash-card .dc-ico .ico { font-size: 24px; }
.dash-card .dc-label { font-size: 16px; font-weight: 600; color: var(--ink-1); position: relative; z-index: 1; }
.dash-card .dc-desc {
  margin-top: 5px; font-size: 11px; font-weight: 400; line-height: 1.5; color: var(--ink-3);
  min-height: 36px; position: relative; z-index: 1;
}
.dash-card .dc-tag {
  margin-top: 12px; display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 400; padding: 3px 0; border-radius: 999px;
  position: relative; z-index: 1;
}
/* 标签保持纯文字（模块色 + 圆点），不给胶囊底色 —— 纯色底上再叠一层淡底
   会显得碎；左对齐与上方文案对齐，整卡只有图标块一处彩度。 */
.dash-card.ready .dc-tag { color: var(--mc); background: transparent; }
.dash-card.soon  .dc-tag { color: var(--ink-3); background: transparent; }
.dash-card .dc-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- 子模块容器（钻取页） ---------- */
/* 负边距抵消 .page 的 14px 内边距，让返回栏满宽吸顶 */
.sub-page { display: flex; flex-direction: column; margin: -14px -14px 0; }
.sub-bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 10px;
  background: rgba(245, 245, 247, .86);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border-2);
}
.sub-back {
  display: inline-flex; align-items: center; gap: 1px;
  border: none; background: transparent; padding: 6px 10px 6px 4px;
  font-size: 15px; font-weight: 500; color: var(--brand);
  -webkit-tap-highlight-color: transparent;
  position: relative; z-index: 1;  /* v114.6.9.6: 让按钮在 absolute 标题之上, 仍可点击 */
  flex-shrink: 0;
}
.sub-back:active { opacity: .55; }
/* v114.6.9.6 肉哥 9/8 反馈 "最顶上这个销量看板居中"：标题 absolute 钉在 sub-bar 正中央，不受返回按钮影响 */
.sub-title {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-size: 16px; font-weight: 600; color: var(--ink-1);
  pointer-events: none;  /* 标题只是占位, 透传点击给 sub-bar 底 */
}
.sub-body { flex: 1; padding: 14px 14px 24px; }

/* ---------- 二次营销看板：转化漏斗（v104） ---------- */
.rm-fn-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.rm-fn-row:last-of-type { margin-bottom: 0; }
.rm-fn-lbl {
  width: 96px; flex: none; font-size: 13px; font-weight: 400; color: var(--ink-2);
  display: flex; flex-direction: column; line-height: 1.3;
}
.rm-fn-sub { font-size: 11px; font-weight: 400; color: var(--ink-3); margin-top: 1px; }
.rm-fn-bar {
  flex: 1; height: 22px; border-radius: 6px; background: var(--bg);
  overflow: hidden;
}
.rm-fn-bar i { display: block; height: 100%; border-radius: 6px; transition: width .4s var(--ease-out); }
.rm-fn-num { width: 40px; flex: none; text-align: right; font-size: 15px; font-weight: 700; color: var(--ink-1); }
.rm-fn-foot {
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border-2);
  font-size: 11px; font-weight: 400; color: var(--ink-3); text-align: center;
}

/* ---------- 二次营销看板：分产品卡片 ---------- */
.rm-prod-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 12px; }
.rm-prod-card {
  --pc: var(--brand);
  position: relative; overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  box-shadow: var(--sh-sm);
  padding: 0 0 14px;
}
.rm-prod-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--pc); opacity: .85;
}
.rm-pc-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px 0 16px;
}
.rm-pc-name { font-size: 13px; font-weight: 400; color: var(--ink-2); }
.rm-pc-share { font-size: 11px; font-weight: 400; color: var(--pc); }
.rm-pc-main {
  padding: 2px 14px 0 16px; font-size: 28px; font-weight: 700;
  color: var(--pc); letter-spacing: -.02em; line-height: 1.15;
}
.rm-pc-unit { font-size: 11px; font-weight: 400; color: var(--ink-3); }
.rm-pc-rows { padding: 8px 14px 0 16px; }
.rm-pc-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; font-weight: 400; color: var(--ink-3); padding: 2px 0;
}
.rm-pc-row b { font-size: 13px; font-weight: 400; color: var(--ink-1); }
.rm-pc-bar {
  margin: 10px 14px 0 16px; height: 4px; border-radius: 2px;
  background: var(--bg); overflow: hidden;
}
.rm-pc-bar i { display: block; height: 100%; background: var(--pc); border-radius: 2px; }

/* ---------- 占位空态（待建模块） ---------- */
.ph { padding: 64px 24px; text-align: center; }
.ph-ico {
  width: 72px; height: 72px; border-radius: 20px; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  background: var(--mc-bg); color: var(--mc);
}
.ph-ico .ico { font-size: 38px; }
.ph-title { font-size: 17px; font-weight: 600; color: var(--ink-1); }
.ph-desc { margin-top: 6px; font-size: 13px; font-weight: 400; color: var(--ink-3); }
.ph-metrics { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ph-chip {
  font-size: 11px; font-weight: 400; color: var(--ink-2);
  background: var(--bg); border: 1px solid var(--border-2);
  padding: 6px 12px; border-radius: 999px;
}
.ph-badge {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 400; color: var(--mc); background: var(--mc-bg);
  padding: 5px 12px; border-radius: 999px;
}
.ph-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
