/* ============================================================
   高物知识库 · 设计系统
   层级：背景 → 卡片 → 内容；间距 4/8/12/16/24/32；字号 12/13/14/15/17/22/26
   ============================================================ */
:root {
  --bg: #f6f7fa;
  --card: #ffffff;
  --line: #e8eaf0;
  --line-strong: #d8dce6;
  --text: #1f2229;
  --text-2: #4a4f5c;
  --muted: #8b91a1;
  --brand: #2f5597;
  --brand-weak: #eef3fb;
  --ok: #1e8449;
  --warn: #b06000;
  --warn-weak: #fdf3e6;
  --bad: #c0392b;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(23, 29, 43, .04), 0 8px 24px rgba(23, 29, 43, .04);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; cursor: pointer; }
a { color: var(--brand); }
img { max-width: 100%; }

input, textarea, select {
  font-family: inherit; font-size: 14px; line-height: 1.5;
  padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--text); outline: none; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47, 85, 151, .08);
}
textarea { resize: vertical; }

/* ---------- 通用组件 ---------- */
.btn {
  border: 1px solid var(--line-strong); background: #fff; color: var(--text-2);
  border-radius: var(--radius-sm); padding: 9px 16px; font-size: 14px; line-height: 1.2;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: #c3cad8; color: var(--text); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: #27467f; border-color: #27467f; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: #f1f3f8; color: var(--text-2); }
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.msg { font-size: 13px; min-height: 18px; }
.msg.bad { color: var(--bad); }
.msg.ok { color: var(--ok); }
.hint { font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.empty { text-align: center; color: var(--muted); padding: 48px 0; font-size: 13.5px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ---------- 登录 ---------- */
#view-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 40px 36px; width: 400px; box-shadow: var(--shadow);
}
.login-card h1 { font-size: 22px; color: var(--text); letter-spacing: .3px; }
.login-card .sub { color: var(--muted); font-size: 13.5px; margin: 8px 0 24px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; }
.code-row .btn { white-space: nowrap; }
.login-actions { display: flex; gap: 10px; margin-top: 6px; }
.login-actions .primary { flex: 1; }

/* ---------- 顶栏 ---------- */
.topbar {
  display: flex; align-items: center; gap: 20px;
  height: 58px; padding: 0 28px; background: rgba(255,255,255,.86);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 30;
}
.brand { font-weight: 700; color: var(--brand); font-size: 16px; letter-spacing: .6px; white-space: nowrap; }
.tabs { display: flex; gap: 2px; flex: 1; }
.tab {
  border: none; background: none; padding: 7px 14px; border-radius: 8px;
  color: var(--muted); font-size: 14px; transition: background .15s, color .15s;
}
.tab:hover { background: #f2f4f9; color: var(--text-2); }
.tab.active { background: var(--brand-weak); color: var(--brand); font-weight: 600; }
.me { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; white-space: nowrap; }

/* ---------- 布局 ---------- */
main { max-width: 1120px; margin: 0 auto; padding: 24px 20px 96px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.panel h3 { font-size: 14.5px; font-weight: 600; margin-bottom: 14px; color: var(--text); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.stat .num { font-size: 26px; font-weight: 700; color: var(--brand); line-height: 1.2; letter-spacing: -.3px; }
.stat .lbl { color: var(--muted); font-size: 12.5px; margin-top: 4px; }

/* ---------- 概览 ---------- */
.ovhero { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 32px 36px; margin-bottom: 16px; box-shadow: var(--shadow); }
.ovhero h1 { font-size: 26px; letter-spacing: -.2px; color: var(--text); }
.ovsub { color: var(--muted); font-size: 13px; margin: 8px 0 20px; }
.ovask { display: flex; gap: 10px; max-width: 660px; }
.ovask input { padding: 12px 14px; font-size: 14.5px; }
.ovask .btn { padding: 12px 22px; white-space: nowrap; }

.aicard { position: relative; }
.aihead { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; margin-bottom: 12px; }
.aibadge {
  display: inline-flex; align-items: center; height: 20px; padding: 0 8px;
  background: var(--brand-weak); color: var(--brand); font-size: 11px; font-weight: 700;
  border-radius: 6px; border: 1px solid #dbe4f6; letter-spacing: .5px;
}
.aibody .digest { font-size: 15px; line-height: 1.95; color: var(--text-2); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chipslabel { color: var(--muted); font-size: 12.5px; }
.chip {
  border: 1px solid #dbe4f6; background: #f8fafe; color: var(--brand);
  border-radius: 20px; padding: 7px 14px; font-size: 13px; line-height: 1.2;
  transition: background .15s;
}
.chip:hover { background: var(--brand-weak); }
.chips .chip-static { display: inline-block; border-radius: 20px; padding: 3px 11px; font-size: 12.5px; background: #f3f5f9; color: var(--muted); white-space: nowrap; }
.chips .chip-static.cat { background: var(--brand-weak); color: var(--brand); }
.chips .chip-static.warnc { background: var(--warn-weak); color: var(--warn); }

.aisum {
  display: flex; gap: 10px; align-items: flex-start;
  background: #f8fafe; border: 1px solid #e4ebf8; border-radius: 12px;
  padding: 14px 16px; margin: 16px 0 22px; font-size: 14px; line-height: 1.8; color: var(--text-2);
}

/* ---------- 文档：工具条 + 双栏 ---------- */
.doctop { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.dt-left b { font-size: 17px; color: var(--text); }
.dt-sub { color: var(--muted); font-size: 12.5px; margin-left: 10px; }

.docwrap { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 18px; align-items: start; }
.doctree {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; position: sticky; top: 74px; max-height: calc(100vh - 98px); overflow: auto;
}
.doctree input { font-size: 13px; margin-bottom: 12px; }
.l1box { margin-bottom: 4px; }
.l1 {
  display: flex; align-items: center; gap: 6px; padding: 8px 10px;
  border-radius: 8px; font-size: 14px; color: var(--brand); background: #f5f8fd;
  cursor: pointer; user-select: none;
}
.l1:hover { background: #eef3fb; }
.l1 b { font-weight: 600; flex: 1; }
.l1 .cnt { color: var(--muted); font-size: 12px; font-weight: 400; }
.l1 .caret { color: var(--muted); font-size: 11px; width: 12px; }
.l2 { font-size: 12px; color: var(--muted); padding: 10px 10px 4px 22px; letter-spacing: .3px; }
.treelink {
  font-size: 13.5px; padding: 7px 10px 7px 22px; border-radius: 7px; cursor: pointer;
  color: var(--text-2); line-height: 1.45;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.treelink:hover { background: #f5f7fb; color: var(--text); }
.treelink.active { background: var(--brand-weak); color: var(--brand); font-weight: 600; }

.docpage {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 44px 52px 56px; min-height: 70vh; box-shadow: var(--shadow);
}
.docpage h1 { font-size: 24px; line-height: 1.45; font-weight: 700; margin-bottom: 14px; color: var(--text); }
.docbody { margin-top: 4px; }
.docbody p {
  font-family: "Songti SC", "SimSun", "宋体", serif;
  font-size: 15.5px; line-height: 2.05; margin-bottom: 12px;
  color: #23262e; text-align: justify; word-break: break-word;
}
.docbody p.num { text-indent: 0; }
.docbody .docnote {
  font-family: inherit; font-size: 13.5px; background: var(--warn-weak);
  border: 1px solid #f3ddc2; color: var(--warn); padding: 10px 12px; border-radius: 9px; margin-bottom: 16px;
}
/* 链接芯片 */
.linkchip {
  display: inline-flex; align-items: center; gap: 5px; vertical-align: baseline;
  background: var(--brand-weak); color: var(--brand); border: 1px solid #dbe4f6;
  border-radius: 6px; padding: 1px 8px; font-family: inherit; font-size: 13px;
  text-decoration: none; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.linkchip:hover { background: #e6eefb; }
.docpage img.evidence {
  display: block; max-width: 100%; max-height: 340px; width: auto; object-fit: contain;
  margin: 16px 0; border-radius: 10px; border: 1px solid var(--line); cursor: zoom-in;
}

/* 图片放大 */
.imgmask { position: fixed; inset: 0; background: rgba(12,16,24,.78); display: flex; align-items: center; justify-content: center; z-index: 90; padding: 24px; cursor: zoom-out; }
.imgmask .bigimg { max-width: 94vw; max-height: 92vh; border-radius: 10px; }

/* ---------- 条目卡（列表） ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.filters select, .filters input { width: auto; }
.day-head { font-size: 12px; color: var(--muted); margin: 20px 0 8px; letter-spacing: .5px; }
.entry-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; margin-bottom: 10px; cursor: pointer; transition: border-color .15s, transform .15s;
}
.entry-card:hover { border-color: #cfd8e8; transform: translateY(-1px); }
.entry-card .t { font-weight: 600; margin-bottom: 6px; color: var(--text); }
.entry-card .meta { color: var(--muted); font-size: 12.5px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.tag { display: inline-block; background: var(--brand-weak); color: var(--brand); border-radius: 20px; padding: 2px 10px; font-size: 12px; }
.tag.warn { background: var(--warn-weak); color: var(--warn); }
.tag.pending { background: #f2f3f6; color: var(--muted); }

/* ---------- 详情双栏 ---------- */
.detail { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; }
.detail .col { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0; }
.detail h3 { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 12px; letter-spacing: .3px; }
.rawtext { white-space: pre-wrap; line-height: 1.9; background: #fafbfd; border-radius: 10px; padding: 14px; max-height: 460px; overflow: auto; word-break: break-word; }
.fv { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.fv .src { font-size: 11.5px; padding: 2px 8px; border-radius: 10px; white-space: nowrap; }
.src.ai_confirmed { background: #e9f6ef; color: var(--ok); }
.src.ai_pending { background: var(--warn-weak); color: var(--warn); }
.src.manual { background: var(--brand-weak); color: var(--brand); }
.fv .missing { color: var(--warn); }

/* ---------- 表格 ---------- */
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; font-size: 12.5px; white-space: nowrap; }
tbody tr:hover { background: #fafbfd; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- 状态 ---------- */
.status-ok { color: var(--ok); font-weight: 600; }
.status-bad { color: var(--bad); font-weight: 600; }

/* ---------- 缩略图 ---------- */
.thumb { display: inline-block; margin: 6px 8px 6px 0; }
.thumb img { max-height: 104px; border-radius: 8px; border: 1px solid var(--line); display: block; }
.thumb .btn { margin-top: 6px; }

/* ---------- 悬浮按钮 ---------- */
.fab {
  position: fixed; right: 26px; bottom: 26px; z-index: 40;
  background: var(--brand); color: #fff; border: none; border-radius: 26px;
  padding: 13px 22px; font-size: 14.5px; font-weight: 600;
  box-shadow: 0 10px 26px rgba(47, 85, 151, .3);
  transition: transform .15s, background .15s;
}
.fab:hover { background: #27467f; transform: translateY(-1px); }

/* ---------- AI 弹窗 ---------- */
.aimask {
  position: fixed; inset: 0; background: rgba(18, 22, 32, .38);
  display: flex; align-items: flex-end; justify-content: center; z-index: 80; padding: 0 16px;
}
@media (min-width: 720px) { .aimask { align-items: center; } }
.aidialog {
  width: 100%; max-width: 720px; max-height: 86vh; background: #fff;
  border-radius: 18px; box-shadow: 0 24px 60px rgba(16, 22, 36, .28);
  display: flex; flex-direction: column; overflow: hidden; margin-bottom: 0;
}
.aiheadbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.aiheadbar .t { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; }
.aiheadbar .sub { color: var(--muted); font-size: 12px; font-weight: 400; margin-left: 6px; }
.aiclose { border: none; background: none; font-size: 20px; line-height: 1; color: var(--muted); padding: 4px 8px; border-radius: 8px; }
.aiclose:hover { background: #f2f4f9; color: var(--text); }
.aichat { flex: 1; overflow: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; background: #fbfcfe; }
.aichat .bubble { max-width: 88%; padding: 12px 15px; border-radius: 14px; font-size: 14px; line-height: 1.8; white-space: pre-wrap; word-break: break-word; }
.aichat .bubble.user { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.aichat .bubble.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; color: var(--text-2); }
.aichat .cite { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--muted); }
.aichat .cite a { cursor: pointer; margin-right: 8px; text-decoration: none; }
.aichat .cite a:hover { text-decoration: underline; }
.aiinputrow { display: flex; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--line); background: #fff; }
.aiinputrow input { flex: 1; }
.aiinputrow .btn { white-space: nowrap; }
.aisugs { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 20px 16px; background: #fbfcfe; }

/* ---------- 移动端 ---------- */
@media (max-width: 900px) {
  .docwrap { grid-template-columns: 1fr; }
  .doctree { position: static; max-height: 320px; }
  .detail { grid-template-columns: 1fr; }
  .topbar { padding: 0 16px; gap: 12px; overflow-x: auto; }
  main { padding: 16px 14px 88px; }
  .docpage { padding: 28px 22px 40px; }
  .ovhero { padding: 24px 22px; }
  .ovhero h1 { font-size: 22px; }
  .fab { right: 16px; bottom: 16px; padding: 12px 18px; }
  .aidialog { max-height: 92vh; border-radius: 16px; }
}

/* ===== 三层大纲（一级 › 二级 › 条目） ===== */
.sortrow { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.sortrow select { flex: 1; font-size: 12.5px; padding: 5px 8px; }
.l2box { margin-bottom: 2px; }
.l2 {
  display: flex; align-items: center; gap: 6px; padding: 7px 10px;
  border-radius: 7px; font-size: 12.5px; color: var(--muted);
  cursor: pointer; user-select: none;
}
.l2:hover { background: #f6f8fc; color: var(--text-2); }
.l2 .caret { width: 10px; font-size: 10px; }
.l2 span:nth-child(2) { flex: 1; }
.l2 .cnt { font-size: 11.5px; opacity: .75; }
.treelink { display: flex; align-items: baseline; gap: 8px; padding: 6px 10px 6px 30px; }
.treelink .tt { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.treelink .dt { font-size: 11.5px; color: var(--muted); flex-shrink: 0; font-variant-numeric: tabular-nums; }

/* ===== 实时填写内容 ===== */
.livehead { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin-bottom: 12px; flex-wrap: wrap; }
.livehead b { color: var(--text); font-weight: 600; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #2fbf71; box-shadow: 0 0 0 3px rgba(47,191,113,.15); }
.live-time { margin-left: auto; font-size: 12px; }
.livebody { display: flex; flex-direction: column; }
.liverow { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; padding: 11px 2px; border-bottom: 1px dashed var(--line); cursor: pointer; }
.liverow:last-child { border-bottom: none; }
.liverow:hover { background: #fafbfd; }
.lv-main { min-width: 0; }
.lv-title { font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-meta { font-size: 12px; color: var(--muted); }
.lv-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.lv-time { font-size: 12px; color: var(--muted); white-space: nowrap; }

/* ============================================================
   UI 精修 v2（按设计系统规范：1.25 字号阶梯 / 4px 网格 / 三级阴影）
   ============================================================ */
:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --line: #e6eaf2;
  --line-strong: #d5dbe7;
  --text: #0f172a;
  --text-2: #475569;
  --muted: #94a3b8;
  --brand: #2563eb;
  --brand-weak: #eef4ff;
  --ok: #059669;
  --warn: #b45309;
  --warn-weak: #fff7ed;
  --bad: #dc2626;
  --radius: 16px;
  --radius-sm: 10px;
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, .08), 0 2px 4px -2px rgba(15, 23, 42, .06);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, .08), 0 4px 6px -4px rgba(15, 23, 42, .06);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, .1), 0 8px 10px -6px rgba(15, 23, 42, .08);
  --ease: cubic-bezier(.4, 0, .2, 1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: radial-gradient(1200px 600px at 50% -10%, #ffffff 0%, #f5f7fb 55%, #f1f4fa 100%) fixed;
}

/* 焦点可达性 */
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn:focus-visible, .tab:focus-visible, .chip:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* 顶栏 */
.topbar {
  height: 64px; padding: 0 32px; gap: 28px;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, .9);
}
.brand { font-size: 16.5px; font-weight: 700; letter-spacing: .2px; display: flex; align-items: center; gap: 8px; }
.brand::before {
  content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.tab { padding: 8px 16px; font-size: 14.5px; font-weight: 500; border-radius: 10px; }
.tab:hover { background: rgba(241, 245, 249, .9); }
.tab.active { background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.me { font-size: 13px; }

/* 主体容器 */
main { max-width: 1160px; padding: 28px 24px 104px; }

/* 概览 hero */
.ovhero {
  padding: 40px 44px 36px; border-radius: 22px; border-color: var(--line);
  box-shadow: var(--shadow-md);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}
.ovhero h1 { font-size: 32px; line-height: 1.25; font-weight: 700; letter-spacing: -.02em; }
.ovsub { font-size: 14px; color: var(--text-2); margin: 10px 0 24px; }
.ovask { max-width: 680px; gap: 12px; }
.ovask input {
  height: 48px; padding: 0 16px; font-size: 15px; border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.ovask .btn { height: 48px; padding: 0 24px; border-radius: 12px; font-weight: 600; }

/* 卡片与面板 */
.panel { padding: 24px; border-radius: 18px; box-shadow: var(--shadow-sm); }
.panel h3 { font-size: 15px; font-weight: 600; margin-bottom: 16px; letter-spacing: .1px; }
.cards { gap: 14px; }
.stat {
  padding: 20px 22px; border-radius: 16px; box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat .num { font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.stat .lbl { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

/* AI 卡 */
.aicard { border-color: #dbe7fb; background: linear-gradient(180deg, #fbfdff 0%, #ffffff 60%); }
.aihead { font-size: 13px; margin-bottom: 14px; }
.aibody .digest { font-size: 15.5px; line-height: 1.95; color: var(--text-2); }
.aibadge { height: 22px; padding: 0 9px; font-size: 11px; letter-spacing: .8px; border-radius: 7px; }

/* 文档区 */
.doctop { margin-bottom: 18px; }
.dt-left b { font-size: 19px; letter-spacing: -.01em; }
.dt-sub { font-size: 12.5px; }
.docwrap { grid-template-columns: 288px minmax(0, 1fr); gap: 22px; }
.doctree { padding: 16px; border-radius: 16px; box-shadow: var(--shadow-sm); }
.doctree input { height: 38px; font-size: 13px; margin-bottom: 12px; }
.l1 { padding: 9px 12px; border-radius: 10px; font-size: 14px; background: transparent; color: var(--text); }
.l1:hover { background: #f4f7fd; }
.l1 .cnt { background: #f1f5f9; border-radius: 20px; padding: 1px 8px; font-size: 11px; }
.l2 { padding: 7px 10px 7px 14px; border-radius: 8px; font-size: 12.5px; }
.l2:hover { background: #f7f9fd; }
.treelink {
  padding: 7px 10px 7px 30px; border-radius: 8px; font-size: 13.5px;
  border-left: 2px solid transparent; margin-left: 6px;
  transition: background .15s var(--ease), border-color .15s var(--ease);
}
.treelink:hover { background: #f7f9fd; }
.treelink.active { background: var(--brand-weak); border-left-color: var(--brand); font-weight: 600; }
.treelink .dt { font-size: 11px; }

.docpage {
  padding: 48px 56px 64px; border-radius: 18px; box-shadow: var(--shadow-md);
}
.docpage h1 { font-size: 30px; line-height: 1.3; letter-spacing: -.01em; margin-bottom: 18px; }
.docbody { max-width: 74ch; }
.docbody p { font-size: 16px; line-height: 1.95; margin-bottom: 14px; color: #1e293b; letter-spacing: .005em; }
.aisum { padding: 16px 18px; border-radius: 14px; font-size: 14.5px; line-height: 1.85; }
.linkchip { border-radius: 7px; padding: 2px 9px; font-size: 13px; }

/* 按钮 */
.btn { border-radius: 10px; padding: 10px 18px; font-weight: 600; font-size: 14px; }
.btn.primary { box-shadow: 0 1px 2px rgba(37, 99, 235, .25); }
.btn.primary:hover { background: #1d4ed8; border-color: #1d4ed8; }
.btn.small { padding: 7px 14px; font-size: 13px; border-radius: 9px; }

/* 输入 */
input, textarea, select { border-radius: 10px; padding: 10px 12px; }
select { cursor: pointer; }

/* 弹窗 */
.aidialog { border-radius: 22px; box-shadow: 0 32px 64px -12px rgba(15, 23, 42, .35); animation: dlgIn .22s var(--ease); }
@keyframes dlgIn { from { opacity: 0; transform: translateY(12px) scale(.99); } to { opacity: 1; transform: none; } }
.aiheadbar { padding: 18px 22px; }
.aiheadbar .t { font-size: 15px; }
.aichat { padding: 22px; gap: 16px; }
.aichat .bubble { padding: 13px 16px; border-radius: 16px; font-size: 14.5px; line-height: 1.85; }
.aichat .bubble.user { border-bottom-right-radius: 6px; }
.aichat .bubble.bot { border-bottom-left-radius: 6px; box-shadow: var(--shadow-sm); }
.aiinputrow { padding: 16px 18px; }
.aiinputrow input { height: 44px; }
.aiinputrow .btn { height: 44px; padding: 0 22px; }

/* 表格 */
th { font-size: 12px; text-transform: none; letter-spacing: .2px; }
td { font-size: 13.5px; }
tbody tr { transition: background .15s var(--ease); }

/* 悬浮按钮 */
.fab { border-radius: 999px; padding: 14px 24px; box-shadow: 0 12px 28px -6px rgba(37, 99, 235, .45); }

/* 滚动条 */
.doctree::-webkit-scrollbar, .aichat::-webkit-scrollbar, .rawtext::-webkit-scrollbar { width: 8px; }
.doctree::-webkit-scrollbar-thumb, .aichat::-webkit-scrollbar-thumb, .rawtext::-webkit-scrollbar-thumb {
  background: #dbe2ee; border-radius: 4px;
}
.doctree::-webkit-scrollbar-thumb:hover, .aichat::-webkit-scrollbar-thumb:hover { background: #c6d0e0; }

/* 动效降级 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media (max-width: 900px) {
  .topbar { height: 58px; padding: 0 16px; }
  main { padding: 20px 14px 92px; }
  .ovhero { padding: 26px 22px; border-radius: 18px; }
  .ovhero h1 { font-size: 25px; }
  .docpage { padding: 28px 22px 44px; }
  .docpage h1 { font-size: 23px; }
  .docbody p { font-size: 15.5px; line-height: 1.9; }
}

/* 防止 tab 选中时边框导致抖动 */
.tab { border: 1px solid transparent; }
.tab.active { border-color: var(--line); }

/* ============================================================
   概览：分区（会议纪要卡片 + 问答）
   ============================================================ */
.ovsection { margin-top: 32px; }
.sec-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.sec-head h2 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; color: var(--text); }
.sec-sub { font-size: 12.5px; color: var(--muted); }

.meetgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(262px, 1fr)); gap: 14px; }
.meetcard {
  display: flex; flex-direction: column; gap: 9px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 20px 20px 16px; cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.meetcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d7e3fb; }
.mc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mc-date { font-size: 12.5px; font-weight: 600; color: var(--brand); font-variant-numeric: tabular-nums; letter-spacing: .2px; }
.mc-tag { font-size: 11.5px; color: var(--text-2); background: #f1f5f9; border-radius: 20px; padding: 2px 9px; white-space: nowrap; }
.mc-title { font-size: 15.5px; font-weight: 600; line-height: 1.55; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mc-sum {
  font-size: 13px; line-height: 1.75; color: var(--text-2);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.mc-foot { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: auto; padding-top: 6px; }
.mc-more { color: var(--brand); font-weight: 500; }

.qalist { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.qaitem { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 2px; border-bottom: 1px dashed var(--line); font-size: 13.5px; color: var(--text-2); cursor: pointer; transition: color .15s var(--ease); }
.qaitem:last-child { border-bottom: none; }
.qaitem:hover { color: var(--brand); }
.qaitem .qq { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qa-time { font-size: 12px; color: var(--muted); white-space: nowrap; }

@media (max-width: 700px) {
  .meetgrid { grid-template-columns: 1fr; }
  .sec-head h2 { font-size: 17px; }
}

/* ===== 概览 v3：标题带条数 / 三张全文卡 / 最近提问 ===== */
.ovtitle { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ovcount { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.meetlist { display: flex; flex-direction: column; gap: 18px; }
.meetcard.big { padding: 26px 30px 22px; gap: 10px; cursor: pointer; }
.meetcard.big .mc-title { font-size: 19px; -webkit-line-clamp: unset; display: block; }
.mc-body { margin-top: 4px; }
.mc-body p {
  font-family: "Songti SC", "SimSun", "宋体", serif;
  font-size: 15.5px; line-height: 1.95; color: #1e293b;
  margin-bottom: 10px; max-width: 78ch; word-break: break-word;
}
.mc-body p:last-child { margin-bottom: 0; }
.meetcard.big .mc-foot { padding-top: 12px; border-top: 1px dashed var(--line); margin-top: 6px; }

.qlist { display: flex; flex-direction: column; gap: 2px; }
.qitem {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 12px; cursor: pointer;
  background: var(--card); border: 1px solid var(--line);
  font-size: 14px; color: var(--text-2);
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.qitem:hover { background: #fbfdff; border-color: #d7e3fb; color: var(--brand); }
.qi-dot { width: 6px; height: 6px; border-radius: 50%; background: #c7d2e4; flex-shrink: 0; }
.qi-text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qi-time { font-size: 12px; color: var(--muted); white-space: nowrap; }

@media (max-width: 700px) {
  .meetcard.big { padding: 20px 18px; }
  .meetcard.big .mc-title { font-size: 17px; }
  .mc-body p { font-size: 15px; }
}

/* 会议纪要卡片：限制高度，底部渐隐 + 查看全文 */
.meetcard.big .mc-body { position: relative; max-height: 210px; overflow: hidden; }
.meetcard.big .mc-body::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 64px;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #fff 88%);
  pointer-events: none;
}
.meetcard.big .mc-foot { border-top: none; padding-top: 4px; }
.meetcard.big .mc-foot .mc-more { color: var(--brand); font-weight: 500; }

/* ===== 概览：两栏会议 + 方法论 ===== */
.meetgrid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.meetcard.full { cursor: pointer; }
.meetcard.full .mc-body { max-height: none; overflow: visible; }
.meetcard.full .mc-body::after { display: none; }
.meetcard.full .mc-title { font-size: 18px; -webkit-line-clamp: unset; display: block; }
.meetcard.full .mc-body p { font-size: 14.5px; line-height: 1.9; margin-bottom: 9px; }
.meetcard.full .mc-foot { border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 8px; }

.methodgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.meetcard.method { cursor: pointer; }
.meetcard.method .mc-body { max-height: none; overflow: visible; }
.meetcard.method .mc-body::after { display: none; }
.meetcard.method .mc-body p { font-size: 14.5px; line-height: 1.9; margin-bottom: 9px; }
.brandtag { background: var(--brand-weak); color: var(--brand); font-weight: 600; }

@media (max-width: 860px) {
  .meetgrid2 { grid-template-columns: 1fr; }
}

/* ============================================================
   版式 v3：撑开页面 + 放大字号（回应"只占中间一坨/字太小"）
   ============================================================ */
main { max-width: min(1560px, 92vw); padding: 32px 40px 112px; }

/* 概览区更饱满 */
.ovhero { padding: 44px 48px 40px; }
.ovhero h1, .ovtitle { font-size: 36px; }
.ovcount { font-size: 16px; }
.ovsub { font-size: 15px; }
.ovask { max-width: 760px; }
.ovask input { height: 52px; font-size: 16px; }
.ovask .btn { height: 52px; padding: 0 30px; font-size: 15px; }

/* 卡片字体与间距 */
.panel { padding: 28px 30px; }
.panel h3 { font-size: 16px; }
.sec-head h2 { font-size: 22px; }
.sec-sub { font-size: 13.5px; }
.meetcard { padding: 24px 26px 20px; gap: 10px; }
.meetcard.full .mc-title, .meetcard.method .mc-title { font-size: 19px; }
.mc-date { font-size: 13.5px; }
.mc-tag { font-size: 12.5px; padding: 3px 10px; }
.meetcard.full .mc-body p, .meetcard.method .mc-body p {
  font-size: 16px; line-height: 2; margin-bottom: 12px; max-width: none;
}
.mc-foot { font-size: 12.5px; }

/* 文档页：左右都撑开，正文更大 */
.docwrap { grid-template-columns: 320px minmax(0, 1fr); gap: 24px; }
.doctree { padding: 18px 16px; }
.l1 { font-size: 15px; padding: 10px 12px; }
.l2 { font-size: 13.5px; }
.treelink { font-size: 14.5px; padding: 8px 10px 8px 30px; }
.treelink .dt { font-size: 12px; }
.docpage { padding: 52px 64px 72px; }
.docpage h1 { font-size: 34px; line-height: 1.32; }
.docbody { max-width: 92ch; }
.docbody p { font-size: 17.5px; line-height: 2.05; margin-bottom: 16px; }
.aisum { font-size: 15.5px; line-height: 1.9; padding: 18px 20px; }

/* 列表与表格 */
.stat .num { font-size: 32px; }
.stat .lbl { font-size: 13.5px; }
.lv-title { font-size: 15px; }
.lv-meta { font-size: 12.5px; }
th { font-size: 13px; }
td { font-size: 14px; padding: 12px; }

@media (max-width: 1100px) {
  main { max-width: 96vw; padding: 24px 20px 96px; }
  .docwrap { grid-template-columns: 280px minmax(0, 1fr); }
  .docpage { padding: 36px 30px 48px; }
  .docpage h1 { font-size: 27px; }
  .docbody p { font-size: 16.5px; }
}
@media (max-width: 900px) {
  main { padding: 18px 14px 92px; }
  .docwrap { grid-template-columns: 1fr; }
  .ovhero { padding: 28px 22px; }
  .ovhero h1, .ovtitle { font-size: 26px; }
  .meetcard.full .mc-body p, .meetcard.method .mc-body p { font-size: 15.5px; }
  .docbody p { font-size: 16px; line-height: 1.95; }
}

/* ============================================================
   版式 v4：收回字号，重做比例（避免"老年机大字"）
   ============================================================ */
main { max-width: min(1380px, 90vw); padding: 28px 36px 104px; }
body { font-size: 14.5px; line-height: 1.65; }

.ovhero { padding: 34px 38px 30px; border-radius: 18px; }
.ovhero h1, .ovtitle { font-size: 28px; line-height: 1.3; }
.ovcount { font-size: 14px; }
.ovsub { font-size: 13.5px; margin: 8px 0 20px; }
.ovask { max-width: 620px; }
.ovask input { height: 44px; font-size: 14.5px; }
.ovask .btn { height: 44px; padding: 0 22px; font-size: 14px; }

.sec-head h2 { font-size: 18px; }
.sec-sub { font-size: 12.5px; }

.panel { padding: 22px 24px; border-radius: 16px; }
.panel h3 { font-size: 14.5px; }

.meetcard { padding: 20px 22px 16px; gap: 8px; border-radius: 14px; }
.meetcard.full .mc-title, .meetcard.method .mc-title { font-size: 16.5px; line-height: 1.5; }
.mc-date { font-size: 12.5px; }
.mc-tag { font-size: 11.5px; }
.meetcard.full .mc-body p, .meetcard.method .mc-body p {
  font-size: 15px; line-height: 1.9; margin-bottom: 10px;
}
.mc-foot { font-size: 12px; }

.docwrap { grid-template-columns: 296px minmax(0, 1fr); gap: 20px; }
.doctree { padding: 14px 12px; }
.l1 { font-size: 14px; padding: 8px 10px; }
.l2 { font-size: 12.5px; }
.treelink { font-size: 13.5px; padding: 7px 10px 7px 28px; }
.treelink .dt { font-size: 11.5px; }

.docpage { padding: 40px 48px 52px; border-radius: 16px; }
.docpage h1 { font-size: 27px; line-height: 1.35; margin-bottom: 14px; }
.docbody { max-width: 86ch; }
.docbody p { font-size: 16px; line-height: 1.92; margin-bottom: 12px; }
.aisum { font-size: 14px; line-height: 1.8; padding: 14px 16px; margin: 14px 0 18px; }

.stat { padding: 16px 18px; border-radius: 14px; }
.stat .num { font-size: 26px; }
.stat .lbl { font-size: 12.5px; }

.lv-title { font-size: 14px; }
th { font-size: 12.5px; }
td { font-size: 13.5px; padding: 10px 12px; }

@media (max-width: 1100px) {
  main { max-width: 96vw; padding: 22px 20px 92px; }
  .docwrap { grid-template-columns: 264px minmax(0, 1fr); }
  .docpage { padding: 30px 26px 40px; }
  .docpage h1 { font-size: 24px; }
  .docbody p { font-size: 15.5px; }
}
@media (max-width: 900px) {
  main { padding: 16px 14px 88px; }
  .docwrap { grid-template-columns: 1fr; }
  .ovhero { padding: 24px 20px; }
  .ovhero h1, .ovtitle { font-size: 23px; }
  .meetcard.full .mc-body p, .meetcard.method .mc-body p { font-size: 14.5px; }
  .docbody p { font-size: 15.5px; line-height: 1.85; }
}

/* ===== 类目管理（拖动） ===== */
.catboard { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.catcard {
  background: #fbfcfe; border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px 12px; transition: border-color .15s var(--ease), background .15s var(--ease);
}
.catcard:hover { border-color: #cfe0fb; }
.catcard.dragover { border-color: var(--brand); background: var(--brand-weak); }
.cathead { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 10px; cursor: grab; }
.cathead b { flex: 1; font-weight: 600; }
.ch-drag { color: #c2cbd9; font-size: 13px; }
.ch-cnt { font-size: 11.5px; color: var(--muted); }
.catchips { display: flex; flex-wrap: wrap; gap: 7px; min-height: 24px; }
.catchip {
  display: inline-flex; align-items: center; gap: 5px;
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 4px 10px; font-size: 12.5px; color: var(--text-2); cursor: grab;
  transition: border-color .15s var(--ease), color .15s var(--ease);
}
.catchip:hover { border-color: #bcd0f0; color: var(--brand); }
.catchip i { font-style: normal; font-size: 11px; color: var(--muted); background: #f1f5f9; border-radius: 10px; padding: 0 6px; }
.catadd { display: flex; gap: 6px; margin-top: 10px; }
.catadd input { height: 32px; font-size: 12.5px; padding: 4px 10px; }
.catadd .btn { padding: 5px 12px; font-size: 12.5px; }

/* 类目管理：条目拖拽 */
.catchip { position: relative; padding-right: 26px; }
.catchip .cedit { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); font-size: 10.5px; color: #c7d0de; opacity: 0; }
.catchip:hover .cedit { opacity: 1; }
.catchip.over { border-color: var(--brand); background: var(--brand-weak); }
.catchip.open { border-color: var(--brand); color: var(--brand); }
.catentries { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 8px; display: flex; flex-direction: column; gap: 4px; max-height: 220px; overflow: auto; }
.catentry {
  display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px;
  font-size: 12.5px; color: var(--text-2); background: #fff; border: 1px solid var(--line);
  cursor: grab;
}
.catentry:hover { border-color: #bcd0f0; color: var(--brand); }
.ce-drag { color: #c9d2df; font-size: 11px; }
.ce-t { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ce-d { font-size: 11px; color: var(--muted); }

/* ===== 行距微调：正文更紧凑，段间更清晰 ===== */
body { line-height: 1.7; }
.docbody p { line-height: 1.85; margin-bottom: 14px; }
.meetcard.full .mc-body p, .meetcard.method .mc-body p { line-height: 1.85; margin-bottom: 12px; }
.rawtext { line-height: 1.85; }
.docbody strong, .mc-body strong, .rawtext strong { font-weight: 700; color: #111827; }

/* ===== 概览 hero：左侧标题搜索 + 右侧两块快捷卡 ===== */
.ovhero { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.ovhero-main { flex: 1; min-width: 320px; }
.ovquick { display: flex; gap: 12px; flex: 0 0 auto; }
.quickcard {
  width: 148px; min-height: 76px; padding: 14px 16px; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  cursor: pointer; display: flex; flex-direction: column; gap: 4px;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease), transform .15s var(--ease);
}
.quickcard:hover { border-color: #bcd0f0; box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.quickcard b { font-size: 14.5px; color: var(--text); font-weight: 600; }
.quickcard span { font-size: 12px; color: var(--muted); }
.quickcard.on { border-color: var(--brand); background: var(--brand-weak); }
.quickcard.on b { color: var(--brand); }

/* 隐藏日期 */
body.hide-date .mc-date, body.hide-date .treelink .dt, body.hide-date .chip-static.dt { display: none; }

@media (max-width: 900px) {
  .ovhero { gap: 18px; }
  .ovquick { width: 100%; }
  .quickcard { flex: 1; width: auto; min-height: 64px; }
}

/* ===== 实时北京时间卡 ===== */
.quickcard.clockcard {
  cursor: default; justify-content: center; gap: 2px;
  background: linear-gradient(160deg, #ffffff 0%, #f7fbff 100%);
  border-color: #e2ebfa;
}
.quickcard.clockcard:hover { transform: none; box-shadow: var(--shadow-sm); border-color: #e2ebfa; }
.ck-time {
  font-size: 25px; font-weight: 600; color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: .5px; line-height: 1.15;
  font-feature-settings: "tnum" 1;
}
.ck-date { font-size: 11.5px !important; color: var(--muted) !important; letter-spacing: .3px; }

/* ============================================================
   视觉精修 v5（去秒 / 层级强化 / 留白节奏）
   ============================================================ */
/* 时钟卡：时间当主视觉 */
.quickcard.clockcard {
  width: 168px;
  align-items: flex-start; justify-content: center;
  padding: 16px 18px;
  background:
    radial-gradient(120% 120% at 100% 0%, #f2f7ff 0%, rgba(255,255,255,0) 60%),
    #fff;
  border-color: #e3ecfa;
}
.ck-time {
  font-size: 34px; font-weight: 700; letter-spacing: .5px; line-height: 1.1;
  color: #0f172a; font-variant-numeric: tabular-nums;
}
.ck-date { font-size: 11.5px !important; color: #8b96a8 !important; margin-top: 2px; }

/* 区块标题：加一条短竖条，层级更清楚 */
.sec-head { align-items: center; gap: 10px; margin-bottom: 18px; position: relative; padding-left: 12px; }
.sec-head::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 17px; border-radius: 2px; background: var(--brand);
}
.sec-head h2 { letter-spacing: -.01em; }

/* 卡片：边线更柔、悬停更轻 */
.meetcard { border-color: #e9eef7; box-shadow: 0 1px 2px rgba(15,23,42,.03); }
.meetcard:hover { border-color: #cfdffa; box-shadow: 0 10px 22px -14px rgba(15,23,42,.35); }

/* 快捷卡统一尺寸与手感 */
.quickcard { border-color: #e6ecf7; }
.quickcard b { letter-spacing: .2px; }

/* hero 底色更通透 */
.ovhero {
  background:
    radial-gradient(90% 140% at 0% 0%, #f7fbff 0%, rgba(255,255,255,0) 55%),
    #fff;
  border-color: #e8eefa;
}

/* 区块淡入 */
.ovsection { animation: secIn .28s var(--ease) both; }
@keyframes secIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* 目录：hover 更细腻 */
.doctree { border-color: #e9eef7; }
.treelink { transition: background .14s var(--ease), color .14s var(--ease), padding-left .14s var(--ease); }
.treelink:hover { padding-left: 32px; }

/* 正文首段稍作强调，阅读更聚焦 */
.docbody > p:first-child { color: #14181f; }

/* ===== 概览顶部：标题行 + 搜索 + 右侧卡 ===== */
.ovtitles { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.ovtitles .ovtitle { font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.ovpill {
  background: var(--brand-weak); color: var(--brand);
  font-size: 12.5px; font-weight: 600; border-radius: 20px; padding: 2px 10px;
}
.ovupd { font-size: 12.5px; color: var(--muted); }
.ovask input { max-width: 100%; }
.ovhero { align-items: flex-end; }

/* ===== 附件 ===== */
.filebox { margin: 18px 0 4px; }
.filelabel { font-size: 12px; color: var(--muted); margin-bottom: 8px; letter-spacing: .3px; }
.filerow { display: flex; flex-wrap: wrap; gap: 8px; }
.filechip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: #fff; border-radius: 10px;
  padding: 7px 12px; font-size: 13px; color: var(--text-2);
  text-decoration: none; cursor: pointer; max-width: 320px;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.filechip:hover { border-color: #bcd0f0; background: #fbfdff; color: var(--brand); }
.filechip .fi {
  font-size: 10px; font-weight: 700; letter-spacing: .3px;
  color: var(--brand); background: var(--brand-weak);
  border-radius: 5px; padding: 2px 5px; flex-shrink: 0;
}
.filechip .fn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filechip .fs { font-size: 11.5px; color: var(--muted); flex-shrink: 0; }

/* ===== AI 大脑：核心文档 ===== */
.srcitem { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 6px; background: #fbfcfe; }
.srcdot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.srcdot.on { background: #2fbf71; }
.srcdot.off { background: #c7d0de; }
.srctitle { flex: 1; font-size: 13.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== 提效方法库编辑器 ===== */
.effmask { position: fixed; inset: 0; background: rgba(18,22,32,.45); display: flex; align-items: center; justify-content: center; z-index: 85; padding: 16px; }
.effdlg { width: 100%; max-width: 640px; max-height: 88vh; overflow: auto; background: #fff; border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.efflist { display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow: auto; }
.effitem { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 13.5px; }
.effitem:hover { border-color: #bcd0f0; }
.effitem.sel { border-color: var(--brand); background: var(--brand-weak); }

/* ===== 提效库页面（每条一个框） ===== */
.effgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.effcard { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 10px; }
.effhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.effhead h3 { font-size: 16px; font-weight: 600; color: var(--text); margin: 0; }
.effops { display: flex; gap: 4px; opacity: 0; transition: opacity .15s var(--ease); }
.effcard:hover .effops { opacity: 1; }
.effcard.add {
  border-style: dashed; border-color: #c5cfe0; align-items: center; justify-content: center;
  min-height: 140px; color: var(--muted); gap: 6px; cursor: pointer;
  background: transparent; box-shadow: none;
  transition: border-color .15s var(--ease), color .15s var(--ease), background .15s var(--ease);
}
.effcard.add:hover { color: var(--brand); border-color: #9db9e8; background: #f8fbff; }
.effcard.add .plus { font-size: 30px; line-height: 1; }

/* ===== 登录页 ===== */
.login-brand { font-size: 24px; font-weight: 700; color: var(--brand); letter-spacing: .5px; }
.login-sub { font-size: 13.5px; color: var(--muted); margin: 6px 0 24px; }
.login-card .field label { color: var(--text-2); font-size: 13px; }

/* ===== 推送页 v3：快捷入口 / 人员卡片 / 日历控件 ===== */
.quickstack { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; margin-left: auto; }
.quickpanel { margin: 10px 0 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfe; display: flex; flex-direction: column; gap: 10px; }
.pplgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
.pcard { border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; background: #fff; cursor: pointer; display: flex; flex-direction: column; gap: 6px; transition: border-color .12s, box-shadow .12s, background .12s; }
.pcard b { font-size: 13.5px; }
.pcardgr { font-size: 11.5px; color: var(--muted); }
.pcard:hover { border-color: #bcd0f0; }
.pcard.sel { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(47,85,151,.12); background: #f5f9ff; }
.grrow { display: flex; gap: 4px; flex-wrap: wrap; }
.gchip { font-size: 11px; padding: 2px 8px; border-radius: 999px; border: 1px solid #dfe6f0; background: #fff; color: #6b7785; cursor: pointer; }
.gchip.on { background: var(--brand-weak); border-color: #bcd0f0; color: var(--brand); font-weight: 600; }
.calbox { padding: 12px 4px 4px; }
.calnav { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.cal-title { font-size: 13px; font-weight: 600; }
.calgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; max-width: 340px; }
.calhd { font-size: 11px; color: var(--muted); text-align: center; padding: 2px 0; }
.calcell { border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 12px; padding: 6px 0; cursor: pointer; color: var(--text); }
.calcell.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.mongrid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; max-width: 430px; }
.resultpanel { min-height: 340px; }
.tasklist { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.taskrow { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.taskbody { flex: 1; min-width: 0; }
.taskhead { font-size: 14px; }
.tasksnippet { font-size: 12.5px; color: var(--muted); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== 推送页 v4：两栏布局 ===== */
.pushgrid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.pushgrid > .panel { margin: 0; }
.pcardgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.inline3 { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 8px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { font-size: 12.5px; padding: 4px 11px; border-radius: 999px; border: 1px solid #dfe6f0; background: #fff; color: var(--text); cursor: pointer; }
.pill.on { background: var(--brand); color: #fff; border-color: var(--brand); }
@media (max-width: 960px) { .pushgrid { grid-template-columns: 1fr; } }

/* ===== 推送页 v5：两栏等高 / 收件人同行 / 间隔天数 / 待办条 ===== */
.pushgrid { align-items: stretch; }
.pushgrid > .panel { height: 100%; display: flex; flex-direction: column; }
.todobanner { margin: 0 0 14px; padding: 12px 16px; border-radius: 12px; background: #fff8e6; border: 1px solid #ffe1a8; color: #8a5a00; font-size: 13.5px; line-height: 1.7; }
.todobanner b { color: #ad6800; }
.pickrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; padding: 4px 0 2px; }
.pickgroup { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.picklabel { font-size: 12px; color: var(--muted); flex-shrink: 0; }
.intervalbox { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; }
.ivlabel { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; color: var(--text); }

/* ===== 推送日期：模式切换 + 每周几 ===== */
.weekgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; max-width: 430px; }

/* ===== 表情选择器 ===== */
.emojibar { margin: 6px 0 2px; }
.emojigrid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; margin-top: 6px; max-width: 520px; }
.emoji { border: 1px solid var(--line); background: #fff; border-radius: 8px; font-size: 16px; line-height: 1; padding: 6px 0; cursor: pointer; }
.emoji:hover { background: var(--brand-weak); border-color: #bcd0f0; }

/* ===== 推送任务标签页（胶囊）+ 日志筛选 ===== */
.tabpill { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px; font-size: 13px; cursor: pointer; color: #4e5969; transition: all .12s; }
.tabpill:hover { border-color: #bcd0f0; }
.tabpill.on { background: var(--brand); color: #fff; border-color: var(--brand); font-weight: 600; }

/* ===== 管理页吸顶快捷栏 ===== */
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 16px; }
.admin-head h2 { font-size: 22px; margin: 0 0 5px; }
.admin-head p { margin: 0; color: var(--muted); font-size: 13px; }
.admin-links { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-links a { text-decoration: none; white-space: nowrap; }
.admin-settings > .hint { margin: -7px 0 0; }
.adminnav { position: sticky; top: var(--admin-sticky-top, 80px); z-index: 20; display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 12px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); box-shadow: 0 6px 18px rgba(20,40,80,.06); }
.navpill { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 12px; font-size: 12.5px; cursor: pointer; color: #4e5969; }
.navpill:hover { border-color: #bcd0f0; background: var(--brand-weak); color: var(--brand); }
.panel[id^="sec-"] { scroll-margin-top: var(--admin-scroll-offset, 150px); }

/* ===== 管理页：拖拽手柄 + 版本页脚 ===== */
.panelwrap { display: flex; flex-direction: column; }
.draghandle { float: right; cursor: grab; color: #b9c5d6; font-size: 15px; line-height: 1; padding: 2px 4px; user-select: none; }
.draghandle:active { cursor: grabbing; }
.panel.dragging { opacity: .55; border-style: dashed; }
.verfoot { text-align: center; color: var(--muted); font-size: 12.5px; padding: 20px 0 8px; }

/* ===== 快捷栏药丸拖拽 ===== */
.navpill { cursor: grab; user-select: none; }
.navpill:active { cursor: grabbing; }
.navpill.dragging { opacity: .5; }
@media (max-width: 760px) { .admin-head { align-items: flex-start; flex-direction: column; } .adminnav { flex-wrap: nowrap; overflow-x: auto; } .adminnav .navpill { flex: none; } }

/* ===== Excel 风格表头筛选 ===== */
.hfilterrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 8px; }
.hfilter { position: relative; }
.hfilter-head { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 6px 12px; font-size: 13px; cursor: pointer; color: var(--text); max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hfilter-head:hover { border-color: #bcd0f0; }
.hfilter-pop { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; width: 240px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 28px rgba(20,40,80,.12); padding: 8px; }
.hfilter-search { width: 100%; box-sizing: border-box; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; font-size: 12.5px; margin-bottom: 6px; }
.hfilter-list { max-height: 220px; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.hopt { text-align: left; border: none; background: none; padding: 6px 8px; border-radius: 6px; font-size: 12.5px; cursor: pointer; color: var(--text); }
.hopt:hover { background: var(--brand-weak); }
.hopt.on { background: var(--brand); color: #fff; }
.attbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ===== 附件 chips ===== */
.attlist { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.attchip { display: inline-flex; align-items: center; gap: 6px; background: var(--brand-weak); color: var(--brand); border-radius: 999px; padding: 3px 6px 3px 10px; font-size: 12.5px; }
.attchip-x { border: none; background: rgba(47,85,151,.12); color: var(--brand); border-radius: 999px; width: 18px; height: 18px; line-height: 1; cursor: pointer; font-size: 13px; }
.attchip-x:hover { background: #c0392b; color: #fff; }

/* 任务行操作按钮常显（此前 effops 只在卡片 hover 时可见） */
.taskrow .effops { opacity: 1; flex-shrink: 0; }
.taskdates { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.taskdates-full { font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.7; }
.datetoggle { color: var(--brand); cursor: pointer; text-decoration: none; margin-left: 4px; }

/* ===== 顶栏版本徽标 ===== */
.verchip { margin-left: auto; margin-right: 14px; font-size: 11.5px; color: var(--muted); background: #f3f6fb; border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; cursor: default; white-space: nowrap; letter-spacing: .2px; }
.verchip.stale { color: #b45309; background: #fff7e6; border-color: #ffe0a3; cursor: pointer; }

/* 自生长/缺口行内操作按钮常显 */
.effitem .effops { opacity: 1; flex-shrink: 0; }

/* ===== 文档正文：Word 版式（连续、紧凑、像纸张） ===== */
.docbody.worddoc { max-width: 88ch; margin-top: 10px; }
.docbody.worddoc p {
  font-size: 15.5px; line-height: 1.95; margin: 0 0 10px; text-indent: 0;
  color: #1f2328; letter-spacing: .004em;
}
.docbody.worddoc p:last-child { margin-bottom: 0; }
.docbody.worddoc p.num { padding-left: 0; }
/* 编号段落更紧凑，视觉上连成一篇 */
.docbody.worddoc p:has(> strong) { margin-bottom: 8px; }

/* ===== 文档连续流（Word 式多条目） ===== */
.docstream-h { display: flex; align-items: baseline; gap: 10px; margin: 2px 0 14px; }
.docstream-h b { font-size: 18px; }
.docsec { padding: 16px 0 24px; border-bottom: 1px dashed #e6ebf3; }
.docsec:last-child { border-bottom: none; }
.docsec-date { font-size: 12.5px; color: var(--muted); letter-spacing: .8px; }
.docsec-h { font-size: 22px; margin: 2px 0 8px; line-height: 1.35; }
.docsec.cur { background: #f7fbff; box-shadow: inset 3px 0 0 var(--brand); padding-left: 14px; border-radius: 8px; }
.l2box.cur > .l2 { color: var(--brand); font-weight: 600; }

/* ===== 文档页搜索行 + 类目纵向拖拽排序 ===== */
.searchrow { display: flex; gap: 6px; align-items: center; }
.searchrow input { flex: 1; }
.sortlist { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; max-height: 42vh; overflow: auto; padding-right: 2px; }
.sortitem { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: grab; user-select: none; }
.sortitem:hover { border-color: #bcd0f0; background: #f7fbff; }
.sortitem.dragging { opacity: .55; border-style: dashed; }
.sortitem .grip { color: #b9c5d6; font-size: 15px; }
.sortitem .sname { flex: 1; font-size: 13.5px; }

/* 类目管理行内按钮常显 */
.sortitem .effops { opacity: 1; flex-shrink: 0; }
.sortitem .effops .btn { padding: 4px 8px; font-size: 12px; }

/* 危险操作按钮 */
.btn.danger { color: #c0392b; border-color: #f0c9c3; }
.btn.danger:hover { background: #fdf0ee; border-color: #c0392b; }

/* 分组标题（全部内容按类目分组） */
.grouphead { font-weight: 700; color: #0f172a; }
.grouphead.l1 { font-size: 20px; margin: 22px 0 4px; padding-top: 10px; border-top: 2px solid #e8eef7; }
.grouphead.l1:first-of-type { border-top: none; margin-top: 6px; }
.grouphead.l2 { font-size: 14.5px; color: var(--brand); margin: 14px 0 6px; font-weight: 600; }

/* 版本更新提示：红底大字 */
.verchip.stale { background: #c0392b; color: #fff; border-color: #a93226; font-weight: 700; font-size: 13px; padding: 5px 14px; cursor: pointer; box-shadow: 0 2px 8px rgba(192,57,43,.28); }
.verchip.stale:hover { background: #a93226; }

/* 文档块：媒体懒加载 */
.mediaload { margin-top: 10px; }
.mediaload .btn { font-size: 12.5px; }

/* 管理页状态条 */
.statusbar { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.sbitem { font-size: 13px; color: #374151; }
.sbitem b { color: var(--brand); }
.sbitem.ok { color: #1E8449; font-weight: 600; }
.sbitem.bad { color: #C0392B; font-weight: 600; }
/* 提效库：编辑/删除常显 */
.effcard .effops { opacity: 1; flex-shrink: 0; }
/* 轻提示 */
.toast { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); background: #1f2937; color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 13px; z-index: 9999; box-shadow: 0 8px 24px rgba(0,0,0,.18); transition: opacity .25s; }
.toast.out { opacity: 0; }
/* 左树「全部内容」节点 */
.treelink.allnode { font-weight: 600; color: var(--brand); border-bottom: 1px dashed var(--line); margin-bottom: 6px; }

/* 文档图片：直接显示，网格排列 */
.mediaload { margin-top: 10px; }
.imgrid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.imgrid .evidence { width: auto; max-width: 220px; max-height: 160px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); cursor: zoom-in; margin: 0; }

/* 管理页分组切换 */
.grouprow { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 10px; }
.grouprow .navpill { padding: 6px 16px; font-size: 13.5px; }
.grouprow .navpill.on { background: var(--brand); color: #fff; border-color: var(--brand); font-weight: 600; }

/* AI 大脑：内部三块合并后的容器 */
.aiwrap { padding-top: 14px; }
.aiwrap > .panel { border: none; box-shadow: none; padding: 0; margin: 0; background: transparent; }

/* AI 大板块（在线状态 + 设定 + 学习 + 盲区 + 分类字段 叠在一起） */
.ai-panel { padding-bottom: 18px; }
.ai-status { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 10px 12px; margin-bottom: 8px; background: #f7fafd; border: 1px solid var(--line); border-radius: 10px; }
.ai-status .hint { font-size: 12.5px; }
.sec-h { margin: 18px 0 8px; padding-left: 10px; border-left: 3px solid var(--brand); font-weight: 700; font-size: 14px; color: #0f172a; }
.ai-panel > .panel { border: none; box-shadow: none; padding: 0; background: transparent; }

/* AI 状态行的小绿点 */
.ai-dot { font-weight: 700; font-size: 13.5px; }

/* 提效库标签 */
.tagbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.tagchip { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13px; color: #374151; cursor: pointer; }
.tagchip:hover { border-color: var(--brand); color: var(--brand); }
.tagchip.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.tagchip.ghost { border-style: dashed; color: var(--muted); }
.tagcnt { opacity: .7; font-size: 11.5px; }
.efftags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 2px; }
.tagmini { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: #eef4fd; color: var(--brand); }
.tagpick { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.tagpickitem {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto; white-space: nowrap;
  padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; color: #374151; background: #fff; cursor: pointer;
  transition: all .15s; user-select: none;
}
.tagpickitem input { position: absolute; opacity: 0; width: 0; height: 0; }
.tagpickitem:hover { border-color: var(--brand); color: var(--brand); }
.tagpickitem.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.tagpickitem.on:hover { color: #fff; }

/* 推送：文字转图片开关（小号内联，不占整行） */
.imgmode-row {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 8px 0 0; font-size: 12.5px; color: var(--muted);
  cursor: pointer; width: auto;
}
.imgmode-row input { width: 14px; height: 14px; margin: 0; }

/* 实时内容来源标记 */
.lv-src { display: inline-block; font-size: 10.5px; padding: 1px 6px; border-radius: 4px; margin-right: 6px; vertical-align: 1px; }
.lv-src.doc { background: #eef4fd; color: var(--brand); }
.lv-src.eff { background: #eafaf1; color: #1E8449; }

/* 提效库卡片 v2：更紧凑、带边框、图标操作 */
.effgrid { gap: 12px; }
.effcard {
  padding: 14px 14px 12px;
  border: 1px solid #DCE3EC;
  border-radius: 12px;
  background: #fff;
}
.effhead2 { display: flex; align-items: flex-start; gap: 8px; }
.effhead2 h3 { font-size: 15px; font-weight: 600; line-height: 1.35; margin: 0; flex: 1; min-width: 0; }
.effgrip { flex: 0 0 auto; margin-top: 3px; color: #B4B2A9; cursor: grab; }
.effhead2 .effops { opacity: 1; gap: 2px; flex-shrink: 0; margin-top: -2px; }
.iconbtn {
  width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center;
  border: none; background: transparent; border-radius: 6px; color: #9AA6B6; cursor: pointer; padding: 0;
}
.iconbtn:hover { background: #F1F5FA; color: #2F5597; }
.iconbtn.danger:hover { background: #FDF0EE; color: #C0392B; }
.effmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.effmeta .tagmini { font-size: 11px; padding: 2px 8px; }
.effauthor2 { font-size: 11.5px; color: #9AA6B6; }
.mc-body2 { font-size: 13px; line-height: 1.55; margin-top: 8px; }
.effcard.dragging { opacity: .55; }
.sortwrap { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.sortsel { font-size: 12.5px; padding: 5px 8px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: #374151; }

/* 提效库 v3：字号上调 + 标题与标签贴近 */
.effhead2 h3 { font-size: 16px; }
.effmeta { margin-top: 4px; gap: 5px; }
.effmeta .tagmini { font-size: 12px; padding: 2px 8px; }
.effauthor2 { font-size: 12px; }
.mc-body2 { font-size: 14px; line-height: 1.6; margin-top: 6px; }
.sorthint { margin-left: auto; font-size: 12px; color: var(--muted); }

/* 辅助书籍区块（嵌在设定里，紧跟在核心文档下方） */
.auxblock { margin-top: 4px; padding-top: 6px; border-top: 1px dashed var(--line); }
.auxblock .effitem { padding: 8px 0; border-bottom: 1px solid #F0F3F7; }
.auxblock .effitem:last-child { border-bottom: none; }

/* 处理日志 */
.qalog { padding: 10px 0; border-bottom: 1px solid #F0F3F7; }
.qalog:last-child { border-bottom: none; }
.qalog-head { display: flex; align-items: flex-start; gap: 10px; }
.qalog-q { flex: 1; min-width: 0; font-size: 13.5px; }
.qalog-q .hint { margin-top: 2px; }
.qalog-a { margin-top: 8px; padding: 10px 12px; background: #F7FAFD; border-radius: 8px; font-size: 13px; line-height: 1.6; white-space: pre-wrap; color: #374151; }
