/* GPU天梯图页面补充样式 */

/* 全局变量 */
:root {
    --nvidia-green: #76b900;
    --amd-red: #ed1c24;
    --intel-blue: #0071c5;
    --performance-gradient: linear-gradient(90deg, #16a34a 0%, #ca8a04 25%, #ea580c 50%, #dc2626 75%, #7c2d12 100%);
}

/* 背景渐变增强 */
body {
    position: relative;
    overflow-x: hidden;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* 性能进度条样式增强 */
.progress-bar {
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 天梯图项目悬停效果 */
.tier-item {
    position: relative;
    overflow: hidden;
}

.tier-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.6s;
}

.tier-item:hover::before {
    left: 100%;
}

/* 品牌标识增强 */
.brand-nvidia {
    background: linear-gradient(135deg, var(--nvidia-green), #5a8a00);
    color: white;
}

.brand-amd {
    background: linear-gradient(135deg, var(--amd-red), #c41620);
    color: white;
}

.brand-intel {
    background: linear-gradient(135deg, var(--intel-blue), #005999);
    color: white;
}

/* 等级徽章样式 */
.tier-flagship {
    background: linear-gradient(135deg, #dc2626, #991b1b);
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.5);
}

.tier-high {
    background: linear-gradient(135deg, #ea580c, #c2410c);
    box-shadow: 0 0 15px rgba(234, 88, 12, 0.4);
}

.tier-mid-high {
    background: linear-gradient(135deg, #ca8a04, #a16207);
    box-shadow: 0 0 15px rgba(202, 138, 4, 0.4);
}

.tier-mid {
    background: linear-gradient(135deg, #16a34a, #15803d);
    box-shadow: 0 0 15px rgba(22, 163, 74, 0.4);
}

.tier-entry {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.4);
}

/* 购买按钮增强 */
.buy-btn {
    position: relative;
    overflow: hidden;
}

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

.buy-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* 对比工具增强 */
.comparison-radar {
    position: relative;
}

.comparison-radar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    border: 2px dashed rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 卡片阴影增强 */
.card {
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.1),
        0 1px 2px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.dark .card {
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.3),
        0 1px 2px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

/* 筛选按钮动画 */
.filter-btn {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: currentColor;
    transform: translateX(-50%);
    transition: width 0.3s;
}

.filter-btn.active::after,
.filter-btn:hover::after {
    width: 80%;
}

/* 导航增强 */
.nav-menu a {
    position: relative;
    transition: all 0.3s;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s;
    border-radius: 6px;
}

.nav-menu a:hover::before {
    opacity: 1;
    transform: scale(1);
}

/* 性能评分数字动画 */
.performance-score {
    font-variant-numeric: tabular-nums;
}

/* 响应式增强 */
@media (max-width: 768px) {
    .tier-item {
        border-radius: 12px;
    }
    
    .progress-bar {
        height: 6px;
    }
    
    .brand-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/* 价格显示增强 */
.price-display {
    position: relative;
}

.price-display::before {
    content: '¥';
    position: absolute;
    left: -0.5em;
    font-size: 0.8em;
    opacity: 0.7;
}

/* 功耗指示器 */
.power-indicator {
    position: relative;
    display: inline-block;
}

.power-low::after {
    content: '●';
    color: #16a34a;
    margin-left: 0.25rem;
}

.power-medium::after {
    content: '●●';
    color: #ca8a04;
    margin-left: 0.25rem;
}

.power-high::after {
    content: '●●●';
    color: #dc2626;
    margin-left: 0.25rem;
}

/* 加载动画 */
.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.dark .loading-shimmer {
    background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
    background-size: 200% 100%;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.8);
}

.dark ::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.dark ::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.6);
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.8);
}

/* 文字选择样式 */
::selection {
    background: rgba(99, 102, 241, 0.3);
    color: inherit;
}

.dark ::selection {
    background: rgba(139, 92, 246, 0.3);
}

/* 专业数据表格样式 */
.data-table {
    font-variant-numeric: tabular-nums;
}

/* 性能条形图样式 */
.performance-bar {
    position: relative;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.performance-bar-fill {
    height: 100%;
    background: var(--performance-gradient);
    transition: width 1s ease-out;
    position: relative;
}

.performance-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
    animation: performance-shine 3s infinite;
}

@keyframes performance-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 品牌徽标样式 */
.brand-nvidia {
    color: #76b900;
    text-shadow: 0 1px 2px rgba(118, 185, 0, 0.3);
}

.brand-amd {
    color: #ed1c24;
    text-shadow: 0 1px 2px rgba(237, 28, 36, 0.3);
}

/* 表格式天梯图样式 */
table {
    border-spacing: 0;
    font-size: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

table th {
    position: sticky;
    top: 0;
    z-index: 10;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    border: none;
    padding: 16px 20px;
}

table th:first-child {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border-right: 3px solid #ffffff;
}

table th:last-child {
    background: linear-gradient(135deg, #ee0979 0%, #ff6a00 100%);
}

.ladder-row {
    border-bottom: 1px solid #e5e7eb;
    background: white;
}

.ladder-row:nth-child(even) {
    background: #f8fafc;
}

.dark .ladder-row {
    border-bottom: 1px solid #374151;
    background: #1f2937;
}

.dark .ladder-row:nth-child(even) {
    background: #111827;
}

.gpu-cell {
    padding: 16px 20px;
    vertical-align: top;
    border: none;
}

.gpu-cell.nvidia-cell {
    border-right: 3px solid #d1d5db;
}

.dark .gpu-cell.nvidia-cell {
    border-right: 3px solid #4b5563;
}

.gpu-cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
}

.gpu-card {
    background: white;
    border-radius: 8px;
    padding: 10px 12px;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 180px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.dark .gpu-card {
    background: #374151;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nvidia-card {
    border-color: rgba(17, 153, 142, 0.3);
    background: linear-gradient(135deg, rgba(17, 153, 142, 0.05) 0%, rgba(56, 239, 125, 0.05) 100%);
}

.amd-card {
    border-color: rgba(238, 9, 121, 0.3);
    background: linear-gradient(135deg, rgba(238, 9, 121, 0.05) 0%, rgba(255, 106, 0, 0.05) 100%);
}

.dark .nvidia-card {
    background: linear-gradient(135deg, rgba(17, 153, 142, 0.1) 0%, rgba(56, 239, 125, 0.1) 100%);
}

.dark .amd-card {
    background: linear-gradient(135deg, rgba(238, 9, 121, 0.1) 0%, rgba(255, 106, 0, 0.1) 100%);
}

.gpu-name {
    font-weight: 600;
    font-size: 13px;
    color: #1f2937;
    flex: 1;
}

.dark .gpu-name {
    color: #f3f4f6;
}

.buy-btn {
    padding: 6px 14px;
    border-radius: 6px;
    border: none;
    font-size: 12px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nvidia-btn {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.nvidia-btn:hover {
    background: linear-gradient(135deg, #0f8a7e 0%, #32d670 100%);
}

.amd-btn {
    background: linear-gradient(135deg, #ee0979 0%, #ff6a00 100%);
}

.amd-btn:hover {
    background: linear-gradient(135deg, #d6086a 0%, #e65c00 100%);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .gpu-cards-container {
        flex-direction: column;
    }
    
    .gpu-card {
        min-width: unset;
        width: 100%;
    }
    
    .gpu-cell {
        padding: 12px 16px;
    }
    
    table {
        font-size: 12px;
    }
    
    table th {
        padding: 12px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .gpu-card {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 8px;
    }
    
    .buy-btn {
        width: 100%;
    }
} 