/* =========================================================
   独立电动车排行榜 /rankings
   ========================================================= */

.io-rank-page {
    max-width: 1200px;
    margin: 24px auto 56px;
    padding: 0 40px;
    color: #111827;
}

.io-rank-crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #94a3b8;
    font-size: 13px;
}

.io-rank-crumb a {
    color: #64748b;
    text-decoration: none;
    transition: color .2s ease;
}

.io-rank-crumb a:hover {
    color: #2563eb;
}

.io-rank-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 30px;
    border: 1px solid #eef0f3;
    border-radius: 18px;
    background:
        radial-gradient(circle at 100% 0, rgba(37, 99, 235, .09), transparent 34%),
        #fff;
    box-shadow: 0 10px 34px rgba(15, 23, 42, .05);
}

.io-rank-heading-wrap {
    min-width: 0;
}

.io-rank-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #2563eb;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
}

.io-rank-page-title {
    margin: 0;
    color: #0f172a;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -.03em;
    line-height: 1.15;
}

.io-rank-page-subtitle {
    margin: 10px 0 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
}

.io-rank-updated {
    flex: none;
    padding-bottom: 3px;
    color: #94a3b8;
    font-size: 12px;
    white-space: nowrap;
}

.io-rank-updated time {
    color: #475569;
    font-weight: 700;
}

.io-rank-tabs-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
    padding: 10px 12px;
    border: 1px solid #eef0f3;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 22px rgba(15, 23, 42, .04);
}

.io-rank-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.io-rank-tab {
    min-width: 62px;
    height: 34px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: #64748b;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 32px;
    text-align: center;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.io-rank-tab:hover {
    background: #f8fafc;
    color: #2563eb;
}

.io-rank-tab.is-active {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
    box-shadow: 0 5px 14px rgba(37, 99, 235, .2);
}

.io-rank-tabs--secondary {
    padding-left: 16px;
    border-left: 1px solid #eef0f3;
}

.io-rank-tab--type {
    min-width: 54px;
    height: 30px;
    padding: 0 12px;
    border-color: #e5e7eb;
    background: #f8fafc;
    font-size: 12px;
    line-height: 28px;
}

.io-rank-tab--type.is-active {
    border-color: #0f172a;
    background: #0f172a;
    box-shadow: none;
}

.io-rank-panels {
    margin-top: 16px;
}

.io-rank-panel[hidden] {
    display: none !important;
}

.io-rank-list {
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #eef0f3;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 32px rgba(15, 23, 42, .045);
    list-style: none;
}

.io-rank-item {
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr) 170px;
    gap: 18px;
    align-items: center;
    min-height: 104px;
    padding: 12px 24px;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color .2s ease;
}

.io-rank-item:last-child {
    border-bottom: 0;
}

.io-rank-item:hover {
    background: #f8fbff;
}

.io-rank-no {
    color: #cbd5e1;
    font-size: 42px;
    font-style: italic;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.08em;
    line-height: 1;
    text-align: center;
}

.io-rank-no.is-rank-1 {
    color: #f59e0b;
}

.io-rank-no.is-rank-2 {
    color: #94a3b8;
}

.io-rank-no.is-rank-3 {
    color: #b45309;
}

.io-rank-vehicle {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.io-rank-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 72px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    background: #f8fafc;
}

.io-rank-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.io-rank-noimg {
    color: #cbd5e1;
    font-size: 11px;
}

.io-rank-vehicle-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 8px;
}

.io-rank-vehicle-name {
    display: block;
    overflow: hidden;
    color: #0f172a;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color .2s ease;
}

.io-rank-vehicle:hover .io-rank-vehicle-name {
    color: #2563eb;
}

.io-rank-price {
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.5;
}

.io-rank-price b {
    margin-left: 3px;
    color: #ef4444;
    font-size: 15px;
    font-weight: 900;
}

.io-rank-value {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    text-align: right;
}

.io-rank-value-label {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
}

.io-rank-value b {
    color: #0f172a;
    font-size: 16px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    line-height: 1.35;
}

.io-rank-value b.is-muted {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
}

.io-rank-empty {
    padding: 52px 20px;
    border: 1px solid #eef0f3;
    border-radius: 16px;
    background: #fff;
    color: #94a3b8;
    font-size: 14px;
    text-align: center;
}

.io-rank-page-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 4px 0;
    color: #94a3b8;
    font-size: 12px;
}

.io-rank-page-foot a {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
}

.io-rank-page-foot a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .io-rank-page {
        padding: 0 20px;
    }

    .io-rank-page-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .io-rank-tabs-card {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .io-rank-tabs--secondary {
        padding-top: 8px;
        padding-left: 0;
        border-top: 1px solid #eef0f3;
        border-left: 0;
    }

    .io-rank-item {
        grid-template-columns: 56px minmax(0, 1fr) 128px;
        gap: 12px;
        padding: 12px 16px;
    }

    .io-rank-no {
        font-size: 36px;
    }

    .io-rank-vehicle {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 12px;
    }

    .io-rank-thumb {
        width: 82px;
        height: 61px;
    }
}

@media (max-width: 640px) {
    .io-rank-page {
        margin-top: 16px;
        margin-bottom: 36px;
        padding: 0 16px;
    }

    .io-rank-crumb {
        margin-bottom: 10px;
        font-size: 12px;
    }

    .io-rank-page-head {
        padding: 22px 18px;
        border-radius: 14px;
    }

    .io-rank-page-title {
        font-size: 27px;
    }

    .io-rank-page-subtitle {
        font-size: 12px;
    }

    .io-rank-updated {
        font-size: 11px;
    }

    .io-rank-tabs-card {
        padding: 8px;
        border-radius: 12px;
    }

    .io-rank-tabs {
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .io-rank-tabs::-webkit-scrollbar {
        display: none;
    }

    .io-rank-tab {
        flex: 1 0 auto;
        min-width: 0;
        height: 32px;
        padding: 0 12px;
        font-size: 12px;
        line-height: 30px;
    }

    .io-rank-tab--type {
        flex: 0 0 auto;
        height: 28px;
        line-height: 26px;
    }

    .io-rank-item {
        grid-template-columns: 38px minmax(0, 1fr) 88px;
        gap: 8px;
        min-height: 78px;
        padding: 10px 12px;
    }

    .io-rank-no {
        font-size: 29px;
    }

    .io-rank-vehicle {
        grid-template-columns: 62px minmax(0, 1fr);
        gap: 9px;
    }

    .io-rank-thumb {
        width: 62px;
        height: 48px;
        border-radius: 7px;
    }

    .io-rank-vehicle-info {
        gap: 5px;
    }

    .io-rank-vehicle-name {
        font-size: 13px;
        line-height: 1.4;
    }

    .io-rank-price {
        font-size: 10px;
    }

    .io-rank-price b {
        font-size: 12px;
    }

    .io-rank-value {
        gap: 3px;
    }

    .io-rank-value-label {
        font-size: 9px;
    }

    .io-rank-value b {
        font-size: 12px;
    }

    .io-rank-value b.is-muted {
        font-size: 10px;
    }

    .io-rank-page-foot {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
        padding-top: 12px;
    }
}
