/* 排行榜页面样式 */

/* 切换区样式 */
.rankSwitch {
    padding: 20px;
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 8px;
}

.switchTab {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.switchTab span {
    display: inline-flex;
    align-items: center;
    padding: 12px 40px;
    font-size: 18px;
    color: #757575;
    background-color: #f5f5f5;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.switchTab span i.ico {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    background: url(../images/icon.png) no-repeat;
    background-size: 1000px 1000px;
}

.switchTab span i.ico.game {
    background-position: -7px -87px;
}

.switchTab span i.ico.app {
    background-position: -7px -43px;
}

.switchTab span:hover {
    color: #ee6767;
    background-color: #fff5f5;
}

.switchTab span.current {
    color: #fff;
    font-weight: bold;
}

/* 游戏排行选中 - 红色 */
.switchTab span.current[data-type="game"] {
    background-color: #ee6767;
}

/* 软件排行选中 - 蓝色 */
.switchTab span.current[data-type="app"] {
    background-color: #38a6fd;
}

/* 排行榜列表样式优化 */
.rList {
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
}

.rList ul {
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.rList li {
    display: flex;
    align-items: center;
    width: calc(50% - 7.5px);
    background-color: #fafafa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.rList li:hover {
    background-color: #fff5f5;
    box-shadow: 0 4px 15px rgba(238, 103, 103, 0.1);
}

.rList li > i:first-child {
    position: relative;
    top: auto;
    flex-shrink: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 18px;
    color: #fff;
    background-color: #abb9c2;
    border-radius: 8px;
    margin-left: 15px;
    margin-right: 15px;
    line-height: normal;
    float: none;
}

/* 金牌 - 第1名 */
.rList li.rank-1 > i:first-child {
    position: relative;
    top: auto;
    display: block !important;
    width: 48px;
    height: 48px;
    background-size: 1000px 1000px;
    background-color: transparent;
    float: none;
    line-height: normal;
    margin-left: 15px;
    margin-right: 15px;
    color: transparent;
}

/* 银牌 - 第2名 */
.rList li.rank-2 > i:first-child {
    position: relative;
    top: auto;
    display: block !important;
    width: 48px;
    height: 48px;
    background-size: 1000px 1000px;
    background-color: transparent;
    float: none;
    line-height: normal;
    margin-left: 15px;
    margin-right: 15px;
    color: transparent;
}

/* 铜牌 - 第3名 */
.rList li.rank-3 > i:first-child {
    position: relative;
    top: auto;
    display: block !important;
    width: 48px;
    height: 48px;
    background-size: 1000px 1000px;
    background-color: transparent;
    float: none;
    line-height: normal;
    margin-left: 15px;
    margin-right: 15px;
    color: transparent;
}

.rList li > a:first-of-type {
    display: block;
    margin-right: 12px;
}

.rList li > a:first-of-type img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
}

.rList li > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rList li > div > a:first-child {
    display: block;
    font-size: 16px;
    color: #333;
    font-weight: bold;
    margin-bottom: 6px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rList li:hover > div > a:first-child {
    color: #ee6767;
}

.rList li > div p {
    font-size: 13px;
    color: #757575;
}

.rList li > div p span {
    margin-right: 8px;
}

.rList li > div p span i.ico {
    width: 14px;
    height: 13px;
    background-position: -128px -10px;
}

.rList li > .btn {
    position: relative;
    top: auto;
    right: auto;
    display: inline-block;
    flex-shrink: 0;
    width: 60px;
    height: 28px;
    line-height: 28px;
    font-size: 14px;
    color: #fff;
    background-color: #ee6767;
    border-radius: 14px;
    text-align: center;
    transition: all 0.3s ease;
    margin-top: 0;
}

.rList li > .btn:hover {
    background-color: #d9534f;
    transform: scale(1.05);
}

/* 空数据提示 */
.rList .empty-tip {
    text-align: center;
    padding: 60px 0;
    color: #999;
    font-size: 16px;
}

/* 加载状态 */
.rList .loading {
    text-align: center;
    padding: 60px 0;
    color: #999;
    font-size: 16px;
}

/* 分页组件样式 */
.rList .pagecode {
    padding-top: 30px;
    padding-bottom: 10px;
}

/* 软件排行选中时分页按钮变蓝 */
.switchTab span.current[data-type="app"] ~ * .pagecode a:hover,
.rList .pagecode a:hover {
    background-color: #ee6767;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .rList li {
        width: 100%;
    }
}