/* ============ 打卡日历 #/calendar ============ */
.cal { max-width: 760px; margin: 0 auto; padding: 0 20px 48px; }
.cal button:not(.btn) { border: 0; background: none; padding: 0; }
.cal a.btn { text-decoration: none; color: var(--ink); }
.cal .btn.primary { color: #fff; }
.c-head { display: flex; align-items: center; gap: 16px; padding: 20px 0 14px; }

.c-today { display: flex; align-items: center; gap: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 18px 22px; }
.c-today.done { background: #EEF5EF; border-color: #CFE3D4; }
.c-stamp { flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; font-weight: 700; color: var(--ink-3); border: 2.5px dashed #D9C8BB; font-variant-numeric: tabular-nums; }
.c-today.done .c-stamp { background: var(--ok); border: 0; color: #fff; font-size: 34px; transform: rotate(-8deg); box-shadow: 0 6px 16px rgba(79,138,91,.3); }
.c-today-text { flex: 1; min-width: 0; }
.c-today h2 { margin: 0 0 4px; font-size: 22px; }
.c-today p { margin: 0; color: var(--ink-2); line-height: 1.5; }
.c-today-go { display: flex; gap: 8px; flex-wrap: wrap; }

.c-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0; }
.c-stats div { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 8px; text-align: center; }
.c-stats b { display: block; font-size: 30px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.c-stats div:first-child b { color: var(--clay-deep); }
.c-stats span { font-size: 13px; color: var(--ink-3); }

.c-cal { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 16px 18px 14px; }
.c-month { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.c-month h3 { margin: 0; font-size: 18px; }
.c-nav { width: 38px; height: 38px; border-radius: 50%; font-size: 26px; line-height: 1; color: var(--ink); padding-bottom: 4px !important; }
.c-nav:hover:not(:disabled) { background: var(--paper) !important; }
.c-nav:disabled { opacity: .25; cursor: default; }
.c-week, .c-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.c-week span { text-align: center; font-size: 13px; color: var(--ink-3); padding: 4px 0; }
.c-day { height: 62px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; position: relative; font-variant-numeric: tabular-nums; }
.c-day b { font-size: 16px; font-weight: 600; color: var(--ink-2); }
.c-day:not(:disabled):not(.blank):hover { background: var(--paper) !important; }
.c-day:disabled { opacity: .35; cursor: default; }
.c-day.on { background: #F6E3DA !important; }
.c-day.on b { color: var(--clay-deep); font-weight: 700; }
.c-day.today { box-shadow: inset 0 0 0 2px var(--clay); }
.c-day.sel { box-shadow: inset 0 0 0 2px var(--ink); }
.c-marks { display: flex; gap: 3px; height: 7px; font-style: normal; }
.c-marks em, .c-legend em { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }
.m-read { background: var(--clay); }
.m-kids { background: #E0A630; }
.m-hand { background: var(--ink-3); }
.c-legend { display: flex; gap: 16px; justify-content: flex-end; font-size: 12px; color: var(--ink-3); margin-top: 10px; }
.c-legend span { display: flex; align-items: center; gap: 5px; }

.c-detail { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 20px; margin-top: 14px; }
.c-detail:empty { display: none; }
.c-detail h4 { margin: 0 0 8px; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.c-ok { font-size: 12px; font-weight: 600; color: var(--ok); background: #EEF5EF; padding: 2px 8px; border-radius: 999px; }
.c-detail ul { margin: 0 0 8px; padding-left: 0; list-style: none; line-height: 1.8; }
.c-none { margin: 0 0 10px; color: var(--ink-3); }
.c-sub { margin: 0 0 8px; font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.c-detail .btn { margin-top: 4px; }
.c-foot { text-align: center; font-size: 12px; color: var(--ink-3); margin-top: 18px; }

@media (max-width: 560px) {
  .cal { padding: 0 16px 40px; }
  .c-today { flex-wrap: wrap; padding: 16px; gap: 14px; }
  .c-stamp { width: 54px; height: 54px; font-size: 24px; }
  .c-today-go { width: 100%; }
  .c-today-go .btn { flex: 1; text-align: center; }
  .c-stats { grid-template-columns: repeat(2, 1fr); }
  .c-cal { padding: 12px 10px; }
  .c-week, .c-grid { gap: 3px; }
  .c-day { height: auto; aspect-ratio: 1; border-radius: 10px; }
  .c-day b { font-size: 15px; }
}
