/* 任务卡片组件样式 */ .task-card { background: white; border-radius: 20rpx; padding: 30rpx; margin: 20rpx 0; box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.1); border-left: 8rpx solid #e0e0e0; } .task-card.pending { border-left-color: #f0ad4e; } .task-card.processing { border-left-color: #10aeff; } .task-card.completed { border-left-color: #07c160; } .task-card.failed { border-left-color: #dd524d; } .task-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20rpx; padding-bottom: 20rpx; border-bottom: 1rpx solid #f0f0f0; } .task-title { font-size: 32rpx; font-weight: bold; color: #333; flex: 1; margin-right: 20rpx; } .task-status { padding: 8rpx 20rpx; border-radius: 20rpx; font-size: 24rpx; font-weight: bold; text-transform: uppercase; } .task-status.pending { background-color: #fff3cd; color: #856404; } .task-status.processing { background-color: #cce5ff; color: #004085; } .task-status.completed { background-color: #d4edda; color: #155724; } .task-status.failed { background-color: #f8d7da; color: #721c24; } .task-content { margin-bottom: 20rpx; } .task-description { font-size: 28rpx; color: #666; line-height: 1.5; margin-bottom: 20rpx; } .task-meta { display: flex; flex-wrap: wrap; gap: 20rpx; margin-bottom: 20rpx; } .task-type, .task-priority { font-size: 24rpx; color: #999; background: #f8f8f8; padding: 8rpx 16rpx; border-radius: 10rpx; } .task-timeline { display: flex; flex-direction: column; gap: 10rpx; } .task-time { font-size: 24rpx; color: #999; } .task-actions { display: flex; flex-wrap: wrap; gap: 15rpx; margin-top: 20rpx; padding-top: 20rpx; border-top: 1rpx solid #f0f0f0; } .action-btn { padding: 16rpx 32rpx; border: none; border-radius: 25rpx; font-size: 26rpx; font-weight: 500; transition: all 0.3s ease; min-width: 120rpx; } .action-btn.primary { background: linear-gradient(135deg, #07c160 0%, #06a050 100%); color: white; } .action-btn.success { background: linear-gradient(135deg, #28a745 0%, #218838 100%); color: white; } .action-btn.warning { background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%); color: #212529; } .action-btn.info { background: linear-gradient(135deg, #17a2b8 0%, #138496 100%); color: white; } .action-btn.danger { background: linear-gradient(135deg, #dc3545 0%, #c82333 100%); color: white; } .action-btn:active { transform: scale(0.95); } .task-progress { margin: 20rpx 0; display: flex; align-items: center; gap: 20rpx; } .progress-text { font-size: 24rpx; color: #666; min-width: 60rpx; text-align: right; } .task-result { background: #f8f9fa; border-radius: 10rpx; padding: 20rpx; margin-top: 20rpx; } .result-label { font-size: 24rpx; color: #666; font-weight: bold; margin-bottom: 10rpx; display: block; } .result-content { font-size: 26rpx; color: #333; line-height: 1.5; background: white; padding: 15rpx; border-radius: 8rpx; border: 1rpx solid #e9ecef; }