/* 结果验收板块样式 */

.result-acceptance {
    padding: 0;
}

.result-acceptance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.result-acceptance-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.result-acceptance-title h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
}

.result-acceptance-title .material-symbols-outlined {
    color: #3b82f6;
    font-size: 28px;
}

/* 标签页导航 */
.tab-navigation {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 12px;
    overflow-x: auto;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    background: #f3f4f6;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.tab-btn.active {
    background: #3b82f6;
    color: white;
}

.tab-btn .material-symbols-outlined {
    font-size: 20px;
}

.tab-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.tab-btn:not(.active) .tab-count {
    background: #d1d5db;
    color: #374151;
}

/* 交付品列表 */
.deliverables-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.deliverable-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.deliverable-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.deliverable-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.deliverable-info {
    flex: 1;
}

.deliverable-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 8px 0;
}

.deliverable-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: #6b7280;
}

.deliverable-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.deliverable-meta-item .material-symbols-outlined {
    font-size: 16px;
}

.deliverable-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.deliverable-status.pending {
    background: #fef3c7;
    color: #92400e;
}

.deliverable-status.approved {
    background: #d1fae5;
    color: #065f46;
}

.deliverable-status.rejected {
    background: #fee2e2;
    color: #991b1b;
}

.deliverable-status.processing {
    background: #dbeafe;
    color: #1e40af;
}

/* 交付品内容区域 */
.deliverable-content {
    margin-bottom: 16px;
}

.deliverable-text {
    color: #374151;
    font-size: 14px;
    line-height: 1.6;
    background: #f9fafb;
    padding: 16px;
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.deliverable-preview {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
}

.deliverable-preview.image-preview {
    max-width: 300px;
    cursor: pointer;
}

.deliverable-preview.image-preview img {
    width: 100%;
    height: auto;
    display: block;
}

.deliverable-preview.audio-preview,
.deliverable-preview.video-preview {
    max-width: 100%;
}

.deliverable-preview audio,
.deliverable-preview video {
    width: 100%;
    border-radius: 8px;
}

.deliverable-preview.document-preview {
    padding: 20px;
    text-align: center;
}

.document-preview .document-icon {
    font-size: 48px;
    color: #6b7280;
    margin-bottom: 8px;
}

.document-preview .document-name {
    font-size: 14px;
    color: #374151;
    margin-bottom: 4px;
}

.document-preview .document-size {
    font-size: 12px;
    color: #9ca3af;
}

/* 预览遮罩层 */
.preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    cursor: pointer;
}

.preview-overlay img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.preview-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #374151;
}

/* 交付品操作按钮 */
.deliverable-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.action-btn.primary {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.action-btn.primary:hover {
    background: #2563eb;
}

.action-btn.success {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.action-btn.success:hover {
    background: #059669;
}

.action-btn.danger {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
}

.action-btn.danger:hover {
    background: #dc2626;
}

.action-btn .material-symbols-outlined {
    font-size: 18px;
}

/* 验收备注模态框 */
.remark-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.remark-modal .modal-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    width: 90%;
    max-width: 500px;
}

.remark-modal .modal-header {
    margin-bottom: 20px;
}

.remark-modal .modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.remark-modal textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 20px;
}

.remark-modal textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.remark-modal .modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.empty-state .material-symbols-outlined {
    font-size: 64px;
    color: #d1d5db;
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 8px 0;
}

.empty-state p {
    font-size: 14px;
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .result-acceptance-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .tab-navigation {
        width: 100%;
    }

    .deliverable-header {
        flex-direction: column;
        gap: 12px;
    }

    .deliverable-meta {
        flex-direction: column;
        gap: 8px;
    }

    .deliverable-actions {
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
        justify-content: center;
    }
}