/* 学习进度页 · 仪表盘式布局 */
.dash-wrap { max-width: 1100px; margin: 0 auto; }

.dash-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; align-items: start; }
@media (max-width: 860px) { .dash-row { grid-template-columns: 1fr; } }

.dash-col { display: flex; flex-direction: column; gap: 16px; }

.dash-card {
  background: #fff;
  border: 1px solid #e6e8eb;
  border-radius: 16px;
  padding: 18px 20px;
}

.dash-title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dash-title::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: linear-gradient(180deg, #4c8bf5, #2563eb);
}

.dash-sub {
  margin: 0 0 14px;
  font-size: 12.5px;
  color: #9ca3af;
  line-height: 1.5;
}

/* 卡片内的次级元素紧凑化 */
.dash-card .score-main { padding: 0; border: none; background: transparent; margin: 0; }
.dash-card .goal-grid { margin: 0; }
.dash-card .progress-grid { margin: 0; }
.dash-card .plan-datebar { margin-top: 0; }

/* 折叠区 */
.dash-fold {
  background: #fff;
  border: 1px solid #e6e8eb;
  border-radius: 16px;
  padding: 14px 20px;
  margin-bottom: 14px;
}
.dash-fold summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: #374151;
  list-style: none;
  user-select: none;
}
.dash-fold summary::-webkit-details-marker { display: none; }
.dash-fold summary::after { content: " ▾"; color: #9ca3af; font-size: 12px; }
.dash-fold[open] summary::after { content: " ▴"; }
.dash-fold[open] summary { margin-bottom: 10px; }
.dash-fold .dash-sub { margin-bottom: 12px; }

/* 雷达图卡片内居中 */
.dash-card #radarWrap { margin-top: 4px; }

/* 暗色主题 */
[data-theme="dark"] .dash-card,
[data-theme="dark"] .dash-fold { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .dash-title { color: #e2e8f0; }
[data-theme="dark"] .dash-sub { color: #94a3b8; }
[data-theme="dark"] .dash-fold summary { color: #cbd5e1; }

/* 薄弱点诊断 */
.diag-acc { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; margin-bottom: 16px; }
.diag-acc-item { text-align: center; padding: 12px 6px; background: #f8faff; border-radius: 10px; }
.diag-acc-ic { font-size: 20px; }
.diag-acc-name { font-size: 12px; color: #6b7280; margin: 4px 0; }
.diag-acc-val { font-size: 18px; font-weight: 700; }
.diag-acc-val.good { color: #16a34a; }
.diag-acc-val.mid { color: #f59e0b; }
.diag-acc-val.low { color: #dc2626; }
.diag-acc-val.none { color: #d1d5db; }
[data-theme="dark"] .diag-acc-item { background: #0f172a; }
