/* 签到打卡组件 */
.checkin-widget {
    position: fixed;
    right: 20px;
    bottom: 220px;
    background: linear-gradient(135deg, #fff, #FAF3E0);
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(139, 69, 19, 0.2);
    border: 2px solid #DAA520;
    z-index: 998;
    width: 140px;
    text-align: center;
    animation: checkinSlideIn 0.5s ease-out;
}

@keyframes checkinSlideIn {
    from { transform: translateX(150px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.checkin-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 10px;
}

.checkin-icon {
    font-size: 18px;
}

.checkin-title {
    font-size: 13px;
    font-weight: bold;
    color: #8B4513;
}

.checkin-streak {
    margin-bottom: 8px;
}

.checkin-days {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #DAA520;
    line-height: 1;
}

.checkin-label {
    font-size: 11px;
    color: #666;
}

.checkin-points {
    font-size: 12px;
    color: #8B4513;
    margin-bottom: 10px;
}

.checkin-btn {
    width: 100%;
    padding: 8px;
    border-radius: 20px;
    border: none;
    background: linear-gradient(135deg, #DAA520, #FFD700);
    color: #5D4037;
    font-weight: bold;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.checkin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(218, 165, 32, 0.4);
}

.checkin-btn.checked {
    background: #ccc;
    color: #666;
    cursor: default;
}

.checkin-tip {
    font-size: 10px;
    color: #999;
    margin-top: 8px;
    line-height: 1.4;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .checkin-widget {
        right: 10px;
        bottom: 200px;
        width: 120px;
        padding: 12px;
    }

    .checkin-days {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .checkin-widget {
        bottom: 180px;
        width: 100px;
        padding: 10px;
    }
}

/* 2026-08 防遮挡：与 global-enhance 统一浮动按钮组共存时移至左下角 */
.checkin-widget--left {
    right: auto;
    left: 20px;
    bottom: 80px;
}

@media (max-width: 768px) {
    .checkin-widget--left {
        left: 10px;
        bottom: 70px;
    }
}
