/* ============================================================
   艺学堂 — 教研板块：课程手册 (hb-)
   ============================================================ */

/* ---- 页面容器 ---- */
.hb-page { padding: 24px; max-width: 1400px; margin: 0 auto; }

/* ---- 页面头部 ---- */
.hb-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.hb-header h2 { font-size: 22px; font-weight: 700; color: #1a1a2e; margin: 0; }
.hb-header-actions { display: flex; gap: 12px; }
.hb-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px;
  border: none; border-radius: 6px; font-size: 14px; cursor: pointer;
  transition: all 0.2s; font-family: inherit; }
.hb-btn-primary { background: #F18D24; color: #fff; }
.hb-btn-primary:hover { background: #e07a18; }
.hb-btn-outline { background: #fff; color: #555; border: 1px solid #ddd; }
.hb-btn-outline:hover { background: #f5f5f5; }
.hb-btn-sm { padding: 4px 10px; font-size: 12px; }
.hb-btn-danger { background: #fff; color: #e74c3c; border: 1px solid #e74c3c; }
.hb-btn-danger:hover { background: #fef0ef; }
.hb-btn-success { background: #27ae60; color: #fff; }
.hb-btn-success:hover { background: #219a52; }

/* ---- 搜索/过滤工具栏 ---- */
.hb-toolbar { display: flex; gap: 12px; margin-top: 4px; margin-bottom: 20px; flex-wrap: wrap; align-items: center; }
.hb-search { flex: 1; min-width: 200px; max-width: 320px; padding: 8px 12px;
  border: 1px solid #ddd; border-radius: 6px; font-size: 14px; outline: none; }
.hb-search:focus { border-color: #F18D24; box-shadow: 0 0 0 2px rgba(241,141,36,0.15); }
.hb-select { padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px;
  font-size: 14px; background: #fff; cursor: pointer; min-width: 120px; }

/* ---- 课程手册列表表格 ---- */
.hb-table-wrap { background: #fff; border-radius: 10px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); overflow: hidden; }
.hb-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.hb-table th { background: #fafbfc; color: #555; font-weight: 600; text-align: left;
  padding: 12px 16px; border-bottom: 1px solid #eee; white-space: nowrap; }
.hb-table td { padding: 12px 16px; border-bottom: 1px solid #f5f5f5; color: #333; }
.hb-table tr:hover td { background: #fafbfc; }
.hb-table .hb-empty { text-align: center; padding: 48px 16px; color: #999; }
.hb-table .hb-empty-icon { font-size: 40px; display: block; margin-bottom: 8px; }
.hb-col-title { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-col-subject { color: #F18D24; font-weight: 500; }
.hb-col-actions { white-space: nowrap; }
.hb-col-actions .hb-btn { margin-right: 4px; }

/* ---- 状态标签 ---- */
.hb-badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 12px; font-weight: 500; }
.hb-badge-draft { background: #f0f0f0; color: #888; }
.hb-badge-published { background: #e8f5e9; color: #2e7d32; }
.hb-badge-archived { background: #fff3e0; color: #e65100; }

/* ---- 分页 ---- */
.hb-pagination { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 16px 0; }
.hb-pagination span { font-size: 14px; color: #666; }

/* ---- 弹窗 ---- */
.hb-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center; z-index: 9999; }
.hb-modal { background: #fff; border-radius: 12px; width: 720px; max-width: 95vw;
  max-height: 85vh; overflow-y: auto; box-shadow: 0 8px 32px rgba(0,0,0,0.15); }
.hb-modal-header { display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; border-bottom: 1px solid #eee; }
.hb-modal-header h3 { margin: 0; font-size: 18px; color: #1a1a2e; }
.hb-modal-close { background: none; border: none; font-size: 22px; color: #999;
  cursor: pointer; padding: 4px 8px; border-radius: 4px; }
.hb-modal-close:hover { background: #f5f5f5; color: #333; }
.hb-modal-body { padding: 24px; }
.hb-modal-footer { display: flex; justify-content: flex-end; gap: 12px;
  padding: 16px 24px; border-top: 1px solid #eee; }

/* ---- 表单 ---- */
.hb-form-group { margin-bottom: 16px; }
.hb-form-group label { display: block; font-size: 13px; font-weight: 600; color: #444; margin-bottom: 6px; }
.hb-form-group label .hb-required { color: #e74c3c; margin-left: 2px; }
.hb-input { width: 100%; padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px;
  font-size: 14px; box-sizing: border-box; outline: none; transition: border-color 0.2s; }
.hb-input:focus { border-color: #F18D24; box-shadow: 0 0 0 2px rgba(241,141,36,0.15); }
.hb-textarea { width: 100%; min-height: 80px; padding: 8px 12px; border: 1px solid #ddd;
  border-radius: 6px; font-size: 14px; resize: vertical; box-sizing: border-box;
  font-family: inherit; outline: none; transition: border-color 0.2s; }
.hb-textarea:focus { border-color: #F18D24; box-shadow: 0 0 0 2px rgba(241,141,36,0.15); }
.hb-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---- 课程聚合（查看详情弹窗） ---- */
.hb-section { margin-bottom: 20px; }
.hb-section-title { font-size: 15px; font-weight: 700; color: #1a1a2e; margin-bottom: 10px;
  padding-bottom: 6px; border-bottom: 1px solid #eee; }
.hb-course-list { list-style: none; padding: 0; margin: 0; }
.hb-course-item { display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; background: #fafbfc; border-radius: 6px; margin-bottom: 6px; font-size: 13px; }
.hb-course-name { font-weight: 500; color: #333; }
.hb-course-meta { color: #888; font-size: 12px; }
.hb-tag { display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 500; margin-left: 4px; }
.hb-tag-subject { background: #fff3e0; color: #e65100; }
.hb-tag-grade { background: #e3f2fd; color: #1565c0; }
.hb-tag-type { background: #f3e5f5; color: #7b1fa2; }
.hb-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.hb-stat-card { background: #fafbfc; border-radius: 8px; padding: 12px 16px; text-align: center; }
.hb-stat-card .hb-stat-num { font-size: 24px; font-weight: 700; color: #F18D24; }
.hb-stat-card .hb-stat-label { font-size: 12px; color: #888; margin-top: 2px; }

/* ---- 发布提示 ---- */
.hb-publish-hint { background: #fff8e1; border: 1px solid #ffe082; border-radius: 6px;
  padding: 10px 14px; font-size: 13px; color: #e65100; margin-bottom: 16px; }

/* ════════════════════════════════════════════════════════
   产品中心 v2 升级样式（卡片栅格 / 编辑工作台 / 门禁/ 三版）
   ════════════════════════════════════════════════════════ */

/* ── 页面头部增强 ── */
.hb-header-left { display: flex; flex-direction: column; }
.hb-subtitle { font-size: 12px; color: #999; margin-top: 2px; }
.hb-header-right { display: flex; align-items: center; gap: 8px; }
.hb-toolbar-left { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hb-toolbar-right { margin-left: auto; }
.hb-count { font-size: 13px; color: #888; }
.hb-count strong { color: #F18D24; }

/* ── 功能快捷入口 ── */
.hb-func-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 0 16px 0;
  margin-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
  flex-wrap: wrap;
}
.hb-func-entry {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  color: #555;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.hb-func-entry:hover:not(:disabled) {
  border-color: #F18D24;
  color: #F18D24;
  background: #fff8f2;
}
.hb-func-entry:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f5f5f5;
}
.hb-func-entry-primary {
  background: #fff3e0;
  color: #e65100;
  border-color: #ffe0b2;
  font-weight: 600;
}
.hb-func-entry-primary:hover:not(:disabled) {
  background: #ffe0b2;
}

/* ── 卡片栅格 ── */
.hb-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
@media (min-width: 1200px) { .hb-card-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1199px) and (min-width: 768px) { .hb-card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .hb-card-grid { grid-template-columns: 1fr; } }

.hb-card {
  background: #fff; border-radius: 10px; box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  overflow: hidden; cursor: pointer; transition: all 0.2s;
  display: flex; flex-direction: column;
}
.hb-card:hover { box-shadow: 0 4px 16px rgba(241,141,36,0.15); transform: translateY(-2px); }
.hb-card-cover { height: 90px; background: #f5f5f5; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hb-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.hb-card-cover-empty { font-size: 40px; color: #ddd; }
.hb-card-body { padding: 12px 16px; flex: 1; }
.hb-card-title-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.hb-card-title { font-size: 15px; font-weight: 600; color: #1a1a2e; margin: 0; }
.hb-card-tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0; }
.hb-card-meta { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.hb-card-recs { margin-top: 6px; font-size: 11px; color: #999; }
.hb-card-actions {
  display: flex; gap: 2px; padding: 8px 12px; border-top: 1px solid #f0f0f0;
  justify-content: flex-end; align-items: center; flex-wrap: wrap; min-height: 44px;
}
.hb-card-actions .hb-btn-sm { padding: 3px 8px; font-size: 11px; border-radius: 4px; }

.hb-tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; background: #f0f0f0; color: #666; }
.hb-tag-source { background: #e3f2fd; color: #1565c0; }
.hb-tag-rec { background: #f3e5f5; color: #7b1fa2; font-size: 10px; }
.hb-tag-inline { font-size: 11px; color: #999; }
.hb-price { font-weight: 700; color: #F18D24; font-size: 14px; }
.hb-price-na { color: #ccc; font-weight: 400; }
.hb-no-data { color: #ccc; font-size: 12px; font-style: italic; }
.hb-empty-state { text-align: center; padding: 60px 20px; color: #999; font-size: 16px; grid-column: 1 / -1; }

/* ── 按钮增强 ── */
.hb-btn-gen { background: #e3f2fd; color: #1565c0; border: 1px solid #bbdefb; }
.hb-btn-gen:hover { background: #bbdefb; }
.hb-btn-master { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.hb-btn-master:hover { background: #c8e6c9; }
.hb-btn-pub { background: #fff3e0; color: #e65100; border: 1px solid #ffe0b2; }
.hb-btn-pub:hover { background: #ffe0b2; }
.hb-btn-del { background: #ffebee; color: #c62828; border: 1px solid #ffcdd2; }
.hb-btn-del:hover { background: #ffcdd2; }

/* ── 编辑工作台 ── */
.hb-modal-xl { width: 95vw; max-width: 1400px; max-height: 90vh; }
.hb-edit-workspace { display: flex; flex-direction: column; gap: 16px; }
.hb-edit-topbar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding: 12px 16px; background: #fafbfc; border-radius: 8px; border: 1px solid #eee;
}
.hb-edit-title { font-size: 16px; font-weight: 700; color: #1a1a2e; margin-right: 12px; }
.hb-edit-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 900px) { .hb-edit-sections { grid-template-columns: 1fr; } }
.hb-edit-col { display: flex; flex-direction: column; gap: 12px; }
.hb-edit-group {
  background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 12px 16px;
}
.hb-edit-group-title { font-size: 14px; font-weight: 700; color: #F18D24; margin: 0 0 10px 0; padding-bottom: 6px; border-bottom: 2px solid #F18D24; }
.hb-form-row { margin-bottom: 10px; }
.hb-form-row label { display: block; font-size: 12px; font-weight: 600; color: #666; margin-bottom: 4px; }
.hb-textarea-code { font-family: 'Consolas', 'Monaco', monospace; font-size: 12px; }

/* ── 门禁状态步骤条 ── */
.hb-gen-status-bar {
  display: flex; align-items: center; justify-content: center; gap: 4px; flex-wrap: wrap;
  padding: 10px 16px; background: #fafbfc; border-radius: 8px; border: 1px solid #eee;
  font-size: 12px;
}
.hb-step { padding: 3px 10px; border-radius: 12px; font-weight: 500; }
.hb-step-pending { color: #bbb; background: #f9f9f9; }
.hb-step-active { color: #2B6CB0; background: #e3f2fd; animation: hb-pulse 1.5s infinite; }
.hb-step-done { color: #38A169; background: #e8f5e9; }
.hb-step-arrow { color: #ddd; margin: 0 2px; }
@keyframes hb-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.6; } }

/* ── A/B/C 版切换 ── */
.hb-rec-section { margin-top: 16px; border: 1px solid #eee; border-radius: 8px; padding: 12px 16px; }
.hb-rec-tabs { display: flex; gap: 2px; margin-bottom: 12px; }
.hb-rec-tab {
  padding: 6px 16px; border: 1px solid #ddd; border-bottom: none; border-radius: 6px 6px 0 0;
  background: #f5f5f5; font-size: 13px; cursor: pointer; color: #888; font-weight: 500;
}
.hb-rec-tab.active { background: #fff; color: #F18D24; border-color: #F18D24; font-weight: 700; }
.hb-rec-content { min-height: 120px; }
.hb-rec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 900px) { .hb-rec-grid { grid-template-columns: 1fr; } }
.hb-rec-col { background: #fafbfc; border-radius: 6px; padding: 10px; }
.hb-rec-col h6 { margin: 0 0 8px 0; font-size: 13px; color: #333; }

/* ── 九宫格预览 ── */
.hb-grid-preview {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
}
.hb-grid-cell {
  aspect-ratio: 1; background: #fff; border: 1px dashed #ddd; border-radius: 4px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 18px; color: #ccc; overflow: hidden;
}
.hb-grid-cell img { width: 100%; height: 100%; object-fit: cover; }
.hb-input-mini { font-size: 10px; padding: 2px 4px; margin-top: 2px; border: none; background: transparent; width: 90%; text-align: center; }

/* ── 生产中心面板 ── */
.hb-pc-panel { margin-top: 12px; padding: 12px; background: #fff; border-radius: 8px; border: 1px dashed #F18D24; }
.hb-pc-panel .gt-panel { border: none; padding: 0; }
.hb-pc-panel .gt-panel-title { font-size: 13px; margin-bottom: 8px; }

/* ── 预览增强 ── */
.hb-preview-cover { max-width: 100%; max-height: 200px; border-radius: 8px; margin-bottom: 12px; }
.hb-preview { padding: 8px 0; }

/* ── 统计增强 ── */
.hb-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.hb-stat-value { font-size: 28px; font-weight: 700; color: #F18D24; }
.hb-stat-label { font-size: 12px; color: #888; margin-top: 4px; }
.hb-stats-meta { font-size: 13px; color: #666; padding-top: 8px; border-top: 1px solid #eee; }
.hb-stats-meta p { margin: 4px 0; }

/* ── 页面按钮（分页）── */
.hb-page-btn {
  padding: 6px 12px; border: 1px solid #ddd; border-radius: 4px;
  background: #fff; cursor: pointer; font-size: 13px; color: #666;
}

/* ── 门禁步骤条（4步可视化）── */
.hb-step-bar { display: flex; gap: 0; margin: 12px 0 20px; }
.hb-step-dot { flex: 1; display: flex; align-items: center; justify-content: center; padding: 8px; font-size: 13px; color: #999; border-bottom: 3px solid #eee; transition: .3s; }
.hb-step-dot.active { color: #F18D24; border-color: #F18D24; font-weight: 600; }
.hb-step-dot.done { color: #38A169; border-color: #38A169; }
.hb-step-dot.failed { color: #E53E3E; border-color: #E53E3E; }
.hb-step-spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid #F18D24; border-top-color: transparent; border-radius: 50%; animation: hb-spin .8s linear infinite; margin-right: 4px; vertical-align: middle; }
@keyframes hb-spin { to { transform: rotate(360deg); } }
.hb-step-failed { color: #E53E3E; font-size: 12px; margin-top: 4px; display: flex; align-items: center; gap: 6px; }
.hb-step-err { flex: 1; }
.hb-gen-retry { background: #E53E3E; color: #fff; border: none; padding: 3px 10px; border-radius: 4px; cursor: pointer; font-size: 12px; }
.hb-gen-retry:hover { background: #C53030; }

/* ── 三版素材状态卡片 ── */
.hb-rec-status-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 12px 0; }
.rs-card { background: #f8f9fa; border-radius: 8px; padding: 12px; border: 1px solid #eee; }
.rs-card h4 { margin: 0 0 8px; font-size: 14px; color: #333; }
.rs-chip { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; margin: 2px 4px 2px 0; }
.rs-chip.pending { background: #EDF2F7; color: #718096; }
.rs-chip.generating { background: #EBF8FF; color: #2B6CB0; }
.rs-chip.done { background: #F0FFF4; color: #38A169; }
.rs-chip.failed { background: #FFF5F5; color: #E53E3E; }

/* ── 预览 Modal ── */
.hb-preview-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 9999; display: flex; align-items: center; justify-content: center; }
.hb-preview-box { background: #fff; border-radius: 12px; width: 90%; max-width: 960px; max-height: 90vh; overflow: auto; padding: 24px; }
.hb-preview-box h3 { margin-top: 0; }
.hb-preview-close { float: right; background: none; border: none; font-size: 20px; cursor: pointer; color: #999; }
.hb-preview-iframe { width: 100%; height: 500px; border: 1px solid #eee; border-radius: 8px; margin: 12px 0; }
.hb-preview-tabs { display: flex; gap: 4px; margin-bottom: 12px; }
.hb-preview-tab { padding: 6px 16px; border: 1px solid #ddd; border-radius: 4px 4px 0 0; cursor: pointer; font-size: 13px; background: #f8f9fa; }
.hb-preview-tab.active { background: #fff; border-bottom-color: #fff; color: #F18D24; font-weight: 600; }
.hb-preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hb-preview-grid img { width: 100%; border-radius: 6px; }
@media (max-width: 640px) {
  .hb-rec-status-cards { grid-template-columns: 1fr; }
  .hb-preview-grid { grid-template-columns: repeat(2, 1fr); }
  .hb-preview-box { width: 95%; padding: 16px; }
}
.hb-page-btn.active { background: #F18D24; color: #fff; border-color: #F18D24; }
.hb-page-btn:hover:not(.active) { background: #f5f5f5; }

/* ════════════════════════════════════════════════════════
   T11: 导入向导 / 卖点萃取 / 批量操作 / 关联源
   ════════════════════════════════════════════════════════ */

/* 批量选择 */
.hb-select-all { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: #555; margin-right: 8px; cursor: pointer; }
.hb-batch-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 12px; margin: 8px 0; background: #FFF7EC; border: 1px solid #F8D8A8; border-radius: 8px; }
.hb-batch-count { font-size: 13px; color: #8a5a16; }
.hb-card-check-wrap { position: absolute; top: 8px; left: 8px; z-index: 3; background: rgba(255,255,255,.9); border-radius: 4px; padding: 2px; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.hb-card-check { width: 16px; height: 16px; cursor: pointer; }
.hb-card { position: relative; }
.hb-btn-tag { background: #8B5CF6; color: #fff; border-color: #8B5CF6; }

/* 导入向导 */
.hb-wizard-steps { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.hb-wz-step { font-size: 13px; padding: 4px 10px; border-radius: 14px; background: #f0f0f0; color: #888; }
.hb-wz-step.active { background: #F18D24; color: #fff; }
.hb-wz-step.done { background: #FEEBC8; color: #8a5a16; }
.hb-wizard-body { padding: 8px 0; font-size: 14px; color: #444; }
.hb-wizard-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; }
.hb-import-headers { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.hb-import-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.hb-import-table th, .hb-import-table td { border: 1px solid #eee; padding: 6px 8px; text-align: left; }
.hb-import-table .hb-row-conflict { background: #FFF4E5; }
.hb-import-table .hb-row-error { background: #FDECEC; }

/* 卖点萃取候选 */
.hb-sp-extractor { font-size: 14px; }
.hb-sp-actions { display: flex; gap: 8px; margin: 10px 0; flex-wrap: wrap; }
.hb-sp-cand-list { max-height: 280px; overflow: auto; border-top: 1px solid #eee; padding-top: 8px; }
.hb-sp-cand-source { font-size: 12px; color: #999; margin-bottom: 6px; }
.hb-sp-cand-row { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-bottom: 1px dashed #f0f0f0; cursor: pointer; }
.hb-sp-cand-point { flex: 1; }
.hb-sp-cand-dim { font-size: 12px; color: #F18D24; background: #FFF4E5; padding: 1px 6px; border-radius: 10px; }

/* 关联源 */
.hb-lineage-search { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.hb-lineage-search .hb-input { flex: 1; min-width: 120px; }
.hb-lineage-search-result { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-bottom: 8px; }
.hb-lineage-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.hb-lineage-item { border: 1px solid #eee; border-radius: 8px; padding: 10px; background: #fff; }
.hb-lineage-item-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hb-lineage-item-meta { font-size: 12px; color: #999; margin: 6px 0; }
.hb-lineage-item-actions { display: flex; gap: 6px; }
.hb-lineage-trace p { margin: 6px 0; font-size: 14px; }

/* ── T11: 卖点场景多选 chip（scene 由单值改为数组）── */
.hb-sp-filter { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 6px 0 10px; }
.hb-sp-filter-label { font-size: 13px; color: #666; font-weight: 600; }
.hb-sp-filter-btn { padding: 3px 12px; border: 1px solid #ddd; border-radius: 12px; background: #fff; cursor: pointer; font-size: 12px; color: #666; transition: all .15s; }
.hb-sp-filter-btn:hover { border-color: #F18D24; color: #F18D24; }
.hb-sp-filter-btn.on { background: #F18D24; color: #fff; border-color: #F18D24; font-weight: 600; }

.hb-sp-empty { color: #999; font-size: 13px; padding: 12px 0; font-style: italic; }
.hb-sp-row { display: flex; align-items: flex-start; gap: 8px; padding: 8px 0; border-bottom: 1px dashed #f0f0f0; }
.hb-sp-point { flex: 1; min-width: 160px; padding: 6px 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 13px; outline: none; }
.hb-sp-point:focus { border-color: #F18D24; box-shadow: 0 0 0 2px rgba(241,141,36,0.15); }
.hb-sp-dim { padding: 6px 8px; border: 1px solid #ddd; border-radius: 6px; font-size: 13px; background: #fff; cursor: pointer; }
.hb-sp-del { background: none; border: none; color: #e74c3c; cursor: pointer; font-size: 16px; padding: 4px 8px; border-radius: 4px; }
.hb-sp-del:hover { background: #fef0ef; }

.hb-sp-scenes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; align-items: center; }
.hb-sp-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border: 1px solid #ddd; border-radius: 12px; font-size: 12px; color: #666; cursor: pointer; user-select: none; transition: all .15s; margin: 0; }
.hb-sp-chip:hover { border-color: #F18D24; color: #F18D24; }
.hb-sp-chip.on { background: #FFF4E5; border-color: #F18D24; color: #F18D24; font-weight: 600; }
.hb-sp-chip-cb, .hb-sp-target-cb { margin: 0; cursor: pointer; }

/* ── T11: 批量导出 / 关联源派生按钮 ── */
.hb-btn-export { background: #fff; color: #2B6CB0; border: 1px solid #2B6CB0; }
.hb-btn-export:hover { background: #EBF8FF; }
.hb-btn-derive { background: #EBF8FF; color: #2B6CB0; border: 1px solid #BEE3F8; }
.hb-btn-derive:hover { background: #BEE3F8; }

/* ── T11: 上游已更新徽标 ── */
.hb-badge-upstream { background: #FFF4E5; color: #E65100; border: 1px solid #FFD8A8; }

/* ── T11-14: 关联源字段冲突徽标 ── */
.hb-badge-conflict { background: #FFEBEE; color: #C62828; border: 1px solid #EF9A9A; }

/* ── T11: 导入向导三类来源卡片 ── */
.hb-import-sources { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 12px 0; }
.hb-import-source-card { border: 1px solid #eee; border-radius: 10px; padding: 16px; background: #fff; transition: all .2s; display: flex; flex-direction: column; gap: 8px; }
.hb-import-source-card:hover { border-color: #F18D24; box-shadow: 0 2px 8px rgba(241,141,36,0.15); }
.hb-import-source-card h6 { margin: 0; font-size: 14px; font-weight: 700; color: #1a1a2e; }
.hb-import-source-card p { margin: 0; font-size: 12px; color: #999; line-height: 1.5; }
.hb-import-source-card input[type="file"] { font-size: 12px; color: #666; }

/* ── T11: SheetJS 降级警告 ── */
.hb-warn { color: #E65100; background: #FFF4E5; border: 1px solid #FFD8A8; border-radius: 4px; padding: 4px 8px; display: inline-block; margin-top: 4px; }
