/* =========================================================
 * 学习打卡 / 学习报告 样式
 * ========================================================= */

/* ---------- 文档详情页「学习状态条」 ---------- */
.kn-study-bar {
  margin: 0 0 14px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #eceff5;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(24, 30, 48, .04);
}
.ksb-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.ksb-label { font-size: 13px; color: #8a94a6; margin-right: 2px; }
.ksb-btn {
  padding: 6px 14px;
  font-size: 13px;
  color: #5a6478;
  background: #f5f7fa;
  border: 1px solid #e3e8f0;
  border-radius: 999px;
  cursor: pointer;
  transition: all .18s ease;
}
.ksb-btn:hover { border-color: #ff6b35; color: #ff6b35; }
.ksb-btn.on { color: #fff; border-color: transparent; }
.ksb-btn.on.learn { background: #10b981; }
.ksb-btn.on.hard { background: #f59e0b; }
.ksb-btn.on.fav { background: #ff6b35; }
.ksb-time { margin-left: auto; font-size: 12px; color: #8a94a6; }
.ksb-time b { color: #ff6b35; font-weight: 600; }
.ksb-report { font-size: 12px; color: #ff6b35; text-decoration: none; }
.ksb-report:hover { text-decoration: underline; }

/* ---------- 报告页布局 ---------- */
.st-wrap { max-width: 1080px; margin: 0 auto; padding: 18px 16px 40px; }
.st-card {
  background: #fff;
  border: 1px solid #eceff5;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow: 0 2px 12px rgba(24, 30, 48, .04);
}
.st-card-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.st-card-title { font-size: 15px; font-weight: 600; color: #2a3142; }
.st-card-tip { font-size: 12px; color: #8a94a6; }
.st-tip-box { font-size: 13px; color: #8a94a6; line-height: 1.8; }
.st-link { color: #ff6b35; }
.st-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 720px) { .st-grid { grid-template-columns: 1fr; } }

/* ---------- 概览卡片 ---------- */
.st-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 14px; }
@media (max-width: 900px) { .st-stats { grid-template-columns: repeat(2, 1fr); } }
.st-stat {
  position: relative;
  padding: 14px 16px;
  border-radius: 12px;
  color: #fff;
  overflow: hidden;
}
.st-stat.s1 { background: linear-gradient(135deg, #ff8a4c, #ff6b35); }
.st-stat.s2 { background: linear-gradient(135deg, #4facfe, #2f7cf6); }
.st-stat.s3 { background: linear-gradient(135deg, #ff6b6b, #e63946); }
.st-stat.s4 { background: linear-gradient(135deg, #f7b733, #f59e0b); }
.st-stat.s5 { background: linear-gradient(135deg, #7c6cf0, #5b4bdb); }
.st-stat-label { font-size: 12px; opacity: .9; }
.st-stat-value { margin-top: 4px; font-size: 22px; font-weight: 700; letter-spacing: .5px; }
.st-stat-tip { margin-top: 4px; font-size: 12px; opacity: .85; }
.st-stat-ico { position: absolute; right: 12px; bottom: 8px; font-size: 30px; opacity: .25; }

/* ---------- 打卡日历 ---------- */
.st-calendar { display: grid; grid-template-columns: repeat(15, 1fr); gap: 6px; }
@media (max-width: 720px) { .st-calendar { grid-template-columns: repeat(10, 1fr); } }
.st-day { height: 22px; border-radius: 5px; background: #eef1f6; }
.st-day.lv1 { background: #cdeedc; }
.st-day.lv2 { background: #7cd3a6; }
.st-day.lv3 { background: #10b981; }
.st-legend { margin-top: 10px; font-size: 12px; color: #8a94a6; display: flex; gap: 14px; flex-wrap: wrap; }
.st-legend span { display: inline-flex; align-items: center; gap: 5px; }
.st-dot { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.st-dot.lv0 { background: #eef1f6; }
.st-dot.lv1 { background: #cdeedc; }
.st-dot.lv2 { background: #7cd3a6; }
.st-dot.lv3 { background: #10b981; }

/* ---------- 知识库进度 ---------- */
.st-space { padding: 10px 0; border-bottom: 1px dashed #eef1f6; }
.st-space:last-child { border-bottom: 0; }
.st-space-hd { display: flex; justify-content: space-between; font-size: 13px; color: #3a4256; }
.st-space-num { color: #8a94a6; }
.st-bar { margin: 6px 0 4px; height: 8px; background: #eef1f6; border-radius: 999px; overflow: hidden; }
.st-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ff8a4c, #ff6b35); border-radius: 999px; }
.st-space-ft { font-size: 12px; color: #8a94a6; }

/* ---------- 列表 ---------- */
.st-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed #eef1f6;
  text-decoration: none;
  color: inherit;
}
.st-item:last-child { border-bottom: 0; }
.st-item:hover .st-item-title { color: #ff6b35; }
.st-item-title { flex: 1; font-size: 13px; color: #3a4256; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-item-meta { font-size: 12px; color: #8a94a6; }
.st-item-go { font-size: 12px; color: #ff6b35; }

/* ---------- 家长区 ---------- */
.st-bind { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.st-input { height: 36px; line-height: 36px; max-width: 260px; }
.st-btn {
  height: 36px; padding: 0 18px; border: 0; border-radius: 6px;
  background: #ff6b35; color: #fff; font-size: 13px; cursor: pointer;
}
.st-btn:hover { background: #f05a24; }
.st-kids { margin-top: 10px; }
.st-kid {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-top: 1px dashed #eef1f6; font-size: 13px; color: #3a4256;
}
.st-kid-remark { font-size: 12px; color: #8a94a6; }
.st-kid-op { margin-left: auto; display: flex; gap: 12px; font-size: 12px; }
.st-kid-op a { color: #ff6b35; text-decoration: none; }
.st-unbind { color: #8a94a6 !important; }
.st-switch { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #5a6478; }
.st-select { height: 34px; border: 1px solid #e3e8f0; border-radius: 6px; padding: 0 8px; }
.st-switch-viewer { color: #ff6b35; font-size: 12px; }

/* ---------- 周目标 ---------- */
.st-goal-row { display: flex; justify-content: space-between; font-size: 13px; color: #3a4256; }
.st-goal-name { color: #5a6478; }
.st-goal-num { font-weight: 600; }
.st-goal-foot { margin-top: 10px; font-size: 12px; color: #8a94a6; }
.st-goal-foot b { color: #ff6b35; }
.st-goal-set { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; color: #5a6478; }
.st-num {
  width: 58px;
  height: 30px;
  padding: 0 6px;
  border: 1px solid #e3e8f0;
  border-radius: 6px;
  text-align: center;
}
.st-goal-op { margin-top: 10px; font-size: 12px; }
.st-goal-op a { color: #ff6b35; text-decoration: none; }
.st-btn-sm { height: 30px; padding: 0 14px; font-size: 12px; margin-top: 10px; }

/* ---------- 一键周报 ---------- */
.st-report-text {
  margin: 0;
  padding: 12px;
  background: #f8fafc;
  border: 1px dashed #e3e8f0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 12.5px;
  line-height: 1.9;
  color: #3a4256;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 220px;
  overflow: auto;
}

/* ---------- 学习趋势 ---------- */
.st-trend {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 110px;
  padding-bottom: 2px;
  border-bottom: 1px solid #eef1f6;
}
.st-trend-col {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
}
.st-trend-col i {
  display: block;
  width: 100%;
  max-width: 22px;
  background: #e8ecf3;
  border-radius: 3px 3px 0 0;
}
.st-trend-col i.on { background: linear-gradient(180deg, #ffb08a, #ff6b35); }
.st-trend-col span { font-size: 10px; color: #9aa4b8; white-space: nowrap; transform: scale(.92); }

/* ---------- 排行榜 ---------- */
.st-rank-tabs { display: flex; gap: 8px; margin-bottom: 8px; }
.st-rank-tabs a {
  padding: 4px 12px;
  font-size: 12px;
  color: #5a6478;
  background: #f5f7fa;
  border: 1px solid #e3e8f0;
  border-radius: 999px;
  text-decoration: none;
}
.st-rank-tabs a.on { color: #fff; background: #ff6b35; border-color: #ff6b35; }
.st-rank-no { width: 26px; text-align: center; font-size: 13px; color: #8a94a6; }
.st-item-me { background: #fff7f2; border-radius: 6px; }
.st-item-me .st-item-title { color: #ff6b35; font-weight: 600; }

/* ---------- 空态 ---------- */
.st-empty { text-align: center; padding: 40px 20px; color: #8a94a6; }
.st-empty-ico { font-size: 44px; margin-bottom: 10px; }
.st-empty h3 { font-size: 16px; color: #3a4256; margin-bottom: 6px; }

/* ---------- 录播课 AI 提问记录 ---------- */
.st-ai-qs {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #eef1f6;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.st-ai-q {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.7;
  color: #4a5367;
}
.st-ai-q span { flex: 1; min-width: 0; }
.st-ai-q em {
  flex: none;
  font-style: normal;
  font-size: 11px;
  color: #9aa4b8;
}
