/* 签到模态框样式 */
.checkin-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0, 20, 40, 0.8) 0%, rgba(0, 0, 0, 0.9) 100%);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-in-out;
}

.checkin-modal-content {
    background: linear-gradient(145deg, rgba(15, 25, 35, 0.95) 0%, rgba(25, 35, 45, 0.95) 100%);
    border: 1px solid rgba(0, 255, 255, 0.3);
    margin: auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2), 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: slideIn 0.3s ease-out;
    overflow: hidden;
    position: relative;
}

.checkin-header {
    background: linear-gradient(135deg, rgba(0, 100, 200, 0.8) 0%, rgba(0, 150, 255, 0.6) 50%, rgba(0, 200, 255, 0.8) 100%);
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
    color: #00ffff;
    padding: 20px;
    text-align: center;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 255, 255, 0.2);
}

.checkin-header h3 {
    color: #00ffff;
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    letter-spacing: 1px;
}

.checkin-close {
    position: absolute;
    right: 15px;
    top: 15px;
    color: #00ffff;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(0, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    background: rgba(0, 255, 255, 0.1);
}

.checkin-close:hover {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

.checkin-body {
    padding: 25px;
    background: linear-gradient(145deg, rgba(10, 20, 30, 0.9) 0%, rgba(20, 30, 40, 0.9) 100%);
    position: relative;
}

.checkin-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.checkin-day {
    padding: 0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(0, 255, 255, 0.3);
    background: linear-gradient(145deg, rgba(20, 30, 40, 0.8) 0%, rgba(30, 40, 50, 0.8) 100%);
    color: #00ccff;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.checkin-day.checked {
    background: linear-gradient(135deg, rgba(0, 255, 100, 0.8) 0%, rgba(0, 200, 150, 0.8) 100%);
    color: #ffffff;
    border: 1px solid rgba(0, 255, 100, 0.6);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 255, 100, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 0 0 5px rgba(0, 255, 100, 0.8);
}

.checkin-day.today {
    border: 1px solid rgba(0, 150, 255, 0.8);
    box-shadow: 0 0 20px rgba(0, 150, 255, 0.4), 0 0 0 2px rgba(0, 150, 255, 0.3);
    background: linear-gradient(145deg, rgba(0, 100, 200, 0.3) 0%, rgba(0, 150, 255, 0.3) 100%);
}

.checkin-day.today.checked {
    background: linear-gradient(135deg, rgba(0, 150, 255, 0.9) 0%, rgba(0, 100, 200, 0.9) 100%);
    border: 1px solid rgba(0, 150, 255, 0.8);
    box-shadow: 0 0 25px rgba(0, 150, 255, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.checkin-day-name {
    font-size: 10px;
    margin-bottom: 2px;
    opacity: 0.8;
}

.checkin-day-date {
    font-size: 11px;
    font-weight: 600;
}

.checkin-day-credits {
    font-size: 10px;
    font-weight: 600;
    color: #ffaa00;
    margin-top: 2px;
    text-align: center;
    text-shadow: 0 0 5px rgba(255, 170, 0, 0.6);
}

.checkin-day-credits.special-day {
    color: #ff6b35;
    font-weight: 700;
    animation: pulse 2s infinite;
}

.checkin-day.sunday-special {
    position: relative;
    border: 1px solid rgba(255, 100, 0, 0.8);
    background: linear-gradient(135deg, rgba(255, 100, 0, 0.2) 0%, rgba(255, 150, 50, 0.2) 100%);
    box-shadow: 0 0 15px rgba(255, 100, 0, 0.3);
}

.checkin-day.sunday-special.checked {
    background: linear-gradient(135deg, rgba(255, 100, 0, 0.9) 0%, rgba(255, 150, 50, 0.9) 100%);
    color: white;
    box-shadow: 0 0 20px rgba(255, 100, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 0 0 5px rgba(255, 100, 0, 0.8);
}

.checkin-day.sunday-special.checked .checkin-day-credits {
    color: #fff;
}

.bonus-hint {
    font-size: 8px;
    color: #ffaa00;
    line-height: 1;
    font-weight: 700;
    margin-top: -5px;
    margin-bottom: 2px;
    text-shadow: 0 0 5px rgba(255, 170, 0, 0.8);
}

.bonus-achieved {
    font-size: 8px;
    color: #4CAF50;
    font-weight: 600;
    margin-top: 1px;
    line-height: 1;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 3px;
    padding: 1px 2px;
}

.checkin-day.sunday-special .bonus-hint {
    color: #ffaa00;
    border-radius: 3px;
    padding: 1px 2px;
    text-shadow: 0 0 8px rgba(255, 170, 0, 1);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.checkin-stats {
    background: linear-gradient(145deg, rgba(15, 25, 35, 0.8) 0%, rgba(25, 35, 45, 0.8) 100%);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.checkin-stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.checkin-stats-row:last-child {
    margin-bottom: 0;
}

.checkin-stats-label {
    font-size: 14px;
    color: #00ccff;
    text-shadow: 0 0 5px rgba(0, 204, 255, 0.5);
}

.checkin-stats-value {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.checkin-button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.checkin-button.primary {
    background: linear-gradient(135deg, rgba(0, 150, 255, 0.8) 0%, rgba(0, 100, 200, 0.8) 100%);
    border: 1px solid rgba(0, 150, 255, 0.5);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(0, 150, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 0 0 5px rgba(0, 150, 255, 0.8);
}

.checkin-button.primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 150, 255, 0.5), 0 4px 12px rgba(0, 150, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-shadow: 0 0 10px rgba(0, 150, 255, 1);
}

.checkin-button.primary:disabled {
    background: linear-gradient(145deg, rgba(60, 60, 60, 0.8) 0%, rgba(80, 80, 80, 0.8) 100%);
    border: 1px solid rgba(100, 100, 100, 0.5);
    color: rgba(200, 200, 200, 0.6);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    text-shadow: none;
}

.checkin-button.secondary {
    background: linear-gradient(145deg, rgba(30, 40, 50, 0.8) 0%, rgba(40, 50, 60, 0.8) 100%);
    color: #00ccff;
    border: 1px solid rgba(0, 255, 255, 0.3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-shadow: 0 0 5px rgba(0, 204, 255, 0.5);
}

.checkin-button.secondary:hover {
    background: linear-gradient(145deg, rgba(40, 50, 60, 0.9) 0%, rgba(50, 60, 70, 0.9) 100%);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 0 0 8px rgba(0, 204, 255, 0.8);
}

.checkin-message {
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
}

.checkin-message.success {
    background: linear-gradient(145deg, rgba(0, 255, 100, 0.2) 0%, rgba(0, 200, 150, 0.2) 100%);
    color: #00ff88;
    border: 1px solid rgba(0, 255, 100, 0.4);
    box-shadow: 0 0 15px rgba(0, 255, 100, 0.2);
    text-shadow: 0 0 5px rgba(0, 255, 100, 0.6);
}

.checkin-message.error {
    background: linear-gradient(145deg, rgba(255, 50, 50, 0.2) 0%, rgba(255, 100, 100, 0.2) 100%);
    color: #ff6666;
    border: 1px solid rgba(255, 50, 50, 0.4);
    box-shadow: 0 0 15px rgba(255, 50, 50, 0.2);
    text-shadow: 0 0 5px rgba(255, 50, 50, 0.6);
}

.checkin-message.info {
    background: linear-gradient(145deg, rgba(0, 200, 255, 0.2) 0%, rgba(0, 150, 255, 0.2) 100%);
    color: #00ccff;
    border: 1px solid rgba(0, 200, 255, 0.4);
    box-shadow: 0 0 15px rgba(0, 200, 255, 0.2);
    text-shadow: 0 0 5px rgba(0, 200, 255, 0.6);
}

.checkin-reward {
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, rgba(255, 200, 0, 0.3) 0%, rgba(255, 150, 0, 0.3) 100%);
    border: 1px solid rgba(255, 200, 0, 0.5);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 0 20px rgba(255, 200, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.checkin-reward-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffcc00;
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.8);
}

.checkin-reward-credits {
    font-size: 24px;
    font-weight: bold;
    color: #ffaa00;
    text-shadow: 0 0 15px rgba(255, 170, 0, 0.9);
}

.checkin-reward-desc {
    font-size: 12px;
    color: #cccccc;
    margin-top: 5px;
    text-shadow: 0 0 5px rgba(204, 204, 204, 0.6);
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        transform: translate3d(0, -10px, 0);
    }
    70% {
        transform: translate3d(0, -5px, 0);
    }
    90% {
        transform: translate3d(0, -2px, 0);
    }
}

.checkin-success-animation {
    animation: bounce 1s ease-in-out;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .checkin-modal-content {
        margin: auto;
        width: 95%;
    }
    
    .checkin-header {
        padding: 15px;
    }
    
    .checkin-header h3 {
        font-size: 18px;
    }
    
    .checkin-body {
        padding: 20px;
    }
    
    .checkin-day {
        font-size: 11px;
    }
    
    .checkin-day-name {
        font-size: 9px;
    }
    
    .checkin-day-date {
        font-size: 10px;
    }
}