/* 签到统计 */
.xo-stat-item {
    text-align: center;
    padding: 12px 8px;
    border-radius: 0.5rem;
    background: var(--bs-tertiary-bg);
}
.xo-stat-item .stat-num {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}
.xo-stat-item .stat-label {
    font-size: 0.78rem;
    color: var(--bs-secondary);
    margin-top: 2px;
}

/* 日历网格 */
.xo-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}
.xo-cal-header {
    text-align: center;
    font-size: 0.75rem;
    color: var(--bs-secondary);
    font-weight: 600;
    padding: 4px 0;
}
.xo-cal-cell {
    text-align: center;
    padding: 2px 0;
    min-height: 42px;
}
.xo-cal-day {
    width: 34px;
    height: 34px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.2s;
    position: relative;
    line-height: 1;
}
.xo-cal-day-empty {}
.xo-cal-day-future { opacity: 0.3; }
.xo-cal-day-checked {
    background: var(--bs-primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.7rem;
}
.xo-cal-day-checked .xo-cal-mood {
    font-size: 0.85rem;
    line-height: 1;
}
.xo-cal-day-checked .xo-cal-credits {
    font-size: 0.55rem;
    line-height: 1;
    margin-top: 1px;
    color: rgba(255,255,255,0.9);
    font-weight: 700;
}
.xo-cal-day-today {
    border: 2px solid var(--bs-primary);
    font-weight: 700;
    color: var(--bs-primary);
}
.xo-cal-day-checked.xo-cal-day-today {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
}
.xo-cal-day-past {
    background: var(--bs-tertiary-bg);
    color: var(--bs-secondary-color);
}

/* 独立日历页样式 */
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.cal-header-cell {
    text-align: center;
    font-size: 0.8rem;
    color: var(--bs-secondary);
    font-weight: 600;
    padding: 6px 0;
}
.cal-cell {
    text-align: center;
    padding: 2px 0;
}
.cal-day {
    width: 38px;
    height: 38px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.15s;
    cursor: default;
    line-height: 1;
}
.cal-day-empty {}
.cal-day-checked {
    background-color: var(--bs-success-bg-subtle);
    color: var(--bs-success);
    font-weight: 600;
    font-size: 0.7rem;
}
.cal-day-checked .cal-mood {
    font-size: 0.9rem;
    line-height: 1;
}
.cal-day-checked .cal-credits {
    font-size: 0.55rem;
    line-height: 1;
    margin-top: 1px;
    color: var(--bs-success);
    font-weight: 700;
}
.cal-day-today {
    border: 2px solid var(--bs-primary);
    font-weight: 600;
    color: var(--bs-primary);
}
.cal-day-checked.cal-day-today {
    background-color: var(--bs-success-bg-subtle);
    border-color: var(--bs-success);
    color: var(--bs-success);
}
.checkin-stat {
    text-align: center;
    padding: 12px 8px;
    border-radius: 0.5rem;
    background: var(--bs-tertiary-bg);
}
.checkin-stat .stat-num {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}
.checkin-stat .stat-label {
    font-size: 0.78rem;
    color: var(--bs-secondary);
    margin-top: 2px;
}

/* 心情选择按钮 */
.xo-mood-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid var(--bs-border-color);
    background: var(--bs-body-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.65rem;
    color: var(--bs-secondary);
    padding: 2px;
}
.xo-mood-btn:hover {
    border-color: var(--bs-primary);
    background: var(--bs-primary-bg-subtle);
    transform: scale(1.08);
}
.xo-mood-btn .mood-emoji {
    font-size: 1.2rem;
    line-height: 1;
}

/* 签到成功奖励卡 */
.xo-reward-card {
    border: 1px solid var(--bs-success-border-subtle);
    background: var(--bs-success-bg-subtle);
    border-radius: 0.5rem;
    padding: 12px 16px;
}

/* 连续签到里程碑时间线 */
.xo-milestone-timeline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    padding: 16px 0 8px;
}
.xo-milestone-timeline::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 20px;
    right: 20px;
    height: 3px;
    background: var(--bs-border-color);
    border-radius: 2px;
}
.xo-milestone-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    min-width: 48px;
}
.xo-milestone-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid var(--bs-border-color);
    background: var(--bs-body-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    color: #fff;
    transition: all 0.3s;
}
.xo-milestone-dot.reached {
    border-color: var(--bs-primary);
    background: var(--bs-primary);
}
.xo-milestone-dot.current {
    border-color: var(--bs-primary);
    background: var(--bs-body-bg);
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.25);
}
.xo-milestone-dot.reached.current {
    background: var(--bs-primary);
}
.xo-milestone-day {
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 6px;
    color: var(--bs-body-color);
}
.xo-milestone-reward-text {
    font-size: 0.65rem;
    color: var(--bs-secondary);
    margin-top: 2px;
    white-space: nowrap;
}
.xo-milestone-reward-text.reached {
    color: var(--bs-primary);
    font-weight: 600;
}

/* 排行榜列表项 */
.xo-rank-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
}
 
.xo-rank-pos {
    width: 28px;
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.xo-rank-info {
    flex: 1;
    min-width: 0;
}
.xo-rank-name {
    font-weight: 500;
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.xo-rank-meta {
    font-size: 0.75rem;
    color: var(--bs-secondary);
}
