/* ============================================================
   知音·艺学堂 — 教研板块：课程手册 (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-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; }
