/* daily_checkin — Xiuno 版：签到页与侧栏面板 */
:root {
    --dc-primary: #5b6cff;
    --dc-primary-2: #7d5cff;
    --dc-green: #18b981;
    --dc-ink: #252b3a;
    --dc-muted: #8b93a7;
    --dc-line: rgba(120, 130, 160, .16);
    --dc-soft: #f5f6fb;
}

.dc-checkin-page { margin-top: .25rem; }

.dc-checkin-card,
.dc-side-card,
.dc-week-card {
    border: 1px solid var(--dc-line);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(35, 45, 75, .06);
}

.dc-checkin-card .card-body { padding: 1.55rem; }
.dc-side-card { margin-bottom: 1rem; }
.dc-side-card .card-header,
.dc-week-card .card-header {
    background: transparent;
    border-bottom: 1px solid var(--dc-line);
    font-weight: 700;
    color: var(--dc-ink);
    padding: .9rem 1.15rem;
}

.dc-checkin-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.dc-kicker {
    color: var(--dc-primary);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .14em;
    margin-bottom: .4rem;
}

.dc-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--dc-ink);
    margin: 0 0 .35rem;
}

.dc-subtitle { color: var(--dc-muted); font-size: .9rem; }

.dc-points-box {
    min-width: 112px;
    padding: .85rem 1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--dc-primary), var(--dc-primary-2));
    color: #fff;
    text-align: center;
    box-shadow: 0 8px 20px rgba(91, 108, 255, .22);
}
.dc-points-box span { display: block; font-size: .72rem; opacity: .86; }
.dc-points-box b { display: block; font-size: 1.55rem; line-height: 1.2; }

.dc-flash { margin: 1rem 0 0; border-radius: 12px; }

.dc-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
    margin-top: 1.25rem;
}
.dc-stat {
    padding: .85rem 1rem;
    border: 1px solid var(--dc-line);
    border-radius: 13px;
    background: var(--dc-soft);
}
.dc-stat span { display: block; color: var(--dc-muted); font-size: .75rem; margin-bottom: .25rem; }
.dc-stat b { color: var(--dc-ink); font-size: 1.02rem; }

.dc-action-row {
    display: flex;
    align-items: center;
    gap: .9rem;
    flex-wrap: wrap;
    margin: 1.2rem 0 1.4rem;
}
.dc-checkin-btn { border-radius: 12px; padding: .55rem 1.2rem; font-weight: 700; }
.dc-done-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .55rem .95rem;
    border-radius: 999px;
    color: #0c7a55;
    background: #e7faf2;
    border: 1px solid #b9efdc;
    font-weight: 700;
}
.dc-action-note { color: var(--dc-muted); font-size: .8rem; }

.dc-calendar {
    border-top: 1px solid var(--dc-line);
    padding-top: 1.15rem;
}
.dc-calendar-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    color: var(--dc-ink);
    font-size: 1.05rem;
    margin-bottom: .9rem;
}
.dc-cal-nav {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    color: var(--dc-primary);
    background: var(--dc-soft);
    text-decoration: none;
    font-size: 1.25rem;
    line-height: 1;
}
.dc-cal-nav:hover { background: #e9ecff; }
.dc-cal-nav.is-disabled { color: #c4c9d6; background: #f7f8fb; cursor: default; }

.dc-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 5px;
}
.dc-cal-week {
    text-align: center;
    color: var(--dc-muted);
    font-size: .72rem;
    padding: .2rem 0 .45rem;
}
.dc-cal-cell {
    min-height: 50px;
    border: 1px solid var(--dc-line);
    border-radius: 10px;
    padding: .32rem .38rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--dc-ink);
}
.dc-cal-cell.is-empty { border-color: transparent; background: transparent; }
.dc-cal-cell.is-checked { background: #e9fbf4; border-color: #a8e8d1; }
.dc-cal-cell.is-today { box-shadow: inset 0 0 0 2px var(--dc-primary); }
.dc-cal-cell.is-future { opacity: .45; }
.dc-cal-num { font-size: .78rem; font-weight: 700; }
.dc-cal-mark { font-size: .8rem; color: var(--dc-green); line-height: 1; text-align: right; }

.dc-rule-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.dc-rule-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .55rem 0;
    border-bottom: 1px dashed var(--dc-line);
    color: var(--dc-muted);
    font-size: .86rem;
}
.dc-rule-list li:last-child { border-bottom: 0; }
.dc-rule-list b { color: var(--dc-ink); }
.dc-side-tip { margin-top: .75rem; color: var(--dc-muted); font-size: .8rem; line-height: 1.6; }
.dc-side-card .card-body .btn { border-radius: 10px; }

/* 侧栏本周面板 */
.dc-week-card { margin-top: 1rem; overflow: hidden; }
.dc-week-card .card-header { padding: .8rem .95rem; font-size: .88rem; }
.dc-week-more { color: var(--dc-primary); font-size: .75rem; text-decoration: none; }
.dc-week-card .card-body { padding: .85rem .8rem .9rem; }
.dc-week-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}
.dc-week-day {
    text-align: center;
    border-radius: 9px;
    padding: .25rem 0 .3rem;
    background: var(--dc-soft);
}
.dc-week-day.is-checked { background: #e6faf2; }
.dc-week-day.is-today { box-shadow: inset 0 0 0 1.5px var(--dc-primary); }
.dc-week-day.is-future { opacity: .5; }
.dc-week-label { display: block; font-size: .68rem; color: var(--dc-muted); margin-bottom: 2px; }
.dc-week-dot {
    display: grid;
    place-items: center;
    width: 19px;
    height: 19px;
    margin: 0 auto;
    border-radius: 50%;
    color: #fff;
    background: #d9deea;
    font-size: .72rem;
    font-weight: 800;
}
.dc-week-day.is-checked .dc-week-dot { background: var(--dc-green); }
.dc-week-form { margin-top: .75rem; }
.dc-week-form .btn { border-radius: 9px; font-size: .82rem; padding: .42rem .6rem; }
.dc-week-status {
    margin-top: .8rem;
    padding: .62rem .7rem;
    border-radius: 10px;
    background: var(--dc-soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--dc-ink);
    font-size: .8rem;
}
.dc-week-status.is-done { background: #e9fbf4; color: #0c7a55; border: 1px solid #b9efdc; }
.dc-week-meta { margin-top: .55rem; color: var(--dc-muted); font-size: .73rem; text-align: center; }

@media (max-width: 575px) {
    .dc-checkin-card .card-body { padding: 1.05rem; }
    .dc-checkin-head { flex-direction: column; }
    .dc-points-box { width: 100%; display: flex; justify-content: space-between; align-items: center; }
    .dc-points-box span { margin: 0; }
    .dc-stat-grid { grid-template-columns: 1fr; }
    .dc-cal-cell { min-height: 44px; }
}
