/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 顶部积分按钮样式 */
.points-container {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    border-radius: 0 0 15px 15px;
}

.point-btn {
    background: linear-gradient(135deg, #ff7e5f, #feb47b);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.point-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

/* 中间签到按钮样式 */
.checkin-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    margin: 30px 0;
}

.pulse-btn {
    background: linear-gradient(135deg, #4e54c8, #8f94fb);
    color: white;
    border: none;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    font-size: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    animation: pulse 2s infinite;
}

.pulse-btn i {
    font-size: 36px;
    margin-bottom: 10px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(78, 84, 200, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(78, 84, 200, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(78, 84, 200, 0);
    }
}

/* 底部任务列表样式 */
.tasks-container {
    background-color: white;
    border-radius: 15px 15px 0 0;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.tasks-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.task-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.task-item:hover {
    transform: translateY(-3px);
}

.task-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.task-info i {
    font-size: 24px;
    color: #4e54c8;
}

.task-text h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.task-text p {
    font-size: 14px;
    color: #666;
}

.task-btn {
    background-color: #4e54c8;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.task-btn:hover {
    background-color: #3a3f9e;
}

.return-btn {
    background-color: #4e9ed8;
}

.return-btn:hover {
    background-color: #3a7fb0;
}

/* 签到弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    width: 90%;
    max-width: 350px;
    border-radius: 15px;
    padding: 25px;
    position: relative;
    animation: fadeInUp 0.5s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.checkin-days {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.day-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    width: 20%;
}

.day-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: #666;
    position: relative;
}

.day-circle.active {
    background: linear-gradient(135deg, #ffb347, #ffcc33);
    color: white;
}

.day-circle.active::after {
    content: '✓';
    position: absolute;
    bottom: -5px;
    right: -5px;
    background-color: #4CAF50;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
}

.day-reward {
    font-size: 12px;
    color: #ff7e5f;
    font-weight: bold;
}

.day-status {
    font-size: 12px;
    color: #4e54c8;
    font-weight: bold;
}

.confirm-btn {
    background: linear-gradient(135deg, #ff7e5f, #feb47b);
    color: white;
    border: none;
    width: 100%;
    padding: 12px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 15px;
}

.confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.tomorrow-tip {
    text-align: center;
    color: #999;
    font-size: 14px;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 20px;
    cursor: pointer;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .checkin-days {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .day-item {
        flex: 0 0 30%;
    }
}