/* 统一任务组弹窗样式 */

/* 弹窗容器 */
.task-group-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.task-group-modal.modal-show {
    opacity: 1;
}

/* 遮罩层 */
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

/* 弹窗内容 */
.task-modal-content {
    position: relative;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.task-group-modal.modal-show .task-modal-content {
    transform: scale(1);
}

/* 弹窗头部 */
.task-modal-header {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
}

.task-icon {
    font-size: 32px;
    margin-bottom: 8px;
    display: block;
}

.task-modal-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    display: block;
}

.task-modal-subtitle {
    font-size: 12px;
    opacity: 0.9;
    margin-top: 8px;
    display: block;
}

/* 弹窗主体 */
.task-modal-body {
    padding: 0;
    max-height: 60vh;
    overflow-y: auto;
}

/* 任务列表 */
.task-list {
    padding: 20px;
}

.task-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.task-item:hover {
    border-color: #ff6b35;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
}

.task-item.task-item-completed {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.task-item.task-item-completed:hover {
    border-color: #28a745;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}

/* 任务头部 */
.task-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.task-number {
    background: rgba(255, 255, 255, 0.2);
    color: #333;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.task-item.task-item-completed .task-number {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.task-header .task-icon {
    font-size: 20px;
    margin: 0;
}

/* 任务内容 */
.task-content {
    flex: 1;
}

.task-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    display: block;
}

.task-item.task-item-completed .task-name {
    color: white;
}

.task-desc {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    display: block;
}

.task-item.task-item-completed .task-desc {
    color: rgba(255, 255, 255, 0.8);
}

.task-reward-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.task-reward {
    font-size: 12px;
    font-weight: 600;
    color: #ff6b35;
    display: block;
}

.task-item.task-item-completed .task-reward {
    color: #ffd700;
}

.task-duration {
    font-size: 10px;
    color: #999;
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    display: block;
}

.task-item.task-item-completed .task-duration {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

/* 任务状态 */
.task-status {
    position: absolute;
    top: 12px;
    right: 12px;
}

.status-completed {
    color: #28a745;
    font-size: 18px;
    font-weight: bold;
}

.status-pending {
    color: #999;
    font-size: 18px;
}

.task-item.task-item-completed .status-completed {
    color: white;
}

/* 空状态 */
.empty-state {
    padding: 40px 20px;
    text-align: center;
}

.empty-icon {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 16px;
    display: block;
}

.empty-title {
    font-size: 16px;
    color: #666;
    margin-bottom: 8px;
    display: block;
}

.empty-desc {
    font-size: 12px;
    color: #999;
    display: block;
}

/* 弹窗底部 */
.task-modal-footer {
    padding: 16px 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.close-btn {
    background: #6c757d;
    color: white;
    padding: 10px 24px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.close-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.btn-text {
    font-size: 14px;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .task-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .task-modal-header {
        padding: 16px;
    }
    
    .task-list {
        padding: 16px;
    }
    
    .task-item {
        padding: 12px;
    }
}

/* 滚动条样式 */
.task-modal-body::-webkit-scrollbar {
    width: 4px;
}

.task-modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.task-modal-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

.task-modal-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
} 