/* 排行榜样式 */
.clearfix::after {
    clear: both;
    content: ".";
    display: block;
    height: 0;
    visibility: hidden;
}

.main-content {
    padding: 2rem 0 4rem;
    min-height: calc(100vh - 64px - 200px);
}

.ques-section {
    max-width: 600px;
    margin: 0 auto;
    padding: 0;
    border-radius: 0;
    background-color: transparent;
    box-shadow: none;
}

:root[data-theme="dark"] .ques-section {
    background-color: transparent;
    box-shadow: none;
}

.ques-section-item {
    width: 100%;
    position: relative;
}

.ques-item-title {
    font-size: 18px;
    line-height: 24px;
    margin-bottom: 15px;
    font-weight: normal;
    color: #333;
}

:root[data-theme="dark"] .ques-item-title {
    color: #e5e7eb;
}

.ques-section-card {
    position: relative;
    min-height: 424px;
    text-align: center;
    border: 1px solid #f2f2f2;
    border-radius: 8px;
    background-color: #fafafa;
    overflow: hidden;
}

:root[data-theme="dark"] .ques-section-card {
    background-color: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.08);
}

.ques-card-head {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    padding-top: 48px;
    border-radius: 2px 2px 0 0;
}

.ques-card-bul {
    background-color: #397bee;
    background-image: radial-gradient(circle at 50% -45%, #53a7f5, #397bee);
    height: 78px;
}

.ques-card-title {
    font-size: 18px;
    font-weight: 500;
    line-height: 24px;
    position: relative;
    padding-top: 15px;
    color: #fff;
}

.ques-card-title-top {
    padding: 27px 0;
}

.leaderboard-tabs {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.tab-btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

:root[data-theme="dark"] .tab-btn {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.1);
    color: #9ca3af;
}

.tab-btn:hover {
    border-color: #397bee;
    color: #397bee;
}

.tab-btn.active {
    background: #397bee;
    border-color: #397bee;
    color: #fff;
}

:root[data-theme="dark"] .tab-btn.active {
    background: #4f8ff7;
    border-color: #4f8ff7;
    color: #fff;
}

.ques-card-list {
    text-align: left;
    list-style: none;
    padding: 0;
    margin: 0;
}

.ques-card-list li {
    position: relative;
}

.ques-card-list-noe:before {
    position: absolute;
    z-index: 2;
    top: 6px;
    left: 37px;
    display: block;
    content: '';
    background-position: -115px -44px;
    width: 20px;
    height: 20px;
    background-image: url("../img/icon-body.png");
}

.ques-card-list-two:before {
    position: absolute;
    z-index: 2;
    top: 6px;
    left: 37px;
    display: block;
    content: '';
    background-position: -115px -66px;
    width: 20px;
    height: 20px;
    background-image: url("../img/icon-body.png");
}

.ques-card-list-three:before {
    position: absolute;
    z-index: 2;
    top: 6px;
    left: 37px;
    display: block;
    content: '';
    background-position: -115px -88px;
    width: 20px;
    height: 20px;
    background-image: url("../img/icon-body.png");
}

.ques-card-list li:after {
    position: absolute;
    bottom: 0;
    left: 60px;
    display: block;
    width: calc(100% - 75px);
    height: 1px;
    content: '';
    background-color: #e5e7eb;
}

:root[data-theme="dark"] .ques-card-list li:after {
    background-color: rgba(255,255,255,0.08);
}

.ques-card-list li:last-child:after {
    display: none;
}

.ques-list-box {
    position: relative;
    display: block;
    height: 69px;
    padding: 16px 15px 17px;
}

.ques-list-head {
    position: relative;
    float: left;
    padding-right: 8px;
}

.ques-list-image {
    position: relative;
    display: block;
    width: 36px;
    height: 36px;
    z-index: 2;
    margin: 0 auto;
}

.ques-list-image:before {
    position: absolute;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    content: '';
    border: 2px solid #f87851;
    border-radius: 100%;
}

.ques-list-image img {
    border-radius: 100%;
    width: 100%;
    height: auto;
    display: block;
    border: none;
}

.ques-list-name {
    overflow: hidden;
    margin-right: 33px;
}

.ques-list-name-head {
    line-height: 18px;
    color: #333;
}

:root[data-theme="dark"] .ques-list-name-head {
    color: #e5e7eb;
}

.ques-list-name-text {
    font-size: 12px;
    line-height: 16px;
    margin-top: 2px;
    color: #a3a3a3;
}

.ques-list-name-icon {
    font-size: 12px;
    line-height: 24px;
    position: absolute;
    top: 50%;
    right: 14px;
    display: block;
    margin-top: -13px;
    text-align: center;
    color: #fff;
    width: 25px;
    height: 25px;
    background-image: url("../img/icon-body.png");
}

.item-icon001 {
    background-position: -62px -27px;
}

.item-icon002 {
    background-position: -62px 0;
}

.item-icon003 {
    background-position: -28px -32px;
}

.item-icon004 {
    background-position: 0 -60px;
}

.item-icon005 {
    background-position: 0 -60px;
}

.ques-list-box:hover {
    cursor: pointer;
    background-color: rgba(59, 123, 238, 0.05);
}

:root[data-theme="dark"] .ques-list-box:hover {
    background-color: rgba(255,255,255,0.08);
}

@media (max-width: 768px) {
    .ques-section {
        margin: 0 1rem;
        padding: 15px;
    }
    
    .ques-item-title {
        font-size: 16px;
    }
    
    .ques-card-title {
        font-size: 16px;
    }
    
    .tab-btn {
        padding: 0.4rem 0.875rem;
        font-size: 0.8125rem;
    }
    
    .ques-list-box {
        padding: 12px 10px 13px;
    }
}
