/* 检测历史页面样式优化 */
.history-header {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 50%, #fff5f5 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.history-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,71,87,0.03)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    pointer-events: none;
}

.header-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.header-content h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-content p {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 搜索和筛选区域 */
.search-filter {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 71, 87, 0.1);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-top: 3rem;
    box-shadow: 0 8px 32px rgba(255, 71, 87, 0.1);
    position: relative;
    z-index: 1;
}

.search-box {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-lighter);
    font-size: 1rem;
}

.search-box input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 1px solid rgba(255, 71, 87, 0.2);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.1);
}

.filter-options {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-options select {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 71, 87, 0.2);
    border-radius: var(--radius);
    background: white;
    color: var(--text);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-options select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.1);
}

.filter-options .btn {
    margin-left: auto;
}

/* 历史记录列表 */
.history-list {
    padding: 80px 0;
    background: white;
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.history-item {
    background: white;
    border: 1px solid rgba(255, 71, 87, 0.1);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(255, 71, 87, 0.1);
    transition: all 0.3s ease;
}

.history-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(255, 71, 87, 0.15);
    border-color: var(--primary);
}

.item-header {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255, 71, 87, 0.1);
}

.file-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.file-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.file-details {
    flex: 1;
    min-width: 0;
}

.file-details h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.file-details p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.file-meta {
    font-size: 0.875rem;
    color: var(--text-light);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.item-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    flex-shrink: 0;
}

.item-status.completed {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.item-status.processing {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.item-status.failed {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.item-content {
    padding: 1.5rem;
}

/* 统一的进度指示器样式 */
.score-display {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 71, 87, 0.02);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 71, 87, 0.1);
}

/* 半圆形进度指示器 - 用于已完成的项目 */
.score-circle {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.score-circle svg {
    transform: rotate(-90deg);
    filter: drop-shadow(0 2px 4px rgba(255, 71, 87, 0.2));
}

.score-circle .score-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.score-circle .score-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
    line-height: 1;
}

.score-circle .score-label {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* 水平进度条 - 用于检测中的项目 */
.progress-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.02);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.progress-bar {
    width: 80px;
    height: 8px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 1rem;
    font-weight: 600;
    color: #3b82f6;
}

/* 统一的详情信息样式 */
.score-details {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: rgba(255, 71, 87, 0.05);
    border-radius: var(--radius);
    font-size: 0.875rem;
}

.detail-row span:first-child {
    color: var(--text-light);
}

.detail-row span:last-child {
    font-weight: 600;
    color: var(--primary);
}

/* 统一的按钮组样式 */
.item-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.item-actions .btn {
    flex: 1;
    min-width: 120px;
    justify-content: center;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.item-actions .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: var(--radius-xl);
    border: 2px dashed rgba(255, 71, 87, 0.2);
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-lighter);
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1rem;
}

.empty-state p {
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination .page-btn {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    background: white;
    border: 1px solid rgba(255, 71, 87, 0.2);
    color: var(--text);
    transition: all 0.3s ease;
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.pagination .page-btn:hover:not(:disabled) {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
}

.pagination .page-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    font-weight: 600;
    cursor: default;
}

.pagination .page-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f0f0f0;
    border-color: #e0e0e0;
    color: #a0a0a0;
}

/* 分页按钮图标样式 */
.pagination .page-btn i {
    font-family: "Font Awesome 6 Free", "FontAwesome", "Font Awesome 5 Free", sans-serif;
    font-weight: 900;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: inherit;
    display: inline-block;
    vertical-align: middle;
    font-size: 1rem;
    transition: transform 0.3s ease;
    line-height: 1;
}

/* 确保图标正确显示 */
.pagination .page-btn i.fa-chevron-left::before {
    content: "\f053";
}

.pagination .page-btn i.fa-chevron-right::before {
    content: "\f054";
}

/* 备用图标方案 */
.pagination .page-btn i.fa-chevron-left:not([class*="fa-chevron-left"])::before,
.pagination .page-btn i.fa-chevron-right:not([class*="fa-chevron-right"])::before {
    content: "‹";
    font-family: inherit;
    font-weight: bold;
    font-size: 1.2rem;
}

.pagination .page-btn i.fa-chevron-right:not([class*="fa-chevron-right"])::before {
    content: "›";
}

.pagination .page-btn:hover:not(:disabled) i {
    transform: scale(1.1);
}

.pagination .page-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(255, 71, 87, 0.2);
}

/* 分页按钮数字样式 */
.pagination .page-btn:not(:has(i)) {
    font-weight: 600;
    font-size: 0.875rem;
}

/* 分页按钮特殊效果 */
.pagination .page-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.1), rgba(255, 71, 87, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: var(--radius);
}

.pagination .page-btn:hover:not(:disabled)::before {
    opacity: 1;
}

/* 分页按钮图标特殊样式 */
.pagination .page-btn i.fa-chevron-left,
.pagination .page-btn i.fa-chevron-right {
    position: relative;
    z-index: 1;
}

/* 分页按钮激活状态特殊效果 */
.pagination .page-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(255, 71, 87, 0.3);
}

/* 分页按钮悬停时的光晕效果 */
.pagination .page-btn:hover:not(:disabled) {
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.25);
}

/* 分页按钮点击效果 */
.pagination .page-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
}

/* 分页按钮数字悬停效果 */
.pagination .page-btn:not(:has(i)):hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary), #ff4757);
    color: white;
    transform: translateY(-2px) scale(1.05);
}

/* 分页按钮图标悬停时的脉冲效果 */
.pagination .page-btn:hover:not(:disabled) i {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* 分页按钮禁用状态的改进 */
.pagination .page-btn:disabled {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-color: #dee2e6;
    color: #adb5bd;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 分页按钮组整体效果 */
.pagination {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 71, 87, 0.1);
    box-shadow: 0 4px 20px rgba(255, 71, 87, 0.1);
}

/* 分页省略号样式 */
.page-dots {
    padding: 0 0.5rem;
    color: var(--text-light);
    font-size: 0.875rem;
    user-select: none;
}

/* 屏幕阅读器友好样式 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 分页按钮焦点样式 */
.pagination .btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.3);
}

.pagination .btn:focus:not(:disabled) {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .history-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .header-content h1 {
        font-size: 2.5rem;
    }
    
    .header-content p {
        font-size: 1.125rem;
    }
    
    .search-filter {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .filter-options {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-options select {
        width: 100%;
    }
    
    .filter-options .btn {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
    
    .history-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .item-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .item-status {
        align-self: flex-start;
    }
    
    .score-display,
    .progress-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
    
    .score-details {
        grid-template-columns: 1fr;
        width: 100%;
    }
    
    .item-actions {
        flex-direction: column;
    }
    
    .item-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .header-content h1 {
        font-size: 2rem;
    }
    
    .header-content p {
        font-size: 1rem;
    }
    
    .search-filter {
        padding: 1rem;
    }
    
    .file-info {
        flex-direction: column;
        text-align: center;
    }
    
    .file-meta {
        justify-content: center;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .pagination .page-btn {
        flex: 1;
        min-width: 36px;
        height: 36px;
        padding: 0.5rem;
        font-size: 0.75rem;
    }
    
    .pagination .page-btn i {
        font-size: 0.75rem;
    }
    
    .page-dots {
        padding: 0 0.25rem;
        font-size: 0.75rem;
    }
}






