/* 任务详情视觉优化 - 电影级卡片式布局 (V3 深度美化版) */

/* 头部样式：精致背景与强力状态指示 */
.detail-header-new {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-title-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-id-badge {
    background: rgba(249, 115, 22, 0.12);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    width: fit-content;
    border: 1px solid rgba(249, 115, 22, 0.2);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.detail-header-new h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.task-status-badge-new {
    padding: 10px 22px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.05);
}

.task-status-badge-new.completed { background: linear-gradient(135deg, #10b981, #059669); color: white; }
.task-status-badge-new.processing { background: linear-gradient(135deg, #3b82f6, #2563eb); color: white; }
.task-status-badge-new.pending, .task-status-badge-new.queued { background: linear-gradient(135deg, #6366f1, #4f46e5); color: white; }
.task-status-badge-new.failed { background: linear-gradient(135deg, #ef4444, #dc2626); color: white; }

/* 卡片通用布局 */
.detail-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    margin-bottom: 24px;
    overflow: hidden;
    backdrop-filter: blur(15px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.detail-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.detail-card .card-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 16px 28px;
    font-size: 14px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.detail-card .card-header .header-left-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.detail-card .card-header i {
    color: var(--primary);
    font-size: 15px;
    opacity: 0.9;
}

.detail-card .card-body {
    padding: 28px;
}

/* 提示词深度美化 */
.detail-prompt-box {
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    padding: 22px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 2px 15px rgba(0,0,0,0.3);
}

.prompt-text {
    margin: 0;
    line-height: 1.8;
    font-size: 16px;
    color: #f1f5f9;
    font-weight: 400;
    letter-spacing: 0.2px;
}

/* 按钮样式增强 */
.btn-copy-mini {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    padding: 7px 16px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-copy-mini:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

/* 画廊预览模式 */
.detail-gallery-focus {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 28px;
}

.gallery-item-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
}

.gallery-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    color: white;
    padding: 8px 18px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.gallery-content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #1e293b 0%, #000 100%);
    position: relative;
}

.video-focus .gallery-content {
    aspect-ratio: auto !important;
    max-height: 600px;
    padding-bottom: 15px; /* 给播放条留出空间 */
}

.gallery-media {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

video.gallery-media {
    width: 100% !important;
    height: auto !important;
    max-height: 580px !important;
}

/* 参数信息网格 */
.info-grid-new {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(255, 255, 255, 0.02);
    padding: 15px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.info-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 800;
}

.info-value {
    color: #fff;
    font-weight: 800;
    font-size: 16px;
}

.info-value code {
    background: rgba(249, 115, 22, 0.15);
    color: #fb923c;
    padding: 3px 10px;
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
}

/* 底部操作区 */
.detail-modal-footer {
    display: flex;
    gap: 15px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 10px;
}

.btn-footer-main {
    flex: 2;
    background: linear-gradient(135deg, #f97316, #ea580c);
    border: none;
    color: white;
    padding: 15px;
    border-radius: 16px;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.3);
}

.btn-footer-sub {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 15px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

/* 增强模块优化 */
.enhance-module-new {
    padding: 5px;
}

.enhance-result-focus {
    margin-top: 20px;
}

/* 滚动条优化 */
.detail-smooth-scroll {
    max-height: calc(90vh - 140px);
    overflow-y: auto;
    padding: 0 15px 15px;
}

/* 优化关闭按钮样式 - 更美观的设计 */
.modal-close-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.modal-close-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.modal-close-btn:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.2));
    border-color: rgba(239, 68, 68, 0.4);
    color: #ff6b6b;
    transform: rotate(90deg) scale(1.05);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
}

.modal-close-btn:hover::before {
    width: 100%;
    height: 100%;
}

.modal-close-btn:active {
    transform: rotate(90deg) scale(0.95);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.modal-close-btn i {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.modal-close-btn:hover i {
    transform: scale(1.1);
}

/* 模态框头部关闭按钮样式统一 */
.modal-header .modal-close-btn {
    margin-left: auto;
}

/* 确保图标居中 */
.modal-close-btn i.fas.fa-times {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.detail-smooth-scroll::-webkit-scrollbar {
    width: 6px;
}

.detail-smooth-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

/* 清晰化方案选择模态框样式 */
.workflow-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.workflow-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.workflow-option:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.workflow-option.selected {
    border-color: var(--primary);
    background: rgba(249, 115, 22, 0.12);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.workflow-option .workflow-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), #fb923c);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
}

.workflow-option[data-workflow="flashvsr"] .workflow-icon {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
}

.workflow-option[data-workflow="flashvsr_interp"] .workflow-icon {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.workflow-option[data-workflow="frame_interp"] .workflow-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.workflow-option .workflow-info {
    flex: 1;
}

.workflow-option .workflow-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
}

.workflow-option .workflow-info p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

.workflow-option .workflow-check {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.2);
    transition: all 0.2s;
    flex-shrink: 0;
}

.workflow-option.selected .workflow-check {
    color: var(--primary);
}

.modal-small {
    max-width: 600px !important;
    width: 90%;
}

.modal-small .modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-small .modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-small .modal-header h3 i {
    color: var(--primary);
}

.modal-small .modal-body {
    padding: 24px;
}
