.rank-header {
    background: var(--card-bg);
    padding: 15px 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* 顶部排行分类切换 */
.rank-tabs {
    display: flex;
    background: #F2F2F7;
    border-radius: 25px;
    padding: 4px;
}

.rank-tab-item {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    border-radius: 21px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.rank-tab-item.active {
    background: var(--card-bg);
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: scale(1.02);
}

.rank-list {
    padding: 16px;
}

.rank-item {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.rank-item:active {
    transform: scale(0.98);
}

.rank-item.top-3 {
    background: linear-gradient(to right, #ffffff, #fcfcfc);
    border: 1px solid rgba(255, 149, 0, 0.1);
}

.rank-num {
    font-size: 20px;
    font-weight: 900;
    font-style: italic;
    color: #ced4da;
    width: 32px;
    text-align: center;
}

.num-1 { color: #FFD700; font-size: 28px; text-shadow: 0 2px 4px rgba(255, 215, 0, 0.3); }
.num-2 { color: #C0C0C0; font-size: 24px; text-shadow: 0 2px 4px rgba(192, 192, 192, 0.3); }
.num-3 { color: #CD7F32; font-size: 22px; text-shadow: 0 2px 4px rgba(205, 127, 50, 0.3); }

.rank-thumb {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.item-info {
    flex: 1;
    min-width: 0;
}

.item-info h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-info p {
    font-size: 12px;
    color: var(--text-light);
}

.rank-action {
    color: #ced4da;
    font-size: 14px;
}

