/* ===== 知音·艺学堂 — 教研研发看板样式 ===== */

/* ===== 页面容器 ===== */
.rd-page { padding: 16px 24px; }

.rd-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.rd-header h2 { font-size: 20px; font-weight: 600; color: #1f2937; display: flex; align-items: center; gap: 8px; }
.rd-header-actions { display: flex; align-items: center; gap: 12px; }
.rd-refresh-time { font-size: 12px; color: #9ca3af; }

.rd-loading { text-align: center; padding: 80px 0; color: #6b7280; font-size: 16px; }
.rd-loading-sm { text-align: center; padding: 20px; color: #9ca3af; }

/* ===== 第一行：6指标卡片 3×2布局 ===== */
.rd-kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.rd-kpi-card { background: #fff; border-radius: 12px; padding: 20px 24px; cursor: pointer; transition: all 0.2s ease; position: relative; overflow: hidden; border: 1px solid #f0f0f0; }
.rd-kpi-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.rd-kpi-card-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 12px; }
.rd-kpi-card-label { font-size: 13px; color: #6b7280; margin-bottom: 6px; }
.rd-kpi-card-value { font-size: 32px; font-weight: 700; color: #1f2937; line-height: 1.2; }
.rd-kpi-card-footer { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; color: #9ca3af; }
.rd-kpi-badge { font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 500; }
.rd-kpi-badge-blue { background: #eff6ff; color: #3b82f6; }
.rd-kpi-badge-green { background: #ecfdf5; color: #10b981; }

.rd-change { font-size: 12px; font-weight: 500; }
.rd-change-up { color: #10b981; }
.rd-change-down { color: #ef4444; }
.rd-change-flat { color: #9ca3af; }

/* KPI卡片颜色主题 */
.rd-kpi-blue .rd-kpi-card-icon { background: #eff6ff; color: #3b82f6; }
.rd-kpi-green .rd-kpi-card-icon { background: #ecfdf5; color: #10b981; }
.rd-kpi-orange .rd-kpi-card-icon { background: #fffbeb; color: #f59e0b; }
.rd-kpi-purple .rd-kpi-card-icon { background: #f5f3ff; color: #8b5cf6; }
.rd-kpi-cyan .rd-kpi-card-icon { background: #ecfeff; color: #06b6d4; }

/* ===== 第二行：待办 + 动态 ===== */
.rd-middle-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }

.rd-panel-header { padding: 16px 20px 0; }
.rd-panel-header h3 { font-size: 15px; font-weight: 600; color: #1f2937; display: flex; align-items: center; gap: 8px; margin: 0; }
.rd-panel-body { padding: 12px 20px 20px; }

.rd-todo-panel, .rd-activity-panel { background: #fff; border-radius: 12px; border: 1px solid #f0f0f0; }

/* 待办分类 */
.rd-todo-section { margin-bottom: 16px; }
.rd-todo-section:last-child { margin-bottom: 0; }
.rd-todo-section-title { font-size: 12px; font-weight: 600; color: #6b7280; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.rd-todo-item { display: flex; align-items: start; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f9fafb; }
.rd-todo-item:last-child { border-bottom: none; }
.rd-todo-item-icon { flex-shrink: 0; width: 20px; text-align: center; font-size: 14px; margin-top: 2px; }
.rd-todo-item-content { flex: 1; min-width: 0; }
.rd-todo-item-title { font-size: 13px; color: #1f2937; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-todo-item-meta { font-size: 11px; color: #9ca3af; margin-top: 2px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rd-todo-item:hover .rd-todo-item-title { color: #149EBB; }

.rd-todo-empty { text-align: center; padding: 24px 0; color: #d1d5db; font-size: 13px; }

/* 动态条目 */
.rd-activity-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f9fafb; }
.rd-activity-item:last-child { border-bottom: none; }
.rd-activity-icon { flex-shrink: 0; font-size: 16px; margin-top: 1px; }
.rd-activity-content { flex: 1; min-width: 0; }
.rd-activity-desc { font-size: 13px; color: #374151; }
.rd-activity-meta { font-size: 11px; color: #9ca3af; margin-top: 3px; display: flex; align-items: center; gap: 6px; }

/* ===== 第三行：3分析面板 ===== */
.rd-analysis-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.rd-analysis-panel { background: #fff; border-radius: 12px; border: 1px solid #f0f0f0; }

/* 分析面板内的通用组件 */
.rd-analysis-panel .rd-panel-header { border-bottom: 1px solid #f3f4f6; padding-bottom: 12px; }
.rd-analysis-panel .rd-panel-body { padding: 16px 20px; }

/* 科目进度条 */
.rd-subject-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.rd-subject-row:last-child { margin-bottom: 0; }
.rd-subject-name { width: 60px; font-size: 12px; font-weight: 500; color: #374151; flex-shrink: 0; }
.rd-subject-bar-wrap { flex: 1; height: 8px; background: #f3f4f6; border-radius: 4px; overflow: hidden; }
.rd-subject-bar { height: 100%; border-radius: 4px; transition: width 0.6s ease; }
.rd-subject-pct { width: 36px; text-align: right; font-size: 11px; color: #6b7280; flex-shrink: 0; }

/* 执行率趋势 */
.rd-trend-bar { display: flex; align-items: end; gap: 3px; height: 60px; padding: 10px 0; }
.rd-trend-bar-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.rd-trend-bar-fill { width: 100%; max-width: 28px; min-height: 4px; border-radius: 3px 3px 0 0; transition: height 0.4s ease; }
.rd-trend-bar-label { font-size: 9px; color: #9ca3af; writing-mode: vertical-lr; text-orientation: mixed; }

/* 异常预警卡片 */
.rd-alert-item { display: flex; align-items: start; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f9fafb; }
.rd-alert-item:last-child { border-bottom: none; }
.rd-alert-icon { flex-shrink: 0; font-size: 14px; margin-top: 2px; }
.rd-alert-content { flex: 1; min-width: 0; }
.rd-alert-title { font-size: 13px; color: #1f2937; font-weight: 500; }
.rd-alert-meta { font-size: 11px; color: #9ca3af; margin-top: 2px; }
.rd-alert-count { font-size: 11px; padding: 1px 6px; border-radius: 8px; background: #f3f4f6; color: #6b7280; margin-left: auto; }

/* 科目标签 */
.rd-subject-badge { display: inline-block; font-size: 10px; padding: 1px 6px; border-radius: 8px; border: 1px solid; font-weight: 500; line-height: 1.4; }

/* 空状态 */
.rd-empty { text-align: center; padding: 40px 0; color: #d1d5db; }
.rd-empty i { font-size: 32px; margin-bottom: 8px; }
.rd-empty p { font-size: 13px; }

/* 进度圆环 */
.rd-ring { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.rd-ring svg { transform: rotate(-90deg); }
.rd-ring-text { position: absolute; font-size: 10px; font-weight: 700; color: #1f2937; }

/* 响应式 */
@media (max-width: 1200px) {
  .rd-kpi-row { grid-template-columns: repeat(2, 1fr); }
  .rd-middle-row { grid-template-columns: 1fr; }
  .rd-analysis-row { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .rd-kpi-row { grid-template-columns: 1fr; }
}
