/* openclue · 面向中小企业的 AI 销售线索 App
   移动优先、纯静态、精致简约。所有 token 见 :root。
   配色:单一蓝色系深浅 + 中性灰，克制、商务、和谐。 */

/* ============ 1. Design Token ============ */
:root {
  /* 品牌主色:深靛蓝(indigo-ink)，沉稳可信、商务语境。CTA 用最深/最饱和。 */
  --c-ink:        #14264D;   /* 顶栏 / 深色面 / 最深 */
  --c-primary:    #1E3A8A;   /* 主色:深蓝 = 高意图 / 主标题强调 */
  --c-primary-2:  #2456C9;   /* 主按钮 / CTA / 链接 / 选中(最饱和) */
  --c-primary-3:  #4F7BE6;   /* 中蓝 = 中意图 / hover / 高光 */
  --c-primary-4:  #8FB0F2;   /* 浅蓝 */
  --c-tint:       #E8EEFB;   /* 浅底:选中背景、信息条 */
  --c-tint-2:     #F2F6FD;   /* 更浅:胶囊底 */
  --c-tint-3:     #FAFCFF;   /* 极浅 */

  /* 意图分语义色:同色系 深→浅 + 灰(无红黄绿撞色)
     高 = 深蓝、中 = 中蓝、低 = 中性灰 */
  --c-high:      #1E3A8A;   --c-high-bg: #E7ECF9;   --c-high-ring: #2456C9;
  --c-mid:       #3F66CC;   --c-mid-bg:  #EBF0FB;   --c-mid-ring:  #6E92E8;
  --c-low:       #6B7585;   --c-low-bg:  #EFF1F4;   --c-low-ring:  #AEB6C2;

  /* 中性色阶(微蓝灰) */
  --c-text:      #182334;
  --c-text-2:    #4B5666;
  --c-text-3:    #88909E;
  --c-text-4:    #B6BCC7;
  --c-border:    #E7EAEF;
  --c-border-2:  #F0F2F6;
  --c-surface:   #FFFFFF;
  --c-bg:        #F4F6FA;

  /* 字号阶梯(rem,根 16px) */
  --fs-display: 1.5rem;    /* 24 大数字 */
  --fs-h1:      1.1875rem; /* 19 详情主标题 */
  --fs-h2:      1.0rem;    /* 16 卡片标题 / 区块标题 */
  --fs-body:    0.9375rem; /* 15 正文 */
  --fs-sub:     0.8125rem; /* 13 次要 / 按钮 */
  --fs-cap:     0.6875rem; /* 11 徽章 / 时间 / 标签 */

  /* 圆角 */
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   20px;
  --r-pill: 999px;

  /* 间距(4 栅格) */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 28px; --sp-7: 36px;
  --page-x: 18px;

  /* 阴影:柔和、层次克制(蓝调) */
  --sh-card: 0 1px 2px rgba(20,38,77,.04), 0 5px 14px rgba(20,38,77,.05);
  --sh-card-hi: 0 2px 4px rgba(20,38,77,.05), 0 10px 26px rgba(20,38,77,.10);
  --sh-pop: 0 -8px 32px rgba(20,38,77,.16);
  --sh-dock: 0 -2px 16px rgba(20,38,77,.07);

  /* 尺寸 */
  --h-btn: 50px;
  --h-tab: 60px;
  --maxw: 430px;
}

/* ============ 2. 基础 ============ */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body {
  height: 100%;
  background: #c6cbd4;
  color: var(--c-text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#app {
  position: relative;
  max-width: var(--maxw);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--c-bg);
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 48px rgba(20,38,77,.14);
  overflow: hidden;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
svg { display: block; }
.icon { width: 1em; height: 1em; flex-shrink: 0; }

/* ============ 3. 顶栏 ============ */
.appbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--c-ink);
  color: #fff;
  padding: var(--sp-3) var(--page-x);
  padding-top: calc(var(--sp-3) + env(safe-area-inset-top));
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2);
  min-height: 52px;
}
.appbar .brand { display: flex; align-items: center; gap: 7px; }
.appbar .brand .logo-dot {
  width: 22px; height: 22px; border-radius: 7px;
  background: linear-gradient(135deg, var(--c-primary-2), var(--c-primary-3));
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.appbar .brand .logo-dot .icon { width: 13px; height: 13px; }
.appbar .brand b { font-size: 1.0625rem; font-weight: 700; letter-spacing: .2px; }
.appbar .quota {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: var(--fs-cap); font-weight: 500;
  background: rgba(255,255,255,.13);
  padding: 6px 11px; border-radius: var(--r-pill);
  white-space: nowrap; color: #E6ECF8;
}
.appbar .quota .icon { width: 13px; height: 13px; color: #fff; opacity: .9; }
.appbar .quota b { font-weight: 700; color: #fff; }
.appbar .quota.low b { color: #FFD9B0; }

.appbar.back-bar { justify-content: flex-start; gap: var(--sp-3); }
.appbar .back-btn {
  color: #fff; width: 30px; height: 30px; margin-left: -6px;
  display: flex; align-items: center; justify-content: center;
}
.appbar .back-btn .icon { width: 22px; height: 22px; }
.appbar .back-title { font-size: var(--fs-h2); font-weight: 600; }

/* ============ 4. 主区 ============ */
.main {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding-bottom: calc(var(--h-tab) + env(safe-area-inset-bottom) + var(--sp-4));
}
.main.has-dock {
  padding-bottom: calc(var(--h-btn) + env(safe-area-inset-bottom) + var(--sp-7));
}
.main.plain { padding-bottom: calc(env(safe-area-inset-bottom) + var(--sp-5)); }

/* 情境条 */
.context-bar {
  display: flex; align-items: center; gap: 7px;
  background: linear-gradient(180deg, var(--c-tint), #EDF2FC);
  color: var(--c-primary);
  font-size: var(--fs-sub); font-weight: 500;
  padding: 10px var(--page-x);
}
.context-bar .icon { width: 15px; height: 15px; color: var(--c-primary-2); }
.context-bar b { font-weight: 700; }

/* ============ 5. 线索卡(更精致、更紧凑) ============ */
.lead-list { padding: var(--sp-3) var(--page-x) var(--sp-1); display: flex; flex-direction: column; gap: 10px; }

.lead-card {
  position: relative;
  background: var(--c-surface);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-card);
  padding: 13px var(--sp-4) 11px;
  /* 左侧色条按意图等级深浅区分,强化卡片差异度 */
  border: 1px solid var(--c-border-2);
  border-left: 3px solid var(--rail, var(--c-border));
  transition: transform .14s ease, box-shadow .14s ease;
}
.lead-card.lv-high { --rail: var(--c-high); }
.lead-card.lv-mid  { --rail: var(--c-mid); }
.lead-card.lv-low  { --rail: var(--c-low); }
.lead-card:active { transform: scale(.992); box-shadow: var(--sh-card-hi); }

/* 头部:遮罩名 + 右上意图分徽章 */
.lead-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.lead-headtext { flex: 1; min-width: 0; }
.lead-loc {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: var(--fs-cap); color: var(--c-text-3); font-weight: 500; margin-bottom: 2px;
}
.lead-loc .icon { width: 11px; height: 11px; color: var(--c-text-4); }
.lead-name { font-size: var(--fs-h2); font-weight: 700; line-height: 1.25; color: var(--c-text); letter-spacing: .2px; }

/* 意图分徽章:大号数字 + 语义色环(同色系深浅 + 灰) */
.score-badge {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative;
}
.score-badge .ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2.5px solid var(--ring); opacity: .9;
}
.score-badge .num { font-size: 1.0625rem; font-weight: 800; line-height: 1; color: var(--col); }
.score-badge .lab { font-size: 8px; font-weight: 700; color: var(--col); margin-top: 1px; letter-spacing: .3px; }
.score-badge.high { --col: var(--c-high); --ring: var(--c-high-ring); background: var(--c-high-bg); }
.score-badge.mid  { --col: var(--c-mid);  --ring: var(--c-mid-ring);  background: var(--c-mid-bg); }
.score-badge.low  { --col: var(--c-low);  --ring: var(--c-low-ring);  background: var(--c-low-bg); }

/* tags:品类 + 意图等级小标签 */
.tag-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.tag {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: var(--fs-cap); font-weight: 600;
  padding: 3px 8px; border-radius: var(--r-pill);
  background: var(--c-tint-2); color: var(--c-primary-2);
}
.tag .icon { width: 11px; height: 11px; }
.tag.lvl-high { background: var(--c-high-bg); color: var(--c-high); }
.tag.lvl-mid  { background: var(--c-mid-bg);  color: var(--c-mid); }
.tag.lvl-low  { background: var(--c-low-bg);  color: var(--c-low); }

/* tagline:一行正文 */
.lead-tagline {
  margin-top: 8px;
  font-size: var(--fs-sub); color: var(--c-text-2); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}

/* 底栏:状态角标(左) + 打开线索按钮(右下) */
.lead-foot {
  margin-top: 10px; padding-top: 9px;
  border-top: 1px solid var(--c-border-2);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2);
}
.lead-status {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: var(--fs-cap); font-weight: 600; color: var(--c-text-3);
}
.lead-status .icon { width: 13px; height: 13px; }
.lead-status.done { color: var(--c-primary-2); }

/* ============ 7. 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: var(--fs-sub); font-weight: 700;
  border-radius: var(--r-md); min-height: 44px; padding: 0 18px;
  transition: transform .08s ease, background .15s ease, opacity .15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn .icon { width: 16px; height: 16px; }
/* CTA = 最深/最饱和蓝 */
.btn-accent { background: var(--c-primary-2); color: #fff; box-shadow: 0 4px 12px rgba(36,86,201,.26); }
.btn-accent:active { background: var(--c-primary); }
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:active { background: var(--c-ink); }
.btn-outline { background: #fff; color: var(--c-primary-2); border: 1.5px solid var(--c-primary-2); }
.btn-ghost { background: var(--c-tint); color: var(--c-primary-2); }
.btn-block { width: 100%; min-height: var(--h-btn); }
.btn-sm { min-height: 36px; padding: 0 14px; border-radius: var(--r-md); font-size: var(--fs-sub); }
.btn .spin {
  width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.45);
  border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite;
}

/* ============ 8. 详情页 ============ */
.detail-hero {
  background: linear-gradient(180deg, var(--c-ink), #1B3163);
  color: #fff; padding: var(--sp-5) var(--page-x) var(--sp-5);
}
.detail-hero .d-top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-3); }
.detail-hero .d-loc {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: var(--fs-cap); color: rgba(255,255,255,.7); font-weight: 500; margin-bottom: 5px;
}
.detail-hero .d-loc .icon { width: 12px; height: 12px; }
.detail-hero .d-name { font-size: var(--fs-h1); font-weight: 700; line-height: 1.3; }
.detail-hero .d-name.locked { color: rgba(255,255,255,.96); }
.detail-hero .d-name .lock-mini { display: inline-flex; vertical-align: -1px; margin-left: 5px; opacity: .65; }
.detail-hero .d-name .lock-mini .icon { width: 13px; height: 13px; }
.detail-hero .d-tagline { font-size: var(--fs-sub); color: rgba(255,255,255,.82); margin-top: var(--sp-3); }
.detail-hero .d-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--sp-3); }
.detail-hero .d-tags .tag { background: rgba(255,255,255,.14); color: #fff; }
.detail-hero .d-tags .tag.lvl-high,
.detail-hero .d-tags .tag.lvl-mid,
.detail-hero .d-tags .tag.lvl-low { background: rgba(255,255,255,.18); color: #fff; }

/* 详情 hero 内的意图分徽章(亮色环,深底) */
.score-badge.on-dark .num, .score-badge.on-dark .lab { color: #fff; }
.score-badge.on-dark { background: rgba(255,255,255,.1); }
.score-badge.on-dark .ring { border-color: rgba(255,255,255,.55); }
.score-badge.on-dark.high .ring { border-color: #9CBBFB; }
.score-badge.on-dark.mid  .ring { border-color: #7E9EEC; }

.section { background: var(--c-surface); margin-top: var(--sp-3); padding: var(--sp-5) var(--page-x); }
.section:first-child { margin-top: 0; }
.section-title {
  font-size: var(--fs-h2); font-weight: 700; color: var(--c-text);
  display: flex; align-items: center; gap: 7px;
}
.section-title .icon { width: 16px; height: 16px; color: var(--c-primary-2); }
.section-title .hint { margin-left: auto; font-size: var(--fs-cap); color: var(--c-text-3); font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.section-title .hint .icon { width: 12px; height: 12px; color: var(--c-text-4); }
.section-body { margin-top: var(--sp-3); font-size: var(--fs-body); color: var(--c-text-2); line-height: 1.65; }
.section-body .hl { color: var(--c-primary-2); font-weight: 700; }

/* 依据列表 */
.evi-list { margin-top: var(--sp-3); display: flex; flex-direction: column; gap: var(--sp-2); }
.evi-item {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-3);
  background: var(--c-tint-2); border-radius: var(--r-md);
}
.evi-item .evi-dot {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: var(--c-tint); color: var(--c-primary-2);
  display: flex; align-items: center; justify-content: center;
}
.evi-item .evi-dot .icon { width: 14px; height: 14px; }
.evi-item .evi-body { flex: 1; min-width: 0; }
.evi-item .evi-label { font-size: var(--fs-body); font-weight: 600; color: var(--c-text); }
.evi-item .evi-time { font-size: var(--fs-cap); color: var(--c-text-3); margin-top: 2px; display: inline-flex; align-items: center; gap: 4px; }
.evi-item .evi-time .icon { width: 11px; height: 11px; }

/* 联系方式 */
.contact-locked {
  position: relative; margin-top: var(--sp-3);
  border: 1px dashed var(--c-border); border-radius: var(--r-md);
  padding: var(--sp-4); overflow: hidden;
}
.contact-locked .blur { filter: blur(5px); user-select: none; color: var(--c-text-2); pointer-events: none; }
.contact-locked .blur .row { display: flex; justify-content: space-between; padding: 5px 0; font-size: var(--fs-body); }
.contact-locked .lock-tip {
  margin-top: var(--sp-3); display: flex; align-items: center; gap: 6px;
  font-size: var(--fs-sub); color: var(--c-text-3);
}
.contact-locked .lock-tip .icon { width: 14px; height: 14px; }

.contact-open {
  margin-top: var(--sp-3); border-radius: var(--r-md);
  border: 1px solid var(--c-tint); background: var(--c-tint-2); overflow: hidden;
}
.contact-open .row {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4); font-size: var(--fs-body);
  border-bottom: 1px solid rgba(36,86,201,.07);
}
.contact-open .row:last-child { border-bottom: none; }
.contact-open .row .k { color: var(--c-text-3); font-size: var(--fs-sub); }
.contact-open .row .v { font-weight: 700; color: var(--c-text); }
.contact-open .row .copy {
  display: inline-flex; align-items: center; gap: 4px; margin-left: 10px;
  font-size: var(--fs-cap); color: var(--c-primary-2); font-weight: 600;
}
.contact-open .row .copy .icon { width: 13px; height: 13px; }
.unlock-note {
  display: flex; align-items: center; gap: 6px; margin-top: var(--sp-3);
  font-size: var(--fs-cap); color: var(--c-primary-2); font-weight: 500;
}
.unlock-note .icon { width: 13px; height: 13px; }

/* 线索标记区(两维度 · 均单选 chip) */
.mark-intro {
  margin-top: 6px; font-size: var(--fs-sub); color: var(--c-text-3); line-height: 1.5;
}
.mark-dim { margin-top: var(--sp-4); }
.mark-dim .mark-label {
  font-size: var(--fs-sub); color: var(--c-text-3); font-weight: 600; margin-bottom: 9px;
}
.mark-row { display: flex; flex-wrap: wrap; gap: 8px; }
.mark-chip {
  padding: 8px 14px; border-radius: var(--r-pill);
  border: 1.5px solid var(--c-border); background: #fff;
  font-size: var(--fs-sub); font-weight: 600; color: var(--c-text-2);
  transition: all .14s ease;
}
.mark-chip:active { transform: scale(.96); }
.mark-chip.active { background: var(--c-primary-2); color: #fff; border-color: var(--c-primary-2); box-shadow: 0 3px 10px rgba(36,86,201,.22); }

/* 吸底操作区 */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0;
  max-width: var(--maxw); margin: 0 auto;
  background: rgba(255,255,255,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--c-border);
  padding: var(--sp-3) var(--page-x) calc(var(--sp-3) + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: var(--sp-3);
  box-shadow: var(--sh-dock); z-index: 25;
}
.dock .dock-cost { font-size: var(--fs-cap); color: var(--c-text-3); white-space: nowrap; line-height: 1.3; }
.dock .dock-cost b { color: var(--c-text); font-weight: 700; }
.dock .btn { flex: 1; }

/* ============ 9. 我的页 ============ */
.me-hero {
  background: linear-gradient(180deg, var(--c-ink), #1B3163);
  color: #fff; padding: var(--sp-6) var(--page-x) var(--sp-5);
}
.me-hero .m-top { display: flex; align-items: center; gap: var(--sp-3); }
.me-hero .m-avatar {
  width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0;
  background: rgba(255,255,255,.13); display: flex; align-items: center; justify-content: center;
}
.me-hero .m-avatar .icon { width: 24px; height: 24px; color: #fff; }
.me-hero .m-id { flex: 1; min-width: 0; }
.me-hero .m-name { font-size: var(--fs-h1); font-weight: 700; line-height: 1.3; }
.me-hero .m-sub { font-size: var(--fs-sub); color: rgba(255,255,255,.78); margin-top: 4px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.me-hero .m-sub .icon { width: 13px; height: 13px; }
.me-hero .m-plan {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: var(--fs-cap); font-weight: 700; color: #fff;
  background: rgba(255,255,255,.16); padding: 4px 10px; border-radius: var(--r-pill);
  flex-shrink: 0;
}
.me-hero .m-plan .icon { width: 12px; height: 12px; }

.stat-row { display: flex; gap: var(--sp-3); padding: var(--sp-4) var(--page-x) 0; }
.stat-card {
  flex: 1; background: var(--c-surface); border-radius: var(--r-lg);
  box-shadow: var(--sh-card); padding: var(--sp-4); border: 1px solid var(--c-border-2);
}
.stat-card .s-label { font-size: var(--fs-cap); color: var(--c-text-3); display: flex; align-items: center; gap: 5px; }
.stat-card .s-label .icon { width: 13px; height: 13px; color: var(--c-primary-2); }
.stat-card .s-num { font-size: var(--fs-display); font-weight: 800; color: var(--c-primary); margin: 6px 0 4px; line-height: 1; }
.stat-card .s-num small { font-size: var(--fs-body); color: var(--c-text-3); font-weight: 500; }
.stat-card .s-foot { font-size: var(--fs-cap); color: var(--c-text-3); display: inline-flex; align-items: center; gap: 4px; }
.stat-card .s-foot .icon { width: 11px; height: 11px; }
/* 额度进度细条 */
.quota-track { margin-top: 9px; height: 5px; border-radius: var(--r-pill); background: var(--c-border); overflow: hidden; }
.quota-track i { display: block; height: 100%; background: linear-gradient(90deg, var(--c-primary-2), var(--c-primary-3)); border-radius: var(--r-pill); transition: width .5s ease; }
.stat-card .btn { margin-top: var(--sp-3); }

.cap-progress { display: flex; align-items: center; gap: var(--sp-2); margin-top: var(--sp-3); }
.cap-progress .bar { flex: 1; height: 6px; border-radius: var(--r-pill); background: var(--c-border); overflow: hidden; }
.cap-progress .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--c-primary-2), var(--c-primary-3)); border-radius: var(--r-pill); transition: width .5s ease; }
.cap-progress .pct { font-size: var(--fs-cap); color: var(--c-text-2); font-weight: 600; }

/* ============ 9b. 升级页(梯次方案) ============ */
.plans-hero {
  background: linear-gradient(180deg, var(--c-ink), #1B3163);
  color: #fff; padding: var(--sp-6) var(--page-x) var(--sp-6); text-align: center;
}
.plans-hero .ph-ic {
  width: 52px; height: 52px; border-radius: 16px; margin: 0 auto var(--sp-3);
  background: rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center;
}
.plans-hero .ph-ic .icon { width: 26px; height: 26px; color: #fff; }
.plans-hero .ph-title { font-size: var(--fs-h1); font-weight: 700; }
.plans-hero .ph-sub { font-size: var(--fs-sub); color: rgba(255,255,255,.8); margin-top: 6px; line-height: 1.5; }

.plan-stack { padding: var(--sp-4) var(--page-x) var(--sp-2); display: flex; flex-direction: column; gap: var(--sp-3); }
.plan-card {
  position: relative; background: var(--c-surface);
  border: 1.5px solid var(--c-border); border-radius: var(--r-lg);
  box-shadow: var(--sh-card); padding: var(--sp-4) var(--sp-4) var(--sp-4);
  transition: transform .12s ease;
}
.plan-card:active { transform: scale(.995); }
.plan-card.highlight {
  border-color: var(--c-primary-2); border-width: 2px;
  box-shadow: 0 2px 6px rgba(36,86,201,.08), 0 12px 28px rgba(36,86,201,.16);
}
.plan-card.current { background: var(--c-tint-3); }
.plan-ribbon {
  position: absolute; top: -10px; left: var(--sp-4);
  font-size: 10px; font-weight: 800; letter-spacing: .5px; color: #fff;
  background: var(--c-primary-2); padding: 3px 10px; border-radius: var(--r-pill);
  box-shadow: 0 3px 8px rgba(36,86,201,.32);
}
.plan-card .pc-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-2); }
.plan-card .pc-name { font-size: var(--fs-h2); font-weight: 800; color: var(--c-text); display: flex; align-items: center; gap: 7px; }
.plan-card .pc-cur {
  font-size: 10px; font-weight: 700; color: var(--c-text-3);
  background: var(--c-border-2); padding: 2px 8px; border-radius: var(--r-pill);
}
.plan-card .pc-price { white-space: nowrap; }
.plan-card .pc-price b { font-size: 1.375rem; font-weight: 800; color: var(--c-primary); }
.plan-card .pc-price span { font-size: var(--fs-sub); color: var(--c-text-3); font-weight: 600; }
.plan-card .pc-tagline { font-size: var(--fs-sub); color: var(--c-text-2); margin-top: 4px; }
.plan-card .pc-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.plan-card .pc-open {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: var(--fs-cap); font-weight: 700; color: var(--c-primary-2);
  background: var(--c-tint); padding: 5px 11px; border-radius: var(--r-pill);
}
.plan-card .pc-open.alt { color: var(--c-primary); background: var(--c-tint-2); }
.plan-card .pc-open .icon { width: 13px; height: 13px; }
.plans-hero .ph-quota {
  display: inline-flex; align-items: center; gap: 5px; margin-top: var(--sp-4);
  font-size: var(--fs-sub); font-weight: 600; color: #fff;
  background: rgba(255,255,255,.14); padding: 7px 14px; border-radius: var(--r-pill);
}
.plans-hero .ph-quota .icon { width: 14px; height: 14px; }
.plan-card .pc-feats { margin-top: var(--sp-3); display: flex; flex-direction: column; gap: 7px; }
.plan-card .pc-feat { display: flex; align-items: flex-start; gap: 7px; font-size: var(--fs-sub); color: var(--c-text-2); line-height: 1.4; }
.plan-card .pc-feat .icon { width: 15px; height: 15px; color: var(--c-primary-2); flex-shrink: 0; margin-top: 1px; }
.plan-card.current .pc-feat .icon { color: var(--c-text-4); }
.plan-card .pc-cta { margin-top: var(--sp-4); }
.plan-card .pc-cta .btn { width: 100%; }
.plan-card .pc-current-tag {
  margin-top: var(--sp-4); text-align: center;
  font-size: var(--fs-sub); font-weight: 700; color: var(--c-text-3);
  padding: 13px; border: 1.5px dashed var(--c-border); border-radius: var(--r-md);
}
.plans-foot { text-align: center; font-size: var(--fs-cap); color: var(--c-text-4); padding: var(--sp-3) var(--page-x) var(--sp-5); }

/* ============ 9c. 跟进看板(状态分组列表) ============ */
.follow-head { padding: var(--sp-4) var(--page-x) 0; }
.follow-head .fh-title {
  display: flex; align-items: center; gap: 7px;
  font-size: var(--fs-h1); font-weight: 700; color: var(--c-text);
}
.follow-head .fh-title .icon { width: 20px; height: 20px; color: var(--c-primary-2); }
.follow-head .fh-sub { font-size: var(--fs-sub); color: var(--c-text-3); margin-top: 5px; }
.follow-head .fh-sub b { color: var(--c-primary); font-weight: 700; }

.fg-group { margin-top: var(--sp-4); }
.fg-head {
  display: flex; align-items: center; gap: 8px;
  padding: 0 var(--page-x) var(--sp-2);
}
.fg-head .fg-name { font-size: var(--fs-h2); font-weight: 700; color: var(--c-text); }
.fg-head .fg-count {
  font-size: var(--fs-cap); font-weight: 800; color: var(--c-primary-2);
  background: var(--c-tint); min-width: 22px; height: 20px; padding: 0 7px;
  border-radius: var(--r-pill); display: inline-flex; align-items: center; justify-content: center;
}
.fg-list { display: flex; flex-direction: column; gap: 9px; padding: 0 var(--page-x); }

.follow-card {
  display: flex; align-items: center; gap: var(--sp-3);
  background: var(--c-surface); border-radius: var(--r-lg);
  box-shadow: var(--sh-card); padding: 12px var(--sp-4);
  border: 1px solid var(--c-border-2);
  border-left: 3px solid var(--rail, var(--c-border));
  transition: transform .14s ease, box-shadow .14s ease;
}
.follow-card.lv-high { --rail: var(--c-high); }
.follow-card.lv-mid  { --rail: var(--c-mid); }
.follow-card.lv-low  { --rail: var(--c-low); }
.follow-card:active { transform: scale(.992); box-shadow: var(--sh-card-hi); }
.follow-card .fc-main { flex: 1; min-width: 0; }
.follow-card .fc-name { font-size: var(--fs-h2); font-weight: 700; color: var(--c-text); line-height: 1.25; }
.follow-card .fc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.follow-card .fc-cat,
.follow-card .fc-s,
.follow-card .fc-q {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: var(--fs-cap); font-weight: 600;
  padding: 3px 8px; border-radius: var(--r-pill);
}
.follow-card .fc-cat { background: var(--c-tint-2); color: var(--c-primary-2); }
.follow-card .fc-s { background: var(--c-tint); color: var(--c-primary); }
.follow-card .fc-q { background: var(--c-low-bg); color: var(--c-low); }
.follow-card .fc-cat .icon, .follow-card .fc-s .icon { width: 11px; height: 11px; }
.follow-card .fc-score .score-badge { width: 42px; height: 42px; }
.follow-card .fc-score .num { font-size: 1rem; }

/* ============ 9d. 我的页 · 提示语 ============ */
.me-hero .me-tip {
  display: flex; align-items: center; gap: 7px; margin-top: var(--sp-4);
  font-size: var(--fs-sub); color: rgba(255,255,255,.9); font-weight: 500;
  background: rgba(255,255,255,.1); padding: 9px 13px; border-radius: var(--r-md);
}
.me-hero .me-tip .icon { width: 15px; height: 15px; flex-shrink: 0; }

/* ============ 9e. 公司信息智能维护 ============ */
.cm-help, .cm-intro {
  font-size: var(--fs-sub); color: var(--c-text-3); line-height: 1.5; margin-top: 6px;
}
.cm-tools { display: flex; gap: var(--sp-2); margin-top: var(--sp-3); }
.cm-tool {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 42px; border-radius: var(--r-md);
  border: 1.5px solid var(--c-primary-2); background: var(--c-tint-2);
  color: var(--c-primary-2); font-size: var(--fs-sub); font-weight: 700;
  transition: transform .1s ease, background .15s ease;
}
.cm-tool:active { transform: scale(.97); background: var(--c-tint); }
.cm-tool .icon { width: 16px; height: 16px; }

.field-grid { margin-top: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-4); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label {
  display: flex; align-items: center; gap: 6px;
  font-size: var(--fs-sub); color: var(--c-text-3); font-weight: 600;
}
.field-mic {
  margin-left: auto; width: 28px; height: 28px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--c-tint); color: var(--c-primary-2);
  transition: all .14s ease;
}
.field-mic .icon { width: 15px; height: 15px; }
.field-mic:active { transform: scale(.92); }
.field-mic.listening { background: var(--c-primary-2); color: #fff; animation: pulse 1s ease infinite; }
.field-input {
  width: 100%; font-family: inherit; font-size: var(--fs-body); color: var(--c-text);
  background: var(--c-tint-3); border: 1.5px solid var(--c-border);
  border-radius: var(--r-md); padding: 11px 13px; line-height: 1.5;
  transition: border-color .15s ease, background .15s ease;
  -webkit-appearance: none; resize: vertical;
}
.field-input::placeholder { color: var(--c-text-4); }
.field-input:focus { outline: none; border-color: var(--c-primary-2); background: #fff; }
textarea.field-input { min-height: 72px; }

/* ============ 9f. 客户画像 ============ */
.cp-lock {
  display: flex; align-items: center; gap: var(--sp-3); margin-top: var(--sp-3);
  background: linear-gradient(135deg, var(--c-tint), #EDF2FC);
  border: 1.5px solid var(--c-tint); border-radius: var(--r-lg); padding: var(--sp-4);
}
.cp-lock .cp-lock-ic {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: #fff; color: var(--c-primary-2);
  display: flex; align-items: center; justify-content: center;
}
.cp-lock .cp-lock-ic .icon { width: 20px; height: 20px; }
.cp-lock .cp-lock-text { flex: 1; min-width: 0; }
.cp-lock .cp-lock-title { font-size: var(--fs-body); font-weight: 700; color: var(--c-text); }
.cp-lock .cp-lock-sub { font-size: var(--fs-cap); color: var(--c-text-3); margin-top: 3px; line-height: 1.4; }
.cp-lock .btn { flex-shrink: 0; }

.cp-card {
  margin-top: var(--sp-3); background: var(--c-tint-3);
  border: 1px solid var(--c-border); border-radius: var(--r-md); padding: var(--sp-3) var(--sp-4);
}
.cp-card .cp-card-head { display: flex; align-items: center; gap: 6px; font-size: var(--fs-body); color: var(--c-text); }
.cp-card .cp-card-head .icon { width: 16px; height: 16px; color: var(--c-primary-2); }
.cp-card .cp-card-head b { font-weight: 700; }
.cp-card .cp-card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.cp-card .cp-card-meta span {
  font-size: var(--fs-cap); font-weight: 600; color: var(--c-primary-2);
  background: var(--c-tint-2); padding: 3px 8px; border-radius: var(--r-pill);
}
.cp-card .cp-card-traits { font-size: var(--fs-sub); color: var(--c-text-2); margin-top: 8px; line-height: 1.5; }
.cp-empty { margin-top: var(--sp-3); font-size: var(--fs-sub); color: var(--c-text-3); text-align: center; padding: var(--sp-4); }
.cp-full {
  margin-top: var(--sp-3); display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: var(--fs-cap); color: var(--c-text-3);
}
.cp-full .icon { width: 14px; height: 14px; color: var(--c-text-4); }

/* 客户画像编辑页 hero */
.cust-hero {
  background: linear-gradient(180deg, var(--c-ink), #1B3163);
  color: #fff; padding: var(--sp-6) var(--page-x) var(--sp-5); text-align: center;
}
.cust-hero .ch-ic {
  width: 50px; height: 50px; border-radius: 15px; margin: 0 auto var(--sp-3);
  background: rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center;
}
.cust-hero .ch-ic .icon { width: 25px; height: 25px; color: #fff; }
.cust-hero .ch-title { font-size: var(--fs-h1); font-weight: 700; }
.cust-hero .ch-sub { font-size: var(--fs-sub); color: rgba(255,255,255,.82); margin-top: 6px; }

/* 弹层内输入字段 */
.sheet-field { margin-top: var(--sp-4); }
.sheet-field .field-input { background: var(--c-tint-3); }

/* ============ 10. 底部 Tab ============ */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0;
  max-width: var(--maxw); margin: 0 auto;
  height: calc(var(--h-tab) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255,255,255,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--c-border);
  display: flex; z-index: 30;
}
.tab-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; color: var(--c-text-3); font-size: var(--fs-cap); font-weight: 600;
  transition: color .14s ease;
}
.tab-item .icon { width: 22px; height: 22px; }
.tab-item.active { color: var(--c-primary-2); }

/* ============ 11. 弹层 ============ */
.sheet-mask {
  position: fixed; inset: 0; max-width: var(--maxw); margin: 0 auto;
  background: rgba(15,23,42,.5);
  display: flex; align-items: flex-end; justify-content: center;
  z-index: 50; animation: fade .18s ease;
}
.sheet {
  width: 100%; background: #fff;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: var(--sp-6) var(--sp-5) calc(var(--sp-6) + env(safe-area-inset-bottom));
  box-shadow: var(--sh-pop);
  animation: rise .26s cubic-bezier(.2,.85,.25,1);
}
.sheet .s-grip { width: 38px; height: 4px; border-radius: var(--r-pill); background: var(--c-border); margin: -8px auto var(--sp-4); }
.sheet .s-icon {
  width: 52px; height: 52px; border-radius: 16px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-tint); color: var(--c-primary-2);
}
.sheet .s-icon.warn { background: var(--c-tint); color: var(--c-primary); }
.sheet .s-icon .icon { width: 26px; height: 26px; }
.sheet .s-title { font-size: var(--fs-h2); font-weight: 700; text-align: center; margin-top: var(--sp-3); color: var(--c-text); }
.sheet .s-text { font-size: var(--fs-body); color: var(--c-text-2); text-align: center; margin-top: var(--sp-2); line-height: 1.6; }
.sheet .s-text .em { color: var(--c-primary-2); font-weight: 700; }
.sheet .s-offer {
  text-align: center; font-size: var(--fs-body); font-weight: 700; color: var(--c-primary);
  margin-top: var(--sp-4); background: var(--c-tint); padding: var(--sp-3); border-radius: var(--r-md);
}
.sheet .s-roi { text-align: center; font-size: var(--fs-sub); color: var(--c-text-3); margin-top: var(--sp-2); }
.sheet .s-actions { margin-top: var(--sp-5); }
.sheet .s-dismiss { text-align: center; font-size: var(--fs-sub); color: var(--c-text-3); padding: var(--sp-3); margin-top: var(--sp-1); }

/* ============ 12. Toast / 状态 / 骨架 ============ */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--h-tab) + 36px);
  transform: translateX(-50%);
  background: rgba(20,38,77,.95); color: #fff;
  font-size: var(--fs-sub); font-weight: 500;
  padding: 11px 18px; border-radius: var(--r-pill);
  z-index: 80; max-width: 84%; text-align: center; line-height: 1.4;
  box-shadow: 0 6px 20px rgba(20,38,77,.3);
  animation: toastIn .22s ease;
}

.state {
  padding: var(--sp-7) var(--page-x); margin-top: var(--sp-6);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--sp-3);
}
.state .ic {
  width: 64px; height: 64px; border-radius: 20px;
  background: var(--c-tint); color: var(--c-primary-2);
  display: flex; align-items: center; justify-content: center;
}
.state .ic .icon { width: 30px; height: 30px; }
.state .st-title { font-size: var(--fs-h2); font-weight: 700; color: var(--c-text); }
.state .st-text { font-size: var(--fs-sub); color: var(--c-text-3); max-width: 260px; }
.state .btn { margin-top: var(--sp-2); }

.skel-card {
  background: var(--c-surface); border-radius: var(--r-lg); box-shadow: var(--sh-card);
  padding: var(--sp-4); margin: 10px var(--page-x); border: 1px solid var(--c-border-2);
}
.skel { background: linear-gradient(90deg, #EEF1F6 25%, #F7F9FC 37%, #EEF1F6 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; border-radius: var(--r-sm); }
.skel.line { height: 12px; margin-bottom: 10px; }
.skel.w30 { width: 30%; } .skel.w40 { width: 40%; } .skel.w55 { width: 55%; } .skel.w70 { width: 70%; } .skel.w90 { width: 90%; }
.skel.circ { width: 46px; height: 46px; border-radius: 50%; }

/* ============ 13. 动画 ============ */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@keyframes pop { 0% { transform: scale(.85); } 55% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.celebrate { animation: pop .42s ease; }
.page-in { animation: pageIn .26s ease; }

.hidden { display: none !important; }
