/* GPU算力排名模块样式 */
.gpu-ranking-section {
    background: #fff;
    padding: 70px 0;
    margin: 0;
}

.gpu-ranking-section .container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 标题样式 */
.gpu-ranking-section .section-title {
    text-align: center;
    margin-bottom: 20px;
}

.gpu-ranking-section .section-title h2 {
    font-size: 40px;
    font-weight: 600;
    color: #333;
    line-height: 56px;
    margin: 0;
}

/* 说明文字样式 */
.gpu-ranking-section .section-description {
    text-align: center;
    margin-bottom: 40px;
}

.gpu-ranking-section .section-description p {
    font-size: 18px;
    color: #595959;
    line-height: 25px;
    margin: 0;
}

/* GPU选项卡样式 */
.gpu-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-bottom: 40px;
    position: relative;
    width: 100%;
}

.gpu-tabs::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 1px;
    background: #e9ecef;
    z-index: 1;
}

.gpu-tab-btn {
    padding: 15px 40px;
    border: none;
    background: transparent;
    color: #666;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.gpu-tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
    font-weight: 600;
}

.gpu-tab-btn:hover {
    color: #667eea;
}

.gpu-tab-btn.active:hover {
    color: #667eea;
}

/* GPU内容区域 */
.gpu-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gpu-content.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 排行榜样式 */
.ranking-chart {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.chart-header {
    display: grid;
    grid-template-columns: 1fr 2fr 5fr 2fr;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #e9ecef;
    align-items: center;
}

.chart-row {
    display: grid;
    grid-template-columns: 1fr 2fr 5fr 2fr;
    gap: 20px;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f3f4;
    align-items: center;
    transition: all 0.2s ease;
}

.chart-row:hover {
    background: #f8f9fa;
    transform: translateX(2px);
}

.chart-row:last-child {
    border-bottom: none;
}

/* 排名样式 */
.rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-weight: 600;
    font-size: 16px;
    color: #333;
    background: transparent;
    position: relative;
    margin: 0 auto;
}

.rank.gold {
    background: transparent;
    color: transparent;
    position: relative;
}

.rank.gold::before {
    content: '';
    position: absolute;
    width: 32px;
    height: 26px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAaCAYAAADWm14/AAAAAXNSR0IArs4c6QAAA1VJREFUSEu9lltIk2EYx//Pu6UzqaCb3LfSgoqgulDpYGbZgU6URRdSNwXR4aKbDhZkRCBEClpddJKg7KZsNDUNpJMZEWRUJGWRRgetFQuaNbHt2773iX3l9HM2t8H8Lr/3+f+f3/s874kQ58fNyw5h1ISjulz6zlCeY388VhSPiG8ouWwe+xDj54X05HdvpkX11bH6xQdQa9vPxOVInQKMzgBYA6muYlp6//jIAAQrwHgIoG8CTIQ8Wu98NCIAwSRcZ9sLcAXMFkD6D1JBV3msyYPxcbUgKNTs1p2URJU0vRDwOPfRPPvJEQWQDuUpTMjWAby/3lHWxWkjBsDVaXNgES2srCWy5gCeF4zv7ctpcWNTrBBxtUCrUa6SwCYsaQIljwPelwG+nzcp89K6mAG4Pm01pKjUhULuooJvjZFM2D5xKpvlWwgIKGsBaw7I0wpwgPGjI5PybrVG1A/Ox3VKJwOT/q3ILtrgTI9koNUoV0hgcyhmemH/SvZ2N1BWVUFEgMH5YgFgh5LLJsP+BwYCQDLcH1ZRbsPt/0GE5RvQApuUVGra+OXwUGK2T0xhs3wOgRmGcQMAAH/vJ3jaZtPCR54hfZrml6HXdQAB72e95X1BXGNrZuI80lCB0c4jtAa+0Nh9mOFWGlhgVegfA8/e+PGkLYDdh7cac/m6m9HxZCUVvlZD8a0rUhFQKmAZsxNeTztlV+kTCQFoNdZjJKhYF0h0M1MVJD6B2CIEtrGAYZ9X3/LiZw9DkwgHCHqoHiekdh6aqiF5TAZIbIEp2fLX33eCZp3Tb8/+ClxXdrMZp6PdRndbVGRYBe60+IcGiGTU8/UQzb1WagS4qizgFMR0mXxxabjxQI0dwNW2kfLv1BoB7DDxKEUFQURbhbgAWGMkvUuhaY36GjOchNKhfIUJaQkF8P3qpcyLqX05DABcq9QzIerjNK4KeLsfU1ZVzn8AbEeYuCShFZC/S2hW5d+35OAWBKqt24WFLiQUwP2xiHLrKoauwPX0mWwOvIoWQI8bfBIOJ3a9XET594LPufAK6GdErdUPIvNwPqHxGABYU1nMPmvYZWHvAelQPsCEyYkAgNftpqzL4wd6hwGoF9L3EMtygExRQ0QVyBqTKEra0XlqYPgful10pGB+Z2AAAAAASUVORK5CYII=');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.rank.gold::after {
    content: '1';
    position: absolute;
    font-size: 0.7rem;
    font-weight: 700;
    color: #333;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.rank.silver {
    background: transparent;
    color: transparent;
    position: relative;
}

.rank.silver::before {
    content: '';
    position: absolute;
    width: 32px;
    height: 26px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAaCAYAAADWm14/AAAAAXNSR0IArs4c6QAABDJJREFUSEu9lm1MW1UYx59zTm/vpWB4HxS10EJ5kQ11FZbRMVkydWuUKMHFfTEGzfzgB8XNZZtZliwxzmSoHzRxMSbGDzrZkLYYlxhDkQ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l5fS5HJQmBfcJoN2c1IAm/uXwwijo0pu42cd8IdvFh7Z0gq6ksJ4eIVeryQFSYKjDeXFR5ICnBqaeInluI+VXPq//AzCodCKsP0HDihJYW4+uM9cp+tOCnD67Pl6tTprUtElIWB5J1TSXrtxe2vrgwa5na/MAXnE5vbyCGOVklHsfzoAkkRpQ/m6JVW24j3Q55qaJURV8X8AhHn+pslQdvf6TPYm/MTueA0A5AcmSRUixTgRAPa92Lbt/cT4fwHXJZjYwslVSAAAAABJRU5ErkJggg==');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.rank.silver::after {
    content: '2';
    position: absolute;
    font-size: 0.7rem;
    font-weight: 700;
    color: #333;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.rank.bronze {
    background: transparent;
    color: transparent;
    position: relative;
}

.rank.bronze::before {
    content: '';
    position: absolute;
    width: 32px;
    height: 26px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAaCAYAAADWm14/AAAAAXNSR0IArs4c6QAABF1JREFUSEu9lntMW1Ucx3+n99ymvaXAUHkMViyvzsBmzJhsLtNGNx7iZKCgPDZwMVsiy+IGIw4yXYgPtgCbGUsEjGPG+FqM0RmXbIm83MAEiDBQcDMwKS/HVlgLpfd1zK20o4D0kcj5897f93s+5/x+55wfAi/HwHdvH6MVfu9IciJy5yJT3iryxgp5I+ptyN8GtKqVCYxx6Dl+JluXUvalp35eAfzakF+ECKqUq4NArg4EIgogzE2V6tLf/2BVAKQdEAhqBQD7AgiFyPa4ggvXVgVAmqSnIf8wIaiKwjQIAl/yeMH5Sk8nl+K9SoEkbK95Zb9SpawNidoKM/cnj2hTy06vKkBnXW4HpulNEgA7Z74VtrMoetUArp3J2Ozjp/7FL3wz8g+OAfbuILl/Z3BHVEbFT55CeJWCzrq8LzCNX43Z/S5gOQPGrovAWs0/hO0o2uUxQM+FfSkgirU2oUx2YGP+J5dXMrl+LjOKUTADSIZkfuHxML8DQIhIpiaHntBlnOxeSb94PtRzvuAvArBuviKHN77WoFnJoKMu93OaprPtMVIN2AdrMV0KSyx+cUWARfN5BNB2Nmsbo1K2AkKO1C0EACDEPDmeHJF+4sp/QSxeMLJvCQEI5Vm+YtOBz8qWE1+vzlQq1IouClPrF/53BgAQOOvtaZNhw/q0U6blfPq/OnKSZ01HRZ4zSCl3rKSzLqeJoujtHMdW+bNTx6MPXbbaDRpP6LFvSOglLKeTbY8PIdDdPwyDhjsgEgQajQZ2PPscMAxjk/BzM01GY1tSbNZF1u4x/mmxyhoUWKVU+u5nLaY/wpKO2hbyAKA+7z2Mcan0URCEKSKIDVaOv40pmQLT1D6Kwo5z/vufo/DbrVGI36CFIE0sNDY2wdq1IZCcZOOzDc46O0pA/EjkOQHLleEIUXspTCv+9eeqQ/QHba+nA6C9JqtQqWJq3DlGXX1DoGIUoNMGg5SC5pYWMBiGITcn1x05WMx3j4WnlFY4ATRXpT3lH7DGo8dkxmIFmU84NDY1QlxsLCQ8meAWgHHsZoYuq/JbJ4CvMzOpmGSGlc63Wy4A0HdzBAaG/gaFQgHpabshICDAtZQQMm3uU0Y/f9ZWY043YUdt7hgtp4NduzyICI5MgCtXr8L4xATk79nrUsrNzc6G7jyssgc6AXTW532PMXZ5nf7Y3A2RmqD5GtgCPTduQEtrKxx8o9AlgNUy3b4uscRxezkBdNXnHacwLnfl0tE7CMNj9yA+TgsPhz4GTS3NEPhIILyQmupKCkSwlgfpD9l6ySUp+PnDl19X+/rUu3LheQE6+4ZgZMIISIYhQqsF/TN6Wy24GuZ7I8URaeVVywNU74pVr3mo15XJwv8hUVs86muMhv6nddmnpXZu6Q5IX7o+3sNRFIXdhfAEQBR4EqwvdDplS/qBjtqcQVouf/T/AGAtJmNYYrHTWV0C8E3J1jcJQlKDSbkL4WacgAgpfulU25mF8f8AKVqezPj6wooAAAAASUVORK5CYII=');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.rank.bronze::after {
    content: '3';
    position: absolute;
    font-size: 0.7rem;
    font-weight: 700;
    color: #333;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

/* GPU名称样式 */
.gpu-name {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

/* 进度条样式 */
.progress-bar {
    position: relative;
    height: 20px;
    background: #f1f3f4;
    border-radius: 10px;
    overflow: hidden;
    flex: 1;
    margin-right: 15px;
    min-width: 150px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 10px;
    transition: width 0.8s ease-out;
    position: relative;
    overflow: hidden;
}

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

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.performance {
    font-weight: 500;
    color: #28a745;
    font-size: 14px;
}

.performance-percentage {
    font-weight: 600;
    color: #667eea;
    font-size: 14px;
    min-width: 50px;
    text-align: right;
}

/* 加载状态样式 */
.loading-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    color: #95a5a6;
    position: relative;
}

.loading-placeholder p {
    font-size: 16px;
    margin-left: 40px;
}

.loading-placeholder::before {
    content: '';
    width: 24px;
    height: 24px;
    border: 3px solid #e9ecef;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
    left: 50%;
    margin-left: -60px;
}

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

/* 移动端适配 */
@media (max-width: 992px) {
    .gpu-ranking-section .container {
        padding: 0 15px;
    }
    
    .chart-header, .chart-row {
        grid-template-columns: 1fr 2fr 5fr 2fr;
        gap: 15px;
        padding: 15px;
    }
    
    .gpu-ranking-section .section-title h2 {
        font-size: 32px;
    }
    
    .gpu-tabs {
        gap: 0;
        justify-content: center;
    }
    
    .gpu-tab-btn {
        padding: 12px 30px;
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .gpu-ranking-section {
        padding: 50px 0;
    }
    
    .gpu-ranking-section .section-title h2 {
        font-size: 28px;
        line-height: 40px;
    }
    
    .gpu-ranking-section .section-description p {
        font-size: 16px;
        line-height: 22px;
    }
    
    /* 移动端排行榜容器 */
    .ranking-chart {
        box-shadow: none;
        border-radius: 8px;
        overflow: hidden;
        border: 1px solid #e1e5e9;
        margin: 1rem 0;
    }

    /* 移动端排行榜头部 - 3列：排名、GPU、半精算力 */
    .chart-header {
        display: grid;
        grid-template-columns: 60px 1fr 2fr;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
        background: rgb(249, 250, 255);
        border-bottom: 1px solid #e1e5e9;
        font-weight: 600;
        font-size: 0.85rem;
        color: #666;
        align-items: center;
    }

    /* 隐藏移动端的第四列（算力列） */
    .chart-header span:nth-child(4) {
        display: none;
    }

    /* 移动端排行榜行样式 - 左边距为0 */
    .chart-row {
        display: grid;
        grid-template-columns: 60px 1fr 2fr;
        gap: 0.5rem;
        align-items: center;
        padding: 1rem 1rem 1rem 0;
        margin-bottom: 0;
        margin-left: 0;
        border-radius: 0;
        border-bottom: 1px solid #e9ecef;
        background: white;
    }

    /* 隐藏移动端的第四列（算力列） */
    .chart-row span:nth-child(4),
    .chart-row .performance {
        display: none;
    }

    .chart-row:last-child {
        border-bottom: none;
    }

    .chart-row:hover {
        background: #f8f9fa;
    }

    /* 移动端排名样式 - 去除圆形背景，左边距为0 */
    .rank {
        display: flex;
        align-items: center;
        justify-content: center;
        width: auto;
        height: auto;
        font-size: 1rem;
        font-weight: 600;
        margin: 0;
        margin-left: 0;
        padding-left: 0;
        background: none;
        color: #333;
        border-radius: 0;
        box-shadow: none;
    }

    /* 移动端GPU名称样式 - 分两行显示 */
    .gpu-name {
        font-size: 0.8rem;
        font-weight: 600;
        color: #333;
        margin: 0;
        line-height: 1.2;
        display: flex;
        flex-direction: column;
        gap: 1px;
        min-width: 0;
    }

    /* GPU产品名称 */
    .gpu-product {
        font-weight: 700;
        color: #333;
        font-size: 0.65rem;
        white-space: nowrap;
        max-width: 100%;
        line-height: 1.1;
        display: block;
    }

    /* GPU规格 */
    .gpu-spec {
        font-weight: 500;
        color: #666;
        font-size: 0.6rem;
        white-space: nowrap;
        max-width: 100%;
        line-height: 1.1;
        display: block;
        margin-top: 2px;
    }

    /* 移动端算力进度条容器 - 包含进度条和百分比 */
    .performance-container {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        width: 100%;
    }

    /* 移动端进度条样式 - 根据设计图调整 */
    .progress-bar {
        height: 20px;
        background: rgb(235, 240, 252);
        border-radius: 10px;
        overflow: hidden;
        position: relative;
        margin: 0;
        flex: 1;
        min-width: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .progress-fill {
        height: 100%;
        background: linear-gradient(90deg, #4285f4 0%, #667eea 100%);
        border-radius: 10px;
        position: absolute;
        left: 0;
        top: 0;
        z-index: 1;
    }

    /* 算力文字显示在progress-bar上，覆盖在进度条之上 */
    .progress-text {
        position: relative;
        z-index: 2;
        color: rgb(242, 145, 73);
        font-size: 0.65rem;
        font-weight: 600;
        text-align: center;
        white-space: nowrap;
        pointer-events: none;
        display: block;
    }

    /* 移动端百分比显示 - 在进度条右侧 */
    .performance-percentage {
        font-size: 0.7rem;
        font-weight: 600;
        color: #666;
        min-width: 30px;
        text-align: right;
        flex-shrink: 0;
        display: block;
    }

    /* 隐藏原来的performance显示 */
    .performance {
        display: none;
    }
    
    .gpu-tabs {
        margin-bottom: 30px;
        justify-content: center;
    }
    
    .gpu-tab-btn {
        padding: 10px 25px;
        font-size: 14px;
    }
} 