body.page-rank {
    min-width: 0;
    background:
        radial-gradient(circle at top left, rgba(255, 146, 198, 0.18), transparent 30%),
        radial-gradient(circle at top right, rgba(149, 167, 255, 0.18), transparent 26%),
        linear-gradient(180deg, #fff8fc 0%, #f8f9ff 34%, #ffffff 100%);
    color: #2d2340;
}

.page-rank a,
.page-rank a:visited {
    color: inherit;
}

.rank-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.84);
    border-bottom: 1px solid rgba(236, 220, 241, 0.9);
}

.rank-topbar-inner,
.rank-main {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.rank-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
}

.rank-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.rank-brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 24px rgba(248, 130, 176, 0.24);
}

.rank-brand-name {
    font-size: 20px;
    font-weight: 700;
    color: #322447;
}

.rank-nav {
    display: inline-flex;
    gap: 24px;
    font-size: 14px;
    color: #6a587c;
}

.rank-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff8dc6 0%, #8a8cff 100%);
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 14px 32px rgba(198, 111, 185, 0.28);
}

.rank-main {
    padding: 24px 0 64px;
}

.rank-hero,
.rank-section {
    padding: 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 40px rgba(183, 171, 214, 0.14);
}

.rank-hero {
    margin-bottom: 24px;
}

.rank-kicker,
.rank-section-kicker {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #ff6797;
    text-transform: uppercase;
}

.rank-title {
    margin: 12px 0;
    font-size: 44px;
    line-height: 1.08;
    color: #2a1f3c;
}

.rank-desc,
.rank-card-desc,
.rank-card-meta {
    color: #6b5c7d;
    line-height: 1.75;
}

.rank-desc {
    max-width: 760px;
    font-size: 15px;
}

.rank-section {
    margin-bottom: 24px;
}

.rank-section-head {
    margin-bottom: 18px;
}

.rank-section-head h2 {
    margin: 6px 0 0;
    font-size: 30px;
    color: #2c2340;
}

.rank-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.rank-tab {
    border: 0;
    cursor: pointer;
    font: inherit;
    height: 38px;
    padding: 0 18px;
    border-radius: 999px;
    background: #f7eff8;
    color: #6c5d7f;
    font-size: 13px;
    font-weight: 700;
}

.rank-tab.is-active {
    background: linear-gradient(135deg, #ff9fd1 0%, #95a7ff 100%);
    color: #fff;
}

.rank-panel {
    display: none;
}

.rank-panel.is-active {
    display: block;
}

.rank-grid {
    display: grid;
    gap: 14px;
}

.rank-card {
    display: grid;
    grid-template-columns: 46px 112px minmax(0, 1fr);
    align-items: start;
    gap: 16px;
    padding: 18px;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #fff9fd 100%);
    box-shadow: 0 16px 34px rgba(204, 188, 228, 0.18);
}

.rank-card-num {
    width: 46px;
    padding-top: 54px;
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    color: #ff6ba0;
}

.rank-card-cover {
    width: 112px;
    height: 150px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 14px 24px rgba(196, 175, 221, 0.18);
}

.rank-card-content {
    min-width: 0;
    overflow: hidden;
}

.rank-card-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.18;
    color: #302444;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: calc(28px * 1.18 * 2);
    word-break: break-word;
    overflow-wrap: anywhere;
}

.rank-card-desc {
    margin-top: 10px;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: calc(14px * 1.75 * 4);
    word-break: break-word;
    overflow-wrap: anywhere;
}

.rank-card-meta {
    margin-top: 10px;
    font-size: 13px;
}

@media (max-width: 768px) {
    .rank-nav {
        display: none;
    }

    .rank-topbar-inner,
    .rank-main {
        width: min(100%, calc(100% - 24px));
    }

    .rank-hero,
    .rank-section {
        padding: 20px;
        border-radius: 24px;
    }

    .rank-title {
        font-size: 32px;
    }

    .rank-section-head h2 {
        font-size: 24px;
    }

    .rank-card {
        grid-template-columns: 36px 96px minmax(0, 1fr);
        gap: 14px;
        padding: 16px;
    }

    .rank-card-num {
        width: 36px;
        padding-top: 42px;
        font-size: 18px;
    }

    .rank-card-cover {
        width: 96px;
        height: 128px;
    }

    .rank-card-title {
        font-size: 22px;
        max-height: calc(22px * 1.18 * 2);
    }

    .rank-card-desc {
        -webkit-line-clamp: 3;
        font-size: 13px;
        max-height: calc(13px * 1.75 * 3);
    }
}
