/* AI 工作现场 —— 客户级大屏 */
:root{
  --bg:#060a12;
  --bg2:#0b1220;
  --line:rgba(148,163,184,.14);
  --text:#e8eef8;
  --muted:#8b9bb4;
  --cyan:#22d3ee;
  --blue:#38bdf8;
  --green:#34d399;
  --amber:#fbbf24;
  --red:#f87171;
}
*{box-sizing:border-box;margin:0;padding:0}
html{background:#060a12}
html,body{height:100%}
body{
  font-family:"PingFang SC","Microsoft YaHei","Segoe UI",system-ui,-apple-system,sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(34,211,238,.16), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(56,189,248,.12), transparent 55%),
    radial-gradient(800px 600px at 50% 120%, rgba(52,211,153,.08), transparent 60%),
    linear-gradient(180deg, #060a12 0%, #080e1a 55%, #05080f 100%);
  min-height:100vh;
  overflow-x:hidden;
  background-color:#060a12;
}
/* 网格层已移除：低版本浏览器 mask 失效会导致整屏发灰 */
.screen{position:relative;z-index:1;max-width:1680px;margin:0 auto;padding:22px 32px 26px;display:flex;flex-direction:column;min-height:100vh}

/* ---------- 顶栏 ---------- */
.topbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:26px}
.brand{display:flex;align-items:center;gap:12px}
.live-dot{
  width:11px;height:11px;border-radius:50%;background:var(--green);
  box-shadow:0 0 0 0 rgba(52,211,153,.7);animation:pulse 1.8s infinite;
}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(52,211,153,.65)}70%{box-shadow:0 0 0 12px rgba(52,211,153,0)}100%{box-shadow:0 0 0 0 rgba(52,211,153,0)}}
.brand-text{font-size:15px;letter-spacing:.22em;font-weight:600;color:#cbd5e1}
.meta{display:flex;align-items:center;gap:16px}
.inst-chip{
  font-size:13px;padding:6px 14px;border-radius:999px;
  border:1px solid rgba(34,211,238,.35);color:#7dd3fc;background:rgba(34,211,238,.08);
  letter-spacing:.06em;
}
.clock{font-variant-numeric:tabular-nums;color:#9aa8bd;font-size:14px;letter-spacing:.08em}

/* ---------- 主视觉 ---------- */
.hero{
  position:relative;border-radius:22px;padding:34px 38px 30px;margin-bottom:22px;
  background:rgba(13,21,34,.78);
  border:1px solid rgba(120,200,255,.15);
  box-shadow:0 24px 60px -30px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.05);
  overflow:hidden;
}
.hero::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(600px 200px at 12% 0%, rgba(34,211,238,.14), transparent 70%);
}
.hero-label{font-size:12.5px;letter-spacing:.3em;color:var(--muted);text-transform:uppercase;margin-bottom:12px}
.hero-task{
  font-size:clamp(20px,2.1vw,30px);font-weight:700;line-height:1.35;letter-spacing:.01em;
  color:#f1f5f9;margin-bottom:22px;max-width:58ch;
}
.hero-action{
  font-size:clamp(30px,3.9vw,54px);font-weight:800;line-height:1.18;letter-spacing:.01em;
  background:linear-gradient(92deg,#67e8f9 0%,#38bdf8 45%,#a5b4fc 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
  display:flex;align-items:center;gap:16px;min-height:1.3em;
}
.hero-action .caret{
  display:inline-block;width:5px;height:.86em;border-radius:3px;
  background:linear-gradient(180deg,#22d3ee,#38bdf8);
  animation:blink 1.1s steps(2,start) infinite;
}
@keyframes blink{50%{opacity:.15}}
.hero-meter{height:6px;border-radius:999px;background:rgba(148,163,184,.14);margin:26px 0 12px;display:flex;gap:4px;overflow:hidden;padding:0}
.meter-seg{flex:1;border-radius:2px;background:rgba(148,163,184,.18)}
.meter-seg.done{background:linear-gradient(90deg,#34d399,#22d3ee)}
.meter-seg.active{background:linear-gradient(90deg,#22d3ee,#38bdf8);animation:segPulse 1.6s ease-in-out infinite}
@keyframes segPulse{0%,100%{opacity:.55}50%{opacity:1}}
.meter-fill{
  height:100%;width:38%;border-radius:999px;
  background:linear-gradient(90deg,rgba(34,211,238,.15),#22d3ee 35%,#38bdf8 65%,rgba(56,189,248,.15));
  box-shadow:0 0 18px rgba(56,189,248,.45);
  animation:flow 2.6s ease-in-out infinite;
}
@keyframes flow{0%{transform:translateX(-40%)}50%{transform:translateX(170%)}100%{transform:translateX(-40%)}}
.hero.paused .meter-fill{animation:none;opacity:.25}
.hero-sub{font-size:13.5px;color:var(--muted);letter-spacing:.02em;min-height:18px}

/* ---------- 两栏 ---------- */
.grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);gap:22px;flex:1;min-height:0}
.panel{
  border-radius:20px;padding:22px 24px 20px;
  background:rgba(13,21,34,.72);
  border:1px solid rgba(120,200,255,.13);
  box-shadow:0 18px 46px -28px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.04);
  display:flex;flex-direction:column;min-height:0;
  overflow:hidden;
}
.panel-title{display:flex;align-items:center;gap:10px;font-size:13px;letter-spacing:.2em;color:#b6c2d4;margin-bottom:18px;font-weight:600}
.panel-title.small{font-size:12px;margin:16px 0 10px;opacity:.85}
.dots{display:inline-flex;gap:4px}
.dots i{width:5px;height:5px;border-radius:50%;background:rgba(56,189,248,.7)}

/* ---------- 时间轴 ---------- */
.timeline{position:relative;overflow-y:auto;padding-right:6px;flex:1}
.timeline::-webkit-scrollbar{width:6px}
.timeline::-webkit-scrollbar-thumb{background:rgba(148,163,184,.25);border-radius:3px}
.tl-item{position:relative;padding:0 0 22px 34px;animation:slideIn .45s ease both}
@keyframes slideIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.tl-item::before{
  content:"";position:absolute;left:9px;top:16px;bottom:-2px;width:1px;
  background:linear-gradient(180deg, rgba(56,189,248,.5), rgba(148,163,184,.12));
}
.tl-item:last-child::before{display:none}
.tl-dot{
  position:absolute;left:0;top:4px;width:19px;height:19px;border-radius:50%;
  border:1px solid rgba(148,163,184,.35);background:#0b1220;display:flex;align-items:center;justify-content:center;
  font-size:11px;color:#b6c2d4;
}
.tl-item.done .tl-dot{background:rgba(52,211,153,.16);border-color:rgba(52,211,153,.65);color:#6ee7b7}
.tl-item.active .tl-dot{
  background:rgba(56,189,248,.18);border-color:var(--blue);color:#7dd3fc;
  animation:ring 1.6s infinite;
}
@keyframes ring{0%{box-shadow:0 0 0 0 rgba(56,189,248,.55)}70%{box-shadow:0 0 0 10px rgba(56,189,248,0)}100%{box-shadow:0 0 0 0 rgba(56,189,248,0)}}
.tl-label{font-size:clamp(15px,1.15vw,18px);font-weight:600;color:#dbeafe;line-height:1.4}
.tl-item.done .tl-label{color:#9fb3c8;font-weight:500}
.tl-time{font-size:11.5px;color:#b6c2d4;margin-top:5px;font-variant-numeric:tabular-nums;letter-spacing:.06em}
.tl-ev{margin-top:8px;display:flex;flex-wrap:wrap;gap:7px}
.tl-ev span{
  font-size:11.5px;padding:3px 9px;border-radius:6px;
  background:rgba(34,211,238,.09);border:1px solid rgba(34,211,238,.22);color:#67e8f9;
}

/* ---------- 侧栏 ---------- */
.evidence-list{list-style:none;display:flex;flex-direction:column;gap:10px;overflow-y:auto;max-height:38vh}
.evidence-list li{
  font-size:13.5px;line-height:1.5;color:#cbd5e1;padding:10px 12px;border-radius:10px;
  background:rgba(148,163,184,.07);border-left:2px solid rgba(56,189,248,.55);
  animation:slideIn .4s ease both;
}
.evidence-list .empty-line{color:#9dabbd;background:none;border:none;font-size:12.5px}
.side-divider{height:1px;background:var(--line);margin:14px 0 0}
.other-list{display:flex;flex-direction:column;gap:8px;overflow-y:auto}
.other-item{font-size:12.5px;color:#8b9bb4;display:flex;justify-content:space-between;gap:10px;padding:6px 0;border-bottom:1px dashed rgba(148,163,184,.1)}
.other-item b{color:#cbd5e1;font-weight:500}
.other-item .cnt{color:#b6c2d4}

/* ---------- 状态栏 ---------- */
.statusbar{
  display:flex;align-items:center;gap:22px;margin-top:18px;font-size:12.5px;color:#b6c2d4;
  border-top:1px solid rgba(148,163,184,.1);padding-top:14px;
}
.conn{display:flex;align-items:center;gap:8px}
.conn i{width:7px;height:7px;border-radius:50%;background:#f87171;display:inline-block}
.conn.on i{background:var(--green);box-shadow:0 0 8px rgba(52,211,153,.8)}
.switch-hint b{color:#7dd3fc;font-weight:600}
.timeline .empty,.evidence-list .empty-line{color:#9dabbd;font-size:13px;padding:6px 0}

/* 思考中（无事件时） */
.thinking .hero-action{opacity:.8}
.thinking .caret{animation-duration:.9s}

@media (max-width:1100px){
  .grid{grid-template-columns:1fr}
  .screen{padding:16px}
  .hero{padding:24px}
}


/* ---------- 精修：顶栏分隔与品牌 ---------- */
.topbar{padding-bottom:16px;border-bottom:1px solid rgba(148,163,184,.10);margin-bottom:24px}
.brand-text small{display:block;font-size:10.5px;letter-spacing:.32em;color:#5f7a9b;opacity:.7;margin-top:3px}

/* 阶段计数与"第 N 步" */
.step-chip{
  font-size:12.5px;color:#7dd3fc;border:1px solid rgba(56,189,248,.28);
  background:rgba(56,189,248,.09);border-radius:999px;padding:3px 10px;letter-spacing:.04em;
}
.hero-line{display:flex;align-items:center;gap:14px;margin-bottom:10px}
.hero-line .hero-label{margin-bottom:0}

/* 证据项元信息 */
.evidence-list li .ev-meta{display:block;margin-top:6px;font-size:11.5px;color:#9dabbd;letter-spacing:.04em}
.panel-title .count{margin-left:auto;font-size:12px;color:#9dabbd;letter-spacing:0}

/* 未开始/思考中占位 */
.tl-item.pending{opacity:.45}
.tl-item.pending .tl-dot{background:#0b1220;border-style:dashed}

/* 底部状态更克制 */
.statusbar{font-size:12px;color:#9dabbd}
.statusbar .stats{color:#9dabbd}


/* 证据结构化 */
.evidence-list li .ev-row{display:flex;gap:8px;line-height:1.55}
.evidence-list li .ev-k{color:#9dabbd;flex:0 0 auto;min-width:4.2em}
.evidence-list li .ev-v{color:#dbe7f5;font-weight:500;word-break:break-all}
.evidence-list li .ev-v.num{font-variant-numeric:tabular-nums}


/* ---------- 角色头像 ---------- */
.who{display:flex;align-items:center;gap:11px}
.avatar{
  width:40px;height:40px;border-radius:14px;display:flex;align-items:center;justify-content:center;
  font-size:20px;line-height:1;background:rgba(148,163,184,.12);
  transition:box-shadow .3s, background .3s;
}
.who-text{display:flex;flex-direction:column;line-height:1.25}
.who-text b{font-size:15.5px;color:#e8eef8;font-weight:700;letter-spacing:.02em}
.who-text i{font-size:11.5px;color:#93a1b4;font-style:normal;letter-spacing:.1em}
/* ---------- 本次工作信息块（右侧补白，全部真实字段） ---------- */
.job-meta{display:flex;flex-direction:column;gap:2px}
.jm-row{display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-size:12.5px;color:#8b9bb4;padding:7px 0;border-bottom:1px dashed rgba(148,163,184,.1)}
.jm-row:last-child{border-bottom:none}
.jm-row b{color:#dbe3ee;font-weight:500;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
