/* 3Moves Sales · Design Tokens V5（Forward Rhythm｜向前节奏）
   ChatGPT V5 方案第七部分——全量替换 */
:root {
  color-scheme: light;

  /* Ink 骨架 */
  --ink-950: #09111F;
  --ink-900: #0F1A2D;
  --ink-800: #192844;

  /* Brand */
  --brand-700: #2E49AA;
  --brand-600: #3B5CCC;
  --brand-500: #526FE0;
  --brand-100: #EDF1FF;
  --brand-50: #F7F8FF;

  /* 三板斧（只做动作识别） */
  --develop: #7659D6;
  --develop-soft: #F2EFFD;
  --follow: #149481;
  --follow-soft: #EAF8F5;
  --call: #D88916;
  --call-soft: #FFF6E7;

  /* 语义 */
  --success: #15805E;
  --success-soft: #EAF8F2;
  --warning: #B86809;
  --warning-soft: #FFF4DF;
  --danger: #BD3F46;
  --danger-soft: #FFF0F1;
  --info: #2870BA;
  --info-soft: #EDF6FF;

  /* 表面 */
  --canvas: #F3F6FB;
  --surface: #FFFFFF;
  --surface-soft: #F8FAFF;
  --surface-muted: #EEF2F8;
  --line: #E2E7EF;
  --line-strong: #CFD7E3;

  /* 文字 */
  --text: #172033;
  --text-2: #526078;
  --text-3: #7C889D;
  --text-disabled: #A8B2C2;

  /* 阴影（三级） */
  --shadow-xs: 0 1px 2px rgba(10,25,48,.05);
  --shadow-sm: 0 8px 24px rgba(18,35,63,.07), 0 1px 2px rgba(18,35,63,.05);
  --shadow-md: 0 18px 48px rgba(18,35,63,.12), 0 3px 10px rgba(18,35,63,.06);

  /* 圆角 */
  --radius-control: 8px;
  --radius-card: 12px;
  --radius-section: 16px;
  --radius-hero: 22px;
  --radius-pill: 999px;

  /* 间距（4px 网格） */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-7: 28px; --space-8: 32px;

  /* 布局 */
  --sidebar-width: 224px;
  --topbar-height: 64px;
  --content-max: 1440px;

  /* 动效 */
  --motion-fast: 120ms;
  --motion-base: 180ms;
  --motion-slow: 240ms;
  --ease-out: cubic-bezier(.2,.8,.2,1);

  /* 渐变（只允许三种） */
  --gradient-brand-dark: linear-gradient(145deg,#09111F 0%,#142342 56%,#253F91 100%);
  --gradient-hero-light: linear-gradient(135deg,#FBFCFF 0%,#F1F4FF 52%,#EDF1FC 100%);
  --gradient-primary: linear-gradient(180deg,#4868DB 0%,#3454C2 100%);

  /* 字体 */
  --font-sans: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;

  /* 兼容别名（旧代码渐进迁移——V5 后逐步替换） */
  --text-secondary: #526078;
  --surface-subtle: #F8FAFF;
  --primary-50: #F7F8FF;
  --primary-100: #EDF1FF;
  --primary-700: #2E49AA;
  --primary: #3B5CCC;
  --primary-hover: #2E49AA;
  --primary-soft: #EDF1FF;
  --border: #E2E7EF;
  --sub: #7C889D;
  --warn: #B86809;
  --move-develop: #7659D6;
  --move-develop-bg: #F2EFFD;
  --move-follow: #149481;
  --move-follow-bg: #EAF8F5;
  --move-call: #D88916;
  --move-call-bg: #FFF6E7;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
.tabular { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid rgba(59,92,204,.22); outline-offset: 2px; }

/* 三阶推进 SVG 空状态图形 */
.empty-art { width: 120px; height: 88px; display: block; }

/* 滚动条 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #C8D0DA; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #AAB3BE; }
::-webkit-scrollbar-track { background: transparent; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ===== V5 客户推进卡（V3 逻辑恢复样式） ===== */
.progress-diagnosis { padding: 19px; border: 1px solid #d6def8; border-radius: 17px; background: linear-gradient(135deg, #fff, #f7f8ff); margin-bottom: 12px; }
.progress-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.kicker { font-size: 10px; font-weight: 800; letter-spacing: .1em; color: var(--brand-600); text-transform: uppercase; }
.eyebrow { font-size: 10px; font-weight: 800; letter-spacing: .1em; color: var(--brand-600); text-transform: uppercase; }
.stage-path { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; margin: 16px 0 0; padding: 0; }
.stage-path::before { content: ""; position: absolute; left: 9%; right: 9%; top: 10px; height: 2px; background: var(--line); }
.stage-path li { position: relative; text-align: center; font-size: 10px; color: var(--text-3); padding-top: 24px; }
.stage-path li::before { content: ""; position: absolute; top: 2px; left: 50%; transform: translateX(-50%); width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 3px solid #cfd7e3; z-index: 1; }
.stage-path li.is-complete::before { background: var(--brand-600); border-color: var(--brand-600); }
.stage-path li.is-current { color: var(--brand-600); font-weight: 800; }
.stage-path li.is-current::before { border-color: var(--brand-600); box-shadow: 0 0 0 5px rgba(59,92,204,.1); }
.stage-chip { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--brand-100); color: var(--brand-600); font-size: 10px; font-weight: 750; }
.health-chip { display: inline-flex; align-items: center; height: 21px; padding: 0 7px; border-radius: 999px; font-size: 9px; font-weight: 700; white-space: nowrap; }
.health-chip--active { background: var(--success-soft); color: var(--success); }
.health-chip--due { background: var(--warning-soft); color: var(--warning); }
.health-chip--overdue { background: var(--danger-soft); color: var(--danger); }
.health-chip--stalled { background: var(--danger-soft); color: var(--danger); }
.health-chip--done { background: var(--success-soft); color: var(--success); }
.nba-card { padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.nba-card small { color: var(--text-3); font-size: 9px; font-weight: 750; }
.nba-card b { display: block; margin-top: 4px; font-size: 12px; }
.nba-card p { margin-top: 4px; font-size: 10px; color: var(--text-2); }
.nba-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.diag-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 10px; margin-top: 10px; }
.diag-card { padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.diag-card small { color: var(--text-3); font-size: 9px; font-weight: 750; }
.diag-card b { display: block; margin-top: 4px; font-size: 12px; }
.diag-card p { margin-top: 4px; font-size: 10px; color: var(--text-2); }
.reasons { font-size: 11px; color: var(--text-2); line-height: 1.7; }
.reasons div { padding: 5px 0; border-bottom: 1px dashed var(--line); }
.reasons div:last-child { border-bottom: 0; }
.risk-list { font-size: 11px; color: var(--danger); }
.risk-list div { padding: 4px 0; }

/* V5 数据缺口（客户信息补充） */
.gap-strip { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px 10px; margin-top: 10px; border-radius: 9px; background: var(--warning-soft); font-size: 11px; color: var(--warning); }
.gap-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: #fff; border: 1px solid #f0d9a8; color: var(--warning); cursor: pointer; font-size: 10px; font-weight: 700; }
.gap-chip:hover { background: var(--warning-soft); }
