/* 信源引擎 v2.2 · 新增模块样式（不引入外部字体与图表库） */

/* ---------- 结构轮换提示 ---------- */
.v22-hint {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 0 22px 10px; padding: 8px 10px;
  background: #f5f8ff; border: 1px solid #dbe6ff; border-radius: 6px;
  font-size: 12.5px; color: #2b3545;
}
.v22-hint svg { color: #2f6fed; flex: 0 0 auto; }
.v22-hint b { color: #1b4bb8; }

/* ---------- 敏感词编辑器 ---------- */
.v22-editor-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.v22-scan { flex: 0 0 auto; }
.sw-editor {
  position: relative; border: 1px solid #d8dee9; border-radius: 6px;
  background: #fff; overflow: hidden;
}
.sw-highlight, .sw-input {
  margin: 0; padding: 12px 14px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12.5px; line-height: 1.85;
  white-space: pre-wrap; word-break: break-word;
  letter-spacing: 0;
}
.sw-highlight {
  position: absolute; inset: 0; overflow: hidden;
  color: #1f2937; pointer-events: none;
}
.sw-input {
  position: relative; display: block; width: 100%; min-height: 420px;
  border: 0; outline: none; background: transparent;
  color: transparent; caret-color: #1b2432; resize: vertical;
}
.sw-input::selection { background: #cfe3ff; color: transparent; }
.sw-mark { background: #ffe3e3; color: #c23b3b; border-bottom: 1px solid #e05a5a; padding: 0 1px; border-radius: 2px; }
.sw-issues { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; min-height: 22px; }

/* ---------- 一稿多平台 ---------- */
.pp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 10px; }
.pp-card {
  border: 1px solid #e3e8ef; border-radius: 8px; padding: 10px 12px; background: #fff;
}
.pp-card.active { border-color: #9fc0ff; background: #f7faff; }
.pp-card-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.pp-card-title { margin-top: 6px; font-size: 12.5px; font-weight: 600; color: #1f2937; line-height: 1.5; }
.pp-card-sum { margin-top: 4px; font-size: 12px; color: #5b667a; line-height: 1.6; height: 56px; overflow: hidden; }
.pp-card-meta { margin: 6px 0 8px; font-size: 11.5px; color: #8792a6; }

/* ---------- 资料库 ---------- */
.material-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.material-card {
  border: 1px solid #e3e8ef; border-radius: 8px; background: #fff; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.material-title { font-size: 14px; font-weight: 600; color: #1f2937; }
.material-body { font-size: 12.5px; line-height: 1.75; color: #4b5567; }
.material-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.material-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed #eef1f6; padding-top: 8px; }

/* ---------- 资料引用 ---------- */
.cite-group { margin-bottom: 14px; }
.cite-group-title { font-size: 12px; font-weight: 600; color: #2f6fed; margin-bottom: 6px; }
.cite-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 8px 10px; border: 1px solid #eef1f6; border-radius: 6px; margin-bottom: 6px; cursor: pointer;
}
.cite-item:hover { background: #f8faff; border-color: #dbe6ff; }
.cite-item input { margin-top: 3px; }

/* ---------- 趋势图 ---------- */
.spark { display: inline-flex; align-items: flex-end; gap: 3px; height: 28px; }
.spark-bar { display: inline-block; width: 7px; border-radius: 2px 2px 0 0; background: #9db7e8; }
.spark-bar.hit { background: #2f6fed; }
.spark-bar.miss { background: #e6a3a3; }
.spark-bar.err { background: #c9ced8; }
.up { color: #2e7d4f; font-weight: 600; }
.down { color: #c23b3b; font-weight: 600; }

/* ---------- 下钻 ---------- */
.drill-row { cursor: pointer; }
.drill-row:hover td { background: #f7faff; }
.drill-row.active td { background: #eef4ff; }
.bar-wrap { height: 8px; background: #f0f2f6; border-radius: 4px; overflow: hidden; min-width: 80px; }
.bar-red { height: 100%; background: linear-gradient(90deg, #7aa7ef, #2f6fed); border-radius: 4px; }
.table tr.group-row td { background: #f7f9fc; font-weight: 600; color: #3b4759; }

/* ---------- 通用 ---------- */
.chip.bad { background: #fdecec; border-color: #f5c6c6; color: #c23b3b; }
.code { font-family: Consolas, "Courier New", monospace; font-size: 12px; color: #4b5567; }
.nowrap { white-space: nowrap; }

/* 顶栏全局搜索 */
.topbar-search input {
  width: 220px; height: 28px; padding: 0 10px;
  border: 1px solid #dbe1ea; border-radius: 14px; background: #f7f9fc;
  font-size: 12.5px; color: #1f2937; outline: none;
}
.topbar-search input:focus { border-color: #9fc0ff; background: #fff; }

/* 审核项级别与沿用标记 */
.check-level { font-size: 11px; padding: 0 5px; border-radius: 3px; border: 1px solid #d8dee9; color: #5b667a; margin-left: 6px; }
.check-level.hard { border-color: #f0c0c0; color: #c23b3b; background: #fdf2f2; }
.check-level.soft { border-color: #d8dee9; color: #5b667a; background: #f7f9fc; }
.check-inherit { font-size: 11.5px; color: #2e7d4f; margin-left: 6px; }

/* v3.10 · 差异审核沿用 / 重判归因与检查范围标签 */
.check-rejudge { font-size: 11.5px; color: #a3641c; margin-left: 6px; }
.scope-para { background: #eef4ff; color: #3658a8; }
.scope-full { background: #f4f5f7; color: #6b7280; }
