/* ============================================================
   顾问工作台 · 双端响应式样式（style.css）
   设计基调：克制、精准的商务简约（refined minimalism）
   主色：深靛蓝/墨蓝 + 琥珀警示  ·  双端：PC 侧边栏 / H5 底栏+抽屉
   ============================================================ */

/* ---------- 设计变量（2026-09-02 全局统一改版：现代简洁商务风） ---------- */
:root{
  --bg: #f5f7fa;
  --bg-deep: #0f2740;
  --bg-card: #ffffff;
  --ink: #17233b;
  --ink-2: #46536a;
  --ink-3: #7a8698;
  --line: #e8ecf3;
  --line-strong: #d9e0ea;
  --accent: #1f4e8c;          /* 深靛蓝（品牌主色） */
  --accent-2: #2f6bb8;
  --accent-muted: #eaf1fa;
  --amber: #d97706;           /* 琥珀警示 */
  --amber-muted: #fef3c7;
  --danger: #dc2626;
  --danger-muted: #fee2e2;
  --module-1: #16a34a;
  --module-3: #d97706;
  --module-5: #7c3aed;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --shadow: 0 1px 2px rgba(15,39,64,.04), 0 4px 16px rgba(15,39,64,.05);
  --shadow-lg: 0 14px 40px rgba(10,25,50,.16);
  --sidebar-w: 252px;
  --topbar-h: 56px;
  --nav-h: 60px;
  /* 「通话」圆钮突出底栏顶部的高度（.n-call 的 top 偏移）；
     对话页/会话抽屉的底部占位统一按 nav-h + 本变量计算，避免内容被圆钮遮挡 */
  --nav-call-pop: 22px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

*{ box-sizing:border-box; margin:0; padding:0; }
html,body{ height:100%; }
body{
  font-family:var(--font);
  background:var(--bg);
  color:var(--ink);
  -webkit-font-smoothing:antialiased;
  font-size:15px;
  line-height:1.5;
}
button{ font-family:inherit; cursor:pointer; border:none; background:none; color:inherit; }
input,select,textarea{ font-family:inherit; font-size:15px; color:var(--ink); }
.hidden{ display:none !important; }
a{ color:var(--accent); text-decoration:none; }

/* ---- 通用容器 ---- */
.card{
  background:var(--bg-card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:16px;
}
.list-empty{
  text-align:center; color:var(--ink-3); font-size:13px;
  padding:38px 16px; line-height:1.9;
}
.list-empty .e{ display:flex; justify-content:center; margin-bottom:10px; color:var(--ink-3); opacity:.55; }
.list-empty .empty-sub{ font-size:12.5px; color:var(--ink-3); }
.list-empty .empty-act{ margin-top:12px; display:inline-flex; }
.loading{ text-align:center; color:var(--ink-3); font-size:13px; padding:30px; display:flex; align-items:center; justify-content:center; gap:8px; }
.spin{
  width:16px; height:16px; border-radius:50%;
  border:2px solid var(--line); border-top-color:var(--accent);
  animation:spin .8s linear infinite; display:inline-block;
}
@keyframes spin{ to{ transform:rotate(360deg); } }
.sec-title{
  font-size:13px; font-weight:600; color:var(--ink-3);
  letter-spacing:.5px; margin:18px 0 10px;
}
.serif{ font-family:var(--serif); }

/* 阶段徽标 */
.st-badge{ display:inline-flex; align-items:center; gap:4px; font-size:11px; font-weight:600; padding:2px 8px; border-radius:20px; white-space:nowrap; }
.m-tag{ display:inline-flex; align-items:center; gap:4px; font-size:11px; font-weight:500; color:var(--ink-2); background:var(--bg); padding:2px 9px; border-radius:999px; white-space:nowrap; line-height:1.5; }
.m-tag.danger{ color:var(--danger); background:var(--danger-muted); }
.m-tag.accent{ color:var(--accent); background:var(--accent-muted); }

/* 进度条 */
.progress-track{ height:6px; border-radius:6px; background:#eef1f6; overflow:hidden; }
.progress-fill{ height:100%; border-radius:6px; background:linear-gradient(90deg,var(--accent),var(--accent-2)); transition:width .4s ease; }

/* 按钮 */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  padding:9px 16px; border-radius:var(--radius-sm); font-weight:600; font-size:14px;
  background:var(--accent); color:#fff; transition:filter .15s, background .15s, box-shadow .15s, border-color .15s;
  box-shadow:0 1px 2px rgba(31,78,140,.14);
}
.btn:hover{ filter:brightness(1.06); }
.btn:focus-visible{ outline:2px solid var(--accent-2); outline-offset:2px; }
.btn:disabled{ opacity:.6; cursor:not-allowed; box-shadow:none; }
.btn.primary{ background:var(--accent); color:#fff; }
.btn.ghost{ background:#fff; color:var(--ink); border:1px solid var(--line); box-shadow:none; }
.btn.ghost:hover{ border-color:var(--accent); color:var(--accent); }
.btn.danger{ background:var(--danger); color:#fff; box-shadow:0 1px 2px rgba(220,38,38,.16); }
.btn.danger-ghost{ background:#fff; color:var(--danger); border:1px solid var(--danger-muted); box-shadow:none; }
.btn.ghost.danger-ghost:hover{ border-color:var(--danger); }
.btn.sm{ padding:6px 12px; font-size:12.5px; border-radius:7px; }

/* 通用列表项 */
.list-item{ background:var(--bg-card); border:1px solid var(--line); border-radius:var(--radius-sm); padding:13px 14px; margin-bottom:10px; box-shadow:var(--shadow); cursor:pointer; transition:border-color .15s; }
.list-item:hover{ border-color:var(--accent); }
.list-item .li-t{ font-weight:600; font-size:15px; margin-bottom:4px; }
.list-item .li-m{ display:flex; flex-wrap:wrap; gap:6px; }
.load-more{ width:100%; padding:10px; border:1px dashed var(--line); border-radius:var(--radius-sm); color:var(--accent); font-weight:600; font-size:13px; margin-top:4px; }
.load-more:hover{ border-color:var(--accent); }

/* 选择器与搜索 */
.selector{ display:flex; align-items:center; gap:8px; margin-bottom:10px; }
.selector label{ font-size:12px; color:var(--ink-3); }
.selector select{ flex:1; }
.search-row{ display:flex; align-items:center; gap:8px; background:#fff; border:1px solid var(--line); border-radius:var(--radius-sm); padding:9px 12px; margin-bottom:12px; }
.search-row .s-ic{ color:var(--ink-3); display:flex; }
.search-row input{ flex:1; border:none; outline:none; background:transparent; font-size:14px; }
select, input[type="text"], input[type="tel"], input[type="password"], input[type="date"], input[type="number"], textarea{
  border:1px solid var(--line); border-radius:var(--radius-sm); padding:9px 11px; outline:none; background:#fff; width:100%; box-sizing:border-box;
  transition:border-color .15s, box-shadow .15s;
}
/* type-less 表单输入（无 type 属性不命中上面全局规则）：仅作用于 .field 内，避免给搜索框等 flex 项加边框 */
.field input:not([type]){ border:1px solid var(--line); border-radius:var(--radius-sm); padding:9px 11px; outline:none; background:#fff; width:100%; box-sizing:border-box; transition:border-color .15s, box-shadow .15s; }
select:focus, input:focus, textarea:focus{ border-color:var(--accent-2); box-shadow:0 0 0 3px rgba(47,107,184,.12); }
textarea{ min-height:64px; resize:vertical; }

/* 信息行 */
.info-row{ display:flex; justify-content:space-between; gap:12px; padding:9px 0; border-bottom:1px solid #f1f4f9; }
.info-row:last-child{ border-bottom:none; }
.info-row .k{ color:var(--ink-3); font-size:13px; flex:none; }
.info-row .v{ font-weight:600; font-size:13px; text-align:right; word-break:break-all; }

/* 状态点 */
.status-dot{ display:inline-block; width:8px; height:8px; border-radius:50%; }
.status-dot.online{ background:var(--module-1); }
.status-dot.offline{ background:var(--ink-3); }
.status-dot.frozen{ background:var(--danger); }
.badge{ display:inline-flex; align-items:center; gap:4px; font-size:10px; font-weight:700; padding:1px 6px; border-radius:10px; }
.badge .dot{ width:5px; height:5px; border-radius:50%; }
.badge.freeze{ background:var(--danger-muted); color:var(--danger); }
.badge.expire{ background:var(--amber-muted); color:var(--amber); }

/* ============================================================
   登录页
   ============================================================ */
.login-page{
  position:fixed; inset:0; z-index:100;
  background:linear-gradient(160deg,#0a1c33 0%,#0f2740 45%,#163a5f 100%);
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
}
.login-stars{ position:absolute; inset:0; pointer-events:none; }
.login-stars span{
  position:absolute; width:2px; height:2px; border-radius:50%;
  background:rgba(255,255,255,.7); animation:twinkle 3.5s ease-in-out infinite;
}
@keyframes twinkle{ 0%,100%{opacity:.15} 50%{opacity:.9} }
.login-content{ position:relative; z-index:2; width:100%; max-width:400px; padding:24px; text-align:center; }
.login-logo{
  width:62px; height:62px; margin:0 auto 16px; border-radius:18px;
  background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.16);
  display:flex; align-items:center; justify-content:center; color:#fff;
  box-shadow:0 8px 30px rgba(0,0,0,.25);
}
.login-title{ color:#fff; font-size:24px; font-weight:700; letter-spacing:1px; }
.login-desc{ color:rgba(255,255,255,.55); font-size:13px; font-family:var(--serif); letter-spacing:2px; margin-top:4px; }
.login-card{
  margin-top:26px; background:rgba(255,255,255,.98); border-radius:20px;
  padding:22px 20px; text-align:left; box-shadow:var(--shadow-lg);
}
.login-modes{ display:flex; gap:6px; background:#eef1f6; border-radius:10px; padding:4px; margin-bottom:18px; }
.login-mode-btn{ flex:1; height:34px; border-radius:8px; font-size:13px; font-weight:600; color:var(--ink-3); transition:all .2s; }
.login-mode-btn.active{ background:#fff; color:var(--accent); box-shadow:var(--shadow); }
.login-view label{ display:block; font-size:12px; color:var(--ink-2); font-weight:600; margin-bottom:6px; }
.login-view input{ background:#f7f9fc; }
.pwd-wrap{ position:relative; }
.pwd-wrap input{ padding-right:40px; }
.pwd-toggle{ position:absolute; right:10px; top:50%; transform:translateY(-50%); color:var(--ink-3); display:flex; cursor:pointer; }
.pwd-toggle svg{ width:18px; height:18px; fill:currentColor; }
.login-btn{
  width:100%; margin-top:18px; height:44px; border-radius:12px;
  background:linear-gradient(135deg,var(--accent),var(--accent-2)); color:#fff;
  font-size:15px; font-weight:700; letter-spacing:4px; transition:filter .15s;
}
.login-btn:hover{ filter:brightness(1.06); }
.login-btn:disabled{ opacity:.6; }
.login-error{ color:var(--danger); font-size:12px; margin-top:10px; min-height:16px; }
.login-link{ color:var(--accent); font-size:12px; margin-top:8px; display:block; width:100%; text-align:center; }
.code-row{ display:flex; gap:8px; }
.code-row input{ flex:1; }
.code-btn{ flex:none; height:40px; padding:0 12px; border-radius:var(--radius-sm); background:var(--accent-muted); color:var(--accent); font-size:12px; font-weight:600; }
.code-btn:disabled{ opacity:.5; }
.bind-tip{ background:var(--accent-muted); color:var(--accent); font-size:12px; text-align:center; padding:8px 10px; border-radius:8px; margin-bottom:16px; line-height:1.5; }
.login-foot{ color:rgba(255,255,255,.45); font-size:12px; margin-top:18px; }

/* ============================================================
   工作台外壳（双端）
   ============================================================ */
#appShell{ position:fixed; inset:0; background:var(--bg); }
.app-layout{ height:100%; display:flex; }

/* ---- PC 侧边栏 ---- */
.sidebar{
  width:var(--sidebar-w); flex:none; background:var(--bg-deep); color:#eaf0f8;
  display:none; flex-direction:column; padding:20px 14px;
}
.sb-brand{ display:flex; align-items:center; gap:10px; padding:2px 6px 16px; }
.sb-logo{
  width:40px; height:40px; border-radius:50%; flex:none;
  background:linear-gradient(135deg,#4f8fd0,var(--accent) 55%,#2a5a9e);
  box-shadow:0 5px 14px rgba(31,78,140,.35), inset 0 0 0 1px rgba(255,255,255,.18);
  display:flex; align-items:center; justify-content:center; font-weight:800; color:#fff; font-size:17px;
  letter-spacing:.5px;
}
.sb-brand h1{ font-size:15px; font-weight:700; }
.sb-brand p{ font-size:10px; color:rgba(255,255,255,.6); font-family:var(--serif); letter-spacing:1px; }
.sb-user{ display:flex; align-items:center; gap:10px; padding:14px 6px; border-top:1px solid rgba(255,255,255,.08); }
.sb-avatar{ width:40px; height:40px; border-radius:50%; flex:none; background:linear-gradient(135deg,#2f6bb8,#1f4e8c); display:flex; align-items:center; justify-content:center; font-weight:700; color:#fff; }
.sb-user h2{ font-size:14px; font-weight:600; }
.sb-user p{ font-size:11px; color:rgba(255,255,255,.5); }
.sb-title{ font-size:11px; color:rgba(255,255,255,.4); letter-spacing:1px; padding:16px 6px 8px; }
.sb-list{ flex:1; overflow-y:auto; }
.sitem{
  display:flex; align-items:center; gap:10px; padding:9px 10px; border-radius:9px;
  color:rgba(255,255,255,.72); font-size:13.5px; cursor:pointer; transition:background .15s,color .15s;
}
.sitem:hover{ background:rgba(255,255,255,.06); color:#fff; }
.sitem.active{ background:linear-gradient(135deg,var(--accent),var(--accent-2)); color:#fff; font-weight:600; }
.sb-foot{ display:flex; align-items:center; gap:8px; padding-top:12px; border-top:1px solid rgba(255,255,255,.08); }
.sb-bell{ position:relative; width:40px; height:40px; border-radius:10px; display:flex; align-items:center; justify-content:center; color:rgba(255,255,255,.7); background:rgba(255,255,255,.06); }
.sb-bell:hover{ color:#fff; }
.sb-bell-badge{
  position:absolute; top:-4px; right:-4px; min-width:16px; height:16px; padding:0 4px;
  background:var(--amber); color:#fff; font-size:10px; font-weight:700; border-radius:8px;
  display:none; align-items:center; justify-content:center;
}
.sb-bell-badge.show{ display:flex; }
.sb-unread{ flex:1; }
.sb-logout{ flex:1; height:40px; border-radius:10px; background:rgba(255,255,255,.06); color:rgba(255,255,255,.7); font-size:13px; font-weight:600; }
.sb-logout:hover{ background:var(--danger); color:#fff; }

/* ---- 统一「个人中心」入口（PC 侧边栏底部） ---- */
.sb-hub{
  display:flex; align-items:center; gap:10px; padding:12px 10px; margin-top:6px;
  border-radius:14px; cursor:pointer; position:relative;
  background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.09);
  transition:background .18s, border-color .18s, transform .18s;
}
.sb-hub:hover{ background:rgba(255,255,255,.1); border-color:rgba(255,255,255,.2); transform:translateY(-1px); }
.sb-hub .sb-avatar{
  box-shadow:0 0 0 2px rgba(47,107,184,.35), 0 4px 12px rgba(0,0,0,.25);
}
.sb-hub-meta{ flex:1; min-width:0; }
.sb-hub-meta h2{ font-size:14px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sb-hub-meta p{ font-size:11px; color:rgba(255,255,255,.5); }
.sb-hub-badge{
  position:absolute; top:-4px; right:24px; min-width:17px; height:17px; padding:0 4px;
  background:var(--amber); color:#fff; font-size:10px; font-weight:700; border-radius:9px;
  display:none; align-items:center; justify-content:center;
  box-shadow:0 0 0 2px var(--bg-deep);
}
.sb-hub-badge.show{ display:flex; }
.sb-hub-che{ font-size:18px; color:rgba(255,255,255,.45); line-height:1; }

/* ---- 主内容区 ---- */
.main{ flex:1; min-width:0; display:flex; flex-direction:column; height:100%; }
.topbar{
  height:var(--topbar-h); flex:none; display:flex; align-items:center; gap:8px;
  padding:0 14px; background:var(--bg-card); border-bottom:1px solid var(--line);
  position:relative; z-index:5;
}
.menu-btn, .back-btn{ width:38px; height:38px; border-radius:10px; display:flex; align-items:center; justify-content:center; color:var(--ink); }
.menu-btn:hover, .back-btn:hover{ background:var(--bg); }
.title{ flex:1; font-size:17px; font-weight:700; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.title small{ font-size:11px; font-weight:400; color:var(--ink-3); margin-left:8px; font-family:var(--serif); letter-spacing:1px; }
.bell-btn{ position:relative; width:38px; height:38px; border-radius:10px; display:flex; align-items:center; justify-content:center; color:var(--ink-2); }
.bell-btn:hover{ background:var(--bg); }
.bell-badge{
  position:absolute; top:2px; right:2px; min-width:17px; height:17px; padding:0 4px;
  background:var(--amber); color:#fff; font-size:10px; font-weight:700; border-radius:9px;
  display:none; align-items:center; justify-content:center;
}
.bell-badge.show{ display:flex; }
.date-chip{ font-size:12px; color:var(--ink-3); display:flex; align-items:center; gap:4px; white-space:nowrap; }

/* ---- 支柱内顶部选项卡（业务/日常 二级入口）：分段胶囊控件 ---- */
.group-tabs{
  flex:none; align-self:flex-start; display:inline-flex; align-items:center; gap:4px;
  margin:10px 14px 0; padding:4px;
  background:var(--bg); border:1px solid var(--line); border-radius:12px;
  overflow-x:auto; scrollbar-width:none;
}
.group-tabs::-webkit-scrollbar{ display:none; }
.group-tabs .gt{
  flex:none; display:flex; align-items:center; gap:6px;
  padding:7px 16px; border-radius:8px;
  font-size:13px; font-weight:600; color:var(--ink-2);
  cursor:pointer; user-select:none; white-space:nowrap;
  transition:color .2s, background .2s, box-shadow .2s;
}
.group-tabs .gt svg{ flex:none; }
.group-tabs .gt:hover{ color:var(--accent); background:rgba(31,78,140,.06); }
.group-tabs .gt.on{
  color:var(--accent); font-weight:700; background:var(--bg-card);
  box-shadow:0 1px 4px rgba(20,35,60,.10);
}
/* 主次标签：主标签大字加粗、次级标签小字弱化（工作台栏目用） */
.group-tabs .gt.primary{ font-size:14px; font-weight:800; color:var(--ink); background:rgba(31,78,140,.07); }
.group-tabs .gt.primary.on{ color:#fff; background:linear-gradient(135deg,var(--accent-2),var(--accent)); box-shadow:0 2px 8px rgba(31,78,140,.35); }
.group-tabs .gt.parent-on{ color:var(--accent); background:rgba(31,78,140,.10); box-shadow:inset 0 -2px 0 var(--accent); }
.group-tabs .gt.sub{ font-size:12px; font-weight:500; color:var(--ink-3); padding:6px 12px; }
.group-tabs .gt.sub.on{ color:var(--accent); font-weight:700; background:var(--bg-card); box-shadow:0 1px 4px rgba(20,35,60,.10); }

#screen{ flex:1; overflow-y:auto; padding:14px 14px 90px; }

/* ---- 底部 Tab（H5） ---- */
.nav{
  position:fixed; left:0; right:0; bottom:0; z-index:20;
  height:var(--nav-h); display:flex; background:var(--bg-card);
  border-top:1px solid var(--line); box-shadow:0 -2px 12px rgba(20,35,60,.05);
}
.nav .n{ flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; color:var(--ink-3); font-size:11px; }
.nav .n.active{ color:var(--accent); font-weight:600; }
.n-avatar{
  width:28px; height:28px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-size:12px; font-weight:700; color:#fff; overflow:hidden; flex:none;
  background:linear-gradient(135deg,var(--accent-2),var(--accent));
  box-shadow:0 2px 6px rgba(31,78,140,.35);
  transition:box-shadow .18s, transform .18s;
}
.n-avatar.has-avatar{ background:#fff; }
.n-avatar .avatar-img{ width:100%; height:100%; object-fit:cover; display:block; }
.nav .n.active .n-avatar{ box-shadow:0 0 0 2px #fff, 0 0 0 4px var(--accent); }
/* 「通话」底部圆形电话钮（移动端专属，突出醒目；点击进通话助手，无长按） */
.nav .n.n-call-tab{ position:relative; justify-content:flex-end; padding-bottom:3px; }
.nav .n.n-call-tab .n-call{
  position:absolute; top:calc(-1 * var(--nav-call-pop)); left:50%; transform:translateX(-50%);
  width:58px; height:58px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; color:#fff;
  background:linear-gradient(145deg,var(--accent-2),var(--accent));
  box-shadow:0 6px 16px rgba(31,78,140,.45), inset 0 2px 4px rgba(255,255,255,.35);
  border:3px solid var(--bg-card); z-index:2;
  transition:transform .15s ease, box-shadow .15s ease;
}
.nav .n.n-call-tab .n-call svg{ filter:drop-shadow(0 1px 1px rgba(0,0,0,.25)); }
.nav .n.n-call-tab.active .n-call{
  background:linear-gradient(145deg,var(--accent),var(--accent-2));
  box-shadow:0 6px 18px rgba(31,78,140,.6), 0 0 0 4px rgba(31,78,140,.18);
  transform:translateX(-50%) scale(1.05);
}
.nav .n.n-call-tab:active .n-call{ transform:translateX(-50%) scale(.94); }


/* ---- 抽屉 ---- */
.scrim{ position:fixed; inset:0; z-index:30; background:rgba(10,20,35,.45); opacity:0; pointer-events:none; transition:opacity .25s; }
.scrim.show{ opacity:1; pointer-events:auto; }
.drawer{
  position:fixed; top:0; bottom:0; left:0; z-index:31; width:290px; max-width:84vw;
  background:var(--bg-card); transform:translateX(-100%); transition:transform .28s ease;
  display:flex; flex-direction:column; box-shadow:var(--shadow-lg);
}
.drawer.show{ transform:translateX(0); }
.dh{ display:flex; align-items:center; gap:12px; padding:18px 16px; background:var(--bg-deep); color:#fff; }
.dclose{ width:34px; height:34px; border-radius:9px; color:rgba(255,255,255,.8); display:flex; align-items:center; justify-content:center; }
.brand{ width:42px; height:42px; border-radius:12px; background:linear-gradient(135deg,var(--accent),var(--accent-2)); display:flex; align-items:center; justify-content:center; font-weight:800; }
.dh h2{ font-size:16px; }
.dh p{ font-size:11px; color:rgba(255,255,255,.5); font-family:var(--serif); letter-spacing:1px; }
.dsep{ height:8px; background:var(--bg); }
#drawerList{ flex:1; overflow-y:auto; padding:8px 10px; }
.ditem{ display:flex; align-items:center; gap:12px; padding:12px 12px; border-radius:10px; font-size:14px; color:var(--ink); cursor:pointer; }
.ditem:hover{ background:var(--bg); }
.ditem.active{ background:var(--accent-muted); color:var(--accent); font-weight:600; }
.ditem.danger{ color:var(--danger); }
.dfoot{ padding:12px 16px; font-size:11px; color:var(--ink-3); }

/* ---- 统一「个人中心」弹层（左下角头像向上抽拉） ---- */
.hub-scrim{
  position:fixed; inset:0; z-index:40; background:rgba(10,20,35,.5);
  -webkit-backdrop-filter:blur(2px); backdrop-filter:blur(2px); opacity:0; pointer-events:none; transition:opacity .25s;
}
.hub-scrim.show{ opacity:1; pointer-events:auto; }
/* 移动端默认：底部抽屉 */
.hub-panel{
  position:fixed; left:0; right:0; bottom:0; z-index:41;
  max-height:88vh; display:flex; flex-direction:column;
  background:var(--bg-card); border-radius:20px 20px 0 0;
  box-shadow:var(--shadow-lg);
  transform:translateY(100%); transition:transform .32s cubic-bezier(.22,1,.36,1);
}
.hub-panel.show{ transform:translateY(0); }
.hub-head{ display:flex; align-items:center; gap:10px; padding:12px 14px 8px; flex:none; }
.hub-back, .hub-close{
  width:32px; height:32px; border-radius:50%; flex:none;
  display:flex; align-items:center; justify-content:center;
  color:var(--ink-2); background:var(--bg); transition:background .15s;
}
.hub-back:hover, .hub-close:hover{ background:#e3e8f0; }
.hub-title{ flex:1; min-width:0; font-size:15px; font-weight:700; color:var(--ink); text-align:center; }
/* 无感隐藏滚动条：内容仍可正常上下滚动，仅不显示滚动条（PC/安卓 webkit / Firefox / 旧Edge 全兼容） */
.hub-view{ flex:1; min-height:0; overflow-y:auto; padding:4px 14px 18px; -webkit-overflow-scrolling:touch;
  scrollbar-width:none; -ms-overflow-style:none; }
.hub-view::-webkit-scrollbar{ width:0; height:0; display:none; }

/* 提醒中心组 */
.hub-toolbar{ display:flex; flex-direction:column; gap:10px; margin-bottom:8px; }
.hub-toolbar-r{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.hub-chips{ flex-wrap:wrap; }
.hub-scan{ padding:6px 12px; font-size:12.5px; white-space:nowrap; }

/* 我的（主菜单）组 */
.hub-profile{
  display:flex; align-items:center; gap:14px; padding:16px; margin-bottom:12px;
  background:linear-gradient(135deg,var(--bg-deep),#16385c); border-radius:var(--radius); color:#eaf0f8;
}
.hub-pavatar{
  width:54px; height:54px; border-radius:50%; flex:none; display:flex; align-items:center; justify-content:center;
  font-size:20px; font-weight:800; background:linear-gradient(135deg,#2f6bb8,#1f4e8c); color:#fff;
  box-shadow:0 0 0 3px rgba(255,255,255,.18);
}
.hub-pname{ font-size:17px; font-weight:700; }
.hub-name-edit{ width:22px; height:22px; border-radius:50%; border:none; cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center; vertical-align:2px; margin-left:7px;
  background:rgba(255,255,255,.16); color:rgba(255,255,255,.92); transition:background .15s, transform .15s; }
.hub-name-edit:hover{ background:rgba(255,255,255,.32); color:#fff; transform:scale(1.06); }
.hub-name-edit:active{ transform:scale(.92); }
.hub-psub{ font-size:12px; color:rgba(255,255,255,.6); margin-top:2px; }
.hub-grp{
  background:var(--bg-card); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; margin-bottom:12px;
}
.hub-grp-title{ padding:8px 14px 4px; font-size:11.5px; color:var(--ink-3); }
/* 可折叠分组标题（数据管理）：默认折叠，点击展开 / 收起 */
.hub-grp-title[data-toggle-group]{
  display:flex; align-items:center; gap:6px; cursor:pointer; user-select:none;
  padding:11px 14px; font-size:12px; font-weight:600; color:var(--ink-2);
}
.hub-grp-title[data-toggle-group]:hover{ background:var(--bg); }
.hub-grp-title[data-toggle-group] svg{ flex:none; color:var(--ink-3); transition:transform .18s; }
/* 展开时箭头转 90°（chevron 默认朝右 → 朝下） */
.hub-grp:not(.collapsed) .hub-grp-title[data-toggle-group] svg{ transform:rotate(90deg); }
/* 折叠态：隐藏组内所有功能行 */
.hub-grp.collapsed .hub-row{ display:none; }
.hub-row{
  display:flex; align-items:center; gap:12px; padding:13px 14px; color:var(--ink); cursor:pointer;
  border-bottom:1px solid var(--line); transition:background .15s;
}
.hub-row:last-child{ border-bottom:none; }
.hub-row:hover{ background:var(--bg); }
.hub-row svg:first-child{ color:var(--accent); flex:none; }
.hub-row span{ flex:1; font-size:14.5px; }
/* 防止 .hub-row span 的全局 flex:1 拉伸开关组件 —— 开关必须保持固定尺寸 */
.hub-row .np-switch,
.hub-row .np-switch .np-knob{ flex:none; }
.hub-row svg:last-child{ color:var(--ink-3); flex:none; }
.hub-row.danger svg:first-child{ color:var(--danger); }
.hub-row.danger span{ color:var(--danger); }
.hub-row-badge{
  min-width:18px; height:18px; padding:0 5px; border-radius:9px; flex:none;
  display:none; align-items:center; justify-content:center;
  background:var(--danger); color:#fff; font-size:11px; font-weight:700;
}
.hub-row-badge.show{ display:flex; }
.hub-tip{ padding:2px 4px 0; font-size:11px; line-height:1.6; color:var(--ink-3); }

/* ---- FAB ---- */
.fab{
  position:fixed; right:18px; bottom:calc(var(--nav-h) + 18px); z-index:25;
  width:54px; height:54px; border-radius:50%; color:#fff;
  background:linear-gradient(135deg,var(--accent),var(--accent-2));
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 8px 24px rgba(31,78,140,.4); transition:transform .15s;
}
.fab:active{ transform:scale(.94); }
.fab-menu{
  position:fixed; right:18px; bottom:calc(var(--nav-h) + 84px); z-index:26;
  background:var(--bg-card); border:1px solid var(--line); border-radius:14px;
  box-shadow:var(--shadow-lg); padding:6px; min-width:150px;
}
.fm-item{ display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:9px; font-size:13px; cursor:pointer; }
.fm-item:hover{ background:var(--bg); }
.fm-ic{ width:28px; height:28px; border-radius:8px; display:flex; align-items:center; justify-content:center; }
.fab-scrim{ position:fixed; inset:0; z-index:24; background:rgba(10,20,35,.2); opacity:0; pointer-events:none; transition:opacity .2s; }
.fab-scrim.show{ opacity:1; pointer-events:auto; }

/* ---- Toast ---- */
.toast{
  position:fixed; left:50%; bottom:calc(var(--nav-h) + 20px); transform:translateX(-50%) translateY(20px);
  z-index:60; background:rgba(15,40,64,.94); color:#fff; font-size:13px; padding:10px 18px;
  border-radius:10px; opacity:0; pointer-events:none; transition:opacity .3s, transform .3s; max-width:86vw; text-align:center;
}
.toast.show{ opacity:1; transform:translateX(-50%) translateY(0); }
.toast.err{ background:rgba(220,38,38,.94); }

/* ============================================================
   页面组件
   ============================================================ */
/* 页头 */
.page-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:14px; }
.ph-title{ font-size:20px; font-weight:800; }
.ph-sub{ font-size:12px; color:var(--ink-3); margin-top:3px; }
.ph-acts{ display:flex; gap:8px; flex:none; }
/* 通话助手「通话记录」按钮：右上角入口（与全局 ph-acts 靠右一致） */
.page-head.ca-head{ align-items:center; }
.ca-history-btn{
  padding:8px 18px; font-size:13.5px;
  box-shadow:0 4px 12px rgba(31,78,140,.3);
  animation:caBtnPulse 2.4s ease-in-out infinite;
}
@keyframes caBtnPulse{
  0%,100%{ box-shadow:0 4px 12px rgba(31,78,140,.3); }
  50%{ box-shadow:0 4px 18px rgba(31,78,140,.5); }
}
/* 「通话记录」迁移进通话控制行后：去掉脉冲，作为普通次级按钮 */
.ca-history-link{ padding:8px 14px; font-size:13.5px; }

/* 过滤条 */
.filter-bar{ display:flex; align-items:center; gap:10px; margin-bottom:12px; flex-wrap:wrap; }
.chips{ display:flex; gap:6px; flex-wrap:wrap; }
.chip{ padding:6px 13px; border-radius:20px; font-size:12px; font-weight:600; background:#fff; border:1px solid var(--line); color:var(--ink-2); cursor:pointer; transition:border-color .16s, color .16s, background .16s; }
.chip:hover:not(.on){ border-color:var(--accent-2); color:var(--accent); background:var(--accent-muted); }
.chip.on{ background:var(--accent); border-color:var(--accent); color:#fff; box-shadow:0 1px 3px rgba(31,78,140,.22); }
.search-box{ flex:1; min-width:160px; display:flex; align-items:center; gap:6px; background:#fff; border:1px solid var(--line); border-radius:20px; padding:7px 12px; color:var(--ink-3); transition:border-color .16s, box-shadow .16s; }
.search-box:focus-within{ border-color:var(--accent-2); box-shadow:0 0 0 3px rgba(47,107,184,.1); }
.search-box input{ flex:1; border:none; outline:none; font-size:13px; background:transparent; }

/* 全站统一：页面内大号标题一律隐藏（标题只保留在全局顶栏），
   原 page-head 内的操作按钮已迁移到各页面的内容卡片中 */
.page-head{ display:none !important; }

#dashAdd{ display:none; }
@media (min-width:1024px){ #dashAdd{ display:inline-flex; } }
/* 统一两列卡片网格（PC 两列，H5 单列） */
.list-grid{ display:grid; grid-template-columns:1fr; gap:12px; }
.list-grid .app-card, .list-grid .tpl-card, .list-grid .bot-card, .list-grid .rem-item{ margin-bottom:0; }
.list-grid .list-item{ margin-bottom:0; }

/* 页面切换淡入 */
#screen > *{ animation:pageIn .32s ease both; }
@keyframes pageIn{ from{ opacity:0; transform:translateY(6px); } to{ opacity:1; transform:translateY(0); } }

/* 卡片悬停微动效 */
.app-card, .tpl-card, .bot-card, .rem-item, .list-item, .qitem{ transition:border-color .18s, transform .18s, box-shadow .18s; }
.app-card:hover, .tpl-card:hover, .bot-card:hover, .rem-item:hover, .list-item:hover{ transform:translateY(-1px); box-shadow:0 4px 14px rgba(20,35,60,.08); }

/* 概览卡 */
.ov-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-bottom:14px; }
.ov-card{ background:var(--bg-card); border:1px solid var(--line); border-radius:var(--radius); padding:12px; box-shadow:var(--shadow); }
.ov-ic{ width:34px; height:34px; border-radius:9px; display:flex; align-items:center; justify-content:center; background:var(--tint); color:var(--color); margin-bottom:8px; }
.ov-v{ font-size:22px; font-weight:800; font-family:var(--serif); }
.ov-l{ font-size:11px; color:var(--ink-3); margin-top:2px; }
/* 统计卡近 7 天环比徽标（P1） */
.ov-v{ display:flex; align-items:baseline; gap:6px; flex-wrap:wrap; }
.ov-delta{ font-family:var(--sans); font-size:10.5px; font-weight:700; padding:1px 6px; border-radius:999px; }
.ov-delta.up{ color:#16a34a; background:#dcfce7; }
.ov-delta.down{ color:#dc2626; background:#fee2e2; }

/* 申请卡片 */
.app-card{ background:var(--bg-card); border:1px solid var(--line); border-radius:var(--radius); padding:14px; margin-bottom:10px; box-shadow:var(--shadow); cursor:pointer; transition:border-color .15s; }
.app-card:hover{ border-color:var(--accent); }
.ac-top{ display:flex; justify-content:space-between; align-items:center; gap:8px; }
.ac-name{ font-size:15px; font-weight:700; }
.ac-cur{ font-size:12px; color:var(--accent); font-weight:600; }
.ac-meta{ display:flex; gap:6px; flex-wrap:wrap; margin:8px 0 10px; }
.ac-prog{ display:flex; align-items:center; gap:8px; }
.ac-pv{ font-size:12px; font-weight:700; color:var(--accent); font-family:var(--serif); }
.ac-foot{ display:flex; justify-content:space-between; align-items:center; margin-top:10px; font-size:11px; color:var(--ink-3); }

/* 申请详情 */
.app-detail{}
.ad-head{}
.ad-name{ font-size:19px; font-weight:800; }
.ad-meta{ display:flex; gap:6px; flex-wrap:wrap; margin:8px 0; }
.ad-schools{ font-size:12px; color:var(--ink-2); display:flex; align-items:center; gap:5px; margin-bottom:8px; }
.ad-tiers{ display:flex; gap:6px; flex-wrap:wrap; margin:0 0 8px; }
.ad-tiers .m-tag{ font-size:11px; font-weight:600; }
.ad-tiers .m-tag.tier-reach{ color:#b45309; background:var(--amber-muted); }   /* 冲刺：琥珀警示色 */
.ad-tiers .m-tag.tier-match{ color:var(--accent); background:var(--accent-muted); } /* 匹配：主色深靛蓝 */
.ad-tiers .m-tag.tier-safe{ color:#15803d; background:#dcfce7; }              /* 保底：安全绿 */
.ad-prog{ display:flex; align-items:center; gap:8px; }
.ad-pv{ font-size:14px; font-weight:800; color:var(--accent); font-family:var(--serif); }
.ad-pc{ font-size:11px; color:var(--ink-3); }
.ad-actions{ display:flex; gap:8px; margin-top:12px; }
.ad-notes{ margin-top:12px; font-size:12.5px; color:var(--ink-2); background:var(--bg); border-radius:9px; padding:10px; }

/* 阶段列表（时间轴） */
.stage-list{ position:relative; }
.stage-item{ display:flex; gap:12px; padding:12px 0; border-bottom:1px solid var(--line); }
.stage-item:last-child{ border-bottom:none; }
.si-left{ width:14px; flex:none; display:flex; flex-direction:column; align-items:center; }
.si-dot{ width:10px; height:10px; border-radius:50%; background:var(--ink-3); margin-top:5px; }
.stage-item.current .si-dot{ background:var(--accent); box-shadow:0 0 0 4px var(--accent-muted); }
.stage-item.overdue .si-dot{ background:var(--danger); box-shadow:0 0 0 4px var(--danger-muted); }
.si-body{ flex:1; min-width:0; }
.si-top{ display:flex; justify-content:space-between; align-items:center; gap:8px; }
.si-name{ font-weight:600; font-size:14px; }
.si-meta{ display:flex; gap:6px; flex-wrap:wrap; margin-top:6px; }
.si-notes{ margin-top:6px; font-size:12px; color:var(--ink-2); }
.si-btn{ flex:none; align-self:center; padding:6px 12px; border-radius:8px; background:var(--accent-muted); color:var(--accent); font-size:12px; font-weight:600; }

/* 提醒 */
.rem-item{ display:flex; gap:12px; background:var(--bg-card); border:1px solid var(--line); border-radius:var(--radius); padding:13px; margin-bottom:10px; box-shadow:var(--shadow); cursor:pointer; align-items:flex-start; }
.rem-item.read{ opacity:.6; }
.rem-item:hover{ border-color:var(--accent); }
.rem-ic{ width:34px; height:34px; border-radius:9px; flex:none; display:flex; align-items:center; justify-content:center; background:var(--accent-muted); color:var(--accent); }
.rem-body{ flex:1; min-width:0; }
.rem-top{ display:flex; justify-content:space-between; align-items:center; gap:8px; }
.rem-name{ font-weight:700; font-size:14px; }
.rem-content{ font-size:13px; color:var(--ink-2); margin-top:4px; }
.rem-meta{ font-size:11px; color:var(--ink-3); margin-top:5px; }
.rem-dot{ flex:none; width:8px; height:8px; border-radius:50%; background:var(--amber); margin-top:6px; }
.pcheck{ display:flex; align-items:center; gap:5px; font-size:12px; color:var(--ink-2); }
.pcheck input{ width:15px; height:15px; }

/* ============ 模板 ============ */
.tpl-card{
  background:var(--bg-card); border:1px solid var(--line); border-radius:var(--radius);
  padding:0; overflow:hidden; box-shadow:var(--shadow);
  transition:transform .18s, box-shadow .18s, border-color .18s;
}
.tpl-card:hover{ transform:translateY(-2px); box-shadow:var(--shadow); border-color:#cdd8ea; }

/* 模板分组标题（横跨网格整行） */
.tpl-group-title{
  grid-column:1 / -1;
  display:flex; align-items:center; gap:8px;
  font-size:13px; font-weight:700; color:var(--ink-2);
  margin:6px 0 2px;
}
.tpl-group-title::before{ content:""; width:4px; height:14px; border-radius:2px; background:var(--accent); }

/* 卡片头部 */
.tpl-top{ display:flex; align-items:center; gap:12px; padding:14px 14px 10px; }
.tpl-ico{
  width:44px; height:44px; border-radius:12px; flex:none;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg,var(--accent),var(--accent-2));
  color:#fff; box-shadow:0 6px 14px rgba(31,78,140,.28);
}
.tpl-info{ flex:1; min-width:0; }
.tpl-name-row{ display:flex; align-items:center; gap:8px; min-width:0; }
.tpl-name{ font-weight:800; font-size:15.5px; letter-spacing:.2px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tpl-meta{ display:flex; align-items:center; gap:8px; font-size:12px; color:var(--ink-3); margin-top:5px; }
.tpl-meta > span{ display:inline-flex; align-items:center; gap:4px; }
.tpl-meta-sep{ width:3px; height:3px; border-radius:50%; background:var(--line); flex:none; }

/* 流程时间轴 */
.tpl-timeline{ position:relative; margin:4px 14px 4px 22px; padding:2px 0 6px; }
.tpl-timeline::before{
  content:""; position:absolute; left:10px; top:20px; bottom:20px; width:2px;
  background:linear-gradient(180deg,var(--accent-muted),var(--line));
}
.tpl-step{ position:relative; display:flex; align-items:center; gap:10px; padding:7px 0 2px; }
.tpl-seq{
  position:relative; z-index:1; width:22px; height:22px; border-radius:50%; flex:none;
  display:flex; align-items:center; justify-content:center;
  background:var(--bg-card); border:2px solid var(--accent); color:var(--accent);
  font-size:11px; font-weight:800;
}
.tpl-step-body{ flex:1; min-width:0; }
.tpl-step-name{ font-size:13px; color:var(--ink-2); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tpl-step-due{
  flex:none; font-size:11px; font-weight:600; color:var(--ink-3);
  background:#f1f4f9; padding:2px 9px; border-radius:20px;
}

/* 卡片操作 */
.tpl-actions{ display:flex; gap:10px; padding:10px 14px 14px; border-top:1px dashed var(--line); }
.tpl-actions .btn{ flex:1; padding:8px 10px; font-size:13px; border-radius:9px; }

/* 编辑弹框 */
.modal-head{ display:flex; align-items:center; gap:10px; margin-bottom:4px; }
.modal-head h2{ font-size:17px; font-weight:800; }
.modal-head .sub{ margin:0; }

.te-row{
  border:1px solid var(--line); border-radius:12px; padding:10px 12px; margin-bottom:10px;
  background:#fbfcfe; transition:border-color .15s, box-shadow .15s;
}
.te-row:hover{ border-color:#cdd8ea; box-shadow:0 2px 8px rgba(20,35,60,.05); }
.te-row-head{ display:flex; align-items:center; gap:10px; }
.te-row-head .tpl-seq{ width:24px; height:24px; flex:none; border-radius:8px; background:var(--accent-muted); border:none; color:var(--accent); }
.te-name{
  flex:1; min-width:0; padding:8px 10px; font-size:13.5px;
  border:1px solid var(--line); border-radius:8px; background:#fff;
}
.te-name:focus, .te-sub input:focus{ outline:none; border-color:var(--accent); box-shadow:0 0 0 3px rgba(31,78,140,.12); }
.te-row-acts{ display:flex; gap:4px; flex:none; }
.te-move{
  width:30px; height:30px; border-radius:8px; display:flex; align-items:center; justify-content:center;
  color:var(--ink-2); background:#eef1f6; transition:background .15s, color .15s;
}
.te-move:hover{ background:var(--accent-muted); color:var(--accent); }
.te-del{
  flex:none; width:30px; height:30px; border-radius:8px; display:flex; align-items:center; justify-content:center;
  color:var(--danger); background:var(--danger-muted); transition:filter .15s;
}
.te-del:hover{ filter:brightness(.96); }
.te-sub{ display:flex; gap:10px; margin-top:10px; }
.te-sub label{ flex:1; display:flex; align-items:center; gap:8px; font-size:12px; color:var(--ink-2); }
.te-sub label em{ font-style:normal; font-size:12px; color:var(--ink-3); }
.te-sub input{
  flex:1; min-width:0; padding:7px 10px; font-size:13px;
  border:1px solid var(--line); border-radius:8px; background:#fff; -moz-appearance:textfield;
}
.te-sub input::-webkit-outer-spin-button, .te-sub input::-webkit-inner-spin-button{ -webkit-appearance:none; margin:0; }
.te-add{ width:100%; justify-content:center; border-style:dashed !important; color:var(--accent); background:var(--accent-muted); }
.te-add:hover{ border-color:var(--accent); }

/* Bot 卡片 */
.bot-card{ display:flex; align-items:center; gap:12px; background:var(--bg-card); border:1px solid var(--line); border-radius:var(--radius); padding:13px; margin-bottom:10px; box-shadow:var(--shadow); cursor:pointer; }
.bot-card:hover{ border-color:var(--accent); }
.bot-ic{ width:40px; height:40px; border-radius:11px; flex:none; display:flex; align-items:center; justify-content:center; background:var(--accent-muted); color:var(--accent); }
.bot-body{ flex:1; min-width:0; }
.bot-name{ display:flex; align-items:center; gap:6px; font-weight:700; font-size:14px; }
.bot-sub{ display:flex; align-items:center; gap:8px; font-size:12px; color:var(--ink-3); margin-top:3px; }
.bot-arrow{ color:var(--ink-3); }

/* 列表卡片右侧「网页对话」快捷入口（2026-09-16 新增） */
.bot-chat-ic{
  width:32px; height:32px; border-radius:8px; flex:none; margin-right:4px;
  display:flex; align-items:center; justify-content:center;
  color:var(--accent); background:var(--accent-muted);
  transition:background .15s, color .15s;
}
.bot-chat-ic:hover{ background:var(--accent); color:#fff; }

/* 会话消息 */
.msg-flow{ display:flex; flex-direction:column; gap:8px; }
.msg{ max-width:82%; padding:10px 13px; border-radius:12px; font-size:13.5px; white-space:pre-wrap; word-break:break-word; }
.msg.bot{ background:var(--bg); align-self:flex-start; border-top-left-radius:4px; }
.msg.user{ background:var(--accent-muted); color:var(--ink); align-self:flex-end; border-top-right-radius:4px; }
.msg-time{ font-size:10px; color:var(--ink-3); align-self:center; }

/* 工作台首页 */
.greet h1{ font-size:22px; font-weight:800; }
.greet p{ font-size:13px; color:var(--ink-3); margin-top:3px; }
.quote{ background:linear-gradient(135deg,var(--accent),var(--accent-2)); color:#fff; border-radius:var(--radius); padding:14px 16px; margin-top:14px; box-shadow:var(--shadow); }
.quote .tag{ font-size:11px; opacity:.85; display:flex; align-items:center; gap:5px; }
.quote .txt{ font-size:14px; margin-top:6px; line-height:1.6; }
.ca-hero{
  display:flex; align-items:center; gap:14px;
  background:linear-gradient(135deg,var(--accent-2),var(--accent) 60%,#2a5a9e);
  color:#fff; border-radius:var(--radius); padding:16px 18px;
  box-shadow:var(--shadow); cursor:pointer; margin-top:14px; position:relative; overflow:hidden;
  transition:transform .15s, box-shadow .15s;
}
.ca-hero:hover{ transform:translateY(-1px); box-shadow:var(--shadow-lg); }
.ca-hero-ic{ width:58px; height:58px; border-radius:14px; flex:none; display:flex; align-items:center; justify-content:center; background:rgba(255,255,255,.16); }
.ca-hero-t{ flex:1; min-width:0; }
.ca-hero-t h3{ font-size:17px; font-weight:800; }
.ca-hero-t p{ font-size:12px; opacity:.85; margin-top:3px; line-height:1.5; }
.ca-hero-btn{ flex:none; display:inline-flex; align-items:center; gap:6px; background:#fff; color:var(--accent); font-weight:700; font-size:13px; padding:9px 16px; border-radius:999px; white-space:nowrap; }
.appline{ display:grid; grid-template-columns:repeat(4,1fr); gap:8px; cursor:pointer; }
.aline-stat{ text-align:center; padding:10px 4px; border-radius:10px; background:var(--accent-muted); }
.aline-stat b{ display:block; font-size:20px; font-weight:800; color:var(--accent); font-family:var(--serif); }
.aline-stat i{ font-style:normal; font-size:11px; color:var(--ink-2); }
.aline-stat.warn{ background:var(--amber-muted); } .aline-stat.warn b{ color:var(--amber); }
.aline-stat.danger{ background:var(--danger-muted); } .aline-stat.danger b{ color:var(--danger); }
.dbot{ display:flex; align-items:center; gap:10px; background:var(--bg-card); border:1px solid var(--line); border-radius:var(--radius-sm); padding:12px; margin-bottom:9px; cursor:pointer; }
.dbot-avatar{ width:36px; height:36px; border-radius:10px; display:flex; align-items:center; justify-content:center; }
.dbot-info{ flex:1; }
.dbot-name{ font-weight:600; font-size:14px; }
.dbot-status{ font-size:11px; color:var(--ink-3); margin-top:2px; }
.dbot-status.on{ color:var(--module-1); }

/* ---- 我的 Bot 表格 ---- */
.dbot-table-wrap{ background:var(--bg-card); border:1px solid var(--line); border-radius:var(--radius-sm); box-shadow:var(--shadow); }
.dbot-table{ width:100%; table-layout:fixed; border-collapse:collapse; font-size:13px; }
.dbot-table th{ text-align:left; padding:10px 12px; font-size:11px; font-weight:700; color:var(--ink-3); letter-spacing:.5px; background:var(--accent-muted); }
.dbot-table td{ padding:10px 12px; border-top:1px solid var(--line); vertical-align:middle; overflow:hidden; text-overflow:ellipsis; }
.dbot-table tbody tr{ cursor:pointer; transition:background .15s; }
.dbot-table tbody tr:hover{ background:var(--accent-muted); }
.dbot-table .dbot-name{ font-weight:600; }
.dbot-table .dbot-name small{ display:block; font-weight:400; font-size:11px; color:var(--ink-3); margin-top:2px; }
.dbot-due.warn{ color:var(--amber); font-weight:600; }
.dbot-due.danger{ color:var(--danger); font-weight:600; }
@media (max-width:1023px){ .dbot-table .hide-sm{ display:none; } }
.dsess{ background:var(--bg-card); border:1px solid var(--line); border-radius:var(--radius-sm); padding:12px; margin-bottom:9px; cursor:pointer; }
.dsess-t{ font-weight:600; font-size:14px; }
.dsess-m{ font-size:11px; color:var(--ink-3); margin-top:3px; }
.quick-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:9px; }
.qitem{ display:flex; flex-direction:column; align-items:center; gap:7px; background:var(--bg-card); border:1px solid var(--line); border-radius:var(--radius); padding:13px 6px; font-size:11px; color:var(--ink-2); cursor:pointer; }
.qitem span{ width:34px; height:34px; border-radius:10px; display:flex; align-items:center; justify-content:center; }
.eff-summary{ display:flex; align-items:center; gap:8px; margin-bottom:12px; }
.s-label{ font-size:11px; color:var(--ink-3); }
.s-value{ font-size:14px; font-weight:800; }
.s-sep{ width:1px; height:16px; background:var(--line); }
.rings{ display:grid; grid-template-columns:repeat(4,1fr); gap:9px; }
.ring{ aspect-ratio:1; border-radius:50%; background:var(--tint); display:flex; align-items:center; justify-content:center; cursor:pointer; border:1px solid var(--line); }
.ring-in{ width:74%; height:74%; border-radius:50%; background:var(--bg-card); display:flex; flex-direction:column; align-items:center; justify-content:center; }
.ring-in b{ font-size:16px; font-weight:800; }
.ring-in i{ font-style:normal; font-size:9px; color:var(--ink-3); }

/* ---- 工作台两列驾驶舱布局 ---- */
.dash-cols{ display:grid; grid-template-columns:1fr; gap:0; align-items:start; }
.dash-col{ min-width:0; }
.dash-col .quick-grid{ grid-template-columns:repeat(4,1fr); }

/* ============================================================
   弹层 / 表单
   ============================================================ */
.overlay{ position:fixed; inset:0; z-index:50; background:rgba(10,20,35,.45); display:flex; align-items:flex-end; justify-content:center; }
.modal{ width:100%; max-width:520px; max-height:88vh; overflow-y:auto; background:var(--bg-card); border-radius:20px 20px 0 0; padding:10px 18px 22px; animation:slideUp .25s ease; }
.modal-lg{ max-width:560px; }
@keyframes slideUp{ from{ transform:translateY(40px); opacity:0; } to{ transform:translateY(0); opacity:1; } }
.modal .grab{ width:42px; height:4px; border-radius:3px; background:var(--line); margin:6px auto 12px; }
.modal h2{ font-size:17px; font-weight:800; }
.modal .sub{ font-size:12px; color:var(--ink-3); margin:4px 0 14px; }
.field{ margin-bottom:12px; }
.field label{ display:block; font-size:12px; font-weight:600; color:var(--ink-2); margin-bottom:6px; }
.field-row{ display:flex; gap:10px; }
.field-row .field{ flex:1; }
.modal-actions{ display:flex; gap:10px; margin-top:18px; }
.modal-actions .btn{ flex:1; }
/* 导航改版提示卡：两行调整说明 */
.nav-notice-body{ margin-top:12px; display:flex; flex-direction:column; gap:14px; }
.nav-notice-row{ display:flex; gap:11px; align-items:flex-start; text-align:left; line-height:1.55; }
.nav-notice-row b{ font-size:13.5px; }
.nav-notice-row .nav-notice-ic{
  flex:none; width:34px; height:34px; border-radius:10px; background:var(--accent-muted);
  display:flex; align-items:center; justify-content:center;
}
.seg{ display:flex; gap:6px; background:var(--bg); border-radius:10px; padding:4px; }
.seg .opt{ flex:1; text-align:center; padding:8px 4px; border-radius:8px; font-size:13px; font-weight:600; color:var(--ink-3); }
.seg .opt.on{ background:#fff; color:var(--accent); box-shadow:var(--shadow); }

/* ============================================================
   效率工具（todo / checkin / note / progress）
   ============================================================ */
.hero{ display:flex; align-items:center; gap:12px; background:var(--bg-card); border:1px solid var(--line); border-radius:var(--radius); padding:14px; box-shadow:var(--shadow); }
.hero-ic{ width:42px; height:42px; border-radius:12px; flex:none; display:flex; align-items:center; justify-content:center; }
.hero-tx{ display:flex; align-items:baseline; gap:8px; }
.hero-v{ font-size:22px; font-weight:800; font-family:var(--serif); }
.hero-l{ font-size:12px; color:var(--ink-3); }
.hero-bar{ height:5px; border-radius:3px; background:var(--bg); margin-top:8px; overflow:hidden; }
.hero-bar i{ display:block; height:100%; border-radius:3px; }
.rec{ background:var(--bg-card); border:1px solid var(--line); border-radius:var(--radius-sm); padding:12px 13px; margin-bottom:9px; box-shadow:var(--shadow); position:relative; }
.rec .top{ display:flex; align-items:flex-start; gap:11px; }
.rec .acts{ position:absolute; top:10px; right:10px; display:flex; gap:4px; }
.rec .del{ width:28px; height:28px; border-radius:8px; display:flex; align-items:center; justify-content:center; color:var(--ink-3); background:#f4f6fa; }
.rec .del:hover{ color:var(--danger); background:var(--danger-muted); }
.chk{ width:24px; height:24px; border-radius:7px; border:2px solid var(--line); flex:none; display:flex; align-items:center; justify-content:center; color:#fff; cursor:pointer; transition:.15s; margin-top:1px; }
.chk.on{ background:var(--module-1); border-color:var(--module-1); }
.rec .body{ flex:1; min-width:0; cursor:pointer; padding-right:26px; }
.rname{ font-weight:600; font-size:14px; }
.rname.done{ color:var(--ink-3); text-decoration:line-through; }
.rmeta{ display:flex; align-items:center; flex-wrap:wrap; gap:6px; margin-top:5px; }
.rnote{ font-size:12.5px; color:var(--ink-2); margin-top:6px; white-space:pre-wrap; word-break:break-word; }
.streak{ display:inline-flex; align-items:center; gap:3px; font-size:12px; color:var(--amber); font-weight:600; }
.badge.ok{ background:#dcfce7; color:var(--module-1); }
.progress-top{ display:flex; align-items:center; gap:10px; margin-top:6px; }
.pbar{ flex:1; height:6px; border-radius:3px; background:var(--bg); overflow:hidden; }
.pbar i{ display:block; height:100%; border-radius:3px; }
.pval{ flex:none; font-size:12px; color:var(--ink-2); font-weight:600; white-space:nowrap; }
.field-sub{ font-size:12px; color:var(--ink-3); margin:-4px 0 12px; }
.frow{ display:flex; gap:10px; }
.frow .field{ flex:1; }
.link-danger{ background:none; border:none; color:var(--danger); font-size:13px; font-weight:600; padding:0; }

/* ---- 通知设置弹框：渠道开关列表 ---- */
.np-chan{ display:flex; align-items:center; gap:12px; padding:12px 2px; border-bottom:1px solid var(--line); }
.np-ic{
  width:38px; height:38px; border-radius:11px; flex:none;
  display:flex; align-items:center; justify-content:center;
  background:var(--accent-muted); color:var(--accent);
}
.np-ic.sms{ background:var(--amber-muted); color:var(--amber); }
.np-meta{ flex:1; min-width:0; }
.np-t{ font-size:14px; font-weight:700; display:flex; align-items:center; gap:6px; }
.np-tag{ font-size:10px; font-weight:600; color:var(--module-1); background:#e7f6ec; padding:1px 8px; border-radius:20px; }
.np-d{ font-size:11.5px; color:var(--ink-3); margin-top:1px; }
.np-switch{
  width:28px; height:20px; border-radius:10px; background:#e9edf4;
  position:relative; flex:none; cursor:pointer;
  transition:background .2s, box-shadow .2s;
  box-shadow:inset 0 0 0 1px rgba(20,35,60,.05), inset 0 1px 2px rgba(20,35,60,.06);
}
.np-switch:hover{ background:#e2e8f0; }
.np-switch .np-knob{
  position:absolute; top:3px; left:3px; width:14px; height:14px; border-radius:50%;
  background:linear-gradient(180deg,#fff,#f4f6fa);
  box-shadow:0 1px 2px rgba(20,35,60,.25), 0 0 0 1px rgba(20,35,60,.08);
  transition:left .2s cubic-bezier(.34,1.4,.64,1), transform .15s;
}
.np-switch:active .np-knob{ transform:scale(.88); }
.np-switch.on{
  background:linear-gradient(180deg,var(--accent-2),var(--accent));
  box-shadow:inset 0 1px 1px rgba(255,255,255,.28), inset 0 -2px 3px rgba(12,28,62,.20), 0 1px 3px rgba(31,78,140,.30);
}
.np-switch.on .np-knob{
  left:11px;
  box-shadow:0 1px 2px rgba(12,28,62,.35), 0 0 0 1px rgba(255,255,255,.55) inset, 0 0 0 1px rgba(20,35,60,.06);
}
.np-switch.disabled{ opacity:.55; cursor:default; }
/* 子输入行：平滑展开/收起 */
.np-subrow{
  max-height:0; opacity:0; overflow:hidden; padding:0 2px;
  transition:max-height .25s ease, opacity .2s ease, padding .25s ease;
}
.np-subrow.open{ max-height:80px; opacity:1; padding:8px 2px 14px; }
.np-sub-label{ font-size:11px; font-weight:700; color:var(--ink-2); margin-bottom:6px; display:block; }
.np-sub-field{ display:flex; align-items:center; gap:8px; background:#fff; border:1px solid var(--line); border-radius:var(--radius-sm); padding:0 11px; transition:border-color .15s; }
.np-sub-field:focus-within{ border-color:var(--accent); }
.np-sub-field .np-sub-ic{ color:var(--accent); flex:none; display:flex; }
.np-sub-field.sms .np-sub-ic{ color:var(--amber); }
.np-sub-field input{
  width:100%; border:none; outline:none; background:transparent; padding:9px 0; font-size:13px;
}
.np-sub-field input::placeholder{ color:var(--ink-3); }
/* 操作区分隔线 */
.np-actions-divider{ border:none; border-top:1px dashed var(--line); margin:16px 0 0; }

/* 通知设置：绑定状态展示（接收地址取自信息绑定） */
.np-bound{ color:var(--accent); font-weight:600; }
.np-unbound{ color:var(--danger); }
.np-bound-hint{ display:flex; align-items:center; gap:6px; font-size:11.5px; color:var(--ink-3); padding:12px 2px 0; }
.np-bound-hint svg{ flex:none; color:var(--accent); }

/* 通话话术偏好弹窗：分段选择器 */
.cp-group{ padding:12px 0 2px; }
.cp-label{ font-size:12px; color:var(--ink-2); margin-bottom:8px; }
.cp-segs{ display:flex; flex-wrap:wrap; gap:8px; }
.cp-segs button{ flex:1; min-width:72px; border:1px solid var(--line); background:#fff; color:var(--ink-2); border-radius:8px; padding:8px 10px; font-size:12.5px; cursor:pointer; transition:all .15s ease; }
.cp-segs button.on{ background:var(--accent); border-color:var(--accent); color:#fff; font-weight:600; }
.cp-segs button:not(.on):hover{ border-color:var(--accent); color:var(--accent); }

/* 通话话术偏好弹窗：Step 2 扩展（分区标题 / 多选 chips / 合规输入 / 双列分段） */
.cp-wrap{ max-height:70vh; overflow:auto; padding-right:4px; }
.cp-sec-title{ font-size:12px; font-weight:700; color:var(--ink); margin:14px 0 2px; padding-top:10px; border-top:1px dashed var(--line); }
.cp-sec-title:first-child{ margin-top:0; padding-top:0; border-top:none; }
.cp-segs-2col button{ min-width:96px; }
.cp-chips{ display:flex; flex-wrap:wrap; gap:8px; }
.cp-chips button{ border:1px solid var(--line); background:#fff; color:var(--ink-2); border-radius:999px; padding:7px 18px; font-size:12.5px; cursor:pointer; transition:all .15s ease; }
.cp-chips button.on{ background:var(--accent); border-color:var(--accent); color:#fff; font-weight:600; }
.cp-chips button:not(.on):hover{ border-color:var(--accent); color:var(--accent); }
.cp-wrap textarea{ width:100%; border:1px solid var(--line); border-radius:8px; padding:9px 11px; font-size:12.5px; font-family:inherit; color:var(--ink); outline:none; resize:vertical; min-height:52px; box-sizing:border-box; background:#fff; }
.cp-wrap textarea:focus{ border-color:var(--accent); }
.cp-hint{ font-size:11px; color:var(--ink-3); margin-top:6px; line-height:1.5; }
.cp-warn{ color:var(--danger); }

/* 打卡日历 */
.cal-panel{ margin-bottom:14px; }
.cal-hd{ display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.cal-nav{ width:30px; height:30px; border-radius:8px; display:flex; align-items:center; justify-content:center; color:var(--ink-2); background:var(--bg); }
.cal-title{ font-size:14px; font-weight:700; }
.cal-chips{ display:flex; gap:6px; overflow-x:auto; padding-bottom:8px; margin-bottom:8px; }
.cal-chip{ flex:none; padding:5px 11px; border-radius:999px; background:var(--bg); color:var(--ink-2); font-size:12px; }
.cal-chip.on{ background:var(--accent); color:#fff; }
.cal-dow{ display:grid; grid-template-columns:repeat(7,1fr); text-align:center; font-size:11px; color:var(--ink-3); margin-bottom:4px; }
.cal-grid{ display:grid; grid-template-columns:repeat(7,1fr); gap:4px; }
.cal-cell{ aspect-ratio:1; border-radius:8px; border:1px solid var(--line); background:var(--bg-card); font-size:12px; display:flex; align-items:center; justify-content:center; color:var(--ink-2); }
.cal-cell.on{ background:var(--module-1); border-color:var(--module-1); color:#fff; }
.cal-cell.today{ box-shadow:0 0 0 2px var(--accent); }
.cal-cell.blank{ background:transparent; border-color:transparent; }
.cal-foot{ display:flex; align-items:center; gap:5px; font-size:12px; color:var(--ink-3); margin-top:10px; }

/* ============================================================
   我的 profile
   ============================================================ */
.profile-head{ text-align:center; padding:8px 0 18px; }
.profile-avatar{ width:66px; height:66px; border-radius:50%; background:linear-gradient(135deg,var(--accent),var(--accent-2)); color:#fff; font-size:28px; font-weight:800; display:flex; align-items:center; justify-content:center; margin:0 auto 10px; font-family:var(--serif); }
.profile-name{ font-size:19px; font-weight:800; }
.profile-role{ font-size:12px; color:var(--ink-3); margin-top:3px; }

/* ============================================================
   分成与结算 income
   ============================================================ */
.inc-tabs{ display:flex; gap:6px; background:var(--bg); border-radius:12px; padding:4px; margin-bottom:14px; }
.inc-tab{ flex:1; text-align:center; padding:9px 4px; border-radius:9px; font-size:13px; font-weight:600; color:var(--ink-3); cursor:pointer; }
.inc-tab.on{ background:#fff; color:var(--accent); box-shadow:var(--shadow); }
.inc-cards{ display:grid; grid-template-columns:repeat(3,1fr); gap:9px; margin-bottom:6px; }
.inc-card{ background:var(--bg-card); border:1px solid var(--line); border-radius:var(--radius); padding:13px; box-shadow:var(--shadow); }
.inc-card .v{ font-size:18px; font-weight:800; font-family:var(--serif); color:var(--amber); }
.inc-card.ok .v{ color:var(--module-1); }
.inc-card.blue .v{ color:var(--accent); }
.inc-card .l{ font-size:11px; color:var(--ink-3); margin-top:3px; }
.li-amt{ color:var(--accent); font-weight:800; }
.r-preview{ font-size:12px; color:var(--amber); font-weight:600; margin-top:6px; min-height:16px; }

/* ============================================================
   响应式：PC ≥1024px
   ============================================================ */
@media (min-width: 1024px){
  .sidebar{ display:flex; }
  .nav{ display:none; }
  .main{ border-left:1px solid var(--line); }
  #screen{ padding:20px 26px 40px; max-width:none; width:100%; margin:0 auto; }
  .fab{ bottom:26px; }
  .fab-menu{ bottom:92px; }
  .toast{ bottom:30px; }
  .menu-btn, .back-btn{ display:none; }
  /* PC 端有侧边栏，隐藏浮动 + 按钮（冗余） */
  .fab, .fab-menu, .fab-scrim{ display:none !important; }
  /* PC 两端点阵：申请看板两列 */
  .ov-grid{ grid-template-columns:repeat(4,1fr); }
  .modal{ border-radius:20px; align-items:center; margin-bottom:0; }
  .overlay{ align-items:center; }
  .rings{ grid-template-columns:repeat(4,1fr); }
  .quick-grid{ grid-template-columns:repeat(4,1fr); }
  /* 统一两列卡片网格（申请/模板/Bot/提醒） */
  .list-grid{ grid-template-columns:repeat(2,1fr); }
  .list-grid.grid-3{ grid-template-columns:repeat(3,1fr); }
  /* 工作台驾驶舱两列 */
  .dash-cols{ grid-template-columns:1fr 1fr; gap:0 22px; }
  /* 统一「个人中心」弹层：PC 左下角头像处向上抽拉 */
  .hub-panel{
    left:18px; right:auto; bottom:18px; width:340px; max-width:92vw; max-height:86vh;
    border-radius:18px; border:1px solid var(--line);
    transform:translateY(130%) scale(.94); transform-origin:bottom left;
    opacity:0; pointer-events:none;
    transition:transform .34s cubic-bezier(.22,1,.36,1), opacity .28s;
  }
  .hub-panel.show{ transform:translateY(0) scale(1); opacity:1; pointer-events:auto; }
}

/* ============================================================
   响应式：中屏 480-1023（H5 横屏/iPad）
   ============================================================ */
@media (min-width:480px) and (max-width:1023px){
  .ov-grid{ grid-template-columns:repeat(4,1fr); }
  .rings{ grid-template-columns:repeat(4,1fr); }
  .quick-grid{ grid-template-columns:repeat(4,1fr); }
}

/* ============================================================
   响应式：小屏 H5 <480px
   ============================================================ */
@media (max-width:479px){
  .ov-grid{ grid-template-columns:repeat(4,1fr); gap:6px; }
  .ov-v{ font-size:18px; }
  .rings{ grid-template-columns:repeat(4,1fr); gap:6px; }
  .quick-grid{ grid-template-columns:repeat(4,1fr); gap:6px; }
  .appline{ grid-template-columns:repeat(4,1fr); gap:6px; }
  .aline-stat b{ font-size:17px; }
  .field-row{ flex-direction:column; gap:0; }
  .date-chip{ display:none; }
  .modal{ max-width:100%; }
  .ca-hero{ padding:13px 14px; gap:11px; }
  .ca-hero-ic{ width:44px; height:44px; border-radius:12px; }
  .ca-hero-t h3{ font-size:16px; }
  .ca-hero-t p{ font-size:11px; }
  .ca-hero-btn{ padding:8px 12px; font-size:12px; }
}

/* ============================================================
   审计改造新增：分析图表 / 折叠区 / 筛选标签 / PC 分栏 / 行内操作
   ============================================================ */
/* 横向分布条（阶段分布 / 来源占比） */
.hchart{ display:flex; flex-direction:column; gap:8px; }
.hb-row{ display:flex; align-items:center; gap:8px; font-size:12px; }
.hb-label{ flex:0 0 76px; color:var(--ink-2); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hb-track{ flex:1; height:8px; border-radius:6px; background:#eef1f6; overflow:hidden; }
.hb-track i{ display:block; height:100%; border-radius:6px; transition:width .5s ease; }
.hb-val{ flex:0 0 30px; text-align:right; font-weight:700; color:var(--ink); font-family:var(--serif); }
.hchart-empty, .mb-empty{ font-size:12px; color:var(--ink-3); padding:16px 0; text-align:center; }

/* 迷你柱状图（到期趋势 / 分成趋势） */
.mb-chart{ display:flex; align-items:flex-end; gap:6px; height:120px; padding-top:8px; }
.mb-col{ flex:1; min-width:0; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; gap:5px; height:100%; }
.mb-bar{ width:100%; max-width:26px; border-radius:5px 5px 2px 2px; min-height:6px; }
.mb-label{ font-size:10px; color:var(--ink-3); white-space:nowrap; }

/* 分析区块容器 */
.an-grid{ display:grid; grid-template-columns:1fr; gap:10px; margin-bottom:14px; }
.an-card{ padding:14px; }
.an-card.an-wide{ grid-column:1 / -1; }
.an-title{ display:flex; align-items:center; gap:6px; font-size:13px; font-weight:700; color:var(--ink-2); margin-bottom:12px; }
.an-title svg{ color:var(--accent); }
.risk-item{ display:flex; align-items:center; gap:8px; padding:8px 10px; border-radius:9px; background:var(--bg); margin-bottom:6px; cursor:pointer; }
.risk-item:hover{ background:var(--accent-muted); }
.risk-ic{ display:inline-flex; color:var(--accent); flex:none; }
.risk-ic.danger{ color:var(--danger); }
.risk-name{ flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13px; font-weight:600; }

/* 首页「展开更多」折叠区（P3-09） */
.fold{ margin-top:4px; }
.fold-head{ display:flex; align-items:center; justify-content:center; gap:6px; width:100%; padding:11px 14px; background:var(--bg-card); border:1px solid var(--line); border-radius:var(--radius-sm); color:var(--ink-2); font-size:13px; font-weight:600; box-shadow:var(--shadow); }
.fold-head svg{ transition:transform .25s; }
.fold.open .fold-head svg{ transform:rotate(90deg); }
.fold-body{ display:none; margin-top:10px; }
.fold.open .fold-body{ display:block; }

/* 首页「今日必办」 */
.today-list{ display:flex; flex-direction:column; gap:8px; }
.today-item{ display:flex; align-items:center; gap:8px; padding:9px 11px; border-radius:9px; background:var(--bg); cursor:pointer; }
.today-item:hover{ background:var(--accent-muted); }
.td-p{ flex:none; font-size:11px; font-weight:700; padding:1px 7px; border-radius:999px; }
.td-txt{ flex:1; min-width:0; font-size:14px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.today-empty{ font-size:12.5px; color:var(--ink-3); text-align:center; padding:14px 0; }

/* 筛选状态标签（P2-05）：可见痕迹 + 一键清除 */
.filter-tags{ display:flex; flex-wrap:wrap; gap:6px; margin-bottom:12px; }
.filter-tag{ display:inline-flex; align-items:center; gap:5px; font-size:12px; color:var(--accent); background:var(--accent-muted); border:1px solid rgba(31,78,140,.15); padding:4px 8px 4px 11px; border-radius:999px; font-weight:600; }
.filter-tag .ft-x{ display:inline-flex; align-items:center; justify-content:center; width:18px; height:18px; border-radius:50%; color:var(--accent); }
.filter-tag .ft-x:hover{ background:rgba(31,78,140,.12); }

/* Toast 带操作按钮（删除 + 撤销等） */

/* 申请卡片行内快捷「登记」（P2-04） */
.ac-acts{ display:inline-flex; align-items:center; gap:8px; }
.ac-stage{ display:inline-flex; align-items:center; gap:4px; padding:5px 11px; border-radius:999px; background:var(--accent-muted); color:var(--accent); font-size:12px; font-weight:700; }
.ac-stage:hover{ background:var(--accent); color:#fff; }

/* PC 列表选中态 */
.app-card.sel, .list-item.sel{ border-color:var(--accent); box-shadow:0 0 0 2px rgba(31,78,140,.18); }

/* 空态引导辅助说明 */
.empty-tip{ max-width:300px; margin:10px auto 0; font-size:12px; color:var(--ink-3); line-height:1.8; }

/* PC 分栏（左列表 + 右详情，P1-03） */
@media (min-width:1024px){
  .split-view{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:18px; align-items:start; }
  .split-list{ min-width:0; }
  .split-detail{ position:sticky; top:14px; min-width:0; }
  .split-detail .app-detail, .split-detail #custDetail{ max-height:calc(100vh - 96px); overflow-y:auto; padding-right:4px; }
  /* PC 分析区块两列 */
  .an-grid{ grid-template-columns:1fr 1fr; }
}
/* ============================================================
   Bot 详情页（重构）：状态英雄卡 + 关键指标 + 信息卡片
   ============================================================ */
.bd-detail{ display:flex; flex-direction:column; gap:12px; padding-bottom:6px; }

/* ---- ① 状态英雄卡 ---- */
.bd-hero{
  position:relative; overflow:hidden;
  margin-top:14px; padding:20px 18px; border-radius:var(--radius);
  background:linear-gradient(135deg,#0b2239 0%,#1b4380 58%,#2f6bb8 100%);
  color:#fff; box-shadow:var(--shadow-lg);
}
.bd-glow{ position:absolute; border-radius:50%; pointer-events:none; }
.bd-glow-1{ right:-60px; top:-60px; width:210px; height:210px; background:radial-gradient(circle,rgba(255,255,255,.14),transparent 70%); }
.bd-glow-2{ left:-40px; bottom:-70px; width:180px; height:180px; background:radial-gradient(circle,rgba(255,255,255,.07),transparent 70%); }
.bd-hero-top{ position:relative; display:flex; align-items:center; gap:14px; }
.bd-hero-ic{
  flex:none; width:56px; height:56px; border-radius:16px;
  background:rgba(255,255,255,.16); color:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.22);
}
.bd-hero-info{ flex:1; min-width:0; }
.bd-hero-name{ font-size:20px; font-weight:800; letter-spacing:.3px; word-break:break-all; line-height:1.3; }
.bd-hero-sub{ font-size:12.5px; color:rgba(255,255,255,.82); margin-top:4px; }
.bd-hero-status{
  flex:none; display:inline-flex; align-items:center; gap:6px;
  font-size:12px; font-weight:700; padding:5px 11px; border-radius:999px; color:#fff; white-space:nowrap;
}
.bd-hero-status .bhs-dot{ width:7px; height:7px; border-radius:50%; background:currentColor; }
.bd-hero-status.online{ background:rgba(34,197,94,.92); }
.bd-hero-status.offline{ background:rgba(108,120,138,.88); }
.bd-hero-status.frozen{ background:rgba(239,68,68,.92); }
.bd-hero.has-warn{ padding-bottom:44px; }
.bd-hero-warn{
  position:absolute; left:0; right:0; bottom:0; display:flex; align-items:center; justify-content:center; gap:7px;
  font-size:12.5px; font-weight:600; padding:8px 12px; background:var(--amber); color:#fff;
}
.bd-hero-warn svg{ flex:none; }
.bd-hero-warn b{ font-weight:800; margin:0 2px; }

/* 英雄卡渠道徽标（第一行醒目位置：微信=品牌绿，网页=青） */
.bd-hero-badge{
  display:inline-flex; align-items:center; gap:5px;
  font-size:12px; font-weight:700; letter-spacing:.3px;
  padding:4px 11px; border-radius:999px; margin-bottom:9px;
  white-space:nowrap;
}
.bd-hero-badge svg{ flex:none; }
.bhb-wx{ background:#07C160; color:#fff; }
.bhb-web{ background:#0A6E7A; color:#fff; }
/* 网页助理英雄卡：青色浅色主题，与微信版深蓝渐变一眼拉开反差 */
.bd-hero.is-web{
  background:linear-gradient(135deg,#f2fbfd 0%,#ddf4f8 100%);
  color:#0c3b44; border:1px solid #B7EDF4;
  box-shadow:var(--shadow);
}
.bd-hero.is-web .bd-glow{ display:none; }
.bd-hero.is-web .bd-hero-name{ color:#0c3b44; }
.bd-hero.is-web .bd-hero-sub{ color:#3f7a85; }
.bd-hero.is-web .bd-hero-ic{
  background:rgba(10,110,122,.12); color:#0A6E7A;
  box-shadow:inset 0 0 0 1px rgba(10,110,122,.25);
}

/* ---- ② 关键指标条 ---- */
.bd-stats{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.bd-stat{
  background:var(--bg-card); border:1px solid var(--line); border-radius:var(--radius-sm);
  padding:12px 10px; text-align:center; box-shadow:var(--shadow);
  display:flex; flex-direction:column; gap:4px; min-width:0;
}
.bd-stat-num{ font-size:20px; font-weight:800; color:var(--ink); line-height:1.2; font-family:var(--serif); word-break:break-all; }
.bd-stat-num.danger{ color:var(--danger); }
.bd-stat-num.warn{ color:var(--amber); }
.bd-stat-num.bd-stat-st{ font-size:14px; font-weight:700; font-family:inherit; display:inline-flex; align-items:center; justify-content:center; gap:6px; }
.bd-stat-label{ font-size:11px; color:var(--ink-3); }

/* ---- ③ 信息卡片 ---- */
.bd-card{
  background:var(--bg-card); border:1px solid var(--line); border-radius:var(--radius);
  padding:15px 16px; box-shadow:var(--shadow);
}
.bd-card-title{ display:flex; align-items:center; gap:7px; font-size:13px; font-weight:700; color:var(--ink-2); margin-bottom:4px; }
.bd-card-title svg{ color:var(--accent); flex:none; }
.bd-grid{ display:grid; grid-template-columns:1fr 1fr; gap:0 18px; }
.bd-cell{ display:flex; flex-direction:column; gap:2px; padding:9px 0; border-bottom:1px solid #f1f4f9; min-width:0; }
.bd-cell:nth-last-child(-n+2){ border-bottom:none; }
.bd-k{ font-size:11.5px; color:var(--ink-3); }
.bd-v{ font-size:13.5px; font-weight:600; color:var(--ink); word-break:break-all; display:flex; align-items:center; }
.bd-v .status-dot{ flex:none; }

/* ---- ③.5 对话渠道卡：微信 BOT（微信/网页两个并行通道） / 网页助理（唯一渠道） ---- */
.bd-channels-card{ display:flex; flex-direction:column; gap:10px; }
.bd-channel{
  display:flex; gap:12px; align-items:flex-start;
  padding:14px; border-radius:10px; border:1px solid var(--line);
  background:#fcfdfe;
}
.bd-ch-wechat{ border-color:rgba(7,193,96,.32); background:linear-gradient(180deg,rgba(7,193,96,.055),#fff 68%); }
.bd-ch-web{ border-color:rgba(31,78,140,.22); background:linear-gradient(180deg,rgba(31,78,140,.045),#fff 68%); }
.bd-ch-web.is-only{ border-color:#B7EDF4; background:linear-gradient(180deg,#f3fcfd,#fff 68%); }
.bd-ch-ic{
  flex:none; width:40px; height:40px; border-radius:11px;
  display:flex; align-items:center; justify-content:center;
}
.bd-ch-ic-wx{ background:rgba(7,193,96,.12); color:#07A351; }
.bd-ch-ic-web{ background:var(--accent-muted); color:var(--accent); }
.bd-ch-web.is-only .bd-ch-ic-web{ background:#DDF7FB; color:#0A6E7A; }
.bd-ch-body{ flex:1; min-width:0; display:flex; flex-direction:column; gap:7px; }
.bd-ch-head{ display:flex; align-items:center; gap:8px; }
.bd-ch-name{ font-size:14px; font-weight:800; color:var(--ink); }
.bd-ch-tag{ font-size:10.5px; font-weight:700; padding:2px 8px; border-radius:999px; white-space:nowrap; }
.tag-wx{ background:rgba(7,193,96,.14); color:#07A351; }
.tag-web{ background:var(--accent-muted); color:var(--accent); }
.tag-only{ background:#DDF7FB; color:#0A6E7A; }
.bd-ch-st{
  margin-left:auto; display:inline-flex; align-items:center; gap:5px;
  font-size:11.5px; font-weight:600; color:var(--ink-3); white-space:nowrap;
}
.bd-ch-desc{ font-size:12.5px; line-height:1.65; color:var(--ink-2); }
.bd-ch-meta{ display:flex; align-items:baseline; gap:8px; min-width:0; }
.bd-ch-meta .bd-v{ font-size:12.5px; }
.bd-channel .btn{ align-self:flex-start; padding:8px 18px; }

/* ---- ④ 操作 ---- */
.bd-actions{ display:flex; flex-direction:column; gap:10px; }
.bd-actions .btn{ width:100%; }
.bd-actions-tip{ display:flex; align-items:center; justify-content:center; gap:6px; font-size:12px; color:var(--ink-3); padding-top:2px; }
.bd-actions-tip svg{ color:var(--ink-3); }

/* ---- ⑤ 档案助手（微信 Bot 学生档案管理）绑定 ---- */
.bd-portal-row{ display:flex; align-items:center; gap:8px; font-size:12px; color:var(--ink-2); padding:2px 0 8px; }
.bd-portal-row .bd-k{ line-height:1.6; }
.bd-pill{ display:inline-flex; align-items:center; gap:4px; padding:2px 8px; border-radius:99px; font-size:11px; font-weight:700; flex:none; }
.bd-pill.ok{ background:rgba(7,193,96,.12); color:#07A351; }
.bd-code-box{ text-align:center; padding:14px 10px; border-radius:10px; background:#f5f7fb; margin:4px 0 10px; }
.bd-code{ display:flex; justify-content:center; gap:8px; padding:10px 0 4px; }
.bd-code span{ display:inline-flex; align-items:center; justify-content:center; width:40px; height:50px; border-radius:8px; background:#fff; box-shadow:0 1px 3px rgba(15,35,70,.08); font-family:ui-monospace,SFMono-Regular,Consolas,monospace; font-size:24px; font-weight:800; color:var(--accent, #1f4e8c); letter-spacing:2px; }
.bd-code-meta{ margin-top:6px; font-size:12px; color:var(--ink-3); }
.bd-code-meta .bc-count{ font-size:13px; color:var(--accent, #1f4e8c); margin:0 2px; }
.bd-code-ok{ padding:16px 8px; font-size:15px; font-weight:700; color:#07A351; }
.bd-steps{ margin:0 0 10px; padding:10px 12px; border-radius:8px; background:#f5f7fb; font-size:12px; line-height:2; color:var(--ink-2); }
.bd-steps b{ color:var(--accent, #1f4e8c); margin-right:4px; }
.btn.danger{ color:#fff; background:#e5484d; }
.btn.ghost.danger{ color:#e5484d; background:transparent; }

@media (max-width:479px){
  .bd-grid{ grid-template-columns:1fr; }
  .bd-cell{ border-bottom:1px solid #f1f4f9; }
  .bd-cell:last-child{ border-bottom:none; }
  .bd-code{ gap:5px; }
  .bd-code span{ width:34px; height:44px; font-size:20px; }
  /* 渠道卡手机端：图标略缩、按钮整宽，长微信号不撑破布局 */
  .bd-channel{ padding:12px; gap:10px; }
  .bd-ch-ic{ width:36px; height:36px; border-radius:10px; }
  .bd-channel .btn{ width:100%; align-self:stretch; justify-content:center; }
  .bd-ch-meta{ flex-wrap:wrap; }
}

/* ============================================================
   获客引擎（acquisition）· 我的钩子 / 获客漏斗 / 线索跟进
   ============================================================ */

/* ---- 未开通渠道空态 ---- */
.acq-empty{ text-align:center; padding:40px 20px; }
.acq-empty-ic{ width:76px; height:76px; margin:0 auto 14px; border-radius:22px;
  display:flex; align-items:center; justify-content:center;
  background:var(--accent-muted); color:var(--accent); }
.acq-empty-t{ font-size:16px; font-weight:800; color:var(--ink); }
.acq-empty-s{ font-size:12.5px; color:var(--ink-3); line-height:1.8; margin-top:8px; max-width:420px; margin-left:auto; margin-right:auto; }

/* ---- 渠道名片 ---- */
.acq-hero{ display:flex; gap:13px; align-items:flex-start;
  background:linear-gradient(135deg, var(--bg-deep), #1d4a7c);
  border-radius:var(--radius); padding:18px; color:#fff; margin-bottom:6px; box-shadow:var(--shadow); }
.acq-hero-ic{ width:48px; height:48px; border-radius:14px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center; background:rgba(255,255,255,.14); }
.acq-hero-name{ font-size:17px; font-weight:800; }
.acq-hero-code{ display:flex; align-items:center; gap:8px; margin-top:6px;
  font-size:13px; font-weight:700; letter-spacing:1px; color:#ffe6a7; }
.acq-mini-btn{ border:1px solid rgba(255,255,255,.4); background:rgba(255,255,255,.12); color:#fff;
  font-size:11px; padding:2px 9px; border-radius:999px; cursor:pointer; }
.acq-mini-btn:hover{ background:rgba(255,255,255,.24); }
.acq-hero-sub{ font-size:12px; line-height:1.7; opacity:.82; margin-top:9px; }

/* ---- 专属落地链接 ---- */
.acq-link-txt{ font-size:13px; color:var(--ink-2); background:#f4f7fb; border:1px dashed var(--line);
  border-radius:var(--radius-sm); padding:11px 12px; word-break:break-all; line-height:1.6; }
.acq-link-acts{ display:flex; gap:10px; margin-top:12px; }
.acq-link-acts .btn{ flex:1; }

/* ---- 推广二维码 ---- */
.acq-qr-card{ text-align:center; }
.acq-qr-img{ width:180px; height:180px; border-radius:12px; border:1px solid var(--line);
  padding:8px; background:#fff; }
.acq-qr-fallback{ width:180px; height:180px; margin:0 auto; border-radius:12px; border:1px dashed var(--line);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px;
  color:var(--ink-3); font-size:12px; }
.acq-qr-tip{ font-size:12px; color:var(--ink-3); margin-top:10px; }
.acq-qr-acts{ display:flex; gap:10px; margin-top:12px; justify-content:center; }
.acq-qr-acts .btn{ flex:0 1 200px; }

/* ---- 推荐话术 ---- */
.acq-speech{ font-size:13.5px; color:var(--ink-2); background:#f4f7fb; border:1px solid var(--line);
  border-radius:var(--radius-sm); padding:12px 14px; line-height:1.8; margin-bottom:12px; }
.acq-speech-card .btn{ width:100%; }

/* ---- 底部提示条 ---- */
.acq-foot-tip{ display:flex; align-items:flex-start; gap:6px; margin:18px 2px 8px;
  font-size:12px; color:var(--ink-3); line-height:1.7; }

/* ---- 获客模块标注条：区分「获客(C端推广)」与「我的AI助理(bot创建)」 ---- */
.acq-mod-tip{ display:flex; align-items:flex-start; gap:8px; margin:2px 0 12px;
  background:#eef4ff; border:1px solid #c7d7f5; border-left:3px solid var(--accent);
  border-radius:10px; padding:10px 12px; font-size:12px; color:var(--ink-2); line-height:1.7; }
.acq-mod-tip svg{ color:var(--accent); flex-shrink:0; margin-top:2px; }
.acq-mod-tip b{ color:var(--accent); font-weight:700; }

/* ---- 获客漏斗：四环统计卡 ---- */
.acq-funnel-cards{ display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-bottom:14px; }
.acq-fcard{ padding:14px; position:relative; overflow:hidden; }
.acq-fcard::after{ content:""; position:absolute; left:0; top:0; bottom:0; width:3px; background:var(--fc); }
.acq-fcard-ic{ width:34px; height:34px; border-radius:9px; display:flex; align-items:center; justify-content:center;
  background:var(--ft); color:var(--fc); margin-bottom:9px; }
.acq-fcard-v{ font-size:22px; font-weight:800; font-family:var(--serif); color:var(--ink); }
.acq-fcard-l{ font-size:11px; color:var(--ink-3); margin-top:2px; }

/* ---- 本周 / 本月小卡 ---- */
.acq-week-row{ display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:4px; }
.acq-week-item{ display:flex; align-items:center; gap:12px; padding:14px; }
.acq-week-item .ov-ic{ margin-bottom:0; }
.acq-week-item:nth-child(1) .ov-ic{ background:var(--accent-muted); color:var(--accent); }
.acq-week-item:nth-child(2) .ov-ic{ background:#ede9fe; color:var(--module-5); }
.acq-week-v{ font-size:20px; font-weight:800; font-family:var(--serif); }
.acq-week-l{ font-size:11px; color:var(--ink-3); }

/* ---- 线索跟进：筛选胶囊 ---- */
.acq-tab{ display:inline-flex; align-items:center; gap:5px; font-size:12px; color:var(--ink-2);
  background:var(--bg-card); border:1px solid var(--line); padding:5px 12px; border-radius:999px;
  font-weight:600; cursor:pointer; }
.acq-tab.on{ background:var(--accent); border-color:var(--accent); color:#fff; }

/* ---- 线索列表项 ---- */
.acq-lead{ cursor:default; }
.acq-lead .li-t{ display:flex; justify-content:space-between; align-items:baseline; gap:8px; }
.acq-phone{ font-family:var(--serif); font-size:14px; font-weight:800; color:var(--ink-2); }
/* 线索需求描述：次要文字，两行截断 */
.acq-lead .li-note{
  margin-top:6px; font-size:12.5px; line-height:1.55; color:var(--ink-3);
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;
  overflow:hidden; word-break:break-all;
}
.acq-lead-acts{ display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.acq-act{ display:inline-flex; align-items:center; gap:4px; font-size:12px; font-weight:600;
  padding:5px 12px; border-radius:999px; border:1px solid var(--line);
  background:#fff; color:var(--ink-2); cursor:pointer; }
.acq-act:hover{ border-color:var(--accent); color:var(--accent); }
.acq-act.primary{ background:var(--accent); border-color:var(--accent); color:#fff; }
.acq-act.primary:hover{ filter:brightness(1.08); }
.acq-act.danger{ background:var(--danger-muted); border-color:var(--danger-muted); color:var(--danger); }
.acq-act.danger:hover{ filter:brightness(.97); }

/* ---- H5：四环卡改 2 列 ---- */
@media (max-width:1023px){
  .acq-funnel-cards{ grid-template-columns:repeat(2,1fr); gap:9px; }
}
@media (max-width:479px){
  .acq-qr-img{ width:150px; height:150px; }
  .acq-hero{ flex-direction:column; }
  .acq-link-acts{ flex-direction:column; }
}

/* ---- 工作台首页 · 获客概览 ---- */
.acq-dash-empty{ display:flex; align-items:center; gap:10px; color:var(--ink-2); font-size:13px; cursor:pointer;
  padding:6px 2px; }
.acq-dash-ic{ width:32px; height:32px; border-radius:9px; flex-shrink:0; display:flex; align-items:center; justify-content:center;
  background:var(--accent-muted); color:var(--accent); }
.acq-dash-t{ flex:1; line-height:1.5; }
.acq-dash-go{ color:var(--accent); font-weight:700; font-size:13px; }
.acq-dash-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:10px; cursor:pointer; position:relative; }
.acq-dash-cell{ text-align:center; padding:8px 2px; }
.acq-dash-cell .ov-ic{ width:34px; height:34px; margin:0 auto 6px; background:var(--accent-muted); color:var(--accent); }
.acq-dash-cell:nth-child(2) .ov-ic{ background:#ede9fe; color:var(--module-5); }
.acq-dash-cell:nth-child(3) .ov-ic{ background:#dcfce7; color:var(--module-1); }
.acq-dash-v{ font-size:20px; font-weight:800; font-family:var(--serif); }
.acq-dash-l{ font-size:11px; color:var(--ink-3); margin-top:2px; }
.acq-dash-go2{ position:absolute; right:2px; top:-2px; font-size:12px; color:var(--accent); font-weight:700; }
@media (max-width:479px){
  .acq-dash-grid{ grid-template-columns:repeat(3,1fr); }
  .acq-dash-cell:nth-child(3){ display:none; }
}

/* ---------- 通话助手：学生可搜索下拉组件 ---------- */
.ca-cust{ position:relative; flex:1; min-width:0; z-index:60; }
.ca-cust-trigger{ display:flex; align-items:center; justify-content:space-between; gap:8px; width:100%;
  padding:9px 11px; border:1px solid var(--line); border-radius:var(--radius-sm);
  background:#fff; color:var(--ink-2); font-size:13px; cursor:pointer; text-align:left; min-width:0; }
.ca-cust-trigger span{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; }
.ca-cust-trigger .ca-cust-arrow{ flex:none; color:var(--ink-3); transition:transform .15s; }
.ca-cust-trigger.open .ca-cust-arrow{ transform:rotate(180deg); }
.ca-cust-trigger.locked{ opacity:.55; cursor:not-allowed; background:var(--bg); }
.ca-cust-panel{ position:absolute; top:calc(100% + 6px); left:0; width:100%; min-width:240px; z-index:100;
  background:#fff; border:1px solid var(--line); border-radius:10px; box-shadow:0 8px 24px rgba(20,35,60,.14);
  overflow:hidden; display:flex; flex-direction:column; }
.ca-cust-panel.hidden{ display:none; }
.ca-cust-search{ width:100%; border:none; border-bottom:1px solid var(--line); padding:10px 12px;
  font-size:13px; outline:none; background:#fafbfc; border-radius:0; }
.ca-cust-list{ max-height:260px; overflow:auto; }
.ca-cust-item{ padding:9px 12px; cursor:pointer; border-bottom:1px solid var(--line); }
.ca-cust-item:hover{ background:var(--bg); }
.ca-cust-item-main{ display:flex; align-items:center; gap:6px; min-width:0; }
.ca-cust-item-name{ font-size:13px; color:var(--ink); font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ca-cust-item-sub{ font-size:11px; color:var(--ink-3); margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ca-cust-empty{ padding:16px 12px; font-size:12px; color:var(--ink-3); text-align:center; }
.ca-cust-new{ padding:10px 12px; cursor:pointer; font-size:13px; color:var(--accent);
  border-top:1px solid var(--line); background:#fafbfc; text-align:center; font-weight:600; }
.ca-cust-new:hover{ background:var(--bg); }
.ca-badge{ font-size:10px; line-height:1; padding:3px 6px; border-radius:20px; flex:none; font-weight:600; }
.ca-badge.ok{ background:rgba(22,163,74,.12); color:#16a34a; }
.ca-badge.warn{ background:rgba(217,119,6,.14); color:#b45309; }
.ca-badge.gray{ background:var(--bg); color:var(--ink-3); }

/* ============================================================
   通话助手 v2：AI 建议上浮 · 控制条瘦身 · 双向锚定 · 卡片层级化
   ============================================================ */
.ca-sug{ border-left:3px solid var(--accent) !important; }
.ca-sug .ca-sug-q{ background:var(--accent-muted); color:var(--accent); border-radius:6px; padding:3px 8px; font-size:12px; display:inline-block; margin-bottom:6px; line-height:1.55; }
.ca-live{ border-left:3px solid var(--module-1) !important; }
.ca-fin{ background:var(--bg-card); }
.ca-red-dot{ width:9px; height:9px; border-radius:50%; background:#dc2626; flex:none; animation:caBlink 1.2s ease-in-out infinite; }
@keyframes caBlink{ 0%,100%{ opacity:1; } 50%{ opacity:.25; } }
.ca-sg-btn{ float:right; margin:2px 0 0 8px; background:none; border:none; cursor:pointer; font-size:14px; opacity:.65; line-height:1; padding:2px; }
.ca-sg-btn:hover{ opacity:1; transform:scale(1.15); }
@keyframes caPulse{ 0%{ box-shadow:0 0 0 0 rgba(31,78,140,.28); } 100%{ box-shadow:0 0 0 12px rgba(31,78,140,0); } }
.ca-sug-new{ animation:caPulse 1.6s ease-out 1; }
@keyframes caSugFlash{ 0%,55%{ box-shadow:0 0 0 3px var(--amber), 0 8px 24px rgba(20,35,60,.14); } 100%{ box-shadow:0 0 0 0 rgba(217,119,6,0); } }
.ca-sug-flash{ animation:caSugFlash 1.6s ease 1; }
/* 知识回应流式打字机：输出中的光标闪烁动画 */
.ca-sug-text.typing::after{ content:"▍"; color:var(--accent); margin-left:1px; animation:caBlink 0.9s step-end infinite; }
@keyframes caBlink{ 0%,100%{opacity:1} 50%{opacity:0} }
.ca-ask-sticky{ position:sticky; bottom:0; background:var(--bg-card); padding-top:10px; margin-top:10px; z-index:1; }
@media (max-width:479px){
  .ca-ask-sticky{ position:static; }
  #caSuggestions{ max-height:420px !important; }
}

/* ===== 通话助手：统一布局容器（PC 双列 / H5 竖屏 / H5 横屏全屏） ===== */
.ca-fs-grid{ display:grid; gap:12px; }
.ca-fs-grid .card-ctrl{ grid-area:ctrl; }
.ca-fs-grid .card-trx{ grid-area:trx; min-width:0; }
.ca-fs-grid .card-sug{ grid-area:sug; min-width:0; display:flex; flex-direction:column; }
/* 横屏全屏按钮：仅移动端（<1024px）显示 */
.ca-fs-enter{ display:none; }
@media (max-width:1023px){ .ca-fs-enter{ display:inline-flex; } }
@media (min-width:1024px){
  /* PC 双列：左右工作卡等高对齐（底边齐平）；字幕区弹性填充剩余高度，右侧建议区自然高度带动整行 */
  .ca-fs-grid{ grid-template-columns:1.15fr 1fr; grid-template-areas:"ctrl ctrl" "trx sug"; grid-template-rows:auto minmax(420px, auto); }
  .ca-fs-grid .card-trx{ min-height:0; }
  .ca-fs-grid .card-trx #caTranscript{ max-height:none !important; flex:1; min-height:0; }
}
@media (max-width:1023px){
  .ca-fs-grid{ grid-template-columns:1fr; grid-template-areas:"ctrl" "trx" "sug"; }
}
/* ===== 通话助手 v3：状态条对齐 + 卡片头部统一 + 需求画像折叠 ===== */
#caStateBar{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.ca-card-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }
.ca-card-title{ display:flex; align-items:center; gap:6px; font-size:13px; font-weight:600; color:var(--ink); }
.ca-card-title svg{ color:var(--accent); }
.ca-card-foot{ display:flex; align-items:center; justify-content:space-between; margin-top:8px; font-size:11px; color:var(--ink-3); }
.ca-needs-block{ border-top:1px solid var(--line); margin-top:12px; }
.ca-needs-head{ display:flex; align-items:center; gap:8px; width:100%; background:none; border:none; padding:10px 0 6px; cursor:pointer; text-align:left; }
.ca-needs-title{ display:flex; align-items:center; gap:6px; font-size:13px; font-weight:600; color:var(--ink); }
.ca-needs-title svg{ color:var(--accent); }
.ca-needs-count{ margin-left:auto; font-size:11px; color:var(--ink-3); background:var(--bg); border:1px solid var(--line); padding:1px 8px; border-radius:999px; white-space:nowrap; }
.ca-needs-count.hot{ color:var(--accent); background:var(--accent-muted); border-color:transparent; }
.ca-needs-chev{ font-size:11px; color:var(--ink-3); transition:transform .18s ease; }
.ca-needs-block.open .ca-needs-chev{ transform:rotate(180deg); }
.ca-needs-body{ overflow:hidden; }
.ca-needs-block:not(.open) .ca-needs-body{ display:none; }
/* 学生画像：展开后内容较多，限制高度可滚动（全屏模式沿用 34vh 专属规则） */
.ca-needs-block.open .ca-needs-body{ max-height:62vh; overflow:auto; }
/* 画像分组标题 */
.ca-prof-group{ margin-top:10px; font-size:11px; font-weight:700; color:var(--ink-3); letter-spacing:.3px; }
.ca-prof-group:first-child{ margin-top:0; }
/* H5 横屏全屏（html.ca-fs + 横屏）：隐藏外壳；控制卡折叠为顶部通栏，左=实时字幕、右=知识回应 */
@media (max-width:1023px) and (orientation:landscape){
  html.ca-fs .topbar,
  html.ca-fs .group-tabs,
  html.ca-fs #nav,
  html.ca-fs .page-head{ display:none !important; }
  html.ca-fs .app-layout,
  html.ca-fs .main,
  html.ca-fs #screen{ height:100vh; }
  /* 键盘弹出适配：支持动态视口单位的真机用 100dvh，老浏览器/测试环境回退 100vh */
  @supports (height:1dvh){
    html.ca-fs .app-layout,
    html.ca-fs .main,
    html.ca-fs #screen{ height:100dvh; }
  }
  html.ca-fs #screen{
    max-width:none; width:100%; margin:0;
    padding:10px 14px;
    overflow:hidden;
  }
  /* 控制条通栏 + 左右两栏内容占满剩余高度，保证字幕/建议有充足空间 */
  html.ca-fs .ca-fs-grid{
    grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);
    grid-template-rows:auto minmax(0,1fr);
    grid-template-areas:"ctrl ctrl" "trx sug";
    height:100%;
    align-items:stretch;
  }
  /* 控制卡 → 顶部单行精简条：隐藏选择区/状态说明，操作按钮与状态条并排 */
  html.ca-fs .card-ctrl{
    align-self:start;
    display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px;
    padding:6px 10px !important;
  }
  /* 全屏下按钮紧凑化，保证一行放得下不换行；指示灯（开始前才需要）通话中隐藏 */
  html.ca-fs .card-ctrl .btn{ padding:5px 10px; font-size:12.5px; line-height:1.5; }
  html.ca-fs .card-ctrl .ca-lamps{ display:none !important; }
  html.ca-fs .card-ctrl #caSelBox{ display:none !important; }
  html.ca-fs .card-ctrl #caStatusMsg{ display:none !important; }
  html.ca-fs .card-ctrl .ca-ctrl-row{ margin-top:0 !important; }
  html.ca-fs .card-ctrl #caStartBtn{ display:none !important; }
  html.ca-fs .ca-fs-enter{ display:none !important; }
  html.ca-fs #caStateBar{ flex:1; min-width:0; }
  html.ca-fs .card-trx{ display:flex; flex-direction:column; min-height:0; }
  html.ca-fs .card-trx #caTranscript{ max-height:none !important; flex:1; min-height:0; }
  html.ca-fs .card-sug{ min-height:0; }
  html.ca-fs .card-sug #caSuggestions{ max-height:none !important; flex:1; min-height:0; }
  /* 需求画像展开时在建议区下方作为可滚动抽屉，不挤压字幕 */
  html.ca-fs .ca-needs-block.open .ca-needs-body{ max-height:34vh; overflow:auto; }
}

/* H5 竖屏全屏（html.ca-fs + 竖屏）：隐藏外壳；控制条顶部单行，实时字幕/知识回应上下占满 */
@media (max-width:1023px) and (orientation:portrait){
  html.ca-fs .topbar,
  html.ca-fs .group-tabs,
  html.ca-fs #nav,
  html.ca-fs .page-head{ display:none !important; }
  html.ca-fs .app-layout,
  html.ca-fs .main,
  html.ca-fs #screen{ height:100vh; }
  /* 键盘弹出适配：支持动态视口单位的真机用 100dvh，老浏览器/测试环境回退 100vh */
  @supports (height:1dvh){
    html.ca-fs .app-layout,
    html.ca-fs .main,
    html.ca-fs #screen{ height:100dvh; }
  }
  html.ca-fs #screen{
    max-width:none; width:100%; margin:0;
    padding:10px 12px;
    overflow:hidden;
  }
  /* 控制条通栏 + 上下两栏内容占满剩余高度，字幕/建议各占一半左右 */
  html.ca-fs .ca-fs-grid{
    grid-template-columns:1fr;
    grid-template-rows:auto minmax(0,1fr) minmax(0,1fr);
    grid-template-areas:"ctrl" "trx" "sug";
    height:100%;
    align-items:stretch;
  }
  /* 控制卡 → 顶部单行精简条：仅显示 暂停/停止 + 状态条，隐藏无关元素 */
  html.ca-fs .card-ctrl{
    align-self:start;
    display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px;
    padding:6px 10px !important;
  }
  /* 全屏下按钮紧凑化，保证一行放得下不换行；指示灯（开始前才需要）通话中隐藏 */
  html.ca-fs .card-ctrl .btn{ padding:5px 10px; font-size:12.5px; line-height:1.5; }
  html.ca-fs .card-ctrl .ca-lamps{ display:none !important; }
  html.ca-fs .card-ctrl #caSelBox{ display:none !important; }
  html.ca-fs .card-ctrl #caStatusMsg{ display:none !important; }
  html.ca-fs .card-ctrl #caStartBtn{ display:none !important; }
  html.ca-fs .card-ctrl .ca-ctrl-row{ margin-top:0 !important; }
  html.ca-fs .ca-fs-enter{ display:none !important; }
  html.ca-fs #caStateBar{ flex:1; min-width:0; }
  html.ca-fs .card-trx{ display:flex; flex-direction:column; min-height:0; }
  html.ca-fs .card-trx #caTranscript{ max-height:none !important; flex:1; min-height:0; }
  html.ca-fs .card-sug{ min-height:0; }
  html.ca-fs .card-sug #caSuggestions{ max-height:none !important; flex:1; min-height:0; }
  /* 板块隐藏后：建议行仅剩头部栏（auto 高度），字幕区占满剩余空间 */
  html.ca-fs.ca-sug-off .ca-fs-grid{ grid-template-rows:auto minmax(0,1fr) auto; }
  /* 竖屏全屏：学生画像默认隐藏（保障实时字幕 + 知识回应充分显示），点头部「学生画像」按钮以浮层展开 */
  html.ca-fs .card-sug{ position:relative; min-height:0; }
  html.ca-fs .card-sug .ca-card-head{ position:relative; z-index:7; background:var(--bg-card); border-radius:10px; }
  html.ca-fs .ca-needs-block{ display:none !important; }
  /* 浮层展开：盖住建议列表区域（不挤压字幕区），头部栏保持可见可点；画像内容可滚动 */
  html.ca-fs .ca-needs-block.needs-open{
    display:flex !important; flex-direction:column;
    position:absolute; top:0; left:0; right:0; bottom:0; z-index:5;
    margin:0; padding:12px;
    background:var(--bg-card);
    border:1px solid var(--line); border-radius:10px;
    overflow:hidden;
  }
  html.ca-fs .ca-needs-block.needs-open .ca-needs-body{ flex:1; min-height:0; max-height:none; overflow:auto; padding-right:2px; }
  /* 学生画像浮层切换按钮：仅竖屏全屏时显示（横屏全屏仍用原抽屉逻辑，不显示） */
  html.ca-fs .ca-needs-toggle{ display:inline-flex; align-items:center; padding:3px 8px; font-size:12px; }
  html.ca-fs .ca-needs-toggle.active{ color:var(--accent); border-color:var(--accent); }
}

/* ===== 全屏通话：新建议计数角标（仅全屏且有新增时显示，点击定位到建议列表） ===== */
.ca-sug-badge{ display:none; align-items:center; gap:4px; padding:2px 8px; border-radius:999px; font-size:12px; border:1px solid var(--line); color:var(--ink-3); background:var(--bg); cursor:pointer; flex:none; }
.ca-sug-badge.show{ display:inline-flex; }
.ca-sug-badge.on{ background:var(--accent); color:#fff; border-color:transparent; }

/* ===== 全屏通话：隐藏「知识回应 · 建议话术」板块（默认显示；隐藏后字幕区自动占满剩余空间） ===== */
/* 切换按钮：平时（非全屏）不显示，仅全屏通话时显示 */
/* 全屏控制条：暂停/停止等按钮只显示图标，文字折叠（降低空间占用） */
html.ca-fs .card-ctrl .ca-btn-txt{ display:none; }
/* 知识回应卡头部右侧：计数 + 场景 + 话术偏好（常驻） + 全屏专用按钮 */
.ca-sug-head-right{ display:flex; align-items:center; gap:8px; }
/* 通话话术偏好：标题行唯一入口（紧凑图标按钮，所有视图常驻） */
.ca-pref-icon-btn{
  flex:none; display:inline-flex; align-items:center; justify-content:center;
  width:28px; height:28px; padding:0; border-radius:var(--radius-sm);
  background:#fff; border:1px solid var(--line); color:var(--ink-2);
  cursor:pointer; transition:border-color .15s, color .15s;
}
.ca-pref-icon-btn:hover{ border-color:var(--accent); color:var(--accent); }
/* 切换按钮：平时（非全屏）不显示，仅全屏通话时显示（纯图标方形按钮，避免与标题文字重复） */
.ca-sug-toggle{ display:none; }
html.ca-fs .ca-sug-toggle{ display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; padding:0; font-size:12px; }
html.ca-fs .ca-sug-toggle.active{ color:var(--accent); border-color:var(--accent); }
/* 学生画像浮层切换按钮：平时（非全屏）不显示；竖屏全屏时的显示规则在竖屏 media 块内 */
.ca-needs-toggle{ display:none; }
/* 竖屏全屏画像浮层：浮层开关已由头部「学生画像」按钮承担，隐藏浮层内重复的折叠标题 */
html.ca-fs .ca-needs-block.needs-open .ca-needs-head{ display:none; }
/* 隐藏板块：仅折叠内容区，保留卡片头部栏（标题 + 切换按钮）作为恢复入口 */
html.ca-fs.ca-sug-off .card-sug #caSuggestions,
html.ca-fs.ca-sug-off .card-sug .ca-needs-block{ display:none !important; }


/* ============================================================
   学生统一档案（students.js）· 档案详情聚合页样式
   ============================================================ */
/* 待确认横幅 */
.st-pending-banner{ display:flex; align-items:center; gap:10px; background:#fef3c7; color:#b45309;
  border:1px solid #fde68a; border-radius:var(--radius); padding:12px 14px; margin-bottom:12px;
  font-size:13px; font-weight:600; flex-wrap:wrap; }
.st-pending-banner .btn{ margin-left:auto; background:#b45309; color:#fff; }
/* 档案头 */
.st-head{ padding:16px; }
.st-row1{ display:flex; align-items:center; gap:12px; }
.st-ava-box{ display:flex; align-items:center; gap:8px; flex:none; }
.st-ava-rel{ position:relative; }
.st-avatar{ width:58px; height:58px; border-radius:50%; background:var(--accent-muted); color:var(--accent);
  display:flex; align-items:center; justify-content:center; font-size:22px; font-weight:800; flex:none; }
.st-ava-img{ width:58px; height:58px; border-radius:50%; object-fit:cover; display:block; flex:none; background:var(--accent-muted); }
.st-ava-cam{ position:absolute; right:-3px; bottom:-3px; width:21px; height:21px; border-radius:50%;
  background:var(--accent); color:#fff; display:flex; align-items:center; justify-content:center;
  box-shadow:0 1px 4px rgba(20,35,60,.3); transition:background .16s, transform .16s; }
.st-ava-cam:hover{ background:var(--accent-2); transform:scale(1.08); }
.st-edit-icon{ width:30px; height:30px; border-radius:50%; border:1px solid var(--line); background:#fff;
  color:var(--ink-2); display:flex; align-items:center; justify-content:center; cursor:pointer;
  transition:color .16s, border-color .16s, background .16s; }
.st-edit-icon:hover{ color:var(--accent); border-color:var(--accent); background:var(--accent-muted); }
.st-id{ min-width:0; }
.st-name{ font-size:17px; font-weight:800; }
.st-badges{ display:flex; gap:6px; margin-top:6px; flex-wrap:wrap; }
/* 可编辑标签悬停反馈（漏斗状态 / 意向） */
.st-badges .st-tag-edit{ cursor:pointer; transition:box-shadow .16s, filter .16s; }
.st-badges .st-tag-edit:hover{ box-shadow:0 0 0 1.5px currentColor; }
.st-meta{ display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.st-meta-item{ display:inline-flex; align-items:center; gap:6px; font-size:12px; color:var(--ink-2);
  background:var(--bg); padding:5px 10px; border-radius:8px; }
.st-meta-item span{ color:var(--ink-3); }

/* 微信身份（P2）：openid 截断显示 + 复制按钮 */
.st-meta-item .st-openid{ color:var(--ink-2); font-family:ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing:.2px; }
.st-copy-btn{ display:inline-flex; align-items:center; justify-content:center; width:20px; height:20px;
  padding:0; border:1px solid var(--line); border-radius:6px; background:#fff; color:var(--ink-3);
  cursor:pointer; flex:none; transition:color .14s, border-color .14s; }
.st-copy-btn:hover{ color:var(--accent); border-color:var(--accent); }

/* 学生档案「来源 AI 助理」：助理已下线/已解绑时的降级样式 */
.st-meta-item.st-bot-off{ color:var(--ink-3); }
.st-meta-item .st-bot-state{ display:inline-block; margin-left:4px; padding:0 6px; border-radius:8px; font-size:10px; color:#9ca3af; background:#f3f4f6; line-height:16px; white-space:nowrap; }
.st-tags{ display:flex; gap:6px; flex-wrap:wrap; margin-top:12px; }
/* 申请画像卡（P1-1）：头部展示已填的申请画像字段 */
.st-portrait{ margin-top:12px; }
.st-portrait-card{ border:1px solid var(--line); border-radius:10px; background:#fff; padding:10px 12px; }
.st-portrait-head{ display:flex; align-items:center; gap:6px; font-size:12px; font-weight:700; color:var(--ink-2); margin-bottom:8px; }
.st-portrait-head svg{ color:var(--accent); }
.st-portrait-grid{ display:flex; flex-wrap:wrap; gap:6px; }
.st-port-item{ display:inline-flex; align-items:center; gap:6px; font-size:12px; color:var(--ink-2);
  background:var(--bg); border:1px solid var(--line); padding:5px 10px; border-radius:8px; }
.st-port-item svg{ color:var(--accent); flex:none; }
.st-port-k{ color:var(--ink-3); flex-shrink:0; }
.st-port-v{ font-weight:600; color:var(--ink); word-break:break-all; }
.st-portrait-empty{ display:flex; align-items:center; gap:8px; font-size:12px; color:var(--ink-3); }
.st-portrait-empty svg{ color:var(--ink-3); flex:none; }
/* 申请画像：按业务分组展示（背景 / 目标 / 规划 / 自定义） */
.st-port-group{ margin-top:8px; }
.st-port-group:first-child{ margin-top:0; }
.st-port-gh{ font-size:11px; font-weight:700; color:var(--ink-3); margin-bottom:6px; letter-spacing:.3px; }
.st-portrait-grid{ column-gap:8px; }
/* 编辑档案：自定义画像字段编辑行 */
#es-custom{ display:flex; flex-direction:column; gap:6px; margin-bottom:8px; }
.cf-row{ display:flex; gap:6px; align-items:center; }
.cf-row input{ flex:1; min-width:0; }
.cf-row .cf-k{ flex:0 0 40%; }
.cf-del{ flex:none; width:30px; height:30px; display:inline-flex; align-items:center; justify-content:center;
  border:1px solid var(--line); border-radius:8px; background:#fff; color:var(--ink-3); cursor:pointer; }
.cf-del:hover{ color:var(--danger); border-color:var(--danger); }
/* 编辑档案：添加自定义字段按钮 */
#es-addcf{ margin-bottom:4px; }
/* 编辑档案：申请画像区块提示条 */
.portrait-edit-tip{ display:flex; align-items:center; gap:6px; font-size:12px; color:var(--ink-3);
  background:var(--accent-muted); border-radius:8px; padding:8px 10px; margin:4px 0 10px; }
.portrait-edit-tip svg{ color:var(--accent); flex:none; }
.st-actions{ display:flex; gap:8px; margin-top:14px; flex-wrap:wrap; }
.st-actions .btn{ flex:1; min-width:104px; padding:8px 10px; font-size:13px; }

/* 跟进记录 */
.fu-head{ display:flex; justify-content:flex-end; margin-bottom:10px; }
.fu-item{ display:flex; gap:12px; padding:11px 0; border-bottom:1px solid var(--line); }
.fu-item:last-child{ border-bottom:none; }
.fu-dot{ width:9px; height:9px; border-radius:50%; background:var(--accent); margin-top:5px; flex:none; box-shadow:0 0 0 3px var(--accent-muted); }
.fu-body{ flex:1; min-width:0; }
.fu-content{ font-size:13.5px; line-height:1.6; color:var(--ink); }
.fu-top{ display:flex; align-items:flex-start; justify-content:space-between; gap:8px; }
.fu-meta{ display:flex; align-items:center; gap:8px; margin-top:6px; font-size:11px; color:var(--ink-3); flex-wrap:wrap; }
/* 跟进记录：编辑 / 删除操作 */
.fu-acts{ display:flex; gap:4px; flex:none; }

/* ---------- 结构化跟进（P0-1）：弹层 chips / 快捷日期 / 时间轴标签 ---------- */
.fu-chips .chip{ padding:5px 11px; font-size:12.5px; }
.fu-quick .chip{ padding:5px 9px; font-size:12px; color:var(--ink-3); }
.fu-date-row{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.fu-date-row input[type="date"]{ flex:1; min-width:130px; }
/* 时间轴：渠道标签（按渠道着色，视觉快速区分沟通方式） */
.fu-ch-tag{ background:#f1f5f9; color:var(--ink-2); }
/* 时间轴：学生反馈情绪标签 */
.fu-fb-positive{ background:#dcfce7; color:#16a34a; }
.fu-fb-neutral{ background:#e0f2fe; color:#0284c7; }
.fu-fb-concern{ background:#fee2e2; color:#dc2626; }
/* 时间轴：下一步徽标（琥珀色，突出"接下来要做什么"） */
.fu-ns-tag{ background:#fef3c7; color:#b45309; }

/* ---------- 详情页 Tab 化 + 动态时间轴（P0-2） ---------- */
.st-tabs{ display:flex; gap:6px; margin:14px 0 4px; overflow-x:auto; scrollbar-width:none; }
.st-tabs::-webkit-scrollbar{ display:none; }
.stab{ flex:none; padding:8px 15px; border-radius:20px; font-size:13px; font-weight:600;
  background:#fff; border:1px solid var(--line); color:var(--ink-2); cursor:pointer;
  transition:border-color .16s, color .16s, background .16s; white-space:nowrap; }
.stab em{ font-style:normal; font-size:11px; margin-left:2px; color:var(--ink-3); }
.stab.on{ background:var(--accent); border-color:var(--accent); color:#fff; }
.stab.on em{ color:rgba(255,255,255,.85); }
.st-pane{ animation:fadeUp .18s ease; }
@keyframes fadeUp{ from{ opacity:0; transform:translateY(4px);} to{ opacity:1; transform:none;} }

/* 概况 Tab · 下一步建议卡 */
.st-nextstep{ padding:13px 15px; border-left:3px solid var(--accent); }
.ns-head{ display:flex; align-items:center; justify-content:space-between; gap:8px;
  font-size:13.5px; font-weight:700; color:var(--ink); margin-bottom:4px; }
.ns-head .btn{ padding:4px 11px; font-size:12px; }
.ns-row{ display:flex; gap:9px; align-items:flex-start; padding:8px 0; border-bottom:1px dashed var(--line); }
.ns-row:last-child{ border-bottom:none; }
.ns-row svg{ margin-top:2px; color:var(--ink-3); }
.ns-row b{ display:block; font-size:11px; color:var(--ink-3); font-weight:600; margin-bottom:1px; }
.ns-row span{ font-size:13px; color:var(--ink); line-height:1.5; }
.ns-row.ns-overdue svg{ color:#dc2626; }
.ns-row.ns-overdue span{ color:#dc2626; font-weight:600; }

/* 概况 Tab · 动态时间轴 */
.tl-list{ padding:2px 0; }
.tl-item{ display:flex; gap:11px; padding:9px 0; border-bottom:1px solid var(--line); }
.tl-item:last-child{ border-bottom:none; }
.tl-dot{ width:8px; height:8px; border-radius:50%; margin-top:5px; flex:none; }
.tl-body{ flex:1; min-width:0; }
.tl-top{ display:flex; align-items:center; justify-content:space-between; gap:8px; }
.tl-kind{ font-size:11px; font-weight:700; color:var(--ink-2); display:inline-flex; align-items:center; gap:4px; }
.tl-time{ font-size:11px; color:var(--ink-3); }
.tl-content{ font-size:13px; color:var(--ink); line-height:1.55; margin-top:2px; word-break:break-word; }
.tl-meta{ display:flex; gap:6px; flex-wrap:wrap; margin-top:5px; }
.tl-more{ display:block; margin:10px auto 4px; }


.icon-btn{ width:26px; height:26px; display:inline-flex; align-items:center; justify-content:center;
  border:1px solid var(--line); border-radius:7px; background:#fff; color:var(--ink-3); cursor:pointer; transition:.12s; }
.icon-btn svg{ width:14px; height:14px; }
.icon-btn:hover{ color:var(--accent); border-color:var(--accent); }
.icon-btn.danger:hover{ color:var(--danger); border-color:var(--danger); }

/* 档案内申请列表 */
.st-app-list{ padding:0 14px; }
/* 申请档案列表：已录取院校摘要（P1-3） */
.ar-offer{ display:flex; align-items:center; gap:5px; margin-top:6px; font-size:12px; color:#16a34a; font-weight:600; }
.ar-offer svg{ flex:none; }
/* 申请详情：录取结果区块（P1-3） */
.ad-result{ padding:12px 14px; }
.ad-result-head{ display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:8px; }
.ad-result-title{ display:inline-flex; align-items:center; gap:6px; font-size:13px; font-weight:700; color:var(--ink); }
.ad-result-title svg{ color:#16a34a; }
.ad-offers{ display:flex; align-items:flex-start; gap:6px; font-size:12.5px; color:#16a34a; font-weight:600; line-height:1.5; margin-bottom:6px; }
.ad-offers svg{ flex:none; margin-top:2px; }
.ad-result-sum{ font-size:12.5px; color:var(--ink-2); line-height:1.6; background:var(--bg); border-radius:8px; padding:8px 10px; margin-bottom:8px; }
.ad-result-empty{ font-size:12px; color:var(--ink-3); padding:6px 0; }
.sr-list{ display:flex; flex-direction:column; gap:6px; }
.sr-item{ display:flex; align-items:center; gap:8px; padding:7px 10px; background:var(--bg); border:1px solid var(--line); border-radius:8px; font-size:12.5px; flex-wrap:wrap; }
.sr-item-school{ font-weight:700; color:var(--ink); }
.sr-item-note{ color:var(--ink-3); font-size:12px; flex:1; min-width:0; }
/* 编辑录取结果弹窗：逐校记录动态行 */
.sr-rows{ display:flex; flex-direction:column; gap:8px; margin:2px 0 10px; }
.sr-row{ display:flex; gap:8px; align-items:center; }
.sr-row .sr-school{ flex:2; }
.sr-row .sr-status{ flex:1; min-width:92px; }
.sr-row .sr-note{ flex:2; }
.sr-row .sr-del{ flex:none; width:30px; height:30px; border-radius:8px; border:1px solid var(--line); background:#fff; color:var(--ink-3); cursor:pointer; display:flex; align-items:center; justify-content:center; }
.sr-row .sr-del:hover{ color:#dc2626; border-color:#fecaca; background:#fef2f2; }
.sr-add-row{ margin-bottom:6px; }
@media (max-width:700px){
  .sr-row{ flex-direction:column; align-items:stretch; }
  .sr-row .sr-del{ align-self:flex-end; }
}
.app-row{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding:13px 0; border-bottom:1px solid var(--line); }
.app-row:last-child{ border-bottom:none; }
.ar-main{ min-width:0; }
.ar-name{ font-size:14px; font-weight:700; }
.ar-meta{ display:flex; gap:6px; flex-wrap:wrap; margin-top:6px; }
.ar-acts{ display:flex; gap:8px; flex:none; }
.ar-acts .btn{ padding:6px 10px; font-size:12px; }

/* 智能选校方案（学生档案详情页） */
.sp-head{ display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; padding:12px 14px; border-bottom:1px solid var(--line); }
.sp-head-tip{ font-size:12px; color:var(--ink-3); display:flex; align-items:center; gap:6px; min-width:0; flex:1; }
.sp-head .btn{ flex:none; }
.sp-list{ padding:0 14px; }
.sp-item{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding:13px 0; border-bottom:1px solid var(--line); }
.sp-item:last-child{ border-bottom:none; }
.sp-main{ min-width:0; flex:1; }
.sp-title{ font-size:14px; font-weight:700; display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.sp-title svg{ color:var(--accent); flex:none; }
.sp-meta{ display:flex; gap:6px; flex-wrap:wrap; margin-top:6px; }
.sp-acts{ display:flex; gap:8px; flex:none; }
.sp-acts .btn{ padding:6px 10px; font-size:12px; }
.sp-form-tip{ font-size:12px; color:var(--ink-3); background:var(--accent-muted); border-radius:8px; padding:8px 10px; margin-bottom:12px; display:flex; align-items:center; gap:6px; line-height:1.5; }
.sp-report-modal .modal-body{ padding:0 !important; }
.sp-report-body{ width:100%; height:60vh; min-height:340px; background:#f8fafc; border-radius:10px; overflow:hidden; }
.sp-report-body iframe{ width:100%; height:100%; border:0; background:#fff; }

/* 来源列表 / 官网账号 */
.src-item{ display:flex; align-items:center; gap:8px; padding:10px 0; border-bottom:1px solid var(--line); flex-wrap:wrap; }
.src-item:last-child{ border-bottom:none; }
.src-id{ font-size:12px; color:var(--ink-3); font-family:ui-monospace, SFMono-Regular, Menlo, monospace; }
/* 来源记录 · 通话助手语音记录（支持播放） */
.src-call-list{ flex-basis:100%; margin-top:6px; display:flex; flex-direction:column; gap:8px; }
.src-call{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:8px 10px; background:var(--bg); border:1px solid var(--line); border-radius:10px; }
.src-call audio{ width:100%; height:34px; }


/* 会话记录 */
.ses-item{ padding:11px 0; border-bottom:1px solid var(--line); }
.ses-item:last-child{ border-bottom:none; }
.ses-t{ font-size:13.5px; font-weight:600; display:flex; align-items:center; gap:6px; }
.ses-m{ font-size:11.5px; color:var(--ink-3); margin-top:4px; }

/* 微信对话（只读气泡流） */
.wx-chat{ display:flex; flex-direction:column; }
.wx-head{ display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.wx-head-title{ display:inline-flex; align-items:center; gap:6px; font-size:14px; font-weight:700; color:#07A351; }
.wx-head-title em{ font-style:normal; font-size:11px; font-weight:600; color:#07A351; background:rgba(7,193,96,.12); border-radius:10px; padding:2px 8px; }
.wx-head-range{ font-size:12px; color:var(--ink-3); }
.wx-readonly{ font-size:12px; color:var(--ink-3); line-height:1.6; margin:6px 0 4px; }
.wx-more{ display:flex; justify-content:center; margin:10px 0 4px; }
.wx-end{ text-align:center; font-size:12px; color:var(--ink-3); opacity:.7; margin:12px 0 4px; }
.wx-seg{ display:flex; align-items:center; gap:10px; margin:16px 0 10px; }
.wx-seg::before, .wx-seg::after{ content:""; flex:1; height:1px; background:var(--line); }
.wx-seg span{ flex:none; font-size:11.5px; color:var(--ink-3); }
.wx-row{ display:flex; flex-direction:column; margin:9px 0; max-width:82%; }
.wx-row.is-student{ align-self:flex-start; align-items:flex-start; }
.wx-row.is-consultant{ align-self:flex-start; align-items:flex-start; }
.wx-row.is-assistant{ align-self:flex-end; align-items:flex-end; }
.wx-who{ font-size:11px; color:var(--ink-3); margin:0 4px 3px; }
.wx-row.is-consultant .wx-who{ color:#07A351; font-weight:600; }
.wx-bubble{ position:relative; padding:10px 13px; border-radius:14px; font-size:13.5px; line-height:1.65;
  white-space:pre-wrap; word-break:break-word; overflow-wrap:anywhere; }
.wx-row.is-student .wx-bubble{ background:#fff; border:1px solid var(--line); border-top-left-radius:4px; color:var(--ink-1); }
.wx-row.is-consultant .wx-bubble{ background:#EAF8F0; border:1px solid rgba(7,163,81,.28);
  border-top-left-radius:4px; color:var(--ink-1); }
.wx-row.is-assistant .wx-bubble{ background:var(--accent-muted); border:1px solid rgba(31,78,140,.18);
  border-top-right-radius:4px; color:var(--ink-1); }
.wx-bubble a{ color:var(--accent); text-decoration:underline; word-break:break-all; }
.wx-time{ font-size:11px; color:var(--ink-3); opacity:.75; margin:3px 4px 0; }
.wx-empty{ display:flex; flex-direction:column; align-items:center; text-align:center; gap:6px; padding:34px 20px; color:#07A351; }
.wx-empty svg{ opacity:.8; }
.wx-empty-t{ font-size:14px; font-weight:600; color:var(--ink-1); margin-top:4px; }
.wx-empty-d{ font-size:12.5px; color:var(--ink-3); line-height:1.7; max-width:300px; }
.wx-empty .btn{ margin-top:10px; }
@media (max-width:479px){
  .wx-row{ max-width:90%; }
  .wx-bubble{ font-size:14px; }
}

/* 学生记忆 */
.mem-item{ padding:11px 0; border-bottom:1px solid var(--line); }
.mem-item:last-child{ border-bottom:none; }
.mem-t{ font-size:13.5px; font-weight:700; display:flex; align-items:center; gap:6px; }
.mem-m{ display:flex; gap:6px; flex-wrap:wrap; margin-top:6px; }
.mem-note{ font-size:12px; color:var(--ink-2); margin-top:6px; line-height:1.6; }
.mem-p{ font-size:11px; color:var(--ink-3); margin-top:4px; }

/* 漏斗状态流转 */
.st-flow{ display:flex; flex-direction:column; gap:8px; margin:14px 0 4px; }
.flow-opt{ display:flex; align-items:center; gap:10px; padding:11px 13px; border:1px solid var(--line);
  border-radius:10px; cursor:pointer; font-size:13.5px; font-weight:600; color:var(--ink-2); }
.flow-opt.on{ border-color:var(--accent); background:var(--accent-muted); color:var(--accent); }
.flow-dot{ width:10px; height:10px; border-radius:50%; flex:none; }

/* 手动合并 */
.merge-list{ margin:12px 0 4px; display:flex; flex-direction:column; gap:8px; }
.merge-item{ display:flex; align-items:center; gap:10px; padding:11px 13px; border:1px solid var(--line);
  border-radius:10px; cursor:pointer; flex-wrap:wrap; }
.merge-item:hover{ border-color:var(--accent); }
.mrg-cb{ flex:none; }
.mrg-name{ font-size:13.5px; font-weight:700; }
.mrg-meta{ font-size:12px; color:var(--ink-3); }
.mrg-src{ display:flex; gap:5px; flex-wrap:wrap; margin-left:auto; }

/* 弹层内申请详情（从档案进入） */
.modal-body{ max-height:60vh; overflow-y:auto; padding-top:2px; }

/* ============================================================
   首页「我的学生」（dashboard.js）· 统一学生列表
   ============================================================ */
/* 统计卡（复用 ov-grid / ov-card） */
.dash-stats{ margin-bottom:14px; }
.dash-stats .ov-card{ cursor:pointer; }
.dash-stats .ov-card.pending{ border-color:#fde68a; background:#fffbeb; }
.dash-stats .ov-card.pending .ov-ic{ background:#fef3c7; color:#b45309; }
.dash-stats .ov-card:hover{ border-color:var(--accent); }

/* 学生筛选条：漏斗 Tab + 关键词 */
.stu-filter{ display:flex; align-items:center; gap:10px; margin-bottom:10px; flex-wrap:wrap; }
.stu-filter .chips{ flex:1; min-width:0; }
.stu-filter .search-box{ flex:1 1 100%; min-width:0; max-width:none; } /* 移动端独占一行，避免挤压漏斗 Tab 筛选项 */

/* 来源标签筛选 */
.src-filter{ display:flex; gap:6px; flex-wrap:wrap; margin-bottom:12px; }
.src-filter .sf{ padding:5px 12px; border-radius:999px; font-size:11px; font-weight:600; background:#fff;
  border:1px solid var(--line); color:var(--ink-2); cursor:pointer; transition:border-color .16s, color .16s, background .16s; }
.src-filter .sf:hover:not(.on){ border-color:var(--accent); color:var(--accent); background:var(--accent-muted); }
.src-filter .sf.on{ background:var(--accent); border-color:var(--accent); color:#fff; }
.src-filter .sf .src-cnt{ display:inline-block; margin-left:4px; padding:0 5px; border-radius:999px; background:rgba(0,0,0,.08); font-size:10px; font-weight:700; line-height:14px; color:inherit; }
.src-filter .sf.on .src-cnt{ background:rgba(255,255,255,.28); }
/* 来源筛选「包含」语义提示（P0-3）：ⓘ 悬停解释多来源学生 */
.src-hint{ flex:none; width:20px; height:20px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center;
  font-size:11px; font-weight:700; color:var(--ink-3); background:#f1f5f9; border:1px solid var(--line);
  cursor:help; margin-top:2px; }
/* 更多筛选下拉（待跟进细分 / 意向 / 标签 / 排序） */
.src-filter .sf-sel{ padding:5px 12px; border-radius:999px; font-size:11px; font-weight:600; background:#fff; border:1px solid var(--line); color:var(--ink-2); cursor:pointer; transition:border-color .16s, color .16s, background .16s; max-width:190px; outline:none; }
.src-filter .sf-sel:hover{ border-color:var(--accent); color:var(--accent); }
.src-filter .sf-sel:focus{ border-color:var(--accent); }

/* 学生列表行 */
.stu-row{ display:flex; align-items:center; gap:12px; background:var(--bg-card); border:1px solid var(--line);
  border-radius:var(--radius); padding:13px 14px; margin-bottom:10px; box-shadow:var(--shadow); cursor:pointer;
  transition:border-color .18s, transform .18s, box-shadow .18s; }
.stu-row:hover{ transform:translateY(-1px); border-color:var(--accent); }
.stu-row.pending{ background:#fef3c7; border-color:#fde68a; }
.stu-row.pending:hover{ border-color:#f59e0b; }
/* 批量管理模式（P1）：复选框 */
.stu-cb{ flex:none; width:22px; height:22px; border-radius:7px; border:1.5px solid var(--line);
  background:#fff; display:inline-flex; align-items:center; justify-content:center; cursor:pointer;
  color:transparent; transition:background .14s, border-color .14s, color .14s; }
.stu-cb:hover{ border-color:var(--accent); }
.stu-cb.on{ background:var(--accent); border-color:var(--accent); color:#fff; }
/* 批量操作条 */
.stu-batch-bar{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; background:var(--accent-muted);
  border:1px solid var(--accent); border-radius:var(--radius); padding:9px 12px; margin-bottom:12px; }
.stu-batch-bar .sb-info{ font-size:12.5px; font-weight:700; color:var(--accent); margin-right:auto; }
.stu-batch-bar .sb-info b{ font-size:14px; }
.stu-batch-bar .btn{ padding:5px 12px; font-size:12.5px; }
/* 星标（P1） */
.stu-star{ flex:none; width:28px; height:28px; border-radius:9px; border:1px solid var(--line);
  background:#fff; color:var(--ink-3); display:inline-flex; align-items:center; justify-content:center;
  cursor:pointer; transition:color .15s, border-color .15s, background .15s; }
.stu-star:hover{ color:#f59e0b; border-color:#f59e0b; }
.stu-star.on{ color:#f59e0b; border-color:#f59e0b; background:#fffbeb; }
.stu-right{ display:flex; align-items:center; gap:8px; flex:none; }
/* 紧凑列表视图（P1） */
.stu-row-c{ gap:10px; padding:9px 13px; }
.stu-row-c .stu-ava{ width:30px; height:30px; font-size:12px; }
.stu-row-c .c-name{ flex:0 0 auto; display:flex; align-items:center; gap:6px; font-size:13px; font-weight:700;
  color:var(--ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:30%; }
.stu-row-c .c-name .badge, .stu-row-c .c-name .m-tag{ font-size:10px; padding:1px 6px; }
.stu-row-c .c-meta{ flex:1; min-width:0; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.stu-row-c .c-fu{ display:inline-flex; align-items:center; gap:4px; font-size:11.5px; color:var(--ink-3); white-space:nowrap; }
.stu-row-c .c-fu.danger{ color:#dc2626; font-weight:600; }
.stu-row-c .c-src{ flex:none; display:flex; gap:4px; align-items:center; }
.stu-row-c .c-src .m-tag{ font-size:10px; padding:1px 6px; }
/* 表格视图（默认）：横向网格，一屏扫视更多学生 */
.stu-table-wrap{ background:var(--bg-card); border:1px solid var(--line); border-radius:var(--radius);
  box-shadow:var(--shadow); overflow-x:auto; }
.stu-table{ width:100%; border-collapse:collapse; min-width:920px; }
.stu-table th{ text-align:left; font-size:11px; font-weight:700; color:var(--ink-3); background:#f6f8fb;
  padding:9px 10px; white-space:nowrap; border-bottom:1px solid var(--line); }
.stu-table td{ padding:8px 10px; font-size:12.5px; color:var(--ink); border-bottom:1px solid var(--line);
  vertical-align:middle; white-space:nowrap; }
.stu-table tbody tr:last-child td{ border-bottom:none; }
/* 表格行覆盖 .stu-row 的卡片式 flex/色条/hover 位移 */
.stu-table tr.stu-row{ display:table-row; position:static; overflow:visible; cursor:pointer; }
.stu-table tr.stu-row::before{ display:none; }
.stu-table tr.stu-row:hover{ transform:none; background:var(--accent-muted); }
.stu-table tr.stu-row.pending{ background:#fffdf5; }
.stu-table tr.stu-row.pending:hover{ background:#fdf3d5; }
.stu-table .tb-lead{ display:flex; align-items:center; gap:6px; }
.stu-table .tb-name{ font-weight:700; color:var(--ink); max-width:180px; overflow:hidden; text-overflow:ellipsis; }
.stu-table .tb-name .badge, .stu-table .tb-name .m-tag{ font-size:10px; padding:1px 6px; }
.stu-table .tb-phone{ font-variant-numeric:tabular-nums; color:var(--ink-2); }
.stu-table .tb-src{ max-width:150px; overflow:hidden; text-overflow:ellipsis; }
.stu-table .tb-src .m-tag{ font-size:10px; padding:1px 6px; }
.stu-table .tb-fu{ color:var(--ink-3); font-variant-numeric:tabular-nums; }
.stu-table .tb-fu.danger{ color:#dc2626; font-weight:700; }
.stu-table .tb-fu.today{ color:#d97706; font-weight:700; }
.stu-table .tb-dim{ color:var(--ink-3); opacity:.55; font-size:12px; }
/* 最近沟通列：两行截断（摘要+下一步） */
.stu-table .tb-td-talk{ max-width:260px; white-space:normal; }
.stu-table .tb-talk{ font-size:12px; color:var(--ink-2); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.stu-table .tb-ns{ display:flex; align-items:center; gap:4px; font-size:11.5px; color:var(--accent);
  margin-top:2px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.stu-table .tb-ns svg{ flex:none; }
.stu-table .tb-time{ color:var(--ink-3); font-variant-numeric:tabular-nums; font-size:12px; }
.stu-table .tb-acts .stu-quick{ display:inline-flex; align-items:center; gap:4px; }
/* 视图切换（P1） */
.view-toggle{ display:inline-flex; gap:4px; flex:none; }
.view-toggle .vt{ width:30px; height:30px; border-radius:9px; border:1px solid var(--line); background:#fff;
  color:var(--ink-3); display:inline-flex; align-items:center; justify-content:center; cursor:pointer; }
.view-toggle .vt.on{ background:var(--accent); border-color:var(--accent); color:#fff; }
/* 最近查看（P1） */
.stu-recent{ display:flex; align-items:center; gap:6px; margin:0 0 12px; overflow-x:auto; scrollbar-width:none; }
.stu-recent::-webkit-scrollbar{ display:none; }
.sr-t{ flex:none; font-size:11px; font-weight:700; color:var(--ink-3); }
.sr-chip{ flex:none; padding:4px 11px; border-radius:999px; font-size:11.5px; background:#fff;
  border:1px solid var(--line); color:var(--ink-2); cursor:pointer; white-space:nowrap; }
.sr-chip:hover{ border-color:var(--accent); color:var(--accent); }
/* 阶段 SOP 检查清单（P1） */
.st-sop-card{ padding:13px 15px; border-left:3px solid #16a34a; }
.sop-head{ display:flex; align-items:center; gap:7px; font-size:13.5px; font-weight:800; color:var(--ink); }
.sop-head svg{ color:#16a34a; }
.sop-prog{ margin-left:auto; font-size:11.5px; font-weight:700; color:var(--ink-3); }
.sop-prog[data-all="1"]{ color:#16a34a; }
.sop-bar{ height:6px; border-radius:3px; background:#eef1f6; margin:9px 0 4px; overflow:hidden; }
.sop-bar i{ display:block; height:100%; background:#16a34a; border-radius:3px; transition:width .3s ease; }
.sop-items{ display:flex; flex-direction:column; }
.sop-item{ display:flex; align-items:center; gap:9px; padding:7px 2px; font-size:13px; color:var(--ink);
  cursor:pointer; user-select:none; border-bottom:1px dashed var(--line); }
.sop-item:last-child{ border-bottom:none; }
.sop-item .sop-cb{ flex:none; width:18px; height:18px; border-radius:6px; border:1.5px solid var(--line);
  background:#fff; display:inline-flex; align-items:center; justify-content:center; color:transparent; }
.sop-item.done{ color:var(--ink-3); }
.sop-item.done .sop-cb{ background:#16a34a; border-color:#16a34a; color:#fff; }
.sop-item.done::after{ content:"已完成"; font-size:10.5px; color:#16a34a; margin-left:auto; font-weight:600; }
.sop-tip{ display:flex; align-items:center; gap:5px; margin-top:8px; font-size:11px; color:var(--ink-3); }
/* 「只看我的」口径标识（P1） */
.scope-tag{ display:inline-flex; align-items:center; gap:4px; font-size:10.5px; font-weight:700;
  color:var(--accent); background:var(--accent-muted); padding:2px 8px; border-radius:999px; margin-left:6px; }
/* 移动端详情底部快捷栏（P1） */
.st-mobile-bar{ position:fixed; left:0; right:0; bottom:0; z-index:60; display:flex; gap:6px;
  background:#fff; border-top:1px solid var(--line); padding:8px 10px calc(8px + env(safe-area-inset-bottom));
  box-shadow:0 -4px 16px rgba(15,23,42,.06); }
.smb-btn{ flex:1; display:flex; flex-direction:column; align-items:center; gap:2px; padding:7px 4px;
  border:1px solid var(--line); border-radius:10px; background:#fff; color:var(--ink-2); font-size:11px;
  font-weight:600; cursor:pointer; text-decoration:none; }
.smb-btn svg{ color:var(--accent); }
.smb-btn:active{ background:var(--accent-muted); }
.smb-btn.disabled{ opacity:.4; }
.smb-btn.disabled svg{ color:var(--ink-3); }
@media (max-width:640px){
  /* 详情内容底部留白，避免被固定快捷栏遮挡 */
  #screen .st-tabs + .st-pane{ padding-bottom:72px; }
}
/* 数据管理（P2）：导出 / 标签 / 字段 / 交接单弹窗 */
.exp-row{ display:flex; align-items:center; gap:11px; padding:11px 2px; border-bottom:1px solid var(--line); }
.exp-row:last-child{ border-bottom:none; }
.exp-row > svg{ color:var(--accent); }
.exp-meta{ flex:1; min-width:0; }
.exp-t{ font-size:13.5px; font-weight:700; color:var(--ink); }
.exp-d{ font-size:11.5px; color:var(--ink-3); margin-top:1px; }
.tg-item{ display:flex; align-items:center; gap:8px; padding:9px 4px; border-bottom:1px dashed var(--line); }
.tg-item:last-child{ border-bottom:none; }
.tg-name{ flex:1; font-size:13px; font-weight:600; color:var(--ink); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tg-count{ flex:none; font-size:11px; color:var(--ink-3); }
.tg-item .btn{ padding:4px 9px; font-size:11.5px; flex:none; }
.tg-input{ flex:1; min-width:0; border:1px solid var(--line); border-radius:8px; padding:6px 10px; font-size:13px; }
.stu-row.pending .stu-ava{ background:#fff7e6; color:#b45309; }
.stu-ava{ width:42px; height:42px; border-radius:50%; background:var(--accent-muted); color:var(--accent);
  display:flex; align-items:center; justify-content:center; font-size:17px; font-weight:800; flex:none; }
.stu-main{ flex:1; min-width:0; }
.stu-name{ font-size:15px; font-weight:700; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.stu-meta{ display:flex; gap:6px; flex-wrap:wrap; margin-top:6px; }
/* 次要标签组（来源/昵称/归属业务员）：移动端折叠隐藏，精简卡片 */
.stu-extra{ display:inline-flex; gap:6px; flex-wrap:wrap; }
@media (max-width:700px){ .stu-extra{ display:none; } }
.stu-follow{ font-size:11px; color:#b45309; display:flex; align-items:center; gap:4px; margin-top:6px; }
.stu-follow.overdue{ color:var(--danger); font-weight:700; }
/* 今日到期（橙色强调，区别于逾期红色） */
.stu-follow.today{ color:#ea580c; font-weight:700; }
.stu-follow.today em{ background:#f59e0b; }
.stu-right{ flex:none; display:flex; flex-direction:column; align-items:flex-end; gap:6px; }
.stu-empty{ text-align:center; color:var(--ink-3); font-size:13px; padding:44px 16px; line-height:1.9; }
.stu-empty .e{ display:flex; justify-content:center; margin-bottom:10px; color:var(--ink-3); opacity:.55; }
.stu-loadmore{ text-align:center; padding:6px 0 16px; }
.stu-loadmore .btn{ padding:8px 26px; }

/* 学生列表卡片在 PC 端保持单列更利于阅读 */
@media (min-width:1024px){
  .stu-list{ display:block; }
}


/* ============================================================
   顾问工作台 · 工作台首页（dashboard.js）配套样式
   问候横幅 / 统计卡 / 漏斗筛选 / 学生列表卡片化 / 待确认高亮
   ============================================================ */

/* ---------- 问候横幅 ---------- */
.dash-hero{
  position:relative;
  border-radius:18px;
  padding:16px 18px;
  margin-bottom:14px;
  color:#fff;
  background:linear-gradient(135deg, #0f2740 0%, #1f4e8c 62%, #2f6bb8 100%);
  box-shadow:0 10px 28px rgba(15,39,64,.28);
  overflow:hidden;
  isolation:isolate;
}
.dash-hero::before,
.dash-hero::after{
  content:"";
  position:absolute;
  border-radius:50%;
  z-index:-1;
}
.dash-hero::before{ right:-48px; top:-58px; width:200px; height:200px; background:radial-gradient(circle, rgba(255,255,255,.16), transparent 68%); }
.dash-hero::after{ left:-42px; bottom:-72px; width:160px; height:160px; background:radial-gradient(circle, rgba(47,107,184,.55), transparent 70%); }
.dash-hero-date{ font-size:11.5px; letter-spacing:.6px; opacity:.85; }
.dash-hero-greet{ font-size:18.5px; font-weight:800; margin-top:5px; line-height:1.3; }
.dash-hero-quote{ font-size:12px; margin-top:7px; opacity:.92; line-height:1.55; }

/* 横幅内「新建学生」按钮：移动端隐藏（FAB 承担入口），PC 端显示半透明描边按钮 */
.dash-hero-add{
  position:absolute; top:14px; right:16px; z-index:1;
  display:inline-flex; align-items:center; gap:5px;
  padding:7px 14px; font-size:13px; font-weight:600; line-height:1.4;
  color:#fff; background:rgba(255,255,255,.13);
  border:1px solid rgba(255,255,255,.5); border-radius:10px;
  cursor:pointer; transition:background .18s;
}
.dash-hero-add:hover{ background:rgba(255,255,255,.25); }
@media (min-width:1024px){
  .dash-hero-date, .dash-hero-greet, .dash-hero-quote{ padding-right:110px; }
}

/* 移动端隐藏工作台标题头，避免与问候横幅视觉重复 */
@media (max-width:1023px){
  .dash-head{ display:none; }
}

/* ---------- 统计卡（dash-stats）卡片式重构 ---------- */
.dash-stats{ margin-bottom:16px; }
.dash-stats .ov-card{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  cursor:pointer;
  position:relative;
  transition:border-color .18s, transform .18s, box-shadow .18s;
}
.dash-stats .ov-card:active{ transform:scale(.98); }
.dash-stats .ov-card-ic{
  width:36px; height:36px; border-radius:10px;
  display:flex; align-items:center; justify-content:center;
  background:var(--tint); color:var(--color);
  flex:none;
}
.dash-stats .ov-card-body{ flex:1; min-width:0; }
.dash-stats .ov-v{ font-size:20px; font-weight:800; font-family:var(--serif); line-height:1.1; }
.dash-stats .ov-l{ font-size:11px; color:var(--ink-3); margin-top:3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dash-stats .ov-card-go{
  color:var(--ink-3); opacity:.45;
  display:flex; flex:none;
  transition:opacity .18s, transform .18s;
}
/* 移动端统计卡 2 列布局 */
@media (max-width:1023px){
  .dash-stats.ov-grid{ grid-template-columns:repeat(2,1fr); gap:10px; }
}
/* PC 端统计卡 4 列 + 悬停动效 */
@media (min-width:1024px){
  .dash-stats.ov-grid{ grid-template-columns:repeat(4,1fr); gap:10px; }
  .dash-stats .ov-card-go{ opacity:0; }
  .dash-stats .ov-card:hover{ border-color:var(--accent); box-shadow:0 6px 18px rgba(20,35,60,.1); transform:translateY(-1px); }
  .dash-stats .ov-card:hover .ov-card-go{ opacity:.7; transform:translateX(2px); }
}

/* ---------- 漏斗 Tab 横向滚动 ---------- */
.chips-scroll{
  display:flex;
  flex-wrap:nowrap;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  -ms-overflow-style:none;
  padding-bottom:2px;
}
.chips-scroll::-webkit-scrollbar{ display:none; }
.chips-scroll .chip{ flex:none; white-space:nowrap; }
.stu-filter{ margin-bottom:12px; }

/* ---------- 关键词搜索框 ---------- */
.search-block{
  width:100%;
  display:flex;
  align-items:center;
  gap:6px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:20px;
  padding:9px 14px;
  color:var(--ink-3);
  margin-bottom:12px;
  box-shadow:0 1px 2px rgba(20,35,60,.04);
}
.search-block input{ flex:1; border:none; outline:none; font-size:13px; background:transparent; }
@media (min-width:1024px){
  .stu-filter{ display:grid; grid-template-columns:minmax(0,1fr); align-items:center; gap:10px; } /* 桌面端改用 grid 单列，搜索框与筛选标签各自独占一行，避免挤压遮挡 */
  .stu-filter .search-box{ order:-1; width:100%; max-width:420px; justify-self:start; }
  .search-block{ margin-left:0; }
}

/* ---------- 来源筛选横向滚动 ---------- */
.src-scroll{
  flex-wrap:nowrap;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  -ms-overflow-style:none;
  padding-bottom:2px;
}
.src-scroll::-webkit-scrollbar{ display:none; }
.src-scroll .sf{ flex:none; white-space:nowrap; }

/* ---------- 学生行卡片 + 状态色条 + 右箭头 ---------- */
.stu-row{ position:relative; overflow:hidden; }
.stu-row::before{
  content:"";
  position:absolute;
  left:0; top:0; bottom:0;
  width:4px;
  background:var(--stu-color, #64748b);
}
.stu-row-pending::before{ --stu-color:#f59e0b; }
.stu-row-lead::before{ --stu-color:#3b82f6; }
.stu-row-contacted::before{ --stu-color:#8b5cf6; }
.stu-row-signed::before{ --stu-color:#10b981; }
.stu-row-applying::before{ --stu-color:#06b6d4; }
.stu-row-closed::before{ --stu-color:#64748b; }
.stu-row-lost::before{ --stu-color:#e11d48; }
/* 待确认学生行高亮（浅黄底 + 琥珀边框 + 头像配色） */
.stu-row.pending{ background:#fffdf5; border-color:#f7e6bd; }
.stu-row.pending:hover{ border-color:#f59e0b; }
.stu-row.pending .stu-ava{ background:#fff3d6; color:#b45309; }
.stu-chev{
  color:var(--ink-3); opacity:.4;
  display:flex; flex:none;
  transition:opacity .18s, transform .18s;
}
.stu-row:hover .stu-chev{ opacity:.85; transform:translateX(2px); }
/* 逾期/待跟进红色角标 */
.stu-follow em{
  font-style:normal;
  font-size:10px; font-weight:700;
  color:#fff; background:var(--danger);
  padding:1px 6px; border-radius:999px;
  margin-left:3px;
}

/* 移动端学生行卡片化（圆角 + 大头像 + 大字号） */
@media (max-width:1023px){
  .stu-row{ border-radius:16px; padding:14px 12px; margin-bottom:10px; }
  .stu-ava{ width:44px; height:44px; font-size:18px; }
  .stu-name{ font-size:15px; }
  .stu-follow{ margin-top:6px; }
}
.ca-sug-time{ font-size:11px; color:var(--ink-3); white-space:nowrap; flex-shrink:0; line-height:1.6; }

/* 通话场景（Step 1 场景自适应）：场景徽标 + 场景下拉（克制中性样式） */
.ca-scene-tag{ display:inline-flex; align-items:center; gap:4px; font-size:11px; color:var(--ink-2);
  background:#eef1f6; border:1px solid var(--line); padding:1px 8px; border-radius:999px; white-space:nowrap; line-height:1.5; }
.ca-scene-select{ font-size:12px; color:var(--ink-2); background:var(--bg-card); border:1px solid var(--line);
  border-radius:8px; padding:3px 6px; max-width:132px; outline:none; cursor:pointer; }

/* ============================================================
   2026-08-11 UI 交互重构 v4：工作台首页 + 通话助手
   三档卡片 / 品牌渐变 / 今日必办 / 行内快捷 / 搜索高亮 / 筛选痕迹
   REC 呼吸 / 建议强调 / 状态灯 / 学生详情折叠 / 收尾闭环 / 导览 / 空态插画
   ============================================================ */

/* ---------- 设计变量补充 ---------- */
:root{
  --grad-brand: linear-gradient(135deg, #0f2740 0%, #1f4e8c 62%, #2f6bb8 100%);
  --grad-brand-soft: linear-gradient(135deg, #eaf1fb 0%, #f5f9ff 100%);
  --card-main-bg: #f5f9ff;
  --card-sub-bg: #f8fafc;
}

/* ---------- 三档卡片：主卡 / 标准卡 / 副卡 ---------- */
.card-main{
  background:var(--card-main-bg);
  border:1px solid #cfe0f5;
  border-left:4px solid var(--accent);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:16px;
}
.card-sub{
  background:var(--card-sub-bg);
  border:1px solid var(--line);
  border-radius:var(--radius-sm);
  padding:12px 14px;
}
.grad-text{
  background:var(--grad-brand);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

/* ---------- 今日必办（首页行动型主页核心） ---------- */
.dash-todo{ padding:14px 16px; margin-bottom:14px; }
.dash-todo-head{ display:flex; align-items:center; gap:8px; margin-bottom:10px; }
.dash-todo-title{ display:flex; align-items:center; gap:7px; font-size:13.5px; font-weight:800; color:var(--ink); }
.dash-todo-title svg{ color:var(--accent); }
.dash-todo-count{ margin-left:auto; font-size:11px; font-weight:700; color:var(--accent); background:var(--accent-muted);
  padding:2px 9px; border-radius:999px; }
/* 「查看全部」入口（P0-4）：今日必办卡右上角，跳学生档案待跟进筛选 */
.dash-todo-all{ margin-left:2px; font-size:11.5px; font-weight:700; color:var(--accent);
  cursor:pointer; white-space:nowrap; text-decoration:none; padding:2px 4px; border-radius:6px; }
.dash-todo-all:hover{ background:var(--accent-muted); }
/* 今日完成进度条（P1） */
.dash-progress{ display:flex; align-items:center; gap:10px; margin:2px 0 10px; }
.dp-bar{ flex:1; height:7px; border-radius:4px; background:#eef1f6; overflow:hidden; }
.dp-bar i{ display:block; height:100%; border-radius:4px; background:var(--accent);
  transition:width .5s ease; }
.dp-meta{ flex:none; font-size:11px; color:var(--ink-3); white-space:nowrap; }
.dp-meta b{ color:var(--accent); }
/* 今日日程（P1） */
.dash-schedule{ margin-bottom:12px; }
.dash-schedule-head{ display:flex; align-items:center; gap:7px; font-size:13.5px; font-weight:800;
  color:var(--ink); margin-bottom:4px; }
.dash-schedule-head svg{ color:var(--accent); }
.dash-schedule-head .sc-note{ margin-left:auto; font-size:11px; font-weight:500; color:var(--ink-3); }
.sc-list{ display:flex; flex-direction:column; gap:6px; }
.sc-item{ display:flex; align-items:center; gap:10px; background:#fff; border:1px solid var(--line);
  border-radius:10px; padding:8px 11px; }
.sc-dot{ flex:none; width:7px; height:7px; border-radius:50%; background:var(--accent); }
.sc-main{ flex:1; min-width:0; }
.sc-name{ font-size:13px; font-weight:700; color:var(--ink); }
.sc-sub{ font-size:11.5px; color:var(--ink-3); margin-top:1px; overflow:hidden;
  text-overflow:ellipsis; white-space:nowrap; }
.sc-acts{ display:flex; gap:6px; flex:none; }
.sc-acts .btn{ padding:4px 10px; font-size:12px; }
.sc-call{ color:var(--accent); }
.sc-empty{ display:flex; align-items:center; gap:10px; font-size:12.5px; color:var(--ink-3);
  padding:10px 2px; }
.sc-empty .btn{ margin-left:auto; }
.todo-list{ display:flex; flex-direction:column; gap:8px; }
.todo-item{ display:flex; align-items:center; gap:10px; background:#fff; border:1px solid var(--line);
  border-radius:10px; padding:9px 12px; transition:border-color .16s, transform .16s; }
.todo-item:hover{ border-color:var(--accent); }
.todo-item.overdue{ border-color:#fcd9a8; background:#fffdf7; }
.todo-ic{ width:30px; height:30px; border-radius:8px; flex:none; display:flex; align-items:center; justify-content:center;
  background:var(--accent-muted); color:var(--accent); }
.todo-ic.hot{ background:#fff1d6; color:#d97706; }
.todo-main{ flex:1; min-width:0; }
.todo-name{ font-size:13.5px; font-weight:700; color:var(--ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.todo-name .m-tag{ margin-left:4px; }
.todo-sub{ font-size:11.5px; color:var(--ink-3); margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.todo-act{ flex:none; }
.todo-act .btn{ padding:6px 12px; font-size:12px; }
.todo-empty{ display:flex; align-items:center; gap:10px; color:#16a34a; font-size:13px; font-weight:600;
  background:#f0fdf4; border:1px dashed #bbe7c9; border-radius:10px; padding:12px 14px; }

  /* ---------- 今日必办 · 确认建档弹层 ---------- */
  .df-cfm-stu{ background:var(--bg); border:1px solid var(--line); border-radius:10px; padding:10px 12px; margin:12px 0; }
  .df-cfm-name{ font-size:14px; font-weight:800; color:var(--ink); }
  .df-cfm-src{ margin-top:6px; display:flex; flex-wrap:wrap; gap:6px; }
  .df-cfm-tip{ display:flex; align-items:flex-start; gap:6px; font-size:11.5px; line-height:1.6; color:var(--ink-3);
    background:#f8fafc; border:1px dashed var(--line); border-radius:8px; padding:8px 10px; }
  .df-cfm-tip svg{ flex:none; margin-top:1px; color:var(--accent); }

/* ---------- 统计卡 count-up + 角标 ---------- */
.dash-stats .ov-v{ transition:color .2s; }
.ov-card .ov-tag{ position:absolute; top:8px; right:8px; font-size:10px; font-weight:700; color:var(--color);
  background:var(--tint); padding:1px 7px; border-radius:999px; }
.dash-stats .ov-card.ov-card-follow{ border-color:#fed7aa; background:#fffdf9; }
.dash-stats .ov-card.ov-card-follow .ov-card-ic{ background:#ffedd5; color:#d97706; }

/* ---------- 列表行内快捷（☎ 打电话 / ✎ 快速记跟进） ---------- */
.stu-quick{ display:flex; align-items:center; gap:6px; flex:none; }
.stu-quick-btn{ width:30px; height:30px; border-radius:9px; display:flex; align-items:center; justify-content:center;
  background:#fff; border:1px solid var(--line); color:var(--ink-2); cursor:pointer;
  transition:border-color .15s, color .15s, background .15s, transform .15s; }
.stu-quick-btn:hover{ border-color:var(--accent); color:var(--accent); background:var(--accent-muted); }
.stu-quick-btn.call:hover{ border-color:#16a34a; color:#16a34a; background:#f0fdf4; }
.stu-quick-btn.note:hover{ border-color:#d97706; color:#d97706; background:#fffbeb; }
.stu-quick-btn:active{ transform:scale(.92); }
.stu-row:hover .stu-quick-btn{ border-color:#cfe0f5; }
.stu-quick-btn.pend-edit:hover{ border-color:#2563eb; color:#2563eb; background:#eff6ff; }
.stu-quick-btn.pend-confirm:hover{ border-color:#16a34a; color:#16a34a; background:#f0fdf4; }
.stu-quick-btn.pend-del:hover{ border-color:#dc2626; color:#dc2626; background:#fef2f2; }
@media (max-width:479px){
  .stu-quick{ gap:4px; }
  /* P4-03：手机端行内快捷钮保持 32px 触摸下限（原 26px 过小，拨打为高频动作） */
  .stu-quick-btn{ width:32px; height:32px; border-radius:9px; }
}

/* ---------- 搜索高亮 + 搜索清除 ---------- */
.hl{ background:#fde68a; color:#92400e; border-radius:3px; padding:0 1px; }
.search-clear{ width:22px; height:22px; border-radius:50%; flex:none; display:flex; align-items:center; justify-content:center;
  color:var(--ink-3); background:var(--bg); border:none; cursor:pointer; opacity:.8; }
.search-clear:hover{ background:var(--danger-muted); color:var(--danger); opacity:1; }

/* ---------- 筛选条件条（筛选痕迹，一键清除） ---------- */
.dash-filterbar{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; background:#fff;
  border:1px solid var(--line); border-radius:12px; padding:8px 12px; margin-bottom:12px; }
.dash-filterbar .fb-t{ font-size:11.5px; color:var(--ink-3); display:flex; align-items:center; gap:5px; }
.dash-filterbar .fb-t svg{ color:var(--accent); }
.fb-chip{ display:inline-flex; align-items:center; gap:5px; background:var(--accent-muted); color:var(--accent);
  font-size:11.5px; font-weight:600; border-radius:999px; padding:3px 10px; }
.fb-chip button{ background:none; border:none; color:var(--accent); font-size:13px; line-height:1; cursor:pointer; padding:0; margin-left:2px; }
.fb-chip button:hover{ color:var(--danger); }
.fb-clear{ margin-left:auto; background:none; border:none; color:var(--ink-3); font-size:11.5px; cursor:pointer;
  display:flex; align-items:center; gap:4px; padding:3px 6px; border-radius:6px; }
.fb-clear:hover{ color:var(--danger); background:var(--danger-muted); }

/* ---------- 漏斗 Tab 数量角标 ---------- */
.chip .tab-badge{ display:inline-flex; align-items:center; justify-content:center; min-width:16px; height:16px;
  font-size:10px; font-weight:700; color:var(--ink-3); background:var(--bg); border-radius:999px; margin-left:4px; padding:0 4px; }
.chip.on .tab-badge{ color:#fff; background:rgba(255,255,255,.28); }

/* ---------- 申请阶段漏斗小图（工作台首页，纯前端聚合） ---------- */
.dash-funnel-card{ padding:12px 14px; margin-bottom:14px; }
.dash-funnel-head{ display:flex; align-items:center; gap:7px; font-size:13px; font-weight:800; color:var(--ink); margin-bottom:8px; }
.dash-funnel-head svg{ color:var(--accent); }
.dash-funnel-head .df-note{ margin-left:auto; font-size:11px; font-weight:500; color:var(--ink-3); }
.dash-funnel{ display:flex; align-items:stretch; height:38px; border-radius:9px; overflow:hidden; background:var(--bg);
  border:1px solid var(--line); }
.df-seg{ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1px; color:#fff;
  font-size:10.5px; font-weight:700; min-width:40px; transition:filter .15s; cursor:pointer; position:relative; }
.df-seg:hover{ filter:brightness(1.08); }
.df-seg .df-v{ font-size:12px; font-weight:800; line-height:1.1; }
.df-seg .df-l{ font-size:9px; opacity:.9; line-height:1; white-space:nowrap; }
.df-seg.empty{ background:var(--bg) !important; color:var(--ink-3); border-left:1px dashed var(--line); font-size:10px; font-weight:500; }
.df-legend{ display:flex; flex-wrap:wrap; gap:10px; margin-top:8px; }
.df-legend span{ display:inline-flex; align-items:center; gap:5px; font-size:11px; color:var(--ink-3); }
.df-legend i{ width:9px; height:9px; border-radius:3px; display:inline-block; }

/* ---------- 通话助手：REC 呼吸 + 状态灯 + 建议强调 ---------- */
.ca-rec-wrap{ display:inline-flex; align-items:center; gap:7px; background:rgba(220,38,38,.1);
  border:1px solid rgba(220,38,38,.25); border-radius:999px; padding:3px 11px 3px 9px; }
.ca-rec-dot{ width:9px; height:9px; border-radius:50%; background:#dc2626; animation:caBreath 1.1s ease-in-out infinite;
  box-shadow:0 0 0 0 rgba(220,38,38,.5); }
@keyframes caBreath{
  0%{ box-shadow:0 0 0 0 rgba(220,38,38,.5); }
  70%{ box-shadow:0 0 0 7px rgba(220,38,38,0); }
  100%{ box-shadow:0 0 0 0 rgba(220,38,38,0); }
}
.ca-rec-text{ font-size:11px; font-weight:800; color:#dc2626; letter-spacing:.4px; }
#caStateBar .ca-red-dot{ display:none; }   /* 升级为 ca-rec-wrap（保留旧点隐藏，避免重复） */

/* 状态灯（语音识别 / AI 解析 人话化） */
.ca-lamps{ display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.ca-lamp{ display:inline-flex; align-items:center; gap:6px; background:#fff; border:1px solid var(--line);
  border-radius:999px; padding:4px 11px; font-size:11.5px; color:var(--ink-2); }
.ca-lamp .ca-lamp-dot{ width:8px; height:8px; border-radius:50%; flex:none; }
.ca-lamp.on .ca-lamp-dot{ background:#16a34a; box-shadow:0 0 0 3px rgba(22,163,74,.15); }
.ca-lamp.on{ border-color:#bbe7c9; color:#15803d; }
.ca-lamp.off .ca-lamp-dot{ background:#94a3b8; }
.ca-lamp.off{ color:var(--ink-3); }
.ca-lamp .ca-lamp-q{ border:none; background:none; color:var(--ink-3); font-size:11px; cursor:pointer; padding:0; line-height:1; }
.ca-lamp .ca-lamp-q:hover{ color:var(--accent); }
.ca-lamp-tip{ font-size:11.5px; color:var(--ink-3); margin-top:6px; line-height:1.6; }

/* 建议卡强调（最重要的内容长得最重要） */
.card-sug .card-main{ background:var(--card-main-bg); }
.ca-sug.ca-sug-main{ background:var(--card-main-bg); border:1px solid #cfe0f5; border-left:4px solid var(--accent); }
.ca-sug.ca-sug-main .ca-sug-q{ background:#fff; border:1px solid #cfe0f5; }
/* 建议"有用/不准"沉淀 */
.ca-sug-fb{ display:inline-flex; align-items:center; gap:4px; opacity:.55; transition:opacity .15s; }
.ca-sug-fb:hover{ opacity:1; }
.ca-sug-fb button{ background:none; border:1px solid var(--line); border-radius:999px; font-size:11px; color:var(--ink-3);
  padding:2px 8px; cursor:pointer; line-height:1.5; }
.ca-sug-fb button:hover{ border-color:var(--accent); color:var(--accent); }
.ca-sug-fb button.voted{ border-color:var(--accent); color:var(--accent); background:var(--accent-muted); font-weight:700; }
.ca-sug-fb button.voted.bad{ border-color:var(--danger); color:var(--danger); background:var(--danger-muted); }

/* 字幕"正在识别"呼吸光标 */
.ca-partial{ padding:5px 0; color:var(--accent); word-break:break-all; font-size:13px; display:flex; gap:3px; align-items:center; }
.ca-caret{ width:2px; height:14px; background:var(--accent); display:inline-block; animation:caCaret 0.9s steps(2) infinite; flex:none; }
@keyframes caCaret{ 0%,100%{ opacity:1; } 50%{ opacity:0; } }

/* ---------- 通话助手：收尾闭环 ---------- */
.ca-confirm-cta{ display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; padding-top:10px; border-top:1px dashed var(--line); }
.ca-confirm-cta .btn{ flex:1; min-width:120px; }
.ca-summary-card{ background:#f0fdf4; border:1px solid #bbe7c9; border-radius:10px; padding:11px 13px; margin-top:8px;
  font-size:12.5px; color:#14532d; line-height:1.7; white-space:pre-wrap; word-break:break-all; }
.ca-summary-card .sec-title{ margin:0 0 6px; color:#15803d; }
/* 结束通话轻确认条 */
.ca-light-confirm{ display:flex; align-items:center; gap:8px; background:#fff7ed; border:1px solid #fdba74;
  border-radius:10px; padding:9px 12px; margin-top:8px; font-size:12.5px; color:#9a3412; flex-wrap:wrap; }
.ca-light-confirm b{ font-weight:700; }
.ca-light-confirm .ca-lc-acts{ margin-left:auto; display:flex; gap:6px; }
.ca-light-confirm .btn{ padding:5px 12px; font-size:12px; }

/* ---------- 通话助手：学生下拉"最近使用"分组 ---------- */
.ca-cust-group{ padding:7px 12px 3px; font-size:11px; font-weight:700; color:var(--ink-3);
  background:#fafbfc; letter-spacing:.4px; border-bottom:1px solid var(--line); }
.ca-cust-item.recent{ background:#f8fbff; }

/* ---------- 通话记录：参谋时间轴 ---------- */
.ca-timeline{ position:relative; margin-top:6px; }
.tl-row{ position:relative; padding:0 0 12px 18px; }
.tl-row::before{ content:""; position:absolute; left:5px; top:6px; bottom:-2px; width:2px; background:var(--line); }
.tl-row:last-child::before{ display:none; }
.tl-dot{ position:absolute; left:0; top:4px; width:12px; height:12px; border-radius:50%; background:var(--accent);
  border:2px solid #fff; box-shadow:0 0 0 2px var(--accent-muted); }
.tl-row.tl-sug .tl-dot{ background:var(--module-5); box-shadow:0 0 0 2px #ede9fe; }
.tl-row.tl-sug{ background:#faf8ff; border:1px solid #ede9fe; border-radius:9px; padding:8px 10px 8px 18px; margin-bottom:8px; }
.tl-row.tl-sug::before{ display:none; }
.tl-time{ font-size:10.5px; color:var(--ink-3); }
.tl-text{ font-size:12.5px; color:var(--ink); line-height:1.6; margin-top:2px; word-break:break-all; }
.tl-sug .tl-text{ color:#5b21b6; font-weight:500; }
.tl-sug .tl-tag{ display:inline-flex; align-items:center; gap:4px; font-size:10px; font-weight:700; color:#7c3aed;
  background:#ede9fe; border-radius:999px; padding:1px 7px; margin-bottom:4px; }

/* ---------- 学生详情：主次按钮 + 折叠只读 + 申请阶段进度 ---------- */
.st-actions .btn.primary{ background:var(--accent); color:#fff; }
.st-actions .btn:first-child{ background:var(--accent); color:#fff; }
.st-actions .btn:first-child:hover{ filter:brightness(1.08); }
.st-actions .btn.danger-ghost{ order:10; }
.st-more-btn{ background:none; border:1px dashed var(--line); border-radius:10px; width:100%; padding:10px;
  color:var(--ink-2); font-size:13px; font-weight:600; cursor:pointer; display:flex; align-items:center; justify-content:center;
  gap:6px; margin-top:12px; transition:border-color .16s, color .16s, background .16s; }
.st-more-btn:hover{ border-color:var(--accent); color:var(--accent); background:var(--accent-muted); }
.st-more-btn svg{ transition:transform .2s; }
.st-more-btn.open svg{ transform:rotate(180deg); }
.st-more-body{ margin-top:12px; }
.st-more-body .sec-title{ margin-top:0; }
.st-info-fold{ background:var(--card-sub-bg); border:1px solid var(--line); border-radius:12px; padding:12px 14px; margin-bottom:10px; }
.st-info-fold .fu-fold-t{ font-size:12px; font-weight:700; color:var(--ink-2); margin-bottom:8px; display:flex; align-items:center; gap:6px; }
.st-info-fold .fu-fold-t svg{ color:var(--accent); }

/* 申请档案阶段进度条 */
.app-stage{ display:flex; align-items:center; gap:8px; margin-top:8px; }
.app-stage .stg-track{ flex:1; max-width:200px; height:6px; border-radius:6px; background:#eef1f6; overflow:hidden; }
.app-stage .stg-fill{ height:100%; border-radius:6px; background:linear-gradient(90deg, var(--accent), var(--accent-2));
  transition:width .4s ease; }
.app-stage .stg-label{ font-size:11px; color:var(--accent); font-weight:700; white-space:nowrap; }
.app-stage .stg-name{ font-size:12px; color:var(--ink-2); font-weight:600; margin-left:auto; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* ---------- 首次 3 步导览 ---------- */
.tour-layer{ position:fixed; inset:0; z-index:200; pointer-events:none; }
.tour-mask{ position:fixed; inset:0; z-index:201; background:rgba(10,24,44,.5); transition:opacity .25s; }
.tour-bubble{ position:fixed; z-index:202; background:#fff; border-radius:14px; box-shadow:0 16px 48px rgba(10,25,50,.28);
  padding:16px 18px; max-width:300px; animation:tourIn .28s ease; }
@keyframes tourIn{ from{ opacity:0; transform:translateY(10px) scale(.97); } to{ opacity:1; transform:none; } }
.tour-bubble .tb-title{ display:flex; align-items:center; gap:8px; font-size:14px; font-weight:800; color:var(--ink); }
.tour-bubble .tb-title .tb-n{ width:20px; height:20px; border-radius:50%; background:var(--accent); color:#fff; font-size:11px;
  display:flex; align-items:center; justify-content:center; flex:none; }
.tour-bubble .tb-body{ font-size:12.5px; color:var(--ink-2); line-height:1.7; margin-top:8px; }
.tour-bubble .tb-acts{ display:flex; align-items:center; gap:8px; margin-top:12px; }
.tour-bubble .tb-skip{ background:none; border:none; color:var(--ink-3); font-size:12px; cursor:pointer; margin-right:auto; padding:4px; }
.tour-bubble .tb-skip:hover{ color:var(--ink); }
.tour-bubble .tb-next{ background:var(--accent); color:#fff; border:none; border-radius:9px; padding:7px 16px;
  font-size:12.5px; font-weight:700; cursor:pointer; }
.tour-bubble .tb-next:hover{ filter:brightness(1.08); }
.tour-bubble .tb-next.done{ background:var(--module-1); }
.tour-bubble .tb-arrow{ position:absolute; width:0; height:0; border:8px solid transparent; }
.tour-bubble.tb-top .tb-arrow{ border-top-color:#fff; bottom:-14px; left:50%; margin-left:-8px; }
.tour-bubble.tb-bottom .tb-arrow{ border-bottom-color:#fff; top:-14px; left:50%; margin-left:-8px; }
.tour-bubble.tb-left .tb-arrow{ border-left-color:#fff; right:-14px; top:18px; }
.tour-bubble.tb-right .tb-arrow{ border-right-color:#fff; left:-14px; top:18px; }

/* ---------- 空态插画化（纯 CSS 简易插画） ---------- */
.stu-empty-art{ width:76px; height:76px; margin:0 auto 12px; border-radius:22px; display:flex; align-items:center; justify-content:center;
  background:var(--grad-brand-soft); color:var(--accent); box-shadow:inset 0 0 0 1px #cfe0f5; position:relative; }
.stu-empty-art::after{ content:""; position:absolute; right:-6px; bottom:-6px; width:22px; height:22px; border-radius:8px;
  background:#fff; border:1px solid var(--line); box-shadow:var(--shadow); }
.stu-empty-steps{ display:flex; flex-direction:column; gap:6px; max-width:340px; margin:14px auto 0; text-align:left; }
.stu-empty-steps .es-row{ display:flex; align-items:center; gap:8px; background:#fff; border:1px solid var(--line);
  border-radius:10px; padding:9px 12px; font-size:12.5px; color:var(--ink-2); }
.stu-empty-steps .es-row b{ color:var(--accent); font-size:12px; }
.stu-empty-steps .es-row .es-act{ margin-left:auto; flex:none; }
.stu-empty-steps .es-row .es-act .btn{ padding:5px 12px; font-size:12px; }

/* ---------- 通话助手：准备态主卡（专业录音间视觉） ---------- */
.ca-hero-main{ position:relative; overflow:hidden; padding:16px 18px; }
.ca-hero-main .ca-hero-title{ display:flex; align-items:center; gap:8px; font-size:15px; font-weight:800; color:var(--ink); }
.ca-hero-main .ca-hero-title svg{ color:var(--accent); }
.ca-hero-main .ca-hero-sub{ font-size:12.5px; color:var(--ink-2); line-height:1.7; margin-top:6px; max-width:560px; }
.ca-hero-main .ca-hero-steps{ display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.ca-hero-step{ display:inline-flex; align-items:center; gap:6px; background:#fff; border:1px solid var(--line);
  border-radius:999px; padding:4px 11px; font-size:11.5px; color:var(--ink-2); }
.ca-hero-step b{ color:var(--accent); font-size:12px; }
.ca-hero-step.on{ border-color:#bbe7c9; background:#f0fdf4; color:#15803d; }
.ca-hero-step.on b{ color:#16a34a; }

/* 结束通话确认弹窗中的撤销 toast（危险操作统一） */
.undo-toast-act{ display:inline-flex; align-items:center; gap:6px; background:rgba(255,255,255,.18); color:#fff;
  border:1px solid rgba(255,255,255,.4); border-radius:999px; padding:3px 12px; font-size:12px; font-weight:700; cursor:pointer; }
.undo-toast-act:hover{ background:rgba(255,255,255,.3); }

/* ---------- 移动端适配 ---------- */
@media (max-width:479px){
  .tour-bubble{ max-width:calc(100vw - 40px); }
  .todo-item{ padding:8px 10px; }
  .todo-act .btn{ padding:5px 10px; }
  .ca-confirm-cta .btn{ min-width:0; }
  .df-legend{ gap:6px; }
  .df-seg .df-l{ font-size:8px; }
  .df-seg{ min-width:36px; }
}
@media (max-width:1023px){
  .st-more-body .card{ padding:10px; }
}

/* ========== 微信登录（登录页，仅微信浏览器显示） ========== */
.wx-login-box{ margin-top:14px; text-align:center; }
.login-divider{ display:flex; align-items:center; gap:10px; color:var(--ink-3); font-size:12px; margin-bottom:12px; }
.login-divider::before,.login-divider::after{ content:""; flex:1; height:1px; background:var(--line); }
.wx-login-btn{
  width:44px; height:44px; border-radius:50%;
  background:#07c160; color:#fff;
  display:inline-flex; align-items:center; justify-content:center;
  padding:0; line-height:1;
  box-shadow:0 2px 10px rgba(7,193,96,.35);
  transition:filter .2s, transform .1s;
}
.wx-login-btn:hover{ filter:brightness(1.08); }
.wx-login-btn:active{ transform:scale(.94); }
.wx-login-btn:disabled{ opacity:.6; }

/* ========== 个人中心：绑定状态徽标（已绑绿 / 未绑灰） ========== */
.bind-status-badge{
  display:inline-flex; align-items:center; gap:4px;
  font-size:11px; font-weight:600; line-height:1;
  padding:3px 8px; border-radius:20px;
  color:var(--ink-3); background:var(--bg);
  flex:none; white-space:nowrap;
}
.bind-status-badge::before{ content:""; width:6px; height:6px; border-radius:50%; background:#c0c8d6; }
.bind-status-badge.on{ color:#15803d; background:#dcfce7; }
.bind-status-badge.on::before{ background:#16a34a; }
/* 个人中心菜单行内徽标：覆盖 .hub-row span 的 flex:1，靠右对齐 */
.hub-row .bind-status-badge{ margin-left:auto; }

/* ========== 个人中心：「待开发」功能小标签（小号、精致琥珀色） ========== */
.hub-soon-tag{
  flex:none; white-space:nowrap;
  display:inline-flex; align-items:center;
  font-size:9.5px; font-weight:500; line-height:1;
  padding:2.5px 6px; border-radius:999px;
  color:#b45309; background:#fef3c7;
}
/* 服务与调研：暂未开放入口——标签靠右（覆盖 .hub-row span 的 flex:1），无箭头，文案弱化 */
.hub-row .hub-soon-tag{ flex:none; margin-left:auto; }
.hub-row-soon .hub-rlabel,
.hub-row-soon svg:first-child{ opacity:.72; }

/* ========== 信息绑定弹窗：联系方式 Tab ========== */
.contact-tabs{ display:flex; gap:8px; margin-bottom:14px; }
.ct-tab{
  flex:1; height:38px; border-radius:10px;
  border:1px solid var(--line); background:var(--bg);
  color:var(--ink-2); font-size:13px; font-weight:600;
  display:flex; align-items:center; justify-content:center; gap:6px;
  transition:all .2s;
}
.ct-tab.active{ background:var(--accent-muted); border-color:var(--accent); color:var(--accent); }
.ct-tab em{ font-style:normal; font-size:10px; color:#15803d; background:#dcfce7; padding:1px 6px; border-radius:10px; }
.ct-tab:disabled{ opacity:.55; cursor:not-allowed; }

/* ========== 绑定状态展示 / 未绑定提示 ========== */
.bound-show{
  display:flex; align-items:center; justify-content:space-between;
  border:1px solid var(--line); border-radius:var(--radius-sm);
  padding:10px 12px; font-size:14px; color:var(--ink); background:#fafbfd;
}
.bind-tip-line{
  border:1px solid var(--amber-muted); background:var(--amber-muted);
  color:var(--amber); border-radius:var(--radius-sm);
  padding:9px 11px; font-size:13px;
}

/* 信息绑定弹窗：当前绑定值展示条（已绑=绿，未绑=灰） */
.bind-cur{
  border:1px solid var(--line); border-radius:var(--radius-sm);
  padding:9px 11px; font-size:13px; margin-bottom:12px;
  color:var(--ink-2); background:#fafbfd;
}
.bind-cur.bound{ color:#15803d; border-color:#a7f3d0; background:#ecfdf5; }

/* 头像图通用：圆形填充（侧栏/移动端Tab/个人中心共用） */
.avatar-img{ width:100%; height:100%; border-radius:50%; object-fit:cover; display:block; }
/* 个人中心头像：可点击更换 + 右下角相机角标 */
.hub-pavatar{ position:relative; cursor:pointer; }
.hub-pavatar.has-avatar .avatar-img{ box-shadow:0 0 0 3px rgba(255,255,255,.18); }
.hub-pavatar::after{
  content:""; position:absolute; right:-3px; bottom:-3px; width:20px; height:20px; border-radius:50%;
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f6bb8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h3l2-3h6l2 3h3a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1z'/%3E%3Ccircle cx='12' cy='13' r='3.5'/%3E%3C/svg%3E") center/12px 12px no-repeat;
  border:2px solid #fff; box-shadow:0 1px 4px rgba(0,0,0,.3);
}
/* 头像编辑弹层：预览 / 提示 / 按钮 */
.ava-preview{ width:88px; height:88px; border-radius:50%; margin:14px auto 10px; overflow:hidden; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#2f6bb8,#1f4e8c); color:#fff; }
.ava-preview-img{ width:100%; height:100%; object-fit:cover; }
.ava-preview-letter{ font-size:34px; font-weight:800; }
.ava-tip{ font-size:12px; color:var(--ink-2); text-align:center; margin-bottom:16px; }
.ava-actions{ display:flex; gap:10px; margin-bottom:10px; }
.ava-actions .btn{ flex:1; justify-content:center; }



/* ========== 微信绑定弹窗 ========== */
.wx-status{ margin:6px 0 16px; }
.wx-bound,.wx-unbound{
  display:flex; align-items:center; gap:12px;
  border:1px solid var(--line); border-radius:var(--radius);
  padding:14px; background:#fafbfd;
}
.wx-bound-ic{
  width:44px; height:44px; flex:none; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
}
.wx-bound .wx-bound-ic{ background:#dcfce7; color:#16a34a; }
.wx-unbound .wx-bound-ic{ background:var(--accent-muted); color:var(--accent); }
.wx-bound b,.wx-unbound b{ display:block; font-size:14px; }
.wx-bound p,.wx-unbound p{ font-size:12px; color:var(--ink-3); margin-top:2px; }
.btn.wx-btn{ background:#07c160; color:#fff; display:inline-flex; align-items:center; justify-content:center; gap:6px; }
.btn.wx-btn:hover{ filter:brightness(1.06); }

/* 学生档案列表 · PC 电话号码小窗（移动端保持 tel: 直拨，不显示此窗） */
.stu-call-pop{ width:320px; padding:18px; text-align:center; border-radius:14px; }
.stu-call-pop .scp-head{ display:flex; align-items:center; justify-content:center; gap:6px; font-weight:600; color:var(--ink); margin-bottom:6px; }
.stu-call-pop .scp-name{ color:var(--ink-2); font-size:13px; margin-bottom:10px; }
.stu-call-pop .scp-phone{ font-size:22px; font-weight:700; letter-spacing:1px; color:var(--ink); margin-bottom:10px; word-break:break-all; }
.stu-call-pop .scp-tip{ display:flex; align-items:center; justify-content:center; gap:4px; color:var(--ink-3); font-size:12px; margin-bottom:14px; }
.stu-call-pop .scp-actions{ display:flex; gap:10px; justify-content:center; }
.stu-call-pop .scp-actions .btn{ flex:1; }

/* ============================================================
   学生档案 · 卡片化展示 v2（卡片等高统一）
   头像+信息同行 + 状态色条置顶 + 底部操作区贴底
   ============================================================ */
.stu-list{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(300px, 1fr));
  grid-auto-rows:minmax(186px, auto);   /* 卡片最小高度统一，内容多时自然增高 */
  gap:12px;               /* grid 卡片间距 */
}
.stu-row{
  flex-direction:column;
  align-items:stretch;
  gap:0;                  /* 纵向布局，原 gap:12px 改用 margin 控制间距 */
  text-align:left;
  padding:15px 15px 0;
  border-radius:14px;
  margin-bottom:0;
  height:100%;            /* 撑满 grid 行高 */
  overflow:hidden;
  box-shadow:var(--shadow);
  border:1px solid var(--line);
  transition:border-color .18s, box-shadow .18s, transform .18s;
}
.stu-row:hover{ transform:translateY(-2px); border-color:var(--accent-2); box-shadow:0 6px 18px rgba(15,39,64,.09); }
/* 状态色条置顶 */
.stu-row::before{
  left:0; right:0; top:0; bottom:auto;
  width:auto; height:4px;
}
/* 头像 + 信息同行 */
.stu-head{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  padding-right:36px;      /* 给右上角状态标签留出空间 */
  margin-bottom:12px;      /* 头部与信息区间距 */
}
.stu-ava{
  width:54px; height:54px; font-size:18px;
  flex:none;
}
.stu-ava-img{
  width:54px; height:54px; border-radius:50%;
  object-fit:cover; display:block; flex:none;
  background:var(--accent-muted);
}

.stu-main{ flex:1; min-width:0; }
.stu-time{ font-size:11px; color:var(--ink-3); display:flex; align-items:center; gap:4px; margin-top:5px; }
.stu-name{ justify-content:flex-start; margin-top:0; }
.stu-meta{ justify-content:flex-start; margin-top:7px; }
.stu-follow{ justify-content:flex-start; margin-top:7px; }
/* 右上角状态标签 */
.stu-right{
  position:absolute;
  top:12px; right:12px;
  align-items:center;
}
/* 底部操作区贴底 */
.stu-quick{
  width:calc(100% + 28px);
  margin:auto -14px 0;     /* margin-top:auto 压底；-14px 抵消卡片 padding 使操作条通栏 */
  padding:10px 6px;
  justify-content:center;
  border-top:1px solid var(--line);
  background:rgba(15,39,64,.025);
  border-radius:0 0 16px 16px;
}
.stu-chev{ display:none; }



/* ── 详情页申请进度条（P1-4 / P2-1）── */
.st-progress{ margin-top:12px; }
.st-prog-head{ display:flex; align-items:center; gap:8px; }
.st-prog-label{ display:inline-flex; align-items:center; gap:5px; font-size:12px; font-weight:700; color:var(--ink-2); }
.st-prog-name{ font-size:13px; font-weight:700; color:var(--accent); flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.st-prog-pct{ font-size:12px; font-weight:700; color:var(--ink-2); }
.st-progress .stg-track{ display:block; height:8px; border-radius:6px; background:var(--line,#e5e9f0); margin-top:8px; overflow:hidden; }
.st-progress .stg-fill{ display:block; height:100%; border-radius:6px; background:linear-gradient(90deg, var(--accent), var(--accent-2,var(--accent))); transition:width .3s; }
.st-prog-meta{ display:flex; flex-wrap:wrap; gap:6px; margin-top:7px; }
.st-prog-act{ display:flex; align-items:flex-start; gap:5px; margin-top:8px; font-size:12px; line-height:1.5; color:var(--ink-2); background:var(--accent-muted); border-radius:8px; padding:7px 10px; }
.st-prog-act svg{ flex:none; margin-top:1px; }

/* ── 状态流转节点建议动作（P2-2）── */
.flow-opt{ flex-wrap:wrap; }
.flow-act{ flex-basis:100%; font-size:11px; font-weight:400; color:var(--ink-3); line-height:1.45; margin-left:20px; }

/* ============================================================
   通话助手 · 知识回应视觉强化 + 学生画像院校简介卡（20260815）
   ============================================================ */
/* 建议卡整体：浅蓝渐变底 + 蓝色左边条，与普通卡片拉开层级 */
.ca-sug{ position:relative; background:linear-gradient(180deg,#f7fbff 0%,#ffffff 45%) !important; border:1px solid #dbe7f6 !important; border-left:4px solid var(--accent) !important; border-radius:10px !important; padding:10px 12px !important; box-shadow:0 1px 2px rgba(20,35,60,.05) !important; }
.ca-sug:hover{ border-color:var(--accent-2) !important; }
/* 每条建议顶部加“AI 建议”徽标，顾问一眼辨识内容来源 */
.ca-sug::before{ content:"AI 建议"; display:block; width:fit-content; margin-bottom:6px; padding:2px 8px; border-radius:999px; font-size:11px; font-weight:700; letter-spacing:.3px; color:#fff; background:linear-gradient(90deg,var(--accent),var(--accent-2)); }
/* 最新一条：琥珀色重点标记，优先级最高 */
.ca-sug.ca-sug-main::before{ content:"AI 建议 · 最新"; background:linear-gradient(90deg,var(--amber),#b45309); }
/* 建议正文放大、加白底蓝边强调块，阅读更醒目 */
.ca-sug-text{ font-size:14.5px !important; line-height:1.75 !important; color:var(--ink) !important; padding:9px 11px !important; border:1px solid #e3ecf7 !important; border-left:3px solid var(--accent-2) !important; border-radius:8px !important; background:#ffffff !important; box-shadow:inset 0 1px 2px rgba(20,35,60,.03) !important; }
/* 最新建议卡整体改为琥珀高亮 */
.ca-sug.ca-sug-main{ background:linear-gradient(180deg,#fff8eb 0%,#ffffff 48%) !important; border:1px solid #f0dcae !important; border-left:4px solid var(--amber) !important; box-shadow:0 4px 16px rgba(217,119,6,.12) !important; }
.ca-sug.ca-sug-main .ca-sug-text{ border-color:#f0dcae !important; border-left-color:var(--amber) !important; background:#fffdf5 !important; }
.ca-sug.ca-sug-main .ca-sug-q{ border-color:#f0dcae !important; }

/* 学生画像 · 院校简介卡（识别到「当前院校」后展示；未收录时展示提示） */
.ca-uni-intro{ margin-top:2px; border:1px solid #dbe7f6; border-left:4px solid var(--accent); border-radius:10px; background:linear-gradient(180deg,#f5f9ff, #ffffff); padding:10px 12px; }
.ca-uni-intro.ca-uni-miss{ border-left-color:var(--ink-3); background:var(--bg-card); }
.ca-uni-intro .ca-uni-head{ display:flex; align-items:center; gap:6px; font-size:12px; font-weight:700; color:var(--accent); }
.ca-uni-intro .ca-uni-head svg{ color:var(--accent); }
.ca-uni-intro .ca-uni-head .ca-uni-name{ font-size:13px; color:var(--ink); font-weight:800; }
.ca-uni-tags{ display:flex; flex-wrap:wrap; gap:5px; margin:8px 0 4px; }
.ca-uni-tag{ display:inline-flex; align-items:center; font-size:11px; font-weight:600; padding:2px 8px; border-radius:999px; background:#eef2f8; color:var(--ink-2); }
.ca-uni-tag.cn{ background:var(--accent-muted); color:var(--accent); }
.ca-uni-tag.type{ background:#fff7e6; color:#b45309; }
.ca-uni-row{ display:flex; gap:8px; align-items:flex-start; margin-top:6px; font-size:12.5px; line-height:1.6; }
.ca-uni-row .ca-uni-label{ flex:none; min-width:64px; font-size:11px; color:var(--ink-3); padding-top:1px; }
.ca-uni-row .ca-uni-val{ flex:1; color:var(--ink-2); word-break:break-all; }

/* 学生画像 · AI 补全院校简介（未收录时追问 AI 的卡片） */
.ca-uni-ask-row{ margin-top:8px; }
.ca-uni-intro.ca-uni-ai{ border-left-color:var(--amber); background:linear-gradient(180deg,#fff8eb, #ffffff); }
.ca-uni-ai-badge{ display:inline-flex; align-items:center; gap:4px; margin-left:6px; padding:2px 8px; border-radius:999px; font-size:11px; font-weight:700; color:#b45309; background:#fff7e6; white-space:nowrap; }
.ca-uni-note{ margin-top:6px; padding-top:6px; border-top:1px dashed var(--line); font-size:11px; color:var(--ink-3); line-height:1.6; }

/* 院校简介 · 后端查询占位卡 */
.ca-uni-lookup{ border-left-color:var(--ink-3); background:var(--bg-card); }
.ca-uni-lookup .ca-uni-val{ color:var(--ink-3); }

/* 学生画像 · 信息一致性校验提醒 */
.ca-warn-banner{ display:flex; gap:8px; align-items:flex-start; border:1px solid #f0dcae; border-left:4px solid var(--amber); background:#fffdf5; border-radius:10px; padding:8px 10px; margin-bottom:8px; }
.ca-warn-banner > svg{ color:var(--amber); flex:none; }
.ca-warn-list{ display:flex; flex-direction:column; gap:4px; min-width:0; }
.ca-warn-item{ font-size:12px; line-height:1.6; }
.ca-warn-item.warn{ color:var(--danger); font-weight:600; }
.ca-warn-item.info{ color:#b45309; }
.ca-field-warn{ color:var(--danger); font-weight:700; margin-right:2px; }
.ca-field-warn.info{ color:var(--amber); }

/* 通话助手页：双列间距加大（全站 PC 已统一加宽） */
@media (min-width:1024px){
  #screen:has(.ca-fs-grid) .ca-fs-grid{ gap:16px; }
}
/* ============================================================
   学生详情页 · 大升级（布局 / 交互 / 视觉分层）— 2026-08-20
   改动点：头部数据摘要 chips · Tab 吸顶 · 概况双栏(PC) · 页内锚点导航 · 侧栏快捷操作
   ============================================================ */
/* 头部数据摘要 chips（从申请画像提炼关键数据） */
.st-summary{ display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.st-sum-item{ display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:600;
  background:linear-gradient(135deg, var(--accent-muted), #fff); border:1px solid var(--line);
  color:var(--ink); padding:6px 11px; border-radius:10px; line-height:1.3; }
.st-sum-item svg{ color:var(--accent); flex:none; }
.st-sum-item em{ font-style:normal; color:var(--ink-3); font-weight:600; margin-right:1px; }
.st-sum-item b{ font-weight:700; color:var(--ink); word-break:break-all; }

/* Tab 栏吸顶：长滚动时仍可快速切换 */
.st-tabs{ position:sticky; top:0; z-index:20; background:var(--bg); margin:6px 0 10px;
  padding:10px 2px; border-radius:0 0 12px 12px; }

/* 概况 Tab 双栏骨架（默认单列：侧栏信息在前，主内容在后） */
.st-ov-layout{ display:flex; flex-direction:column; gap:16px; }
.st-ov-side{ order:0; display:flex; flex-direction:column; gap:14px; min-width:0; }
.st-ov-main{ order:1; min-width:0; display:flex; flex-direction:column; gap:16px; }
.st-side-quick{ display:none; gap:8px; flex-wrap:wrap; }
.st-side-quick .btn{ flex:1; min-width:118px; }

/* 概况页内锚点导航（移动端隐藏） */
.st-ov-nav{ display:none; }
.st-ov-nav-item{ padding:6px 14px; border-radius:16px; font-size:12.5px; font-weight:600;
  color:var(--ink-3); background:#fff; border:1px solid var(--line); cursor:pointer;
  transition:color .16s, border-color .16s, background .16s, transform .16s; white-space:nowrap; }
.st-ov-nav-item:hover{ color:var(--accent); border-color:var(--accent); }
.st-ov-nav-item.on{ background:var(--accent); color:#fff; border-color:var(--accent); }

/* 锚点滚动目标：避开吸顶 Tab / 锚点条 */
#st-plans, #st-timeline, #st-portrait, #st-progress, #st-nextstep, #st-sop{ scroll-margin-top:118px; }

/* PC ≥1024：概况双栏 + 锚点条/侧栏吸顶 */
@media (min-width:1024px){
  .st-ov-layout{ display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:18px; align-items:start; }
  .st-ov-main{ grid-column:1; order:0; gap:14px; }
  .st-ov-side{ grid-column:2; order:1; position:sticky; top:66px; }
  .st-side-quick{ display:flex; }
  .st-ov-nav{ display:flex; gap:6px; flex-wrap:wrap; position:sticky; top:62px; z-index:18;
    background:var(--bg); padding:6px 0 2px; margin-bottom:0; }
}

/* ============================================================
   荣誉墙（honor.js）— 2026-08-29 v2「录取荣誉殿堂」
   设计基调：学院深蓝 × 荣誉金；衬线大标题 + 装裱相框式卡片 + 交错入场动画
   ============================================================ */
.hw-tabs{ display:flex; gap:8px; padding:2px 0 12px; }
.hw-tab{ position:relative; padding:8px 20px; border-radius:999px; font-size:13.5px; font-weight:600;
  color:var(--ink-2); background:var(--bg-card); border:1px solid var(--line); cursor:pointer;
  transition:color .18s, transform .18s, box-shadow .18s; }
.hw-tab:hover{ color:var(--accent); border-color:#bcd0ec; transform:translateY(-1px); }
.hw-tab.on{ color:#fff; background:linear-gradient(135deg,#1f4e8c,#2f6bb8);
  border-color:transparent; box-shadow:0 4px 14px rgba(31,78,140,.28); }
.hw-tab.on::after{ content:""; position:absolute; left:50%; bottom:-5px; width:6px; height:6px;
  margin-left:-3px; border-radius:50%; background:#d4af37; }

/* ── Hero 头图（荣誉殿堂，柔和雾蓝 × 浅香槟） ── */
.hw-hero{ position:relative; overflow:hidden; border-radius:20px; margin-bottom:14px;
  background:linear-gradient(150deg,#eaf1fb 0%, #f6f0e6 55%, #e5ecf9 100%);
  color:var(--ink); padding:24px 20px 18px;
  box-shadow:0 8px 24px rgba(31,78,140,.10), inset 0 0 0 1px rgba(31,78,140,.06); }
.hw-hero::before{ content:""; position:absolute; inset:0;
  background:radial-gradient(620px 230px at 84% -30%, rgba(176,141,62,.16), transparent 62%),
             radial-gradient(520px 250px at -10% 120%, rgba(47,107,184,.10), transparent 55%); }
.hw-hero::after{ content:""; position:absolute; right:-40px; top:-60px; width:220px; height:220px;
  border:1px solid rgba(176,141,62,.22); border-radius:50%;
  box-shadow:0 0 0 26px rgba(176,141,62,.05), 0 0 0 52px rgba(176,141,62,.03); }
.hw-hero-in{ position:relative; text-align:center; animation:hwUp .55s .05s cubic-bezier(.2,.7,.3,1) both; }
.hw-hero-brand{ display:inline-flex; align-items:center; gap:6px; font-size:11.5px; letter-spacing:2.5px;
  color:#8a6a1f; border:1px solid rgba(176,141,62,.4); padding:4px 14px; border-radius:999px;
  background:rgba(176,141,62,.08); }
.hw-hero-brand svg{ color:#b08d3e; }
.hw-hero-title{ font-family:var(--serif); font-size:clamp(24px,4.4vw,34px); font-weight:700;
  letter-spacing:8px; margin:12px 0 6px; color:var(--accent);
  text-shadow:0 1px 0 rgba(255,255,255,.55); }
.hw-hero-sub{ font-size:12.5px; color:var(--ink-3); letter-spacing:2px; margin-bottom:14px; }

/* ── 统计卡片：浅底白卡（默认） / 深底玻璃（Hero 内） ── */
.hw-stats{ position:relative; display:grid; grid-template-columns:repeat(auto-fit,minmax(118px,1fr)); gap:10px; margin-bottom:12px; }
.hw-stat{ background:var(--bg-card); border:1px solid var(--line); border-radius:15px; padding:12px 8px 10px;
  text-align:center; box-shadow:0 1px 3px rgba(15,39,64,.05); }
.hw-stat b{ display:block; font-size:24px; font-weight:800; color:var(--accent); line-height:1.15;
  font-variant-numeric:tabular-nums; }
.hw-stat.on b{ color:var(--amber); }
.hw-stat.gold{ border-color:rgba(176,141,62,.4);
  background:linear-gradient(160deg,#fdf6e3,#fbf1d3); }
.hw-stat.gold b{ color:#8a6a1f; }
.hw-stat span{ font-size:11.5px; color:var(--ink-3); letter-spacing:.5px; }
.hw-hero .hw-stats{ margin-bottom:0; grid-template-columns:repeat(3,1fr); }
.hw-hero .hw-stat{ background:rgba(255,255,255,.66); backdrop-filter:blur(8px);
  border:1px solid rgba(31,78,140,.12); box-shadow:0 2px 8px rgba(31,78,140,.06); }
.hw-hero .hw-stat b{ color:var(--accent); }
.hw-hero .hw-stat.on b{ color:var(--amber); }
.hw-hero .hw-stat.gold{ border-color:rgba(176,141,62,.35);
  background:linear-gradient(160deg,rgba(176,141,62,.14),rgba(176,141,62,.06)); }
.hw-hero .hw-stat.gold b{ color:#8a6a1f; }
.hw-hero .hw-stat span{ color:var(--ink-3); }

/* ── 筛选条（细腻卡片化） ── */
.hw-filters{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-bottom:12px;
  padding:10px; background:var(--bg-card); border:1px solid var(--line); border-radius:15px;
  box-shadow:0 1px 2px rgba(20,35,60,.04); }
.hw-filters select{ height:36px; padding:0 30px 0 12px; border-radius:10px; border:1px solid var(--line);
  background:#fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23667085' stroke-width='1.6' stroke-linecap='round'/></svg>") no-repeat right 10px center;
  color:var(--ink); font-size:13px; outline:none; appearance:none; cursor:pointer;
  transition:border-color .16s, box-shadow .16s; }
.hw-filters select:focus{ border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-muted); }
.hw-search{ position:relative; display:flex; align-items:center; flex:1; min-width:150px; }
.hw-search input{ height:36px; width:100%; padding:0 12px 0 34px; border-radius:10px;
  border:1px solid var(--line); font-size:13px; outline:none; background:#fff;
  transition:border-color .16s, box-shadow .16s; }
.hw-search input:focus{ border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-muted); }
.hw-sic{ position:absolute; left:10px; color:var(--ink-3); display:flex; pointer-events:none; }
.hw-clear{ height:36px; padding:0 14px; border-radius:10px; border:1px solid var(--line);
  background:#fff; color:var(--ink-3); font-size:13px; cursor:pointer; transition:all .16s; }
.hw-clear:hover{ color:var(--amber); border-color:var(--amber); }

/* ── 证书卡片墙：装裱相框 ── */
.hw-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(236px,1fr)); gap:16px; }
.hw-card{ position:relative; background:var(--bg-card); border:1px solid var(--line); border-radius:18px;
  overflow:hidden; box-shadow:var(--shadow);
  transition:transform .22s cubic-bezier(.2,.7,.3,1), box-shadow .22s;
  animation:hwUp .5s cubic-bezier(.2,.7,.3,1) both; }
.hw-card::before{ content:""; position:absolute; inset:5px; z-index:2; pointer-events:none;
  border:1px solid rgba(176,141,62,.32); border-radius:14px; }
.hw-card::after{ content:""; position:absolute; left:8px; right:8px; bottom:-34px; height:48px; z-index:0;
  background:radial-gradient(50% 100% at 50% 100%, rgba(31,78,140,.22), transparent 72%); }
.hw-card:hover{ transform:translateY(-6px); box-shadow:0 18px 40px rgba(15,39,64,.16); }
.hw-card.off{ opacity:.78; filter:saturate(.72); }
.hw-card-img{ position:relative; aspect-ratio:3/4; background:#f4f6fb; overflow:hidden; }
.hw-card-img img{ width:100%; height:100%; object-fit:cover; display:block;
  transition:transform .5s cubic-bezier(.2,.7,.3,1); }
.hw-card:hover .hw-card-img img{ transform:scale(1.06); }
.hw-ribbon{ position:absolute; top:10px; left:-30px; transform:rotate(-45deg); z-index:3;
  background:linear-gradient(90deg,#c8a24a,#8a6a1f); color:#fff; font-size:10px; font-weight:800;
  letter-spacing:1px; padding:3px 30px; box-shadow:0 2px 6px rgba(0,0,0,.18); }
.hw-offtag{ position:absolute; top:10px; right:10px; padding:3px 10px; border-radius:999px; z-index:3;
  font-size:11px; font-weight:700; color:#fff; background:rgba(15,20,40,.62); backdrop-filter:blur(4px); }
.hw-card-img.empty{ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; color:var(--ink-3); }
.hw-card-img.broken{ display:flex; flex-direction:column; align-items:center; justify-content:center; color:var(--ink-3); }
.hw-card-img .empty-sub{ font-size:12px; color:var(--ink-3); }
.hw-card-meta{ position:relative; z-index:1; padding:12px 14px 10px; }
.hw-card-s{ display:flex; align-items:center; gap:6px; font-size:15px; font-weight:700; color:var(--ink); }
.hw-tier{ display:inline-flex; align-items:center; padding:1px 8px; border-radius:999px; font-size:10.5px;
  font-weight:700; color:#8a6a1f;
  background:linear-gradient(135deg,#fdf3d7,#f6e6b0); border:1px solid rgba(176,141,62,.35); }
.hw-card-school{ font-family:var(--serif); font-size:14px; font-weight:700; color:var(--ink); margin-top:4px;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hw-card-sub{ font-size:12px; color:var(--ink-3); margin-top:2px; overflow:hidden;
  text-overflow:ellipsis; white-space:nowrap; }
.hw-card-foot{ display:flex; flex-wrap:wrap; gap:5px; margin-top:8px; }
.hw-card-acts{ position:relative; z-index:1; display:flex; gap:2px; padding:8px 12px;
  border-top:1px dashed var(--line); background:#fafbfe; }
.hw-act{ display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px;
  border:none; background:transparent; color:var(--ink-3); border-radius:9px; cursor:pointer;
  transition:color .15s, background .15s, transform .15s; }
.hw-act:hover{ color:var(--accent); background:var(--accent-muted); transform:translateY(-1px); }
.hw-act.danger:hover{ color:var(--danger); background:var(--danger-muted); }

@keyframes hwUp{ from{opacity:0; transform:translateY(16px)} to{opacity:1; transform:none} }

/* 空状态（金调） */
.hw-empty{ padding:46px 18px !important; gap:10px; }
.hw-empty .e{ color:var(--amber); opacity:.75; }
.hw-empty .btn{ margin-top:8px; }

/* 分页 */
.hw-pager{ display:flex; align-items:center; justify-content:center; gap:14px; padding:18px 0 8px; }
.hw-pg{ padding:7px 16px; border-radius:999px; border:1px solid var(--line); background:#fff;
  color:var(--ink-2); font-size:13px; cursor:pointer; transition:all .16s; }
.hw-pg:hover{ color:var(--accent); border-color:var(--accent); box-shadow:0 2px 8px rgba(31,78,140,.12); }
.hw-pginfo{ font-size:12.5px; color:var(--ink-3); }

/* ── Tab2 上传管理 ── */
.hw-manage-toolbar{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-bottom:12px; }
.hw-batch{ display:flex; gap:6px; align-items:center; padding:6px 8px; border:1px solid var(--line);
  border-radius:13px; background:#fff; opacity:.5; pointer-events:none; transition:opacity .2s, border-color .2s; }
.hw-batch.on{ opacity:1; pointer-events:auto; border-color:var(--amber);
  box-shadow:0 0 0 1px rgba(217,119,6,.25) inset; }
.hw-selcount{ font-size:12px; color:var(--ink-2); margin-right:4px; white-space:nowrap; font-weight:600; }
.hw-batch .btn{ font-size:12.5px; padding:5px 11px; }
.hw-manage-list{ display:flex; flex-direction:column; gap:10px; }
.hw-mrow{ display:flex; align-items:center; gap:12px; background:#fff; border:1px solid var(--line);
  border-radius:15px; padding:10px 12px; transition:border-color .16s, box-shadow .16s, transform .16s;
  animation:hwUp .42s cubic-bezier(.2,.7,.3,1) both; }
.hw-mrow:hover{ transform:translateY(-1px); box-shadow:0 4px 12px rgba(15,39,64,.06); }
.hw-mrow.sel{ border-color:var(--accent); box-shadow:0 0 0 1px var(--accent) inset, 0 4px 12px rgba(31,78,140,.08); }
.hw-chk{ position:relative; display:inline-flex; flex:none; }
.hw-chk input{ position:absolute; opacity:0; pointer-events:none; }
.hw-chk span{ width:20px; height:20px; border-radius:7px; border:1.6px solid var(--line);
  background:#fff; display:inline-block; cursor:pointer; position:relative; transition:all .14s; }
.hw-chk input:checked + span{ background:var(--accent); border-color:var(--accent); }
.hw-chk input:checked + span::after{ content:""; position:absolute; left:6px; top:2px; width:5px; height:10px;
  border:solid #fff; border-width:0 2px 2px 0; transform:rotate(45deg); }
.hw-mimg{ width:56px; height:42px; border-radius:9px; overflow:hidden; flex:none; background:#f4f6fb;
  display:flex; align-items:center; justify-content:center; font-size:11px; color:var(--ink-3);
  border:1px solid var(--line); }
.hw-mimg img{ width:100%; height:100%; object-fit:cover; }
.hw-minfo{ flex:1; min-width:0; }
.hw-mt{ font-size:14px; font-weight:700; color:var(--ink); display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.hw-mini{ flex:none; font-size:10.5px; font-weight:700; padding:1px 7px; border-radius:999px; color:var(--ink-3); background:#eef1f6; }
.hw-mini.on{ color:#16a34a; background:#dcfce7; }
.hw-ms{ font-size:12.5px; color:var(--ink-2); margin-top:2px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hw-mm{ font-size:11.5px; color:var(--ink-3); margin-top:2px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hw-macts{ display:flex; gap:2px; flex:none; }
.hw-macts .hw-act{ width:28px; height:28px; }

/* ── 编辑器弹窗（三步骤 + 表单） ── */
.hw-editor .modal{ width:min(760px, 94vw); max-height:92vh; overflow-y:auto; }
.hw-ed-head{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:8px; flex-wrap:wrap; }
.hw-ed-title{ font-weight:800; font-size:18px; color:var(--ink); }
.hw-ed-nav{ display:flex; align-items:center; gap:8px; }
.hw-ed-nav .btn{ font-size:12.5px; padding:5px 11px; }
#hwEdIdx{ font-size:12.5px; color:var(--ink-3); }
.hw-steps{ display:flex; margin:0 0 14px; border-radius:14px; overflow:hidden;
  border:1px solid var(--line); background:#f4f7fc; }
.hws{ flex:1; padding:9px 4px; text-align:center; font-size:13px; font-weight:600; color:var(--ink-3);
  border-right:1px solid var(--line); transition:background .2s, color .2s; cursor:pointer; }
.hws:last-child{ border-right:none; }
.hws:hover{ color:var(--accent); }
.hws.on{ background:linear-gradient(135deg,#1f4e8c,#2f6bb8); color:#fff; }
.hw-ed-body{ min-height:120px; }
.hw-form{ display:flex; flex-direction:column; gap:10px; }
.hw-tips{ display:flex; align-items:flex-start; gap:7px; font-size:12px; line-height:1.6; color:var(--ink-3);
  background:var(--accent-muted); border-radius:10px; padding:9px 11px; }
.hw-tips .e{ color:var(--accent); flex:none; }
.hw-tags{ display:flex; flex-wrap:wrap; gap:7px; }
.hw-tag{ padding:5px 12px; border-radius:999px; font-size:12.5px; font-weight:600; color:var(--ink-2);
  background:#f1f4f9; border:1px solid var(--line); cursor:pointer; transition:all .14s; }
.hw-tag:hover{ border-color:var(--accent); color:var(--accent); }
.hw-tag.on{ background:var(--accent); color:#fff; border-color:var(--accent);
  box-shadow:0 2px 8px rgba(31,78,140,.2); }

/* 步骤② 涂码 */
.hw-mask{ display:flex; flex-direction:column; gap:10px; }
.hw-mask-tips{ display:flex; align-items:flex-start; gap:7px; font-size:12px; line-height:1.6; color:var(--ink-3);
  background:#fff7e6; border:1px solid #f0dcae; border-radius:10px; padding:9px 11px; }
.hw-mask-tips .e{ color:var(--amber); flex:none; }
.hw-mask-stage{ display:flex; justify-content:center; background:#0f1726; border-radius:12px; padding:10px;
  max-height:60vh; overflow:auto; touch-action:none; }
.hw-mask-stage canvas{ max-width:100%; display:block; border-radius:6px; touch-action:none; cursor:crosshair; }

/* 步骤③ 证书设计 */
.hw-design{ display:flex; flex-direction:column; gap:12px; }
.hw-dsec{ background:var(--bg-card); border:1px solid var(--line); border-radius:15px; padding:12px; }
.hw-dsec.tpl{ background:linear-gradient(180deg,#fffdf7,#fff); }
.hw-dsec.ai{ border-style:dashed; border-color:#e6c98f; background:linear-gradient(180deg,#fffdf5,#fff);
  box-shadow:inset 0 0 0 1px rgba(212,175,55,.12); }
.hw-dsec-t{ font-size:13.5px; font-weight:700; color:var(--ink); margin-bottom:8px;
  display:flex; align-items:center; gap:6px; }
.hw-dsec.ai .hw-dsec-t{ color:#8a6a1f; }
.hw-tpls{ display:grid; grid-template-columns:repeat(auto-fill,minmax(112px,1fr)); gap:10px; }
.hw-tpl{ position:relative; border:2px solid var(--line); border-radius:14px; padding:8px; cursor:pointer;
  text-align:center; background:#fff; transition:border-color .16s, transform .16s, box-shadow .16s; }
.hw-tpl:hover{ transform:translateY(-2px); box-shadow:0 6px 14px rgba(15,39,64,.08); }
.hw-tpl.on{ border-color:#b08d3e; box-shadow:0 0 0 1px #b08d3e inset; }
.hw-tpl.on::after{ content:"✓"; position:absolute; top:6px; right:6px; width:20px; height:20px;
  border-radius:50%; background:#b08d3e; color:#fff; font-size:12px; line-height:20px; text-align:center; }
.hw-tpl-pv{ display:block; height:70px; border-radius:10px; margin-bottom:7px; border:1px solid rgba(0,0,0,.06); }
.hw-tpl-n{ font-size:12.5px; font-weight:600; color:var(--ink-2); }
.hw-cert-result{ margin-top:12px; }
.hw-cert-ok img{ width:100%; max-width:360px; border-radius:12px; border:1px solid var(--line);
  box-shadow:0 8px 26px rgba(15,39,64,.14); display:block; margin-bottom:8px; }
.hw-cert-fail{ padding:14px; border-radius:12px; background:var(--danger-muted); color:var(--danger);
  font-size:13px; font-weight:600; text-align:center; }
.hw-cert-preview img{ width:100%; max-height:60vh; object-fit:contain; border-radius:12px;
  border:1px solid var(--line); }
.hw-shareline input{ width:100%; padding:10px 12px; border-radius:10px; border:1px solid var(--line);
  font-size:13px; background:#f6f8fc; color:var(--ink-2); }

/* H5 小屏微调 */
@media (max-width:600px){
  .hw-grid{ grid-template-columns:repeat(auto-fill,minmax(158px,1fr)); gap:11px; }
  .hw-card-img{ aspect-ratio:3/4.2; }
  .hw-tpls{ grid-template-columns:repeat(3,1fr); }
  .hw-stats{ gap:7px; }
  .hw-hero{ padding:18px 14px 14px; }
}

/* ============================================================
   学生档案模块 · 现代简洁商务风 全面改版（2026-09-02 v3）
   设计原则：
   1) 层级清晰——名字 > 状态 > 元信息 > 操作，一眼找到重点
   2) 色彩克制——只用语义色（状态/风险），来源等次要标签统一灰阶
   3) 间距统一——卡片内统一留白节奏，减少堆叠感
   4) 状态明确——待确认/逾期/待跟进有明确视觉提示
   说明：本区块追加在样式表末尾，便于整体审阅与一键回滚
   ============================================================ */

/* ---------- ① 列表页：页头 + 筛选区 卡片化统一 ---------- */
.stu-head .ph-title{ font-size:21px; }
.stu-filter{
  background:var(--bg-card); border:1px solid var(--line); border-radius:var(--radius);
  padding:10px 12px; margin-bottom:12px; box-shadow:var(--shadow);
}
/* 卡内操作行（批量管理 / 新建学生）：右对齐，紧凑收口 */
.stu-acts{ display:flex; justify-content:flex-end; gap:8px; margin-bottom:10px; }
.stu-acts .btn{ padding:8px 14px; font-size:13px; }
/* 来源筛选条：轻量工具栏，悬停才出蓝色（避免多行卡片堆叠） */
.src-filter{ background:transparent; border:none; box-shadow:none; padding:4px 0 0; }
.src-filter .sf{ background:transparent; border-color:transparent; color:var(--ink-2); }
.src-filter .sf:hover:not(.on){ background:var(--accent-muted); border-color:transparent; color:var(--accent); }
.src-filter .sf.on{ background:var(--accent); border-color:var(--accent); color:#fff; }
.src-filter .sf-sel{ background:#fff; }
/* 学生档案页漏斗 Tab：横向滚动手势，不换行挤压 */
.stu-filter #stuTabs, .filter-bar #remChips{ flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; padding-bottom:2px; }
.stu-filter #stuTabs::-webkit-scrollbar, .filter-bar #remChips::-webkit-scrollbar{ display:none; }
.stu-filter #stuTabs .chip, .filter-bar #remChips .chip{ flex:none; white-space:nowrap; }
/* PC 端：漏斗 Tab + 搜索框 + 视图切换 同排，筛选区一次看全 */
@media (min-width:1024px){
  .stu-filter .search-box{ flex:0 1 260px; max-width:260px; }
  .stu-filter #stuTabs{ flex:1; }
}

/* ---------- ② 学生卡片：层级与留白 ---------- */
.stu-row{ border-radius:14px; }
.stu-row .stu-ava, .stu-row .stu-ava-img{
  border:2px solid var(--accent-muted);
  transition:border-color .18s;
}
.stu-row:hover .stu-ava, .stu-row:hover .stu-ava-img{ border-color:var(--accent-2); }
.stu-row .stu-name{ font-size:15.5px; letter-spacing:.2px; }
/* 档案时间：右下弱化，不再喧宾夺主 */
.stu-time{ color:var(--ink-3); opacity:.85; }
/* 次要标签（来源/昵称/业务员）：统一灰阶，消除彩色斑驳 */
.stu-row .stu-extra .m-tag{ background:#f2f4f9 !important; color:#5a6a85 !important; }
.stu-row .stu-extra .m-tag svg{ color:inherit !important; opacity:.78; }
/* 待确认「已等待 N 天」等内联语义色标签保留，不做灰阶处理 */
/* 下次跟进：行内徽标化，逾期/今日到期保留语义色 */
.stu-follow{ color:var(--ink-2); }
/* 底部快捷操作区：卡片高度撑满贴底，全部操作常亮可见（记跟进是高频入口，不淡化） */
.stu-quick{ background:rgba(15,39,64,.02); }
.stu-row .stu-quick-btn{ border-color:transparent; background:#fff; box-shadow:0 1px 3px rgba(15,39,64,.06); }
.stu-row:hover .stu-quick-btn{ border-color:var(--line-strong); }

/* ---------- ③ 档案详情头：元信息轻量化（去底色块，标签 + 值 + 圆点分隔） ---------- */
.st-head{ padding:18px 18px 16px; }
.st-ava-box .st-avatar, .st-ava-box .st-ava-img{ width:64px; height:64px; font-size:24px; }
.st-name{ font-size:19px; letter-spacing:.3px; }
.st-meta{ gap:4px 10px; }
.st-meta-item{
  background:transparent; padding:0; border-radius:0;
  font-size:12.5px; color:var(--ink-2);
  display:inline-flex; align-items:center; gap:6px; line-height:1.6;
}
.st-meta-item > span{ color:var(--ink-3); }
.st-meta-item + .st-meta-item::before{
  content:""; width:3px; height:3px; border-radius:50%;
  background:var(--line-strong); margin-right:10px; flex:none; opacity:.9;
}
.st-meta-item.st-bot-off{ color:var(--ink-3); }
/* 头部标签区：保留语义色，但统一间距 */
.st-badges{ gap:6px; }
.st-tags{ gap:6px; align-items:center; font-size:12px; color:var(--ink-3); }
/* 头部动作按钮：右对齐、更紧凑 */
.st-actions{ gap:8px; }
.st-actions .btn{ flex:0 1 auto; min-width:0; padding:8px 14px; }

/* ---------- ④ 概况 Tab · 锚点导航与侧栏 ---------- */
.st-ov-nav{ gap:6px; }
.st-ov-nav-item{ padding:5px 13px; font-size:12px; border-radius:14px; }
.st-side-quick{ gap:8px; }
.st-side-quick .btn{ flex:1; min-width:0; }

/* ---------- ⑤ 概况 Tab · 各卡片统一留白与强调条 ---------- */
.st-nextstep{ padding:14px 16px; }
.st-sop-card{ padding:14px 16px; }
.ns-row{ padding:9px 0; }
.tl-item{ padding:10px 0; }
.tl-content{ line-height:1.65; }

/* 申请画像：分组更清爽 */
.st-portrait-card{ border-radius:12px; padding:12px 14px; }
.st-port-group{ margin-top:10px; }
.st-port-item{ border-radius:9px; padding:5px 10px; }
.st-port-grid{ column-gap:8px; row-gap:6px; }

/* 申请进度条：圆角统一 */
.st-progress .stg-track{ border-radius:6px; }

/* ---------- ⑥ 跟进记录 Tab：时间轴线更干净 ---------- */
.fu-item{ padding:12px 0; }
.fu-content{ font-size:13.5px; }
.fu-meta{ gap:6px; }

/* ---------- ⑦ 申请 / 选校方案 / 来源 / 会话 / 记忆：列表行统一 ---------- */
.app-row{ padding:14px 0; }
.ar-name{ font-size:14px; }
.sp-item{ padding:14px 0; }
.sp-title{ font-size:13.5px; }
.src-item{ padding:11px 0; }
.ses-item{ padding:12px 0; }

/* ---------- ⑧ 弹窗表单：区块标题 + 字段间距更舒朗 ---------- */
.modal{ padding:12px 20px 24px; }
.modal h2{ font-size:17px; }
.modal .sub{ margin:4px 0 16px; }
.modal .sec-title{ margin:16px 0 10px; }
.modal .field{ margin-bottom:13px; }
.modal-actions{ margin-top:20px; }
.modal-actions .btn{ border-radius:8px; }
/* 漏斗状态流转弹窗：节点更清晰 */
.st-flow{ gap:8px; }
.flow-opt{ border-radius:10px; padding:11px 14px; }
.flow-opt.on{ border-color:var(--accent); background:var(--accent-muted); box-shadow:0 0 0 1px var(--accent); }
.flow-opt .flow-act{ color:var(--ink-3); }

/* ---------- ⑨ 响应式微调 ---------- */
@media (max-width:1023px){
  .stu-row{ border-radius:14px; padding:14px 14px 0; }
  .st-meta{ gap:4px 8px; }
  .st-meta-item{ font-size:12px; }
  .st-meta-item + .st-meta-item::before{ margin-right:8px; }
}
@media (max-width:700px){
  .stu-filter{ padding:8px 10px; }
  .st-actions .btn{ flex:1; }
  .stu-row .stu-ava, .stu-row .stu-ava-img{ width:46px; height:46px; }
  .stu-row .stu-name{ font-size:15px; }
  /* 高级筛选（待跟进/意向/标签/排序）窄屏换行 2 列，杜绝文字截断 */
  #stuMoreFilter{ flex-wrap:wrap; overflow-x:visible; }
  #stuMoreFilter .sf-sel{ flex:1 1 46%; max-width:none; }
  /* 新增跟进弹窗：日期输入独占一行，快捷 chips 换行到下一行 */
  .fu-date-row{ flex-wrap:wrap; }
  .fu-date-row input[type="date"]{ flex:1 1 100%; min-width:100%; }
}
/* 列表中「高意向/中意向」等彩色小字标签：统一灰阶，聚焦姓名与漏斗状态 */
.stu-row .stu-right .m-tag{ background:#f1f4f9 !important; color:#7a8698 !important; }
.stu-row .stu-right .m-tag svg{ color:inherit !important; opacity:.7; }

/* ============================================================
   学生档案 · 顾问工作向交互重构（2026-09-02 v3.1）
   ① 卡片决策信息：最近沟通摘要 + 下一步 ② 「记跟进」醒目按钮
   ③ 今日待办聚合条 ④ 紧凑行沟通摘要 ⑤ 详情页动线（时间轴前置）
   ============================================================ */

/* --- ① 列表卡片：决策信息行 --- */
.stu-row .stu-talk{
  display:flex; align-items:flex-start; gap:6px; margin-top:6px;
  font-size:12.5px; color:var(--ink-2); line-height:1.55;
  min-width:0;
}
.stu-row .stu-talk svg{ color:var(--accent); flex:none; margin-top:2px; opacity:.85; }
.stu-row .stu-talk .tt-c{
  flex:1; min-width:0;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;
  overflow:hidden; word-break:break-all;
}
.stu-row .stu-talk .tt-t{ flex:none; font-size:11px; color:var(--ink-3); padding-top:2px; }
.stu-row .stu-talk.empty{ color:var(--ink-3); }
.stu-row .stu-talk.empty svg{ color:var(--ink-3); }
/* 下一步：琥珀描边徽标，一眼定位"接下来做什么" */
.stu-row .stu-ns{
  display:flex; align-items:center; gap:5px; margin-top:5px;
  font-size:12px; font-weight:600; color:#b45309;
  background:var(--amber-muted); border-radius:8px; padding:4px 9px;
  width:fit-content; max-width:100%;
}
.stu-row .stu-ns svg{ flex:none; color:#b45309; }
.stu-row .stu-ns::after{ content:"…"; margin-left:auto; }

/* ═══ 我的订阅（subscription.js） ═══ */
.sub-up-card{ background:linear-gradient(135deg,#0f2740,#1e3a5f); color:#fff; border-radius:16px; padding:22px; margin-bottom:18px; }
.sub-up-card .sub-up-title{ font-size:17px; font-weight:700; margin-bottom:12px; }
.sub-up-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:10px; margin-bottom:16px; }
.sub-up-grid > div{ background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.14); border-radius:10px; padding:10px 12px; }
.sub-up-grid > div.on{ border-color:#fbbf24; background:rgba(251,191,36,.12); }
.sub-up-grid b{ display:block; font-size:13px; margin-bottom:4px; }
.sub-up-grid span{ font-size:12px; color:rgba(255,255,255,.72); line-height:1.5; display:block; }
.sub-up-card .btn{ width:100%; background:#fbbf24; color:#1c2330; border:none; border-radius:10px; padding:11px 22px; font-weight:700; font-size:14px; }
.sub-hero{ background:linear-gradient(135deg,#0f2740,#1e3a5f); color:#fff; border-radius:16px; padding:20px 22px; margin-bottom:18px; }
.sub-hero.warn{ background:linear-gradient(135deg,#92400e,#c0651a); }
.sub-hero.stopped{ background:linear-gradient(135deg,#7f1d1d,#b91c1c); }
/* 临期卡上的徽章用半透明白，避免与琥珀色 CTA 按钮撞色 */
.sub-hero.warn .sub-hero-badge.on{ background:rgba(255,255,255,.22); color:#fff; }
/* 允许超长方案名独占一行，徽章自动换到下一行并靠右，避免互相挤压 */
.sub-hero-row{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; margin-bottom:14px; }
.sub-hero-name{ font-size:18px; font-weight:700; flex:1 1 auto; min-width:0; }
.sub-hero-badge{ font-size:12px; padding:4px 10px; border-radius:20px; background:rgba(255,255,255,.15); white-space:nowrap; margin-left:auto; }
.sub-hero-badge.on{ background:#16a34a; }
.sub-hero-meta{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.sub-hero-meta > div{ background:rgba(255,255,255,.08); border-radius:10px; padding:10px; }
.sub-hero-meta span{ display:block; font-size:11px; color:rgba(255,255,255,.6); margin-bottom:3px; }
.sub-hero-meta b{ font-size:14px; white-space:nowrap; }
.sub-hero-cta{ margin-top:14px; text-align:right; }
.sub-hero-cta .btn{ background:#fbbf24; color:#1c2330; border:none; border-radius:10px; padding:9px 20px; font-weight:700; }
/* 已过期/退款的停服说明条 */
.sub-stop-tip{ background:#fef2f2; border:1px solid #fecaca; color:#b91c1c; font-size:13px; line-height:1.6; border-radius:10px; padding:10px 14px; margin:-6px 0 18px; }
.sub-usage{ background:#fff; border-radius:14px; padding:16px; margin-bottom:18px; box-shadow:0 1px 3px rgba(15,27,51,.06); }
.sub-usage-title{ font-size:14px; font-weight:700; margin-bottom:12px; }
.sub-usage-grid{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
@media (max-width:640px){ .sub-usage-grid{ grid-template-columns:1fr; } }
.sub-meter{ border:1px solid var(--line,#e9ecf2); border-radius:10px; padding:12px; }
.sub-meter.warn{ border-color:#fca5a5; background:#fef2f2; }
.sub-meter-top{ display:flex; justify-content:space-between; align-items:center; font-size:13px; margin-bottom:8px; gap:8px; }
.sub-meter-top span{ white-space:nowrap; }
.sub-meter-top b{ font-size:15px; white-space:nowrap; }
.sub-meter-bar{ height:6px; background:var(--line,#e9ecf2); border-radius:3px; overflow:hidden; }
.sub-meter-bar i{ display:block; height:100%; background:linear-gradient(90deg,var(--accent),var(--accent-2)); border-radius:3px; }
.sub-meter.warn .sub-meter-bar i{ background:#dc2626; }
.sub-meter-cta{ margin-top:8px; }
/* 红卡内的加购入口：白底红边红字（继承 .btn 会得到深蓝底，必须显式覆盖） */
.sub-meter-cta .btn.sm{ background:#fff; color:#dc2626; border:1px solid #fecaca; box-shadow:none; }
/* 高频操作三宫格：主操作实心、加购描边；任何宽度都不折行、不孤悬 */
.sub-usage-actions{ display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-top:14px; }
.sub-usage-actions .btn{ width:100%; }
/* 低频服务入口（开票 / 打款）：细分隔线下的整行点按区，与购买操作分层 */
.sub-svc{ margin-top:12px; border-top:1px solid var(--line,#e8ecf3); }
.sub-svc-row{ display:flex; align-items:center; justify-content:space-between;
  padding:11px 2px; font-size:13.5px; color:var(--ink-2,#4a5568); cursor:pointer; }
.sub-svc-row + .sub-svc-row{ border-top:1px dashed var(--line,#eef1f6); }
.sub-svc-row:active{ background:var(--bg,#f5f7fa); border-radius:8px; }
.sub-svc-go{ flex:none; width:8px; height:8px; margin-right:4px;
  border-top:1.6px solid var(--ink-3,#7a8698); border-right:1.6px solid var(--ink-3,#7a8698);
  transform:rotate(45deg); }
@media (max-width:340px){
  .sub-usage-actions{ gap:6px; }
  .sub-usage-actions .btn.sm{ padding:6px 4px; font-size:12px; }
}
/* 记录卡之间留出与其他卡片一致的间距 */
.sub-records{ background:#fff; border-radius:14px; padding:16px; margin-bottom:16px; box-shadow:0 1px 3px rgba(15,27,51,.06); }
.sub-records:last-child{ margin-bottom:0; }
/* 记录卡标题：底部分隔线，与下方列表形成层次 */
.sub-records .sub-usage-title{ margin-bottom:0; padding-bottom:11px; border-bottom:1px solid var(--line,#e8ecf3); }
/* 记录行：左侧弹性收窄、右侧纵向排列（金额 / 状态 / 操作），防止单号/长文案互相挤压 */
.sub-order{ display:flex; justify-content:space-between; align-items:flex-start; gap:12px; padding:13px 2px 12px; border-bottom:1px solid var(--line,#eef1f6); }
.sub-order:last-child{ border-bottom:none; }
.sub-order-left{ flex:1 1 auto; min-width:0; }
.sub-order-left b{ display:block; font-size:14px; }
.sub-order-left span{ display:block; font-size:12px; line-height:1.7; color:var(--ink-3,#8b95a6); overflow-wrap:break-word; word-break:break-word; }
.sub-order-right{ flex:none; display:flex; flex-direction:column; align-items:flex-end; gap:7px; }
.sub-order-amt{ font-size:14.5px; font-weight:700; white-space:nowrap; line-height:20px; }
.sub-order-no{ display:block; font-size:11px; color:var(--ink-3,#8b95a6); font-weight:400; margin-top:2px; overflow-wrap:break-word; word-break:break-all; }
/* 订单号移到左栏后，字号需压过 .sub-order-left span 的 12px 默认值 */
.sub-order-left span.sub-order-no{ font-size:11px; line-height:1.6; }
/* 线下打款被驳回的原因：单独成行、红色强调（提高特异性，避免被 .sub-order-left span 覆盖） */
.sub-order-left span.sub-off-reject{ display:block; color:#dc2626; margin-top:3px; line-height:1.6; }
/* 加购小标签：统一品牌蓝（提高特异性，避免被 .sub-order-left span 的 display:block 覆盖） */
.sub-order-left b .sub-tag{ display:inline-block; vertical-align:1px; font-size:10px; font-style:normal; font-weight:600; color:var(--accent,#1f4e8c); background:var(--accent-muted,#eaf1fa); border:1px solid #c9dcf2; border-radius:5px; padding:0 5px; line-height:16px; white-space:nowrap; }
/* 状态胶囊徽标：浅底彩字，四类状态分色（与全站 badge 配色一致） */
.sub-state{ display:inline-block; font-style:normal; font-weight:600; font-size:11px; line-height:16px; padding:2px 9px; border-radius:999px; white-space:nowrap; }
.sub-state.ok{ color:#15803d; background:#e8f5ec; }
.sub-state.wait{ color:#b45309; background:var(--amber-muted,#fef3c7); }
.sub-state.bad{ color:var(--danger,#dc2626); background:var(--danger-muted,#fee2e2); }
.sub-state.muted{ color:var(--ink-3,#8b95a6); background:#f1f3f7; font-weight:500; }
/* 记录行右栏的「去支付」小按钮：跟随状态徽标对齐 */
.sub-order-right .sub-pay-btn{ margin-left:0; padding:3px 12px; font-size:11.5px; }
/* 弹层（sheet）：层级必须低于 toast(60) 与通用 overlay(50)，否则弹层内的错误提示会被遮罩盖住 */
.sub-scrim{ position:fixed; inset:0; z-index:45; background:rgba(10,18,32,.5); backdrop-filter:blur(2px); }
.sub-sheet-wrap{ position:fixed; left:50%; bottom:0; transform:translateX(-50%); z-index:46; width:min(480px,100%); }
@media (min-width:640px){ .sub-sheet-wrap{ bottom:auto; top:50%; transform:translate(-50%,-50%); } }
.sub-sheet{ position:relative; background:#fff; border-radius:18px 18px 0 0; padding:18px 16px calc(18px + env(safe-area-inset-bottom)); max-height:78vh; overflow-y:auto; }
@media (min-width:640px){ .sub-sheet{ border-radius:18px; } }
.sub-sheet-title{ font-size:16px; font-weight:700; margin-bottom:12px; padding-right:30px; }
/* 弹层右上角关闭键：与遮罩点击互为兜底，手机端无需猜测退出方式 */
.sub-sheet-close{ position:absolute; top:10px; right:10px; width:28px; height:28px; padding:0; border:0; border-radius:50%; background:var(--bg,#f3f4f7); color:var(--ink-2,#5b6575); font-size:18px; line-height:26px; text-align:center; cursor:pointer; }
.sub-sheet-close:hover{ background:#e9ebf1; }
.sub-plan-opt{ display:flex; justify-content:space-between; align-items:center; gap:10px; border:1px solid var(--line,#e9ecf2); border-radius:10px; padding:12px 14px; margin-bottom:8px; cursor:pointer; }
.sub-plan-opt.sel{ border-color:var(--accent,#1f4e8c); background:var(--accent-muted,#eaf1fa); }
.sub-plan-main{ min-width:0; }
.sub-plan-main b{ display:block; font-size:14px; }
.sub-plan-main span{ display:block; font-size:12px; color:var(--ink-3,#8b95a6); margin-top:2px; }
.sub-plan-price{ font-size:16px; font-weight:700; color:var(--accent,#1f4e8c); white-space:nowrap; }
.sub-label{ display:block; font-size:12px; color:var(--ink-3,#8b95a6); margin:10px 0 4px; }
.sub-input{ width:100%; padding:9px 11px; border:1px solid var(--line-input,#dde2eb); border-radius:8px; font-size:14px; box-sizing:border-box; }
/* 线下打款凭证：隐藏浏览器原生英文文件控件，改为统一中文选择框 */
.sub-file{ display:flex; align-items:center; gap:8px; width:100%; padding:9px 11px; border:1px dashed var(--line-input,#dde2eb); border-radius:8px; background:#fafbfc; font-size:13px; color:var(--ink-2,#5b6575); cursor:pointer; box-sizing:border-box; }
.sub-file input[type=file]{ display:none; }
.sub-file em{ margin-left:auto; font-style:normal; font-size:11px; color:var(--ink-3,#8b95a6); white-space:nowrap; }
/* 弹层底部主按钮整行铺满，便于单手点按 */
.sub-sheet .btn.full{ width:100%; margin-top:14px; }

/* ============================================================
   网页对话（.wc-*）与微信并行的网页通道 · 全屏聊天布局
   2026-09-16 v2 视觉重构：精致飞书/企微风
   设计原则：浅灰底 + 白色卡片、克制商务蓝、极淡边框与轻柔阴影、
   低饱和状态色、统一 8/10/12px 圆角体系
   ============================================================ */

/* 承载聊天页时，#screen 去内边距、关闭自身滚动（内部消息区自管滚动） */
#screen:has(.wc-root){ padding:0; overflow:hidden; }

.wc-root{
  height:100%; display:flex; flex-direction:column;
  background:#f3f5f8; min-height:0;
}

/* ---- 顶部栏 ---- */
.wc-top{
  position:relative;
  flex:none; height:48px; display:flex; align-items:center; gap:10px;
  padding:0 12px; background:var(--bg-card);
  border-bottom:1px solid #eef0f4;
}
.wc-icon-btn{
  width:31px; height:31px; border-radius:8px; flex:none;
  display:flex; align-items:center; justify-content:center;
  color:var(--ink-2); transition:background .15s,color .15s;
}
.wc-icon-btn:hover{ background:#f2f4f7; color:var(--ink); }
/* Bot 方形头像（浅蓝底 + 蓝色线性图标，不用渐变） */
.wc-top-avatar{
  flex:none; width:36px; height:36px; border-radius:10px;
  display:flex; align-items:center; justify-content:center;
  background:var(--accent-muted); color:var(--accent);
}
.wc-top-id{ flex:1; min-width:0; }
.wc-top-name{
  font-size:15px; font-weight:600; line-height:1.35; color:var(--ink);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.wc-top-sub{
  font-size:11.5px; color:var(--ink-3); margin-top:1px;
  display:flex; align-items:center; gap:5px;
}
.wc-top-sub::before{
  content:""; width:6px; height:6px; border-radius:50%;
  background:#22a06b; flex:none;
}
/* BOT 在线状态标签（颜色即状态：绿=在线 灰=离线/未知 红=已冻结） */
.wc-share-pill{
  flex:none; display:inline-flex; align-items:center; gap:5px;
  font-size:11.5px; font-weight:600; line-height:1;
  color:var(--ink-3); background:#f4f6f9; border:1px solid var(--line);
  padding:4px 10px; border-radius:999px; white-space:nowrap;
  transition:color .2s,background .2s,border-color .2s;
}
.wc-svc-dot{
  width:7px; height:7px; border-radius:50%; flex:none;
  background:var(--ink-3);
}
.wc-share-pill.is-online{ color:#15803d; background:rgba(22,163,74,.10); border-color:rgba(22,163,74,.28); }
.wc-share-pill.is-online .wc-svc-dot{ background:var(--module-1); }
.wc-share-pill.is-offline,
.wc-share-pill.is-unknown{ color:var(--ink-3); background:#f4f6f9; border-color:var(--line); }
.wc-share-pill.is-offline .wc-svc-dot,
.wc-share-pill.is-unknown .wc-svc-dot{ background:var(--ink-3); }
.wc-share-pill.is-frozen{ color:var(--danger); background:var(--danger-muted); border-color:rgba(220,38,38,.28); }
.wc-share-pill.is-frozen .wc-svc-dot{ background:var(--danger); }
.wc-sess-toggle{ display:none; }

/* 顶栏左：BOT 切换器 */
.wc-bot-switch{
  flex:none; display:inline-flex; align-items:center; gap:9px;
  height:34px; padding:0 9px 0 4px; border-radius:10px;
  border:1px solid var(--line-strong); background:#fff; color:var(--ink);
  transition:background .15s,border-color .15s;
}
.wc-bot-switch:hover{ background:#f7f9fc; border-color:#c9d3e2; }
.wc-bot-switch.menu-on{ background:var(--accent-muted); border-color:var(--accent); }
.wc-bot-switch .wc-top-avatar{ width:27px; height:27px; border-radius:8px; }
.wbs-name{
  font-size:14px; font-weight:600; max-width:180px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.wbs-caret{ display:flex; color:var(--ink-3); transition:transform .18s; }
.wc-bot-switch.menu-on .wbs-caret{ transform:rotate(180deg); }
.wc-bot-switch.no-caret .wbs-caret{ display:none; }
.wc-top-spacer{ flex:1; min-width:0; }

/* BOT 下拉菜单 */
.wc-bot-menu{
  position:absolute; z-index:40; top:44px; left:12px;
  min-width:252px; max-width:calc(100vw - 24px);
  background:#fff; border:1px solid var(--line);
  border-radius:12px; box-shadow:var(--shadow-lg);
  padding:6px; display:none;
}
.wc-bot-menu.open{ display:block; animation:wcIn .16s ease both; }
.wbm-opt{
  display:flex; align-items:center; gap:8px;
  padding:8px 10px; border-radius:8px; cursor:pointer;
}
.wbm-opt:hover{ background:#f5f7fa; }
.wbm-opt.cur{ background:var(--accent-muted); }
.wbm-ic{ display:flex; color:var(--accent); flex:none; }
.wbm-name{
  flex:0 1 auto; min-width:0; font-size:13.5px; font-weight:600; color:var(--ink);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
/* 迷你渠道标记：绿=微信 BOT，青=网页助理（紧跟 BOT 名称） */
.wbm-ch{
  flex:none; font-size:10px; font-weight:700; line-height:1;
  padding:3px 6px; border-radius:999px; white-space:nowrap;
}
.wbm-ch-wx{ background:rgba(7,193,96,.14); color:#07A351; }
.wbm-ch-web{ background:#DDF7FB; color:#0A6E7A; }
.wbm-opt .status-dot{ margin-left:auto; }
.wbm-st{ font-size:11px; color:var(--ink-3); flex:none; }
.wbm-check{ display:flex; color:var(--accent); flex:none; }

/* ---- 主体：侧栏 + 消息列 ---- */
.wc-body{ flex:1; display:flex; min-height:0; }

.wc-sessions{
  width:248px; flex:none; display:flex; flex-direction:column;
  background:#fff; border-right:1px solid #eef0f4; padding:14px 12px;
}
/* 浅色次按钮 */
.wc-new-btn{
  display:flex; align-items:center; justify-content:center; gap:6px;
  padding:9px; border-radius:8px; font-size:13.5px; font-weight:600;
  color:var(--accent); background:#fff;
  border:1px solid var(--line-strong); margin-bottom:14px;
  transition:background .15s,border-color .15s;
}
.wc-new-btn:hover{ background:var(--accent-muted); border-color:var(--accent); }
.wc-sess-list{ flex:1; overflow-y:auto; margin:-4px; padding:4px; }
.wc-sess-item{
  position:relative; padding:10px 58px 10px 14px; margin-bottom:2px;
  border-radius:8px; cursor:pointer;
  border-left:3px solid transparent;
  transition:background .15s;
}
.wc-sess-item:hover{ background:#f5f7fa; }
/* 飞书式选中态：浅蓝底 + 左侧蓝色竖条（不用描边+阴影） */
.wc-sess-item.active{ background:var(--accent-muted); border-left-color:var(--accent); }
.wsi-title{
  font-size:13.5px; font-weight:500; color:var(--ink-2);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.wc-sess-item.active .wsi-title{ color:var(--accent); font-weight:600; }
.wsi-meta{ font-size:11px; color:var(--ink-3); margin-top:3px; }
/* 会话项右侧操作：置顶 + 更多 */
.wsi-actions{
  position:absolute; right:5px; top:50%; transform:translateY(-50%);
  display:none; align-items:center; gap:1px;
}
.wc-sess-item:hover .wsi-actions{ display:inline-flex; }
/* 含置顶会话时操作区常显（保证蓝色图钉一直可见） */
.wsi-actions.pin-on{ display:inline-flex; }
.wsi-act{
  width:25px; height:25px; border-radius:7px;
  display:flex; align-items:center; justify-content:center; color:var(--ink-3);
}
.wsi-act:hover{ background:#eef1f6; color:var(--ink); }
.wsi-pin:hover{ color:var(--accent); background:var(--accent-muted); }
.wsi-pin.on{ display:flex; color:var(--accent); }

/* 三个点浮层菜单 */
.wsi-menu{
  position:absolute; z-index:35; right:6px; top:34px;
  min-width:120px; background:#fff; border:1px solid var(--line);
  border-radius:10px; box-shadow:var(--shadow-lg); padding:5px;
  display:none;
}
.wsi-menu.open{ display:block; animation:wcIn .15s ease both; }
/* 靠底部时向上展开 */
.wsi-menu.drop-up{ top:auto; bottom:34px; }
.wsm-item{
  display:flex; align-items:center; gap:8px;
  padding:7px 9px; border-radius:7px; font-size:13px; color:var(--ink);
  cursor:pointer;
}
.wsm-item:hover{ background:#f5f7fa; }
.wsm-item.danger{ color:var(--danger); }
.wsm-item.danger:hover{ background:var(--danger-muted); }

/* 行内重命名输入框 */
.wsi-rename{
  width:100%; font-size:13px; font-weight:500; color:var(--ink);
  border:1px solid var(--accent); border-radius:6px;
  padding:3px 6px; background:#fff; outline:none;
}
.wsi-rename:disabled{ opacity:.6; }

/* ---- 消息列 ---- */
.wc-main{ flex:1; display:flex; flex-direction:column; min-width:0; min-height:0; }
.wc-msgs{
  flex:1; overflow-y:auto;
  padding:24px clamp(16px, 8%, 56px) 10px;
}

.wc-row{ display:flex; margin-bottom:18px; animation:wcIn .22s ease both; }
@keyframes wcIn{ from{ opacity:0; transform:translateY(5px); } to{ opacity:1; transform:none; } }
.wc-row.me{ justify-content:flex-end; }
/* AI 圆形头像：浅蓝底 + 蓝色图标，无渐变无投影 */
.wc-avatar{
  width:32px; height:32px; border-radius:50%; flex:none; margin-right:10px;
  display:flex; align-items:center; justify-content:center;
  background:var(--accent-muted); color:var(--accent);
}
.wc-bubble-wrap{ max-width:min(70%, 680px); min-width:0; }
.wc-row.me .wc-bubble-wrap{ max-width:min(70%, 680px); }
.wc-bubble{
  display:inline-block; max-width:100%; padding:10px 14px; border-radius:2px 10px 10px 10px;
  font-size:14px; line-height:1.7; word-break:break-word;
}
.wc-bubble.ai{
  background:#fff; color:var(--ink);
  border:1px solid #eceef2;
  border-radius:2px 10px 10px 10px;
  box-shadow:0 1px 2px rgba(15,39,64,.04);
}
/* 我方气泡：飞书式浅蓝底深色字（不再是深蓝实心） */
.wc-bubble.me{
  background:#d8e6fa; color:#17233b;
  border-radius:10px 2px 10px 10px;
}
.wc-time{ font-size:10.5px; color:var(--ink-3); margin-top:5px; text-align:right; }
.wc-bubble.me .wc-time{ color:rgba(23,35,59,.42); }

/* AI 气泡 Markdown 排版：表格/列表/代码块在窄屏可横向滚动 */
.wc-text .wc-md-p{ margin:0 0 8px; }
.wc-text .wc-md-p:last-child{ margin-bottom:0; }
.wc-text .wc-md-h{ margin:10px 0 6px; font-size:14px; font-weight:700; color:var(--ink); }
.wc-text .wc-md-h:first-child{ margin-top:0; }
.wc-text .wc-md-ul, .wc-text .wc-md-ol{ margin:6px 0 8px; padding-left:20px; }
.wc-text .wc-md-ul li, .wc-text .wc-md-ol li{ margin:3px 0; }
.wc-text .wc-md-pre{ margin:8px 0; padding:10px 12px; background:#f6f3ec; border:1px solid var(--line); border-radius:8px; overflow:auto; font-size:12px; line-height:1.6; }
.wc-text code{ background:#f6f3ec; padding:1px 5px; border-radius:4px; font-size:12px; }
.wc-text .wc-md-pre code{ background:none; padding:0; }
.wc-text .wc-md-tablewrap{ max-width:100%; margin:8px 0; overflow-x:auto; -webkit-overflow-scrolling:touch; }
.wc-text .wc-md-table{ width:100%; border-collapse:collapse; font-size:12px; line-height:1.5; }
.wc-text .wc-md-table th, .wc-text .wc-md-table td{ padding:6px 9px; border:1px solid var(--line); text-align:left; white-space:nowrap; }
.wc-text .wc-md-table th{ background:#f6f3ec; font-weight:700; color:var(--ink-2); }
.wc-text a{ color:var(--accent); text-decoration:underline; }

/* 打字光标 */
.wc-cursor{
  display:inline-block; width:6px; height:14px; margin-left:3px;
  vertical-align:-2px; border-radius:1px; background:var(--accent-2);
  animation:wcBlink .9s steps(1) infinite;
}
@keyframes wcBlink{ 50%{ opacity:0; } }

/* 开口前陪伴气泡：比正文气泡更轻的浅灰蓝，三点柔和起伏 */
.wc-thinking{
  display:inline-flex; align-items:center; gap:9px;
  padding:11px 15px; max-width:100%;
  background:#f6f8fb; border:1px solid #eceef2;
  border-radius:2px 10px 10px 10px;
  font-size:13.5px; line-height:1.45; color:var(--ink-2);
}
.wcth-dots{ display:inline-flex; align-items:center; gap:4px; flex:none; }
.wcth-dots i{
  width:6px; height:6px; border-radius:50%;
  background:#9fb3cc;
  animation:wcthBounce 1.2s ease-in-out infinite;
}
.wcth-dots i:nth-child(2){ animation-delay:.18s; }
.wcth-dots i:nth-child(3){ animation-delay:.36s; }
@keyframes wcthBounce{
  0%, 60%, 100%{ transform:translateY(0); opacity:.45; }
  30%{ transform:translateY(-3px); opacity:1; }
}
.wcth-text{ min-width:0; }
.wcth-text.pop,
.wcd-wait-text.pop{ animation:wcSoftIn .35s ease both; }
@keyframes wcSoftIn{
  from{ opacity:0; transform:translateY(2px); }
  to{ opacity:1; transform:none; }
}
@media (prefers-reduced-motion: reduce){
  .wcth-dots i{ animation:none; }
  .wcth-text.pop, .wcd-wait-text.pop{ animation:none; }
}

/* 知识引用标签：低饱和浅灰蓝 */
.wc-kbtags{ display:flex; flex-wrap:wrap; gap:6px; margin-top:9px; }
.wc-kbtag{
  display:inline-flex; align-items:center; gap:3px; font-size:11px;
  color:var(--accent); background:#f4f7fc;
  border:1px solid #e7eef8;
  padding:3px 9px; border-radius:6px;
}

/* ---- 工具轨迹：一行安静的灰色小字（回答结束自动变淡，可点 × 收起） ---- */
.wc-tools{ margin-top:6px; display:flex; flex-direction:column; gap:8px; }
.wc-trace{
  align-self:flex-start; max-width:100%;
  display:flex; flex-wrap:wrap; align-items:center; gap:2px 8px;
  font-size:12px; line-height:1.7; color:var(--ink-3);
  max-height:60px; overflow:hidden;
  transition:opacity .3s ease, max-height .35s ease, transform .3s ease;
}
.wc-trace .wct-dones{
  display:inline-flex; flex-wrap:wrap; align-items:center; gap:2px 8px;
}
.wc-trace .wct-item{ display:inline-flex; align-items:center; gap:4px; white-space:nowrap; }
.wc-trace .wct-item svg{ color:#22a06b; flex:none; }
.wc-trace .wct-n{ font-style:normal; font-size:11px; opacity:.6; }
.wc-trace .wct-sep{ color:#c8cfd9; }
.wc-trace .wct-run{
  display:inline-flex; align-items:center; gap:5px;
  color:var(--accent); font-weight:500; white-space:nowrap;
}
.wc-trace .spin{ width:11px; height:11px; border-width:2px; flex:none; }
.wc-trace .wct-x{
  display:none; flex:none; width:17px; height:17px; padding:0; margin-left:1px;
  border:0; background:transparent; color:var(--ink-3);
  font-size:13px; line-height:17px; text-align:center; cursor:pointer;
  border-radius:4px; opacity:.6; transition:background .15s ease, opacity .15s ease;
}
.wc-trace .wct-x:hover{ background:#eaeef4; opacity:1; }
/* 回答结束：整条轨迹退后为浅色，悬停/聚焦恢复全色并露出收起按钮 */
.wc-tools.settled .wc-trace{ opacity:.5; }
.wc-tools.settled .wc-trace:hover,
.wc-tools.settled .wc-trace:focus-within{ opacity:1; }
.wc-tools.settled .wc-trace .wct-x{
  display:inline-flex; align-items:center; justify-content:center;
}
.wc-trace.dismissed{
  opacity:0; max-height:0; transform:translateY(-3px); pointer-events:none;
}

/* 写操作待确认：保留醒目的琥珀小条（需要顾问动手，不是普通处理痕迹） */
.wc-tool{
  display:inline-flex; align-items:center; gap:7px; align-self:flex-start;
  font-size:12.5px; font-weight:500; padding:6px 12px; border-radius:8px;
  background:#fff; border:1px solid var(--line); color:var(--ink-2);
}
.wc-tool.confirming{
  color:#b45309; background:#fffbeb; border-color:#fdecc8;
}
.wc-tool .spin{ width:12px; height:12px; border-width:2px; flex:none; }
.wct-dots::after{
  content:""; animation:wcDots 1.2s steps(4,end) infinite;
}
@keyframes wcDots{ 0%{content:""} 25%{content:"·"} 50%{content:"··"} 75%{content:"···"} }
.wc-tool-note{
  align-self:flex-start; display:inline-flex; align-items:center; gap:6px;
  font-size:12px; color:#b45309; background:#fffbeb;
  border:1px solid #fdecc8;
  padding:6px 12px; border-radius:8px; margin-top:8px;
}

/* ---- 工具结果卡片：干净白底列表 ---- */
.wc-card{
  align-self:stretch; background:#fff; border:1px solid #eceef2;
  border-radius:10px; overflow:hidden;
  box-shadow:0 1px 2px rgba(15,39,64,.04);
}
.wc-card.err{
  display:flex; align-items:center; gap:7px; padding:10px 13px;
  color:var(--danger); background:#fff; font-size:13px;
}
.wcc-ic{ flex:none; display:flex; }
.wcc-head{
  font-size:12px; font-weight:600; color:var(--ink-3);
  padding:9px 13px; border-bottom:1px solid #f1f3f6; background:#fafbfd;
  display:flex; align-items:center; gap:5px;
}
.wcc-item{
  display:flex; align-items:center; gap:10px; padding:10px 13px;
}
.wc-card.clickable .wcc-item{ cursor:pointer; }
.wc-card.clickable .wcc-item:hover{ background:#f6f9fe; }
.wcc-name{ flex:1; min-width:0; font-size:13.5px; font-weight:500; color:var(--ink); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.wcc-tag{
  flex:none; font-size:11px; font-weight:500; color:var(--ink-2);
  background:#f1f4f8; padding:3px 9px; border-radius:6px; white-space:nowrap;
}
.wcc-go{ flex:none; color:#b6bfcc; display:flex; }
.wcc-item:hover .wcc-go{ color:var(--accent); }
.wcc-kb-row{ display:flex; gap:10px; padding:9px 13px; font-size:13px; align-items:flex-start; }
.wcc-kb-topic{
  flex:none; font-size:11px; font-weight:600; color:var(--accent);
  background:var(--accent-muted); padding:2px 8px; border-radius:6px;
}
.wcc-kb-title{ min-width:0; color:var(--ink-2); line-height:1.5; }

/* ---- 选项卡（ask_choice）：仅在「不选就没法继续」时出现 ---- */
.wc-card.choice .wcc-head{
  color:var(--accent); background:#f5f9ff; border-bottom-color:#e8f0fb;
}
.wcc-choices{ display:flex; flex-direction:column; gap:8px; padding:12px 13px; }
.wcc-opt{
  width:100%; justify-content:flex-start; text-align:left;
  padding:9px 13px; font-size:13px; font-weight:500; line-height:1.45;
  white-space:normal; word-break:break-word;
}
.wcc-opt.is-active{
  border-color:var(--accent); color:var(--accent); background:var(--accent-muted);
}
/* 已选过：整张卡淡出，被点中的那一项保持清晰 */
.wc-card.choice.is-picked .wcc-opt{ opacity:.45; }
.wc-card.choice.is-picked .wcc-opt.is-active{ opacity:1; }
/* 翻看旧对话：选项只作展示，不可再点 */
.wc-card.choice.is-history{ background:#fbfcfe; }
.wc-card.choice.is-history .wcc-head{
  color:var(--ink-3); background:#fafbfd; border-bottom-color:#f1f3f6;
}
.wc-card.choice.is-history .wcc-choices{ flex-direction:row; flex-wrap:wrap; gap:7px; }
.wcc-chip{
  display:inline-block; font-size:12.5px; color:var(--ink-3); line-height:1.45;
  background:#f1f4f8; border:1px dashed var(--line-strong);
  padding:6px 11px; border-radius:7px; word-break:break-word;
}

/* ---- 写操作确认卡片：左侧琥珀竖条 + 白底 ---- */
.wc-confirm{
  align-self:stretch; background:#fffdf8;
  border:1px solid #f3e6c6; border-left:3px solid var(--amber);
  border-radius:10px; padding:13px 14px;
  box-shadow:0 1px 2px rgba(15,39,64,.04);
}
.wcf-head{ display:flex; align-items:center; gap:9px; margin-bottom:10px; }
.wcf-badge{
  font-size:11px; font-weight:600; padding:3px 10px; border-radius:6px;
}
.wcf-badge.info{ color:var(--accent); background:var(--accent-muted); }
.wcf-badge.warn{ color:#b45309; background:#fef3c7; }
.wcf-badge.ok{ color:#15803d; background:#dcfce7; }
.wcf-student{
  flex:1; font-size:14px; font-weight:600; color:var(--ink);
  min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.wcf-timer{
  flex:none; font-size:11.5px; font-weight:600; color:#b45309;
  display:inline-flex; align-items:center; gap:3px;
}
.wcf-timer::before{ content:"⏱"; font-size:12px; }
.wcf-params{
  background:#fff; border:1px solid #f1e7cf; border-radius:8px;
  padding:2px 12px; margin-bottom:12px;
}
.wcf-param{ display:flex; gap:12px; padding:8px 0; font-size:13px; border-bottom:1px dashed #f0e8d4; }
.wcf-param:last-child{ border-bottom:none; }
.wcf-k{ flex:none; width:64px; color:var(--ink-3); font-size:12.5px; padding-top:1px; }
.wcf-v{ min-width:0; color:var(--ink); word-break:break-word; line-height:1.6; }
/* 画像分组：标题＋缩进子行（替代旧 JSON 原文展示） */
.wcf-subhead{
  font-size:11.5px; font-weight:600; color:#a08d5f; letter-spacing:.5px;
  padding:9px 0 1px;
}
.wcf-subhead:first-child{ padding-top:8px; }
.wcf-param.is-sub{ padding:5px 0 5px 10px; border-bottom-color:#f6f0e2; }
.wcf-param.is-sub .wcf-k{ color:#a8966a; width:64px; }
.wcf-param.is-sub + .wcf-param:not(.is-sub){ border-top:1px dashed #f0e8d4; }
/* 院校录入前检查：琥珀色软提醒（不阻断确认） */
.wcf-warns{
  margin:10px 0 2px; padding:9px 11px;
  background:#fdf5e6; border:1px solid #f0d8a6; border-radius:8px;
  display:flex; flex-direction:column; gap:7px;
}
.wcf-warn{ display:flex; gap:7px; align-items:flex-start; }
.wcf-warn-ico{ flex:none; color:#d08a1e; font-size:13px; line-height:1.55; }
.wcf-warn-txt{ font-size:12.5px; line-height:1.6; color:#7a5a1e; word-break:break-word; }
.wcf-warn-txt b{ color:#9a6308; font-weight:600; }
.wcf-warn-field{ font-weight:600; color:#8a6a28; }
.wcf-actions{ display:flex; gap:9px; }
.wcf-ok{ height:32px; padding:0 16px; font-size:13px; box-shadow:none; }
.wcf-cancel{ height:32px; padding:0 16px; font-size:13px; }
.wcf-state{ display:none; font-size:12.5px; margin-top:10px; }
.wcf-state.show{ display:block; }
.wcf-state.ok{ color:#15803d; font-weight:500; }
.wcf-state.warn{ color:#b45309; font-weight:500; }
.wcf-state.muted{ color:var(--ink-3); }
.wc-confirm[data-state="executed"]{ border-left-color:#22a06b; border-color:#cdeedb; background:#fbfefc; }
.wc-confirm[data-state="cancelled"], .wc-confirm[data-state="expired"]{
  border-color:var(--line); border-left-color:#c2cad6; background:#fff; opacity:.9;
}

/* ---- 错误条 ---- */
.wc-err{
  align-self:stretch; display:flex; align-items:center; gap:8px;
  background:#fef2f2; border:1px solid #fee2e2; border-radius:8px;
  padding:9px 12px; font-size:13px; color:#b91c1c;
}
.wce-ic{ flex:none; display:flex; }
.wce-msg{ flex:1; min-width:0; }
.wce-retry{
  flex:none; font-size:12px; font-weight:600; color:#b91c1c;
  background:#fff; border:1px solid #f3b4b4; padding:4px 13px;
  border-radius:7px; transition:background .15s;
}
.wce-retry:hover{ background:#fee2e2; }

/* ============================================================
   选校方案 · 生成进度 / 文档卡片 / 失败态（文档中心 第一期）
   ============================================================ */

/* 选校方案专属徽章（确认态：靛紫） */
.wcf-badge.plan{ color:#6d28d9; background:#ede9fe; }

/* 进度 / 失败：卡片由琥珀“待确认”切换为文档态 */
.wc-confirm.doc-mode{
  border-color:#d8e4f3; border-left-color:var(--accent);
  background:#fbfdff;
}
.wc-confirm.doc-mode[data-doc="failed"]{
  border-color:#f3c5c5; border-left-color:var(--danger);
  background:#fffdfd;
}
.wc-confirm.doc-mode .wcf-head{ margin-bottom:12px; }
.wc-confirm.doc-mode .wcf-badge.plan{ color:var(--accent); background:var(--accent-muted); }

/* ── 生成进度：不定宽滑动光条（不显示虚假百分比） ── */
.wcd-progress{ padding:2px 1px 0; }
.wcd-bar{
  position:relative; height:7px; border-radius:99px;
  background:#e9eef6; overflow:hidden;
}
.wcd-bar-fill{
  position:absolute; top:0; left:0; height:100%; width:46%;
  border-radius:99px;
  background:linear-gradient(90deg,#2f6bb8,#1f4e8c 55%,#2f6bb8);
  animation:wcdBarSlide 1.35s ease-in-out infinite alternate;
  will-change:transform;
}
@keyframes wcdBarSlide{
  from{ transform:translateX(-12%); }
  to{ transform:translateX(128%); }
}
.wcd-stage{
  display:flex; align-items:center; gap:8px;
  margin-top:11px; font-size:13px; color:var(--ink-2);
}
.wcd-stage .spin{ width:13px; height:13px; border-width:2px; flex:none; }
.wcd-stage-text{ font-weight:500; }
.wcd-elapsed{ margin-top:6px; font-size:12px; color:var(--ink-3); }
.wcd-elapsed b{
  color:var(--accent); font-weight:700;
  font-variant-numeric:tabular-nums;
}

/* ── 失败态 ── */
.wcd-fail{
  display:flex; align-items:flex-start; gap:8px;
  background:#fef2f2; border:1px solid #fecaca; border-radius:8px;
  padding:9px 11px; color:#b91c1c; font-size:13px; margin-bottom:12px;
}
.wcd-fail-ic{ flex:none; display:flex; margin-top:1px; }
.wcd-fail-msg{ flex:1; min-width:0; line-height:1.55; word-break:break-word; }
.wcd-retry{ height:32px; padding:0 15px; font-size:13px; }
.wc-confirm.doc-mode.doc-dismissed{ opacity:.85; }

/* ── 文档卡片（网页版 + PDF） ── */
.wc-card.doc{ display:flex; flex-direction:column; }
.wcd-card-head{ display:flex; align-items:center; gap:11px; padding:13px 14px 12px; }
.wcd-ic{
  flex:none; width:38px; height:38px; border-radius:10px;
  display:flex; align-items:center; justify-content:center;
  background:var(--accent-muted); color:var(--accent);
}
.wcd-titlewrap{ flex:1; min-width:0; }
.wcd-title{
  font-size:14px; font-weight:600; color:var(--ink); line-height:1.4;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.wcd-summary{
  margin-top:3px; font-size:12px; color:var(--ink-3);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.wcd-tags{ display:flex; flex-wrap:wrap; gap:6px; padding:0 14px 11px; }
.wcd-tag{
  font-size:11px; font-weight:500; color:var(--accent);
  background:var(--accent-muted); padding:2px 9px; border-radius:6px;
}
.wcd-actions{
  display:flex; gap:9px; padding:10px 14px;
  border-top:1px solid #f1f3f6; background:#fafbfd;
}
.wcd-view, .wcd-download{
  height:32px; padding:0 14px; font-size:13px; text-decoration:none;
}
.wcd-time{
  font-size:11px; color:var(--ink-3); text-align:right;
  padding:7px 14px; border-top:1px solid #f4f6f9;
}

/* 尊重“减少动态效果”偏好：进度光条改为静态段 */
@media (prefers-reduced-motion: reduce){
  .wcd-bar-fill{ animation:none; left:6%; width:52%; }
}

/* ---- 欢迎区：轻盈留白，示例为描边小胶囊 ---- */
.wc-welcome{ text-align:center; padding:8vh 16px 3vh; color:var(--ink-2); }
.wc-welcome-ic{
  display:inline-flex; width:56px; height:56px; border-radius:16px;
  align-items:center; justify-content:center;
  background:var(--accent-muted); color:var(--accent); margin-bottom:16px;
}
.wc-welcome-t{ font-size:17px; font-weight:700; color:var(--ink); }
.wc-welcome-sub{ font-size:13px; color:var(--ink-3); margin-top:10px; line-height:1.9; }
.wc-welcome-ex{ width:100%; text-align:center; margin-top:26px; }
.wce-title{ font-size:12.5px; font-weight:500; color:var(--ink-3); margin-bottom:12px; }
.wce-chips{
  display:flex; flex-wrap:wrap; justify-content:center; gap:9px;
  max-width:560px; margin:0 auto;
}
.wce-chips span{
  font-size:13px; color:var(--ink-2); background:#fff;
  border:1px solid var(--line);
  padding:7px 15px; border-radius:999px; cursor:pointer;
  transition:border-color .15s,color .15s,background .15s;
}
.wce-chips span:hover{
  border-color:var(--accent); color:var(--accent);
  background:var(--accent-muted);
}

/* ---- 输入区：白色圆角容器一体包裹 ---- */
.wc-input-wrap{
  flex:none; display:flex; flex-direction:column; gap:0;
  padding:10px clamp(14px, 8%, 56px) calc(12px + env(safe-area-inset-bottom));
  background:transparent;
}
.wc-input-row{
  flex:none; display:flex; align-items:flex-end; gap:6px;
  background:#fff; border:1px solid var(--line-strong);
  border-radius:14px; padding:7px 8px;
  transition:border-color .15s,box-shadow .15s;
}
.wc-input-row:focus-within{
  border-color:var(--accent);
  box-shadow:0 0 0 3px rgba(31,78,140,.08);
}
#wcInput{
  /* min-height:0 解除全局 textarea{min-height:64px}（后台表单规则）对聊天输入框的撑高，
     单行高度交由 wcAutoGrow 按内容精确计算，保证与左右 34px 图标/按钮同高对齐 */
  flex:1; resize:none; min-height:0; max-height:120px; padding:7px 6px;
  font-size:14px; line-height:20px; border:none; background:transparent;
}
#wcInput::placeholder{ color:var(--ink-3); }
#wcInput:focus{ border:none; box-shadow:none; }
/* 发送按钮：胶囊形主操作（移动端变纯图标圆钮，见下方媒体查询） */
#wcSendBtn{
  flex:none; height:34px; padding:0 16px; font-size:13px; font-weight:600;
  gap:5px; border-radius:999px;
  box-shadow:0 1px 2px rgba(31,78,140,.16);
}
#wcSendBtn:disabled{ opacity:.5; box-shadow:none; }

/* 图片/麦克风图标按钮：与容器圆角呼应 */
.wc-img-btn{
  flex:none; width:34px; height:34px; border-radius:9px;
  display:flex; align-items:center; justify-content:center;
  color:var(--ink-3); background:transparent; transition:background .15s,color .15s;
}
.wc-img-btn:hover{ background:var(--accent-muted); color:var(--accent); }
.wc-img-btn:disabled{ opacity:.45; }
.wc-hidden-file{ display:none; }

/* 待发图片条（排在容器上方） */
.wc-pending{
  display:none; gap:8px; flex-wrap:wrap;
  padding:0 2px 10px;
}
.wc-pending.show{ display:flex; }
.wcp-item{
  position:relative; width:60px; height:60px; border-radius:9px; overflow:hidden;
  border:1px solid var(--line); background:#eef1f5;
}
.wcp-item img{ width:100%; height:100%; object-fit:cover; display:block; }
.wcp-mask{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  background:rgba(15,23,42,.42); color:#fff; font-size:11px; font-weight:600;
}
.wcp-mask.err{ background:rgba(127,29,29,.55); gap:5px; }
.wcp-retry{ display:flex; cursor:pointer; }
.wcp-done{
  position:absolute; right:3px; bottom:3px; width:18px; height:18px;
  border-radius:50%; background:#22a06b; color:#fff;
  display:flex; align-items:center; justify-content:center;
}
.wcp-x{
  position:absolute; top:2px; right:2px; width:18px; height:18px; border-radius:50%;
  background:rgba(15,23,42,.6); color:#fff; display:flex; align-items:center;
  justify-content:center; opacity:0; transition:opacity .15s;
}
.wcp-item:hover .wcp-x{ opacity:1; }

/* 消息内图片 */
.wc-imgs{
  display:grid; grid-template-columns:repeat(3, 1fr);
  gap:4px; margin-bottom:6px; max-width:294px;
}
.wc-imgs.single{ grid-template-columns:1fr; max-width:236px; }
.wc-imgs.single .wc-msg-img{ max-height:280px; }
.wc-msg-img{
  width:100%; height:86px; object-fit:cover; border-radius:7px;
  display:block; cursor:pointer; background:#eef1f5;
}
.wc-imgs.single .wc-msg-img{ height:auto; }

/* 拖拽悬停提示 */
.wc-main.drag-over::after{
  content:"松手即可发送图片"; position:absolute; inset:10px; z-index:5;
  display:flex; align-items:center; justify-content:center;
  border:2px dashed var(--accent); border-radius:12px;
  background:rgba(234,241,250,.9); color:var(--accent);
  font-size:14px; font-weight:600; pointer-events:none;
}
.wc-main{ position:relative; }

/* 大图查看层 */
.wc-lightbox{
  position:fixed; inset:0; z-index:99; background:rgba(15,20,30,.88);
  display:flex; align-items:center; justify-content:center; padding:28px;
}
.wc-lightbox img{
  max-width:100%; max-height:100%; object-fit:contain; border-radius:4px;
}
.wc-lightbox-close{
  position:absolute; top:16px; right:18px; width:42px; height:42px;
  border-radius:50%; background:rgba(255,255,255,.14); color:#fff;
  display:flex; align-items:center; justify-content:center;
}
.wc-lightbox-close:hover{ background:rgba(255,255,255,.26); }

/* ---- 响应式：H5 ---- */
@media (max-width:1023px){
  /* 底部固定导航占位：nav 本体 + 中央「通话」圆钮突出量，避免输入区被圆钮遮挡 */
  .wc-root{ padding-bottom:calc(var(--nav-h) + var(--nav-call-pop)); }
  .wc-sess-toggle{ display:flex; }
  /* 手机顶栏空间有限：状态标签只保留彩色圆点，隐藏文字与胶囊底色 */
  .wc-share-pill{
    padding:0; background:transparent; border:0; border-radius:0;
    gap:0; margin-right:-2px;
  }
  .wc-share-pill .wc-svc-dot{ width:8px; height:8px; }
  .wc-share-pill .wc-svc-txt{ display:none; }
  .wc-sessions{
    position:fixed; z-index:30; top:0; bottom:calc(var(--nav-h) + var(--nav-call-pop)); left:0;
    width:min(82vw, 300px); border-right:1px solid var(--line-strong);
    box-shadow:var(--shadow-lg); transform:translateX(-105%);
    transition:transform .25s ease;
  }
  .wc-sessions.open{ transform:none; }
  .wc-bubble-wrap, .wc-row.me .wc-bubble-wrap{ max-width:84%; }
  .wsi-actions{ display:inline-flex; }
  .wc-msgs{ padding:18px 12px 8px; }
  /* 键盘弹起时 --wc-kb 为被遮挡高度，输入区整体顶到键盘上沿；
     安卓布局视口自缩时该值为 0，不会双重位移 */
  .wc-input-wrap{
    padding:10px 12px calc(11px + env(safe-area-inset-bottom) + var(--wc-kb, 0px));
  }
  /* 移动端发送按钮：隐藏文字变纯图标圆钮，把宽度让给输入框 */
  #wcSendBtn{
    width:38px; height:38px; min-width:38px; padding:0;
    border-radius:50%;
  }
  #wcSendBtn span{ display:none; }
  #wcSendBtn svg{ width:17px; height:17px; }
}

.sub-pay-state{ text-align:center; font-size:13px; color:#d97706; margin-top:8px; }
.sub-pay-no{ text-align:center; font-size:11px; color:var(--ink-3,#8b95a6); margin:6px 0 12px; word-break:break-all; }
/* --- ② 「记跟进」主按钮（卡片底栏） --- */
.stu-row .stu-quick .stu-fq{
  flex:none; background:var(--accent); color:#fff; border-radius:8px;
  padding:6px 14px; font-size:12.5px; font-weight:600;
  box-shadow:0 1px 2px rgba(31,78,140,.18);
}
.stu-row .stu-quick .stu-fq:hover{ filter:brightness(1.08); }
.stu-row:hover .stu-quick .stu-fq{ border-color:transparent; }
/* 底栏布局：记跟进显眼、其余图标按钮靠右跟随 */
.stu-row .stu-quick{ justify-content:flex-start; gap:8px; }
.stu-row .stu-quick .stu-quick-btn{ margin-left:0; }
@media (max-width:700px){
  .stu-row .stu-quick{ justify-content:center; }
}
/* --- ③ 今日待办聚合条 --- */
.stu-duebar{
  display:flex; align-items:center; gap:8px; flex-wrap:wrap;
  background:var(--bg-card); border:1px solid var(--line); border-radius:var(--radius);
  padding:8px 12px; margin-bottom:12px; box-shadow:var(--shadow);
}
.stu-duebar .sdb-t{ font-size:12px; font-weight:700; color:var(--ink-2); margin-right:2px; }
.stu-duebar .sdb{
  display:inline-flex; align-items:center; gap:4px;
  padding:4px 11px; border-radius:999px; font-size:12px; font-weight:600;
  color:var(--ink-2); background:var(--bg); cursor:pointer;
  transition:background .16s, color .16s;
  border:1px solid transparent;
}
.stu-duebar .sdb:hover{ background:var(--accent-muted); color:var(--accent); }
.stu-duebar .sdb.on{ background:var(--accent); color:#fff; }
.stu-duebar .sdb.danger.on{ background:var(--danger); color:#fff; }
.stu-duebar .sdb.warn.on{ background:var(--amber); color:#fff; }
.stu-duebar .sdb b{ font-weight:700; min-width:12px; text-align:center; }
/* 「今日待办」漏斗 Tab 强调 */
.stu-filter .chip-todo{ border-color:var(--accent-2); color:var(--accent); }
.stu-filter .chip-todo.on{ border-color:var(--accent); }
/* --- ④ 紧凑行：沟通摘要/下一步（一行截断） --- */
.stu-row-c .c-meta{ gap:6px; }
.stu-row-c .c-talk{
  display:inline-flex; align-items:center; gap:4px; font-size:11.5px; color:var(--ink-2);
  max-width:55%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.stu-row-c .c-talk svg{ color:var(--accent); flex:none; }
.stu-row-c .c-ns{ display:inline-flex; align-items:center; gap:4px; font-size:11px; color:#b45309; background:var(--amber-muted); border-radius:6px; padding:1px 7px; white-space:nowrap; }
.stu-row-c .c-fu.today{ color:#ea580c; font-weight:700; }
/* --- ⑤ 详情页概况：锚点顺序更新（时间轴前置）已由 JS 控制顺序 --- */
#st-plans, #st-timeline, #st-portrait, #st-progress, #st-nextstep, #st-sop{ scroll-margin-top:118px; }
/* --- ⑥ 速记弹窗：日期输入框与快捷 chips 等高对齐 --- */
.qf-modal .fu-date-row{ align-items:center; }
.qf-modal .fu-quick .chip{ height:36px; display:inline-flex; align-items:center; box-sizing:border-box; }
.qf-modal .fu-chips .chip{ display:inline-flex; align-items:center; }

/* ============================================================
   顾问使用反馈（js/pages/feedback.js；提交表单 + 反馈记录列表已合并为一个页面）
   表单控件本身复用 .cp-segs / .cp-chips / .cp-sec-title / .cp-hint，
   此处只补齐「列表、徽标、回显、上传、备注」这些表单之外的部分。
   ============================================================ */
/* 个人中心行内未读红点（.hub-row span 有全局 flex:1，必须 flex:none 覆盖） */
.hub-badge{ flex:none !important; min-width:16px; height:16px; padding:0 5px; border-radius:9px;
  background:var(--danger); color:#fff; font-size:10px; font-weight:700; line-height:16px; text-align:center; display:none; }
.hub-badge.on{ display:inline-block; }

/* ── 工单服务行：名称下带副标题（与普通行的单行文字区分布局） ── */
.hub-row .hub-rlabel{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.hub-row .hub-rlabel .hub-rlabel-t{ font-size:14.5px; flex:none; }
.hub-row .hub-rlabel .hub-rsub{ font-size:11px; font-weight:400; color:var(--ink-3); flex:none; }

/* 独立分组小标题（服务中心；卡片在分组容器之外时使用，字号/颜色同卡片内标题） */
.hub-sec-title{ padding:0 4px; margin:0 0 7px; font-size:11.5px; color:var(--ink-3); }

/* 弹窗表单体 */
.fb-modal .fb-body{ max-height:62vh; overflow:auto; padding-right:4px; }
.fb-req{ color:var(--danger); font-style:normal; margin-left:3px; }
.fb-wrap button{ flex:0 1 auto; min-width:88px; }
.fb-input{ width:100%; border:1px solid var(--line); border-radius:8px; padding:9px 11px; font-size:12.5px;
  font-family:inherit; color:var(--ink); outline:none; box-sizing:border-box; background:#fff; }
.fb-input:focus{ border-color:var(--accent); }
.fb-textarea{ width:100%; border:1px solid var(--line); border-radius:8px; padding:9px 11px; font-size:12.5px;
  font-family:inherit; color:var(--ink); outline:none; resize:vertical; min-height:70px; box-sizing:border-box; background:#fff; }
.fb-textarea:focus{ border-color:var(--accent); }
.fb-rating{ gap:6px; }
.fb-rating button{ min-width:34px; padding:6px 0; text-align:center; }

/* 截图上传 */
.fb-uploads{ display:flex; flex-wrap:wrap; gap:10px; }
.fb-thumb{ position:relative; width:64px; height:64px; border-radius:8px; overflow:hidden; border:1px solid var(--line); }
.fb-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.fb-thumb-x{ position:absolute; top:2px; right:2px; width:18px; height:18px; border:none; border-radius:50%;
  background:rgba(15,39,64,.68); color:#fff; display:flex; align-items:center; justify-content:center; cursor:pointer; padding:0; }
.fb-add{ width:64px; height:64px; border:1px dashed var(--line-strong); border-radius:8px; display:flex;
  align-items:center; justify-content:center; color:var(--ink-3); cursor:pointer; }
.fb-add:hover{ border-color:var(--accent); color:var(--accent); }

/* 多选逐项备注（note_per_option） */
.fb-notes{ margin-top:8px; }
.fb-note-row{ display:flex; align-items:center; gap:8px; margin-top:6px; }
.fb-note-label{ flex:none; max-width:150px; font-size:11.5px; color:var(--ink-3);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.fb-note-input{ flex:1; border:1px solid var(--line); border-radius:6px; padding:6px 9px; font-size:12px;
  font-family:inherit; color:var(--ink); outline:none; background:#fff; }
.fb-note-input:focus{ border-color:var(--accent); }

/* 画像引导条 */
.fb-profile-bar{ display:flex; align-items:center; gap:8px; background:var(--accent-muted);
  border-radius:var(--radius-sm); padding:9px 12px; margin:10px 0 2px; }
.fb-prof-ic{ color:var(--accent); display:flex; flex:none; }
.fb-prof-t{ flex:1; font-size:12px; color:var(--ink-2); line-height:1.5; }

/* 只读回显（历史答案按当时 schema 渲染） */
.fb-ro-card{ background:var(--card-sub-bg); border:1px solid var(--line); border-radius:var(--radius-sm); padding:4px 12px; }
.fb-ro-row{ display:flex; gap:10px; padding:8px 0; border-bottom:1px dashed var(--line); }
.fb-ro-row:last-child{ border-bottom:none; }
.fb-ro-k{ flex:none; width:78px; font-size:12px; color:var(--ink-3); }
.fb-ro-v{ flex:1; font-size:12.5px; color:var(--ink); line-height:1.65; word-break:break-word; }
/* 逐项备注回显（target_notes）：挂在所属字段值下面，缩进区分 */
.fb-ro-notes{ margin-top:6px; display:flex; flex-direction:column; gap:4px; }
.fb-ro-note{ font-size:12px; color:var(--ink-2); background:var(--card-bg); border-left:2px solid var(--brand); border-radius:4px; padding:4px 8px; }
.fb-ro-note span{ color:var(--ink-3); margin-right:6px; }
.fb-ro-img{ width:68px; height:68px; object-fit:cover; border-radius:6px; border:1px solid var(--line); margin:0 8px 6px 0; }

/* 审批结果块 */
.fb-review{ display:flex; gap:10px; align-items:flex-start; border-radius:var(--radius-sm); padding:11px 13px; margin-top:8px; }
.fb-review b{ font-size:13px; }
.fb-review p{ margin:3px 0 0; font-size:12px; line-height:1.6; color:var(--ink-2); }
.fb-review.wait{ background:var(--amber-muted); color:var(--amber); }
.fb-review.ok{ background:#e8f5ec; color:var(--module-1); }
.fb-review.no{ background:var(--danger-muted); color:var(--danger); }
.fb-review-note{ color:var(--ink) !important; }

/* 「工单服务」整页（2026-09-13 由「使用反馈」更名） */
.fb-page{ padding:2px 0 24px; }
.fb-page-hd{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; }
.fb-page-t{ font-size:17px; font-weight:700; color:var(--ink); }
.fb-page-s{ font-size:12px; color:var(--ink-3); margin-top:3px; }
.fb-filter{ margin-bottom:12px; }
.fb-card{ background:var(--bg-card); border:1px solid var(--line); border-radius:var(--radius); padding:12px 14px;
  margin-bottom:10px; cursor:pointer; transition:border-color .15s, box-shadow .15s; }
.fb-card:hover{ border-color:var(--accent-2); box-shadow:var(--shadow); }
.fb-card.unread{ border-left:3px solid var(--accent); }
.fb-card-hd{ display:flex; align-items:center; justify-content:space-between; gap:8px; }
.fb-no{ font-size:11.5px; color:var(--ink-3); font-variant-numeric:tabular-nums; letter-spacing:.2px; }
.fb-card-t{ font-size:14px; font-weight:600; color:var(--ink); margin:7px 0 6px; }
.fb-card-m{ display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:12px; color:var(--ink-3); }
.fb-time{ flex:none; font-variant-numeric:tabular-nums; }
.fb-card-note{ margin-top:9px; padding:8px 10px; background:var(--card-sub-bg); border-radius:var(--radius-xs);
  font-size:12px; color:var(--ink-2); line-height:1.6; }
.fb-badge{ display:inline-flex; align-items:center; gap:4px; flex:none; font-size:11px; font-weight:700;
  padding:2px 9px; border-radius:10px; }
.fb-badge.ok{ background:#e8f5ec; color:var(--module-1); }
.fb-badge.wait{ background:var(--amber-muted); color:var(--amber); }
.fb-badge.no{ background:var(--danger-muted); color:var(--danger); }
.fb-sub-time{ margin-left:8px; font-size:12px; color:var(--ink-3); }

/* ===== M6 学生手机号默认打码：查看明文按钮 + 操作水印 ===== */
.st-phone-reveal{
  display:inline-flex; align-items:center; gap:3px; margin-left:6px;
  padding:1px 8px; font-size:11.5px; line-height:1.7; font-weight:600;
  color:var(--accent); background:var(--accent-soft, #eef4ff);
  border:1px solid rgba(42,100,176,.22); border-radius:999px;
  cursor:pointer; font-family:inherit; transition:background .15s;
}
.st-phone-reveal:hover{ background:#e2ecfb; }
.st-phone-reveal:disabled{ opacity:.6; cursor:default; }
#st-phone-item b{ font-weight:600; letter-spacing:.3px; }
.phone-view-wm{
  position:fixed; inset:0; z-index:9999; pointer-events:none;
  display:none; overflow:hidden;
}
.phone-view-wm.show{ display:block; }
.phone-view-wm span{
  position:absolute; left:-10%; width:120%;
  font-size:13px; font-weight:600; letter-spacing:1px;
  color:rgba(31,78,140,.10); white-space:nowrap;
  transform:rotate(-24deg);
}
.phone-view-wm span:nth-child(1){ top:6%; }
.phone-view-wm span:nth-child(2){ top:22%; left:-20%; }
.phone-view-wm span:nth-child(3){ top:38%; left:-5%; }
.phone-view-wm span:nth-child(4){ top:54%; left:-22%; }
.phone-view-wm span:nth-child(5){ top:70%; left:-8%; }
.phone-view-wm span:nth-child(6){ top:86%; left:-18%; }

/* ===== M7 推广获客概览 · 未授权意向分布 ===== */
.acq-dist-card{ margin-top:10px; padding:13px 15px; }
.acq-dist-tip{ display:flex; align-items:flex-start; gap:6px; font-size:12.5px; color:var(--ink-3); line-height:1.7; margin-bottom:9px; }
.acq-dist-group{ display:flex; gap:10px; font-size:12.5px; padding:5px 0; }
.acq-dist-group b{ flex:none; width:78px; color:var(--ink-2); font-weight:600; }
.acq-dist-group>div{ display:flex; flex-wrap:wrap; gap:6px; }
.acq-dist-empty{ color:var(--ink-3); font-size:12px; }

/* ===== M8 合规待办入口 / 停权警告 / 回执 ===== */
.acq-comp-warn{
  display:flex; align-items:flex-start; gap:10px; margin-bottom:10px;
  padding:12px 14px; border-radius:14px;
  background:#fef3c7; border:1px solid #f5d58b; color:#92610a;
  font-size:13px; line-height:1.7;
}
.acq-comp-warn svg{ flex:none; margin-top:2px; }
.acq-comp-entry{
  width:100%; display:flex; align-items:center; gap:12px; text-align:left;
  padding:14px 15px; margin-bottom:14px; cursor:pointer;
  transition:box-shadow .15s, transform .1s;
}
.acq-comp-entry:hover{ box-shadow:0 6px 18px rgba(15,39,64,.08); }
.acq-comp-entry:active{ transform:scale(.995); }
.acq-comp-ic{
  flex:none; width:38px; height:38px; border-radius:11px;
  display:flex; align-items:center; justify-content:center;
  background:var(--accent-soft, #eef4ff); color:var(--accent);
}
.acq-comp-meta{ flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.acq-comp-meta b{ font-size:14px; color:var(--ink-1); }
.acq-comp-sub{ font-size:12px; color:var(--ink-3); line-height:1.6; }
.acq-comp-go{ display:flex; align-items:center; gap:6px; color:var(--ink-3); }
.acq-comp-badge{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:18px; height:18px; padding:0 5px; border-radius:999px;
  background:#dc2626; color:#fff; font-size:11px; font-weight:700;
}
.comp-list{ display:flex; flex-direction:column; gap:10px; margin-top:10px; }
.comp-item{ padding:13px 15px; }
.comp-item.pending{ border-color:rgba(217,119,6,.35); }
.comp-row1{ display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:5px; }
.comp-meta{ font-size:12.5px; color:var(--ink-3); line-height:1.8; }
.comp-receipt-btn{ margin-top:9px; }
.comp-done{ margin-top:8px; font-size:12.5px; color:#16a34a; display:inline-flex; align-items:center; gap:4px; }
.rc-legal{
  display:flex; align-items:flex-start; gap:8px; margin:4px 0 8px;
  font-size:12.5px; line-height:1.6; color:var(--ink-2); cursor:pointer;
}
.rc-legal input{ margin-top:3px; }

/* 学生编号徽章（列表三视图 + 详情头）：低视觉权重小标签 */
.stu-no{display:inline-flex;align-items:center;gap:4px;margin-left:6px;padding:1px 7px;border-radius:9px;
  background:#eef2f7;color:#5b6b7f;font-size:11px;font-weight:600;letter-spacing:.4px;
  font-variant-numeric:tabular-nums;vertical-align:middle;white-space:nowrap;}
.stu-no .st-copy-btn{display:inline-flex;border:none;background:transparent;color:#7c8aa0;cursor:pointer;padding:0;}
.stu-no .st-copy-btn:hover{color:#3a4a5f;}

/* 空态「一键开通网页助理」按钮间距与小 spinner */
.wc-provision .btn.primary{ margin-top:6px; min-width:168px; justify-content:center; }
.wc-provision .spin.sm{ width:13px; height:13px; }

/* 网页助理无网关状态：指标条两列均分，避免空位 */
.bd-stats.bd-stats-two{ grid-template-columns:repeat(2,1fr); }

/* ---------- 开通引导弹窗（零 BOT 顾问每天首次进入自动引导） ---------- */
.pg-modal{ padding-bottom:20px; }
.pg-head{ display:flex; gap:12px; align-items:flex-start; }
.pg-ic{
  width:46px; height:46px; border-radius:14px; flex:none;
  background:var(--grad-brand); color:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 6px 16px rgba(31,78,140,.26);
}
.pg-hd-tx{ flex:1; min-width:0; }
.pg-hd-tx h2{ font-size:17px; margin:2px 0 0; }
.pg-hd-tx .sub{ margin-top:5px; line-height:1.65; }
.pg-points{ display:flex; flex-direction:column; gap:8px; margin:14px 0 2px; }
.pg-point{ display:flex; gap:10px; align-items:flex-start; padding:9px 12px; border-radius:12px; background:var(--accent-muted); }
.pg-p-ic{
  width:26px; height:26px; border-radius:9px; flex:none;
  background:#fff; color:var(--accent);
  display:flex; align-items:center; justify-content:center;
}
.pg-p-tx{ display:flex; flex-direction:column; gap:1px; min-width:0; }
.pg-p-tx b{ font-size:13px; color:var(--ink); }
.pg-p-tx span{ font-size:12px; color:var(--ink-3); }
.pg-note{ margin-top:12px; text-align:center; font-size:11.5px; color:var(--ink-3); line-height:1.6; }
.pg-modal .spin.sm{ width:13px; height:13px; }
/* 窄屏下副按钮按内容宽度，把宽度让给主按钮，保证「一键开通网页助理」单行显示 */
.pg-modal .modal-actions .btn.ghost{ flex:0 0 auto; }

/* ============================================================
   网页助理 · 文档附件（PDF / Word / txt / md）
   本次仅在文件末尾追加，图片既有样式一律未改；命名沿用 wc- / wcp-
   ============================================================ */

/* --- 待发区：文档文件卡片（图标 + 文件名 + 状态行 + 移除按钮） --- */
.wcp-item.wcp-doc{
  width:auto; max-width:min(260px, 100%); height:auto; min-height:48px;
  display:flex; align-items:flex-start; gap:8px;
  padding:8px 26px 8px 9px; overflow:hidden;
  border-radius:10px; background:var(--bg-card); border-color:var(--line);
}
.wcp-doc .wcp-doc-ic{
  flex:none; width:30px; height:30px; border-radius:8px;
  background:var(--accent-muted); color:var(--accent);
  display:flex; align-items:center; justify-content:center;
}
.wcp-doc .wcp-doc-tx{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.wcp-doc .wcp-doc-nm{
  font-size:12.5px; font-weight:600; color:var(--ink); line-height:1.35;
  max-width:190px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.wcp-doc .wcp-doc-st{
  display:flex; align-items:center; gap:5px; flex-wrap:wrap;
  font-size:11px; color:var(--ink-3); line-height:1.45; word-break:break-all;
}
.wcp-doc .wcp-doc-spin{ width:10px; height:10px; border-width:1.6px; flex:none; }
.wcp-doc .wcp-doc-bad{ color:var(--danger); }
.wcp-doc .wcp-retry{ flex:none; display:flex; color:var(--accent); cursor:pointer; }
.wcp-doc .wcp-doc-note{ font-size:11px; color:var(--ink-3); line-height:1.5; word-break:break-all; }
.wcp-doc.status-error{ border-color:var(--danger-muted); }
/* 触屏无 hover：移除按钮常显，避免点不到 */
@media (hover:none){ .wc-pending .wcp-doc .wcp-x{ opacity:1; } }
/* 窄屏：卡片按容器宽度自适应，不横向溢出 */
@media (max-width:1023px){
  .wc-pending .wcp-doc{ max-width:100%; }
  .wcp-doc .wcp-doc-nm{ max-width:none; }
}

/* --- 消息气泡：文档卡片（文件名 + 大小，点击新窗口打开原件） --- */
.wc-docs{ display:flex; flex-direction:column; gap:6px; margin-bottom:6px; max-width:min(294px, 100%); }
.wc-bubble .wc-doc{
  display:flex; align-items:center; gap:9px;
  padding:8px 10px; border-radius:9px; text-decoration:none;
  background:rgba(255,255,255,.92); border:1px solid var(--line-strong);
  color:var(--ink); transition:border-color .15s;
}
.wc-bubble .wc-doc:hover{ border-color:var(--accent); }
.wc-doc .wc-doc-ic{ flex:none; display:flex; color:var(--accent); }
.wc-doc .wc-doc-tx{ flex:1; min-width:0; display:flex; flex-direction:column; gap:1px; }
.wc-doc .wc-doc-nm{
  font-size:12.5px; font-weight:600; line-height:1.35; color:var(--ink);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.wc-doc .wc-doc-sz{ font-size:11px; color:var(--ink-3); }
.wc-doc .wc-doc-go{ flex:none; display:flex; color:var(--ink-3); }

/* --- 拖拽提示：拖入现同时接受图片与文档 --- */
.wc-main.drag-over::after{ content:"松手即可发送文件"; }

/* ═══ 语音转文字（网页对话框） ═══ */
.wc-mic-btn.recording{
  color:#e5484d; background:rgba(229,72,77,.10);
}
.wc-mic-btn.recording:hover{ background:rgba(229,72,77,.16); }
.wc-mic-btn.transcribing{ opacity:.6; }
.wc-mic-btn:disabled{ opacity:.45; }

.wc-voice-bar{
  display:none; align-items:center; gap:10px;
  margin:0 2px 10px; padding:8px 12px;
  background:var(--accent-muted); border-radius:10px;
  font-size:13px; color:var(--ink-2);
}
.wc-vb-wave{ display:inline-flex; align-items:center; gap:3px; height:16px; }
.wc-vb-wave i{
  width:3px; border-radius:2px; background:var(--accent);
  animation:wcVbWave 1s ease-in-out infinite;
}
.wc-vb-wave i:nth-child(1){ height:6px;  animation-delay:0s; }
.wc-vb-wave i:nth-child(2){ height:13px; animation-delay:.15s; }
.wc-vb-wave i:nth-child(3){ height:9px;  animation-delay:.3s; }
.wc-vb-wave i:nth-child(4){ height:14px; animation-delay:.45s; }
@keyframes wcVbWave{
  0%,100%{ transform:scaleY(.5); }
  50%{ transform:scaleY(1.15); }
}
.wc-vb-time{ font-variant-numeric:tabular-nums; color:var(--ink-3); }
.wc-vb-spacer{ flex:1; }
.wc-vb-cancel{
  padding:5px 12px; font-size:13px; border-radius:8px;
  color:var(--ink-3); background:transparent;
}
.wc-vb-cancel:hover{ color:var(--ink); background:rgba(0,0,0,.05); }
.wc-vb-done{ flex:none; height:30px; padding:0 14px; font-size:13px; border-radius:8px; }

/* 语音转写成功入框：输入框描边高亮一闪（替代遮挡输入区的 toast，风格与聚焦态一致） */
.wc-input-row.wc-flash{ animation:wcFlash 1.4s ease-out; }
@keyframes wcFlash{
  0%{ border-color:var(--accent); box-shadow:0 0 0 3px rgba(31,78,140,.22); }
  55%{ border-color:var(--accent); box-shadow:0 0 0 3px rgba(31,78,140,.14); }
  100%{ border-color:var(--line-strong); box-shadow:0 0 0 3px rgba(31,78,140,0); }
}

/* ===== 输入区交互升级：停止生成 / 停止尾巴 / 按住说话取消态（2026-09-25） ===== */

/* 生成中：发送按钮切换为“停止”（白底红字，inset 描边模拟边框避免布局跳动） */
#wcSendBtn.wc-stop-btn{
  background:#fff; color:#e5484d;
  box-shadow:inset 0 0 0 1px rgba(229,72,77,.55);
}
#wcSendBtn.wc-stop-btn:hover{
  background:rgba(229,72,77,.06);
  box-shadow:inset 0 0 0 1px #e5484d;
}

/* 用户手动停止后：工具条尾部灰色提示尾巴 */
.wc-stopped{
  display:inline-flex; align-items:center; gap:5px;
  font-size:12px; color:var(--ink-3); margin-top:4px;
}
.wc-stopped svg{ flex:none; }

/* 按住说话：上滑进入待取消态（红色警示，松手即取消本次识别） */
.wc-voice-bar.hold-cancel{
  background:rgba(229,72,77,.08);
  box-shadow:inset 0 0 0 1px rgba(229,72,77,.45);
}
.wc-voice-bar.hold-cancel .wc-vb-text{ color:#e5484d; }
.wc-voice-bar.hold-cancel .wc-vb-wave i{ background:#e5484d; }
/* ============================================================
   网页对话框输入框升级第二期 · Task 1（字数计数 / 发送置灰）
   ============================================================ */
.wc-char-line{
  display:none; justify-content:flex-end;
  padding:4px 4px 0;
}
#wcCharCount{ font-size:11px; line-height:1.4; color:#c47b16; }
#wcCharCount.on-limit{ color:var(--danger); font-weight:600; }
/* 空内容/语音忙碌置灰：明确不可点（覆盖默认 .btn 配色），红色停止态不受影响 */
#wcSendBtn:disabled{
  background:#c3cad6; color:#fff; box-shadow:none; cursor:not-allowed;
}
#wcSendBtn.wc-stop-btn:disabled{ background:var(--danger); cursor:pointer; }
/* ============================================================
   网页对话框输入框升级第二期 · Task 2（生成中排队）
   ============================================================ */
.wc-queue-bar{
  display:none; align-items:center; gap:7px;
  margin:0 2px 8px; padding:8px 10px;
  background:var(--accent-muted); border:1px solid rgba(31,78,140,.18);
  border-radius:10px; font-size:12px; color:var(--ink-2);
}
.wc-qb-ic{ flex:none; display:flex; color:var(--accent); }
.wc-qb-label{ flex:none; color:var(--ink-3); }
.wc-qb-text{
  flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.wc-qb-cancel{
  flex:none; padding:2px 4px; background:none;
  color:var(--accent); font-size:12px; font-weight:600;
}
#wcQueueBtn{
  flex:none; gap:5px; height:34px; padding:0 12px; border-radius:17px;
  background:var(--accent); color:#fff; box-shadow:0 1px 2px rgba(31,78,140,.16);
  display:none; align-items:center; justify-content:center; font-size:12px; font-weight:600;
}
/* 电脑端胶囊“排队”小字；手机端仅图标圆钮（PRD 3.1：手机端仅图标） */
@media (max-width:1023px){
  #wcQueueBtn{ width:38px; height:38px; min-width:38px; padding:0; border-radius:50%; }
  #wcQueueBtn span{ display:none; }
}
/* ============================================================
   网页对话框输入框升级第二期 · Task 3（草稿红色标记）
   ============================================================ */
.wsi-draft{
  color:var(--danger); font-size:11px; font-weight:600; margin-left:6px;
}
.wc-new-draft{
  display:none; align-items:center; margin-left:6px;
  background:var(--danger); color:#fff; border-radius:6px;
  font-size:10px; font-weight:600; line-height:1.5; padding:0 6px;
}
/* ============================================================
   网页对话框输入框升级第二期 · Task 4（手势教学 / 丢弃重说）
   ============================================================ */
.wc-input-wrap{ position:relative; }
.wc-voice-tip{
  position:absolute; left:50%; bottom:calc(100% + 10px);
  transform:translateX(-50%); z-index:15; white-space:nowrap;
  background:rgba(15,23,42,.9); color:#fff; font-size:12px; line-height:1.7;
  text-align:center; padding:8px 12px; border-radius:10px;
  box-shadow:0 6px 18px rgba(15,23,42,.22); pointer-events:none;
}
.wc-voice-tip::after{
  content:""; position:absolute; left:50%; bottom:-5px;
  transform:translateX(-50%);
  border:5px solid transparent; border-top-color:rgba(15,23,42,.9); border-bottom:0;
}
.wc-voice-bar.wc-redo-bar{
  background:#fff7ef; border:1px solid #f0d9c0;
}
.wc-vb-redo{ flex:none; height:30px; padding:0 14px; font-size:13px; border-radius:8px; }

/* ============================================================
   网页对话 · 联网来源折叠区（2026-09-26）
   默认收起在回答正文下方；点击展开，每条可直接跳转官网
   ============================================================ */
.wc-sources{ margin-top:8px; }
.wc-src-fold{
  border-top:1px dashed var(--line-strong);
  padding-top:8px;
}
.wc-src-head{
  display:flex; align-items:center; gap:4px; width:100%;
  margin:0; padding:2px 0; border:0; background:none;
  font-size:12px; color:var(--ink-3); text-align:left; cursor:pointer;
}
.wc-src-head:hover{ color:var(--accent); }
.wc-src-caret{ display:inline-flex; transition:transform .18s ease; }
.wc-src-fold.open .wc-src-caret{ transform:rotate(90deg); }
.wc-src-body{ display:none; flex-direction:column; gap:6px; margin-top:7px; }
.wc-src-fold.open .wc-src-body{ display:flex; }
.wc-src-link{
  display:block; padding:8px 10px;
  border:1px solid var(--line); border-radius:9px;
  background:rgba(255,255,255,.85); text-decoration:none;
  font-size:12.5px; line-height:1.45; color:var(--ink);
  transition:border-color .15s, background .15s;
}
.wc-src-link:hover{ border-color:var(--accent); background:#fff; }
.wc-src-site{
  display:inline-block; margin-right:6px; padding:1px 7px;
  border-radius:5px; vertical-align:1px;
  background:var(--accent-muted); color:var(--accent);
  font-size:11px; font-weight:600;
}
.wc-src-title{ color:var(--ink); }
.wc-src-date{
  display:block; margin-top:3px;
  color:var(--ink-3); font-size:11px;
}
/* 窄屏：来源链接占满气泡宽度，长标题正常换行 */
@media (max-width:1023px){
  .wc-src-link{ font-size:12px; }
}

/* ============================================================
   学生档案重构 · 新视觉基础层（2026-09-28 P1-01，v4 区块）
   ------------------------------------------------------------
   · 依据：《学生档案页面重构 PRD》第十节「视觉设计系统」
   · 作用域：所有新组件类名统一 .n- 前缀，且只在 .stu-v2
     容器内生效；当前页面还没有任何元素挂载 .stu-v2，
     因此本区块此刻对线上界面零影响（含其他页面与旧学生页）。
   · --n-* 变量只定义不引用，同样不会改变任何现有样式。
   · 回滚：删除本区块（至文件尾）并把 index.html 版本号回退。
   ============================================================ */

/* ---- v4 设计令牌（颜色 / 字阶 / 圆角 / 阴影 / 动效） ---- */
:root{
  /* 语义色：颜色即信号灯，每种颜色只有一类用途 */
  --n-brand: #1f4e8c;          /* 品牌主色：主按钮/链接/进行中/选中 */
  --n-brand-2: #2f6bb8;        /* 品牌辅色：渐变末端 */
  --n-brand-muted: #eaf1fa;    /* 品牌浅底 */
  --n-danger: #dc2626;         /* 危险红：逾期/拒信/删除/强制回退 */
  --n-danger-muted: #fdeaea;
  --n-success: #16a34a;        /* 成功绿：录取/完成/清零 */
  --n-success-muted: #e7f7ef;
  --n-warning: #f59e0b;        /* 警示橙：今天到期/面试等待/高意向小标签 */
  --n-warning-muted: #fef3e7;
  --n-teal: #0d9488;           /* 辅助青：仅占位/缴费确认 */
  --n-teal-muted: #ecfeff;
  /* 中性灰阶 */
  --n-ink: #16202e;
  --n-ink-2: #4a5768;
  --n-ink-3: #8a95a5;
  --n-line: #e8edf3;
  --n-line-strong: #d5ddea;
  --n-bg: #f4f6f9;
  --n-bg-soft: #fcfdfe;
  /* 字阶 */
  --n-fs-page: 18px;
  --n-fs-card: 13.5px;
  --n-fs-body: 12.5px;
  --n-fs-sub: 11px;
  /* 圆角 */
  --n-r-card: 13px;
  --n-r-control: 9px;
  --n-r-pill: 999px;
  /* 阴影 */
  --n-shadow: 0 1px 2px rgba(20,40,70,.04), 0 6px 20px rgba(20,40,70,.05);
  --n-shadow-pop: 0 12px 40px rgba(20,40,70,.14);
  /* 动效：克制、平滑 */
  --n-ease: 180ms ease;
}

/* ---- v4 作用域基础排版（只影响新 UI） ---- */
.stu-v2{
  color:var(--n-ink);
  font-size:var(--n-fs-body);
  line-height:1.55;
}
.stu-v2 h1,.stu-v2 h2,.stu-v2 h3,.stu-v2 h4{ margin:0; font-weight:700; color:var(--n-ink); }
.stu-v2 .n-page-title{ font-size:var(--n-fs-page); font-weight:800; }
.stu-v2 .n-card-title{ font-size:var(--n-fs-card); font-weight:700; }
.stu-v2 .n-sub{ font-size:var(--n-fs-sub); color:var(--n-ink-3); }
.stu-v2 .n-strong{ font-weight:700; color:var(--n-ink); }

/* ---- 卡片 ---- */
.stu-v2 .n-card{
  background:#fff;
  border:1px solid var(--n-line);
  border-radius:var(--n-r-card);
  box-shadow:var(--n-shadow);
}
.stu-v2 .n-card-pad{ padding:14px 16px; }

/* ---- 按钮：每个场景只有一个主按钮 ---- */
.stu-v2 .n-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:5px;
  font-size:var(--n-fs-body); font-weight:600; line-height:1;
  padding:8px 14px; border-radius:var(--n-r-control);
  border:1px solid transparent; white-space:nowrap;
  transition:background var(--n-ease), border-color var(--n-ease), color var(--n-ease), box-shadow var(--n-ease), transform var(--n-ease);
}
.stu-v2 .n-btn:active{ transform:translateY(1px); }
.stu-v2 .n-btn.pri{ background:var(--n-brand); color:#fff; }
.stu-v2 .n-btn.pri:hover{ background:var(--n-brand-2); }
.stu-v2 .n-btn.gh{ background:#fff; border-color:var(--n-line); color:var(--n-ink-2); }
.stu-v2 .n-btn.gh:hover{ border-color:var(--n-line-strong); color:var(--n-ink); }
.stu-v2 .n-btn.danger-gh{ background:#fff; border-color:#f3c6c6; color:var(--n-danger); }
.stu-v2 .n-btn.danger-gh:hover{ background:#fff7f7; }
.stu-v2 .n-btn.tiny{ font-size:11px; padding:5px 10px; border-radius:8px; }
.stu-v2 .n-btn.block{ width:100%; }
.stu-v2 .n-btn:disabled{ opacity:.55; pointer-events:none; }

/* ---- 药丸标签：默认灰底；状态色只用一颗小点表达 ---- */
.stu-v2 .n-pill{
  display:inline-flex; align-items:center; gap:5px;
  font-size:11px; font-weight:600; line-height:1;
  padding:3px 9px; border-radius:var(--n-r-pill);
  background:#eef2f8; color:#3d4b5e; white-space:nowrap;
}
.stu-v2 .n-dot{ width:7px; height:7px; border-radius:50%; flex:none; }
.stu-v2 .n-dot.brand{ background:var(--n-brand); }
.stu-v2 .n-dot.violet{ background:#7c3aed; }
.stu-v2 .n-dot.amber{ background:var(--n-warning); }
.stu-v2 .n-dot.cyan{ background:#06b6d4; }
.stu-v2 .n-dot.blue{ background:#3b82f6; }
.stu-v2 .n-dot.green{ background:var(--n-success); }
.stu-v2 .n-dot.red{ background:var(--n-danger); }
.stu-v2 .n-dot.gray{ background:#94a3b8; }
/* 语义小标签（仅高意向/逾期/录取等少数场景） */
.stu-v2 .n-pill.intent{ background:var(--n-warning-muted); color:#c2570c; }
.stu-v2 .n-pill.over{ background:var(--n-danger-muted); color:var(--n-danger); }
.stu-v2 .n-pill.ok{ background:var(--n-success-muted); color:var(--n-success); }
.stu-v2 .n-pill.brand{ background:var(--n-brand-muted); color:var(--n-brand); }

/* ---- 可点选 chips（渠道/反馈/下一步/快捷日期等） ---- */
.stu-v2 .n-chip{
  display:inline-flex; align-items:center; gap:5px;
  font-size:11.5px; font-weight:600;
  padding:6px 12px; border-radius:var(--n-r-pill);
  border:1px solid var(--n-line); background:#fff; color:var(--n-ink-2);
  transition:all var(--n-ease);
}
.stu-v2 .n-chip:hover{ border-color:var(--n-line-strong); color:var(--n-ink); }
.stu-v2 .n-chip.on{ background:var(--n-brand-muted); border-color:#bcd2ee; color:var(--n-brand); }
.stu-v2 .n-chip.on.pos{ background:var(--n-success-muted); border-color:#b7e4c5; color:var(--n-success); }
.stu-v2 .n-chip.on.warn{ background:var(--n-warning-muted); border-color:#f6ddc2; color:#c2570c; }
.stu-v2 .n-chip.on.danger{ background:var(--n-danger-muted); border-color:#f3c6c6; color:var(--n-danger); }

/* ---- 表单 ---- */
.stu-v2 .n-field{ margin-bottom:12px; }
.stu-v2 .n-field:last-child{ margin-bottom:0; }
.stu-v2 .n-label{ display:block; font-size:11px; font-weight:600; color:var(--n-ink-3); margin-bottom:6px; }
.stu-v2 .n-input,.stu-v2 .n-textarea,.stu-v2 .n-select{
  width:100%; border:1px solid var(--n-line); border-radius:var(--n-r-control);
  padding:8px 11px; font-size:var(--n-fs-body); color:var(--n-ink);
  background:var(--n-bg-soft); outline:none;
  transition:border-color var(--n-ease), box-shadow var(--n-ease), background var(--n-ease);
}
.stu-v2 .n-textarea{ resize:vertical; min-height:64px; line-height:1.6; }
.stu-v2 .n-input:focus,.stu-v2 .n-textarea:focus,.stu-v2 .n-select:focus{
  border-color:#bcd2ee; background:#fff; box-shadow:0 0 0 3px rgba(47,107,184,.12);
}
.stu-v2 .n-input::placeholder,.stu-v2 .n-textarea::placeholder{ color:#aab4c2; }

/* ---- 弹层：电脑居中模态 ---- */
.stu-v2.n-layer,.n-layer.stu-v2{ position:fixed; inset:0; z-index:9000; display:flex; align-items:center; justify-content:center; padding:20px; }
.stu-v2 .n-mask{ position:absolute; inset:0; background:rgba(15,28,45,.42); animation:n-fade var(--n-ease); }
.stu-v2 .n-modal{
  position:relative; width:100%; max-width:460px; max-height:88vh; overflow:auto;
  background:#fff; border-radius:16px; box-shadow:var(--n-shadow-pop);
  animation:n-pop var(--n-ease);
}
.stu-v2 .n-modal.lg{ max-width:640px; }
.stu-v2 .n-modal-head{ padding:16px 18px 0; }
.stu-v2 .n-modal-title{ font-size:15px; font-weight:800; }
.stu-v2 .n-modal-body{ padding:14px 18px; }
.stu-v2 .n-modal-actions{
  display:flex; justify-content:flex-end; gap:8px;
  padding:12px 18px; background:#fafbfd; border-top:1px solid var(--n-line);
  border-radius:0 0 16px 16px; position:sticky; bottom:0;
}

/* ---- 弹层：手机底部上滑卡片 ---- */
@media (max-width:640px){
  .n-layer.stu-v2{ align-items:flex-end; padding:0; }
  .stu-v2 .n-modal{
    max-width:none; border-radius:18px 18px 0 0; max-height:92vh;
    animation:n-sheet-up var(--n-ease);
  }
  .stu-v2 .n-grab{ width:38px; height:4px; border-radius:99px; background:var(--n-line-strong); margin:8px auto 2px; }
  .stu-v2 .n-modal-actions{ border-radius:0; padding-bottom:calc(12px + env(safe-area-inset-bottom)); }
}

/* ---- 空态 ---- */
.stu-v2 .n-empty{
  display:flex; flex-direction:column; align-items:center; gap:6px;
  padding:34px 18px; text-align:center;
}
.stu-v2 .n-empty .n-empty-ic{
  width:46px; height:46px; border-radius:14px;
  background:var(--n-bg); color:var(--n-ink-3);
  display:flex; align-items:center; justify-content:center; font-size:22px;
}
.stu-v2 .n-empty .n-empty-t{ font-size:13px; font-weight:600; color:var(--n-ink-2); }
.stu-v2 .n-empty .n-empty-s{ font-size:11.5px; color:var(--n-ink-3); line-height:1.7; max-width:280px; }
.stu-v2 .n-empty .n-btn{ margin-top:8px; }

/* ---- 轻提示 toast 反馈（"系统记住了什么"） ---- */
.stu-v2 .n-note{
  display:flex; align-items:flex-start; gap:8px;
  font-size:11.5px; line-height:1.6;
  border-radius:var(--n-r-control); padding:9px 12px;
}
.stu-v2 .n-note.ok{ background:var(--n-success-muted); color:#166534; }
.stu-v2 .n-note.warn{ background:var(--n-warning-muted); color:#92400e; }
.stu-v2 .n-note.info{ background:var(--n-brand-muted); color:#1e4778; }

/* ---- 动画 ---- */
@keyframes n-fade{ from{ opacity:0; } to{ opacity:1; } }
@keyframes n-pop{ from{ opacity:0; transform:translateY(8px) scale(.985); } to{ opacity:1; transform:none; } }
@keyframes n-sheet-up{ from{ transform:translateY(100%); } to{ transform:translateY(0); } }
@media (prefers-reduced-motion: reduce){
  .stu-v2 *{ animation-duration:.01ms !important; transition-duration:.01ms !important; }
}

/* ============================================================
   学生档案重构 P1-02 · 详情页「单页纵览」骨架样式（2026-09-29）
   ------------------------------------------------------------
   · 全部选择器以 .stu-v2 为作用域前缀（.sd-* 类名也只在新骨架
     中出现），对旧学生详情与其他页面零影响；
   · 只排骨架：分区内部仍由旧渲染函数产出，沿用 .card / .st-*
     既有样式，本区块不改任何旧类；
   · 回滚：删除本区块（至文件尾）+ index.html 版本号回退。
   ============================================================ */

/* ---- 页面整体：居中限宽，超宽屏不拉散 ---- */
.stu-v2.sd-wrap{
  max-width:1180px;
  margin:0 auto;
}

/* ---- 顶部行：返回 / 面包屑 / 最近查看 ---- */
.stu-v2 .sd-top{
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  margin-bottom:12px;
}
.stu-v2 .sd-back{
  display:inline-flex; align-items:center; gap:5px;
  padding:6px 12px; border-radius:var(--n-r-pill);
  background:#fff; border:1px solid var(--n-line);
  color:var(--n-ink-2); font-size:12px; font-weight:600;
  transition:border-color var(--n-ease), color var(--n-ease), box-shadow var(--n-ease);
}
.stu-v2 .sd-back:hover{ border-color:#bcd2ee; color:var(--n-brand); box-shadow:0 2px 8px rgba(31,78,140,.08); }
.stu-v2 .sd-crumb{ font-size:12px; color:var(--n-ink-3); white-space:nowrap; }
.stu-v2 .sd-crumb i{ font-style:normal; margin:0 4px; color:var(--n-line-strong); }
.stu-v2 .sd-recent{
  margin-left:auto;
  display:flex; align-items:center; gap:6px;
  min-width:0;
}
.stu-v2 .sd-rc{
  flex:none; max-width:120px;
  padding:4px 11px; border-radius:var(--n-r-pill);
  background:#fff; border:1px solid var(--n-line);
  color:var(--n-ink-2); font-size:11.5px; font-weight:600;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  transition:all var(--n-ease);
}
.stu-v2 .sd-rc:hover{ border-color:var(--n-line-strong); color:var(--n-ink); }
.stu-v2 .sd-rc.on{ background:var(--n-brand-muted); border-color:#bcd2ee; color:var(--n-brand); }

/* ---- 吸顶锚点条 ---- */
.stu-v2 .sd-anchors{
  position:sticky; top:0; z-index:30;
  display:flex; align-items:center; gap:6px;
  padding:8px 4px; margin:0 0 14px;
  background:rgba(245,247,250,.92);
  backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
  border-bottom:1px solid rgba(232,237,243,.7);
}
.stu-v2 .sd-anchor{
  flex:none; padding:6px 15px; border-radius:var(--n-r-pill);
  background:#fff; border:1px solid var(--n-line);
  color:var(--n-ink-2); font-size:12.5px; font-weight:600;
  transition:all var(--n-ease);
}
.stu-v2 .sd-anchor:hover{ color:var(--n-brand); border-color:#bcd2ee; }
.stu-v2 .sd-anchor.on{ background:var(--n-brand); border-color:var(--n-brand); color:#fff; box-shadow:0 3px 9px rgba(31,78,140,.22); }

/* ---- 双栏布局：左主列 + 右栏（≥1024） ---- */
.stu-v2 .sd-layout{
  display:grid; grid-template-columns:minmax(0,1fr);
  gap:14px; align-items:start;
}
.stu-v2 .sd-main{ min-width:0; display:flex; flex-direction:column; gap:14px; }
.stu-v2 .sd-rail{ min-width:0; display:flex; flex-direction:column; gap:14px; }

/* ---- 分区：外不带卡，内部模块自带卡 ---- */
.stu-v2 .sd-sec{ min-width:0; scroll-margin-top:58px; }
.stu-v2 .sd-sec-t{
  display:flex; align-items:center; gap:8px;
  margin:2px 2px 10px;
}
.stu-v2 .sd-sec-tt{ font-size:14px; font-weight:800; color:var(--n-ink); letter-spacing:.2px; }
.stu-v2 .sd-sec-acts{ margin-left:auto; display:flex; align-items:center; gap:6px; }
.stu-v2 .sd-sec-hint{
  margin-left:auto; font-size:11px; font-weight:600; color:var(--n-ink-3);
  background:#eef2f8; padding:3px 9px; border-radius:var(--n-r-pill);
}
.stu-v2 .sd-count{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:20px; height:18px; padding:0 6px;
  border-radius:var(--n-r-pill); background:#eef2f8;
  color:#5b6b7f; font-size:11px; font-weight:700;
  font-variant-numeric:tabular-nums;
}
.stu-v2 .sd-sub-t{
  display:flex; align-items:center; gap:6px;
  font-size:12.5px; font-weight:700; color:var(--n-ink-2);
  margin:14px 2px 8px;
}
/* 文字链接式小按钮（分区标题操作位 / 右栏查看号码） */
.stu-v2 .sd-link-btn{
  display:inline-flex; align-items:center; gap:4px;
  padding:4px 9px; border-radius:8px;
  background:transparent; border:1px solid transparent;
  color:var(--n-brand); font-size:11.5px; font-weight:600;
  transition:background var(--n-ease);
}
.stu-v2 .sd-link-btn:hover{ background:var(--n-brand-muted); }

/* ---- 身份卡 ---- */
.stu-v2 .sd-hero{ padding:16px 18px; }
.stu-v2 .sd-hero-row1{ display:flex; align-items:center; gap:14px; }
.stu-v2 .sd-hero-id{ flex:1; min-width:0; }
.stu-v2 .sd-name{
  display:flex; align-items:center; gap:8px; flex-wrap:wrap;
  font-size:19px; font-weight:800; color:var(--n-ink); letter-spacing:.2px; line-height:1.35;
}
.stu-v2 .sd-sno{
  display:inline-flex; align-items:center; gap:4px;
  padding:1px 8px; border-radius:9px;
  background:#eef2f7; color:#5b6b7f;
  font-size:11px; font-weight:600; letter-spacing:.4px;
  font-variant-numeric:tabular-nums; white-space:nowrap;
}
.stu-v2 .sd-sno .st-copy-btn{ width:17px; height:17px; border:none; background:transparent; }
.stu-v2 .sd-hero-acts{ display:flex; align-items:center; gap:8px; flex:none; }
/* 身份卡内旧片段（meta / tags）在白卡上的微调 */
.stu-v2 .sd-hero .st-meta{ margin-top:14px; }
.stu-v2 .sd-hero .st-tags{ margin-top:12px; padding-top:12px; border-top:1px dashed var(--n-line); }

/* ---- 行动条：逾期 / 今天 / 有安排 / 无待办 四态 ---- */
.stu-v2 .sd-actionbar{
  display:flex; align-items:center; gap:12px;
  padding:12px 16px; border-radius:var(--n-r-card);
  font-size:12.5px; line-height:1.5;
  border:1px solid transparent;
}
.stu-v2 .sd-actionbar.over{ background:var(--n-danger-muted); border-color:#f5c6c6; color:#b42318; }
.stu-v2 .sd-actionbar.today{ background:var(--n-warning-muted); border-color:#f6ddc2; color:#9a4b08; }
.stu-v2 .sd-actionbar.info{ background:var(--n-brand-muted); border-color:#c7daf2; color:#1e4778; }
.stu-v2 .sd-actionbar.ok{ background:var(--n-success-muted); border-color:#c2e8d0; color:#166534; }
.stu-v2 .sd-ab-ic{
  flex:none; width:32px; height:32px; border-radius:50%;
  background:rgba(255,255,255,.75);
  display:flex; align-items:center; justify-content:center;
}
.stu-v2 .sd-ab-main{ flex:1; min-width:0; }
.stu-v2 .sd-ab-main b{ font-weight:700; }
.stu-v2 .sd-ab-dim{ display:block; margin-top:2px; font-size:11.5px; opacity:.82; }
.stu-v2 .sd-ab-acts{ display:flex; align-items:center; gap:8px; flex:none; }
.stu-v2 .sd-actionbar.over .n-btn.pri{ background:var(--n-danger); }
.stu-v2 .sd-actionbar.over .n-btn.pri:hover{ background:#b91c1c; }
.stu-v2 .sd-actionbar.ok .n-btn.pri{ background:var(--n-success); }
.stu-v2 .sd-actionbar.ok .n-btn.pri:hover{ background:#128a3d; }

/* ---- 右栏卡片 ---- */
.stu-v2 .sd-rail-card{ padding:14px 15px; }
.stu-v2 .sd-rail-t{ font-size:13px; font-weight:800; color:var(--n-ink); margin-bottom:10px; }
.stu-v2 .sd-contact{
  display:flex; align-items:center; gap:8px;
  font-size:12.5px; color:var(--n-ink-2);
  padding:6px 0;
}
.stu-v2 .sd-contact + .sd-contact{ border-top:1px dashed var(--n-line); }
.stu-v2 .sd-contact-k{ flex:none; color:var(--n-ink-3); font-size:11.5px; }
.stu-v2 .sd-contact b{ min-width:0; font-weight:600; letter-spacing:.3px; word-break:break-all; }
.stu-v2 .sd-contact .sd-link-btn{ margin-left:auto; flex:none; padding:2px 8px; }
.stu-v2 .sd-muted{ color:var(--n-ink-3); font-size:12.5px; }
.stu-v2 .sd-rail-card .n-btn.block + .n-btn.block{ margin-top:0; }
.stu-v2 .sd-rail-btns{ display:flex; flex-direction:column; gap:8px; }
/* 关键日期：名值对 + 顶分隔线 */
.stu-v2 .sd-kv{
  display:flex; align-items:baseline; justify-content:space-between; gap:12px;
  font-size:12.5px; padding:8px 0;
}
.stu-v2 .sd-kv + .sd-kv{ border-top:1px solid var(--n-line); }
.stu-v2 .sd-kv span{ color:var(--n-ink-3); flex:none; }
.stu-v2 .sd-kv b{ font-weight:600; color:var(--n-ink-2); text-align:right; font-variant-numeric:tabular-nums; }
.stu-v2 .sd-kv b.sd-over{ color:var(--n-danger); }
.stu-v2 .sd-stage-suggest{
  display:flex; align-items:flex-start; gap:7px;
  margin-top:11px; padding:10px 12px; border-radius:var(--n-r-control);
  background:var(--n-brand-muted); color:#1e4778;
  font-size:11.5px; line-height:1.65;
}
.stu-v2 .sd-stage-suggest svg{ flex:none; margin-top:2px; }

/* ---- PC ≥1024：双栏 + 右栏跟随吸顶 ---- */
@media (min-width:1024px){
  .stu-v2 .sd-layout{ grid-template-columns:minmax(0,1fr) 280px; gap:18px; }
  .stu-v2 .sd-rail{ position:sticky; top:58px; }
}

/* ---- 平板/手机（<1024）：单列，右栏沉到主列之后 ---- */
@media (max-width:1023px){
  .stu-v2 .sd-anchors{
    overflow-x:auto; scrollbar-width:none; -ms-overflow-style:none;
    margin-left:-2px; margin-right:-2px; padding-left:2px;
  }
  .stu-v2 .sd-anchors::-webkit-scrollbar{ display:none; }
  .stu-v2 .sd-recent{
    flex:1 1 100%; margin-left:0;
    overflow-x:auto; scrollbar-width:none; -ms-overflow-style:none;
    padding-bottom:2px;
  }
  .stu-v2 .sd-recent::-webkit-scrollbar{ display:none; }
}

/* ---- 手机（≤640）：紧凑化 + 行动条折行 + 身份卡动作整行 ---- */
@media (max-width:640px){
  .stu-v2 .sd-crumb{ display:none; }
  .stu-v2 .sd-hero{ padding:14px; }
  .stu-v2 .sd-hero-row1{ flex-wrap:wrap; gap:11px; }
  .stu-v2 .sd-hero-id{ flex:1 1 auto; }
  .stu-v2 .sd-hero-acts{ flex:1 1 100%; order:3; }
  .stu-v2 .sd-hero-acts .n-btn{ flex:1; }
  .stu-v2 .sd-actionbar{ flex-wrap:wrap; padding:11px 13px; gap:10px; }
  .stu-v2 .sd-ab-main{ flex:1 1 100%; order:1; }
  .stu-v2 .sd-ab-ic{ order:0; }
  .stu-v2 .sd-ab-acts{ order:2; margin-left:auto; }
  .stu-v2 .sd-sec-tt{ font-size:13.5px; }
  /* 右栏沉底后与既有固定底部栏留出安全间距（#screen 已有 90px，再补卡片间距） */
  .stu-v2 .sd-rail{ padding-bottom:12px; }
}
/* ============================================================
   P1-03 画像就地编辑（仅 .stu-v2 单页骨架内生效，V1/其他页零影响）
   有值=实格可点（小弹层编辑）；空值=虚线「＋补充」格；
   自定义字段收进「更多画像字段」折叠区；卡尾 AI 补全。
   ============================================================ */
.stu-v2 .pf-card{ padding:14px 16px 12px; }
.stu-v2 .pf-grid{ gap:8px; }
/* 有值字段格（按钮化） */
.stu-v2 .pf-item{
  display:inline-flex; align-items:center; gap:6px; max-width:100%;
  font:inherit; font-size:12px; line-height:1.35; color:var(--ink-2);
  background:#fff; border:1px solid var(--line); border-radius:9px;
  padding:6px 10px; cursor:pointer; text-align:left;
  transition:border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.stu-v2 .pf-item > svg{ color:var(--accent); flex:none; }
.stu-v2 .pf-item .st-port-k{ color:var(--ink-3); flex-shrink:0; }
.stu-v2 .pf-item .st-port-v{ font-weight:600; color:var(--ink); word-break:break-all; min-width:0; }
.stu-v2 .pf-item .pf-edit-ic{
  display:inline-flex; align-items:center; color:#c4cdd9; flex:none;
  opacity:0; transform:translateX(-2px); transition:opacity .15s ease, transform .15s ease, color .15s ease;
}
.stu-v2 .pf-item:hover,
.stu-v2 .pf-item:focus-visible{
  border-color:var(--accent); background:var(--accent-muted);
  box-shadow:0 1px 4px rgba(31,78,140,.10); outline:none;
}
.stu-v2 .pf-item:hover .pf-edit-ic,
.stu-v2 .pf-item:focus-visible .pf-edit-ic{ opacity:1; transform:none; color:var(--accent); }
.stu-v2 .pf-item.is-ro{ cursor:default; background:#f8fafc; }
.stu-v2 .pf-item.is-ro:hover{ border-color:var(--line); background:#f8fafc; box-shadow:none; }
/* 空字段：虚线「＋ 补充」格 */
.stu-v2 .pf-add{
  display:inline-flex; align-items:center; gap:5px; max-width:100%;
  font:inherit; font-size:12px; color:var(--ink-3);
  background:transparent; border:1px dashed #cbd5e1; border-radius:9px;
  padding:6px 10px; cursor:pointer;
  transition:color .15s ease, border-color .15s ease, background .15s ease;
}
.stu-v2 .pf-add > svg{ color:#94a3b8; transition:color .15s ease; }
.stu-v2 .pf-add:hover,
.stu-v2 .pf-add:focus-visible{
  color:var(--accent); border-color:var(--accent); border-style:solid;
  background:var(--accent-muted); outline:none;
}
.stu-v2 .pf-add:hover > svg,
.stu-v2 .pf-add:focus-visible > svg{ color:var(--accent); }
/* 更多画像字段（自定义）折叠区 */
.stu-v2 .pf-more{ margin-top:12px; padding-top:10px; border-top:1px dashed var(--line); }
.stu-v2 .pf-more > summary{
  display:flex; align-items:center; gap:6px; width:100%;
  font-size:12px; font-weight:600; color:var(--ink-3);
  cursor:pointer; list-style:none; user-select:none;
}
.stu-v2 .pf-more > summary::-webkit-details-marker{ display:none; }
.stu-v2 .pf-more > summary > svg{ color:#94a3b8; }
.stu-v2 .pf-more[open] > summary{ color:var(--ink-2); margin-bottom:8px; }
.stu-v2 .pf-more-n{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:18px; height:18px; padding:0 6px; border-radius:9px;
  background:#eef2f7; color:var(--ink-3); font-size:11px; font-weight:600;
}
.stu-v2 .pf-more .pf-grid{ margin-top:2px; }
/* 卡尾：从 AI 记忆补全（流程只补空、不覆盖） */
.stu-v2 .pf-foot{
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  margin-top:12px; padding-top:10px; border-top:1px solid var(--line);
}
.stu-v2 .pf-foot-hint{ font-size:11px; color:#9aa5b5; }

/* 手机端（≤640px）：触屏无 hover，编辑小笔图标以淡色常驻提示可点 */
@media (max-width:640px){
  .stu-v2 .pf-card{ padding:12px; }
  .stu-v2 .pf-item,
  .stu-v2 .pf-add{ padding:7px 10px; }
  .stu-v2 .pf-item .pf-edit-ic{ opacity:1; transform:none; }
  .stu-v2 .pf-foot-hint{ width:100%; }
}

/* ============================================================
   P1-04 状态展示降噪（PRD 10.1 / G7）
   灰底药丸 + 一颗小色点：V2 详情头部与学生名单行共用。
   本块为全局类（名单页不在 .stu-v2 作用域内）；V1 旧版不引用
   这些类（仍用 .badge/.m-tag 内联彩色版），外观一个像素不变。
   ============================================================ */
.m-pill{
  display:inline-flex; align-items:center; gap:5px;
  font-size:11px; font-weight:600; line-height:1.45;
  padding:2px 9px; border-radius:999px;
  background:#eef2f8; color:#3d4b5e; white-space:nowrap;
}
.m-pill .m-dot{ width:7px; height:7px; border-radius:50%; flex:none; background:#94a3b8; }
.m-pill > svg{ flex:none; }
/* 可点的状态/意向药丸（V2 详情头部）：hover 只用中性描边，不刷彩色底 */
.m-pill-click{
  margin:0; border:0; font-family:inherit; cursor:pointer;
  transition:box-shadow .16s ease, background .16s ease;
}
.m-pill-click:hover{ background:#e4eaf2; box-shadow:0 0 0 1.5px rgba(61,75,94,.25); }
.m-pill-click:focus-visible{ outline:none; box-shadow:0 0 0 2px rgba(31,78,140,.35); }
/* 仅高意向保留的橙色小标签（全页唯一的意向色块） */
.m-pill-intent-h{ background:#fdf0e3; color:#c2570c; }
.m-pill-click.m-pill-intent-h:hover{ background:#fbe7d2; box-shadow:0 0 0 1.5px rgba(194,87,12,.3); }
/* 来源、业务员等次要标签：更轻的灰阶、无色点 */
.m-pill-sub{ background:#f1f4f8; color:#7a8698; font-weight:500; }
/* 名单行状态色条（卡片视图顶条 / 紧凑·表格左竖条，同一 ::before）：
   不再按 9 状态刷分类彩色（状态身份已由灰药丸+小色点表达），统一浅灰；
   仅待确认行保留琥珀信号条；逾期/今天的紧急度红/橙角标仍是原有信号，不动。 */
.stu-row::before{ background:#e8edf3; }
.stu-row.pending::before{ background:#f59e0b; }
@media (max-width:640px){
  .m-pill{ font-size:10.5px; padding:2px 8px; gap:4px; }
  .m-pill .m-dot{ width:6px; height:6px; }
}

/* ============================================================
   学生档案重构 P1-05 · 一期灰度新旧版切换入口（2026-09-29）
   新版顶行「返回旧版视图」低调灰链接；旧版顶部「切回新版」浅蓝胶囊。
   仅灰度白名单账号可见；第四期随 V1 旧版一并清理。
   ============================================================ */
.stu-v2 .sd-v1link{
  margin-left:auto; flex:none; align-self:center;
  border:0; background:transparent; cursor:pointer;
  color:#94a3b8; font-size:12px; line-height:1.4; padding:4px 8px; border-radius:6px;
  white-space:nowrap;
}
.stu-v2 .sd-v1link:hover{ color:#475569; background:#f1f5f9; }
.st-v2pilot{ display:flex; justify-content:flex-end; margin:0 0 8px; }
.st-v2pilot button{
  border:1px solid #bfdbfe; background:#eff6ff; color:#1d4ed8;
  font-size:12px; line-height:1.4; padding:5px 12px; border-radius:999px; cursor:pointer;
}
.st-v2pilot button:hover{ background:#dbeafe; }
@media (max-width:640px){
  .stu-v2 .sd-v1link{ font-size:11px; padding:3px 6px; margin-left:0; }
}

/* ============================================================
   学生档案重构 内测反馈修复（2026-09-29）
   F1 回到顶部悬浮钮；F3 微信对话改定高内部滚动窗（不撑长整页）。
   均限定 .stu-v2 作用域，V1 旧版不受影响。
   ============================================================ */
/* V2 根容器：用纯淡入覆盖全局 pageIn（其结束帧残留 translateY 会形成
   fixed 包含块，导致回到顶部钮定位到文档末尾；opacity 不影响包含块） */
.stu-v2.sd-wrap, #screen > .stu-v2.sd-wrap{ animation:sdFadeIn .3s ease both; }
@keyframes sdFadeIn{ from{ opacity:0 } to{ opacity:1 } }
/* F1 回到顶部：默认隐藏，下滑超过阈值由 JS 加 .show */
.stu-v2 .sd-totop{
  position:fixed; right:26px; bottom:34px; z-index:45;
  width:42px; height:42px; border-radius:50%;
  display:inline-flex; align-items:center; justify-content:center;
  border:1px solid #bcd2ee; background:rgba(255,255,255,.96); color:var(--n-brand);
  box-shadow:0 6px 18px rgba(15,39,64,.16); cursor:pointer;
  opacity:0; transform:translateY(10px); pointer-events:none;
  transition:opacity .2s ease, transform .2s ease, background .15s ease;
}
.stu-v2 .sd-totop.show{ opacity:1; transform:translateY(0); pointer-events:auto; }
.stu-v2 .sd-totop:hover{ background:var(--n-brand); color:#fff; border-color:var(--n-brand); }
.stu-v2 .sd-totop:focus-visible{ outline:2px solid var(--n-brand); outline-offset:2px; }

/* F3 微信对话：卡片内独立滚动窗，消息再多也不拉长档案页；
   头部说明固定在窗外，「加载更早」在窗内顶部吸住 */
.stu-v2 .wx-scroll{
  max-height:56vh; overflow-y:auto; overflow-x:hidden;
  overscroll-behavior:contain; -webkit-overflow-scrolling:touch;
  margin-top:8px; padding:6px 14px 12px;
  border:1px solid #e2e8f0; border-radius:12px; background:#f4f7fb;
  scrollbar-width:thin;
}
.stu-v2 .wx-scroll .wx-more{
  position:sticky; top:-6px; z-index:1;
  margin:0 -14px 6px; padding:8px 14px;
  background:linear-gradient(180deg, #f4f7fb 70%, rgba(244,247,251,0));
}
.stu-v2 .wx-scroll .wx-end{ position:sticky; top:0; background:#f4f7fb; }
.stu-v2 .wx-rows{ display:flex; flex-direction:column; }
@media (max-width:640px){
  .stu-v2 .sd-totop{ right:16px; bottom:calc(74px + env(safe-area-inset-bottom)); width:38px; height:38px; }
  .stu-v2 .wx-scroll{ max-height:52vh; padding:6px 10px 10px; }
  .stu-v2 .wx-scroll .wx-more{ margin-left:-10px; margin-right:-10px; padding-left:10px; padding-right:10px; }
}

/* ============================================================
   二期 P2-02：逐校录取登记弹层 + 录取进展板（2026-09-29）
   ============================================================ */
/* —— 弹层：一校一卡 —— */
.sre-modal .sre-cards{ display:flex; flex-direction:column; gap:10px; margin-bottom:10px; }
.sre-card{ border:1px solid var(--line); border-radius:var(--radius-sm); background:var(--bg-card); padding:12px; }
.sre-card.has-status{ border-color:var(--line-strong); }
.sre-card-top{ display:flex; gap:8px; align-items:center; }
.sre-card-top .sre-school{ flex:1; min-width:0; }
.sre-del{ flex:none; width:32px; height:32px; border-radius:8px; border:1px solid var(--line); background:#fff; color:var(--ink-3); cursor:pointer; display:flex; align-items:center; justify-content:center; }
.sre-del:hover{ color:var(--danger); border-color:#fecaca; background:#fef2f2; }
.sre-lab{ font-size:12px; color:var(--ink-3); margin:10px 0 6px; }
.sre-seg{ display:flex; flex-wrap:wrap; gap:6px; }
.sre-pill{ border:1px solid var(--line-strong); background:#fff; color:var(--ink-2); border-radius:999px; padding:5px 13px; font-size:13px; cursor:pointer; transition:background .15s,border-color .15s,color .15s; }
.sre-pill:hover{ border-color:var(--accent); color:var(--accent); }
.sre-pill.on{ color:#fff; border-color:transparent; background:var(--ink-2); font-weight:600; }
.sre-tier-seg .sre-pill.on[data-tier="reach"]{ background:#c2410c; }
.sre-tier-seg .sre-pill.on[data-tier="match"]{ background:#1d4ed8; }
.sre-tier-seg .sre-pill.on[data-tier="safety"]{ background:#15803d; }
.sre-st-seg .sre-pill.on[data-st="preparing"]{ background:#64748b; }
.sre-st-seg .sre-pill.on[data-st="submitted"]{ background:#1d4ed8; }
.sre-st-seg .sre-pill.on[data-st="interview"]{ background:#0e7490; }
.sre-st-seg .sre-pill.on[data-st="offer"]{ background:#15803d; }
.sre-st-seg .sre-pill.on[data-st="rejected"]{ background:#b91c1c; }
.sre-st-seg .sre-pill.on[data-st="deposit"]{ background:#4338ca; }
.sre-dates{ display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:10px; }
.sre-df{ display:flex; flex-direction:column; gap:4px; font-size:12px; color:var(--ink-3); }
.sre-df[hidden]{ display:none; }
.sre-df i{ font-style:normal; color:var(--ink-3); font-size:11px; }
.sre-df input{ font-size:14px; }
.sre-extra{ display:flex; flex-direction:column; gap:8px; margin-top:8px; }
.sre-extra input[hidden]{ display:none; }
.sre-warn{ margin-top:8px; padding:7px 10px; border-radius:8px; background:#fffbeb; border:1px solid #fde68a; color:#92400e; font-size:12px; line-height:1.55; }
.sre-warn b{ color:#78350f; }
.sre-legacy{ margin-top:8px; font-size:12px; color:#92400e; background:#fffbeb; border:1px solid #fde68a; border-radius:8px; padding:6px 10px; line-height:1.5; }
.sre-legacy.info{ background:#eff6ff; border-color:#bfdbfe; color:#1d4ed8; }
.sre-addline{ width:100%; border:1px dashed var(--line-strong); background:transparent; color:var(--ink-2); border-radius:var(--radius-sm); padding:10px; font-size:13px; cursor:pointer; margin-bottom:4px; }
.sre-addline:hover{ border-color:var(--accent); color:var(--accent); background:#f8fbff; }
.sre-prefill-tip{ background:#eff6ff; border:1px solid #bfdbfe; color:#1e40af; border-radius:var(--radius-sm); padding:9px 12px; font-size:12.5px; line-height:1.6; margin-bottom:10px; display:flex; gap:6px; align-items:flex-start; }
.sre-prefill-tip[hidden]{ display:none; }
.sre-force-tip{ background:#fffbeb; border:1px solid #fde68a; color:#92400e; border-radius:var(--radius-sm); padding:9px 12px; font-size:12.5px; line-height:1.7; margin-bottom:10px; }
.sre-force-tip[hidden]{ display:none; }
.sre-force-go{ font-weight:700; text-decoration:underline; cursor:pointer; margin-left:2px; }
@media (max-width:640px){ .sre-dates{ grid-template-columns:1fr; } }

/* —— 申请管理页：结果列表新样式 —— */
.sr-list.v2{ gap:8px; }
.sr-item.v2{ flex-direction:column; align-items:stretch; gap:6px; padding:9px 12px; }
.sr-item-main{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.sr-item-dates{ display:flex; flex-wrap:wrap; gap:6px 14px; align-items:center; padding-left:2px; }
.sr-date{ font-size:12px; color:var(--ink-2); display:inline-flex; gap:4px; align-items:center; }
.sr-date-k{ color:var(--ink-3); }
.sr-scholarship{ font-size:12px; color:#b45309; font-weight:600; display:inline-flex; gap:3px; align-items:center; }
.sr-item.v2 .sr-item-note{ flex:1 1 100%; }
.sr-tier-badge{ font-weight:600; }
.sr-status-badge{ border:1px solid transparent; font-weight:600; }
.sr-st-preparing{ background:#f1f5f9; color:#475569; border-color:#e2e8f0; }
.sr-st-submitted{ background:#eff6ff; color:#1d4ed8; border-color:#bfdbfe; }
.sr-st-interview{ background:#ecfeff; color:#0e7490; border-color:#a5f3fc; }
.sr-st-offer{ background:#f0fdf4; color:#15803d; border-color:#bbf7d0; }
.sr-st-rejected{ background:#fef2f2; color:#b91c1c; border-color:#fecaca; }
.sr-st-deposit{ background:#eef2ff; color:#4338ca; border-color:#c7d2fe; }
.sr-st-withdrawn,.sr-st-unknown{ background:#f1f5f9; color:#94a3b8; border-color:#e2e8f0; }

/* —— 学生详情 V2：录取进展板 —— */
.stu-v2 #st-results{ display:flex; flex-direction:column; gap:10px; }
.stu-v2 .rb-card{ padding:14px 14px 12px; }
.stu-v2 .rb-head{ display:flex; justify-content:space-between; align-items:flex-start; gap:10px; }
.stu-v2 .rb-head-r{ display:flex; align-items:center; gap:8px; flex-shrink:0; flex-wrap:wrap; justify-content:flex-end; }
/* 窄屏：板头标题与操作区分行，避免标题被挤成竖排、按钮互相挤压 */
@media (max-width:560px){
  .stu-v2 .rb-head{ flex-wrap:wrap; }
  .stu-v2 .rb-head-l{ flex:1 1 100%; min-width:0; }
  .stu-v2 .rb-title{ white-space:nowrap; }
  .stu-v2 .rb-head-r{ width:100%; justify-content:flex-start; }
}
.stu-v2 .rb-enroll-btn{ background:#4338ca; border-color:#4338ca; color:#fff; font-weight:600; }
.stu-v2 .rb-enroll-btn:hover{ background:#3730a3; border-color:#3730a3; }
.stu-v2 .rb-enrolled{ display:inline-flex; align-items:center; gap:5px; font-size:12px; font-weight:600; color:#15803d; background:#f0fdf4; border:1px solid #bbf7d0; border-radius:999px; padding:5px 11px; }
/* 多所占位：最终入读院校选择弹层 */
.enroll-opts{ display:flex; flex-direction:column; gap:8px; margin:14px 0 4px; }
.enroll-opt{ display:flex; align-items:center; gap:8px; justify-content:flex-start; width:100%; padding:11px 14px; border:1px solid var(--line-strong); border-radius:10px; background:#fff; font-size:14px; font-weight:600; color:var(--ink); cursor:pointer; transition:border-color .15s, background .15s; }
.enroll-opt:hover{ border-color:#4338ca; background:#eef2ff; color:#4338ca; }
.stu-v2 .rb-title{ font-size:14px; font-weight:700; display:flex; align-items:center; gap:6px; color:var(--ink); }
.stu-v2 .rb-appno{ font-size:11px; color:var(--ink-3); font-weight:500; margin-left:2px; }
.stu-v2 .rb-meta{ display:flex; gap:6px; flex-wrap:wrap; margin-top:5px; }
.stu-v2 .rb-summary{ display:flex; gap:6px; flex-wrap:wrap; margin:10px 0 2px; }
.stu-v2 .rb-sum{ font-size:12px; padding:3px 10px; border-radius:999px; background:#f1f5f9; color:var(--ink-2); }
.stu-v2 .rb-sum b{ margin-left:2px; }
.stu-v2 .rb-sum-preparing{ background:#f1f5f9; color:#475569; }
.stu-v2 .rb-sum-submitted{ background:#eff6ff; color:#1d4ed8; }
.stu-v2 .rb-sum-interview{ background:#ecfeff; color:#0e7490; }
.stu-v2 .rb-sum-offer{ background:#f0fdf4; color:#15803d; }
.stu-v2 .rb-sum-rejected{ background:#fef2f2; color:#b91c1c; }
.stu-v2 .rb-sum-deposit{ background:#eef2ff; color:#4338ca; }
.stu-v2 .rb-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:8px; margin-top:10px; }
.stu-v2 .rb-school{ border:1px solid var(--line); border-radius:10px; padding:9px 11px; background:#fff; }
.stu-v2 .rb-school-top{ display:flex; align-items:center; gap:7px; flex-wrap:wrap; }
.stu-v2 .rb-school-name{ font-weight:700; font-size:13.5px; color:var(--ink); }
.stu-v2 .rb-school-sub{ display:flex; flex-wrap:wrap; gap:5px 14px; margin-top:7px; align-items:center; }
.stu-v2 .rb-date{ font-size:11.5px; color:var(--ink-2); display:inline-flex; gap:4px; align-items:center; }
.stu-v2 .rb-date-k{ color:var(--ink-3); }
.stu-v2 .rb-date.overdue{ color:var(--danger); font-weight:600; }
.stu-v2 .rb-date.overdue em{ font-style:normal; background:var(--danger-muted); border-radius:4px; padding:0 5px; font-size:10.5px; }
.stu-v2 .rb-scholarship{ font-size:11.5px; color:#b45309; font-weight:600; display:inline-flex; gap:3px; align-items:center; }
.stu-v2 .rb-note{ flex:1 1 100%; font-size:11.5px; color:var(--ink-3); }
.stu-v2 .rb-add{ width:100%; border:1px dashed var(--line-strong); background:#fafbfd; border-radius:10px; padding:14px; color:var(--ink-2); font-size:13px; cursor:pointer; }
.stu-v2 .rb-add:hover{ border-color:var(--accent); color:var(--accent); background:#f8fbff; }
.stu-v2 .rb-add-line{ margin-top:8px; background:none; border:none; color:var(--accent); font-size:12.5px; cursor:pointer; padding:4px; }
.stu-v2 .rb-empty{ font-size:12.5px; color:var(--ink-3); padding:8px 2px; display:flex; gap:6px; align-items:center; }
@media (max-width:640px){ .stu-v2 .rb-grid{ grid-template-columns:1fr; } }

/* ============================================================
   三期 P3-02：今日待办置顶卡（PRD 6.1）
   蓝色聚合卡：四格数字 + 紧急任务清单；首页/学生页共用同一组件
   断点：≥641 四格一排；≤640 两列 2×2（覆盖 390 手机）
   ============================================================ */
.tb-card{
  margin:0 0 14px;
  padding:14px 16px 12px;
  border-radius:14px;
  color:#fff;
  background:linear-gradient(135deg,#1f4e8c 0%,#2f6bb8 100%);
  box-shadow:0 6px 18px rgba(31,78,140,.18);
}
/* 加载态/失败态：白底，不与蓝色卡混淆 */
.tb-card.tb-loading{
  display:flex; align-items:center; justify-content:center; gap:8px;
  background:#fff; color:var(--ink-2); border:1px solid var(--line);
  box-shadow:none; font-size:13px; padding:20px 16px;
}
.tb-card.tb-loading .spin{ border-color:var(--line-strong); border-top-color:var(--accent); }

/* ---- 标题行 ---- */
.tb-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:10px; margin-bottom:12px; }
.tb-head-l{ display:flex; align-items:center; gap:10px; min-width:0; }
.tb-head-ic{
  flex:none; width:34px; height:34px; border-radius:9px;
  display:flex; align-items:center; justify-content:center;
  background:rgba(255,255,255,.16); font-size:17px; line-height:1;
}
.tb-head-txt{ min-width:0; }
.tb-title{ font-size:15px; font-weight:800; letter-spacing:.3px; line-height:1.3; }
.tb-date{
  display:inline-block; margin-left:7px; padding:1px 9px;
  border-radius:999px; background:rgba(255,255,255,.2);
  font-size:11px; font-weight:600; letter-spacing:.2px; vertical-align:1px;
}
.tb-quote{ margin-top:3px; font-size:11.5px; line-height:1.5; color:rgba(255,255,255,.82); }
.tb-walk-btn{
  flex:none; display:inline-flex; align-items:center; gap:4px;
  padding:7px 14px; border:none; border-radius:999px;
  background:#fff; color:#1f4e8c;
  font-size:12.5px; font-weight:700; cursor:pointer;
  box-shadow:0 2px 8px rgba(15,39,64,.2);
  transition:transform .12s, box-shadow .12s;
}
.tb-walk-btn:hover{ transform:translateY(-1px); box-shadow:0 4px 12px rgba(15,39,64,.28); }
.tb-walk-btn svg{ color:#1f4e8c; }

/* ---- 四格 ---- */
.tb-grid{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; }
.tb-cell{
  display:flex; flex-direction:column; gap:2px;
  padding:9px 11px; border-radius:10px; text-align:left; cursor:pointer;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(255,255,255,.1);
  color:#fff; font:inherit;
  transition:background .15s, border-color .15s, transform .12s;
}
.tb-cell:hover{ background:rgba(255,255,255,.2); transform:translateY(-1px); }
.tb-cell:focus-visible{ outline:2px solid #fff; outline-offset:1px; }
.tb-cell.zero{ opacity:.6; }
.tb-cell.on{ background:#fff; border-color:#fff; box-shadow:0 3px 10px rgba(15,39,64,.28); }
.tb-c-top{ display:flex; align-items:center; gap:6px; }
.tb-c-ic{ display:inline-flex; align-items:center; color:rgba(255,255,255,.85); }
.tb-c-num{ font-size:21px; font-weight:800; line-height:1.1; font-variant-numeric:tabular-nums; }
.tb-c-label{ font-size:12px; font-weight:700; }
.tb-c-sub{ font-size:10.5px; color:rgba(255,255,255,.72); }
/* 逾期格：红色加实，永远最先抓眼 */
.tb-cell.tb-danger{ background:rgba(220,38,38,.3); border-color:rgba(254,202,202,.5); }
.tb-cell.tb-danger:hover{ background:rgba(220,38,38,.44); }
.tb-cell.tb-danger .tb-c-ic{ color:#fecaca; }
.tb-cell.tb-warn .tb-c-ic{ color:#fde68a; }
.tb-cell.tb-info .tb-c-ic{ color:#bfdbfe; }
.tb-cell.tb-amber .tb-c-ic{ color:#fde68a; }
/* 选中态：白底 + 格色系深字 */
.tb-cell.on .tb-c-label{ color:#17233b; }
.tb-cell.on .tb-c-sub{ color:var(--ink-3); }
.tb-cell.tb-danger.on{ border-color:#fca5a5; }
.tb-cell.tb-danger.on .tb-c-num,
.tb-cell.tb-danger.on .tb-c-ic{ color:var(--danger); }
.tb-cell.tb-warn.on .tb-c-num,
.tb-cell.tb-warn.on .tb-c-ic{ color:#c2410c; }
.tb-cell.tb-info.on .tb-c-num,
.tb-cell.tb-info.on .tb-c-ic{ color:#1d4ed8; }
.tb-cell.tb-amber.on .tb-c-num,
.tb-cell.tb-amber.on .tb-c-ic{ color:#92400e; }

/* ---- 任务清单 ---- */
.tb-rows{ display:flex; flex-direction:column; gap:7px; margin-top:10px; }
.tb-row{
  display:flex; align-items:center; gap:10px;
  padding:9px 11px; border-radius:10px;
  background:#fff; cursor:pointer;
  transition:box-shadow .15s, transform .12s;
}
.tb-row:hover{ box-shadow:0 3px 12px rgba(15,39,64,.24); transform:translateY(-1px); }
.tb-row-main{ flex:1; min-width:0; }
.tb-row-name{
  display:flex; align-items:center; flex-wrap:wrap; gap:6px;
  font-size:13px; font-weight:700; color:#17233b; line-height:1.45;
}
.tb-row-tags{ display:flex; flex-wrap:wrap; gap:4px; margin-top:5px; }
.tb-tag{
  display:inline-flex; align-items:center; gap:3px;
  padding:2px 8px; border-radius:999px;
  font-size:10.5px; font-weight:600; line-height:1.55;
  white-space:nowrap;
}
.tb-tag i{ font-style:normal; font-weight:800; }
.tb-tag-overdue{ background:#fee2e2; color:#b91c1c; }
.tb-tag-today_due{ background:#ffedd5; color:#c2410c; }
.tb-tag-stage_due{ background:#dbeafe; color:#1d4ed8; }
.tb-tag-pending{ background:#fef3c7; color:#92400e; }
.tb-row-sub{
  margin-top:4px; font-size:11px; line-height:1.5; color:var(--ink-3);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.tb-row-acts{ flex:none; display:flex; gap:6px; }
.tb-row-acts .tb-act{ white-space:nowrap; }
/* 去确认：琥珀实钮（区别于记跟进的品牌蓝主钮） */
.btn.tb-act-warn{ background:var(--amber); border-color:var(--amber); color:#fff; font-weight:600; }
.btn.tb-act-warn:hover{ background:#b45309; border-color:#b45309; }
.tb-more{
  width:100%; margin-top:8px; padding:6px;
  background:transparent; border:none; cursor:pointer;
  color:rgba(255,255,255,.9); font-size:12px; font-weight:600;
}
.tb-more:hover{ color:#fff; text-decoration:underline; }

/* ---- 绿色空态 ---- */
.tb-empty-box{
  display:flex; align-items:center; gap:9px;
  margin-top:10px; padding:11px 13px; border-radius:10px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(134,239,172,.45);
  color:#d1fae5; font-size:12.5px; font-weight:600; line-height:1.5;
}
.tb-empty-ic{
  flex:none; width:24px; height:24px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:#16a34a; color:#fff;
}

/* ---- 看板桶名单空态（名单区内）：绿色对勾 ---- */
.tb-list-empty .e{ color:#16a34a !important; opacity:1 !important; }

/* ---- 逐条处理弹层 ---- */
.tb-walk-modal{ max-width:520px; }
.tb-w-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.tb-w-head h2{ margin:0; font-size:16px; }
.tb-w-head .sub{ margin-top:3px; font-size:12px; color:var(--ink-3); }
.tb-w-body{ margin-top:12px; }
.tb-w-progress{ display:flex; flex-direction:column; gap:6px; margin-bottom:14px; }
.tb-w-progress > i{
  display:block; height:6px; border-radius:999px;
  background:#eef2f7; overflow:hidden; position:relative;
}
.tb-w-progress > i::after{
  content:""; position:absolute; left:0; top:0; bottom:0; width:inherit;
  border-radius:999px;
  background:linear-gradient(90deg,#1f4e8c,#2f6bb8);
  transition:width .3s;
}
.tb-w-progress > span{ font-size:11.5px; font-weight:600; color:var(--ink-3); }
.tb-w-stu{ border:1px solid var(--line); border-radius:12px; padding:14px; background:#fafbfd; }
.tb-w-name{
  display:flex; align-items:center; flex-wrap:wrap; gap:7px;
  font-size:15px; font-weight:800; color:#17233b;
}
.tb-w-tags{ display:flex; flex-direction:column; gap:7px; margin:11px 0; }
.tb-w-tag{
  display:flex; flex-direction:column; gap:2px;
  padding:8px 11px; border-radius:8px;
  background:#fff; border:1px solid var(--line); border-left:3px solid var(--line-strong);
}
.tb-w-tag b{ font-size:12.5px; font-weight:700; }
.tb-w-tag span{ font-size:12.5px; line-height:1.6; color:var(--ink-2); }
.tb-w-tag em{ font-style:normal; font-size:11px; color:var(--ink-3); }
.tb-w-tag.tb-tag-overdue{ border-left-color:#dc2626; }
.tb-w-tag.tb-tag-overdue b{ color:#b91c1c; }
.tb-w-tag.tb-tag-today_due{ border-left-color:#ea580c; }
.tb-w-tag.tb-tag-today_due b{ color:#c2410c; }
.tb-w-tag.tb-tag-stage_due{ border-left-color:#2563eb; }
.tb-w-tag.tb-tag-stage_due b{ color:#1d4ed8; }
.tb-w-tag.tb-tag-pending{ border-left-color:#d97706; }
.tb-w-tag.tb-tag-pending b{ color:#92400e; }
.tb-w-acts{ display:flex; flex-wrap:wrap; gap:8px; }
.tb-w-acts .tb-act{ flex:1 1 auto; justify-content:center; }
.tb-w-foot{ margin-top:12px; text-align:center; }
.tb-done-modal{ max-width:380px; text-align:center; }
.tb-done-ic{ font-size:40px; line-height:1; margin-bottom:10px; }
.tb-done-modal .sub{ margin:10px 0 4px; font-size:13px; color:var(--ink-2); line-height:1.7; }

/* ---- P3-02 手机（≤640，覆盖 390）：四格 2×2、动作按钮换行不挤压 ---- */
@media (max-width:640px){
  .tb-card{ padding:12px 11px 10px; border-radius:12px; }
  .tb-head{ flex-wrap:wrap; }
  .tb-head-l{ flex:1 1 auto; }
  .tb-walk-btn{ margin-left:auto; padding:7px 12px; }
  .tb-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .tb-cell{ padding:8px 10px; }
  .tb-c-num{ font-size:19px; }
  .tb-row{ flex-wrap:wrap; align-items:flex-start; }
  .tb-row-acts{ width:100%; }
  .tb-row-acts .tb-act{ flex:1 1 auto; justify-content:center; }
  .tb-w-acts .tb-act{ min-width:calc(50% - 4px); }
}

/* ============================================================
   P3-03 · 筛选收纳 + 统一名单行（2026-09-28）
   ------------------------------------------------------------
   1) 来源/意向/标签/排序收进「更多筛选」弹层，状态标签仍平铺；
   2) 名单取消表格/卡片/紧凑三视图，统一为 .sr3-row 响应式行：
      PC（≥901px）三栏：主信息 / 核心画像格 / 星标+操作；
      手机（≤900px，覆盖 390）纵向堆叠；
   3) 左色条只保留语义两档：逾期=红、今天到期=橙；
   4) 无画像显灰色引导语；新留资 24h 未联系显首联提示。
   ============================================================ */

/* —— 搜索行：搜索框 + 更多筛选入口 —— */
.stu-searchrow{ display:flex; align-items:center; gap:8px; min-width:0; }
.stu-searchrow .stu-searchbox{ flex:1 1 auto; min-width:0; }
.stu-more-btn{ flex:none; display:inline-flex; align-items:center; gap:6px; position:relative; white-space:nowrap; }
.stu-more-btn svg{ flex:none; }
.stu-more-btn.on{ border-color:var(--accent); color:var(--accent); background:var(--accent-muted); }
.mf-badge{ display:none; min-width:17px; height:17px; line-height:17px; padding:0 5px; margin-left:1px;
  border-radius:9px; background:var(--accent); color:#fff; font-size:11px; font-weight:700; text-align:center; }
.stu-more-btn.on .mf-badge{ display:inline-block; }

/* ——「更多筛选」弹层 —— */
.mf-modal{ max-width:520px; }
.mf-sec{ padding:12px 0; border-bottom:1px dashed var(--line); }
.mf-sec:last-of-type{ border-bottom:none; }
.mf-label{ font-size:12px; font-weight:600; color:var(--ink-3); margin-bottom:9px; }
.mf-chips{ display:flex; flex-wrap:wrap; gap:8px; }
.mf-chip{ position:relative; display:inline-flex; align-items:center; gap:5px; border:1px solid var(--line);
  background:#fff; color:var(--ink-2); border-radius:999px; padding:6px 13px; font-size:13px;
  line-height:1.3; cursor:pointer; transition:border-color .15s, background .15s, color .15s; }
.mf-chip:hover{ border-color:var(--accent-2); color:var(--accent); }
.mf-chip.on{ background:var(--accent); border-color:var(--accent); color:#fff; }
.mf-cnt{ font-style:normal; font-size:11px; line-height:16px; padding:0 6px; border-radius:8px;
  background:rgba(23,35,59,.07); font-variant-numeric:tabular-nums; }
.mf-chip.on .mf-cnt{ background:rgba(255,255,255,.22); color:#fff; }
.mf-sel{ width:100%; max-width:280px; padding:8px 10px; }

/* —— 名单容器：覆盖旧卡片多列网格，恢复单列纵向列表 —— */
.stu-list.sr3-list{ display:block; grid-auto-rows:auto; gap:0; }
.sr3-list .sr3-row{ margin-bottom:10px; }

/* —— 统一名单行 · PC 三栏栅格 —— */
.sr3-list .sr3-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) 272px auto;
  column-gap:16px;
  align-items:stretch;
  padding:12px 15px;
}
.sr3-list.is-batch .sr3-row{ grid-template-columns:auto minmax(0,1fr) 272px auto; column-gap:12px; }
/* 勾选框非批量模式隐藏（保证栅格轨道稳定） */
.sr3-list .sr3-row .stu-cb{ display:none; }
.sr3-list.is-batch .sr3-row .stu-cb{ display:inline-flex; align-self:center; }
/* 左色条：默认透明（不再按漏斗状态上色），只标逾期/今天到期 */
.sr3-list .sr3-row::before{ background:transparent; }
.sr3-list .sr3-row.sr3-overdue::before{ background:var(--danger); }
.sr3-list .sr3-row.sr3-today::before{ background:var(--amber); }

/* 主信息栏 */
.sr3-main{ min-width:0; display:flex; flex-direction:column; justify-content:center; gap:7px; }
.sr3-l1{ display:flex; align-items:center; gap:9px; min-width:0; }
.sr3-ava{ flex:none; width:38px; height:38px; font-size:16px; }
.sr3-id{ flex:1 1 auto; min-width:0; }
.sr3-name{ display:flex; align-items:center; flex-wrap:wrap; gap:4px 7px;
  font-size:14.5px; font-weight:700; color:var(--ink); line-height:1.45; }
.sr3-intent{ display:inline-flex; align-items:center; }
/* 日程药丸 / 新留资首联提示 */
.sr3-fu, .sr3-newlead{ flex:none; display:inline-flex; align-items:center; gap:5px; white-space:nowrap;
  font-size:12px; line-height:1.3; padding:4px 10px; border-radius:999px;
  background:#f1f4f9; color:var(--ink-2); }
.sr3-fu b{ font-weight:700; color:var(--ink); font-variant-numeric:tabular-nums; }
.sr3-fu em{ font-style:normal; color:var(--ink-3); }
.sr3-fu.danger{ background:var(--danger-muted); color:#b91c1c; }
.sr3-fu.danger b, .sr3-fu.danger em{ color:#b91c1c; }
.sr3-fu.today{ background:#fef3c7; color:#b45309; }
.sr3-fu.today b, .sr3-fu.today em{ color:#b45309; }
.sr3-newlead{ background:#fff7ed; color:#c2410c; border:1px solid #fed7aa; font-weight:600; }
/* 副信息行 */
.sr3-subline{ display:flex; flex-wrap:wrap; align-items:center; gap:4px 7px; font-size:11.5px; color:var(--ink-3); }
.sr3-srcs{ display:inline-flex; flex-wrap:wrap; align-items:center; gap:3px 5px; }
.sr3-created{ display:inline-flex; align-items:center; gap:3px; color:var(--ink-3); font-variant-numeric:tabular-nums; }
.sr3-wait{ display:inline-flex; align-items:center; gap:3px; border-radius:6px; padding:1px 7px; font-weight:600; }
.sr3-wait.warn{ background:#fef3c7; color:#b45309; }
.sr3-wait.danger{ background:var(--danger-muted); color:#dc2626; }
/* 最近沟通 + 下一步 */
.sr3-l3{ display:flex; flex-wrap:wrap; align-items:center; gap:3px 18px; min-width:0; }
.sr3-talk, .sr3-ns{ display:inline-flex; align-items:center; gap:5px; min-width:0; font-size:12.5px; color:var(--ink-2); }
.sr3-talk{ flex:1 1 240px; }
.sr3-ns{ flex:0 1 auto; max-width:320px; color:var(--accent); font-size:12px; }
.sr3-tic, .sr3-talk .sr3-tic svg, .sr3-ns svg, .sr3-talk.empty svg{ flex:none; }
.sr3-tc, .sr3-ns span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; }
.sr3-tt{ flex:none; color:var(--ink-3); font-size:11px; font-variant-numeric:tabular-nums; }
.sr3-talk.empty{ flex:1 1 auto; color:var(--ink-3); font-size:12px; }

/* 核心画像格 */
.sr3-prof{ display:grid; grid-template-columns:1fr 1fr; gap:7px 12px; align-content:center;
  background:#f8fafc; border:1px solid var(--line); border-radius:10px; padding:10px 12px; min-width:0; }
.sr3-pcell{ display:flex; align-items:flex-start; gap:6px; min-width:0; font-size:12px; line-height:1.4; padding-top:1px; }
.pc-ic{ flex:none; display:inline-flex; color:var(--accent); margin-top:1px; }
.sr3-pcell em{ flex:none; font-style:normal; color:var(--ink-3); }
.sr3-pcell b{ min-width:0; font-weight:600; color:var(--ink); white-space:normal; word-break:break-word; }
.sr3-prof.sr3-empty{ display:flex; align-items:center; gap:7px; color:var(--ink-3); font-size:12px; line-height:1.6; }
.sr3-prof.sr3-empty svg{ flex:none; opacity:.7; }
.sr3-prof.sr3-empty span{ min-width:0; }

/* 右侧操作栏 */
.sr3-side{ display:flex; flex-direction:column; align-items:flex-end; justify-content:space-between;
  gap:9px; min-width:128px; padding-left:4px; }
.sr3-quick{ display:inline-flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:6px; }

/* —— 平板/手机（≤900）：三栏转纵向堆叠 —— */
@media (max-width:900px){
  .sr3-list .sr3-row,
  .sr3-list.is-batch .sr3-row{
    grid-template-columns:minmax(0,1fr);
    row-gap:10px;
    height:auto;
    padding:12px 13px;
  }
  .sr3-side{ flex-direction:row; align-items:center; justify-content:space-between; min-width:0;
    padding-left:0; border-top:1px solid var(--line); padding-top:10px; }
  /* P4-03：操作簇占剩余宽度并允许内部换行，避免星标行撑破卡片右缘/出屏 */
  .sr3-side .sr3-quick{ flex:1 1 auto; min-width:0; }
  .sr3-quick{ justify-content:flex-end; }
  /* 批量勾选：移动端固定在卡片右上角，避免挤占姓名行 */
  .sr3-list.is-batch .sr3-row .stu-cb{ position:absolute; top:12px; right:12px; z-index:2; }
  .sr3-list.is-batch .sr3-row .sr3-l1{ padding-right:34px; }
}
@media (max-width:640px){
  .stu-searchrow{ flex-wrap:nowrap; gap:7px; }
  .stu-more-btn{ padding-left:11px; padding-right:11px; }
  .sr3-list .sr3-row{ padding:11px 12px; border-radius:12px; }
  .sr3-ava{ width:34px; height:34px; font-size:15px; }
  .sr3-name{ font-size:14px; }
  .sr3-l1{ flex-wrap:wrap; row-gap:6px; }
  .sr3-fu, .sr3-newlead{ margin-left:43px; }   /* 与头像后的文字对齐 */
  .sr3-l3{ gap:4px 0; flex-direction:column; align-items:stretch; }
  .sr3-talk, .sr3-ns, .sr3-talk.empty{ flex:1 1 auto; max-width:100%; }
  .sr3-prof{ grid-template-columns:1fr 1fr; gap:7px 10px; padding:9px 10px; }
  .sr3-quick .stu-fq{ flex:1 1 auto; justify-content:center; }
}

/* ============================================================
   四期 P4-01：统一跟进轻弹层（五入口同源）
   入口：名单行快捷 / 待办卡去跟进 / 详情头部 / 详情右栏 / 手机底栏
   · 手机、平板：沿用全局底部上滑；PC（≥1024px）：屏幕居中 + 全圆角 + 淡入
   · 要点框语音：麦克风按钮、录音状态条、上滑取消、一次性手势教学
   ============================================================ */
/* 提层：盖住详情页手机底栏 .st-mobile-bar(z-index:60)，避免底部按钮被遮 */
.fu-overlay{ z-index:70; }
/* 要点 label 行：左标题，右麦克风入口 */
.fu-label{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:6px; }
.fu-label label{ margin-bottom:0; }
.fu-mic{
  position:relative; flex:none; display:inline-flex; align-items:center; gap:4px;
  border:none; cursor:pointer; -webkit-tap-highlight-color:transparent;
  font-size:11.5px; font-weight:600; color:var(--accent);
  background:var(--accent-muted); border-radius:999px; padding:4px 11px 4px 9px;
  transition:background .15s, color .15s, transform .1s;
  user-select:none; touch-action:none;
}
.fu-mic:active{ transform:scale(.95); }
.fu-mic.busy{ color:#fff; background:var(--accent); }
.fu-mic.recording{ color:#fff; background:#e5484d; animation:fuMicPulse 1.4s ease-in-out infinite; }
.fu-mic:disabled{ opacity:.75; cursor:default; }
@keyframes fuMicPulse{
  0%,100%{ box-shadow:0 0 0 0 rgba(229,72,77,.45); }
  50%{ box-shadow:0 0 0 8px rgba(229,72,77,0); }
}
/* 录音状态条 */
.fu-vb{
  display:flex; align-items:center; gap:8px; margin-top:8px;
  background:#fef2f2; color:#c81e25; border:1px solid #f3c6c8;
  border-radius:10px; padding:8px 12px; font-size:12.5px; font-weight:600;
}
.fu-vb .fu-vb-dot{ width:9px; height:9px; border-radius:50%; background:#e5484d; flex:none; animation:fuDotBlink 1s ease-in-out infinite; }
@keyframes fuDotBlink{ 0%,100%{ opacity:1; transform:scale(1); } 50%{ opacity:.35; transform:scale(.72); } }
.fu-vb .fu-vb-text{ flex:1; min-width:0; }
.fu-vb .fu-vb-time{ font-variant-numeric:tabular-nums; font-size:12px; opacity:.85; }
/* 上滑取消：整条转灰 */
.fu-vb.cancel{ background:#f1f2f4; color:var(--ink-3); border-color:var(--line); }
.fu-vb.cancel .fu-vb-dot{ background:var(--ink-3); animation:none; }
/* 首次按住说话手势教学气泡（挂在麦克风按钮上） */
.fu-mic-tip{
  position:absolute; right:0; top:calc(100% + 9px); z-index:6; white-space:nowrap;
  background:rgba(20,28,40,.93); color:#fff; font-size:11.5px; line-height:1.6; font-weight:500;
  padding:7px 10px; border-radius:8px; pointer-events:none;
  animation:fuTipIn .2s ease;
}
.fu-mic-tip::before{
  content:""; position:absolute; right:14px; top:-5px; width:10px; height:10px;
  background:rgba(20,28,40,.93); transform:rotate(45deg);
}
@keyframes fuTipIn{ from{ opacity:0; transform:translateY(-4px); } to{ opacity:1; transform:none; } }
/* PC（≥1024px）：底部上滑改为屏幕居中轻弹层 */
@media (min-width:1024px){
  .fu-modal{
    margin-top:auto; margin-bottom:auto;
    border-radius:20px;
    padding-top:20px;
    animation:fuPopIn .22s ease;
  }
  .fu-modal .grab{ display:none; }
  @keyframes fuPopIn{
    from{ transform:scale(.97) translateY(8px); opacity:0; }
    to{ transform:none; opacity:1; }
  }
}

/* ============================================================
   四期 P4-02：阶段更新纵向路径图（PRD 9.3）
   主路径 8 节点纵向时间线：已完成打勾 / 当前高亮 / 未来序号+建议动作；
   「流失」作为未成交支线在分隔线下方独立呈现。
   说明：旧 .st-flow/.flow-opt 仍被意向编辑复用，保留不动。
   ============================================================ */
/* 通用提层：弹层需盖住详情手机底栏 .st-mobile-bar(z-index:60) */
.ov-top{ z-index:70; }
.sf-spine{ display:flex; flex-direction:column; margin:12px 0 2px; }
.sf-item{
  width:100%; display:flex; align-items:flex-start; gap:11px;
  padding:7px 10px; margin:0;
  border:1px solid transparent; border-radius:12px;
  background:none; cursor:pointer; text-align:left;
  -webkit-tap-highlight-color:transparent;
  transition:background .15s, border-color .15s;
}
/* 左侧时间线：圆点 + 与下一节点的连接线（最后一个主路径节点不画线） */
.sf-rail{ position:relative; width:28px; flex:none; display:flex; justify-content:center; }
.sf-rail::after{
  content:""; position:absolute; left:50%; top:28px; bottom:-7px;
  width:2px; transform:translateX(-50%); background:var(--line);
}
.sf-spine .sf-item:last-child .sf-rail::after{ display:none; }
.sf-item.sf-done .sf-rail::after{ background:var(--accent); }
.sf-node{
  position:relative; z-index:1; flex:none;
  width:28px; height:28px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:12px; font-weight:700;
  border:1.5px solid var(--line); color:var(--ink-3);
  background:var(--bg-card);
}
.sf-body{ flex:1; min-width:0; padding-top:2px; }
.sf-name{ display:flex; align-items:center; gap:8px; font-size:13.5px; font-weight:700; color:var(--ink-1); }
.sf-act{ display:block; font-size:12px; font-weight:400; color:var(--ink-3); line-height:1.5; margin-top:1px; }
.sf-go{ flex:none; color:var(--ink-3); opacity:.55; padding-top:6px; }
/* 已完成：品牌色实心勾 */
.sf-done .sf-node{ background:var(--accent); border-color:var(--accent); color:#fff; }
.sf-done:hover{ background:var(--bg); }
/* 当前阶段：高亮卡片 + 节点外圈 */
.sf-current{ background:var(--accent-muted); border-color:var(--accent); cursor:default; }
.sf-current .sf-node{ background:var(--accent); border-color:var(--accent); color:#fff; box-shadow:0 0 0 4px var(--accent-muted); }
.sf-cur-tag{
  font-size:10.5px; font-weight:700; color:#fff; background:var(--accent);
  border-radius:999px; padding:1px 8px; line-height:1.5;
}
.sf-cur-lost{ background:#dc2626; }
/* 未来节点：悬停可点提示 */
.sf-future:hover{ background:var(--bg); }
.sf-future:hover .sf-node{ border-color:var(--accent); color:var(--accent); }
.sf-future:hover .sf-go{ opacity:1; color:var(--accent); }
.sf-item:disabled{ opacity:1; }   /* 当前节点不要灰掉，靠高亮表达 */
/* 无申请档案提醒（流转到申请递交中前） */
.sf-warn{
  display:flex; align-items:flex-start; gap:4px;
  font-size:11.5px; font-weight:500; color:#b45309;
  margin-top:3px; line-height:1.5;
}
/* 未成交支线 */
.sf-or{ display:flex; align-items:center; gap:10px; margin:8px 0 4px 39px; }
.sf-or::before, .sf-or::after{ content:""; flex:1; height:1px; background:var(--line); }
.sf-or span{ font-size:11px; color:var(--ink-3); white-space:nowrap; }
.sf-lost-exit{ border:1px dashed #f1b4b7; border-radius:12px; }
.sf-lost-exit .sf-node{ border-color:#f1b4b7; color:#dc2626; background:#fff7f7; }
.sf-lost-exit:hover{ background:#fff5f5; }
.sf-lost-exit:hover .sf-go{ opacity:1; color:#dc2626; }
.sf-lost-current{ background:#fef2f2; border:1px solid #f1b4b7; border-radius:12px; cursor:default; }
.sf-lost-current .sf-node{ background:#dc2626; border-color:#dc2626; color:#fff; }
/* 弹层布局：标题/提示/取消按钮固定，仅节点列表在超高时内部滚动，保证取消按钮始终可见可点 */
.modal.sf-modal{ display:flex; flex-direction:column; }
.modal.sf-modal > *{ flex:none; }
.modal.sf-modal .sf-path{ flex:1 1 auto; min-height:0; overflow-y:auto; -webkit-overflow-scrolling:touch; }
@media (max-width:640px){
  .sf-item{ padding:8px 8px; }
  .sf-act{ font-size:11.5px; }
}

/* ============================================================
   四期 P4-03：手机端全量适配走查修复（360 / 390 / 430 三宽度实测）
   ============================================================ */
@media (max-width:640px){
  /* 1) 名单工具区：操作行与状态标签条各占整行——原布局 11 个状态标签被挤成约 110px 盲滑条 */
  .stu-filter .stu-acts{ flex:1 1 100%; margin-bottom:0; }
  .stu-filter #stuTabs{ flex:1 1 100%; }

  /* 2) iPhone 底部安全区：全局底栏 / 列表与详情内容底部留白（弹层按钮留白见 .modal） */
  .nav{ height:calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom:env(safe-area-inset-bottom); }
  #screen{ padding-bottom:calc(90px + env(safe-area-inset-bottom)); }
  #screen .st-tabs + .st-pane{ padding-bottom:calc(72px + env(safe-area-inset-bottom)); }

  /* 3) 详情固定快捷栏在屏时隐藏被其盖住的全局通话凸出圆钮，避免半截露出且点不中 */
  body.sd-bar-on .nav .n-call-tab{ visibility:hidden; }

  /* 4) 软键盘弹起（--sheet-kb 由 app.js 的 visualViewport 监听写入）：
        底部上滑弹层整体抬到键盘上方；弹层超高时内部滚动，保存/取消始终可达 */
  .overlay{ padding-bottom:var(--sheet-kb,0px); }
  .modal{ max-height:calc(88vh - var(--sheet-kb,0px));
    padding-bottom:calc(22px + env(safe-area-inset-bottom)); }
  /* 键盘在屏、弹层变矮时：操作按钮行吸在弹层可视区底部，上方表单在弹层内滚动，
     保存/取消始终可见可点（跟进弹层字段多，键盘弹起后原本按钮被滚出可视区） */
  html.kb-lift .modal .modal-actions{
    position:sticky; bottom:0; z-index:1;
    background:var(--bg-card); margin:10px -18px 0; padding:10px 18px 2px;
    box-shadow:0 -10px 14px -12px rgba(20,35,60,.35);
  }

  /* 5) 详情吸顶锚点 chips 加大触摸高度（原约 31px，低于推荐 44/实测下限 32） */
  .stu-v2 .sd-anchor{ min-height:34px; display:inline-flex; align-items:center; }
}

