/* 鲸客 · AI 获客员工
   设计规范同鲸恒产品系列（鲸投 docs/设计规范.md）：深海蓝、克制理性、卡片用边框不用阴影。
   唯一的“炫”留给获客雷达和工作台头图：深海底色 + 青色扫描光。 */
:root {
  --brand-50: #eef4f8; --brand-100: #dce8f1; --brand-200: #b8d0e2; --brand-300: #87afca; --brand-400: #4e86ab;
  --brand-500: #24638c; --brand-600: #1b5279; --brand-700: #164463; --brand-800: #12364e; --brand-900: #0c2536;
  --deep: #081a27; --cyan: #5ec8e5; --cyan-2: #9be3f4; --coral: #ff7a66; --amber: #f5b544;
  --ink: #132230; --text: #2a3846; --text-2: #4f5d6b; --text-3: #6b7785; --text-4: #9aa5b1;
  --bg: #f3f5f8; --surface: #ffffff; --surface-2: #f8fafc; --surface-3: #eef2f6;
  --line: #e3e8ee; --line-2: #d2dae3; --line-3: #b9c4cf;
  --ok: #1e7b50; --ok-bg: #e7f4ec; --ok-line: #bfe2cd;
  --warn: #93570a; --warn-bg: #fdf3e2; --warn-line: #f0d6a6;
  --bad: #b42318; --bad-bg: #fdecea; --bad-line: #f4c7c1;
  --info: var(--brand-700); --info-bg: var(--brand-50); --info-line: var(--brand-100);
  --accent: #c27a1a; --accent-bg: #fbf1e2;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Hiragino Sans GB",
          "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", system-ui, sans-serif;
  --font-num: "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", -apple-system, "PingFang SC", "Microsoft YaHei UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  --t-xs: 12px; --t-sm: 13px; --t-md: 14px; --t-lg: 16px; --t-xl: 20px; --t-2xl: 26px; --t-3xl: 32px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px; --s10: 40px; --s12: 48px;
  --r-xs: 4px; --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-full: 999px;
  --sh-1: 0 1px 2px rgba(16, 34, 52, .06); --sh-2: 0 6px 16px rgba(16, 34, 52, .10); --sh-3: 0 20px 48px rgba(12, 37, 54, .22);
  --ease: cubic-bezier(.2, .7, .2, 1); --dur: 160ms;
  --control: 38px; --sidebar: 240px; --topbar: 60px; --bottom-nav: 64px;
  font-family: var(--font); font-size: var(--t-md); line-height: 1.6; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-size-adjust: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--bg); }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: var(--t-2xl); line-height: 1.3; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
h2 { font-size: var(--t-lg); line-height: 1.45; font-weight: 600; color: var(--ink); }
h3 { font-size: var(--t-md); font-weight: 600; color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { cursor: not-allowed; opacity: .5; }
:focus-visible { outline: 2px solid var(--brand-400); outline-offset: 2px; border-radius: var(--r-xs); }
[hidden] { display: none !important; }
mark { background: #fff1c2; color: inherit; padding: 0 2px; border-radius: 3px; }
.muted { color: var(--text-3); }
.small { font-size: var(--t-xs); }
.nowrap { white-space: nowrap; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.icon { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ellipsis { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ============================================================ 外壳 */
.app { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: var(--s5); padding: var(--s5) var(--s3);
  background: var(--surface); border-right: 1px solid var(--line); overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 var(--s2); }
.brand svg { width: 36px; height: 36px; flex-shrink: 0; }
.brand strong { display: block; font-size: 15px; font-weight: 600; color: var(--ink); letter-spacing: .02em; }
.brand small { display: block; font-size: 11px; color: var(--text-3); letter-spacing: .08em; }
.ws-box { display: grid; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); }
.ws-box label { font-size: var(--t-xs); color: var(--text-3); }
.ws-box select { width: 100%; font-weight: 600; color: var(--ink); }
.ws-line { display: flex; align-items: center; gap: 6px; font-size: var(--t-xs); color: var(--text-3); min-height: 20px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-3); flex-shrink: 0; display: inline-block; }
.dot.ok { background: var(--ok); } .dot.bad { background: var(--bad); } .dot.wait { background: var(--accent); }
.dot.live { background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: ping 1.6s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.nav { display: grid; gap: var(--s4); }
.nav-group { display: grid; gap: 2px; }
.nav-caption { padding: 0 var(--s3); margin-bottom: var(--s1); font-size: var(--t-xs); font-weight: 500; color: var(--text-4); }
.nav a { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 0 var(--s3);
  border-radius: var(--r-sm); font-size: var(--t-md); color: var(--text-2); transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.nav a .icon { color: var(--text-3); }
.nav a:hover { background: var(--surface-3); color: var(--ink); }
.nav a.active { background: var(--brand-50); color: var(--brand-700); font-weight: 600; }
.nav a.active .icon { color: var(--brand-600); }
.nav a.active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand-600); }
.nav a em { margin-left: auto; font-style: normal; font-size: var(--t-xs); color: var(--text-3); font-family: var(--font-num); }
.nav a em.hot { min-width: 20px; padding: 0 6px; border-radius: var(--r-full); background: var(--bad); color: #fff; text-align: center; line-height: 18px; font-weight: 600; }
.sidebar-bottom { margin-top: auto; padding: var(--s3) var(--s2) 0; border-top: 1px solid var(--line); color: var(--text-3); font-size: var(--t-xs); line-height: 1.8; }
.sidebar-bottom b { color: var(--text); font-weight: 500; }
.main { min-width: 0; width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--s10) var(--s12); }
.topbar { position: sticky; top: 0; z-index: 20; height: var(--topbar); display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  margin: 0 calc(-1 * var(--s10)); padding: 0 var(--s10); background: rgba(243, 245, 248, .94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; align-items: center; gap: var(--s2); min-width: 0; font-size: var(--t-sm); color: var(--text-3); white-space: nowrap; }
.breadcrumb span { color: var(--line-3); } .breadcrumb b { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.top-actions { display: flex; align-items: center; gap: var(--s3); }
.page { padding-top: var(--s8); animation: appear .22s var(--ease); }
@keyframes appear { from { opacity: 0; transform: translateY(4px); } }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s6); margin-bottom: var(--s6); }
.page-heading p { margin-top: var(--s2); max-width: 76ch; color: var(--text-2); }
.actions { display: flex; align-items: center; gap: var(--s2) var(--s3); flex-wrap: wrap; }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
.row { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.spacer { flex: 1; }

/* ============================================================ 控件 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); height: var(--control); padding: 0 var(--s4);
  border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); color: var(--ink);
  font-size: var(--t-md); font-weight: 500; white-space: nowrap; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform 80ms; }
.btn:hover { background: var(--surface-2); border-color: var(--line-3); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand-600); border-color: var(--brand-600); color: #fff; box-shadow: var(--sh-1); }
.btn.primary:hover { background: var(--brand-700); border-color: var(--brand-700); }
.btn.big { height: 48px; padding: 0 var(--s6); font-size: var(--t-lg); border-radius: var(--r-md); }
.btn.small { height: 32px; padding: 0 var(--s3); font-size: var(--t-sm); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--surface-3); }
.btn.danger { color: var(--bad); }
.btn.ok-on { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok); }
.btn.bad-on { background: var(--bad-bg); border-color: var(--bad-line); color: var(--bad); }
.btn.light { background: #fff; border-color: #fff; color: var(--brand-800); }
.btn.light:hover { background: var(--brand-50); }
.btn.glass { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); color: #fff; }
.btn.glass:hover { background: rgba(255, 255, 255, .16); }
.btn .icon { width: 16px; height: 16px; }
.text-btn { display: inline-flex; align-items: center; gap: var(--s1); padding: 2px; color: var(--brand-600); font-size: var(--t-sm); font-weight: 500; white-space: nowrap; }
.text-btn:hover { color: var(--brand-700); text-decoration: underline; text-underline-offset: 3px; }
.text-btn .icon { width: 14px; height: 14px; }
input, select, textarea { max-width: 100%; min-height: var(--control); padding: 0 var(--s3); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink); outline: none; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
textarea { width: 100%; padding: 10px var(--s3); line-height: 1.65; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--line-3); }
input:focus, select:focus, textarea:focus { border-color: var(--brand-500); box-shadow: 0 0 0 3px var(--brand-100); }
input::placeholder, textarea::placeholder { color: var(--text-4); }
input[type=checkbox] { min-height: 0; width: 16px; height: 16px; accent-color: var(--brand-600); }
.field-label { display: block; margin: var(--s5) 0 var(--s2); font-size: var(--t-sm); font-weight: 500; color: var(--text); }
.field-label:first-child { margin-top: 0; }
.field-label small { font-weight: 400; color: var(--text-3); }
.field-hint { margin-top: 6px; font-size: var(--t-xs); color: var(--text-3); line-height: 1.7; }
.check { display: inline-flex; align-items: center; gap: var(--s2); font-size: var(--t-sm); color: var(--text); cursor: pointer; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: var(--r-sm); background: var(--surface-3); }
.seg button { min-height: 30px; padding: 0 var(--s3); border-radius: 4px; font-size: var(--t-sm); color: var(--text-2); }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--sh-1); }
.seg button em { font-style: normal; margin-left: 4px; color: var(--text-3); font-family: var(--font-num); font-weight: 400; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 var(--s3); border: 1px solid var(--line-2); border-radius: var(--r-full);
  background: var(--surface); font-size: var(--t-sm); color: var(--text); }
button.chip:hover { border-color: var(--brand-300); color: var(--brand-700); }
.chip.on { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.chip.on:hover { color: #fff; }
.chip .x { color: var(--text-4); font-size: 15px; line-height: 1; }
.chip .x:hover { color: var(--bad); }
.chip small { color: var(--text-3); font-family: var(--font-num); }
.chip.on small { color: var(--brand-100); }
/* 平台选择 */
.pills { display: flex; flex-wrap: wrap; gap: var(--s2); }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 10px; border: 1px solid var(--line-2); border-radius: var(--r-full);
  background: var(--surface); font-size: var(--t-sm); color: var(--text-2); transition: all var(--dur) var(--ease); }
.pill:hover { border-color: var(--brand-300); }
.pill.on { border-color: var(--brand-600); background: var(--brand-50); color: var(--brand-800); font-weight: 600; box-shadow: inset 0 0 0 1px var(--brand-600); }
.pill .pf-dot { width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 700; }
.pill .tick { display: none; color: var(--brand-600); }
.pill.on .tick { display: inline; }
/* 平台标识色 */
.pf-douyin { background: #161823; } .pf-xhs { background: #ff2442; } .pf-kuaishou { background: #ff6a00; }
.pf-bilibili { background: #fb7299; } .pf-zhihu { background: #0866ff; } .pf-weibo { background: #e6162d; } .pf-mock { background: #8a96a3; }
.pf-tag { display: inline-flex; align-items: center; gap: 5px; font-size: var(--t-xs); color: var(--text-2); white-space: nowrap; }
.pf-tag i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: var(--r-full); background: var(--surface-3); color: var(--text-2);
  font-size: var(--t-xs); font-weight: 500; line-height: 20px; white-space: nowrap; }
.badge.green { background: var(--ok-bg); color: var(--ok); }
.badge.yellow { background: var(--warn-bg); color: var(--warn); }
.badge.red { background: var(--bad-bg); color: var(--bad); }
.badge.blue { background: var(--info-bg); color: var(--info); }
.badge.deep { background: var(--brand-700); color: #fff; }
.badge.outline { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }

/* ============================================================ 面板、指标、表格 */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); min-height: 56px; padding: var(--s3) var(--s5); border-bottom: 1px solid var(--line); }
.panel-head h2 small { margin-left: var(--s2); font-weight: 400; font-size: var(--t-sm); color: var(--text-3); }
.panel-body { padding: var(--s5); }
.panel-foot { padding: var(--s3) var(--s5); border-top: 1px solid var(--line); background: var(--surface-2); font-size: var(--t-sm); color: var(--text-2); }
.toolbar { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; padding: var(--s3) var(--s5); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.toolbar .grow { flex: 1; min-width: 160px; }
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.kpis.k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi { min-width: 0; padding: var(--s4) var(--s5); border-right: 1px solid var(--line); }
.kpi:last-child { border-right: 0; }
.kpi small { display: block; font-size: var(--t-sm); color: var(--text-2); }
.kpi strong { display: block; margin: 4px 0 2px; font-family: var(--font-num); font-size: 26px; font-weight: 600; line-height: 1.25; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi strong.red { color: var(--bad); } .kpi strong.green { color: var(--ok); }
.kpi span { display: block; font-size: var(--t-xs); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.kpi:hover { background: var(--surface-2); }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); gap: var(--s5); align-items: start; }
.grid-2e { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); align-items: start; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: var(--t-sm); }
th { padding: 10px var(--s4); background: var(--surface-2); color: var(--text-3); font-size: var(--t-xs); font-weight: 500; white-space: nowrap; border-bottom: 1px solid var(--line); }
td { padding: 12px var(--s4); border-top: 1px solid var(--line); vertical-align: middle; color: var(--text); }
tbody tr:first-child td { border-top: 0; }
tbody tr:hover { background: var(--surface-2); }
tr.clickable { cursor: pointer; }
th.num, td.num { text-align: right; }
.cell-title { max-width: 380px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: var(--t-md); font-weight: 500; color: var(--ink); }
.cell-sub { max-width: 400px; margin-top: 2px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: var(--t-xs); color: var(--text-3); }
.empty { padding: var(--s10) var(--s5); text-align: center; color: var(--text-3); font-size: var(--t-sm); }
.empty h3 { margin-bottom: var(--s2); font-size: var(--t-lg); }
.empty .actions { justify-content: center; margin-top: var(--s4); }
.log { margin: 0; padding: var(--s3) var(--s4); border-radius: var(--r-sm); background: var(--brand-900); color: var(--brand-100);
  font: 12px/1.75 var(--font-mono); white-space: pre-wrap; max-height: 300px; overflow: auto; }
.spinner { display: inline-block; width: 13px; height: 13px; border: 2px solid var(--brand-100); border-top-color: var(--brand-500); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { height: 120px; border-radius: var(--r-md); background: linear-gradient(90deg, var(--surface-3), var(--surface-2), var(--surface-3)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.detail-line { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); padding: var(--s2) 0; font-size: var(--t-sm); color: var(--text-2); border-bottom: 1px dashed var(--line); }
.detail-line:last-child { border-bottom: 0; }
.detail-line b { color: var(--ink); font-weight: 500; text-align: right; }
.meter { height: 8px; border-radius: var(--r-full); background: var(--surface-3); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: inherit; background: var(--brand-500); transition: width .6s var(--ease); }
.meter.warn i { background: var(--accent); } .meter.bad i { background: var(--bad); }
.callout { padding: var(--s4) var(--s5); border-radius: var(--r-md); border: 1px solid var(--info-line); background: var(--info-bg); color: var(--brand-800); }
.callout.accent { border-color: #efd5ae; background: var(--accent-bg); color: #6b4410; }
.callout b { color: inherit; }
.avatar { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; display: inline-grid; place-items: center; overflow: hidden;
  background: var(--brand-100); color: var(--brand-700); font-weight: 600; font-size: 15px; object-fit: cover; }
.avatar.sm { width: 28px; height: 28px; font-size: 12px; }
.avatar.lg { width: 52px; height: 52px; font-size: 20px; }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who > div { min-width: 0; }
.who b { display: block; color: var(--ink); font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* ============================================================ 工作台 */
.hero { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: var(--s6);
  padding: var(--s8) var(--s8); border-radius: var(--r-lg); color: #fff;
  background: radial-gradient(1200px 300px at 85% -40%, rgba(94, 200, 229, .35), transparent 60%), linear-gradient(120deg, var(--deep), var(--brand-800) 60%, var(--brand-600)); }
.hero::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 420px; height: 260px; opacity: .14;
  background: repeating-radial-gradient(circle at 70% 100%, #fff 0 1px, transparent 1px 22px); pointer-events: none; }
.hero > * { position: relative; z-index: 1; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: var(--s2); font-size: var(--t-sm); color: var(--cyan-2); letter-spacing: .04em; }
.hero h1 { margin-top: var(--s2); color: #fff; font-size: 24px; font-weight: 500; line-height: 1.5; }
.hero h1 b { font-family: var(--font-num); font-size: 34px; font-weight: 600; color: #fff; padding: 0 2px; }
.hero p { margin-top: var(--s2); color: var(--brand-200); font-size: var(--t-md); }
.hero p b { color: #fff; font-weight: 600; }
.hero .actions { flex-shrink: 0; }
.onboard-cta { display: flex; align-items: center; gap: var(--s5); padding: var(--s5) var(--s6); border: 1px dashed var(--brand-300); border-radius: var(--r-lg); background: var(--surface); }
.onboard-cta .big-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); flex-shrink: 0; }
.onboard-cta .big-icon .icon { width: 26px; height: 26px; }
.onboard-cta h2 { font-size: var(--t-lg); }
.onboard-cta p { color: var(--text-2); font-size: var(--t-sm); margin-top: 2px; }
.bars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: end; gap: 6px; height: 170px; padding-top: var(--s4); }
.bars .bar { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.bars .bar i { display: block; width: 100%; max-width: 30px; min-height: 2px; border-radius: 4px 4px 0 0; background: var(--brand-200); transition: height .6s var(--ease); }
.bars .bar.today i { background: var(--brand-600); }
.bars .bar:hover i { background: var(--brand-500); }
.bars .bar b { font-size: 11px; font-family: var(--font-num); color: var(--text-2); font-weight: 600; margin-bottom: 2px; }
.bars .bar span { margin-top: 6px; font-size: 10px; color: var(--text-4); font-family: var(--font-num); white-space: nowrap; }
.ledger-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--line); }
.ledger-sum div small { display: block; font-size: var(--t-xs); color: var(--text-3); }
.ledger-sum div b { font-family: var(--font-num); font-size: var(--t-xl); color: var(--ink); font-weight: 600; }
.ledger-sum div b.green { color: var(--ok); }
.funnel { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
.funnel .f-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) 48px; align-items: center; gap: var(--s3); font-size: var(--t-sm); }
.funnel .f-row .meter { height: 22px; border-radius: var(--r-sm); }
.funnel .f-row .meter i { border-radius: var(--r-sm); }
.funnel .f-row b { font-family: var(--font-num); text-align: right; color: var(--ink); }
.mini-list { display: grid; grid-template-columns: minmax(0, 1fr); }
.mini-item { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s5); border-top: 1px solid var(--line); cursor: pointer; }
.mini-item:first-child { border-top: 0; }
.mini-item:hover { background: var(--surface-2); }
.mini-item .grow { flex: 1; min-width: 0; }
.mini-item .t { color: var(--ink); font-weight: 500; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mini-item .s { font-size: var(--t-xs); color: var(--text-3); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* ============================================================ 找客户 */
.find-card { padding: var(--s6); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.find-input { display: flex; align-items: center; gap: var(--s3); padding: 6px 6px 6px var(--s4); border: 2px solid var(--brand-600); border-radius: var(--r-md); background: #fff;
  box-shadow: 0 0 0 5px var(--brand-50); }
.find-input .icon { width: 22px; height: 22px; color: var(--brand-600); }
.find-input input { flex: 1; min-width: 0; height: 48px; border: 0; padding: 0; font-size: 18px; box-shadow: none !important; }
.detect { display: flex; align-items: center; gap: var(--s2); min-height: 28px; margin-top: var(--s3); font-size: var(--t-sm); color: var(--text-2); }
.detect .badge { font-size: var(--t-xs); }
.find-opts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s4) var(--s5); align-items: center; margin-top: var(--s5); padding-top: var(--s5); border-top: 1px solid var(--line); }
.find-opts > label { font-size: var(--t-sm); color: var(--text-2); white-space: nowrap; }
.estimate { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; margin-top: var(--s5); padding: var(--s3) var(--s4); border-radius: var(--r-md); background: var(--surface-2); font-size: var(--t-sm); color: var(--text-2); }
.estimate b { color: var(--ink); font-family: var(--font-num); }
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.how > div { display: flex; gap: var(--s3); padding: var(--s4); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.how .n { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-700); font-weight: 700; font-family: var(--font-num); }
.how h3 { margin-bottom: 2px; }
.how p { font-size: var(--t-sm); color: var(--text-2); }
.recent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--s3); }
.recent { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: var(--s3) var(--s4); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); cursor: pointer; }
.recent:hover { border-color: var(--brand-300); }
.recent .t { color: var(--ink); font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.recent .s { display: flex; justify-content: space-between; gap: var(--s2); font-size: var(--t-xs); color: var(--text-3); }

/* ============================================================ 获客雷达（深海舞台） */
.stage { position: relative; overflow: hidden; border-radius: var(--r-lg); color: #dcebf5;
  background: radial-gradient(900px 400px at 20% 0%, rgba(94, 200, 229, .16), transparent 60%), linear-gradient(160deg, var(--deep), #0b2233 55%, #0e2c42); }
.stage-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s6); padding: var(--s6) var(--s8) var(--s5); }
.stage-head .eyebrow { display: inline-flex; align-items: center; gap: var(--s2); font-size: var(--t-sm); color: var(--cyan-2); }
.stage-head h1 { margin-top: 6px; color: #fff; font-size: 28px; word-break: break-all; }
.stage-head .meta { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.stage-head .meta span { padding: 2px 10px; border-radius: var(--r-full); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); font-size: var(--t-xs); color: var(--brand-100); }
.clock { font-family: var(--font-num); font-size: 30px; color: #fff; font-weight: 600; text-align: right; line-height: 1.1; }
.clock small { display: block; font-size: var(--t-xs); color: var(--brand-300); font-weight: 400; font-family: var(--font); }
.counters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid rgba(255, 255, 255, .08); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.counter { padding: var(--s4) var(--s8); border-right: 1px solid rgba(255, 255, 255, .08); }
.counter:last-child { border-right: 0; }
.counter small { display: block; font-size: var(--t-xs); color: var(--brand-300); }
.counter b { display: block; font-family: var(--font-num); font-size: 32px; font-weight: 600; color: #fff; line-height: 1.3; font-variant-numeric: tabular-nums; }
.counter.hot b { color: var(--coral); text-shadow: 0 0 18px rgba(255, 122, 102, .45); }
.counter span { font-size: var(--t-xs); color: var(--brand-300); }
.phases { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s2); padding: var(--s5) var(--s8) 0; }
.phase { position: relative; padding-top: var(--s3); font-size: var(--t-sm); color: var(--brand-300); }
.phase::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .12); }
.phase.done { color: var(--brand-100); } .phase.done::before { background: var(--cyan); }
.phase.on { color: #fff; font-weight: 600; }
.phase.on::before { background: linear-gradient(90deg, var(--cyan), rgba(94, 200, 229, .2), var(--cyan)); background-size: 200% 100%; animation: flow 1.2s linear infinite; }
@keyframes flow { to { background-position: -200% 0; } }
.phase-text { padding: var(--s3) var(--s8) var(--s5); font-size: var(--t-sm); color: var(--cyan-2); min-height: 48px; }
.stage-body { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: var(--s6); padding: 0 var(--s8) var(--s8); }
.radar { position: relative; width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle, rgba(94, 200, 229, .10) 0, rgba(94, 200, 229, .02) 70%), repeating-radial-gradient(circle, transparent 0 calc(16.6% - 1px), rgba(155, 227, 244, .16) calc(16.6% - 1px) 16.6%);
  border: 1px solid rgba(155, 227, 244, .25); box-shadow: inset 0 0 60px rgba(94, 200, 229, .12); }
.radar::before, .radar::after { content: ""; position: absolute; background: rgba(155, 227, 244, .14); }
.radar::before { left: 50%; top: 0; bottom: 0; width: 1px; } .radar::after { top: 50%; left: 0; right: 0; height: 1px; }
.radar .sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(94, 200, 229, .55), rgba(94, 200, 229, .08) 55deg, transparent 90deg);
  animation: sweep 3s linear infinite; mask: radial-gradient(circle, #000 70%, transparent 71%); }
.radar.idle .sweep { animation-play-state: paused; opacity: .25; }
@keyframes sweep { to { transform: rotate(360deg); } }
.radar .core { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
.blip { position: absolute; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 12px var(--coral); animation: blip-in .6s var(--ease); }
.blip.medium { background: var(--amber); box-shadow: 0 0 10px var(--amber); width: 8px; height: 8px; margin: -4px; }
.blip.post { background: var(--brand-300); box-shadow: none; width: 5px; height: 5px; margin: -2.5px; opacity: .7; }
.blip.post.deep { background: var(--cyan-2); box-shadow: 0 0 8px var(--cyan); width: 7px; height: 7px; margin: -3.5px; opacity: 1; }
.blip.fresh::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid currentColor; color: var(--coral); animation: ring 1.4s ease-out 2; }
@keyframes blip-in { from { transform: scale(0); } 60% { transform: scale(1.8); } }
@keyframes ring { from { transform: scale(.4); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.radar-legend { display: flex; justify-content: center; gap: var(--s4); margin-top: var(--s3); font-size: var(--t-xs); color: var(--brand-300); }
.radar-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; vertical-align: 0; }
.stage-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); min-width: 0; }
.stage h3 { color: #fff; font-size: var(--t-sm); display: flex; align-items: center; gap: var(--s2); }
.stage h3 small { color: var(--brand-300); font-weight: 400; }
.feed { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s2); max-height: 440px; overflow-y: auto; padding-right: 4px; }
.feed::-webkit-scrollbar, .scan-list::-webkit-scrollbar { width: 6px; } .feed::-webkit-scrollbar-thumb, .scan-list::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .15); border-radius: 3px; }
.feed-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s3); align-items: start; padding: var(--s3); border-radius: var(--r-md);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); cursor: pointer; animation: slide-in .45s var(--ease); }
.feed-item:hover { background: rgba(255, 255, 255, .1); }
.feed-item.high { border-color: rgba(255, 122, 102, .45); background: linear-gradient(90deg, rgba(255, 122, 102, .14), rgba(255, 255, 255, .04)); }
@keyframes slide-in { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
.feed-item .avatar { background: rgba(94, 200, 229, .2); color: var(--cyan-2); }
.feed-item b { color: #fff; font-weight: 600; }
.feed-item p { margin-top: 2px; color: #dcebf5; font-size: var(--t-sm); }
.feed-item .q { margin-top: 2px; color: var(--brand-300); font-size: var(--t-xs); }
.feed-item .tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.feed-item .tags span { padding: 0 7px; border-radius: var(--r-full); background: rgba(255, 255, 255, .08); color: var(--brand-100); font-size: 11px; line-height: 18px; }
.feed-item .tags span.hot { background: rgba(255, 122, 102, .2); color: #ffc2b8; }
.score { font-family: var(--font-num); font-weight: 700; font-size: 20px; color: var(--amber); line-height: 1; text-align: right; }
.score.high { color: var(--coral); }
.score small { display: block; font-size: 10px; font-weight: 400; color: var(--brand-300); margin-top: 3px; }
.scan-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; max-height: 300px; overflow-y: auto; padding-right: 4px; }
.scan { display: grid; grid-template-columns: 40px minmax(0, 1fr) 90px; gap: var(--s3); align-items: center; padding: 6px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .04); animation: slide-in .35s var(--ease); }
.scan.chosen { background: rgba(94, 200, 229, .12); box-shadow: inset 0 0 0 1px rgba(94, 200, 229, .35); }
.scan img, .scan .ph { width: 40px; height: 52px; border-radius: 4px; object-fit: cover; background: rgba(255, 255, 255, .08); display: block; }
.scan .t { color: #e8f2f8; font-size: var(--t-sm); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.scan .s { color: var(--brand-300); font-size: 11px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.scan .d { font-size: 11px; color: var(--brand-300); text-align: right; }
.scan .d .meter { height: 5px; margin-top: 4px; background: rgba(255, 255, 255, .1); }
.scan .d .meter i { background: var(--cyan); }
.creators { display: flex; flex-wrap: wrap; gap: 6px; }
.creators span { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border-radius: var(--r-full); background: rgba(255, 255, 255, .07); font-size: var(--t-xs); color: var(--brand-100); animation: slide-in .35s var(--ease); }
.creators img, .creators i { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; background: rgba(94, 200, 229, .3); display: inline-block; }
.stage .log { background: rgba(0, 0, 0, .25); color: var(--brand-200); max-height: 200px; }
.stage details summary { cursor: pointer; color: var(--brand-300); font-size: var(--t-xs); }
.result { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); margin-top: var(--s5); }
.result-banner { display: flex; align-items: center; justify-content: space-between; gap: var(--s6); flex-wrap: wrap; padding: var(--s6) var(--s8); border-radius: var(--r-lg);
  border: 1px solid var(--brand-200); background: linear-gradient(120deg, #fff, var(--brand-50)); }
.result-banner h2 { font-size: 24px; line-height: 1.4; }
.result-banner h2 b { color: var(--bad); font-family: var(--font-num); font-size: 34px; padding: 0 4px; }
.result-banner p { margin-top: 4px; color: var(--text-2); }
.result-stats { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); margin-top: var(--s3); font-size: var(--t-sm); color: var(--text-2); }
.result-stats b { color: var(--ink); font-family: var(--font-num); }
.result-stats b.green { color: var(--ok); }

/* ============================================================ 客户卡 */
.lead-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); gap: var(--s4); }
.lead-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); padding: var(--s4) var(--s5); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); transition: border-color var(--dur) var(--ease); }
.lead-card:hover { border-color: var(--brand-300); }
.lead-card.urgent { border-left: 3px solid var(--bad); }
.lead-card.done { opacity: .72; }
.lead-top { display: flex; align-items: flex-start; gap: var(--s3); }
.lead-top .who { flex: 1; }
.lead-top .who .sub { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: var(--t-xs); color: var(--text-3); }
.ring { --p: 0; position: relative; width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--c, var(--accent)) calc(var(--p) * 1%), var(--surface-3) 0); }
.ring::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--surface); }
.ring b { position: relative; font-family: var(--font-num); font-size: 15px; font-weight: 700; color: var(--ink); }
.ring.high { --c: var(--bad); } .ring.medium { --c: var(--accent); } .ring.low { --c: var(--line-3); }
.persona { font-weight: 600; color: var(--ink); font-size: var(--t-md); }
.persona::before { content: "画像 "; font-weight: 500; font-size: var(--t-xs); color: var(--brand-600); margin-right: 2px; }
.said { padding: var(--s2) var(--s3); border-radius: var(--r-sm); background: var(--surface-2); color: var(--text); font-size: var(--t-sm); word-break: break-word; }
.said::before { content: "TA 说："; color: var(--text-3); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; padding: 0 8px; border-radius: var(--r-xs); background: var(--surface-3); color: var(--text-2); font-size: var(--t-xs); line-height: 22px; white-space: nowrap; }
.tag.stage-决策 { background: var(--bad-bg); color: var(--bad); } .tag.stage-比价 { background: var(--warn-bg); color: var(--warn); } .tag.stage-了解 { background: var(--info-bg); color: var(--info); }
.tag.urg { background: #fff0ed; color: #c2410c; }
.tag.demand { background: var(--brand-700); color: #fff; }
.tag.merged { background: #f1ecfb; color: #5b3fa8; }
.lead-src { font-size: var(--t-xs); color: var(--text-3); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lead-reply { display: flex; gap: var(--s2); align-items: baseline; font-size: var(--t-sm); color: var(--text-2); }
.lead-reply b { flex-shrink: 0; color: var(--brand-600); font-weight: 500; font-size: var(--t-xs); }
.lead-reply span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lead-actions { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; padding-top: var(--s3); border-top: 1px dashed var(--line); }
.status-pick { display: inline-flex; gap: 2px; margin-left: auto; }
.status-pick button { height: 28px; padding: 0 8px; border-radius: var(--r-xs); font-size: var(--t-xs); color: var(--text-3); }
.status-pick button:hover { background: var(--surface-3); color: var(--ink); }
.status-pick button.on { background: var(--brand-50); color: var(--brand-700); font-weight: 600; }
.status-pick button.won.on { background: var(--ok-bg); color: var(--ok); }
.status-pick button.invalid.on { background: var(--bad-bg); color: var(--bad); }
.profile-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.profile-grid > div { padding: var(--s3) var(--s4); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.profile-grid > div:nth-child(4n) { border-right: 0; }
.profile-grid > div:nth-last-child(-n+4) { border-bottom: 0; }
.profile-grid small { display: block; font-size: var(--t-xs); color: var(--text-3); }
.profile-grid b { display: block; margin-top: 2px; color: var(--ink); font-weight: 500; font-size: var(--t-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quote { padding: var(--s3) var(--s4); border-left: 3px solid var(--brand-300); background: var(--surface-2); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--ink); white-space: pre-wrap; word-break: break-word; }
.quote + .quote { margin-top: var(--s2); }
.quote small { display: block; margin-top: 4px; color: var(--text-3); font-size: var(--t-xs); }

/* ============================================================ 洞察报告 */
.report-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: var(--s4); }
.report-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s2); padding: var(--s5); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); cursor: pointer; }
.report-card:hover { border-color: var(--brand-300); }
.report-card h3 { font-size: var(--t-lg); }
.report-card p { color: var(--text-2); font-size: var(--t-sm); }
.report-card .s { display: flex; gap: var(--s3); flex-wrap: wrap; font-size: var(--t-xs); color: var(--text-3); }
.paper { max-width: 980px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.paper-head { padding: var(--s8) var(--s10) var(--s6); color: #fff; background: radial-gradient(800px 260px at 90% -30%, rgba(94, 200, 229, .32), transparent 60%), linear-gradient(120deg, var(--deep), var(--brand-700)); }
.paper-head .eyebrow { font-size: var(--t-xs); letter-spacing: .14em; color: var(--cyan-2); }
.paper-head h1 { margin-top: var(--s2); color: #fff; font-size: 30px; }
.paper-head .scope { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); margin-top: var(--s4); font-size: var(--t-sm); color: var(--brand-200); }
.paper-head .scope b { color: #fff; font-family: var(--font-num); }
.paper-body { padding: var(--s8) var(--s10) var(--s10); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s8); }
.headline { position: relative; padding: var(--s5) var(--s6) var(--s5) var(--s8); border-radius: var(--r-md); background: var(--brand-50); color: var(--brand-900); font-size: 20px; font-weight: 600; line-height: 1.6; }
.headline::before { content: "“"; position: absolute; left: 12px; top: -4px; font-size: 52px; color: var(--brand-300); font-family: Georgia, serif; }
.heat { display: inline-flex; align-items: center; gap: var(--s2); margin-top: var(--s3); font-size: var(--t-sm); color: var(--text-2); }
.heat i { width: 18px; height: 8px; border-radius: 2px; background: var(--surface-3); display: inline-block; }
.heat i.on { background: var(--bad); }
.sec h2 { display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s4); font-size: 18px; }
.sec h2::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: var(--brand-600); }
.qa { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
.qa-item { display: grid; grid-template-columns: 28px minmax(0, 1fr) 140px; gap: var(--s3); align-items: start; padding: var(--s3) 0; border-bottom: 1px dashed var(--line); }
.qa-item:last-child { border-bottom: 0; }
.qa-item .n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-600); color: #fff; font-size: 12px; font-weight: 700; }
.qa-item b { color: var(--ink); font-weight: 600; }
.qa-item .ex { margin-top: 2px; font-size: var(--t-sm); color: var(--text-3); }
.qa-item .share { font-size: var(--t-xs); color: var(--text-3); text-align: right; }
.qa-item .share .meter { margin-top: 6px; }
.bullets { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--text); }
.persona-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--s3); }
.persona-cards > div { padding: var(--s4); border: 1px solid var(--line); border-radius: var(--r-md); }
.persona-cards b { color: var(--ink); } .persona-cards span { float: right; font-size: var(--t-xs); color: var(--brand-600); font-weight: 600; }
.persona-cards p { margin-top: 4px; font-size: var(--t-sm); color: var(--text-2); }
.idea-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s3); }
.idea-cards > div { display: grid; gap: 4px; padding: var(--s4); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); }
.idea-cards b { color: var(--ink); } .idea-cards p { font-size: var(--t-sm); color: var(--text-2); }
.paper-foot { padding: var(--s4) var(--s10); border-top: 1px solid var(--line); background: var(--surface-2); font-size: var(--t-xs); color: var(--text-3); display: flex; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; }

/* ============================================================ 一句话开工 */
.wizard { max-width: 920px; margin: 0 auto; }
.wiz-steps { display: flex; gap: var(--s2); margin-bottom: var(--s6); }
.wiz-steps div { flex: 1; padding-top: var(--s2); border-top: 3px solid var(--line); font-size: var(--t-sm); color: var(--text-3); }
.wiz-steps div.on { border-color: var(--brand-600); color: var(--brand-700); font-weight: 600; }
.wiz-steps div.done { border-color: var(--brand-300); color: var(--text-2); }
.wiz-hero { padding: var(--s8); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.wiz-hero h1 { font-size: 28px; }
.wiz-hero > p { margin-top: var(--s2); color: var(--text-2); }
.wiz-hero textarea { margin-top: var(--s5); font-size: 17px; min-height: 96px; border-width: 2px; border-color: var(--brand-600); box-shadow: 0 0 0 5px var(--brand-50); }
.thinking { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); margin-top: var(--s5); }
.thinking div { display: flex; align-items: center; gap: var(--s3); color: var(--text-3); font-size: var(--t-md); transition: color .3s; }
.thinking div.on { color: var(--ink); font-weight: 500; }
.thinking div.ok { color: var(--ok); }
.thinking div i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line-2); font-style: normal; font-size: 11px; flex-shrink: 0; }
.thinking div.on i { border-color: var(--brand-500); border-top-color: transparent; animation: spin .8s linear infinite; }
.thinking div.ok i { border-color: var(--ok); background: var(--ok); color: #fff; }
.creator-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s3); }
.creator-card { display: flex; align-items: center; gap: var(--s3); padding: var(--s3); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.creator-card.on { border-color: var(--brand-600); box-shadow: inset 0 0 0 1px var(--brand-600); background: var(--brand-50); }
.creator-card img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--surface-3); }
.creator-card .grow { flex: 1; min-width: 0; }
.creator-card b { display: block; color: var(--ink); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.creator-card span { font-size: var(--t-xs); color: var(--text-3); }

/* ============================================================ 内容创作 */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--s4); padding: var(--s5); }
.post-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.post-card img, .post-card .ph { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--surface-3); display: block; }
.post-card .body { display: grid; gap: 4px; padding: var(--s3); flex: 1; }
.post-card .t { font-size: var(--t-sm); font-weight: 500; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 42px; }
.post-card .m { display: flex; justify-content: space-between; gap: var(--s2); font-size: var(--t-xs); color: var(--text-3); }
.post-card .a { padding: 0 var(--s3) var(--s3); }
.post-card .a .btn { width: 100%; }

/* ============================================================ 弹窗、提示 */
dialog { width: min(900px, calc(100% - 32px)); max-height: min(90vh, 960px); padding: 0; border: 0; border-radius: var(--r-lg); background: var(--surface); color: var(--text); box-shadow: var(--sh-3); overflow: auto; }
dialog::backdrop { background: rgba(8, 26, 39, .5); }
.modal-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s4) var(--s4) var(--s4) var(--s6); background: var(--surface); border-bottom: 1px solid var(--line); }
.modal-head h2 { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; min-width: 0; }
.modal-body { padding: var(--s5) var(--s6); }
.modal-footer { position: sticky; bottom: 0; display: flex; justify-content: flex-end; align-items: center; gap: var(--s2); flex-wrap: wrap; padding: var(--s3) var(--s6); background: var(--surface-2); border-top: 1px solid var(--line); }
.close { width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--r-sm); font-size: 22px; color: var(--text-3); flex-shrink: 0; }
.close:hover { background: var(--surface-3); color: var(--ink); }
#toast { position: fixed; left: 50%; bottom: var(--s8); z-index: 100; transform: translateX(-50%); max-width: min(560px, 90vw); padding: 10px var(--s5); border-radius: var(--r-sm);
  background: var(--brand-900); color: #fff; font-size: var(--t-sm); box-shadow: var(--sh-2); }

/* ============================================================ 登录 / 试用页 */
.solo { min-height: 100vh; display: grid; place-items: center; padding: var(--s6) var(--s4);
  background: radial-gradient(1000px 500px at 80% -10%, rgba(94, 200, 229, .25), transparent 60%), linear-gradient(150deg, var(--deep), var(--brand-800)); }
.solo-card { width: min(420px, 100%); padding: var(--s8); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-3); }
.solo-card .brand { padding: 0; margin-bottom: var(--s6); }



/* ============================================================ 账号卡（侧栏底部）、客户卡里的主页 / 原内容、AI 访谈、计划卡、素材库 */
.sidebar-bottom { padding: var(--s3) 0 0; }
.acct-wrap { position: relative; }
.acct-btn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; }
.acct-btn .avatar { background: var(--brand-600); color: #fff; font-weight: 600; transition: box-shadow .15s; }
.acct-btn:hover .avatar, .acct-btn[aria-expanded="true"] .avatar { box-shadow: 0 0 0 3px var(--brand-100); }
.acct-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 40; width: 264px; padding: var(--s2); border: 1px solid var(--line);
  border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-3); }
.am-head { display: flex; gap: var(--s3); align-items: center; padding: var(--s2) var(--s2) var(--s3); margin-bottom: var(--s1); border-bottom: 1px solid var(--line); }
.am-head .avatar { background: var(--brand-600); color: #fff; font-weight: 600; }
.am-head > div { min-width: 0; }
.am-head b { display: block; color: var(--ink); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.am-head small { display: block; font-size: var(--t-xs); color: var(--text-3); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.am-item { display: flex; align-items: center; gap: var(--s3); width: 100%; min-height: 40px; padding: 0 var(--s2); border-radius: var(--r-sm); color: var(--text); font-size: var(--t-sm); text-align: left; }
.am-item:hover { background: var(--surface-3); color: var(--ink); }
.am-item .icon { width: 17px; height: 17px; color: var(--text-3); }
.am-item span { flex: 1; }
.am-item small { color: var(--text-3); font-size: var(--t-xs); }
.am-item.danger, .am-item.danger .icon { color: var(--bad); }
.form-err { min-height: 20px; margin-top: var(--s3); font-size: var(--t-sm); color: var(--bad); }
dialog.narrow { width: min(440px, calc(100% - 32px)); }
.acct { display: grid; gap: 2px; padding: var(--s3); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); color: var(--text-2); }
.acct:hover { border-color: var(--brand-300); }
.acct-top { display: flex; justify-content: space-between; gap: var(--s2); min-width: 0; }
.acct-top b { color: var(--ink); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.acct-top span { flex-shrink: 0; font-size: var(--t-xs); color: var(--brand-600); }
.acct-credits { font-size: var(--t-xs); color: var(--text-3); }
.acct-credits strong { font-size: 20px; color: var(--ink); font-weight: 600; margin-right: 2px; }
.person-links { display: flex; flex-wrap: wrap; gap: var(--s2); }
.src-post { display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s3); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); }
.src-post img { width: 64px; height: 84px; object-fit: cover; border-radius: var(--r-sm); flex-shrink: 0; background: var(--surface-3); }
.src-post .grow { flex: 1; min-width: 0; display: grid; gap: 2px; }
.src-post b { color: var(--ink); font-weight: 600; }
.chat { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); max-height: 460px; overflow-y: auto; padding: var(--s2) 2px; }
.msg { display: flex; gap: var(--s2); align-items: flex-start; }
.msg.me { justify-content: flex-end; }
.msg .avatar { background: var(--brand-600); color: #fff; }
.msg .avatar .icon { width: 15px; height: 15px; }
.bubble { max-width: min(560px, 88%); padding: 10px var(--s4); border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); line-height: 1.7; word-break: break-word; }
.msg.ai .bubble { border-top-left-radius: 4px; }
.msg.me .bubble { border-top-right-radius: 4px; background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.chips.opt { margin-top: 10px; }
.chips.opt .chip { min-height: 34px; background: #fff; }
.chips.opt .chip.on { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.chips.opt .chip:disabled { pointer-events: none; }
.chips.opt .chip.on:disabled { opacity: 1; }
.chat-input { display: flex; gap: var(--s2); align-items: flex-end; margin-top: var(--s3); }
.chat-input:empty { display: none; }
.chat-input textarea { flex: 1; min-height: 44px; resize: none; }
.plan { margin-top: var(--s5); padding: var(--s5); border: 2px solid var(--brand-200); border-radius: var(--r-lg); background: linear-gradient(180deg, var(--brand-50), #fff 120px); }
.plan-title { display: flex; align-items: center; gap: var(--s2); font-size: var(--t-lg); color: var(--ink); }
.persona-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--s2); margin-bottom: var(--s2); }
.persona-chips > div { display: grid; gap: 2px; padding: var(--s2) var(--s3); border-radius: var(--r-sm); background: var(--brand-50); }
.persona-chips b { color: var(--brand-800); font-size: var(--t-sm); }
.persona-chips span { font-size: var(--t-xs); color: var(--text-2); }
.persona-cards .says { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.persona-cards .says span { padding: 2px 8px; border-radius: var(--r-full); background: var(--surface-3); font-size: var(--t-xs); color: var(--text-2); }
.creator-card .why { display: block; margin-top: 2px; font-size: var(--t-xs); color: var(--text-2); white-space: normal; }
.creator-list { display: grid; grid-template-columns: minmax(0, 1fr); }
.creator-row { display: flex; gap: var(--s3); align-items: center; padding: var(--s3) var(--s5); border-top: 1px solid var(--line); }
.creator-row:first-child { border-top: 0; }
.creator-row .grow { flex: 1; min-width: 0; display: grid; gap: 2px; }
.creator-row b { color: var(--ink); }
.dim { opacity: .55; }
.dim:hover { opacity: 1; }
.post-card .a { display: flex; gap: 4px; flex-wrap: wrap; }
.post-card .a .btn { width: auto; flex: 1; }
.rw-result { margin-top: var(--s2); }
.wx-intro { display: flex; gap: var(--s3); align-items: flex-start; }
.wx-intro b { color: var(--ink); }
.wx-intro p { margin-top: 4px; }
.wx-icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: #e7f6ec; color: #07c160; }
.wx-bind { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: var(--s5); align-items: start; }
.wx-qr { width: 236px; height: 236px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; padding: 6px; }
.wx-prefs { display: grid; gap: var(--s2); }
.wx-prefs .check { align-items: flex-start; padding: var(--s2) var(--s3); border: 1px solid var(--line); border-radius: var(--r-md); }
.wx-prefs .check input { margin-top: 3px; flex-shrink: 0; }
.wx-prefs .check b { display: block; color: var(--ink); font-weight: 500; }
.wx-status { margin-top: var(--s4); padding: var(--s3); border-radius: var(--r-md); background: var(--surface-2); font-size: var(--t-sm); color: var(--text); }

/* ============================================================ 手机 / 平板外壳：顶栏品牌切换、底部“更多”抽屉 */
.m-brand { display: none; align-items: center; gap: 8px; min-width: 0; max-width: 62vw; height: 40px; padding: 0 8px 0 2px; border-radius: var(--r-md);
  color: var(--ink); font-weight: 600; font-size: 15px; }
.m-brand:active { background: var(--surface-3); }
.m-brand > svg:first-child { width: 28px; height: 28px; flex-shrink: 0; }
.m-brand span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.m-brand .caret { width: 16px; height: 16px; color: var(--text-3); }
.ph-short, .show-m, .run-list { display: none; }
.report-actions { max-width: 980px; margin: 0 auto 16px; }
.sheet { width: min(480px, calc(100% - 32px)); }
.sheet-inner { padding: var(--s4); }
.sheet-handle { display: none; width: 40px; height: 4px; margin: 2px auto 14px; border-radius: 2px; background: var(--line-2); }
.sheet-title { padding: 0 var(--s2) var(--s3); font-weight: 600; color: var(--ink); font-size: var(--t-lg); }
.sheet-title small { display: block; font-weight: 400; font-size: var(--t-xs); color: var(--text-3); }
.sheet-brand { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); width: 100%; padding: var(--s3) var(--s4); margin-bottom: var(--s2);
  border-radius: var(--r-md); background: var(--brand-50); text-align: left; }
.sheet-brand small { display: block; font-size: var(--t-xs); color: var(--brand-600); }
.sheet-brand b { display: block; color: var(--brand-900); font-size: var(--t-lg); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sheet-brand > div { min-width: 0; }
.sheet-brand span { display: inline-flex; align-items: center; gap: 2px; flex-shrink: 0; color: var(--brand-600); font-size: var(--t-sm); }
.sheet-brand span .icon { width: 16px; height: 16px; }
.sheet-list { display: grid; grid-template-columns: minmax(0, 1fr); }
.sheet-item { display: flex; align-items: center; gap: var(--s3); width: 100%; min-height: 62px; padding: var(--s2); border-radius: var(--r-md); text-align: left; color: var(--text); }
.sheet-item:hover, .sheet-item:active { background: var(--surface-3); }
.sheet-item > div { flex: 1; min-width: 0; }
.sheet-item b { display: block; color: var(--ink); font-weight: 600; }
.sheet-item small { display: flex; align-items: center; gap: 6px; font-size: var(--t-xs); color: var(--text-3); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.si-icon { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); font-weight: 700; }
.si-icon .icon { width: 20px; height: 20px; }
.si-go { color: var(--text-4); }
.sheet-item.on .si-icon { background: var(--brand-600); color: #fff; }
.sheet-item.on .si-go { color: var(--brand-600); }
.sheet-logout { display: flex; align-items: center; justify-content: center; gap: var(--s2); width: 100%; height: 46px; margin-top: var(--s3); border-radius: var(--r-md);
  color: var(--bad); background: var(--bad-bg); font-weight: 500; }

/* ============================================================ 响应式：≥1280 完整；1024–1279 双栏变单栏；768–1023 图标侧栏；<768 底部导航 */
.mnav { display: none; }
@media (max-width: 1279px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpi { border-bottom: 1px solid var(--line); } .kpis > .kpi:nth-child(3n) { border-right: 0; }
  .kpis.k4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpis.k4 > .kpi:nth-child(3n) { border-right: 1px solid var(--line); } .kpis.k4 > .kpi:nth-child(2n) { border-right: 0; }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .stage-body { grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); }
  .counter { padding: var(--s4) var(--s5); }
}
@media (max-width: 1023px) {
  :root { --sidebar: 72px; }
  .main { padding: 0 var(--s6) var(--s10); } .topbar { margin: 0 calc(-1 * var(--s6)); padding: 0 var(--s6); }
  .sidebar { padding: var(--s4) var(--s2); align-items: center; }
  .brand > div, .ws-box, .nav-caption, .nav a span, .nav a em, .sidebar-bottom { display: none; }
  .nav a { justify-content: center; width: 48px; min-height: 44px; padding: 0; }
  .nav a.active::before { left: -8px; }
  .m-brand { display: inline-flex; }
  .breadcrumb { display: none; }
  .grid-2e, .how { grid-template-columns: minmax(0, 1fr); }
  .stage-body { grid-template-columns: minmax(0, 1fr); }
  .radar-box { max-width: 360px; margin: 0 auto; width: 100%; }
  .lead-grid { grid-template-columns: minmax(0, 1fr); }
  .profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-grid > div:nth-child(4n) { border-right: 1px solid var(--line); } .profile-grid > div:nth-child(2n) { border-right: 0; }
  .profile-grid > div:nth-last-child(-n+4) { border-bottom: 1px solid var(--line); } .profile-grid > div:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 767px) {
  :root { --control: 44px; --topbar: 56px; }
  .app { display: block; } .sidebar { display: none; }
  .main { padding: 0 var(--s4) calc(var(--bottom-nav) + env(safe-area-inset-bottom) + var(--s6)); }
  .topbar { margin: 0 calc(-1 * var(--s4)); padding: env(safe-area-inset-top) var(--s4) 0; height: calc(var(--topbar) + env(safe-area-inset-top)); }
  .top-actions .btn.primary { height: 36px; padding: 0 12px; }
  .hide-m { display: none !important; }
  .show-m { display: flex; }
  input, select, textarea { font-size: 16px; }   /* 小于 16px 时 iOS 会在聚焦时放大页面 */

  /* 页面骨架 */
  .page { padding-top: var(--s5); } h1 { font-size: 22px; }
  .page-heading { flex-direction: column; align-items: stretch; gap: var(--s3); margin-bottom: var(--s4); }
  .page-heading p { font-size: var(--t-sm); }
  .page-heading .actions .btn { flex: 1; }
  .stack, .grid-2, .grid-2e { gap: var(--s4); }
  .panel-head { min-height: 52px; padding: var(--s3) var(--s4); }
  .panel-head h2 small { display: block; margin: 0; font-size: var(--t-xs); }
  .panel-body { padding: var(--s4); }
  .toolbar { padding: var(--s3) var(--s4); gap: var(--s2); }
  .mini-item { padding: var(--s3) var(--s4); }
  .kpis, .kpis.k4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis > .kpi:nth-child(3n) { border-right: 1px solid var(--line); } .kpis > .kpi:nth-child(2n) { border-right: 0; }
  .kpi { padding: var(--s3) var(--s4); } .kpi strong { font-size: 22px; }

  /* 触控尺寸 */
  .btn.small { height: 38px; }
  .seg button { min-height: 36px; }
  .chip { min-height: 34px; }
  .pill { height: 40px; }
  .text-btn { padding: 6px 2px; }
  .seg, .scroll-m { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .seg::-webkit-scrollbar, .scroll-m::-webkit-scrollbar { display: none; }
  .seg > *, .scroll-m > * { flex-shrink: 0; }
  .scroll-m { width: 100%; padding-bottom: 2px; }

  /* 工作台 */
  .hero { flex-direction: column; align-items: stretch; gap: var(--s5); padding: var(--s6) var(--s5); }
  .hero h1 { font-size: 18px; } .hero h1 b { font-size: 26px; }
  .hero .actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
  .hero .actions .btn { width: 100%; padding: 0 var(--s2); }
  .hero .actions .btn.big { height: 46px; font-size: var(--t-md); }
  .hero .actions .btn:first-child, .hero .actions .btn:last-child:nth-child(even) { grid-column: 1 / -1; }
  .onboard-cta { flex-direction: column; align-items: stretch; gap: var(--s3); padding: var(--s5) var(--s4); }
  .onboard-cta .btn { width: 100%; }
  .bars { gap: 3px; height: 140px; }
  .bars .bar b { font-size: 10px; }
  .bars .bar span { font-size: 9px; }
  .bars .bar:nth-child(odd):not(:last-child) span { visibility: hidden; }
  .ledger-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ledger-sum div b { font-size: var(--t-lg); }

  /* 找客户 */
  .find-card { padding: var(--s4); border-radius: var(--r-md); }
  .find-input { flex-wrap: wrap; gap: var(--s2); padding: var(--s2); box-shadow: 0 0 0 3px var(--brand-50); }
  .find-input > .icon { display: none; }
  .find-input input { height: 44px; padding: 0 var(--s2); font-size: 16px; }
  .find-input .btn { width: 100%; }
  .detect { align-items: flex-start; font-size: var(--t-xs); line-height: 1.7; }
  .detect .badge { flex-shrink: 0; }
  .find-opts { grid-template-columns: minmax(0, 1fr); gap: var(--s2); }
  .find-opts > label { margin-top: var(--s3); font-weight: 500; color: var(--ink); }
  .estimate { gap: var(--s1) var(--s3); padding: var(--s3); font-size: var(--t-xs); }
  .how > div { padding: var(--s3) var(--s4); }

  /* 获客雷达 */
  .stage { border-radius: var(--r-md); }
  .stage-head { padding: var(--s5) var(--s4) var(--s4); gap: var(--s3); }
  .stage-head h1 { font-size: 20px; }
  .clock { font-size: 20px; white-space: nowrap; }
  .counters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .counter { padding: var(--s3) var(--s4); border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .counter:nth-child(2n) { border-right: 0; }
  .counter:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .counter b { font-size: 24px; }
  .phases { gap: 4px; padding: var(--s4) var(--s4) 0; }
  .phase { font-size: 12px; text-align: center; }
  .ph-long { display: none; } .ph-short { display: inline; }
  .phase-text { min-height: 40px; padding: var(--s3) var(--s4) var(--s4); font-size: var(--t-xs); }
  .stage-body { gap: var(--s5); padding: 0 var(--s4) var(--s5); }
  .radar-box { max-width: 260px; }
  .feed, .scan-list { max-height: none; overflow: visible; padding-right: 0; }
  .feed:not(.all) > .feed-item:nth-child(n+9), .scan-list:not(.all) > .scan:nth-child(n+7) { display: none; }
  .more-btn { width: 100%; margin-top: var(--s2); }
  .scan { grid-template-columns: 36px minmax(0, 1fr) 64px; }
  .result-banner { flex-direction: column; align-items: stretch; gap: var(--s4); padding: var(--s5) var(--s4); }
  .result-banner h2 { font-size: 19px; } .result-banner h2 b { font-size: 28px; }
  .result-banner .actions { display: grid; grid-template-columns: 1fr 1fr; }
  .result-banner .actions .btn { width: 100%; padding: 0 var(--s2); }
  .result-banner .actions .btn:first-child { grid-column: 1 / -1; }
  .result-stats { gap: var(--s1) var(--s3); font-size: var(--t-xs); }

  /* 客户卡 / 线索页 */
  .lead-grid { gap: var(--s3); }
  .lead-card { padding: var(--s4); }
  .lead-actions .btn { flex: 1; }
  .status-pick { display: grid; grid-template-columns: repeat(5, 1fr); width: 100%; margin-left: 0; }
  .status-pick button { height: 34px; padding: 0 2px; }
  .lfilters > select { display: none; flex: 1 1 calc(50% - 4px); min-width: 0; }
  .lfilters.open > select { display: block; }

  /* 弹窗 = 底部抽屉 */
  dialog { width: 100%; max-width: none; max-height: 92vh; margin: auto 0 0; border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .modal-head { padding: var(--s3) var(--s3) var(--s3) var(--s4); }
  .modal-body { padding: var(--s4); }
  .modal-footer { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding: var(--s3) var(--s4) calc(var(--s3) + env(safe-area-inset-bottom)); scrollbar-width: none; }
  .modal-footer .btn { flex-shrink: 0; }
  .foot-note { display: none; }
  .sheet { width: 100%; }
  .sheet-inner { padding: var(--s2) var(--s4) calc(var(--s4) + env(safe-area-inset-bottom)); }
  .sheet-handle { display: block; }

  /* 洞察报告 */
  .report-list { gap: var(--s3); }
  .report-actions { gap: var(--s2); }
  .report-actions .spacer { display: none; }
  .report-actions .btn.ghost { width: 100%; justify-content: flex-start; padding: 0; height: 32px; }
  .report-actions .btn:not(.ghost) { flex: 1; padding: 0 var(--s2); font-size: var(--t-sm); }
  .paper { border-radius: var(--r-md); }
  .paper-head { padding: var(--s6) var(--s5) var(--s5); } .paper-head h1 { font-size: 24px; }
  .paper-body { gap: var(--s6); padding: var(--s5); }
  .paper-foot { padding: var(--s4) var(--s5); }
  .headline { padding: var(--s4) var(--s4) var(--s4) 34px; font-size: 17px; }
  .headline::before { left: 8px; font-size: 44px; }
  .sec h2 { font-size: 17px; }
  .qa-item { grid-template-columns: 28px minmax(0, 1fr); } .qa-item .share { grid-column: 2; text-align: left; }

  /* 执行记录：手机上用卡片列表代替表格 */
  .run-list { display: grid; }
  .run-table { display: none; }

  /* 内容创作 / 开工 */
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); padding: var(--s3); }
  .wiz-steps div { font-size: 12px; }
  .wiz-hero { padding: var(--s5) var(--s4); }
  .wiz-hero h1 { font-size: 22px; }
  .wiz-hero textarea { font-size: 16px; }
  .wiz-hero .row .btn.big, .wizard .row > .btn.big { flex: 1; }
  .wiz-hero .row .check { width: 100%; align-items: flex-start; }
  .wiz-hero .row .check input { margin-top: 3px; }
  .wiz-hero .row .spacer { display: none; }
  .wiz-hero .row > .btn.big:only-of-type { flex: 1 1 100%; }
  .creator-cards { grid-template-columns: minmax(0, 1fr); }
  .chat { max-height: none; }
  .bubble { max-width: 92%; }
  .chat-input { flex-wrap: wrap; }
  .chat-input textarea { flex: 1 1 100%; }
  .chat-input .btn { flex: 1; }
  .plan { padding: var(--s4); }
  .creator-row { flex-wrap: wrap; padding: var(--s3) var(--s4); }
  .creator-row > .row { width: 100%; }
  .src-post { flex-wrap: wrap; }
  .src-post > .btn { width: 100%; }
  .person-links .btn { flex: 1 1 auto; }
  .wx-bind { grid-template-columns: minmax(0, 1fr); justify-items: center; }

  /* 底部导航 */
  .mnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: repeat(5, 1fr);
    height: calc(var(--bottom-nav) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
  .mnav a, .mnav button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; color: var(--text-3); }
  .mnav .icon { width: 22px; height: 22px; }
  .mnav .active { color: var(--brand-600); font-weight: 600; }
  .mnav em { position: absolute; top: 6px; left: calc(50% + 5px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
    background: var(--brand-600); color: #fff; font: 600 10px/16px var(--font-num); font-style: normal; text-align: center; }
  .mnav em:empty:not(.live) { display: none; }
  .mnav em.hot { background: var(--bad); }
  .mnav em.live { min-width: 8px; width: 8px; height: 8px; padding: 0; top: 9px; left: calc(50% + 8px); background: #22c55e; box-shadow: 0 0 0 2px #fff; }
  #toast { bottom: calc(var(--bottom-nav) + env(safe-area-inset-bottom) + var(--s4)); }
  table { font-size: var(--t-xs); }
}

/* 打印 / 存 PDF：只留报告正文 */
@media print {
  body { background: #fff; }
  .sidebar, .topbar, .mnav, .no-print, #toast { display: none !important; }
  .app { display: block; } .main { padding: 0; max-width: none; } .page { padding: 0; animation: none; }
  .paper { border: 0; max-width: none; }
  .paper-head { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .sec { break-inside: avoid; }
}
