/* 客户案例库 · 独立版样式（无框架，手写） · 2026 重新设计（含目录侧边栏） */
:root {
  --brand: #2563eb;
  --brand-2: #0ea5e9;
  --brand-soft: #eff6ff;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #e9edf3;
  --line-2: #d6dde8;
  --bg: #f5f7fb;
  --card: #ffffff;
  --red: #e11d48;
  --green: #10b981;
  --orange: #f59e0b;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 8px 22px rgba(15, 23, 42, .08);
  --shadow-lg: 0 18px 48px rgba(15, 23, 42, .16);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body { min-height: 100vh; }

a { color: var(--brand); text-decoration: none; transition: color .15s; }
a:hover { color: #4338ca; }
button { font: inherit; cursor: pointer; transition: all .15s; border: none; outline: none; }

/* ---------------- 顶部导航（全宽渐变横幅） ---------------- */
.top {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 2px 10px rgba(15, 23, 42, .05);
}
.top .logo {
  width: 38px; height: 38px; border-radius: 10px; overflow: hidden;
  background: transparent; padding: 0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: none;
}
.top .logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.top h1 { margin: 0; font-size: 19px; font-weight: 800; color: var(--ink); letter-spacing: .4px; }
.top .sub { font-size: 12.5px; color: var(--muted); font-weight: 400; margin-top: 1px; }
.top .sp { flex: 1; }
.top .link {
  font-size: 13px; font-weight: 600; color: var(--brand); padding: 8px 16px;
  border: 1px solid var(--line-2); border-radius: 10px;
  background: #f8fafc; white-space: nowrap;
}
.top .link:hover {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand);
}

/* ---------------- 通用容器（全宽铺满） ---------------- */
.wrap { width: 100%; max-width: none; padding: 24px 32px 64px; }

.bar {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.bar input, .bar select {
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: #ffffff;
  font: inherit;
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  font-weight: 400;
}
.bar select { flex: 0 0 128px; width: 128px; min-width: 0; max-width: 128px; cursor: pointer; }
.bar input { flex: 1 1 180px; min-width: 150px; max-width: 300px; }
.bar .btn { height: 36px; padding: 0 14px; flex: 0 0 auto; }
.bar .btn.ghost { padding: 0 12px; }
.bar input:focus, .bar select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, .12);
}
.bar input::placeholder { color: var(--faint); }
.bar .cnt {
  margin-left: auto;
  color: var(--faint);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}

.btn {
  font-size: 13px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid var(--line-2);
  background: #ffffff;
  color: var(--text);
  transition: all .15s;
}
.btn:hover { border-color: var(--brand); color: var(--brand); }
.btn.pri {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 16px rgba(79, 70, 229, .30);
}
.btn.pri:hover { background: linear-gradient(135deg, #1d4ed8, #0369a1); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--bg); }
/* 「清除全部筛选」是重置类操作，用红色字体提示 */
#btnClearFilter { color: #d93025; }
#btnClearFilter:hover { color: #b3241b; background: rgba(217, 48, 37, .08); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.empty {
  padding: 72px 20px;
  text-align: center;
  color: var(--faint);
  font-size: 14px;
  font-weight: 400;
}
.empty::before { content: "📭"; display: block; font-size: 34px; margin-bottom: 10px; opacity: .7; }

/* ---------------- 卡片（员工端） ---------------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }

.card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex;
  flex-direction: column;
  min-height: 120px;
  box-shadow: var(--shadow-sm);
}
.card:hover {
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
  border-bottom: 1px solid var(--line);
  padding: 22px 12px;
}
.card-icon svg {
  width: 34px;
  height: 34px;
  stroke: var(--brand);
  stroke-width: 1.6;
  fill: none;
}
.card-icon .ext {
  font-size: 12px;
  font-weight: 800;
  color: var(--brand);
  text-transform: uppercase;
  background: #fff;
  border: 2px solid var(--brand);
  border-radius: 9px;
  padding: 4px 9px;
  letter-spacing: .5px;
}

.card-body {
  flex: 1;
  padding: 14px 15px 15px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.card-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 4px;
}
.card-summary {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--faint);
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid #f3f4f8;
}
.card-footer .tag {
  padding: 3px 9px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #475569;
  font-weight: 600;
}
.card-footer .tag.c {
  background: var(--brand-soft);
  color: var(--brand);
}
.card .new {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(225, 29, 72, .4);
}

.kb {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  padding: 0 7px;
  border-radius: 6px;
  color: #fff;
}

/* 没文件、只有文字内容时的角标 */
.txt-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 18px;
  padding: 0 8px;
  border-radius: 6px;
  color: var(--brand);
  background: var(--brand-soft);
}

/* ---------------- 表格（管理端） ---------------- */
.panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13.5px; }
th {
  background: #f8fafc;
  color: var(--muted);
  font-weight: 700;
  font-size: 12.5px;
  padding: 14px 10px;
  border-bottom: 1.5px solid var(--line);
  white-space: nowrap;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
td {
  padding: 14px 10px;
  border-bottom: 1px solid #f1f5f9;
  text-align: center;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: #fafbff; }
td.t { text-align: left; white-space: normal; }
td .nm { font-weight: 700; color: var(--ink); font-size: 14px; }
/* 人员与积分表：整体居中 */
.emp-table th, .emp-table td, .emp-table td.t { text-align: center; }
.emp-table td .ops { justify-content: center; }
td .sm { font-size: 12px; color: var(--muted); margin-top: 4px; font-weight: 500; }
.ops { display: flex; gap: 8px; justify-content: center; }
.mini {
  font-size: 13px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: none;
  color: var(--brand);
}
.mini:hover { background: var(--brand-soft); }
.mini.del { color: var(--red); }
.mini.del:hover { background: #fff1f2; }
.mini[disabled] { color: #cbd5e1; cursor: default; background: none; opacity: 0.6; }

/* ---- 列表页：表头冻结 + 分页 ---- */
.list-panel { display: flex; flex-direction: column; }
.table-scroll {
  max-height: calc(100vh - 300px);
  min-height: 180px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
/* 冻结表头：滚动时始终贴住顶部 */
.table-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  /* sticky 状态下 border 会随内容一起滚走，这里用内阴影画分隔线 */
  border-bottom: 0;
  box-shadow: inset 0 -1.5px 0 var(--line);
}
.list-table th, .list-table td { padding-left: 14px; padding-right: 14px; }
/* 内容名称列：表头居中（th 全局居中），下面的案例名靠左 */
.list-table td.t { text-align: left; }
/* 批量删除复选框 */
.list-table th:first-child, .list-table td:first-child { padding-left: 6px; padding-right: 6px; text-align: center; }
.list-table input[type=checkbox] { width: 16px; height: 16px; cursor: pointer; accent-color: var(--brand); vertical-align: middle; }
/* 太窄时保证列不被压扁，改为表格内横向滚动 */
.list-table { min-width: 960px; }
/* 详细说明列：最多两行，超出省略，鼠标悬停看全文（title） */
.cdesc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  white-space: normal;
  text-align: left;
  line-height: 1.5;
  color: var(--muted);
  font-size: 12.5px;
  cursor: help;
  word-break: break-word;
}
.cdesc.clickable { cursor: pointer; }
.cdesc.clickable:hover { color: var(--brand); text-decoration: underline; }
/* 成交案例「客户购买产品」列：跟其它列一致居中显示（两端表格类名不同，都要覆盖） */
.list-table td.cj-prod .cdesc,
.lib-table td.cj-prod .cdesc { text-align: center; }
/* 成交案例「成交公司名 / 客户行业 / 资源来源」：值可能较长，最多两行、居中 */
.list-table td.cj-wrap .cdesc,
.lib-table td.cj-wrap .cdesc { text-align: center; }
/* 成交案例「成交公司名」列：表头居中（走全局 th 规则），数据内容（含「—」占位）靠左 */
.list-table.cj-mode td.cj-left,
.lib-table td.cj-left { text-align: left; }
.list-table td.cj-left .cdesc,
.lib-table td.cj-left .cdesc { text-align: left; }
/* 成交案例 13 列：表头允许换行、单元格收窄，避免挤在一起（只在 cj-mode 下生效） */
.list-table.cj-mode th { white-space: normal; padding: 12px 6px; font-size: 12px; }
.list-table.cj-mode td { padding: 12px 6px; }
/* 涉密标记 */
.sec-tag {
  display: inline-block;
  margin-left: 5px;
  padding: 1px 6px;
  border-radius: 6px;
  background: #fef3f2;
  color: #b42318;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  vertical-align: 1px;
}
/* 编辑弹窗：案例素材分组标题 */
.form-section-title {
  margin: 4px 0 12px;
  padding-left: 10px;
  border-left: 3px solid var(--brand);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
/* 列表详细说明点击放大 */
.text-dlg { max-width: 760px; }
.text-dlg .text-body {
  max-height: 60vh;
  overflow: auto;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
  color: var(--text);
  font-size: 14px;
  line-height: 1.9;
  white-space: pre-wrap;
  word-break: break-word;
}
/* 笔记本屏：操作按钮收一点，给三列按钮留够位置 */
@media (max-width: 1366px) {
  .list-table .mini { padding: 4px 7px; font-size: 12.5px; }
  .list-table .ops { gap: 5px; }
}

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 11px 16px;
  border-top: 1px solid var(--line);
  background: #ffffff;
  font-size: 12.5px;
  color: var(--muted);
}
.pager .pg-left { display: flex; align-items: center; gap: 6px; }
.pager select {
  height: 30px;
  padding: 0 6px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: #ffffff;
  font: inherit;
  font-size: 12.5px;
  color: var(--text);
  cursor: pointer;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.pager select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79, 70, 229, .12); }
.pager .pg-total { color: var(--faint); }
.pager .pg-center { color: var(--muted); font-size: 12.5px; }
.pager .pg-center b { color: var(--brand); font-size: 14px; padding: 0 2px; }
.pager .pg-right { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pg-btn {
  min-width: 30px;
  height: 30px;
  padding: 0 9px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: #ffffff;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
}
.pg-btn:hover:not([disabled]) { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.pg-btn.on {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-color: transparent;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(79, 70, 229, .25);
}
.pg-btn[disabled] { opacity: .45; cursor: not-allowed; }
.pg-dots { color: var(--faint); padding: 0 2px; }
@media (max-width: 760px) {
  .table-scroll { max-height: none; }
  .pager { justify-content: center; }
}
/* 设置页四模块：冻结表头的滚动区 + 分页条 */
.set-scroll { max-height: calc(100vh - 330px); min-height: 120px; }
.set-pager { border-top: 1px solid var(--line); }
.noti-list { padding: 4px 12px 12px; }

/* ---------------- 弹窗 ---------------- */
.mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .5);
  backdrop-filter: blur(2px);
  z-index: 60;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 20px;
  overflow: auto;
}
.dlg {
  background: #ffffff;
  border-radius: 18px;
  width: 100%;
  max-width: 640px;
  padding: 26px 28px 22px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.dlg h3 {
  margin: 0 0 18px;
  font-size: 18px;
  color: var(--ink);
  font-weight: 750;
}
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin-bottom: 14px; }
.fld label { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.fld input, .fld textarea, .fld select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: #ffffff;
  font: inherit;
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  font-weight: 400;
}
.fld textarea { resize: vertical; min-height: 64px; line-height: 1.65; }
.fld input:focus, .fld textarea:focus, .fld select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, .12);
}
.fld input::placeholder, .fld textarea::placeholder { color: var(--faint); }
.fhint { font-size: 12px; color: var(--muted); line-height: 1.5; margin-top: -1px; }
.dlgft { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }

.fzone {
  border: 1.5px dashed #cbd5e1;
  border-radius: 12px;
  padding: 22px;
  text-align: center;
  cursor: pointer;
  background: #fbfcfe;
  transition: border .15s, background .15s;
}
.fzone:hover, .fzone.over {
  border-color: var(--brand);
  background: #f5f3ff;
}
.fzone .zt { font-size: 14px; color: var(--ink); font-weight: 600; }
.fzone .zh { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.6; font-weight: 400; }
.fitem { display: flex; align-items: center; gap: 12px; text-align: left; }
.fitem .fi { flex: 1; min-width: 0; }
.fitem .fn {
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fitem .fs { font-size: 12px; color: var(--muted); margin-top: 2px; font-weight: 400; }
.prog {
  height: 6px;
  border-radius: 4px;
  background: var(--line);
  overflow: hidden;
  margin-top: 10px;
}
.prog i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  width: 0;
  transition: width .15s;
}

/* ---------------- 批量上传 ---------------- */
.dlg.wide { max-width: 820px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-bottom: 12px; }
.bttl { font-size: 12.5px; color: var(--muted); font-weight: 600; margin: 18px 0 8px; }
.bttl span { color: var(--faint); font-weight: 400; }
.blink {
  color: var(--brand);
  font-weight: 650;
  cursor: pointer;
  border-bottom: 1px dashed rgba(79, 70, 229, .5);
}
.bhead { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 8px; }
.bsum { font-size: 12.5px; color: var(--muted); }
.bfiles {
  display: none;
  max-height: 208px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.brow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}
.brow:last-child { border-bottom: none; }
.brow .bext {
  flex: none;
  width: 44px;
  height: 26px;
  border-radius: 7px;
  background: #eef2ff;
  color: var(--brand);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .3px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brow .bi { flex: 1; min-width: 0; }
.brow .bn {
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brow .bs {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bprog { margin: 4px 0 14px; }
.bpt {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 900px) {
  .row3 { grid-template-columns: 1fr; }
  .dlg.wide { max-width: 96vw; padding: 20px; }
}

/* ---------------- 查看器 ---------------- */
.viewer { position: fixed; inset: 0; z-index: 80; background: #0b1020; display: flex; flex-direction: column; }
.vhd { display: flex; align-items: center; gap: 12px; padding: 11px 18px; background: #111827; color: #e5e7eb; flex: 0 0 auto; }
.vhd .vt { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46vw; }
.vhd .vm { font-size: 12px; color: #9aa4b2; white-space: nowrap; }
.vhd .sp { flex: 1; }
.vhd .vb { font-size: 12.5px; padding: 6px 13px; border-radius: 8px; border: 1px solid #374151; background: transparent; color: #e5e7eb; white-space: nowrap; }
.vhd .vb:hover { background: #1f2937; }
.vbd { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 16px; overflow: auto; }
.vbd.dark { padding: 0; background: #000; }
.vbd img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.vbd video { max-width: 100%; max-height: 100%; background: #000; outline: none; }
.vbd iframe { width: 100%; height: 100%; border: 0; background: #fff; border-radius: 12px; }
.vbd.dark iframe { border-radius: 0; }

/* 纯文字内容（没有文件时看这个） */
.vbd.doc { display: block; overflow: auto; padding: 26px 18px 46px; }
.vtext {
  max-width: 880px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 34px 40px 30px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, .38);
  color: var(--text);
}
.vtext .vth { font-size: 20px; font-weight: 700; color: var(--ink); line-height: 1.5; }
.vtext .vtm { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.vtext .vtm i { font-style: normal; margin: 0 7px; color: var(--line-2); }
.vtext .vsum {
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--brand-soft);
  border-left: 3px solid var(--brand);
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text);
  white-space: pre-wrap;
}
.vtext .vsum b { display: block; font-size: 11.5px; font-weight: 600; color: var(--brand); margin-bottom: 3px; letter-spacing: .3px; }
.vtext .vbody {
  margin-top: 20px;
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}
.vtext .vbody.empty { color: var(--faint); font-size: 13px; }
.vtext .vtf { margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); }

/* 顶栏「文件 / 详细内容」切换 */
.vhd .vtab { display: flex; gap: 2px; padding: 2px; border-radius: 9px; background: #1f2937; }
.vhd .vtab button {
  font: inherit;
  font-size: 12.5px;
  padding: 5px 13px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #9aa4b2;
  cursor: pointer;
}
.vhd .vtab button:hover { color: #e5e7eb; }
.vhd .vtab button.on { background: #374151; color: #fff; font-weight: 600; }
.aud { background: #fff; border-radius: 18px; padding: 30px 38px; display: flex; flex-direction: column; align-items: center; gap: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.35); min-width: 320px; }
.aud .ai { width: 58px; height: 58px; border-radius: 50%; background: #ecfdf3; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.aud .an { font-size: 13.5px; color: var(--text); max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tip { color: #e5e7eb; text-align: center; font-size: 13.5px; line-height: 2; }
.tip .t2 { color: var(--faint); font-size: 12.5px; }
.tip a { color: #fff; background: var(--brand); padding: 8px 20px; border-radius: 9px; display: inline-block; margin-top: 10px; font-size: 13px; }

/* ---------------- 登录 ---------------- */
.login { min-height: calc(100vh - 70px); display: flex; align-items: center; justify-content: center; padding: 20px; background: linear-gradient(135deg, #eff6ff, #ecfeff); }
.login .box { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px 30px 26px; width: 100%; max-width: 380px; box-shadow: var(--shadow-lg); }
.login h2 { margin: 0 0 6px; font-size: 18px; color: var(--ink); font-weight: 700; }
.login p { margin: 0 0 18px; font-size: 12.5px; color: var(--faint); font-weight: 400; }

.toast {
  position: fixed;
  z-index: 200;
  right: 24px;
  top: 78px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow);
}
.toast.ok {
  background: #ecfdf3;
  color: #027a48;
  border: 1px solid #abefc6;
}
.toast.err {
  background: #fef3f2;
  color: #b42318;
  border: 1px solid #fecdca;
}

@media (max-width: 760px) {
  .wrap { padding: 16px 14px 48px; }
  .top { padding: 12px 16px; }
  .top h1 { font-size: 16px; }
  .top .sub { display: none; }
  .bar input { max-width: none; }
  .row2 { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
}

/* ---------------- 左右布局（目录侧边栏） ---------------- */
.layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.sidebar {
  flex: 0 0 220px;
  background: linear-gradient(165deg, #e4edff 0%, #d3e2fb 100%);
  border: 1px solid #c3d5f0;
  border-radius: 16px;
  padding: 16px 0;
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 116px);
  overflow-y: auto;
  box-shadow: 0 3px 14px rgba(37, 99, 235, .12);
}

.sidebar-header {
  padding: 0 18px 12px;
  border-bottom: 1px solid #c8d8f0;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-header h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-header h3::before {
  content: "";
  width: 4px; height: 14px; border-radius: 3px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
}

.cat-item {
  padding: 10px 12px;
  margin: 2px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e3eaf5;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .05);
}

/* 二级目录：缩进 + 更轻的底色 */
.cat-item.cat-lvl2 {
  margin-left: 30px;
  margin-right: 10px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 400;
  background: rgba(255, 255, 255, .85);
  box-shadow: none;
}
.cat-item.cat-lvl2.active { font-weight: 600; }

/* 选中子目录时，父级一行给个弱提示 */
.cat-item.ancestor:not(.active) {
  color: var(--brand);
  background: var(--brand-soft);
}

/* 左栏分两块：作战工具 / 成交案例，中间一条分割线断开 */
.cat-sep {
  height: 1px;
  margin: 14px 20px 12px;
  background: rgba(91, 123, 168, .32);
}

/* 展开箭头 */
.cat-item .cat-toggle {
  width: 14px;
  height: 14px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  border-radius: 4px;
  transition: transform .16s, color .16s;
}
.cat-item .cat-toggle.blank { visibility: hidden; }
.cat-item .cat-toggle:hover { color: var(--brand); background: rgba(79,70,229,.10); }
.cat-item .cat-toggle.open { transform: rotate(90deg); }

.cat-item:hover {
  background: var(--brand-soft);
  border-color: #c7dcff;
  color: var(--brand);
}

.cat-item.active {
  background: linear-gradient(135deg, rgba(79,70,229,.14), rgba(124,58,237,.14));
  color: var(--brand);
  font-weight: 700;
  box-shadow: inset 2px 0 0 var(--brand);
}

/* 目录拖拽排序 */
.cat-item[draggable=true] { cursor: grab; }
.cat-item[draggable=true]:active { cursor: grabbing; }
.cat-item.dragging { opacity: .4; }
.cat-item.drag-over { box-shadow: inset 0 2px 0 var(--brand), inset 0 -2px 0 var(--brand); background: var(--brand-soft); }

.cat-item .cat-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cat-item .cat-ops {
  display: none;
  gap: 4px;
}
.cat-item:hover .cat-ops { display: flex; }
.cat-ops button {
  font-size: 12px;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  background: #fff;
  color: var(--muted);
  font-weight: 500;
}
.cat-ops button:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.add-cat-btn {
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: #ffffff;
  color: var(--brand);
}
.add-cat-btn:hover {
  background: var(--brand-soft);
  border-color: var(--brand);
}

.main-content {
  flex: 1;
  min-width: 0;
}

@media (max-width: 900px) {
  .layout { flex-direction: column; }
  .sidebar {
    flex: 0 0 auto;
    position: static;
    max-height: 280px;
    width: 100%;
  }
}

/* 设置页面 */
.settings-layout {
  display: flex;
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.settings-sidebar {
  flex: 0 0 200px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 0;
  height: fit-content;
  box-shadow: var(--shadow-sm);
}

.settings-menu-item {
  padding: 12px 20px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  transition: all .12s;
}
.settings-menu-item:hover {
  background: #f9fafb;
  color: var(--brand);
}
.settings-menu-item.active {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
  border-left: 3px solid var(--brand);
}

.settings-content { flex: 1; min-width: 0; }
.settings-tab {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.settings-header {
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.settings-header h2 { font-size: 20px; font-weight: 700; color: var(--ink); margin: 0; }
.settings-desc { color: var(--muted); font-size: 14px; margin: 8px 0 0 0; }
/* 人员与积分：搜索 / 团队筛选（独立筛选条，和表头分层） */
.settings-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
  padding: 14px 16px;
  background: linear-gradient(180deg, #f8fafc, #f2f6fc);
  border-bottom: 1px solid var(--line);
}
.settings-toolbar input,
.settings-toolbar select {
  padding: 9px 12px;
  border: 1px solid #cfd9e8;
  border-radius: 9px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  outline: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.settings-toolbar input { min-width: 240px; }
.settings-toolbar select { min-width: 140px; }
.settings-toolbar input:focus,
.settings-toolbar select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .14);
}
/* 设置页表头：比主列表更清晰，和筛选条区分开 */
.set-scroll thead th {
  background: linear-gradient(180deg, #f3f7ff, #e9f0fb);
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .3px;
  padding: 13px 10px;
  box-shadow: inset 0 -1.5px 0 #cbd8ec;
}
/* 奖励管理 / 兑换审核：列间距更均匀 */
#scroll-rewards th, #scroll-rewards td,
#scroll-redemptions th, #scroll-redemptions td {
  padding-left: 14px;
  padding-right: 14px;
}
/* 操作日志弹窗 */
.log-scroll { max-height: 58vh; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.log-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.log-table th, .log-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.log-table th { position: sticky; top: 0; z-index: 1; background: #f4f7ff; color: var(--muted); font-weight: 600; }
.log-table tr:last-child td { border-bottom: 0; }
.log-table td.t { text-align: left; }
.log-empty { padding: 40px; text-align: center; color: var(--muted); }
.points-plus { color: var(--green); font-weight: 700; }
.points-minus { color: var(--red); font-weight: 700; }
.settings-form { max-width: 600px; }
.settings-form .fld { margin-bottom: 20px; }
.settings-form .fld label { display: block; font-weight: 500; margin-bottom: 8px; color: var(--text); }
.input-group { display: flex; align-items: center; gap: 8px; }
.input-group input { width: 120px; }
.input-group span { color: var(--muted); font-size: 14px; }

/* ---------------- 顶部导航按钮（案例库 / 积分商城 切换） ---------------- */
.nav-btn { cursor: pointer; }
.nav-btn.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------------- 积分商城（员工端） ---------------- */
.mall-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 22px; flex-wrap: wrap;
}
.mall-user { display: flex; align-items: center; gap: 10px; }
.mall-user .mu-name { font-weight: 700; color: var(--ink); font-size: 14px; }
.mall-user .mu-pts {
  font-weight: 800; color: var(--brand); font-size: 14px;
  background: var(--brand-soft); padding: 4px 12px; border-radius: 20px;
}

.rcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 16px 16px; display: flex; flex-direction: column; gap: 10px;
  box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s, border-color .18s;
}
.rcard:hover { transform: translateY(-3px); border-color: transparent; box-shadow: var(--shadow-lg); }
.ricon {
  width: 54px; height: 54px; border-radius: 14px; font-size: 28px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand-soft), #e0f2fe);
}
.rbody { flex: 1; min-width: 0; }
.rtitle { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.45; }
.rdesc { font-size: 12.5px; color: var(--muted); line-height: 1.6; margin-top: 4px; }
.rfoot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.rcost { font-weight: 800; color: var(--brand); font-size: 15px; }
.rstock { font-size: 12px; color: var(--faint); }
.rstock.off { color: var(--orange); }
.rlimit { font-size: 12px; color: var(--brand); font-weight: 600; }
.rbtn { width: 100%; margin-top: 4px; }
.rbtn:disabled { opacity: .5; cursor: not-allowed; background: #e2e8f0; color: var(--muted); box-shadow: none; }

/* 兑换/通知状态标签 */
.st { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 8px; }
.st-pending { background: #fef3c7; color: #b45309; }
.st-ok { background: #dcfce7; color: #15803d; }
.st-no { background: #fee2e2; color: #b91c1c; }
/* 已被后续重提取代的驳回记录，只作历史留痕，用灰标签区分 */
.st-sup { background: #f1f5f9; color: #64748b; }

/* ---------------- 通知中心 ---------------- */
.noti-badge {
  display: inline-block; min-width: 18px; height: 18px; line-height: 18px; text-align: center;
  background: var(--red); color: #fff; font-size: 11px; font-weight: 700;
  border-radius: 10px; padding: 0 5px; margin-left: 6px; vertical-align: middle;
}
.noti-list { display: flex; flex-direction: column; gap: 12px; }
.noti-item {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; box-shadow: var(--shadow-sm);
}
.noti-item.unread { border-left: 3px solid var(--brand); }
/* 未读通知按类型上色：加分/通过=绿，扣分/驳回=红，消耗=橙 */
.noti-item.unread.noti-add { border-left-color: #16a34a; }
.noti-item.unread.noti-minus { border-left-color: #dc2626; }
.noti-item.unread.noti-spend { border-left-color: #d97706; }
.noti-item.unread.noti-ok { border-left-color: #16a34a; }
.noti-item.unread.noti-reject { border-left-color: #dc2626; }
.noti-title { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.noti-content { font-size: 13px; color: var(--text); line-height: 1.6; }
.noti-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 8px; font-size: 12px; color: var(--faint);
}

/* ---------------- 员工端登录闸门 ---------------- */
.gate {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background:
    radial-gradient(1100px 600px at 85% -15%, #e0f2fe 0%, transparent 55%),
    radial-gradient(900px 520px at -10% 115%, #dbeafe 0%, transparent 55%),
    #eef2f7;
}
.gate-wrap {
  display: flex; width: 880px; max-width: 100%; background: #fff;
  border-radius: 22px; overflow: hidden; box-shadow: 0 30px 80px rgba(15, 23, 42, .20);
}
/* 左侧品牌区 */
.gate-hero {
  position: relative; flex: 0 0 43%; padding: 48px 40px; color: #fff;
  background: linear-gradient(155deg, #1e40af 0%, #2563eb 50%, #0ea5e9 100%);
  display: flex; flex-direction: column;
}
.gate-hero::before, .gate-hero::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.gate-hero::before { width: 230px; height: 230px; right: -70px; top: -60px; }
.gate-hero::after { width: 170px; height: 170px; left: -50px; bottom: -55px; background: rgba(255, 255, 255, .08); }
.hero-brand { display: flex; align-items: center; gap: 12px; position: relative; }
.hero-logo {
  width: 54px; height: 54px; border-radius: 14px; background: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .22);
}
.hero-logo img { width: 44px; height: 44px; border-radius: 10px; }
.hero-name { font-size: 22px; font-weight: 800; letter-spacing: .5px; }
.hero-desc { margin: 20px 0 0; font-size: 15px; line-height: 1.75; color: rgba(255, 255, 255, .92); font-weight: 500; position: relative; }
.hero-list { margin: auto 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; position: relative; }
.hero-list li { display: flex; align-items: center; gap: 11px; font-size: 14px; color: rgba(255, 255, 255, .95); }
.hero-list .ic {
  flex: 0 0 28px; height: 28px; border-radius: 8px; background: rgba(255, 255, 255, .18);
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
/* 右侧表单区 */
.gate-box {
  flex: 1; padding: 52px 48px; text-align: left;
  display: flex; flex-direction: column; justify-content: center;
}
.gate-box .logo { display: none; }
.gate-box h2 { margin: 0 0 6px; font-size: 24px; color: var(--ink); font-weight: 800; }
.gate-sub { margin: 0 0 26px; font-size: 13.5px; color: var(--muted); }
.top .sub.slogan { color: var(--brand); font-weight: 600; letter-spacing: .3px; }
.gate-box .fld { text-align: left; margin-bottom: 16px; }
.gate-box .fld label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.gate-box .fld input {
  width: 100%; box-sizing: border-box; padding: 12px 14px; font-size: 14px;
  border: 1px solid var(--line-2); border-radius: 10px; outline: none;
  background: #fbfdff; transition: border-color .15s, box-shadow .15s, background .15s;
}
.gate-box .fld input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37,99,235,.14); background: #fff; }
.gate-box .btn.pri { width: 100%; padding: 12px; font-size: 15px; font-weight: 700; border-radius: 10px; margin-top: 4px; }
.gate-err { margin-top: 12px; min-height: 16px; color: #d92d20; font-size: 13px; }
.gate-or { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 12px; margin: 14px 0; }
.gate-or::before, .gate-or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
/* 登录页双 tab：账号登录 / 企业微信 */
.gate-tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--line-2); margin: 0 0 22px; }
.gate-tab {
  position: relative; background: none; border: 0; padding: 2px 1px 12px;
  font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer;
  font-family: inherit; transition: color .15s;
}
.gate-tab:hover { color: var(--ink); }
.gate-tab.active { color: var(--brand); font-weight: 700; }
.gate-tab.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--brand); border-radius: 2px;
}
.gate-pane { animation: gatePaneIn .18s ease; }
@keyframes gatePaneIn { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.wecom-pane { text-align: center; padding: 4px 0 2px; }
.wecom-icon {
  width: 58px; height: 58px; margin: 6px auto 14px; border-radius: 50%;
  background: #eef4ff; color: #2563eb;
  display: flex; align-items: center; justify-content: center;
}
.wecom-tip { margin: 0 0 18px; font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.wecom-login-big {
  width: 100%; padding: 12px; border: 0; border-radius: 10px; cursor: pointer;
  background: #1f6feb; color: #fff; font-size: 15px; font-weight: 600;
  font-family: inherit; transition: background .15s, box-shadow .15s;
}
.wecom-login-big:hover { background: #1a5fd0; box-shadow: 0 4px 12px rgba(31,111,235,.28); }
.wecom-login-big:active { transform: translateY(1px); }
.wecom-foot { margin: 14px 0 0; font-size: 12px; color: var(--faint); }
.wecom-off {
  margin-top: 4px; padding: 12px 14px; border-radius: 8px; text-align: left;
  font-size: 12.5px; line-height: 1.65; color: #b45309;
  background: #fffbeb; border: 1px solid #fde68a;
}
.wecom-mock {
  margin: 14px 0 0; padding: 10px 12px; border-radius: 8px; text-align: left;
  font-size: 12.5px; line-height: 1.65; color: #0369a1;
  background: #f0f9ff; border: 1px solid #bae6fd;
}
.gate-box .wecom-btn {
  width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #fff; color: #07c160; border: 1px solid #07c160; font-weight: 600;
  padding: 11px; border-radius: 10px; font-size: 14px; cursor: pointer; transition: background .15s;
}
.gate-box .wecom-btn:hover { background: #f0fff7; }
@media (max-width: 760px) {
  .gate-wrap { flex-direction: column; border-radius: 18px; }
  .gate-hero { display: none; }
  .gate-box { padding: 38px 28px; }
  .gate-box .logo { display: block; margin-bottom: 10px; }
}
@media (max-width: 420px) {
  .gate-box { padding: 30px 20px; }
  .gate-box h2 { font-size: 21px; }
}

/* ---------------- 顶部员工标签 ---------------- */
.emp-tag {
  display: inline-flex; align-items: center; gap: 8px;
  margin-left: 4px; padding: 5px 6px 5px 12px;
  background: #eef4ff; border-radius: 999px; font-size: 13px; color: var(--ink);
}
.emp-tag .et-name { font-weight: 600; }
.emp-tag .et-out {
  border: none; background: var(--brand); color: #fff; cursor: pointer;
  border-radius: 999px; padding: 4px 10px; font-size: 12px;
}
.emp-tag .et-out:hover { opacity: .9; }

/* ---------------- 资料中心类型 tab ---------------- */
.type-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.type-tabs .tt {
  cursor: pointer; padding: 7px 16px; font-size: 14px; border-radius: 999px;
  background: #f1f5fb; color: var(--muted); border: 1px solid transparent; user-select: none;
}
.type-tabs .tt:hover { color: var(--brand); }
.type-tabs .tt.active { background: var(--brand); color: #fff; font-weight: 600; }

/* ---------------- 公告 ---------------- */
.announce {
  margin: 16px 0 14px; background: linear-gradient(135deg, #eef4ff, #f6fbff);
  border: 1px solid #d6e4ff; border-radius: 12px; padding: 14px 16px;
}
.announce .an-head { font-size: 14px; font-weight: 700; color: var(--brand); margin-bottom: 8px; }
.announce .an-item { padding: 8px 0; border-top: 1px dashed #d6e4ff; }
.announce .an-item:first-of-type { border-top: none; }
.announce .an-title { font-size: 14px; font-weight: 600; color: var(--ink); }
.announce .an-content { font-size: 13px; color: var(--text); line-height: 1.6; margin-top: 3px; white-space: pre-wrap; }
.announce .an-time { font-size: 12px; color: var(--faint); margin-top: 3px; }

/* ---------------- 我的 ---------------- */
.mine-head { margin: 16px 0 20px; }
.mine-head .mh-card {
  display: inline-flex; flex-direction: column; gap: 4px;
  padding: 18px 28px; background: linear-gradient(135deg, var(--brand), #0ea5e9);
  border-radius: 14px; color: #fff; box-shadow: 0 10px 26px rgba(37,99,235,.25);
}
.mine-head .mh-name { font-size: 15px; opacity: .92; }
.mine-head .mh-pts { font-size: 30px; font-weight: 800; line-height: 1.1; }

/* ---------------- 资料中心 · 时间筛选 ---------------- */
.bar #fTime { min-width: 108px; }
.bar .dt-range { display: none; align-items: center; gap: 6px; }
.bar .dt-range.show { display: inline-flex; }
.bar .f-date { flex: 0 0 auto; width: 150px; min-width: 0; padding: 0 10px; }
.bar .dt-sep { color: var(--faint); font-size: 12.5px; white-space: nowrap; }

/* ---------------- 员工端通知下拉 ---------------- */
.noti-panel {
  position: fixed;
  top: 70px;
  right: 24px;
  width: 340px;
  max-width: calc(100vw - 32px);
  max-height: 70vh;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  z-index: 120;
}
.noti-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  position: sticky;
  top: 0;
  background: #fff;
}
.noti-empty {
  padding: 40px 16px;
  text-align: center;
  color: var(--faint);
  font-size: 13px;
}
.noti-panel .noti-item { border-radius: 10px; margin: 10px 12px; }

.mine-head .mh-pts span { font-size: 14px; font-weight: 500; opacity: .9; }

/* ---------------- 管理员勾选 / 登录切换 ---------------- */
.chk { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); cursor: pointer; margin: 4px 0 8px; user-select: none; }
.chk input { width: 16px; height: 16px; cursor: pointer; accent-color: var(--brand); }
.login-switch { margin-top: 14px; text-align: center; }
.login-switch a { color: var(--brand); font-size: 12.5px; cursor: pointer; }

/* ---------------- 员工端资料中心 · 表格 ---------------- */
.lib-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  table-layout: fixed;
}
.lib-table th {
  background: #f8fafc;
  color: var(--muted);
  font-weight: 700;
  font-size: 12.5px;
  text-align: center;
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.lib-table td {
  padding: 13px 12px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
  color: var(--text);
  text-align: center;
  vertical-align: middle;
}
/* 列宽按比例分配（9 列：勾选 + 原 8 列），整体居中 */
.lib-table th:nth-child(1) { width: 44px; }
.lib-table th:nth-child(2) { width: 26%; }
.lib-table th:nth-child(3) { width: 9.6%; }
.lib-table th:nth-child(4) { width: 9.6%; }
.lib-table th:nth-child(5) { width: 9.6%; }
.lib-table th:nth-child(6) { width: 8.6%; }
.lib-table th:nth-child(7) { width: 8.6%; }
.lib-table th:nth-child(8) { width: 13.4%; }
.lib-table th:nth-child(9) { width: 10.6%; }
.lib-table tbody tr:last-child td { border-bottom: none; }
.lib-table tbody tr:hover { background: #f8fafc; }
.lib-table .lc-name { text-align: left; }
.lib-table .lc-title {
  color: var(--brand);
  font-weight: 600;
  cursor: pointer;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.45;
  display: inline;
}
.lib-table .lc-name { white-space: normal; word-break: break-word; overflow-wrap: anywhere; }

/* ---- 员工端冻结区：筛选栏 + 提示条 + 表头，逐层钉在顶部导航下方 ----
   1) #stickyHead 包住 .bar 与 .cj-hint，整块 sticky；背景用页面底色遮住下方滚动内容；
   2) .lib-table 原本 overflow:hidden 会给 sticky 造出一个“假滚动容器”，必须放开；
   3) sticky 后 border 会跟着内容滚走，改用内阴影画分隔线；
   4) 各层 top 由 staff.js 按实际高度写入 --top-h / --stick-top。 */
.sticky-head {
  position: sticky;
  top: var(--top-h, 80px);
  z-index: 9;
  background: var(--bg);
  /* 顶掉 .bar 原本的 margin-bottom，改由容器内边距承担，吸顶时这块也跟着冻结 */
  padding-bottom: 18px;
}
.sticky-head .bar { margin-bottom: 0; }
#list > .lib-table { overflow: visible; }
#list > .lib-table thead th {
  position: sticky;
  top: var(--stick-top, 140px);
  z-index: 6;
  border-bottom: 0;
  box-shadow: inset 0 -1.5px 0 var(--line), 0 6px 14px -8px rgba(15, 23, 42, .3);
}
.lib-table .lc-title:hover { text-decoration: underline; }
.lib-table .lc-mat { white-space: normal; word-break: break-word; }
.lib-table .mt-size { font-size: 11.5px; color: var(--text-3); margin-top: 4px; }
.lib-table .mt-plain { color: var(--faint); }
.lib-table .lc-time { color: var(--muted); white-space: nowrap; }
.lib-table .new-mini {
  display: inline-block;
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  margin-right: 6px;
  vertical-align: middle;
}
.lib-table .lc-view {
  background: transparent;
  border: none;
  color: var(--brand);
  font-weight: 600;
  font-size: 13px;
  padding: 4px 2px;
  cursor: pointer;
}
.lib-table .lc-view:hover { text-decoration: underline; }
.lib-table .lc-view:disabled { color: var(--faint); cursor: not-allowed; text-decoration: none; }
.login-switch a:hover { text-decoration: underline; }

/* ---- 预览状态：近似提示与转档命令 ---- */
.pv-banner{max-width:100%;margin:0 0 12px;padding:10px 14px;border-radius:10px;
  background:#fffaeb;border:1px solid #fedf89;color:#b54708;font-size:13px;line-height:1.7}
.pv-banner.bad{background:#fef3f2;border-color:#fda29b;color:#b42318}
.pv-banner .dim{color:#98a2b3;margin-left:4px}
.pv-banner code{background:rgba(0,0,0,.06);padding:1px 6px;border-radius:5px;
  font-size:12px;font-family:ui-monospace,Menlo,Consolas,monospace}
.pv-banner .mini{margin-left:10px;border:1px solid currentColor;background:#fff;color:inherit}
.pmtag{display:inline-block;margin-top:5px;padding:1px 7px;border-radius:6px;
  background:#fffaeb;border:1px solid #fedf89;color:#b54708;font-size:11px;cursor:help}
.cmdbox{margin:8px 0 2px;padding:8px 11px;border-radius:8px;background:#101828;color:#e5e7eb;
  font-family:ui-monospace,Menlo,Consolas,monospace;font-size:12.5px;word-break:break-all}

/* ============================================================
   成交案例模块（9 点模版）
   只作用于「成交案例」这一支目录，其它模块的样式不受影响
   ============================================================ */
.st-tag {
  display: inline-block; padding: 1px 8px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; line-height: 1.7; white-space: nowrap;
}
.st-tag.new { background: #eef6ff; color: #1d6fe0; border: 1px solid #cfe2ff; }
.st-tag.renew { background: #f3fbf2; color: #2f8f3f; border: 1px solid #cfeacb; }

.rv-tag {
  display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 999px;
  font-size: 11px; line-height: 1.7; vertical-align: middle;
}
.rv-tag.pending { background: #fff7e6; color: #b45309; border: 1px solid #fde68a; }
.rv-tag.rejected { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* 员工端「我的待审」提示条 */
.cj-hint {
  margin: 8px 0 0; padding: 7px 12px; font-size: 12.5px; color: #1d6fe0;
  background: #f4f9ff; border: 1px solid #dbeafe; border-radius: 8px;
}

/* 新建/编辑成交案例弹窗 */
.dlg-cj { max-width: 840px; }
.dlg-cj .row2 { grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dlg-cj .fld { margin-bottom: 12px; }

/* 管理端审核弹窗 */
.rv-list { max-height: 60vh; overflow: auto; padding-right: 4px; }
.rv-card {
  border: 1px solid var(--line-2); border-radius: 10px;
  padding: 12px 14px; margin-bottom: 12px; background: #fff;
}
.rv-hd { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.rv-hd b { font-size: 14px; }
.rv-meta { font-size: 12px; color: var(--text-3); }
.rv-dl {
  display: grid; grid-template-columns: 110px 1fr; gap: 5px 12px;
  font-size: 12.5px; margin: 0 0 12px;
}
.rv-dl dt { color: var(--text-3); }
.rv-dl dd { margin: 0; white-space: pre-wrap; word-break: break-word; }
.rv-ops { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
/* 审核卡片：通过时管理员自己填奖励积分（0 = 只发布不加分） */
.rv-pts {
  display: inline-flex; align-items: center; gap: 6px;
  margin-right: auto; font-size: 12.5px; color: var(--text-3);
}
.rv-pts input {
  width: 66px; padding: 6px 8px; text-align: center;
  border: 1px solid var(--line-2); border-radius: 8px;
  font: inherit; font-size: 13px; color: var(--text); background: #fff; outline: none;
}
.rv-pts input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79, 70, 229, .12); }
.rv-pts i { font-style: normal; color: var(--faint); }
/* 审核卡片：签单人逐人积分分配 */
.rv-award {
  margin-top: 10px; padding: 10px 12px;
  background: var(--bg-soft, #f7f8fc); border: 1px dashed var(--line-2); border-radius: 10px;
}
.rv-award-hd { font-size: 12.5px; font-weight: 500; color: var(--text); margin-bottom: 8px; }
.rv-award-hd i { font-style: normal; font-weight: 400; color: var(--faint); }
.rv-award-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 5px 0;
}
.rv-award-row + .rv-award-row { border-top: 1px solid var(--line-2); }
.rv-award-name {
  flex: 0 0 88px; font-size: 12.5px; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rv-award-emp {
  flex: 1 1 160px; min-width: 130px; height: 32px; padding: 0 8px;
  border: 1px solid var(--line-2); border-radius: 8px;
  font: inherit; font-size: 12.5px; color: var(--text); background: #fff; outline: none;
}
.rv-award-emp:focus { border-color: var(--brand); }
.rv-award-emp option[value="0"] { color: #c0392b; }
.rv-award-pts { flex: 0 0 auto; font-size: 12.5px; color: var(--text-3); white-space: nowrap; }
.rv-award-pts input {
  width: 58px; padding: 5px 6px; text-align: center;
  border: 1px solid var(--line-2); border-radius: 8px;
  font: inherit; font-size: 12.5px; color: var(--text); background: #fff; outline: none;
}
.rv-award-pts input:focus { border-color: var(--brand); }
.rv-award-empty { margin-top: 8px; font-size: 12px; color: var(--faint); }
@media (max-width: 560px) {
  .rv-award-name { flex-basis: 100%; }
  .rv-award-emp { flex-basis: 100%; }
}

/* 查看器里的 9 点要素 */
.cj-grid { display: flex; flex-direction: column; margin-top: 4px; }
.cj-row {
  display: grid; grid-template-columns: 152px 1fr; gap: 14px;
  padding: 10px 0; border-bottom: 1px dashed var(--line-2);
}
.cj-row:last-child { border-bottom: 0; }
.cj-k { color: var(--text-3); font-size: 13px; }
.cj-v { white-space: pre-wrap; word-break: break-word; font-size: 13.5px; }
.cj-empty { color: var(--text-4); font-style: normal; }

/* 员工端成交案例表：10 列（已去掉「内容名称」），表头允许换行，整体压缩 */
.lib-table.cj-table { table-layout: fixed; }
.lib-table.cj-table th { white-space: normal; padding: 11px 8px; font-size: 12px; }
.lib-table.cj-table td { padding: 11px 8px; font-size: 12.5px; }
.lib-table.cj-table th:nth-child(1) { width: 4%; }
.lib-table.cj-table th:nth-child(2) { width: 7.5%; }
.lib-table.cj-table th:nth-child(3) { width: 7.5%; }
.lib-table.cj-table th:nth-child(4) { width: 8.5%; }
.lib-table.cj-table th:nth-child(5) { width: 7.5%; }
.lib-table.cj-table th:nth-child(6) { width: 7.5%; }
.lib-table.cj-table th:nth-child(7) { width: 12.5%; }
.lib-table.cj-table th:nth-child(8) { width: 8.5%; }
.lib-table.cj-table th:nth-child(9) { width: 11.5%; }
.lib-table.cj-table th:nth-child(10) { width: 11.5%; }
.lib-table.cj-table th:nth-child(11) { width: 12.5%; }
.lib-table.cj-table .lc-ops { white-space: nowrap; }
.lib-table.cj-table .lc-edit { margin-left: 6px; }
.lib-table.cj-table .rv-tag { margin-left: 4px; }

/* 批量下载：勾选列（员工端两张表通用） */
.lib-table .ck-th, .lib-table .ck-td {
  width: 44px; min-width: 44px; max-width: 44px; padding: 0 0 0 6px !important;
  text-align: center;
}
.lib-table .ck-th input, .lib-table .ck-td input {
  width: 15px; height: 15px; margin: 0; cursor: pointer; vertical-align: middle;
}
.lib-table .ck-td input:disabled { cursor: not-allowed; opacity: .3; }
.lib-table.cj-table th.ck-th, .lib-table.cj-table td.ck-td { padding: 11px 0 11px 6px !important; }

/* 成交案例 12 列较密：操作按钮不压缩、不换行 */
.list-table .ops .mini { flex: 0 0 auto; white-space: nowrap; }

/* 成交案例弹窗：内容区滚动，底部按钮常驻可见 */
.dlg-cj { max-height: calc(100vh - 96px); display: flex; flex-direction: column; }
.dlg-cj .cj-body { overflow-y: auto; padding-right: 6px; flex: 1 1 auto; }
.dlg-cj .dlgft { flex: 0 0 auto; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-2); }

/* 客户购买产品：分组多选 chips（标准产品 / 行业版 / 生态产品） */
.cj-prod-fld { grid-column: 1 / -1; }
.cj-prod-picker { border: 1px solid var(--line-2, #e5e7eb); border-radius: 8px; padding: 10px 12px; background: #fafbfc; }
.cj-prod-grp + .cj-prod-grp { margin-top: 9px; padding-top: 9px; border-top: 1px dashed var(--line-2, #e5e7eb); }
.cj-prod-gt { font-size: 12px; font-weight: 700; color: var(--brand); margin-bottom: 7px; }
.cj-prod-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.cj-chip { position: relative; display: inline-flex; align-items: center; cursor: pointer; user-select: none; }
.cj-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.cj-chip span {
  display: inline-block; padding: 5px 12px; border-radius: 16px; font-size: 12.5px; line-height: 1.2;
  border: 1px solid #d7dce5; background: #fff; color: var(--text-2, #475467); transition: all .12s;
}
.cj-chip:hover span { border-color: var(--brand); color: var(--brand); }
.cj-chip input:checked + span,
.cj-chip.on span { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.cj-chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(37, 99, 235, .2); }

/* 员工「我的提交记录」入口链接 */
.cj-hint a { color: #1d6fe0; font-weight: 600; text-decoration: underline; cursor: pointer; margin-left: 2px; }
.cj-hint a:hover { color: #0b4fb0; }

/* 员工「我的提交记录」弹窗 */
.dlg-subs { max-width: 720px; max-height: calc(100vh - 96px); display: flex; flex-direction: column; }
.dlg-subs .subs-body { overflow-y: auto; padding-right: 6px; flex: 1 1 auto; min-height: 60px; }
.dlg-subs .dlgft { flex: 0 0 auto; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.sub-item {
  border: 1px solid var(--line-2, #e5e7eb); border-radius: 9px; padding: 10px 12px; margin-bottom: 10px;
  background: #fff;
}
.sub-item:last-child { margin-bottom: 0; }
.sub-hd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sub-hd b { font-size: 13.5px; color: var(--text-1, #111827); }
.sub-hd .sub-time { margin-left: auto; font-size: 11.5px; color: var(--faint, #98a2b3); }
.sub-meta { margin-top: 6px; font-size: 12px; color: var(--text-2, #475467); line-height: 1.7; }
.sub-note {
  margin-top: 7px; padding: 6px 9px; font-size: 12px; color: #b91c1c;
  background: #fef2f2; border: 1px solid #fecaca; border-radius: 6px;
}
/* 历史驳回原因（这条已被重新提交取代）淡化显示 */
.sub-note-old { color: #64748b; background: #f8fafc; border-color: #e2e8f0; }
.sub-ops { margin-top: 8px; }
.sub-ops .lc-view {
  background: none; border: none; padding: 0; color: var(--brand, #2563eb);
  font-size: 12.5px; cursor: pointer;
}
.sub-ops .lc-view:hover { text-decoration: underline; }
