/* checkin.css —— 签到 · 等级页 */

/* ====================== 签到 · 等级页 ====================== */
#page-checkin .page-content { padding: 12px; }

.level-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 14px; padding: 18px 16px; color: var(--ink-on-primary);
  box-shadow: var(--shadow); margin-bottom: 12px;
}
.level-card-top { display: flex; align-items: center; gap: 12px; }
.level-avatar {
  width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,0.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; flex-shrink: 0;
}
.level-card-info { flex: 1; min-width: 0; }
.level-card-name { font-size: 16px; font-weight: 700; margin-bottom: 4px; font-family: var(--font-display); }
.level-card-badge {
  display: inline-block; font-size: 12px; font-weight: 700;
  background: rgba(255,255,255,0.5); padding: 2px 10px; border-radius: 10px;
}
.level-card-points { text-align: right; flex-shrink: 0; }
.level-points-num { font-size: 22px; font-weight: 800; line-height: 1.1; }
.level-points-label { font-size: 11px; opacity: .8; }
.level-progress-wrap { margin-top: 14px; }
.level-progress-bar {
  width: 100%; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.4);
  overflow: hidden;
}
.level-progress-fill {
  height: 100%; background: var(--ink-on-primary); border-radius: 3px; transition: width .3s ease;
}
.level-progress-text { font-size: 11px; margin-top: 6px; opacity: .9; }

.checkin-card {
  background: var(--bg-card); border-radius: 14px; padding: 16px;
  box-shadow: var(--shadow); margin-bottom: 12px;
}
.checkin-card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.checkin-streak-text { font-size: 14px; font-weight: 700; color: var(--text-title); }
.checkin-streak-text span { color: var(--accent); }
.checkin-total-text { font-size: 12px; color: var(--text-tip); }
.checkin-grid { display: flex; gap: 6px; margin-bottom: 14px; }
.checkin-day-box {
  flex: 1; background: var(--bg-page); border-radius: 8px; padding: 8px 2px;
  text-align: center; position: relative; border: 1.5px solid transparent;
}
.checkin-day-box.done { background: #e1f5fe; }
.checkin-day-box.today { border-color: var(--primary); }
.checkin-day-label { font-size: 10px; color: var(--text-tip); margin-bottom: 4px; }
.checkin-day-reward { font-size: 11px; font-weight: 700; color: var(--accent); }
.checkin-day-icon { font-size: 12px; color: var(--accent); font-weight: 700; height: 14px; margin-top: 2px; }

.points-rule-card, .points-history-card {
  background: var(--bg-card); border-radius: 14px; padding: 16px;
  box-shadow: var(--shadow); margin-bottom: 12px;
}
.points-rule-title, .points-history-title {
  font-size: 14px; font-weight: 700; color: var(--text-title); margin-bottom: 10px;
}
.points-rule-item { font-size: 12px; color: var(--text-body); line-height: 2; }
.points-history-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 0; border-bottom: 1px solid var(--border-light); font-size: 12px;
}
.points-history-item:last-child { border-bottom: none; }
.ph-reason { color: var(--text-title); }
.ph-right { text-align: right; flex-shrink: 0; }
.ph-amount { color: var(--alert); font-weight: 700; margin-right: 8px; }
.ph-time { color: var(--text-tip); }
