/**
 * ChangoPapyURL - 质量报告弹窗样式
 * 版本: v16
 * 创建时间: 2025-12-12
 */

/* 弹窗遮罩层 */
.quality-report-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s ease;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 弹窗主体 */
.quality-report-modal {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 弹窗头部 */
.quality-report-header {
    padding: 1.5rem 2rem;
    border-bottom: 3px solid #3b82f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
    border-radius: 16px 16px 0 0;
}

.quality-report-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.quality-report-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #64748b;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.quality-report-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #334155;
}

/* 弹窗主体内容 */
.quality-report-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

/* 总体评估 */
.quality-summary {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 4px solid #3b82f6;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.quality-level, .quality-confidence {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.quality-level-label, .quality-confidence-label {
    font-weight: 600;
    color: #475569;
}

.quality-level-value {
    font-weight: 700;
    font-size: 1.25rem;
}

.quality-confidence-value {
    font-weight: 700;
    font-size: 1.25rem;
    color: #3b82f6;
}

.quality-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
    font-size: 0.9rem;
    color: #64748b;
}

.quality-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* 问题详情区域 */
.quality-issues {
    margin-top: 1.5rem;
}

.quality-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.quality-issue-section {
    margin-bottom: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
}

.quality-issue-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 1rem;
}

.quality-issue-icon {
    font-size: 1.25em;
}

.quality-issue-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quality-issue-item {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-left: 3px solid #f59e0b;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.quality-issue-item:last-child {
    margin-bottom: 0;
}

.issue-location {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.issue-text {
    font-size: 0.95rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.issue-suggestion {
    font-size: 0.9rem;
    color: #059669;
    font-weight: 500;
    background: #ecfdf5;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    margin-top: 0.5rem;
}

.issue-confidence {
    font-size: 0.85rem;
    color: #dc2626;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* 建议区域 */
.quality-suggestions {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 1.5rem;
}

.quality-suggestions h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    font-weight: 700;
    color: #92400e;
}

.quality-suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quality-suggestions li {
    padding: 0.5rem 0;
    color: #78350f;
    font-size: 0.95rem;
}

/* 复核时间 */
.quality-review-time {
    text-align: center;
    padding: 1rem;
    background: #f1f5f9;
    border-radius: 8px;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #64748b;
}

/* 弹窗底部 */
.quality-report-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    background: #f8fafc;
    border-radius: 0 0 16px 16px;
}

.quality-report-footer button {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-secondary {
    background: #e2e8f0;
    color: #475569;
}

.btn-secondary:hover {
    background: #cbd5e1;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .quality-report-modal {
        width: 95%;
        max-height: 90vh;
    }
    
    .quality-report-header,
    .quality-report-body,
    .quality-report-footer {
        padding: 1rem 1.25rem;
    }
    
    .quality-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .quality-report-footer {
        flex-direction: column;
    }
    
    .quality-report-footer button {
        width: 100%;
    }
}

/* 滚动条美化 */
.quality-report-body::-webkit-scrollbar {
    width: 8px;
}

.quality-report-body::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.quality-report-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.quality-report-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}












