/* ================================================================
   checkin.css —— 打卡页（复用 plan.css 的弹层外壳和卡片样式）
   ----------------------------------------------------------------
   这里只放打卡页独有的两块：
     · 打勾的圆按钮 .check-btn
     · 本月日历热力图 .heat-grid
   ================================================================ */

/* ---------- 打勾圆按钮 ---------- */
.check-btn {
  width: 46px; height: 46px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 3px solid var(--line);
  background: var(--card);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 0 var(--line);
  transition: transform .06s linear, box-shadow .06s linear,
              border-color .15s ease, background .15s ease;
}
.check-btn:hover { border-color: var(--ok); }
.check-btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--line); }

/* 打勾之后：绿底白勾，往里缩一点，有"按进去"的感觉 */
.check-btn.is-done {
  background: var(--ok);
  border-color: var(--ok);
  box-shadow: 0 4px 0 var(--ok-edge);
}
.check-btn.is-done:active { box-shadow: 0 0 0 var(--ok-edge); }

/* 打了卡的行，文字变浅表示已完成 */
.task-row:has(.check-btn.is-done) .task-name { color: var(--ink-3); text-decoration: line-through; }
.task-row:has(.check-btn.is-done) .task-amount { opacity: .6; }

/* 未完成的行：整行可点，悬停有"可以进练习"的反馈 */
.task-row.is-clickable { cursor: pointer; border-radius: var(--r-s); }
.task-row.is-clickable:hover { background: var(--brand-soft); }
.task-row.is-clickable .check-btn { border-color: var(--brand); color: var(--brand-deep); }
.task-row.is-clickable .check-btn:hover { background: var(--brand-soft); }
.check-btn { display: flex; align-items: center; justify-content: center; font-weight: 800; }

/* ---------- 统计小卡 ---------- */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}
.stat-card {
  text-align: center;
  padding: 14px 8px;
  border-radius: var(--r-m);
  background: var(--card-2);
  border: 2px solid var(--line);
}
.stat-card-v { font-size: var(--fs-xl); font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-card-k { font-size: var(--fs-xs); font-weight: 700; color: var(--ink-3); margin-top: 2px; }

/* ---------- 本月日历热力图 ---------- */
.heat-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.heat-w {
  text-align: center;
  font-size: var(--fs-xs);
  font-weight: 800;
  color: var(--ink-3);
  padding: 2px 0;
}
.heat-d {
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--line);
  color: var(--ink-2);
  font-size: var(--fs-s);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.heat-d.is-empty { background: transparent; }
.heat-d.is-future { opacity: .4; }

/* 今天：加一圈橙色描边 */
.heat-d.is-today { box-shadow: inset 0 0 0 3px var(--brand); }

/* ---------- 分数填写页（问卷第一题） ---------- */
.score-editor .task-row { border-bottom: 2px dashed var(--line); }
.score-editor .task-row:last-of-type { border-bottom: 2px dashed var(--line); }

.score-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

/* ---------- 窄屏 ---------- */
@media (max-width: 720px) {
  .check-btn { width: 42px; height: 42px; font-size: 19px; }
  .heat-d { border-radius: 8px; font-size: var(--fs-xs); }
}
