/* =========================================================
   线索雷达 · 样式
   ========================================================= */
:root{
  --ink:#07060e;
  --ink-2:#0c0a16;
  --purple:#7c5cff;
  --purple-2:#a78bfa;
  --cyan:#4fd1e0;
  --text:#f4f3fb;
  --muted:#9895ad;
  --muted-2:#6f6c85;
  --line:rgba(255,255,255,.085);
  --line-2:rgba(255,255,255,.14);
  --card:rgba(255,255,255,.045);
  --card-2:rgba(255,255,255,.07);
  --paper:#f6f5f2;
  --paper-ink:#16151a;
  --paper-muted:#6b6963;
  --paper-line:#e6e3dc;
  --A:#ff4d6d;
  --B:#f5a524;
  --C:#8b89a3;
  --ok:#37d67a;
  --r:14px;
  --shadow:0 24px 60px -30px rgba(0,0,0,.9);
  --font:-apple-system,BlinkMacSystemFont,"PingFang SC","Helvetica Neue","Microsoft YaHei",sans-serif;
}

*{box-sizing:border-box}
[hidden]{display:none !important}
html{scroll-behavior:smooth}
body{
  margin:0;background:var(--ink);color:var(--text);
  font-family:var(--font);font-size:14px;line-height:1.6;min-height:100vh;
  display:flex;flex-direction:column;
  -webkit-font-smoothing:antialiased;
  background-image:
    radial-gradient(900px 520px at 12% -8%, rgba(124,92,255,.20), transparent 62%),
    radial-gradient(760px 460px at 96% 4%, rgba(79,209,224,.10), transparent 60%);
  background-repeat:no-repeat;
}
main{flex:1 0 auto;display:flex;flex-direction:column}
main>.view.on{flex:1 0 auto}
a{color:inherit;text-decoration:none}
button{font-family:inherit;cursor:pointer;border:0;background:none;color:inherit}
h1,h2,h3,h4{line-height:1.25;margin:0;letter-spacing:-.01em}
p{margin:0}
::selection{background:rgba(124,92,255,.45)}

/* ---------- 按钮 ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  height:38px;padding:0 16px;border-radius:10px;font-size:13.5px;font-weight:600;
  transition:.18s ease;white-space:nowrap;
}
.btn .ar{transition:transform .18s ease}
.btn:hover .ar{transform:translateX(3px)}
.btn-primary{
  background:linear-gradient(135deg,#8a6bff,#6c4bf0 55%,#5b3ce0);
  color:#fff;box-shadow:0 10px 26px -12px rgba(124,92,255,.9),inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-primary:hover{filter:brightness(1.1);box-shadow:0 14px 32px -12px rgba(124,92,255,1)}
.btn-ghost{background:rgba(255,255,255,.045);border:1px solid var(--line-2);color:#e9e7f6}
.btn-ghost:hover{background:rgba(255,255,255,.1)}
.btn-lg{height:46px;padding:0 22px;font-size:14.5px;border-radius:11px}
.btn-sm{height:32px;padding:0 13px;font-size:12.5px;border-radius:9px}
.btn:disabled{opacity:.5;cursor:not-allowed;filter:none}

/* ---------- 顶栏 ---------- */
.topbar{
  position:sticky;top:0;z-index:60;height:66px;
  display:flex;align-items:center;gap:28px;padding:0 32px;
  background:rgba(7,6,14,.78);backdrop-filter:blur(18px) saturate(1.3);
  border-bottom:1px solid var(--line);
}
.brand{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.brand-mark{
  width:32px;height:32px;border-radius:9px;display:grid;place-items:center;
  background:linear-gradient(140deg,#8a6bff,#5b3ce0);color:#fff;
  box-shadow:0 6px 18px -8px rgba(124,92,255,.9),inset 0 1px 0 rgba(255,255,255,.25);
}
.brand-mark.sm{width:22px;height:22px;border-radius:7px}
.brand-txt{display:flex;flex-direction:column;line-height:1.15}
.brand-txt b{font-size:15px;letter-spacing:.02em}
.brand-txt i{font-style:normal;font-size:10px;color:var(--muted-2);letter-spacing:.06em}
.nav{display:flex;align-items:center;gap:4px;margin-left:8px;min-width:0}
.nav a{
  padding:7px 13px;border-radius:8px;font-size:13px;color:#b9b6cc;position:relative;transition:.16s;
  white-space:nowrap;flex:0 0 auto;
}
.nav a:hover{color:#fff;background:rgba(255,255,255,.05)}
.nav a.on{color:#fff;background:rgba(255,255,255,.08)}
.nav a.on::after{
  content:"";position:absolute;left:13px;right:13px;bottom:2px;height:2px;border-radius:2px;
  background:linear-gradient(90deg,#a78bfa,#6ee7ff);
}
.topbar-right{margin-left:auto;display:flex;align-items:center;gap:12px}
.tag-demo{
  font-size:10.5px;letter-spacing:.08em;color:#cfc7ff;padding:3px 8px;border-radius:6px;
  border:1px solid rgba(167,139,250,.35);background:rgba(124,92,255,.14);
}

/* ---------- 视图切换 ---------- */
.view{display:none}
.view.on{display:block}
@keyframes fadeUp{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* =========================================================
   首页 hero
   ========================================================= */
.hero{position:relative;overflow:hidden;padding:64px 0 76px;border-bottom:1px solid var(--line)}
.hero-bg{
  position:absolute;inset:0;pointer-events:none;
  background:
    radial-gradient(620px 420px at 6% 4%, rgba(124,92,255,.26), transparent 64%),
    radial-gradient(520px 380px at 46% 78%, rgba(79,209,224,.075), transparent 66%),
    radial-gradient(760px 520px at 88% 18%, rgba(124,92,255,.14), transparent 66%);
}
.hero-bg::after{
  content:"";position:absolute;inset:0;opacity:.5;
  background-image:linear-gradient(rgba(255,255,255,.028) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.028) 1px,transparent 1px);
  background-size:56px 56px;
  mask-image:radial-gradient(80% 70% at 40% 20%,#000,transparent 80%);
}
.hero-wrap{
  position:relative;max-width:1240px;margin:0 auto;padding:0 32px;
  display:grid;grid-template-columns:1.08fr .92fr;gap:56px;align-items:start;
}
.hero-left,.hero-right{min-width:0}
.pill{
  display:inline-flex;align-items:center;gap:8px;
  height:30px;padding:0 13px;border-radius:99px;
  border:1px solid rgba(255,255,255,.13);background:rgba(255,255,255,.05);
  font-size:11.5px;color:#cfcbe4;letter-spacing:.02em;backdrop-filter:blur(6px);
}
.live-dot{
  width:6px;height:6px;border-radius:50%;background:var(--ok);
  box-shadow:0 0 0 4px rgba(55,214,122,.16);animation:pulse 2s infinite;
}
@keyframes pulse{0%,100%{box-shadow:0 0 0 3px rgba(55,214,122,.18)}50%{box-shadow:0 0 0 7px rgba(55,214,122,0)}}
.hero-title{
  margin:22px 0 0;font-size:clamp(36px,4.6vw,60px);font-weight:850;letter-spacing:-.025em;line-height:1.14;
}
.hero-grad{
  background:linear-gradient(96deg,#ffffff 8%,#ded3ff 46%,#b9a7ff 74%,#8fe6ff 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.hero-sub{margin-top:20px;max-width:520px;font-size:14.5px;line-height:1.85;color:#a9a5be}
.hero-cta{display:flex;gap:12px;margin-top:28px}
.hero-stats{display:flex;align-items:stretch;gap:0;margin-top:42px}
.hs{padding-right:30px}
.hs+.hs{padding-left:30px;border-left:1px solid var(--line)}
.hs b{display:block;font-size:29px;font-weight:800;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.hs b small{font-size:13px;font-weight:600;color:var(--muted);margin-left:3px}
.hs span{display:block;margin-top:5px;font-size:11.5px;color:var(--muted-2);letter-spacing:.04em}

/* 实时信号 */
.hero-right{
  position:relative;border-radius:20px;padding:22px 22px 16px;
  background:linear-gradient(180deg,rgba(255,255,255,.062),rgba(255,255,255,.022));
  border:1px solid var(--line-2);box-shadow:var(--shadow);
}
.hero-right::before{
  content:"";position:absolute;left:22px;right:22px;top:0;height:1px;pointer-events:none;
  background:linear-gradient(90deg,transparent,rgba(167,139,250,.75),rgba(79,209,224,.35),transparent);
}
.eyebrow{font-size:9.5px;letter-spacing:.19em;color:#8b86a6;font-weight:600}
.signals-head h3{font-size:15px;margin-top:6px;font-weight:700}
.signal-list{
  margin-top:16px;display:flex;flex-direction:column;gap:9px;
  max-height:382px;overflow:hidden;
}
.sig{
  border:1px solid var(--line);border-radius:12px;padding:11px 13px;
  background:rgba(255,255,255,.035);transition:.2s;
}
.sig.in{animation:sigIn .5s cubic-bezier(.2,.8,.3,1)}
@keyframes sigIn{from{transform:translateY(-10px) scale(.985)}to{transform:none}}
.sig:hover{background:rgba(255,255,255,.07);border-color:var(--line-2)}
.sig-kw{font-size:11px;color:#a99cff;letter-spacing:.02em}
.sig-kw b{font-weight:600}
.sig-txt{margin-top:5px;font-size:13px;color:#efeCf9;line-height:1.5}
.sig-bottom{display:flex;align-items:center;gap:8px;margin-top:8px}
.pf-tag{
  display:inline-flex;align-items:center;gap:5px;height:19px;padding:0 7px;border-radius:5px;
  font-size:10.5px;color:#d8d5e8;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.08);
}
.pf-tag i{width:5px;height:5px;border-radius:50%;display:block}
.sig-time{font-size:10.5px;color:var(--muted-2);margin-left:auto}
.signal-foot{
  display:flex;align-items:center;gap:8px;margin-top:14px;padding-top:12px;
  border-top:1px solid var(--line);font-size:11px;color:var(--muted-2);
}

/* =========================================================
   HOW IT WORKS（浅色）
   ========================================================= */
.how{background:var(--paper);color:var(--paper-ink);padding:78px 0 66px}
.how-wrap{max-width:1240px;margin:0 auto;padding:0 32px}
.kicker{
  display:flex;align-items:center;gap:9px;font-size:10.5px;letter-spacing:.18em;
  font-weight:650;color:#9a978f;
}
.kicker em{font-style:normal;letter-spacing:.06em;color:#b3b0a7}
.kicker-line{width:22px;height:1px;background:#c9c5bb}
.kicker.light{color:#8b87a4}
.kicker.light em{color:#6f6c85}
.how-head h2{margin-top:14px;font-size:clamp(26px,3vw,36px);font-weight:800;letter-spacing:-.02em;max-width:720px}
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:38px}
.step{
  position:relative;background:#fff;border:1px solid var(--paper-line);border-radius:16px;
  padding:22px 20px 24px;overflow:hidden;transition:.22s;
}
.step:hover{transform:translateY(-3px);box-shadow:0 20px 40px -28px rgba(22,21,26,.5);border-color:#d8d4ca}
.step-ico{
  width:36px;height:36px;border-radius:10px;display:grid;place-items:center;
  background:#f2efe9;color:#4b4850;
}
.step-ico svg{width:19px;height:19px}
.step-no{
  position:absolute;top:14px;right:16px;font-size:34px;font-weight:850;color:#f0ede6;
  letter-spacing:-.03em;
}
.step h4{margin-top:16px;font-size:15px;font-weight:750}
.step p{margin-top:7px;font-size:12.5px;line-height:1.75;color:var(--paper-muted)}

.why{display:grid;grid-template-columns:repeat(3,1fr);gap:34px;margin-top:46px;padding-top:36px;border-top:1px solid var(--paper-line)}
.why-item b{font-size:13.5px;font-weight:750;display:block}
.why-item b::before{content:"";display:inline-block;width:5px;height:5px;border-radius:50%;background:#8a6bff;margin-right:8px;vertical-align:middle}
.why-item p{margin-top:7px;font-size:12.5px;line-height:1.8;color:var(--paper-muted)}

.industry-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:38px}
.industry-label{font-size:11px;letter-spacing:.1em;color:#a09d94;margin-right:4px}
.chip-i{
  font-size:12px;padding:5px 11px;border-radius:99px;background:#fff;
  border:1px solid var(--paper-line);color:#4c4941;
}

/* CTA band */
.cta-band{position:relative;overflow:hidden;padding:74px 0;text-align:center;border-bottom:1px solid var(--line)}
.cta-band::before{
  content:"";position:absolute;inset:0;
  background:radial-gradient(680px 340px at 50% 52%, rgba(124,92,255,.22), transparent 76%);
}
.cta-inner{position:relative}
.cta-inner h2{font-size:clamp(24px,3vw,34px);font-weight:820;letter-spacing:-.02em}
.cta-inner p{margin-top:12px;color:var(--muted);font-size:14px}
.cta-inner .btn{margin-top:26px}

/* =========================================================
   通用页面
   ========================================================= */
.page{max-width:1240px;margin:0 auto;padding:38px 32px 90px}
.page-head{margin-bottom:26px}
.page-head.row{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;flex-wrap:wrap}
.page-head h2{font-size:27px;font-weight:800;margin-top:10px;letter-spacing:-.02em}
.page-head p{margin-top:8px;font-size:13.5px;color:var(--muted)}
.head-actions{display:flex;gap:9px}

/* 任务卡 */
.task-card{
  background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.022));
  border:1px solid var(--line-2);border-radius:18px;padding:24px;box-shadow:var(--shadow);
}
.task-label{display:block;font-size:12px;color:var(--muted);margin-bottom:10px;letter-spacing:.03em}
#taskInput{
  width:100%;resize:vertical;min-height:88px;padding:15px 16px;border-radius:12px;
  background:rgba(0,0,0,.3);border:1px solid var(--line-2);color:#f2f0fb;
  font-family:inherit;font-size:15px;line-height:1.7;outline:none;transition:.18s;
}
#taskInput:focus{border-color:rgba(140,110,255,.7);box-shadow:0 0 0 3px rgba(124,92,255,.16)}
.task-row{display:grid;grid-template-columns:1.2fr .8fr 1fr;gap:22px;margin-top:20px;align-items:end}
.field{display:flex;flex-direction:column;gap:9px}
.field-label{font-size:11.5px;color:var(--muted);letter-spacing:.03em}
.field-label em{font-style:normal;color:#b9a8ff}
.pf-chips{display:flex;gap:7px;flex-wrap:wrap}
.pf-chip{
  height:29px;padding:0 12px;border-radius:8px;font-size:12.5px;color:#c6c2d8;
  background:rgba(255,255,255,.04);border:1px solid var(--line-2);transition:.16s;
}
.pf-chip.on{background:rgba(124,92,255,.22);border-color:rgba(150,120,255,.6);color:#efe9ff}
select{
  height:36px;border-radius:9px;background:rgba(0,0,0,.3);border:1px solid var(--line-2);
  color:#e8e5f5;padding:0 10px;font-family:inherit;font-size:13px;outline:none;
}
input[type=range]{
  -webkit-appearance:none;height:4px;border-radius:4px;background:rgba(255,255,255,.14);outline:none;
}
input[type=range]::-webkit-slider-thumb{
  -webkit-appearance:none;width:15px;height:15px;border-radius:50%;
  background:linear-gradient(140deg,#a78bfa,#6c4bf0);box-shadow:0 0 0 3px rgba(124,92,255,.22);cursor:pointer;
}
.task-actions{display:flex;align-items:center;gap:12px;margin-top:22px;flex-wrap:wrap}
.hint{font-size:11.5px;color:var(--muted-2);max-width:420px;line-height:1.6}

/* 流水线 */
.pipeline{margin-top:26px;display:none}
.pipeline.on{display:block}
.stage{
  display:flex;align-items:center;gap:14px;padding:13px 16px;border-radius:12px;
  border:1px solid var(--line);background:rgba(255,255,255,.025);margin-bottom:8px;
  opacity:.42;transition:.3s;
}
.stage.on{opacity:1;border-color:rgba(150,120,255,.5);background:rgba(124,92,255,.1)}
.stage.done{opacity:1;border-color:rgba(55,214,122,.24);background:rgba(55,214,122,.06)}
.stage-ico{
  width:26px;height:26px;border-radius:8px;display:grid;place-items:center;flex:0 0 auto;
  background:rgba(255,255,255,.07);font-size:12px;color:#cfc9e8;
}
.stage.on .stage-ico{background:rgba(124,92,255,.35);color:#fff}
.stage.done .stage-ico{background:rgba(55,214,122,.2);color:#6ef0a2}
.stage-name{font-size:13.5px;font-weight:600;flex:0 0 132px}
.stage-msg{font-size:12.5px;color:var(--muted);flex:1}
.stage-num{font-size:12px;color:#bda9ff;font-variant-numeric:tabular-nums;font-weight:600}
.spin{
  width:11px;height:11px;border-radius:50%;border:1.6px solid rgba(255,255,255,.25);
  border-top-color:#c4b5fd;animation:sp .7s linear infinite;display:inline-block;
}
@keyframes sp{to{transform:rotate(360deg)}}

/* 结果概览 */
.result-card{
  margin-top:20px;border:1px solid var(--line-2);border-radius:16px;padding:22px;
  background:linear-gradient(180deg,rgba(124,92,255,.12),rgba(255,255,255,.02));
}
.result-kpis{display:flex;gap:34px;flex-wrap:wrap}
.rk b{display:block;font-size:26px;font-weight:800;font-variant-numeric:tabular-nums}
.rk span{font-size:11.5px;color:var(--muted)}
.result-card .btn{margin-top:20px}

/* KPI */
.kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.kpi{
  border:1px solid var(--line);border-radius:16px;padding:18px 18px 16px;
  background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.018));
}
.kpi-top{display:flex;align-items:center;justify-content:space-between}
.kpi-label{font-size:11.5px;color:var(--muted);letter-spacing:.03em}
.kpi-delta{font-size:10.5px;color:#6ef0a2;background:rgba(55,214,122,.12);padding:2px 7px;border-radius:5px}
.kpi-val{margin-top:12px;font-size:31px;font-weight:820;letter-spacing:-.025em;font-variant-numeric:tabular-nums}
.kpi-val small{font-size:12.5px;font-weight:600;color:var(--muted);margin-left:4px;letter-spacing:0}

/* 面板与图表 */
.chart-grid{display:grid;grid-template-columns:1fr 1fr 1.25fr;gap:14px;margin-top:14px}
.panel{
  border:1px solid var(--line);border-radius:16px;padding:18px;margin-top:14px;
  background:rgba(255,255,255,.028);
}
.chart-grid .panel{margin-top:0}
.panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.panel-head h4{font-size:13.5px;font-weight:700}
.panel-head span{font-size:11px;color:var(--muted-2)}
.link{font-size:11.5px;color:#b9a8ff}
.donut-box{display:flex;align-items:center;gap:18px}
.donut-legend{display:flex;flex-direction:column;gap:9px;flex:1}
.leg{display:flex;align-items:center;gap:8px;font-size:12px;color:#c6c2d8}
.leg i{width:8px;height:8px;border-radius:50%}
.leg b{margin-left:auto;font-variant-numeric:tabular-nums}
.bars-box{display:flex;flex-direction:column;gap:12px}
.bar-row{display:grid;grid-template-columns:52px 1fr 34px;align-items:center;gap:10px;font-size:12px}
.bar-name{color:#c0bcd4}
.bar-track{display:block;height:7px;border-radius:99px;background:rgba(255,255,255,.07);overflow:hidden}
.bar-fill{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#8a6bff,#5b3ce0);transition:width .6s cubic-bezier(.2,.8,.3,1)}
.bar-num{text-align:right;color:#a9a5be;font-variant-numeric:tabular-nums}

.mini-list{display:flex;flex-direction:column}
.mini{
  display:flex;align-items:center;gap:14px;padding:12px 4px;border-bottom:1px solid var(--line);
  cursor:pointer;transition:.15s;
}
.mini:last-child{border-bottom:0}
.mini:hover{background:rgba(255,255,255,.03)}
.mini-score{
  width:40px;height:40px;border-radius:10px;display:grid;place-items:center;flex:0 0 auto;
  font-size:14px;font-weight:800;font-variant-numeric:tabular-nums;
}
.mini-main{flex:1;min-width:0}
.mini-main b{font-size:13px;font-weight:600;display:block}
.mini-main p{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mini-meta{font-size:11px;color:var(--muted-2);text-align:right;flex:0 0 auto}

.task-history{display:flex;flex-direction:column}
.hist{display:flex;align-items:center;gap:16px;padding:12px 2px;border-bottom:1px solid var(--line)}
.hist:last-child{border-bottom:0}
.hist-kw{font-size:13px;font-weight:600;flex:0 0 170px}
.hist-meta{font-size:11.5px;color:var(--muted-2);flex:1}
.hist-nums{display:flex;gap:18px;font-size:11.5px;color:var(--muted)}
.hist-nums b{color:#e6e2f6;font-weight:700}

/* 采集数据 */
.ctask{
  border:1px solid var(--line);border-radius:16px;padding:16px 18px;margin-bottom:10px;
  background:rgba(255,255,255,.028);display:flex;align-items:center;gap:18px;flex-wrap:wrap;
}
.ctask-head{flex:1;min-width:220px}
.ctask-head b{font-size:13.5px}
.ctask-head p{font-size:11.5px;color:var(--muted-2);margin-top:3px}
.ctask-stats{display:flex;gap:22px}
.cs b{display:block;font-size:17px;font-weight:750;font-variant-numeric:tabular-nums}
.cs span{font-size:10.5px;color:var(--muted-2)}
.table-wrap{border:1px solid var(--line);border-radius:16px;overflow:hidden;margin-top:14px;background:rgba(255,255,255,.02)}
.lead-table{width:100%;border-collapse:collapse}
.lead-table thead th{
  text-align:left;font-size:11px;font-weight:600;color:var(--muted-2);letter-spacing:.05em;
  padding:12px 14px;background:rgba(255,255,255,.035);border-bottom:1px solid var(--line);white-space:nowrap;
}
.lead-table tbody td{padding:13px 14px;border-bottom:1px solid rgba(255,255,255,.055);vertical-align:middle;font-size:12.5px}
.lead-table tbody tr{cursor:pointer;transition:.14s}
.lead-table tbody tr:hover{background:rgba(255,255,255,.04)}
.lead-table tbody tr:last-child td{border-bottom:0}
.score-cell{display:flex;align-items:center;gap:10px}
.ring{width:36px;height:36px;display:grid;place-items:center;flex:0 0 auto}
.ring svg{display:block}
.tier-badge{font-size:9.5px;padding:1px 5px;border-radius:4px;font-weight:700;letter-spacing:.03em}
.t-A{background:rgba(255,77,109,.16);color:#ff8fa3}
.t-B{background:rgba(245,165,36,.15);color:#ffc465}
.t-C{background:rgba(139,137,163,.16);color:#a8a6bd}
.lead-name{font-weight:600;font-size:12.5px;display:block}
.lead-sub{font-size:10.5px;color:var(--muted-2);margin-top:2px}
.lead-txt{color:#d7d3e6;line-height:1.55;max-width:520px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
mark{background:rgba(167,139,250,.26);color:#e3d9ff;padding:0 2px;border-radius:3px}
.muted-cell{color:var(--muted)}
.pf-cell{display:inline-flex;align-items:center;gap:6px;font-size:11.5px;color:#c6c2d8}
.pf-cell i{width:6px;height:6px;border-radius:50%}
.status-pill{
  font-size:10.5px;padding:3px 8px;border-radius:6px;border:1px solid transparent;white-space:nowrap;
}
.s-new{background:rgba(124,92,255,.16);color:#c4b5fd;border-color:rgba(124,92,255,.3)}
.s-following{background:rgba(245,165,36,.14);color:#ffc465;border-color:rgba(245,165,36,.28)}
.s-done{background:rgba(55,214,122,.13);color:#6ef0a2;border-color:rgba(55,214,122,.26)}
.s-ignored{background:rgba(255,255,255,.05);color:#8b89a3;border-color:rgba(255,255,255,.1)}
.row-act{color:var(--muted-2);font-size:16px}
.row-act:hover{color:#fff}
.empty{padding:56px 20px;text-align:center}
.empty b{font-size:14px;display:block}
.empty p{margin-top:6px;font-size:12.5px;color:var(--muted-2)}
.empty .btn{margin-top:16px}

/* 筛选 */
.filters{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:2px}
.search-wrap{
  display:flex;align-items:center;gap:8px;height:36px;padding:0 12px;border-radius:9px;
  background:rgba(0,0,0,.3);border:1px solid var(--line-2);color:var(--muted-2);min-width:250px;
}
.search-wrap input{background:none;border:0;outline:none;color:#eeeaf9;font-family:inherit;font-size:12.5px;width:100%}
.search-wrap input::placeholder{color:#5f5c73}
.result-count{margin-left:auto;font-size:11.5px;color:var(--muted-2)}

/* 抽屉 */
.drawer-mask{position:fixed;inset:0;background:rgba(4,3,9,.6);backdrop-filter:blur(3px);z-index:80}
.drawer{
  position:fixed;top:0;right:0;bottom:0;width:min(470px,94vw);z-index:90;
  background:linear-gradient(180deg,#100d1c,#0a0813);border-left:1px solid var(--line-2);
  display:flex;flex-direction:column;animation:slideIn .28s cubic-bezier(.2,.8,.3,1) both;
  box-shadow:-30px 0 80px -40px #000;
}
@keyframes slideIn{from{transform:translateX(30px);opacity:.4}to{transform:none;opacity:1}}
.drawer-head{display:flex;align-items:flex-start;justify-content:space-between;padding:22px 22px 16px;border-bottom:1px solid var(--line)}
.drawer-head h3{font-size:17px;margin-top:6px}
.icon-btn{width:30px;height:30px;border-radius:8px;color:#a5a1b8;font-size:14px;display:grid;place-items:center}
.icon-btn:hover{background:rgba(255,255,255,.08);color:#fff}
.drawer-body{padding:20px 22px;overflow-y:auto;flex:1}
.dw-sec{margin-bottom:22px}
.dw-label{font-size:10.5px;letter-spacing:.14em;color:var(--muted-2);margin-bottom:8px}
.dw-quote{
  font-size:14px;line-height:1.75;color:#eae6f7;padding:14px 16px;border-radius:12px;
  background:rgba(255,255,255,.04);border:1px solid var(--line);border-left:3px solid rgba(167,139,250,.7);
}
.dw-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.dw-cell{background:rgba(255,255,255,.03);border:1px solid var(--line);border-radius:10px;padding:11px 13px}
.dw-cell span{font-size:10.5px;color:var(--muted-2);display:block}
.dw-cell b{font-size:13px;display:block;margin-top:3px}
.dw-hits{display:flex;gap:6px;flex-wrap:wrap;margin-top:2px}
.hit-chip{font-size:11px;padding:3px 8px;border-radius:6px;background:rgba(255,109,139,.14);color:#ff9fb1;border:1px solid rgba(255,109,139,.24)}
.talk-box{
  font-size:12.5px;line-height:1.9;color:#ded9f0;padding:14px 15px;border-radius:12px;
  background:rgba(124,92,255,.09);border:1px solid rgba(124,92,255,.24);white-space:pre-wrap;
}
.drawer-foot{display:flex;gap:10px;padding:16px 22px;border-top:1px solid var(--line)}
.drawer-foot .btn{flex:1}

/* toast */
.toast{
  position:fixed;left:50%;bottom:34px;transform:translateX(-50%) translateY(10px);
  background:#171327;border:1px solid rgba(167,139,250,.35);color:#efeaff;
  padding:10px 18px;border-radius:10px;font-size:12.5px;z-index:120;
  box-shadow:0 18px 40px -18px #000;opacity:0;transition:.24s;pointer-events:none;
}
.toast.on{opacity:1;transform:translateX(-50%) translateY(0)}

/* footer */
.foot{border-top:1px solid var(--line);padding:26px 32px;background:rgba(0,0,0,.35)}
.foot-in{max-width:1240px;margin:0 auto;display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.foot-brand{display:flex;align-items:center;gap:8px;font-size:12.5px;font-weight:700}
.foot-in p{font-size:11.5px;color:var(--muted-2)}

/* ---------- 响应式 ---------- */
@media (max-width:1120px){
  .hero-wrap{grid-template-columns:1fr;gap:40px}
  .hero-sub{max-width:100%}
  .chart-grid{grid-template-columns:1fr 1fr}
  .chart-grid .panel:last-child{grid-column:1/-1}
  .steps{grid-template-columns:1fr 1fr}
  .kpis{grid-template-columns:1fr 1fr}
}
@media (max-width:860px){
  .topbar{
    height:auto;min-width:0;flex-wrap:wrap;gap:6px;padding:9px 14px 0;
    overflow:visible;
  }
  .brand{order:1}
  .brand-txt i{display:none}
  .topbar-right{order:2;margin-left:auto}
  .tag-demo{display:none}
  .nav{
    order:3;width:100%;margin:0;padding:4px 0 7px;gap:2px;
    overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  .nav::-webkit-scrollbar{display:none}
  .nav a{padding:6px 10px;font-size:12.5px}
  .nav a.on::after{left:10px;right:10px}
  .page{padding:26px 16px 70px}
  .hero{padding:44px 0 56px}
  .hero-wrap{padding:0 16px;gap:32px}
  .hero-title{font-size:34px}
  .hero-sub{font-size:13.5px}
  .hero-cta{gap:9px}
  .hero-cta .btn{flex:1}
  .how{padding:56px 0 48px}
  .how-wrap{padding:0 16px}
  .task-row{grid-template-columns:1fr;gap:16px}
  .why{grid-template-columns:1fr;gap:18px}
  .chart-grid{grid-template-columns:1fr}
  .kpis{grid-template-columns:1fr 1fr}
  .hero-stats{gap:0;margin-top:32px}
  .hs{padding-right:18px}
  .hs+.hs{padding-left:18px}
  .hs b{font-size:24px}
  .table-wrap{overflow-x:auto}
  .lead-table{min-width:820px}
  .filters{gap:7px}
  .search-wrap{min-width:100%}
  .foot{padding:22px 16px}
  .steps{gap:12px}
  .stage-name{flex:0 0 96px;font-size:12.5px}
  .stage-msg{font-size:11.5px}
  .stage{padding:11px 12px;gap:10px}
  .result-kpis{gap:20px}
  .rk b{font-size:22px}
}

/* =========================================================
   真实采集相关：数据源切换 / 人工介入条 / 账号弹窗
   ========================================================= */

/* 顶栏数据源标签的两种状态 */
.tag-demo[data-src="live"]{
  color:#9ff0c8;border-color:rgba(63,214,143,.4);background:rgba(48,200,126,.14);
}
.tag-demo[data-src="live"]::before{
  content:"";display:inline-block;width:5px;height:5px;border-radius:50%;
  background:#3fd68f;margin-right:5px;vertical-align:1px;
  box-shadow:0 0 0 3px rgba(63,214,143,.18);
}

/* 任务卡里的数据源切换 */
.src-row{
  display:flex;align-items:center;gap:12px;flex-wrap:wrap;
  margin-top:16px;padding-top:15px;border-top:1px solid var(--line);
}
.seg{
  display:inline-flex;padding:3px;border-radius:9px;
  background:rgba(255,255,255,.05);border:1px solid var(--line-2);
}
.seg button{
  appearance:none;border:0;background:transparent;cursor:pointer;
  font:inherit;font-size:12.5px;color:#a8a4bd;
  padding:6px 14px;border-radius:7px;transition:.16s;white-space:nowrap;
}
.seg button:hover{color:#e6e3f5}
.seg button.on{
  background:linear-gradient(180deg,rgba(124,92,255,.9),rgba(98,68,224,.9));
  color:#fff;box-shadow:0 1px 0 rgba(255,255,255,.12) inset;
}
.src-note{font-size:11.5px;color:#8d89a3;line-height:1.5;flex:1;min-width:200px}

/* 需要人工介入 */
.human-bar{
  margin-top:18px;display:flex;align-items:center;gap:14px;
  padding:15px 18px;border-radius:13px;
  background:linear-gradient(180deg,rgba(255,193,94,.12),rgba(255,193,94,.05));
  border:1px solid rgba(255,193,94,.32);
}
.hb-ico{
  flex:0 0 auto;width:26px;height:26px;border-radius:50%;
  display:grid;place-items:center;font-weight:800;font-size:14px;
  color:#1a1408;background:#f5b544;
}
.hb-txt{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}
.hb-txt b{font-size:13.5px;color:#ffe6b8}
.hb-txt span{font-size:12px;color:#c8b48f;line-height:1.55}

/* 账号弹窗 */
.modal{position:fixed;inset:0;z-index:90;display:grid;place-items:center;padding:24px}
.modal-mask{position:absolute;inset:0;background:rgba(6,5,12,.72);backdrop-filter:blur(6px)}
.modal-card{
  position:relative;width:min(560px,100%);max-height:86vh;overflow:auto;
  border-radius:18px;padding:24px 24px 18px;
  background:linear-gradient(180deg,#15122a,#100e1f);
  border:1px solid rgba(255,255,255,.1);
  box-shadow:0 28px 70px rgba(0,0,0,.6);
}
.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.modal-head h3{margin:0;font-size:17px;font-weight:800;letter-spacing:-.01em}
.modal-head p{margin:5px 0 0;font-size:12.5px;color:#8f8ba6;line-height:1.55}
.modal-x{
  appearance:none;border:0;background:rgba(255,255,255,.06);cursor:pointer;
  width:28px;height:28px;border-radius:8px;color:#a8a4bd;font-size:13px;flex:0 0 auto;
}
.modal-x:hover{background:rgba(255,255,255,.12);color:#fff}

.acc-list{margin-top:18px;display:flex;flex-direction:column;gap:10px}
.acc-item{
  display:flex;align-items:center;gap:12px;padding:13px 15px;border-radius:12px;
  background:rgba(255,255,255,.035);border:1px solid var(--line);
}
.acc-item .ai-name{font-size:13.5px;font-weight:700;color:#ece9fb}
.acc-item .ai-state{font-size:11.5px;color:#8d89a3;margin-top:2px}
.acc-item .ai-state.ok{color:#63e0a4}
.acc-item .ai-grow{flex:1;min-width:0}
.acc-dot{width:7px;height:7px;border-radius:50%;background:#5a5670;flex:0 0 auto}
.acc-dot.ok{background:#3fd68f;box-shadow:0 0 0 3px rgba(63,214,143,.16)}
.acc-dot.warn{background:#f5b544;box-shadow:0 0 0 3px rgba(245,181,68,.16)}

.modal-note{
  margin-top:16px;padding:14px 16px;border-radius:12px;
  background:rgba(255,255,255,.03);border:1px solid var(--line);
}
.modal-note b{font-size:12px;color:#c9c5e0;letter-spacing:.02em}
.modal-note ul{margin:8px 0 0;padding-left:16px;display:flex;flex-direction:column;gap:6px}
.modal-note li{font-size:11.8px;color:#8f8ba6;line-height:1.6}
.modal-note code{
  font-size:11px;padding:1px 5px;border-radius:4px;
  background:rgba(124,92,255,.16);color:#c3b5ff;
}
.modal-foot{
  margin-top:16px;display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding-top:14px;border-top:1px solid var(--line);
}
.modal-foot span{font-size:11px;color:#7d7992;line-height:1.5}

@media (max-width:860px){
  .src-row{gap:9px}
  .src-note{min-width:100%;font-size:11px}
  .human-bar{flex-wrap:wrap;gap:10px;padding:13px 14px}
  .hb-txt{min-width:100%;order:3}
  .modal{padding:14px}
  .modal-card{padding:18px 16px 14px;border-radius:15px}
  .modal-foot{flex-direction:column;align-items:flex-start}
}

/* 结果卡片：数据源说明 / 错误 / 提醒 */
.result-act{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.result-src{font-size:11.5px;color:#8d89a3}
.result-card.err{
  background:linear-gradient(180deg,rgba(255,107,129,.1),rgba(255,107,129,.04));
  border-color:rgba(255,107,129,.3);
}
.result-card.err b{color:#ffb4c0}
.result-card.warn{
  background:linear-gradient(180deg,rgba(255,193,94,.1),rgba(255,193,94,.04));
  border-color:rgba(255,193,94,.28);
  font-size:12.5px;color:#d9c49a;padding:14px 18px;
}
.result-card.err,.result-card.warn{padding:18px 20px;font-size:13px;line-height:1.7;color:#d6d2e6}
.result-card.err p,.result-card.warn p{margin:7px 0 0;font-size:12.5px;color:#a9a5bd}
.result-card.err p.sub{color:#8d89a3;font-size:11.8px}
.result-card.err code{
  font-size:11.5px;padding:1px 5px;border-radius:4px;
  background:rgba(124,92,255,.18);color:#c3b5ff;
}
.result-card.err .btn{margin-top:12px}

.src-row > .field-label{
  font-size:11.5px;color:#9d99b2;letter-spacing:.02em;flex:0 0 auto;
  text-transform:none;margin:0;
}

/* 线索来源标记：真实采集 / 演示数据必须在名单里一眼可分 */
.lead-sub .src-demo{
  font-style:normal;font-size:10px;padding:0 4px;border-radius:3px;
  color:#c9b48a;background:rgba(245,181,68,.14);border:1px solid rgba(245,181,68,.28);
}

/* =========================================================
   账号体系：登录页 / 顶栏用户区 / 成员管理
   ========================================================= */

/* ---------- 登录页 ---------- */
.auth-body{
  display:flex;align-items:center;justify-content:center;
  padding:40px 24px;min-height:100vh;
}
.auth-wrap{
  width:100%;max-width:1000px;
  display:grid;grid-template-columns:1.05fr .95fr;gap:0;
  border:1px solid var(--line);border-radius:22px;overflow:hidden;
  background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.02));
  box-shadow:var(--shadow);
}

/* 左：品牌叙述 */
.auth-side{
  padding:46px 44px 38px;
  display:flex;flex-direction:column;gap:22px;
  background:
    radial-gradient(520px 320px at 8% 0%,rgba(124,92,255,.28),transparent 62%),
    radial-gradient(420px 260px at 100% 100%,rgba(79,209,224,.12),transparent 60%),
    rgba(255,255,255,.015);
  border-right:1px solid var(--line);
}
.auth-brand{display:flex;align-items:center;gap:10px;font-size:15px;font-weight:700;letter-spacing:-.01em}
.auth-brand .brand-mark{
  width:32px;height:32px;border-radius:9px;display:grid;place-items:center;
  background:linear-gradient(135deg,#8a6bff,#5b3ce0);color:#fff;
  box-shadow:0 8px 22px -10px rgba(124,92,255,.9);
}
.auth-title{font-size:26px;line-height:1.35;letter-spacing:-.02em;margin:6px 0 0}
.auth-sub{font-size:13.5px;color:var(--muted);line-height:1.75;max-width:34em}
.auth-points{list-style:none;margin:2px 0 0;padding:0;display:flex;flex-direction:column;gap:13px}
.auth-points li{display:flex;gap:11px;font-size:12.8px;color:#c8c5d8;line-height:1.6;align-items:flex-start}
.auth-points span{
  flex:0 0 auto;font-size:10.5px;font-weight:700;letter-spacing:.06em;
  color:var(--purple-2);background:rgba(124,92,255,.14);
  border:1px solid rgba(124,92,255,.28);border-radius:6px;padding:2px 6px;margin-top:1px;
}
.auth-foot{
  margin-top:auto;font-size:11.5px;color:var(--muted-2);letter-spacing:.01em;
  padding-top:18px;border-top:1px solid var(--line);
}

/* 右：表单 */
.auth-card{
  padding:46px 44px 38px;display:flex;flex-direction:column;justify-content:center;
  background:rgba(7,6,14,.55);backdrop-filter:blur(8px);
}
.auth-card-head{margin-bottom:24px}
.auth-card-head h2{font-size:21px;letter-spacing:-.02em}
.auth-card-head p{font-size:12.5px;color:var(--muted);margin-top:6px}

/* 进入方式切换：默认「6 位进入码」，客户不用记账号名 */
.auth-tabs{
  display:flex;gap:4px;padding:4px;border-radius:11px;margin-bottom:20px;
  background:rgba(255,255,255,.035);border:1px solid var(--line);
}
.auth-tabs button{
  flex:1 1 0;height:34px;border-radius:8px;font-size:12.5px;font-weight:500;
  color:var(--muted);transition:.15s;border:none;background:none;cursor:pointer;
}
.auth-tabs button:hover{color:var(--text)}
.auth-tabs button.is-on{
  color:#fff;background:rgba(255,255,255,.085);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07);
}
.auth-field input.auth-pin{
  height:60px;font-size:26px;font-weight:650;letter-spacing:12px;
  text-align:center;text-indent:12px;font-variant-numeric:tabular-nums;
}
.auth-field input.auth-pin::placeholder{color:var(--muted-2);letter-spacing:12px}

.auth-field{display:block;margin-bottom:16px}
.auth-field > span{
  display:block;font-size:11.5px;color:#9d99b2;letter-spacing:.03em;margin-bottom:7px;
}
.auth-field input{
  width:100%;height:44px;padding:0 13px;border-radius:10px;
  background:rgba(255,255,255,.05);border:1px solid var(--line-2);
  color:var(--text);font-size:14px;font-family:inherit;outline:none;
  transition:.16s ease;
}
.auth-field input::placeholder{color:var(--muted-2)}
.auth-field input:focus{
  border-color:rgba(124,92,255,.75);background:rgba(124,92,255,.09);
  box-shadow:0 0 0 3px rgba(124,92,255,.14);
}
.auth-pwd{position:relative}
.auth-pwd input{padding-right:60px}
.auth-eye{
  position:absolute;right:6px;top:50%;transform:translateY(-50%);
  height:32px;padding:0 10px;border-radius:7px;font-size:12px;color:var(--muted);
}
.auth-eye:hover{color:var(--text);background:rgba(255,255,255,.06)}

.auth-err{
  font-size:12.5px;color:#ffb3c1;background:rgba(255,77,109,.1);
  border:1px solid rgba(255,77,109,.28);border-radius:9px;
  padding:9px 12px;margin:0 0 14px;line-height:1.55;
}
.auth-submit{width:100%;height:46px;font-size:14.5px;margin-top:4px}
.auth-submit:disabled{opacity:.65;cursor:default}
.auth-hint{font-size:11.5px;color:var(--muted-2);line-height:1.7;margin-top:20px}

@media (max-width:860px){
  .auth-wrap{grid-template-columns:1fr;max-width:460px}
  .auth-side{padding:30px 26px 26px;border-right:0;border-bottom:1px solid var(--line);gap:16px}
  .auth-title{font-size:21px}
  .auth-points{display:none}
  .auth-card{padding:28px 26px 30px}
  .auth-foot{padding-top:12px}
}

/* ---------- 顶栏用户区 ---------- */
.user-box{position:relative;display:flex;align-items:center}
.user-chip{
  display:flex;align-items:center;gap:8px;height:32px;padding:0 10px 0 4px;
  border-radius:999px;border:1px solid var(--line-2);
  background:rgba(255,255,255,.05);transition:.16s ease;max-width:170px;
}
.user-chip:hover{background:rgba(255,255,255,.09);border-color:rgba(124,92,255,.45)}
.user-av{
  width:24px;height:24px;border-radius:50%;flex:0 0 auto;display:grid;place-items:center;
  font-size:11.5px;font-weight:700;color:#fff;
  background:linear-gradient(135deg,#8a6bff,#5b3ce0);
}
.user-nm{
  font-size:12.5px;color:#ddd9ee;white-space:nowrap;overflow:hidden;
  text-overflow:ellipsis;max-width:100px;
}
.user-chip .dotw{
  width:6px;height:6px;border-radius:50%;background:var(--ok);flex:0 0 auto;
}

.user-pop{
  position:absolute;right:0;top:calc(100% + 8px);z-index:60;width:206px;
  background:#12101d;border:1px solid var(--line-2);border-radius:12px;
  box-shadow:0 24px 50px -20px rgba(0,0,0,.95);padding:6px;
}
.user-pop-head{padding:9px 11px 10px;border-bottom:1px solid var(--line);margin-bottom:5px}
.user-pop-head b{display:block;font-size:13px;color:var(--text)}
.user-pop-head span{display:block;font-size:11.5px;color:var(--muted);margin-top:2px}
.user-pop button{
  display:flex;align-items:center;gap:9px;width:100%;text-align:left;
  padding:9px 11px;border-radius:8px;font-size:12.8px;color:#cfcbdf;
}
.user-pop button:hover{background:rgba(255,255,255,.06);color:#fff}
.user-pop button.danger{color:#ff9aab}
.user-pop button.danger:hover{background:rgba(255,77,109,.12)}
.user-pop .sep{height:1px;background:var(--line);margin:5px 0}
.pop-tip{
  font-size:10.8px;color:#f5c26b;padding:6px 11px 4px;line-height:1.5;
}
.pop-quota{
  font-size:10.8px;color:#9d97b2;padding:6px 11px 4px;line-height:1.5;
  font-variant-numeric:tabular-nums;
}
.pop-quota b{color:#d8d2ef;font-weight:600}
.pop-quota.out b{color:#ff93a6}
.pop-quota.warn b{color:#f5c26b}

/* 初始密码提醒条 */
.pw-banner{
  display:flex;align-items:center;gap:10px;margin:0 0 16px;
  padding:10px 14px;border-radius:10px;font-size:12.5px;line-height:1.55;
  background:rgba(245,181,68,.1);border:1px solid rgba(245,181,68,.3);color:#f0d6a4;
}
.pw-banner b{color:#ffd98a}
.pw-banner button{
  margin-left:auto;flex:0 0 auto;font-size:12px;font-weight:600;
  color:#ffd98a;border:1px solid rgba(245,181,68,.4);border-radius:7px;padding:4px 10px;
}
.pw-banner button:hover{background:rgba(245,181,68,.16)}

/* ---------- 成员管理 ---------- */
.member-tools{display:flex;gap:10px;align-items:center;margin-bottom:14px}
.member-tools input{
  height:34px;padding:0 11px;border-radius:9px;min-width:0;
  background:rgba(255,255,255,.05);border:1px solid var(--line-2);
  color:var(--text);font-size:12.5px;font-family:inherit;outline:none;
}
.member-tools input:focus{border-color:rgba(124,92,255,.7)}
.member-tools input::placeholder{color:var(--muted-2)}

.member-list{max-height:min(56vh,440px);overflow:auto;border:1px solid var(--line);border-radius:11px}
.member-row{
  display:grid;grid-template-columns:1fr 88px 96px 132px;gap:10px;align-items:center;
  padding:11px 13px;border-bottom:1px solid var(--line);font-size:12.5px;
}
.member-row:last-child{border-bottom:0}
.member-row.head{
  font-size:11px;color:var(--muted-2);letter-spacing:.05em;text-transform:uppercase;
  background:rgba(255,255,255,.03);position:sticky;top:0;z-index:1;backdrop-filter:blur(6px);
}
.member-who b{display:block;color:#eae7f7;font-size:13px;font-weight:600}
.member-who span{display:block;color:var(--muted-2);font-size:11.2px;margin-top:1px}
.member-role{font-size:11.5px}
.member-role.admin{color:var(--purple-2)}
.member-role.member{color:var(--muted)}
.member-state{font-size:11.5px}
.member-state.on{color:var(--ok)}
.member-state.off{color:#ff8fa3}
.member-acts{display:flex;gap:6px;justify-content:flex-end;flex-wrap:wrap}
.member-acts button{
  font-size:11.3px;padding:3px 8px;border-radius:6px;color:#bdb9d0;
  border:1px solid var(--line-2);
}
.member-acts button:hover{color:#fff;background:rgba(255,255,255,.07)}
.member-acts button.warn{color:#f5c26b;border-color:rgba(245,181,68,.35)}
.member-acts button.warn:hover{background:rgba(245,181,68,.12)}
.member-acts button.danger{color:#ff9aab;border-color:rgba(255,77,109,.3)}
.member-acts button.danger:hover{background:rgba(255,77,109,.12)}
.member-empty{padding:26px;text-align:center;color:var(--muted-2);font-size:12.5px}

.loading-line{padding:22px;text-align:center;color:var(--muted-2);font-size:12.5px}

/* 成员管理弹窗比默认更宽 */
.modal-card.wide{width:min(760px,100%)}
.member-tools{flex-wrap:wrap}
.member-tools select{
  height:34px;padding:0 9px;border-radius:9px;
  background:rgba(255,255,255,.05);border:1px solid var(--line-2);
  color:var(--text);font-size:12.5px;font-family:inherit;outline:none;
}
.member-tools input#newUserName{flex:1 1 170px}
.member-tools input#newUserReal{flex:1 1 120px}

/* 改密码表单 */
.pwd-form{margin-top:16px}
.pwd-form .auth-field{margin-bottom:13px}
.pwd-foot-msg{font-size:12px;color:#ff9aab}
.pwd-foot-msg.ok{color:var(--ok)}

/* 成员弹窗底部：分发地址 */
.share-line{font-size:11px;color:#7d7992;line-height:1.6}
.share-line code{
  font-size:10.8px;padding:1px 5px;border-radius:4px;
  background:rgba(124,92,255,.18);color:#c3b5ff;
}
.share-line.copyable{cursor:pointer}
.share-line.copyable:hover{color:#b9b4d2}

/* 初始密码横幅：左右留白，别贴着屏幕边 */
.pw-banner{margin:12px 18px 0;border-radius:12px}

/* =========================================================
   AI 获客工坊（studio）
   形态：智能体列表 / 对话流 / 业务档案
   ========================================================= */
#view-studio{flex:1 0 auto}
.studio{
  position:relative;display:grid;grid-template-columns:242px 1fr;
  height:calc(100vh - 66px);min-height:560px;
  border-top:1px solid var(--line);
  overflow:hidden;
}

/* ---------- 左：智能体 ---------- */
.st-side{
  display:flex;flex-direction:column;min-height:0;
  background:rgba(255,255,255,.022);
  border-right:1px solid var(--line);
}
.st-side-head{padding:14px 12px 8px}
.st-new{
  width:100%;height:38px;border-radius:10px;display:flex;align-items:center;
  justify-content:center;gap:7px;font-size:13px;font-weight:600;
  border:1px solid var(--line-2);background:var(--card);color:var(--text);
  transition:.16s ease;
}
.st-new:hover{background:var(--card-2);border-color:rgba(167,139,250,.45);color:#fff}
.st-side-scroll{flex:1;min-height:0;overflow-y:auto;padding:6px 8px 14px}
.st-side-scroll::-webkit-scrollbar{width:6px}
.st-side-scroll::-webkit-scrollbar-thumb{background:rgba(255,255,255,.12);border-radius:3px}
.st-side-label{
  font-size:10px;letter-spacing:.14em;color:var(--muted-2);
  margin:14px 8px 7px;text-transform:uppercase;
}
.st-agent{
  width:100%;display:flex;align-items:center;gap:9px;padding:8px 9px;
  border-radius:10px;text-align:left;margin-bottom:2px;transition:.14s ease;
  border:1px solid transparent;
}
.st-agent:hover{background:rgba(255,255,255,.05)}
.st-agent.on{background:rgba(124,92,255,.16);border-color:rgba(167,139,250,.34)}
.st-agent-ico{
  width:29px;height:29px;flex:0 0 auto;border-radius:8px;display:grid;place-items:center;
  background:rgba(255,255,255,.055);color:#c7c2e4;border:1px solid var(--line);
}
.st-agent.on .st-agent-ico{background:linear-gradient(140deg,#8a6bff,#5b3ce0);color:#fff;border-color:transparent}
.st-agent-txt{display:flex;flex-direction:column;min-width:0}
.st-agent-txt b{font-size:12.8px;font-weight:600;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st-agent-txt i{font-style:normal;font-size:10.5px;color:var(--muted-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st-side-empty{font-size:11.5px;color:var(--muted-2);margin:2px 9px}
.st-th{
  display:flex;align-items:center;gap:7px;padding:6px 8px;border-radius:8px;
  cursor:pointer;position:relative;color:var(--muted);transition:.14s ease;
}
.st-th:hover{background:rgba(255,255,255,.05);color:var(--text)}
.st-th.on{background:rgba(255,255,255,.055);color:var(--text)}
.st-th-ico{flex:0 0 auto;opacity:.6;display:grid;place-items:center}
.st-th-ico svg{width:13px;height:13px}
.st-th-t{flex:1;min-width:0;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st-th-x{
  opacity:0;font-size:10px;color:var(--muted-2);padding:2px 4px;border-radius:5px;flex:0 0 auto;
}
.st-th:hover .st-th-x{opacity:1}
.st-th-x:hover{color:#ff8a9b;background:rgba(255,77,109,.14)}
.st-mode{
  display:flex;align-items:center;gap:7px;padding:10px 14px;border-top:1px solid var(--line);
  font-size:10.5px;color:var(--muted-2);flex-wrap:wrap;
}
.st-mode i{font-style:normal;display:block;width:100%;padding-left:13px;font-size:10px;color:var(--muted-2);opacity:.75}
.st-dot{width:6px;height:6px;border-radius:50%;flex:0 0 auto}
.st-dot.on{background:var(--ok);box-shadow:0 0 0 3px rgba(55,214,122,.16)}
.st-dot.off{background:var(--B);box-shadow:0 0 0 3px rgba(245,165,36,.14)}

/* ---------- 中：对话 ---------- */
.st-main{display:flex;flex-direction:column;min-width:0;min-height:0}
.st-top{
  height:56px;flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;
  gap:12px;padding:0 20px;border-bottom:1px solid var(--line);
  background:rgba(7,6,14,.4);backdrop-filter:blur(10px);
}
.st-top-l{display:flex;align-items:center;gap:10px;min-width:0}
.st-top-ico{
  width:30px;height:30px;border-radius:9px;display:grid;place-items:center;flex:0 0 auto;
  background:linear-gradient(140deg,rgba(138,107,255,.9),rgba(91,60,224,.9));color:#fff;
}
.st-top-txt{display:flex;flex-direction:column;min-width:0}
.st-top-txt b{font-size:13.5px;line-height:1.3}
.st-top-txt span{font-size:10.5px;color:var(--muted-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st-top-r{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.st-icon-btn{
  height:30px;padding:0 9px;border-radius:8px;display:inline-flex;align-items:center;gap:5px;
  font-size:11.5px;color:var(--muted);border:1px solid transparent;transition:.15s ease;
}
.st-icon-btn:hover{background:rgba(255,255,255,.06);color:var(--text);border-color:var(--line)}
.st-icon-btn.only-mobile{display:none}
.st-budget{
  position:relative;font-size:10.5px;color:var(--muted);padding:3px 9px 6px;border-radius:7px;
  border:1px solid var(--line);overflow:hidden;white-space:nowrap;
}
.st-budget i{position:absolute;left:0;bottom:0;height:2px;background:var(--purple-2);display:block}
.st-budget.warn{color:#f5c76a;border-color:rgba(245,165,36,.4)}
.st-budget.warn i{background:var(--B)}
.st-budget.blocked{color:#ff8a9b;border-color:rgba(255,77,109,.4)}
.st-budget.blocked i{background:var(--A)}

.st-scroll{flex:1;min-height:0;overflow-y:auto;padding:26px 0 8px;scroll-behavior:smooth}
.st-scroll::-webkit-scrollbar{width:8px}
.st-scroll::-webkit-scrollbar-thumb{background:rgba(255,255,255,.1);border-radius:4px}

/* 欢迎页 */
.st-welcome{max-width:760px;margin:0 auto;padding:6px 24px 20px;animation:fadeUp .35s ease}
.st-wl-badge{
  display:inline-block;font-size:10.5px;letter-spacing:.1em;color:#cfc7ff;
  padding:4px 10px;border-radius:999px;border:1px solid rgba(167,139,250,.35);
  background:rgba(124,92,255,.12);margin-bottom:16px;
}
.st-welcome h2{font-size:29px;letter-spacing:-.02em;margin-bottom:10px}
.st-wl-sub{font-size:13px;color:var(--muted);max-width:640px;line-height:1.75}
.st-wl-sub b{color:#d8d3f0;font-weight:600}
.st-flow{
  display:grid;grid-template-columns:1fr auto 1fr auto 1fr;align-items:center;gap:8px;
  margin:24px 0 20px;
}
.st-flow-i{
  border:1px solid var(--line);border-radius:12px;padding:13px 13px 12px;
  background:linear-gradient(160deg,rgba(255,255,255,.05),rgba(255,255,255,.015));
}
.st-flow-n{font-size:10px;color:var(--purple-2);letter-spacing:.1em;display:block;margin-bottom:6px}
.st-flow-i b{font-size:13px;display:block;margin-bottom:3px}
.st-flow-i p{font-size:11.5px;color:var(--muted)}
.st-flow-i em{font-style:normal;font-size:10.5px;color:var(--muted-2);display:block;margin-top:6px;padding-top:6px;border-top:1px dashed var(--line)}
.st-flow-ar{color:var(--muted-2);font-size:13px}
.st-wl-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}
.st-wl-card{
  text-align:left;padding:12px 13px;border-radius:11px;border:1px solid var(--line);
  background:var(--card);transition:.16s ease;
}
.st-wl-card:hover{background:var(--card-2);border-color:rgba(167,139,250,.42);transform:translateY(-1px)}
.st-wl-card b{display:block;font-size:12.5px;margin-bottom:3px}
.st-wl-card span{font-size:11px;color:var(--muted-2);line-height:1.5}

/* 消息 */
.st-msgs{max-width:760px;margin:0 auto;padding:0 24px}
.st-msg{display:flex;gap:11px;margin-bottom:22px;animation:fadeUp .25s ease}
.st-msg.me{justify-content:flex-end}
.st-av{
  width:28px;height:28px;flex:0 0 auto;border-radius:8px;display:grid;place-items:center;
  background:linear-gradient(140deg,rgba(138,107,255,.85),rgba(91,60,224,.85));color:#fff;margin-top:2px;
}
.st-body{min-width:0;max-width:calc(100% - 40px)}
.st-msg.me .st-body{max-width:78%}
.st-content{font-size:13.4px;line-height:1.82;color:#e8e6f2;word-break:break-word}
.st-msg.me .st-content{
  background:rgba(124,92,255,.16);border:1px solid rgba(167,139,250,.28);
  padding:9px 13px;border-radius:12px 12px 4px 12px;
}
.st-content p{margin:0 0 9px}
.st-content p:last-child{margin-bottom:0}
.st-content h2,.st-content h3,.st-content h4{
  font-size:14px;margin:18px 0 8px;color:#fff;letter-spacing:0;
  padding-left:9px;border-left:2px solid var(--purple);
}
.st-content h2:first-child,.st-content h3:first-child{margin-top:0}
.st-content ul,.st-content ol{margin:0 0 10px;padding-left:20px}
.st-content li{margin-bottom:5px}
.st-content blockquote{
  margin:0 0 10px;padding:2px 0 2px 12px;border-left:2px solid rgba(167,139,250,.45);
  background:none;border-radius:0;color:#ded9f2;font-size:13px;
}
.st-content blockquote p{margin:0 0 4px}
.st-content code{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;
  background:rgba(255,255,255,.08);padding:1px 5px;border-radius:4px;color:#cfc7ff;
}
.st-content hr{border:0;border-top:1px solid var(--line);margin:16px 0}
.st-content b{color:#fff;font-weight:600}
.st-tw{overflow-x:auto;margin:0 0 12px}
.st-table{border-collapse:collapse;width:100%;font-size:12px}
.st-table th,.st-table td{
  border:1px solid var(--line);padding:6px 9px;text-align:left;vertical-align:top;
}
.st-table th{background:rgba(255,255,255,.05);color:#cfc9e8;font-weight:600;white-space:nowrap}
.st-meta{display:flex;align-items:center;gap:10px;margin-top:7px;font-size:10.5px;color:var(--muted-2)}
.st-copy{
  font-size:10.5px;color:var(--muted-2);padding:2px 7px;border-radius:5px;
  border:1px solid var(--line);transition:.14s ease;
}
.st-copy:hover{color:#fff;border-color:rgba(167,139,250,.5);background:rgba(124,92,255,.14)}
.st-typing .st-content{display:flex;align-items:center;gap:4px;color:var(--muted-2);font-size:12px}
.st-typing .st-content em{font-style:normal;margin-left:6px}
.st-typing span{width:5px;height:5px;border-radius:50%;background:var(--purple-2);animation:stBlink 1.1s infinite}
.st-typing .dot2{animation-delay:.18s}
.st-typing .dot3{animation-delay:.36s}
@keyframes stBlink{0%,80%,100%{opacity:.25;transform:translateY(0)}40%{opacity:1;transform:translateY(-2px)}}

/* 输入区 */
.st-compose{flex:0 0 auto;padding:0 24px 16px;max-width:808px;margin:0 auto;width:100%}
.st-attach{
  display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:7px;
  padding:7px 9px;border-radius:9px;background:rgba(124,92,255,.08);
  border:1px solid rgba(167,139,250,.22);
}
.st-attach-l{font-size:10px;color:var(--purple-2);letter-spacing:.08em}
.st-attach-i{
  display:inline-flex;align-items:center;gap:5px;font-size:11px;color:#d5d0ea;
  background:rgba(255,255,255,.06);border-radius:6px;padding:2px 4px 2px 7px;
}
.st-attach-i button{font-size:9px;color:var(--muted-2);padding:1px 3px;border-radius:4px}
.st-attach-i button:hover{color:#ff8a9b}
.st-input-wrap{
  border:1px solid var(--line-2);border-radius:14px;background:rgba(255,255,255,.045);
  padding:10px 10px 6px;transition:.18s ease;
}
.st-input-wrap:focus-within{border-color:rgba(167,139,250,.5);background:rgba(255,255,255,.06);box-shadow:0 0 0 3px rgba(124,92,255,.1)}
#stInput{
  width:100%;min-height:24px;max-height:180px;resize:none;border:0;outline:0;background:none;
  color:var(--text);font-family:inherit;font-size:13.4px;line-height:1.65;padding:2px 4px;
}
#stInput::placeholder{color:var(--muted-2)}
.st-input-bar{display:flex;align-items:center;gap:8px;padding-top:2px}
.st-mini{
  display:inline-flex;align-items:center;gap:5px;font-size:11px;color:var(--muted);
  padding:4px 8px;border-radius:7px;transition:.14s ease;
}
.st-mini:hover{background:rgba(255,255,255,.06);color:var(--text)}
.st-hint{flex:1;text-align:right;font-size:10px;color:var(--muted-2)}
.st-send{
  width:30px;height:30px;border-radius:9px;display:grid;place-items:center;flex:0 0 auto;
  background:linear-gradient(140deg,#8a6bff,#5b3ce0);color:#fff;transition:.16s ease;
}
.st-send:disabled{opacity:.32;cursor:not-allowed}
.st-send:not(:disabled):hover{transform:translateY(-1px);box-shadow:0 8px 18px -8px rgba(124,92,255,.9)}
.st-chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px;min-height:0}
.st-chip{
  font-size:11px;color:var(--muted);padding:4px 10px;border-radius:999px;
  border:1px solid var(--line);transition:.14s ease;white-space:nowrap;
}
.st-chip:hover{color:#fff;border-color:rgba(167,139,250,.5);background:rgba(124,92,255,.12)}

/* ---------- 右：业务档案 ---------- */
.st-brief{
  position:absolute;top:0;right:0;bottom:0;width:328px;z-index:30;
  display:flex;flex-direction:column;
  background:rgba(10,8,20,.96);backdrop-filter:blur(18px);
  border-left:1px solid var(--line-2);box-shadow:-24px 0 50px -30px rgba(0,0,0,.9);
  transform:translateX(102%);transition:transform .26s cubic-bezier(.4,0,.2,1);
}
.st-brief.on{transform:none}
.st-brief-head{
  display:flex;align-items:flex-start;justify-content:space-between;gap:10px;
  padding:16px 16px 12px;border-bottom:1px solid var(--line);
}
.st-brief-head b{font-size:13.5px}
.st-brief-head p{font-size:11px;color:var(--muted-2);margin-top:3px}
.st-brief-body{flex:1;min-height:0;overflow-y:auto;padding:14px 16px 18px}
.st-brief-body::-webkit-scrollbar{width:6px}
.st-brief-body::-webkit-scrollbar-thumb{background:rgba(255,255,255,.12);border-radius:3px}
.st-f{display:block;margin-bottom:11px}
.st-f span{display:block;font-size:11px;color:var(--muted);margin-bottom:4px}
.st-f input,.st-f textarea{
  width:100%;border:1px solid var(--line);border-radius:8px;background:rgba(255,255,255,.04);
  color:var(--text);font-family:inherit;font-size:12.5px;padding:7px 9px;outline:0;
  transition:.15s ease;resize:vertical;
}
.st-f input:focus,.st-f textarea:focus{border-color:rgba(167,139,250,.5);background:rgba(255,255,255,.06)}
.st-f input::placeholder,.st-f textarea::placeholder{color:var(--muted-2)}
.st-brief-foot{display:flex;align-items:center;gap:9px;padding-top:6px}
.st-brief-msg{font-size:10.5px;color:var(--ok)}

/* 素材选择弹窗 */
.st-pick{max-height:52vh;overflow-y:auto;padding:4px 2px}
.st-pick-i{
  display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:9px;
  cursor:pointer;border:1px solid transparent;transition:.14s ease;
}
.st-pick-i:hover{background:rgba(255,255,255,.05);border-color:var(--line)}
.st-pick-i input{accent-color:#8a6bff;width:14px;height:14px;flex:0 0 auto}
.st-pick-c{display:flex;flex-direction:column;min-width:0;flex:1}
.st-pick-c b{font-size:11px;color:var(--purple-2);font-weight:600}
.st-pick-c i{font-style:normal;font-size:12px;color:var(--text);line-height:1.5;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.st-pick-s{font-size:12px;font-weight:700;color:#fff;flex:0 0 auto}
.st-empty{font-size:12px;color:var(--muted-2);padding:16px 6px;text-align:center}

/* 轻提示 */
.st-toast{
  position:fixed;left:50%;bottom:34px;transform:translate(-50%,12px);z-index:200;
  padding:9px 16px;border-radius:10px;font-size:12.5px;color:#fff;
  background:rgba(30,26,48,.96);border:1px solid rgba(167,139,250,.4);
  box-shadow:0 18px 40px -20px rgba(0,0,0,.9);opacity:0;pointer-events:none;transition:.22s ease;
}
.st-toast.on{opacity:1;transform:translate(-50%,0)}
.st-side-mask{display:none}

/* ---------- 响应式 ---------- */
@media (max-width:900px){
  .studio{grid-template-columns:1fr;height:calc(100vh - 66px)}
  .st-side{
    position:absolute;top:0;left:0;bottom:0;width:250px;z-index:40;
    background:rgba(10,8,20,.98);backdrop-filter:blur(18px);
    transform:translateX(-102%);transition:transform .24s ease;
    box-shadow:24px 0 50px -30px rgba(0,0,0,.9);
  }
  .st-side.on{transform:none}
  .st-side-mask{display:block;position:absolute;inset:0;z-index:35;background:rgba(0,0,0,.5)}
  .st-icon-btn.only-mobile{display:inline-flex}
  .st-welcome h2{font-size:23px}
  .st-flow{grid-template-columns:1fr;gap:7px}
  .st-flow-ar{display:none}
  .st-wl-actions{grid-template-columns:1fr}
  .st-msgs,.st-welcome{padding-left:14px;padding-right:14px}
  .st-compose{padding:0 12px 12px}
  .st-brief{width:min(328px,88vw)}
  .st-hint{display:none}
  .st-msg.me .st-body{max-width:88%}
}

/* 工坊：进页面时隐藏页脚，把高度让给对话区 */
body.studio-mode .foot{display:none}
/* 桌面端：业务档案展开时主区让位，不遮挡内容 */
@media (min-width:901px){
  .st-main{transition:margin-right .26s cubic-bezier(.4,0,.2,1)}
  .studio.brief-open .st-main{margin-right:328px}
}
