/* ============================================================================
 * 待办与审批 + 我的人事
 * 全部走 theme.css 的既有变量，不引入新配色
 * ========================================================================== */

.wf-view {
  padding: 22px 26px 60px;
  flex-direction: column; align-items: stretch;
  overflow-y: auto;
}
.wf-view > div { width: 100%; }

.wf-head {
  display: flex; align-items: flex-start; gap: 16px; margin-bottom: 18px;
}
.wf-head h2 { margin: 0 0 4px; font-size: 20px; font-weight: 700; color: var(--text); }
.wf-head p { margin: 0; font-size: 13px; color: var(--muted); }
.wf-head-actions { margin-left: auto; display: flex; gap: 8px; }

.wf-section-title {
  display: flex; align-items: center; gap: 10px;
  margin: 26px 0 12px; font-size: 13px; font-weight: 700; color: var(--text);
  letter-spacing: .02em;
}
.wf-section-title::after {
  content: ''; flex: 1; height: 1px; background: var(--line-soft);
}
.wf-month-nav { display: flex; gap: 6px; }

.wf-empty {
  padding: 44px 20px; text-align: center; color: var(--muted);
  font-size: 13px; line-height: 1.9;
  background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius);
}
.wf-empty.small { padding: 22px; }

/* ---------------------------------------------------------------- 按钮 */
.wf-btn {
  border: 1px solid var(--line); background: var(--card); color: var(--text);
  padding: 7px 14px; border-radius: var(--radius-sm); font-size: 13px;
  cursor: pointer; transition: all .15s var(--ease); font-family: inherit;
}
.wf-btn:hover { border-color: var(--muted-2); background: var(--paper); }
.wf-btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.wf-btn.primary:hover { background: var(--brand-600); border-color: var(--brand-600); }
.wf-btn.danger { color: var(--danger); border-color: #FDA29B; }
.wf-btn.danger:hover { background: #FEF3F2; }
.wf-btn.tiny { padding: 4px 10px; font-size: 12px; }
.wf-btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------------------------------------------------------------- 页签 */
.wf-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.wf-tab {
  border: 0; background: none; padding: 10px 16px; font-size: 13.5px; font-weight: 600;
  color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -1px; font-family: inherit; display: flex; align-items: center; gap: 7px;
}
.wf-tab.active { color: var(--brand); border-bottom-color: var(--brand); }
.wf-tab i {
  font-style: normal; font-size: 11px; font-weight: 700; line-height: 1;
  background: var(--danger); color: #fff; padding: 3px 6px; border-radius: 9px;
}
.wf-tab i.plain { background: var(--line); color: var(--muted); }

/* ---------------------------------------------------------------- 单据卡 */
.wf-list { display: flex; flex-direction: column; gap: 10px; }
.wf-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 15px 17px; box-shadow: var(--shadow-xs);
  transition: box-shadow .15s var(--ease);
}
.wf-card:hover { box-shadow: var(--shadow-sm); }
.wf-card-top {
  display: flex; align-items: center; gap: 9px; margin-bottom: 9px; flex-wrap: wrap;
}
.wf-card h3 { margin: 0 0 5px; font-size: 15px; font-weight: 650; color: var(--text); }
.wf-card p {
  margin: 0; font-size: 13px; color: var(--muted); line-height: 1.7;
}
.wf-card-foot {
  display: flex; align-items: center; gap: 12px; margin-top: 13px;
  padding-top: 12px; border-top: 1px solid var(--line-soft);
  font-size: 12.5px; color: var(--muted);
}
.wf-actions { margin-left: auto; display: flex; gap: 7px; }

.wf-biz {
  font-size: 12px; font-weight: 700; color: var(--brand-700);
  background: var(--brand-50); padding: 3px 9px; border-radius: 6px;
}
.wf-step {
  font-size: 12px; color: var(--muted);
  background: var(--line-soft); padding: 3px 9px; border-radius: 6px;
}
.wf-time { margin-left: auto; font-size: 12px; color: var(--muted-2); }

.wf-status {
  font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 6px;
  background: var(--line-soft); color: var(--muted);
}
.wf-status.ok { background: #ECFDF3; color: #027A48; }
.wf-status.bad { background: #FEF3F2; color: #B42318; }

/* ---------------------------------------------------------------- 详情弹窗 */
.wf-mask {
  position: fixed; inset: 0; background: rgba(16,24,40,.45);
  display: none; align-items: center; justify-content: center; z-index: 900;
  padding: 24px; backdrop-filter: blur(2px);
}
.wf-mask.open { display: flex; }
.wf-modal {
  background: var(--card); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl); width: min(560px, 100%);
  max-height: 86vh; display: flex; flex-direction: column; overflow: hidden;
}
.wf-modal-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.wf-modal-head h3 { margin: 0; font-size: 15px; font-weight: 700; flex: 1; }
.wf-modal-head button {
  border: 0; background: none; color: var(--muted); cursor: pointer;
  font-size: 13px; font-family: inherit; padding: 4px 8px; border-radius: 6px;
}
.wf-modal-head button:hover { background: var(--line-soft); color: var(--text); }
.wf-modal-body { padding: 18px 20px 22px; overflow-y: auto; }

.wf-detail-meta {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  font-size: 12.5px; color: var(--muted); margin-bottom: 16px;
}
.wf-snapshot {
  background: var(--paper); border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 18px;
}
.wf-snapshot-title { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.wf-kv { display: flex; gap: 12px; font-size: 13px; padding: 3px 0; }
.wf-kv span { color: var(--muted); min-width: 84px; }
.wf-kv b { font-weight: 600; color: var(--text); }

.wf-timeline-title { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.wf-timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--line-soft); }
.wf-timeline li { position: relative; padding: 0 0 16px 4px; }
.wf-timeline li::before {
  content: ''; position: absolute; left: -25px; top: 5px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 0 3px var(--brand-50);
}
.wf-tl-head { display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
.wf-tl-head b { font-weight: 650; }
.wf-tl-head span { color: var(--brand-700); font-size: 12.5px; }
.wf-tl-head time { margin-left: auto; color: var(--muted-2); font-size: 12px; }
.wf-timeline p { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.7; }

/* ---------------------------------------------------------------- 表单 */
.wf-form { display: flex; flex-direction: column; gap: 14px; }
.wf-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text); }
.wf-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wf-form input[type=date], .wf-form input[type=text], .wf-form input[type=number],
.wf-form select, .wf-form textarea {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 9px 11px; font-size: 13.5px; font-family: inherit; font-weight: 400;
  color: var(--text); background: var(--card); width: 100%;
}
.wf-form textarea { resize: vertical; line-height: 1.7; }
.wf-form :is(input, select, textarea):focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50);
}
.wf-check { flex-direction: row !important; align-items: center; gap: 8px !important; font-weight: 400 !important; }
.wf-check input { width: auto; }
.wf-form-hint {
  font-size: 12.5px; color: var(--muted); line-height: 1.7;
  background: var(--paper); border-radius: var(--radius-sm); padding: 10px 12px;
}
.wf-form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 2px; }

/* ---------------------------------------------------------------- 人事档案 */
.wf-profile {
  display: flex; align-items: center; gap: 16px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-xs);
}
.wf-avatar {
  width: 52px; height: 52px; border-radius: 14px; flex: none;
  background: var(--brand-50); color: var(--brand-700);
  display: grid; place-items: center; font-size: 17px; font-weight: 700;
}
.wf-profile-main { flex: 1; min-width: 0; }
.wf-profile-main h3 {
  margin: 0 0 6px; font-size: 17px; font-weight: 700;
  display: flex; align-items: baseline; gap: 9px;
}
.wf-emp-no { font-size: 12px; font-weight: 500; color: var(--muted-2); }
.wf-profile-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); }
.wf-profile-side { display: flex; gap: 22px; text-align: right; }
.wf-profile-side div { display: flex; flex-direction: column; gap: 4px; }
.wf-profile-side span { font-size: 11.5px; color: var(--muted-2); }
.wf-profile-side b { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- 假期额度 */
.wf-quota { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.wf-quota-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px;
}
.wf-quota-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.wf-quota-top span { font-size: 13px; font-weight: 600; }
.wf-quota-top b { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--brand-700); }
.wf-quota-top i { font-style: normal; font-size: 11.5px; font-weight: 500; color: var(--muted); margin-left: 3px; }
.wf-bar { height: 5px; border-radius: 3px; background: var(--line-soft); overflow: hidden; }
.wf-bar i { display: block; height: 100%; background: var(--brand); border-radius: 3px; }
.wf-quota-foot { margin-top: 8px; font-size: 11.5px; color: var(--muted-2); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- 考勤 */
.wf-att-summary { display: flex; gap: 28px; margin-bottom: 14px; }
.wf-att-summary div { display: flex; align-items: baseline; gap: 5px; }
.wf-att-summary span { font-size: 12.5px; color: var(--muted); }
.wf-att-summary b { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.wf-att-summary i { font-style: normal; font-size: 12px; color: var(--muted); }

.wf-calendar {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px;
  max-width: 620px;
}
.wf-cal-head { text-align: center; font-size: 11.5px; color: var(--muted-2); padding-bottom: 4px; font-weight: 600; }
.wf-cal-cell {
  min-height: 46px; border-radius: 8px; padding: 6px;
  display: flex; flex-direction: column; gap: 2px;
  font-size: 12px; font-variant-numeric: tabular-nums;
  background: var(--paper); color: var(--text);
}
.wf-cal-cell.empty { background: none; }
.wf-cal-cell.rest, .wf-cal-cell.holiday { background: var(--line-soft); color: var(--muted-2); }
.wf-cal-cell.work { background: #ECFDF3; color: #027A48; }
.wf-cal-cell.leave { background: var(--brand-50); color: var(--brand-700); }
.wf-cal-cell.outing { background: #FFFAEB; color: var(--brass-ink); }
.wf-cal-cell.absent { background: #FEF3F2; color: #B42318; }
.wf-cal-cell i { font-style: normal; font-size: 10px; opacity: .85; }

/* ---------------------------------------------------------------- 表格 */
.wf-table-wrap {
  overflow-x: auto; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.wf-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 620px; }
.wf-table th {
  text-align: left; font-size: 11.5px; font-weight: 700; color: var(--muted);
  padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.wf-table td { padding: 11px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.wf-table tr:last-child td { border-bottom: 0; }
.wf-table tbody tr:hover { background: var(--paper); }
.wf-reason {
  max-width: 260px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; color: var(--muted);
}

/* ---------------------------------------------------------------- 侧栏红点 */
.wf-nav-badge {
  margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--danger); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}

@media (max-width: 720px) {
  .wf-view { padding: 16px 14px 50px; }
  .wf-profile { flex-wrap: wrap; }
  .wf-profile-side { width: 100%; text-align: left; justify-content: flex-start; }
  .wf-form-row { grid-template-columns: 1fr; }
  .wf-card-foot { flex-wrap: wrap; }
  .wf-actions { margin-left: 0; width: 100%; }
}

/* ============================================================================
 * 谈单驾驶舱 · 建议栈
 * 每一轮建议是一张卡，最新的展开在最上面，旧的收起但留着，钉住的永远置顶。
 * ========================================================================== */
.adv-stack {
  display: flex; flex-direction: column; gap: 8px;
  overflow-y: auto; min-height: 0; flex: 1;
}
.adv-card { flex: 0 0 auto; }

.adv-card {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--card);
}
.adv-card.pinned { border-color: var(--brass); box-shadow: 0 0 0 2px #FFFAEB; }
.adv-card.pending { border-style: dashed; }

.adv-head {
  display: flex; align-items: center; gap: 8px; padding: 7px 10px;
  background: var(--paper); border-bottom: 1px solid transparent;
  font-size: 11.5px; cursor: default;
}
.adv-card.open .adv-head { border-bottom-color: var(--line-soft); }
.adv-round { font-weight: 700; color: var(--brand-700); white-space: nowrap; }
.adv-time { color: var(--muted-2); font-variant-numeric: tabular-nums; }
/* 收起时这行摘要就是全部信息，必须能一眼认出是哪一轮 */
.adv-brief {
  flex: 1; min-width: 0; color: var(--muted); cursor: pointer;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.adv-card.open .adv-brief { display: none; }

.adv-pin, .adv-fold {
  border: 1px solid var(--line); background: var(--card); color: var(--muted);
  border-radius: 6px; padding: 2px 8px; font-size: 11px; cursor: pointer;
  font-family: inherit; line-height: 1.6;
}
.adv-pin:hover, .adv-fold:hover { background: var(--line-soft); color: var(--text); }
.adv-pin.on { background: #FFFAEB; border-color: var(--brass); color: var(--brass-ink); font-weight: 600; }
.adv-fold { width: 24px; text-align: center; }
.adv-card.open .adv-fold::after { content: '−'; }
.adv-card:not(.open) .adv-fold::after { content: '+'; }
.adv-fold { font-size: 0; }
.adv-fold::after { font-size: 13px; }

/* 收起 = 只留标题栏。内容留在 DOM 里，展开是瞬时的，不用重新生成 */
.adv-slot { padding: 11px 12px; }
.adv-card:not(.open) .adv-slot { display: none; }

@media (max-width: 720px) {
  .adv-head { flex-wrap: wrap; }
  .adv-brief { order: 9; flex-basis: 100%; }
}

/* ---- 驾驶舱：识别链路标签 + 未定稿的半句 ---- */
.rec-mode { margin-left: auto; font-size: 10.5px; color: var(--muted-2); white-space: nowrap; }
/* 还在说的那半句：虚线 + 淡显，和已确定的历史一眼可分，
   它会原地改字，不会像以前那样每句刷新整块 */
.turn.partial-live {
  opacity: .72; border-style: dashed !important;
  background: repeating-linear-gradient(-45deg,
    transparent, transparent 6px, rgba(70,95,255,.045) 6px, rgba(70,95,255,.045) 12px);
}
.turn.partial-live .txt::after {
  content: '▍'; margin-left: 2px; animation: wfCaret 1s steps(1) infinite; color: var(--brand);
}
@keyframes wfCaret { 50% { opacity: 0; } }

/* ============================================================================
 * 驾驶舱 ④ 行业情报
 * 现场是扫读，不是细读：先给能直接说出口的话，再给风险，最后才是背景。
 * ========================================================================== */
.quad-tabs { display: flex; gap: 3px; margin: 0 0 9px; }
.quad-tab {
  border: 1px solid var(--line); background: var(--card); color: var(--muted);
  border-radius: 6px; padding: 2px 9px; font-size: 10.5px; cursor: pointer; font-family: inherit;
}
.quad-tab.active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }

.ind-loading, .ind-empty { color: var(--muted); line-height: 1.9; padding: 10px 2px; }
.ind-loading span { font-size: 10.5px; color: var(--muted-2); }

.ind-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.ind-head b { font-size: 13.5px; }
.ind-badge { font-size: 10px; padding: 2px 7px; border-radius: 5px; font-weight: 600; }
.ind-badge.ok { background: #ECFDF3; color: #027A48; }
.ind-badge.warn { background: #FFFAEB; color: var(--brass-ink); cursor: help; }

.ind-sec { margin-bottom: 12px; }
.ind-sec h5 {
  margin: 0 0 6px; font-size: 10.5px; font-weight: 700; color: var(--muted);
  letter-spacing: .03em;
}
.ind-sec ul { margin: 0; padding-left: 16px; }
.ind-sec li { font-size: 11.5px; line-height: 1.85; color: var(--text); }

/* 能直接念出口的那几句，给最重的视觉权重——现场第一眼要看到的就是它 */
.ind-sec.say ul { padding-left: 0; list-style: none; }
.ind-say {
  background: var(--brand-50); border-left: 3px solid var(--brand);
  border-radius: 0 6px 6px 0; padding: 7px 10px; margin-bottom: 5px;
  font-size: 12px !important; color: var(--brand-700) !important; font-weight: 500;
}

.ind-risk {
  border: 1px solid var(--line); border-left-width: 3px; border-radius: 0 6px 6px 0;
  padding: 7px 10px; margin-bottom: 6px;
}
.ind-risk.lv0 { border-left-color: var(--danger); }
.ind-risk.lv1 { border-left-color: var(--brass); }
.ind-risk.lv2 { border-left-color: var(--line); }
.ind-risk-top { display: flex; align-items: center; gap: 6px; }
.ind-risk-top b { font-size: 11.5px; }
.ind-lv { font-size: 9.5px; font-weight: 700; padding: 1px 5px; border-radius: 4px;
  background: var(--line-soft); color: var(--muted); }
.ind-risk.lv0 .ind-lv { background: #FEF3F2; color: #B42318; }
.ind-risk.lv1 .ind-lv { background: #FFFAEB; color: var(--brass-ink); }
.ind-risk p { margin: 4px 0 0; font-size: 11px; line-height: 1.75; color: var(--muted); }
.ind-risk cite { display: block; margin-top: 4px; font-size: 10px; color: var(--muted-2); font-style: normal; }

.ind-sol { padding: 6px 0; border-bottom: 1px dashed var(--line-soft); }
.ind-sol:last-child { border-bottom: 0; }
.ind-sol b { font-size: 11.5px; }
.ind-sol p { margin: 3px 0 0; font-size: 11px; line-height: 1.75; color: var(--muted); }
.ind-sol em { display: block; margin-top: 3px; font-size: 10.5px; color: var(--brand-700); font-style: normal; }

/* 点一下就把问题填进输入框，销售照着念，不用自己重新组织语言 */
.ind-ask { cursor: pointer; }
.ind-ask span {
  margin-left: 6px; font-size: 9.5px; color: var(--brand); opacity: 0;
  border: 1px solid var(--brand-100); border-radius: 4px; padding: 0 4px;
}
.ind-ask:hover { color: var(--brand-700); }
.ind-ask:hover span { opacity: 1; }

.ind-tax { width: 100%; border-collapse: collapse; font-size: 10.5px; }
.ind-tax td { padding: 4px 6px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.ind-tax td:first-child { font-weight: 600; white-space: nowrap; }
.ind-tax td.muted { color: var(--muted-2); }
.ind-fold { margin-bottom: 8px; }
.ind-fold summary {
  font-size: 10.5px; font-weight: 700; color: var(--muted); cursor: pointer;
  letter-spacing: .03em; padding: 3px 0; list-style: none;
}
.ind-fold summary::-webkit-details-marker { display: none; }
.ind-fold summary::before { content: '▸ '; color: var(--muted-2); }
.ind-fold[open] summary::before { content: '▾ '; }
.ind-fold ul { margin: 4px 0 0; padding-left: 16px; }
.ind-fold li { font-size: 11.5px; line-height: 1.85; }

/* ---------------- ③ 风险假设 ---------------- */
.hyp-title {
  font-size: 10.5px; font-weight: 700; color: var(--muted); margin: 12px 0 7px;
  padding-top: 10px; border-top: 1px solid var(--line-soft); letter-spacing: .02em;
}
.hyp-empty { font-size: 11px; color: var(--muted-2); line-height: 1.8; }
.hyp {
  border: 1px solid var(--line); border-radius: 7px; padding: 8px 10px; margin-bottom: 7px;
}
.hyp.ok { border-color: #A6F4C5; background: #F6FEF9; }
.hyp-top { display: flex; align-items: center; gap: 6px; }
.hyp-top b { font-size: 11.5px; flex: 1; }
.hyp-lv { font-size: 9.5px; font-weight: 700; padding: 1px 5px; border-radius: 4px;
  background: var(--line-soft); color: var(--muted); }
.hyp-lv.l0 { background: #FEF3F2; color: #B42318; }
.hyp-lv.l1 { background: #FFFAEB; color: var(--brass-ink); }
.hyp-conf { font-size: 10.5px; font-weight: 700; color: var(--brand-700);
  font-variant-numeric: tabular-nums; }
/* 可信度做成一条，比数字更快读——现场是扫一眼不是细看 */
.hyp-bar { height: 3px; border-radius: 2px; background: var(--line-soft); margin: 5px 0 6px; }
.hyp-bar i { display: block; height: 100%; border-radius: 2px; background: var(--brand); }
.hyp.ok .hyp-bar i { background: var(--ok); }
.hyp-ev, .hyp-miss { font-size: 10.5px; line-height: 1.7; color: var(--muted); margin-bottom: 3px; }
.hyp-miss { color: var(--brass-ink); }
.hyp-q {
  font-size: 11px; line-height: 1.65; color: var(--brand-700); cursor: pointer;
  background: var(--brand-50); border-radius: 5px; padding: 5px 7px; margin-top: 5px;
}
.hyp-q:hover { background: var(--brand-100); }
.hyp-acts { display: flex; gap: 5px; margin-top: 6px; }
.hyp-acts button {
  border: 1px solid var(--line); background: var(--card); color: var(--muted);
  border-radius: 5px; padding: 2px 8px; font-size: 10.5px; cursor: pointer; font-family: inherit;
}
.hyp-acts button:first-child:hover { border-color: var(--ok); color: var(--ok); }
.hyp-acts button:last-child:hover { border-color: var(--danger); color: var(--danger); }

/* ---------------- ② 该问什么 ---------------- */
.ask-group {
  font-size: 10.5px; font-weight: 700; color: var(--muted);
  margin: 10px 0 7px; letter-spacing: .02em;
}
.ask-group:first-child { margin-top: 0; }
#questionList .qsuggest { cursor: pointer; }
#questionList .qwhy {
  font-size: 10.5px; color: var(--brass-ink); margin-top: 3px; line-height: 1.65;
}

/* ---------------- ② 该问什么（熵减排序） ---------------- */
.ask-head { font-size: 10.5px; color: var(--muted-2); line-height: 1.7; margin-bottom: 9px; }
.ask-item { cursor: pointer; }
.ask-top { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
/* 序号本身就是结论：第 1 条就是现在最该问的 */
.ask-rank {
  width: 16px; height: 16px; border-radius: 50%; flex: none;
  background: var(--brand); color: #fff; font-size: 10px; font-weight: 700;
  display: grid; place-items: center;
}
.ask-item:not(:first-of-type) .ask-rank { background: var(--muted-2); }
.ask-kind {
  font-size: 9.5px; padding: 1px 6px; border-radius: 4px;
  background: var(--line-soft); color: var(--muted); font-weight: 600;
}
.ask-kind.verify { background: var(--brand-50); color: var(--brand-700); }
.ask-gain {
  margin-left: auto; font-size: 10px; color: var(--muted-2);
  font-variant-numeric: tabular-nums; cursor: help;
}
.ask-covers { font-size: 10px; color: var(--ok); margin-top: 3px; line-height: 1.6; }

/* ============================================================================
 * 知识库阅读器：左目录 + 右连续正文
 * 一本 704 页的教材原来只能 12 块一页翻 147 页——那是在通讯录里读书。
 * ========================================================================== */
.kb-book { display: grid; grid-template-columns: 208px 1fr; gap: 14px; min-height: 0; }

.kb-toc {
  border-right: 1px solid var(--line); padding-right: 10px;
  max-height: 52vh; overflow-y: auto;
}
.kb-toc-item {
  font-size: 11.5px; line-height: 1.55; padding: 5px 7px; border-radius: 6px;
  cursor: pointer; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.kb-toc-item.lv1 { font-weight: 700; color: var(--text); margin-top: 6px; }
.kb-toc-item.lv2 { padding-left: 16px; }
.kb-toc-item:hover { background: var(--line-soft); color: var(--text); }
.kb-toc-item.active { background: var(--brand-50); color: var(--brand-700); font-weight: 600; }

.kb-book-main { min-width: 0; display: flex; flex-direction: column; }
.kb-reader-list { max-height: 52vh; overflow-y: auto; }

/* 正文按读书的排版来：一栏、行距松、字号够大，不是一堆折叠的检索结果 */
.kb-page { max-width: 62em; }
.kb-page .kb-h {
  margin: 18px 0 8px; font-weight: 700; line-height: 1.5; color: var(--text);
}
.kb-page h2.kb-h { font-size: 16px; }
.kb-page h3.kb-h { font-size: 14.5px; }
.kb-page h4.kb-h, .kb-page h5.kb-h, .kb-page h6.kb-h { font-size: 13.5px; }
.kb-page .kb-h:first-child { margin-top: 0; }
.kb-page .kb-p {
  margin: 0 0 11px; font-size: 13.5px; line-height: 2.0; color: var(--text);
  text-align: justify; white-space: pre-wrap;
}

.kb-read-next { padding: 14px 0 4px; text-align: center; }

/* 检索模式：命中片段 + 一键跳回原处顺着读 */
.kb-hit { border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; margin-bottom: 8px; }
.kb-hit-head {
  display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600;
  margin-bottom: 6px;
}
.kb-hit-head small { color: var(--muted-2); font-weight: 400; }
.kb-hit-head button { margin-left: auto; }
.rec-btn.tiny { padding: 2px 8px; font-size: 10.5px; }

@media (max-width: 900px) {
  .kb-book { grid-template-columns: 1fr; }
  .kb-toc { border-right: 0; border-bottom: 1px solid var(--line);
    max-height: 130px; padding: 0 0 8px; }
}
/* 目录条目：标题 + 篇幅。知道一节多长，才好决定现在读不读 */
.kb-toc-item { display: flex; align-items: baseline; gap: 6px; }
.kb-toc-item > span { flex: 1; min-width: 0; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.kb-toc-item > i { font-style: normal; font-size: 10px; color: var(--muted-2);
  flex: none; font-variant-numeric: tabular-nums; }
