/* 信源引擎 v3.2 · 录入类全屏弹窗 / 关键词联想 / 模板专注模式 */

/* 录入类弹窗：铺满内容区，四边各留 10px；头尾固定，中部独立滚动 */
.modal-mask { padding: 10px; }
.modal.full {
  width: calc(100vw - 20px);
  height: calc(100vh - 20px);
  max-width: none;
  max-height: none;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
}
.modal.full > .modal-head,
.modal.full > .modal-foot { flex: 0 0 auto; }
.modal.full > .modal-body {
  flex: 1 1 auto;
  overflow: auto;
  min-height: 0;
  overscroll-behavior: contain;
}
.modal.full .form-grid { grid-template-columns: repeat(2, minmax(280px, 1fr)); }
.modal.full .form-row.full { grid-column: 1 / -1; }
.modal.full textarea.input { min-height: 160px; resize: vertical; }
.modal.full .sw-input { min-height: calc(100vh - 330px); }

/* 五列指标 */
.grid-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1500px) { .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* 关键词联想下拉 */
.kw-field { position: relative; }
.kw-suggest {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: 260px;
  overflow: auto;
  background: #fff;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(24, 36, 56, .14);
}
.kw-suggest-item { padding: 8px 10px; cursor: pointer; border-bottom: 1px solid #f0f2f6; }
.kw-suggest-item:last-child { border-bottom: 0; }
.kw-suggest-item:hover, .kw-suggest-item.active { background: #f3f7ff; }
.kw-suggest-item.off { cursor: not-allowed; background: #fff7f6; }
.kw-suggest-item.off .kw-main { color: #b03a2e; }
.kw-suggest-item .kw-main { font-size: 13px; color: #1d2733; }
.kw-suggest-item .kw-sub { font-size: 11.5px; color: #7a8699; margin-top: 2px; }
.kw-suggest-empty { padding: 10px; font-size: 12px; color: #8a94a6; }

/* 关键词列表：待完善高亮 */
.row-pending td { background: #fffaf0; }
.row-pending:hover td { background: #fff5df; }
.badge-pending { background: #fff4d6; color: #9a6b00; border: 1px solid #f0d79a; }

/* 长尾词多选 */
.tail-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 132px;
  overflow: auto;
  padding: 8px;
  border: 1px solid #dfe4ec;
  border-radius: 8px;
  background: #fafbfd;
}
.tail-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border: 1px solid #d7deea;
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  cursor: pointer;
  user-select: none;
}
.tail-chip.on { border-color: #3f6ad8; background: #eef3ff; color: #24479c; }
.tail-chip.disabled { opacity: .45; cursor: not-allowed; }

/* 创作模板骨架编辑器：专注模式 */
.tpl-editor { display: flex; gap: 14px; min-height: 420px; }
.tpl-editor .tpl-side { width: 320px; flex: 0 0 320px; overflow: auto; max-height: calc(100vh - 220px); }
.tpl-editor .tpl-main { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.tpl-editor .tpl-main textarea { flex: 1 1 auto; min-height: 360px; font-family: ui-monospace, Consolas, monospace; line-height: 1.7; }
.tpl-editor.focus .tpl-side { display: none; }
.tpl-editor.focus .tpl-main textarea { min-height: 520px; }

/* 导入预览 */
.import-pane { display: flex; gap: 14px; align-items: stretch; }
.import-pane .import-left { flex: 1 1 auto; min-width: 0; }
.import-pane .import-right { width: 340px; flex: 0 0 340px; }
.file-drop {
  border: 1px dashed #c4cddd;
  border-radius: 10px;
  padding: 22px;
  text-align: center;
  color: #6b7890;
  background: #fafbfe;
  cursor: pointer;
}
.file-drop:hover { border-color: #3f6ad8; color: #24479c; background: #f6f9ff; }
.report-list { margin: 0; padding-left: 18px; font-size: 12.5px; line-height: 1.9; }
