/* 任务详情组件样式 */
.task-detail-component {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.task-type-badge .badge {
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(255, 167, 38, 0.3);
}

.task-title h5 {
    color: #2c3e50;
    margin-bottom: 0;
    line-height: 1.4;
}

.task-info-grid .info-item {
    padding: 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 167, 38, 0.1);
}

.task-info-grid .info-item:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 167, 38, 0.3);
    transform: translateY(-1px);
}

.info-icon i {
    font-size: 1.2rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.info-label {
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 4px;
    font-weight: 500;
}

.info-value {
    font-size: 0.95rem;
    line-height: 1.2;
}

.task-progress .progress {
    background-color: rgba(255, 167, 38, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.task-progress .progress-bar {
    transition: all 0.6s ease;
    border-radius: 10px;
    position: relative;
}

.task-progress .progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.task-description,
.task-execution {
    border-left: 3px solid #ffa726;
    transition: all 0.2s ease;
}

.task-description:hover,
.task-execution:hover {
    border-left-color: #ff9800;
    background-color: rgba(255, 248, 225, 0.8) !important;
}

.bond-info {
    animation: pulse-warning 2s infinite;
}

@keyframes pulse-warning {
    0%, 100% { 
        background-color: rgba(255, 193, 7, 0.1); 
        border-color: rgba(255, 193, 7, 0.3);
    }
    50% { 
        background-color: rgba(255, 193, 7, 0.15); 
        border-color: rgba(255, 193, 7, 0.5);
    }
}

.task-actions {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 249, 250, 0.9));
}

.countdown-info .text-danger {
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(220, 53, 69, 0.2);
}

.task-actions .btn {
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.task-actions .btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.task-actions .btn-warning {
    background: linear-gradient(135deg, #ffa726, #ff9800);
    border: none;
    color: white;
}

.task-actions .btn-warning:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff9800, #f57c00);
}

.task-debug {
    font-family: 'Courier New', monospace;
    max-height: 200px;
    overflow-y: auto;
}

.no-task-info {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .task-info-grid .col-md-4 {
        margin-bottom: 12px;
    }
    
    .task-actions .row {
        flex-direction: column;
        gap: 12px;
    }
    
    .task-actions .col-md-8,
    .task-actions .col-md-4 {
        text-align: center !important;
    }
    
    .countdown-info {
        justify-content: center !important;
    }
}

/* 暗色主题适配 - 已禁用，避免在某些设备上显示异常
/* @media (prefers-color-scheme: dark) {
    .task-detail-component {
        background: linear-gradient(135deg, #2c3e50, #34495e) !important;
        color: #ecf0f1;
    }
    
    .task-info-grid .info-item {
        background: rgba(52, 73, 94, 0.8);
        color: #ecf0f1;
    }
    
    .task-description,
    .task-execution {
        background-color: rgba(52, 73, 94, 0.6) !important;
        color: #ecf0f1;
    }
} */ 