/* Benchmark页面样式 - Modelverse风格 */
.benchmark-container {
    max-width: 1600px; /* 增加宽度 */
    margin: 0 auto;
    padding: 20px;
    background: white;
}

/* 加载动画 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f4f6;
    border-top: 2px solid #8b5cf6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

.benchmark-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.header-tabs {
    display: flex;
    gap: 12px;
}

.tab-btn {
    padding: 12px 24px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn.active {
    background: #4f46e5;
    color: white;
    border-color: #4f46e5;
}

.tab-btn:hover:not(.active) {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.search-filter-section {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.search-container {
    position: relative;
    min-width: 300px;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

.search-input:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    width: 16px;
    height: 16px;
}

.sort-dropdown {
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    outline: none;
    min-width: 150px;
}

.sort-dropdown:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* 表格样式 - 与 modelverse 保持一致 */
.benchmark-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.benchmark-table thead {
    background: #f8fafc;
}

.benchmark-table th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}

.benchmark-table td {
    padding: 12px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    vertical-align: middle;
}

.benchmark-table tbody tr:hover {
    background: #f9fafb;
}

/* 模型名称 */
.model-name {
    font-weight: 600;
    color: #111827;
    min-width: 200px;
}

/* 分类和行业标签 */
.category, .industry {
    background: #f3f4f6;
    color: #374151;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid #e5e7eb;
}

.industry {
    background: #f9fafb;
}

/* API价格 */
.api-price {
    font-weight: 600;
    color: #059669;
    text-align: center;
    font-size: 14px;
    white-space: nowrap;
}

/* Token图标 */
.token-icon {
    width: 16px;
    height: 16px;
    margin-left: 4px;
    vertical-align: middle;
}

/* 日变化 */
.daily-delta {
    font-weight: 600;
    text-align: center;
    font-size: 14px;
}

.daily-delta.positive {
    color: #059669;
}

.daily-delta.negative {
    color: #dc2626;
}

/* 使用量分数 */
.usage-score {
    font-weight: 600;
    color: #7c3aed;
    text-align: center;
    font-size: 15px;
    font-family: 'Courier New', monospace;
}

/* 兼容性分数 */
.compatibility-score {
    font-weight: 600;
    color: #059669;
    text-align: center;
    font-size: 14px;
}

/* Total Score */
.total-score {
    font-weight: 700;
    color: #111827;
    text-align: center;
    font-size: 16px;
    background: #f9fafb;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .benchmark-container {
        padding: 16px;
    }
    
    .benchmark-table {
        font-size: 12px;
    }
    
    .benchmark-table th,
    .benchmark-table td {
        padding: 8px 6px;
    }
    
    .model-name {
        min-width: 150px;
    }
    
    .category, .industry {
        max-width: 100px;
        font-size: 11px;
        padding: 4px 8px;
    }
}

@media (max-width: 768px) {
    .benchmark-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-filter-section {
        justify-content: center;
    }
    
    .search-container {
        min-width: 250px;
    }
    
    .benchmark-table {
        font-size: 11px;
    }
    
    .model-name {
        min-width: 120px;
    }
    
    .category, .industry {
        max-width: 80px;
        font-size: 10px;
        padding: 3px 6px;
    }
}

/* 工具提示样式 */
.tooltip-explanations {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 2px solid #e5e7eb;
    max-width: 500px;
    width: 90%;
    z-index: 1000;
    display: none;
}

.tooltip-section {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f3f4f6;
}

.tooltip-section:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.tooltip-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.tooltip-section p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

/* 工具提示背景遮罩 */
.tooltip-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

/* 信息按钮样式 */
.info-btn {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-left: 8px;
}

.info-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

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

.loading-state .spinner {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 3px solid #f3f4f6;
    border-top: 3px solid #8b5cf6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Action Button Styles */
.action-cell {
    text-align: center;
    padding: 8px 12px;
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Try Button */
.try-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 50px;
}

.try-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.try-btn:active {
    transform: translateY(0);
}

.try-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Add to Cart Button */
.add-cart-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 80px;
}

.add-cart-btn:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.add-cart-btn:active {
    transform: translateY(0);
}

.add-cart-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
} 

/* 加载更多按钮样式 */
.load-more-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.load-more-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

/* 性能优化：减少动画复杂度 */
.benchmark-table tr {
    transition: background-color 0.2s ease;
}

.benchmark-table tr:hover {
    background-color: rgba(102, 126, 234, 0.05);
}

/* 优化表格渲染性能 */
.benchmark-table {
    contain: layout style paint;
}

.benchmark-table tbody {
    contain: layout style;
} 

/* Peer Benchmark 特定样式 */
#peerBenchmarkTable {
    margin-top: 20px;
}

/* Peer Benchmark 统一样式 - 与 Model Benchmark 保持一致 */
#peerBenchmarkTable .benchmark-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#peerBenchmarkTable .benchmark-table thead {
    background: #f8fafc;
}

#peerBenchmarkTable .benchmark-table th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}

#peerBenchmarkTable .benchmark-table td {
    padding: 12px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    vertical-align: middle;
}

#peerBenchmarkTable .benchmark-table tbody tr:hover {
    background: #f9fafb;
}

/* 字段样式统一 */
#peerBenchmarkTable .model-name {
    font-weight: 600;
    color: #111827;
    min-width: 200px;
}

#peerBenchmarkTable .category,
#peerBenchmarkTable .industry {
    background: #f3f4f6;
    color: #374151;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    max-width: 140px;
    border: 1px solid #e5e7eb;
}

#peerBenchmarkTable .rating {
    font-weight: 600;
    color: #059669;
    text-align: center;
}

#peerBenchmarkTable .usage {
    font-weight: 600;
    color: #7c3aed;
    text-align: center;
    font-family: 'Courier New', monospace;
}

#peerBenchmarkTable .vertical-index,
#peerBenchmarkTable .pwc-score,
#peerBenchmarkTable .economic-value {
    font-weight: 600;
    color: #374151;
    text-align: center;
}

#peerBenchmarkTable .lateral-comp {
    font-weight: 500;
    text-align: center;
    color: #059669;
}

#peerBenchmarkTable .total-score {
    font-weight: 700;
    color: #111827;
    text-align: center;
    font-size: 16px;
    background: #f9fafb;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
}

/* 按钮样式统一 */
#peerBenchmarkTable .actions {
    text-align: center;
    padding: 8px 12px;
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

#peerBenchmarkTable .action-btn {
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#peerBenchmarkTable .action-btn.try {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

#peerBenchmarkTable .action-btn.try:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

#peerBenchmarkTable .action-btn.add-to-cart {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    min-width: 80px;
}

#peerBenchmarkTable .action-btn.add-to-cart:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

/* 工具提示样式 */
.tooltip {
    position: absolute;
    background: #1f2937;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.4;
    max-width: 300px;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.tooltip.show {
    opacity: 1;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1f2937;
}

/* 分页控件样式 */
.pagination-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 30px 20px;
    margin-top: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.page-btn {
    background: white;
    color: #6b7280;
    border: 1px solid #d1d5db;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 40px;
}

.page-btn:hover {
    background: #f3f4f6;
}

.page-btn.active {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border-color: #8b5cf6;
    font-weight: 600;
}

.page-info {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
} 

/* 搜索和筛选控件美化 */
.search-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
    padding: 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.search-container {
    position: relative;
    max-width: 500px;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    z-index: 2;
}

.search-input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 400;
    background: white;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.search-input:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1), 0 1px 3px rgba(0, 0, 0, 0.1);
    background: #fefefe;
}

.search-input::placeholder {
    color: #9ca3af;
    font-style: italic;
}

.filter-container {
    display: grid;
    grid-template-columns: 140px 140px 140px 1fr;
    gap: 20px;
    align-items: end;
    width: 100%;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.clear-filters-btn {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
    white-space: nowrap;
}

.sort-select, .filter-select {
    padding: 10px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    background: white;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    width: 100%;
    box-sizing: border-box;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .filter-container {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .clear-filters-btn {
        justify-self: start;
    }
}

.filter-label {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sort-select, .filter-select {
    padding: 10px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    background: white;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.sort-select:focus, .filter-select:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.sort-select:hover, .filter-select:hover {
    border-color: #cbd5e1;
    background: #fefefe;
}

.clear-filters-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

.clear-filters-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

.clear-filters-btn:active {
    transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .search-controls {
        padding: 16px;
        gap: 16px;
    }
    
    .filter-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .search-container {
        max-width: 100%;
    }
}

@media (max-width: 1024px) {
    .filter-container {
        gap: 16px;
    }
    
    .filter-group {
        min-width: 120px;
    }
}

/* 结果统计样式 */
.results-count {
    padding: 8px 16px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 6px;
    margin-left: auto;
}

.count-text {
    font-size: 14px;
    color: #5b21b6;
    font-weight: 500;
}

.count-text strong {
    color: #7c3aed;
    font-weight: 600;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;   /* 控制两个按钮之间的间距 */
}
