/**
 * @author: Jicc(103698177)
 * @date: 2026-04-02
 * @phone: 13790890981
 * ==== 小黄鸭调试法，永无BUG ====
 *                            ||
 *      .-"O"-.               ||
 *   _/ a      -._._._.-';    ||
 *  '-.                ,/     ||
 *     )     \_////>  ';      ||
 *     \                |     ||
 *      '--------------'      ||
 *  ~~~~~~~~~~~~~~~~~~~~~~~~~ ||
 */
.page-wrapper{
    width: 1080px;
    min-height: calc(100vh - 334px);
    margin: 0 auto;
    padding: 0 0 40px;
    display: flex;
}
.standings-wrapper{
    display: flex;
    flex-direction: column;
    width: 100%;
}
.tab-box{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 40px 0 20px;
    background-color: #fff;
    position: sticky;
    top: 50px;
    z-index: 99;
}
.tab-box span{
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 38px;
    padding: 0 24px;
    margin: 0 6px;
    color: #2D2D2D;
    font-size: 16px;
    border: 1px solid #DDE2E9;
    border-radius: 50px;
    cursor: pointer;
}
.tab-box span.active{
    background-color: #324FFF;
    border-color: #324FFF;
    color: #fff;
}

.standings-content{}

.standings-box{
    display: flex;
    flex-direction: column;
    width: 100%;
    border-top: 1px solid #EAEDF1;
    padding-top: 20px;
}
.standings-group-box{
    width: 100%;
    margin-bottom: 20px;
}
.standings-group{
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 12px;
}
.standings-group span{
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 12px;
    height: 32px;
    background-color: #F7F8FA;
    color: #666;
    font-size: 14px;
    border-radius: 0 10px 10px;
    cursor: pointer;
}
.standings-group span.active{
    background-color: #324FFF;
    border-color: #324FFF;
    color: #fff;
}

.standings-scroll{
    width: 100%;
    height: 500px;
    overflow-y: auto;
}
/* 整个滚动条 */
.standings-scroll::-webkit-scrollbar {
    width: 4px; /* 滚动条的宽度 */
}

/* 滚动条轨道 */
.standings-scroll::-webkit-scrollbar-track {
    background: transparent; /* 轨道颜色 */
}

/* 滚动条滑块 */
.standings-scroll::-webkit-scrollbar-thumb {
    background: #DDE2E9; /* 滑块颜色 */
    border-radius: 10px; /* 滑块圆角 */
}

/* 滑块悬停状态 */
.standings-scroll::-webkit-scrollbar-thumb:hover {
    background: #DDE2E9; /* 滑块悬停颜色 */
}
.standings-table{}

.standings-header, .live-match-item{
    display: grid;
    grid-template-areas: 'stage team match win draw loss goal goalAginst goalNet points';
    grid-template-columns: 110px 1fr 80px 80px 80px 80px 80px 80px 80px 80px;
    grid-auto-flow: column;
    justify-content: flex-start;
    justify-items: center;
    align-items: center;
}
.standings-stage{
    grid-area: stage;
}
.standings-team{
    grid-area: team;
}
.standings-match{
    grid-area: match;
}
.standings-win{
    grid-area: win;
}
.standings-draw{
    grid-area: draw;
}
.standings-loss{
    grid-area: loss;
}
.standings-goal{
    grid-area: goal;
}
.standings-goalAginst{
    grid-area: goalAginst;
}
.standings-goalNet{
    grid-area: goalNet;
}
.standings-points{
    grid-area: points;
}

.standings-header{
    height: 42px;
    background-color: #F7F8FA;
    color: #666;
}
.live-match-item{
    height: 48px;
    font-size: 14px;
    color: #666;
    border-top: 1px solid #EAEDF1;
}
.live-match-item:nth-child(5n-3){
    border-top: none;
}
.standings-header .standings-team, .live-match-item .standings-team{
    display: flex;
    justify-content: flex-start;
    width: 100%;
}
.live-match-item .standings-team a{
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.live-match-item .standings-team a img{
    width: 21px;
    margin-right: 12px;
}
.live-match-item .standings-team a span{
    font-size: 14px;
    color: #2D2D2D;
}
.live-match-item .standings-points{
    color: #FF5722;
}

.league-rule{
    width: 100%;
    padding: 20px 40px;
    background-color: #FAFCFF;
}
.league-rule-item{
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #EAEDF1;
}
.league-rule-item:last-child{
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}
.league-rule-title{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 10px;
}
.league-rule-title i{
    display: flex;
    width: 28px;
    height: 28px;
    margin-right: 8px;
}
.lg-icon{
    background: url('/2026worldcup/static/images/lg-icon.png') no-repeat center center;
    background-size: cover;
}
.sg-icon{
    background: url('/2026worldcup/static/images/sg-icon.png') no-repeat center center;
    background-size: cover;
}
.sl-icon{
    background: url('/2026worldcup/static/images/sl-icon.png') no-repeat center center;
    background-size: cover;
}
.league-rule-title h4{
    color: #333;
    font-size: 16px;
}
.league-rule-content{}
.league-rule-content p{
    color: #666;
    font-size: 14px;
    line-height: 180%;
}

.stat-box{
    display: flex;
    flex-direction: column;
    width: 100%;
}
.stat-header, .stat-header-m {
    position: sticky;
    top: 150px;
    z-index: 99;
}
.stat-header .stat-goal,
.stat-header .stat-assist,
.stat-header .stat-yellow,
.stat-header .stat-red{
    cursor: pointer;
}
.stat-header, .stat-list-item,
.stat-header-m, .stat-list-item{
    display: grid;
    grid-template-areas: 'rank name country goal assist yellow-s red-s';
    grid-template-columns: 110px 1fr 210px 120px 120px 120px 120px;
    grid-auto-flow: column;
    justify-content: flex-start;
    justify-items: center;
    align-items: center;
}
.stat-rank{
    grid-area: rank;
    color: rgb(106, 106, 106);
}
.stat-name{
    grid-area: name;
}
.stat-country{
    grid-area: country;
}
.stat-goal{
    grid-area: goal;
}
.stat-assist{
    grid-area: assist;
}
.stat-yellow{
    grid-area: yellow-s;
}
.stat-red{
    grid-area: red-s;
}

.stat-header, .stat-header-m{
    height: 40px;
    background-color: #F7F8FA;
    color: #666;
    font-size: 14px;
}
.stat-header>div, .stat-header-m>div{
    display: flex;
    align-items: center;
}
.stat-header-m {
    display: none;
}
.sort-btn{
    display: flex;
    width: 20px;
    height: 20px;
    margin-left: 2px;
    position: relative;
}
.sort-btn::before{
    content: '';
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-top: 0 solid transparent;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #CCCCCC;
    cursor: pointer;
}
.sort-btn::after{
    content: '';
    position: absolute;
    left: 50%;
    bottom: 4px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-top: 5px solid #CCCCCC;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 0 solid transparent;
    cursor: pointer;
}
.sort-order::before{
    border-bottom-color: #666666;
}
.sort-desc::after{
    border-top-color: #666666;
}

.stat-name, .stat-country{
    width: 100%;
    text-align: left;
}
.stat-list-item{
    height: 48px;
    border-bottom: 1px solid #E6E6E6;
    font-size: 14px;
}
.stat-list-item .stat-name a{
    color: rgb(45, 45, 45);
    font-weight: bold;
}
.stat-list-item .stat-country a{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: rgb(45, 45, 45);
    font-weight: bold;
}
.stat-list-item .stat-country a img{
    width: 25px;
    margin-right: 8px;
}

.standings-header-m, .standings-win-m, .standings-goal-m{
    display: none;
}

@media screen and (max-width: 767px) {
    .page-wrapper{
        width: 100%;
        min-height: auto;
        padding: 0;
    }

    .tab-box{
        padding: .1rem .06rem;
        position: sticky;
        top: 0.4rem;
        background-color: #fff;
    }
    .tab-box span{
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: auto;
        width: 50%;
        height: .26rem;
        padding: 0;
        margin: 0 .06rem;
        font-size: .12rem;
    }
    .tab-box span.active{
        background-color: transparent;
        border-color: #324FFF;
        color: #324FFF;
    }

    .standings-content{
        min-height: calc(100vh - 3.63rem);
    }

    .standings-box{
        padding-top: 0;
    }
    .standings-group-box{
        width: 100%;
        margin-bottom: 0;
        padding: .1rem .09rem;
        overflow-x: auto;
        position: sticky;
        top: 0.88rem;
        background-color: #fff;
        border-top: 1px solid #EAEDF1;
    }
    .standings-group{
        display: flex;
        align-items: center;
        width: auto;
        padding: 0;
    }
    .standings-group span{
        flex: none;
        width: .49rem;
        margin: 0 .03rem;
        height: .24rem;
        font-size: .13rem;
        border-radius: 0 .1rem .1rem;
    }
    .standings-group span.active{
        background-color: #324FFF;
        border-color: #324FFF;
        color: #fff;
    }

    .standings-scroll{
        height: auto;
    }

    .standings-header{
        display: none;
    }
    .standings-header-m, .live-match-item-m{
        display: grid;
        grid-template-areas: 'stage team match win goal goalNet points';
        grid-template-columns: .36rem 1fr .35rem .48rem .44rem .35rem .35rem;
        grid-auto-flow: column;
        justify-content: flex-start;
        justify-items: center;
        align-items: center;
    }
    .standings-header-m{
        height: .33rem;
        background-color: #F7F8FA;
        color: #666;
        font-size: .12rem;
    }
    .standings-stage-m, .live-match-item-m .standings-stage{
        grid-area: stage;
        color: #333;
        font-size: .13rem;
    }
    .standings-team-m, .live-match-item-m .standings-team{
        grid-area: team;
        width: 100%;
        text-align: left;
    }
    .standings-match-m, .live-match-item-m .standings-match{
        grid-area: match;
    }
    .standings-win-m, .live-match-item-m .standings-win-m{
        grid-area: win;
        display: flex;
    }
    .standings-goal-m{
        grid-area: goal;
        display: flex;
    }
    .live-match-item-m .standings-goal {
        display: none;
    }
    .standings-net-m, .live-match-item-m .standings-goalNet{
        grid-area: goalNet;
    }
    .standings-points-m, .live-match-item-m .standings-points{
        grid-area: points;
    }

    .standings-win, .standings-draw, .standings-loss, .standings-goal, .standings-goalAginst{
        display: none;
    }

    .league-rule{
        padding: .16rem;
    }
    .league-rule-item{
        padding-bottom: .16rem;
        margin-bottom: .16rem;
    }
    .league-rule-title{
        display: flex;
        align-items: center;
        justify-content: flex-start;
        margin-bottom: 10px;
    }
    .league-rule-title i{
        display: flex;
        width: .24rem;
        height: .24rem;
        margin-right: .06rem;
    }
    .league-rule-title h4{
        font-size: .13rem;
    }
    .league-rule-content p{
        font-size: .12rem;
    }
    .stat-header {
        display: none;
    }
    .stat-header-m {
        display: grid;
        height: 0.33rem;
        font-size: 0.11rem;
        top: 0.89rem;
    }
    .stat-header-m, .stat-list-item{
        grid-template-columns: 0.32rem 1fr 0.48rem 0.48rem 0.48rem 0.48rem 0.48rem;
    }
    .stat-shot {
        display: none;
    }
    .stat-rank{
        font-size: 0.12rem;
        color: rgb(102, 102, 102);
    }
    .sort-btn{
        display: flex;
        width: 0.16rem;
        height: 0.16rem;
        margin-left: 0.02rem;
    }
    .sort-btn::before{
        content: '';
        position: absolute;
        top: 0.04rem;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-top: 0 solid transparent;
        border-left: 0.04rem solid transparent;
        border-right: 0.04rem solid transparent;
        border-bottom: 0.04rem solid #CCCCCC;
        cursor: pointer;
    }
    .sort-btn::after{
        content: '';
        position: absolute;
        left: 50%;
        bottom: 0.02rem;
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-top: 0.04rem solid #CCCCCC;
        border-left: 0.04rem solid transparent;
        border-right: 0.04rem solid transparent;
        border-bottom: 0 solid transparent;
        cursor: pointer;
    }

    .stat-list-item{
        height: 0.42rem;
        font-size: 0.13rem;
    }

    .stat-list-item .stat-country a img{
        width: 0.2rem;
        margin-right: 0;
    }
}