.ranking-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0 var(--main-padding);
}

.ranking-content {
    flex: 1 1 0;
    min-width: 0;
}

.ranking-sidebar {
    position: sticky;
    top: var(--header-height, 4vw); /* 跟随头部高度 */
    left: 0;
    align-self: flex-start;
    width: 7vw; /* 缩小宽度 */
    min-width: 7vw;
    max-width: 10vw;
    min-height: 40vw;
    background: var(--card-bg, #fff); /* 适配主题色 */
    z-index: 10;
    margin-left: 0;
    padding-left: 0;
    box-shadow: 0 0.125vw 0.5vw rgba(0,0,0,0.04);
    transition: background 0.2s;
}

.ranking-menu {
    width: 100%;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5vw;
    align-items: stretch;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3vw;
    cursor: pointer;
    background: transparent;
    border: none;
    outline: none;
    padding: 1vw 0;
    width: 100%;
    min-width: 6vw;
    min-height: 5vw;
    box-sizing: border-box;
    font-size: 1vw;
    color: var(--text-color-light, #666);
    border-radius: 0.8vw;
    transition: background 0.2s, color 0.2s;
    user-select: none;
}

.menu-item .menu-icon {
    font-size: 2vw;
    line-height: 1;
    margin-bottom: 0.2vw;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5vw;
    height: 2.5vw;
}

.menu-item .menu-text {
    font-size: 1vw;
    margin: 0;
    line-height: 1.2;
    text-align: center;
    width: 100%;
}

.menu-item.active,
.menu-item:hover {
    color: var(--primary-color, #00a1d6);
    background: rgba(0,161,214,0.08);
}

/* 排行榜卡片主结构 */
.ranking-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background: var(--card-bg, #fff);
    border-radius: 0;
    box-shadow: 0 0.15vw 0.6vw rgba(0,0,0,0.10);
    margin-bottom: 0.1vw;
    transition: box-shadow 0.2s;
    min-height: 12.5vw;
    position: relative;
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
    cursor: pointer;
}
.ranking-card:hover {
    box-shadow: 0 0.3vw 1.2vw rgba(0,0,0,0.16);
}
.card-rank {
    width: 6vw;
    min-width: 6vw;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5vw;
    font-weight: bold;
    margin-right: 0.5vw;
    flex-shrink: 0;
}
.rank-medal {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.3vw;
    height: 3.3vw;
    border-radius: 50%;
    box-shadow: 0 0.07vw 0.28vw rgba(0,0,0,0.08);
    font-size: 1.2vw;
    font-weight: bold;
}
.rank-medal.gold { color: #FFD700; }
.rank-medal.silver { color: #C0C0C0; }
.rank-medal.bronze { color: #CD7F32; }
.rank-medal.normal {
    color: #888;
    font-size: 1.5vw;
}

.rank-medal.gold,
.rank-medal.silver,
.rank-medal.bronze {
    font-size: 2vw;
    line-height: 2.8vw;
}

.card-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 10vw;
    min-width: 10vw;
    min-height: 12vw;
    position: relative;
}
.promo-icon {
    width: 7vw;
    height: 7vw;
    border-radius: 1.1vw;
    object-fit: cover;
    box-shadow: 0 0.07vw 0.28vw rgba(0,0,0,0.08);
    background: #f5f5f5;
    margin-bottom: 0.9vw;
}
.card-stats {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    gap: 0.6vw;
}
.card-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 0.1vw;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 0.2vw;
    padding: 0.2vw 0.7vw;
    font-size: 0.75vw;
    color: var(--text-color-light, #888);
    font-family: -apple-system;
    min-width: 3vw;
    justify-content: center;
}
.card-stats .stat-item i.bi-heart {
    color: #ff4d4f;
    font-size: 0.75vw;
}
.card-stats .stat-item i.bi-controller {
    color: #ff4d4f;
    font-size: 0.75vw;
}
.card-stats .stat-label {
    font-size: 0.75vw;
    color: var(--text-color-light, #aaa);
    margin-left: 0.1vw;
    white-space: nowrap;
    display: inline;
    vertical-align: middle;
}
.card-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 35vw;
    padding: 0 1.8vw; 
    padding-right: 1vw;
    position: relative;
}
.card-title {
    font-size: 1.5vw;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.3vw;
    line-height: 1.2;
    font-family: -apple-system;
    height: 1.5vw;
    display: flex;
    align-items: center;
    margin-top: 1vw;
}

.card-desc {
    font-size: 0.95vw;
    color: var(--text-color-light, #888);
    margin-bottom: 0.5vw;
    line-height: 1.5;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 4.5vw;
    font-family: -apple-system;
}
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6vw;
    height: 3vw;  /* 固定高度 */
    align-items: center;
    overflow: hidden;
}

.card-tags .tag:nth-child(n+4) {
    display: none;  /* 隐藏第4个及以后的标签 */
}

.card-tags .tag {
    background: #f5f5f5;
    color: #666;
    font-size: 0.75vw;
    font-family: -apple-system;
    align-items: center;
}
.ranking-download-btn {
    margin-left: auto;
    padding: 0.5vw 2vw;
    background: var(--primary-color, #00a1d6);
    color: #fff;
    border: none;
    border-radius: 0.5vw;
    font-size: 1vw;
    font-family: -apple-system;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 0.07vw 0.28vw rgba(0,0,0,0.08);
    align-items: center;
}
.ranking-download-btn:hover {
    background: #008bb8;
}
.card-right {
    width: 20.8vw;
    height: 11.7vw;
    border-radius: 0.7vw;
    margin-top: 0.4vw;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
}
.card-img {
    width: 20.8vw;
    height: 11.7vw;
    border-radius: 0.7vw;
    object-fit: cover;
    background: #f5f5f5;
    box-shadow: 0 0.07vw 0.28vw rgba(0,0,0,0.08);
    transition: all 0.3s ease; 
}
.card-img:hover {
    transform: scale(1.1);
    box-shadow: 0 0.2vw 0.8vw rgba(0,0,0,0.15);  /* 放大时阴影也加深 */
}

#guess-like-section {
    padding: 0 var(--main-padding); /* Add padding on the left and right using the main padding variable */
    box-sizing: border-box; /* Ensure padding is included in the element's total width */
    margin: 1vw auto; /* Reduced top/bottom margin from 1.5vw to 1vw */
}
