/* ============================================================
   外呼业务内部管理系统 — 全局样式（浅色专业风）
   ============================================================ */
:root {
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-soft: #eff6ff;
  --bg: #f4f6fb;
  --panel: #ffffff;
  --line: #e6eaf2;
  --line-strong: #d3dae6;
  --text: #1f2937;
  --text-sub: #64748b;
  --text-muted: #94a3b8;
  --green: #16a34a;
  --green-soft: #ecfdf5;
  --red: #dc2626;
  --red-soft: #fef2f2;
  --orange: #ea580c;
  --orange-soft: #fff7ed;
  --yellow: #ca8a04;
  --yellow-soft: #fefce8;
  --purple: #7c3aed;
  --purple-soft: #f5f3ff;
  --cyan: #0891b2;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 14px rgba(16, 24, 40, .05);
  --shadow-lg: 0 12px 40px rgba(16, 24, 40, .14);
  --sidebar-w: 218px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: 14px; color: inherit; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
::-webkit-scrollbar-track { background: transparent; }

.boot-loading, .page-loading { padding: 60px; text-align: center; color: var(--text-muted); }

/* ---------------- 布局 ---------------- */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w); flex: 0 0 var(--sidebar-w);
  background: #fff; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.sidebar-brand {
  padding: 18px 18px 14px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}
.sidebar-brand .logo {
  width: 32px; height: 32px; border-radius: 8px; flex: 0 0 32px;
  background: linear-gradient(135deg, var(--brand), #60a5fa);
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 15px;
}
.sidebar-brand .txt { min-width: 0; }
.sidebar-brand .t1 { font-weight: 700; font-size: 14px; line-height: 1.3; }
.sidebar-brand .t2 { font-size: 11px; color: var(--text-muted); margin-top: 1px; }

.nav { flex: 1; overflow-y: auto; padding: 10px 8px; }
.nav-group-title {
  font-size: 11px; color: var(--text-muted); padding: 12px 12px 6px; letter-spacing: .5px;
}
.nav-item {
  display: flex; align-items: center; gap: 9px; padding: 9px 12px; margin: 2px 0;
  border-radius: var(--radius-sm); cursor: pointer; color: var(--text-sub);
  font-size: 13.5px; border: none; background: none; width: 100%; text-align: left;
  transition: background .12s, color .12s;
}
.nav-item:hover { background: #f1f5f9; color: var(--text); }
.nav-item.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.nav-item .ico { width: 16px; height: 16px; flex: 0 0 16px; }
.nav-item .dot {
  margin-left: auto; background: var(--red); color: #fff; font-size: 10px;
  padding: 1px 5px; border-radius: 8px; font-weight: 700; line-height: 1.5;
}

.sidebar-foot { border-top: 1px solid var(--line); padding: 10px; }
.user-chip { display: flex; align-items: center; gap: 9px; padding: 6px; border-radius: 8px; }
.user-chip .avatar {
  width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex: 0 0 30px;
}
.user-chip .info { min-width: 0; flex: 1; }
.user-chip .n { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip .r { font-size: 11px; color: var(--text-muted); }
.icon-btn {
  border: none; background: none; cursor: pointer; padding: 5px; border-radius: 6px; color: var(--text-muted);
  display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn:hover { background: #f1f5f9; color: var(--red); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 56px; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px; padding: 0 22px; position: sticky; top: 0; z-index: 20;
}
.topbar h1 { font-size: 16px; margin: 0; font-weight: 700; }
.topbar .sub { font-size: 12px; color: var(--text-muted); }
.topbar .spacer { flex: 1; }
.content { padding: 20px 22px 40px; max-width: 1560px; width: 100%; }

/* ---------------- 卡片 ---------------- */
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); margin-bottom: 16px;
}
.card-head {
  padding: 13px 18px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.card-head h3 { margin: 0; font-size: 14.5px; font-weight: 700; }
.card-head .spacer { flex: 1; }
.card-head .hint { font-size: 12px; color: var(--text-muted); }
.card-body { padding: 18px; }
.card-body.tight { padding: 12px 18px; }
.card-body.flush { padding: 0; }

.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.g-2-1 { grid-template-columns: 2fr 1fr; }
.g-1-2 { grid-template-columns: 1fr 2fr; }
@media (max-width: 1180px) { .g4, .g5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-2-1, .g-1-2 { grid-template-columns: 1fr; } }
@media (max-width: 820px) { .g2, .g3, .g4, .g5 { grid-template-columns: 1fr; } }

/* ---------------- 统计卡 ---------------- */
.stat {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px 16px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.stat::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--brand); opacity: .85; }
.stat.green::after { background: var(--green); }
.stat.orange::after { background: var(--orange); }
.stat.red::after { background: var(--red); }
.stat.purple::after { background: var(--purple); }
.stat.cyan::after { background: var(--cyan); }
.stat .lab { font-size: 12.5px; color: var(--text-sub); display: flex; align-items: center; gap: 5px; }
.stat .val { font-size: 25px; font-weight: 700; margin-top: 7px; letter-spacing: -.5px; line-height: 1.15; }
.stat .val small { font-size: 13px; font-weight: 500; color: var(--text-muted); margin-left: 3px; }
.stat .foot { font-size: 11.5px; color: var(--text-muted); margin-top: 6px; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  background: #fff; color: var(--text); cursor: pointer; font-size: 13px; font-weight: 500;
  transition: all .12s; white-space: nowrap;
}
.btn:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-danger { border-color: #fca5a5; color: var(--red); }
.btn-danger:hover { background: var(--red-soft); border-color: var(--red); color: var(--red); }
.btn-sm { padding: 4px 9px; font-size: 12px; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--text-sub); }
.btn-ghost:hover { background: #f1f5f9; color: var(--text); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-link { border: none; background: none; color: var(--brand); cursor: pointer; padding: 0 4px; font-size: 12.5px; }
.btn-link:hover { text-decoration: underline; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------------- 表格 ---------------- */
.table-wrap { overflow-x: auto; }
table.tb { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tb th {
  text-align: left; padding: 10px 12px; background: #f8fafc; color: var(--text-sub);
  font-weight: 600; font-size: 12.5px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.tb td { padding: 10px 12px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
table.tb tbody tr:hover { background: #fafbfe; }
table.tb tbody tr:last-child td { border-bottom: none; }
table.tb .num { font-variant-numeric: tabular-nums; font-weight: 600; }
table.tb .muted { color: var(--text-muted); font-size: 12px; }
table.tb td.actions { white-space: nowrap; }
.empty { padding: 46px 20px; text-align: center; color: var(--text-muted); font-size: 13px; }
.empty .big { font-size: 30px; margin-bottom: 8px; opacity: .45; }

/* ---------------- 标签 ---------------- */
.tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 20px;
  font-size: 11.5px; font-weight: 600; line-height: 1.7; white-space: nowrap;
}
.tag-gray { background: #f1f5f9; color: #64748b; }
.tag-blue { background: var(--brand-soft); color: var(--brand); }
.tag-green { background: var(--green-soft); color: var(--green); }
.tag-red { background: var(--red-soft); color: var(--red); }
.tag-orange { background: var(--orange-soft); color: var(--orange); }
.tag-yellow { background: var(--yellow-soft); color: var(--yellow); }
.tag-purple { background: var(--purple-soft); color: var(--purple); }
.dot-mark { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }

/* ---------------- 表单 ---------------- */
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 12.5px; color: var(--text-sub); font-weight: 600; }
.field > label .req { color: var(--red); margin-left: 2px; }
.field .tip { font-size: 11.5px; color: var(--text-muted); }
.input, .select, .textarea {
  width: 100%; padding: 8px 11px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: #fff; outline: none; transition: border-color .12s, box-shadow .12s;
  /* 显式声明文字色：全局 button/input 继承 color，深色容器（如蓝色 hero）里会变成白底白字 */
  color: var(--text);
}
.input::placeholder, .textarea::placeholder { color: var(--text-sub); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, .1); }
.textarea { resize: vertical; min-height: 74px; line-height: 1.6; }
.input[readonly] { background: #f8fafc; color: var(--text-sub); }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.inline-form .field { min-width: 130px; }
.checkline { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-sub); cursor: pointer; }
.checkline input { width: 15px; height: 15px; accent-color: var(--brand); }

/* ---------------- 弹窗 ---------------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 200;
  display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px; overflow-y: auto;
  animation: fadeIn .14s ease;
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes slideUp { from { transform: translateY(10px); opacity: 0 } to { transform: none; opacity: 1 } }
.modal {
  background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); width: 100%; max-width: 620px;
  animation: slideUp .18s ease; margin-bottom: 40px;
}
.modal.wide { max-width: 860px; }
.modal.narrow { max-width: 440px; }
.modal-head {
  padding: 15px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px;
}
.modal-head h3 { margin: 0; font-size: 15px; font-weight: 700; }
.modal-head .spacer { flex: 1; }
.modal-body { padding: 20px; max-height: 66vh; overflow-y: auto; }
.modal-foot { padding: 13px 20px; border-top: 1px solid var(--line); display: flex; gap: 9px; justify-content: flex-end; }

/* ---------------- Toast ---------------- */
.toast-root { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 400; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  padding: 10px 18px; border-radius: 8px; background: #1f2937; color: #fff; font-size: 13px;
  box-shadow: var(--shadow-lg); animation: slideUp .18s ease; max-width: 520px;
}
.toast.success { background: #15803d; }
.toast.error { background: #b91c1c; }
.toast.warn { background: #b45309; }

/* ---------------- 进度条 ---------------- */
.bar { height: 7px; border-radius: 4px; background: #eef2f7; overflow: hidden; min-width: 54px; }
.bar > i { display: block; height: 100%; border-radius: 4px; background: var(--brand); transition: width .3s; }
.bar.green > i { background: var(--green); }
.bar.orange > i { background: var(--orange); }
.bar.red > i { background: var(--red); }
.bar-row { display: flex; align-items: center; gap: 8px; }
.bar-row .pct { font-size: 12px; font-weight: 600; min-width: 34px; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------------- 图表 ---------------- */
.chart-svg { width: 100%; display: block; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-sub); padding: 0 4px 6px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.rank-list { display: flex; flex-direction: column; gap: 2px; }
.rank-item { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 8px; }
.rank-item:hover { background: #fafbfe; }
.rank-item .no {
  width: 22px; height: 22px; border-radius: 6px; background: #f1f5f9; color: var(--text-sub);
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex: 0 0 22px;
}
.rank-item.top1 .no { background: linear-gradient(135deg, #f59e0b, #fbbf24); color: #fff; }
.rank-item.top2 .no { background: linear-gradient(135deg, #94a3b8, #cbd5e1); color: #fff; }
.rank-item.top3 .no { background: linear-gradient(135deg, #b45309, #d97706); color: #fff; }
.rank-item .nm { font-size: 13px; font-weight: 600; min-width: 56px; }
.rank-item .gr { font-size: 11px; color: var(--text-muted); }
.rank-item .val { margin-left: auto; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------------- 其它 ---------------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding: 0 18px; flex-wrap: wrap; }
.tab {
  padding: 10px 14px; font-size: 13.5px; color: var(--text-sub); cursor: pointer; border: none; background: none;
  border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 700; }

.notice {
  padding: 11px 14px; border-radius: 8px; font-size: 12.5px; line-height: 1.7;
  background: var(--brand-soft); color: #1e40af; border: 1px solid #dbeafe;
}
.notice.warn { background: var(--yellow-soft); color: #854d0e; border-color: #fde68a; }
.notice.danger { background: var(--red-soft); color: #991b1b; border-color: #fecaca; }
.notice.ok { background: var(--green-soft); color: #166534; border-color: #bbf7d0; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 9px 16px; font-size: 13px; align-items: baseline; }
.kv dt { color: var(--text-muted); font-size: 12.5px; white-space: nowrap; }
.kv dd { margin: 0; }

.timeline { position: relative; padding-left: 20px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: var(--line-strong); }
.tl-item { position: relative; padding: 0 0 16px 0; }
.tl-item::before {
  content: ""; position: absolute; left: -18px; top: 5px; width: 9px; height: 9px; border-radius: 50%;
  background: #fff; border: 2px solid var(--brand);
}
.tl-item.ok::before { border-color: var(--green); }
.tl-item.warn::before { border-color: var(--orange); }
.tl-item.bad::before { border-color: var(--red); }
.tl-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tl-head .who { font-weight: 600; font-size: 13px; }
.tl-head .when { font-size: 11.5px; color: var(--text-muted); }
.tl-body { font-size: 13px; color: var(--text-sub); margin-top: 5px; line-height: 1.65; white-space: pre-wrap; }

/* 登录页 */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: radial-gradient(1200px 600px at 15% -10%, #dbeafe 0%, transparent 55%),
              radial-gradient(900px 500px at 100% 110%, #e0e7ff 0%, transparent 50%), var(--bg);
}
.login-card {
  width: 100%; max-width: 920px; display: grid; grid-template-columns: 1.05fr .95fr;
  background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.login-left {
  padding: 44px 40px; background: linear-gradient(150deg, #1d4ed8 0%, #2563eb 45%, #3b82f6 100%); color: #fff;
  display: flex; flex-direction: column;
}
.login-left h1 { font-size: 25px; margin: 0 0 10px; line-height: 1.35; }
.login-left p { color: rgba(255, 255, 255, .82); font-size: 13.5px; line-height: 1.9; margin: 0; }
.login-left .feat { margin-top: auto; display: flex; flex-direction: column; gap: 11px; padding-top: 26px; }
.login-left .feat div { display: flex; align-items: center; gap: 9px; font-size: 13px; color: rgba(255, 255, 255, .92); }
.login-left .feat .n {
  width: 20px; height: 20px; border-radius: 50%; background: rgba(255, 255, 255, .2);
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex: 0 0 20px;
}
.login-right { padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; }
.login-right h2 { margin: 0 0 6px; font-size: 19px; }
.login-right .sub { color: var(--text-muted); font-size: 13px; margin-bottom: 24px; }
.login-right .field { margin-bottom: 15px; }
.login-right .btn { width: 100%; padding: 10px; font-size: 14px; margin-top: 6px; }
.quick-accounts { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line-strong); }
.quick-accounts .t { font-size: 12px; color: var(--text-muted); margin-bottom: 9px; }
.quick-accounts .row { display: flex; gap: 7px; flex-wrap: wrap; }
.quick-accounts button {
  padding: 5px 11px; border: 1px solid var(--line-strong); background: #fff; border-radius: 20px;
  font-size: 12px; cursor: pointer; color: var(--text-sub);
}
.quick-accounts button:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
@media (max-width: 780px) { .login-card { grid-template-columns: 1fr; } .login-left { display: none; } }

@media print { .sidebar, .topbar, .btn { display: none !important; } }

/* ============================================================
   智能知识库 / 智能助手
   ============================================================ */

/* 检索命中高亮 */
mark.kb-hl {
  background: #fef08a; color: #713f12; padding: 0 2px; border-radius: 3px;
  font-weight: 600; box-shadow: inset 0 -1px 0 #facc15;
}

/* 知识正文排版 */
.kb-body { font-size: 13.5px; line-height: 1.85; color: var(--text); }
.kb-h {
  margin: 16px 0 8px; font-size: 14px; font-weight: 700; color: #0f172a;
  padding-left: 9px; border-left: 3px solid var(--brand); line-height: 1.5;
}
.kb-h:first-child { margin-top: 0; }
.kb-p { margin: 0 0 9px; }
.kb-ul { margin: 0 0 10px; padding-left: 20px; }
.kb-ul li { margin-bottom: 5px; }

/* ---------------- 坐席端：智能助手 ---------------- */
.ak-hero {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 48%, #3b82f6 100%);
  border: none; color: #fff;
}
.ak-hero-inner { padding: 24px 26px 20px; }
.ak-hero h2 { margin: 0 0 5px; font-size: 19px; font-weight: 700; }
.ak-hero p { margin: 0 0 16px; font-size: 13px; color: rgba(255, 255, 255, .82); }
.ak-searchbar { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.ak-searchbar .input {
  flex: 1; min-width: 240px; height: 42px; font-size: 14px; border: none;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .12);
}
.ak-searchbar .btn { height: 42px; padding: 0 22px; background: #fff; color: var(--brand-dark); border-color: #fff; font-weight: 700; }
.ak-searchbar .btn:hover { background: #eff6ff; color: var(--brand-dark); }
.ak-modes { display: flex; background: rgba(255, 255, 255, .18); border-radius: 8px; padding: 3px; gap: 2px; }
.ak-mode {
  border: none; background: transparent; color: rgba(255, 255, 255, .85);
  padding: 7px 14px; border-radius: 6px; font-size: 13px; cursor: pointer; white-space: nowrap;
}
.ak-mode.active { background: #fff; color: var(--brand-dark); font-weight: 700; }
.ak-chips { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 14px; }
.ak-chip {
  border: 1px solid rgba(255, 255, 255, .38); background: rgba(255, 255, 255, .1);
  color: #fff; border-radius: 20px; padding: 4px 12px; font-size: 12px; cursor: pointer;
}
.ak-chip:hover { background: #fff; color: var(--brand-dark); border-color: #fff; }

/* 答案卡 */
.ak-answer {
  font-size: 14.5px; line-height: 1.95; color: #0f172a; white-space: pre-wrap;
  background: var(--brand-soft); border-left: 3px solid var(--brand);
  border-radius: 8px; padding: 14px 16px;
}

/* 命中条目 */
.ak-hit { padding: 14px 18px; border-bottom: 1px solid #f1f5f9; }
.ak-hit:last-child { border-bottom: none; }
.ak-hit:hover { background: #fafbfe; }
.ak-hit-head { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 13.5px; }
.ak-hit-head .spacer { flex: 1; min-width: 8px; }
.ak-hit-heading {
  font-size: 12px; color: var(--brand); font-weight: 600; margin: 7px 0 4px;
  padding-left: 8px; border-left: 2px solid #bfdbfe;
}
.ak-snippet { font-size: 13px; line-height: 1.8; color: var(--text-sub); margin-top: 5px; }

/* 侧栏条目 */
.ak-side-item { padding: 10px 16px; border-bottom: 1px solid #f1f5f9; cursor: pointer; }
.ak-side-item:last-child { border-bottom: none; }
.ak-side-item:hover { background: #f5f8ff; }
.ak-side-item .t { font-size: 13px; font-weight: 600; line-height: 1.5; }
.ak-side-item .m { font-size: 11.5px; color: var(--text-muted); margin-top: 3px; }

/* 标签云 */
.ak-tag {
  display: inline-flex; align-items: center; gap: 5px; margin: 0 5px 5px 0;
  padding: 3px 10px; border-radius: 20px; border: 1px solid var(--line-strong);
  background: #fff; color: var(--text-sub); font-size: 12px; cursor: pointer;
}
.ak-tag:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.ak-tag i { font-style: normal; font-size: 10.5px; color: var(--text-muted); }


/* ---------------- 公开注册（外呼人员申请） ---------------- */
.reg-entry { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line);
  font-size: 13px; color: var(--text-sub); text-align: center; }
.reg-entry-tip { margin-top: 6px; font-size: 11.5px; color: var(--text-muted); line-height: 1.7; }
.reg-entry .btn-link { font-size: 13px; font-weight: 600; }

.reg-wrap { max-width: 1080px; margin: 0 auto; padding: 26px 20px 40px; }
.reg-head {
  display: flex; align-items: flex-start; gap: 16px; margin-bottom: 18px;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 55%, #3b82f6 100%);
  color: #fff; border-radius: var(--radius); padding: 22px 24px;
  box-shadow: 0 6px 22px rgba(37, 99, 235, .18);
}
.reg-head h1 { margin: 0 0 6px; font-size: 20px; font-weight: 700; }
.reg-head p { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .85); line-height: 1.7; }
.reg-head > button { margin-left: auto; flex: 0 0 auto; background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .35); color: #fff; }
.reg-head > button:hover { background: #fff; color: var(--brand-dark); }

.reg-body { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .reg-body { grid-template-columns: 1fr; } .reg-steps { order: 2; } }

.reg-steps { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 8px; }
.reg-step { display: flex; gap: 10px; padding: 10px 12px; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius-sm); }
.reg-step i { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%; background: var(--brand-soft);
  color: var(--brand); font-size: 12px; font-style: normal; font-weight: 700;
  display: flex; align-items: center; justify-content: center; }
.reg-step b { display: block; font-size: 13px; font-weight: 600; color: var(--text); }
.reg-step span { display: block; font-size: 11.5px; color: var(--text-muted); margin-top: 2px; line-height: 1.6; }

.reg-form { display: flex; flex-direction: column; gap: 14px; }
.reg-sec { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow); transition: box-shadow .2s, border-color .2s; }
.reg-sec h3 { margin: 0 0 14px; font-size: 14.5px; display: flex; align-items: center; gap: 8px; }
.reg-sec h3 > span { width: 20px; height: 20px; border-radius: 6px; background: var(--brand);
  color: #fff; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.reg-sec-error { border-color: var(--red); box-shadow: 0 0 0 3px rgba(220, 38, 38, .12); }

.reg-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 720px) { .reg-photos { grid-template-columns: 1fr; } }
.reg-photo { position: relative; display: block; border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-sm); background: #fbfcfe; min-height: 148px; cursor: pointer;
  overflow: hidden; transition: border-color .15s, background .15s; }
.reg-photo:hover { border-color: var(--brand); background: var(--brand-soft); }
.reg-photo.has-photo { border-style: solid; border-color: var(--green); background: #fff; }
.reg-photo .ph-empty { display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; height: 148px; padding: 10px; text-align: center; }
.reg-photo .ph-empty b { font-size: 13px; color: var(--text); }
.reg-photo .ph-empty span { font-size: 11px; color: var(--text-muted); line-height: 1.6; padding: 0 4px; }
.reg-photo .ph-empty em { font-size: 11.5px; color: var(--brand); font-style: normal; font-weight: 600; margin-top: 2px; }
.reg-photo img { display: block; width: 100%; height: 148px; object-fit: cover; }
.reg-photo .ph-done { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 8px;
  background: rgba(22, 163, 74, .92); color: #fff; font-size: 11px; text-align: center; }
