body,input,select,button{
    font-family: 'Source Han Sans SC';
    font: inherit;
}
input{
    -webkit-appearance:none;
    appearance: none;
}
tr{
    width: 100%;
}
.PCOnly{
    display: block;
}
.PhoneOnly{
    display: none;
}

.hide{
    display: none;
}
.show{
    display: block;
}
.inlineShow{
    display: inline;
}
.mainContent{
    padding-top: 135px;
}
.bannerWrapper{
    width: 100%;
    height: 400px;
    background-color: red;
    background-color: #a41d30;
    background-image: url("/rankings/images/banners/rank2023PC-4.jpg");
    background-image: image-set(
        url("/rankings/assets/optimized/images/banners/rank2023PC-4-jpg-1920w.webp") type("image/webp") 1x,
        url("/rankings/assets/optimized/images/banners/rank2023PC-4-jpg-2560w.webp") type("image/webp") 2x,
        url("/rankings/images/banners/rank2023PC-4.jpg") type("image/jpeg") 1x
    );
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;

    position: relative;
}


.rankForm{
    position: fixed;
    height: 40px;
    margin: 0 auto;
    display: flex;
    top: 60px;
    left: 0;
    right: 0;
    background-color: #F4F7FB;
    width: auto;
    padding: 0 7.5%;
    font-size: 20px;
    justify-content: space-between;
    box-sizing: border-box;
}
.rankBtn{
    color :#4F4F4F;
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    border-radius: 0;
}
.rankBtnSelect{
    color: #FF4D4F;
    border-bottom: 2px solid #FF4D4F;
}
.thLabelMobile{
    display: none;
}
.pageBottom{
    width: 100%;
    /*background-color: #e9e9e9;*/
}
.tableWrapper{
    width: 85%;
    margin: 0 auto;
    background-color: white;
    padding-bottom: 50px;
}
.dataTable{
    width: 100%;
    margin: 0 auto;
    background-color: white;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}
.schoolInfoTr{
    width: 100%;
}
.rankNum{
    width: 10%;
    text-align: center;
    font-size: 48px;
    /*color: #9a9a9a;*/
    font-weight: 700;
}
.schoolInfoTd{
    width: 62%;
    border-bottom: 1px solid #bbbbbb;
    vertical-align: middle;
}
.schoolInfoDiv{
    display: flex;
    align-items: center;
    min-height: 96px;
}
.schoolLogo{
    width: 10%;
    padding: 10px 12px;
    border-bottom: 1px solid #bbbbbb;
    box-sizing: border-box;
    text-align: center;
    vertical-align: middle;
}
.schoolInfoLogoImg{
    display: block;
    width: 72px !important;
    height: 72px !important;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto;
}
.schoolInfoBlock{
    min-height: 100px;
    flex: 6;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.schoolTitle{
    font-size: 25px;
    font-weight: normal;
    padding: 10px 0 0 0 ;
    margin: 0;
    cursor: pointer;
}
.schoolTags{
    color: #868686;
    font-size: 14px;
    padding-bottom: 10px;
}
.matchingTd{
    width: 15%;
    padding: 8px 3%;
    text-align: center;
    vertical-align: middle;
}

.rankings-row-match-link {
    align-items: center;
    background: #fff;
    border: 1px solid #1b9842;
    border-radius: 5px;
    box-sizing: border-box;
    color: #16853a;
    font-size: 14px;
    font-weight: 600;
    justify-content: center;
    line-height: 1.2;
    min-height: 32px;
    padding: 6px 14px;
    text-align: center;
    text-decoration: none;
}

.rankings-row-match-link.PCOnly {
    display: inline-flex;
}

.matchingTd .rankings-row-match-link {
    margin-left: auto;
    margin-right: auto;
}

.rankings-row-match-link:hover,
.rankings-row-match-link:focus {
    background: #effaf2;
    color: #106f30;
    text-decoration: none;
}
.compBtns{
    display: flex;
    justify-content: center;
    background-repeat: repeat-y;
    margin: 10px 0 20px;
    /*background: linear-gradient(to right, #FF4D4F 100%, #FF4D4F 100%) no-repeat center center / 100% 2px;*/
}
#button-compA, #button-compB{
    width: 42.5%;
    height: 49px;
    line-height: 36px;
    color: #4f4f4f;
    background-color: white;
    font-size: 21px;
    text-align: center;
    border: none;
}
#charRankingSelect{
    width: 85%;
    height: 40px;;
    font-size: 18px;
    line-height: 30px;
    text-align: center;
    background-color: #FF4D4F;
    color: white;
    border: none;
    appearance: none;
    background: #ff4d4f url("/rankings/img/arrow-down-s-fill.png") no-repeat center right;
    background: #ff4d4f image-set(
        url("/rankings/assets/optimized/img/arrow-down-s-fill-png-1600w.webp") type("image/webp"),
        url("/rankings/img/arrow-down-s-fill.png") type("image/png")
    ) no-repeat center right;
    background-size: 4%;
    border-radius: 10px;
    margin: 10px 0 20px;
}
#button-compA{
    border-radius: 10px 0px 0px 10px;
}
#button-compB{
    border-radius: 0px 10px 10px 0px;
}


#button-compA:hover, #button-compB:hover{
    cursor: pointer;
}

#button-compA.button-comp-selected,#button-compB.button-comp-selected{
    background-color: rgba(255, 77, 79, 1);
    color: rgba(255, 255, 255, 1);
}
.filterWrapper{
    width: 85%;
    margin: 0 auto;
    display:flex;
    flex-direction: column;
}
.annualFilterHeader{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 6px 0 8px;
}
.filterContainer{
    width: 100%;
    display: flex;
    padding: 0px 0 10px;
    justify-content: space-between;
}
.filterContainer.is-collapsed{
    display: none;
}
.searchLinePC{
    display: flex;
    justify-content: space-between;
}
#myInputPC{
    width: 30%;
    height: 30px;
    line-height: 20px;
    background-color: white;
    border: 1px solid #6c6c6c;
    padding-left: 1px;
}
.searchInputPC{
    width: 60%;
    border: 1px solid #6c6c6c;
    padding-left: 10px;
    box-sizing: border-box;
    background: white url("/rankings/img/search-line.png") no-repeat;
    background: white image-set(
        url("/rankings/assets/optimized/img/search-line-png-1600w.webp") type("image/webp"),
        url("/rankings/img/search-line.png") type("image/png")
    ) no-repeat;
    background-position: right 4px;
    background-size: 20px;
}
#myInput{
    width: 100%;
    height: 30px;
    color: #4f4f4f;
    line-height: 20px;
    background-color: white;
    border: 1px solid #6c6c6c;
    padding-left: 1px;
}
.filterLine{
    display: flex;
    justify-content: flex-end;
    padding-bottom: 0;
}
.filterToggle{
    display: inline-flex;
    width: auto;
    height: 36px;
    color: #4f4f4f;
    border: none;
    background: transparent;
    padding: 0;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 0;
    white-space: nowrap;
    cursor: pointer;
    font: inherit;
}
.filterToggleLabel{
    line-height: 20px;
}

.thirdMenuContainer{
    left: 0;
    right: 0;
    width: auto;
    box-sizing: border-box;
    background-color: #F4F7FB;
    display: flex;
    flex-direction: column;
}

.thirdMenu{
    width: 100%;
    /*padding: 10px 0 10px 0;*/
    /*margin: 10px 0;*/
    box-sizing: border-box;
    text-align: center;
}
.evaluationSystem{
    width: auto;
    max-width: 1200px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-align: left;
}
.evaluationSystem a{
    color: black;
    text-decoration: none;
    line-height: 1.2;
}
.filterLabel{
    /*padding: 10px 0 0 0;*/
}

.topBut{
    height: 40px;
    padding: 0 10px;
    color: #4f4f4f;
    background-color: white;
    text-align: center;
    border: 1px solid #6c6c6c;
    margin: 10px 0 0 0;
    cursor: pointer;
    border-radius: 0;
}

.topButSelect{
    color: white;
    background-color: #FF4D4F;
    border: 1px solid #FF4D4F;
}
.noResults{
    width: 90%;
    margin: 0 auto;
    padding-top: 20px;
}
.noResultsRow .noResults{
    display: table-cell;
    width: auto;
    margin: 0;
    padding: 32px 12px;
    border-bottom: 1px solid #e8e8e8;
    color: #999;
    font-size: 18px;
    text-align: center;
}
.fixedTable{
    padding-top: 111.5px;
}
.fixedContact{
    display: none;
}
.selectTips{
    text-align: left;
    width: 85%;
    margin: 20px auto 0px;
}

/*城市筛选*/
.citySelectionContainer{
    position: fixed;
    top: 100px;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: minmax(44px, 10%) minmax(0, 1fr) minmax(44px, 10%);
    width: auto;
    height: 35px;
    overflow: hidden;
    background: #505559;
    box-sizing: border-box;
}
.cityLeftBtn,.cityRightBtn{
    position: relative;
    width: auto;
    text-align: center;
    background: #505559;
    height: 35px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    line-height: 35px;
}
.cityLeftBtn{
    left: auto;
}
.scrollContainer{
    position: relative;
    overflow: hidden;
    /*overflow: scroll;*/
    width: auto;
    min-width: 0;
    height: 35px;
    /*margin: 0 auto;*/
    left: auto;
    background: #505559;
}
#citySelect{
    position: relative;
    /* gap: 10px; */
    display: flex;
    background: #505559;
    /*background: pink;*/
     /*width: 100%; */
    /*overflow-x: scroll;*/
    /*left: 0px;*/
    /*right: unset;*/
    /* margin: 0 auto; */
    white-space: nowrap;
    width: max-content;
    min-width: max-content;
}

.citySelection{
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    text-align: center;
    padding: 0 10px;
    flex-shrink: 0;
    height: 35px;
    cursor: pointer;
    line-height: 35px;
}
.citySelection.citySelected{
    background: #ff4d4f;
}
.cityRightBtn{
    right: auto;
}

.ranking-sticky-header{
    position: sticky;
    top: var(--rankings-sticky-table-top, 135px);
    z-index: 6;
    background: #fff;
}
.ranking-sticky-header th{
    position: sticky;
    top: var(--rankings-sticky-table-top, 135px);
    z-index: 7;
    background: #f8f9fc;
    border-bottom: 2px solid #ddd;
    box-shadow: 0 -1px 0 #fff, 0 1px 0 #ddd;
    box-sizing: border-box;
    color: #1e2a3e;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 5px;
    overflow-wrap: normal;
    text-align: center;
    hyphens: none;
    word-break: normal;
}
.ranking-sticky-header th:first-child{ border-radius: 8px 0 0 0; }
.ranking-sticky-header th:last-child{ border-radius: 0 8px 0 0; }
.annual-standard-table .rankHeaderRank{ width: 10%; }
.annual-standard-table.annual-table--with-city-rank .rankHeaderRank,
.annual-standard-table.annual-table--with-city-rank .rankHeaderCity{ width: 8%; }
.annual-standard-table .rankHeaderLogo{ width: 10%; }
.annual-standard-table .rankHeaderSchool{ width: 62%; }
.annual-standard-table.annual-table--with-city-rank .rankHeaderSchool{ width: 54%; }
.annual-standard-table .rankHeaderMatch{ width: 15%; }

@media screen and (max-width: 800px) {
    .PCOnly{
        display: none;
    }
    .PhoneOnly{
        display: block;
    }
    .rankings-row-match-link.PCOnly{
        display: none;
    }
    .bannerWrapper{
        width: 100%;
        height: 115px;
        background-position: 0 0px;
    }

    .rankForm{
        /*height: 30px;*/
        /*top: 70px;*/
        font-size: 16px;
        padding: 0;
        justify-content: space-around;
        white-space: nowrap;
        /*overflow: scroll;*/
    }
    .rankNum{
        font-size: 20px;
    }
    .thirdMenuContainer{
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas:
            "menu menu"
            "filterline evaluation"
            "filters filters";
        align-items: center;
        column-gap: 14px;
        padding: 10px clamp(24px, 7.5%, 48px);
    }
    .tableWrapper{
        width: 100%;
    }
    .schoolInfoTd{
        border-bottom: 0.5px solid #bbbbbb;
    }
    .schoolLogo{
        width: 20%;
        border-bottom: 0.5px solid #bbbbbb;
        padding: 6px;
    }
    .schoolInfoLogoImg{
        width: 48px !important;
        height: 48px !important;
    }
    .schoolInfoDiv{
        min-height: 72px;
    }
    .schoolInfoBlock{
        min-height: 72px;
    }
    .schoolTitle{
        font-size: 16px;
        font-weight: 700;
    }
    .schoolTags{
        font-size: 12px;
    }
    .schoolInfoTd{
        width: 63%;
    }
    .matchingTd{
        width: 7%;
        padding: 0;
        vertical-align: bottom;
    }
    .filterContainer{
        grid-area: filters;
        width: 100%;
        display:none;
        flex-direction: column;
        padding: 0px 0 30px;
    }
    .filterContainer.is-expanded{
        display: flex;
    }
    .annualFilterHeader{
        display: contents;
    }
    .filterLine{
        grid-area: filterline;
        display: flex;
        justify-content: flex-start;
        padding: 0;
    }

    .filterToggle{
        display: inline-flex;
        width: auto;
        height: 40px;
        color: #4f4f4f;
        border: none;
        background: transparent;
        padding: 0;
        align-items: center;
        justify-content: center;
        gap: 4px;
        border-radius: 10px;
        white-space: nowrap;

    }
    .searchInput{
        width: 70%;
        border: 1px solid #6c6c6c;
        padding-left: 10px;
        box-sizing: border-box;
        background: white url("/rankings/img/search-line.png") no-repeat;
        background: white image-set(
            url("/rankings/assets/optimized/img/search-line-png-1600w.webp") type("image/webp"),
            url("/rankings/img/search-line.png") type("image/png")
        ) no-repeat;
        background-position: right 1px;
        background-size: 20px;
    }
    .compBtns{
        background: transparent;
        margin: 20px 0;
    }
    #button-compA, #button-compB{
        width: 45%;
        height: 40px;
        font-size: 18px;
        line-height: 30px;
    }
    #charRankingSelect{
        width: 85%;
        height: 40px;
        font-size: 18px;
        line-height: 40px;
        background-size: 10%;
        margin: 10px 0 0px;
    }
    .thirdMenu
    .filterWrapper{
        width: 90%;
        font-size: 14px;
    }
    .filterWrapper{
        display: contents;
    }
    .thirdMenu{
        /*display: none;*/
        grid-area: menu;
    }
    .evaluationSystem{
        grid-area: evaluation;
        justify-self: end;
        width: auto;
        max-width: none;
        margin: 0;
        padding: 0;
        text-align: right;
    }
    .evaluationSystem a{
        display: inline-block;
        padding: 0;
        line-height: 40px;
        white-space: nowrap;
    }
    .searchInput{
        display: inline-block;
    }
    .topBut{
        height: 26px;
    }
    .fixedTable{
        padding-top: 116px;
    }
    .filterLabel{
        padding: 10px 0 0 0;
    }
    body.kindergarten-rank-page,
    body.city-index-page {
        padding-bottom: calc(60px + env(safe-area-inset-bottom));
    }
    .fixedContact{
        box-sizing: border-box;
        display: flex;
        position: fixed;
        bottom: 0;
        height: calc(60px + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
        width: 100%;
        background-color: white;
        justify-content: space-around;
        align-items: center;
    }
    .ri-phone-fill{
        font-size: 30px;
    }
    .fixedContactMatching{
        width: 227px;
        height: 35px;
        display: block;
        color: white;
        text-decoration: none;
        background-color: #1FB845;
        border-radius: 20px;
        text-align: center;
        line-height: 35px;
    }
    .footerPhoneStyle{
        padding-bottom: 60px;;
    }
    .closeFilter{
        padding: 10px 0;
        text-align: right;
    }
    .compBtns{
        margin: 20px 0 0px;
    }
    .ranking-sticky-header{
        top: var(--rankings-sticky-table-top, 135px);
    }
    .ranking-sticky-header th{
        font-size: 11px;
        padding: 4px 2px;
        overflow-wrap: normal;
        hyphens: none;
        word-break: normal;
    }
    .annual-standard-table .ranking-sticky-header th{
        font-size: 14px;
    }
    html[lang="en"] .thLabelFull--mobileAlt,
    body.lang-en .thLabelFull--mobileAlt{
        display: none;
    }
    html[lang="en"] .thLabelMobile,
    body.lang-en .thLabelMobile{
        display: inline;
    }
    .annual-standard-table .rankHeaderLogo,
    .annual-standard-table .schoolLogo{
        width: 18% !important;
        display: table-cell;
    }
    .annual-standard-table .rankHeaderRank,
    .annual-standard-table .national-rank{
        width: 16% !important;
    }
    .annual-standard-table.annual-table--with-city-rank .rankHeaderRank,
    .annual-standard-table.annual-table--with-city-rank .rankHeaderCity,
    .annual-standard-table.annual-table--with-city-rank .national-rank,
    .annual-standard-table.annual-table--with-city-rank .city-rank{
        width: 12% !important;
    }
    .annual-standard-table .rankHeaderSchool,
    .annual-standard-table .schoolInfoTd{
        width: 66% !important;
    }
    .annual-standard-table.annual-table--with-city-rank .rankHeaderSchool,
    .annual-standard-table.annual-table--with-city-rank .schoolInfoTd{
        width: 58% !important;
    }
    .annual-standard-table .rankHeaderMatch,
    .annual-standard-table .matchingTd{
        display: none !important;
    }
}
@media screen and (max-width: 600px) {
    .rankForm{
        height: 30px;
        top: 70px;
        font-size: 16px;
        padding: 0;
        justify-content: space-around;
        white-space: nowrap;
        /*overflow: scroll;*/
    }
}


/* 5方向按钮横向滚动布局 */
.compBtns-five {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding: 8px 4px;
    -webkit-overflow-scrolling: touch;
}
.compBtns-five button,
.compBtns-five .compDirectionLink {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 10px 20px;
    font-size: 14px;
    border: 2px solid #ddd;
    border-radius: 24px;
    background: #f5f5f5;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.compBtns-five button.button-comp-selected,
.compBtns-five .compDirectionLink.button-comp-selected {
    background: #8B0000;
    color: #fff;
    border-color: #8B0000;
}
/* 移动端适配 */
@media only screen and (max-width: 768px) {
    .compBtns-five button,
    .compBtns-five .compDirectionLink {
        padding: 8px 14px;
        font-size: 13px;
    }
}

/* 竞争力榜5方向按钮容器 */
.compBtns-five {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;               /* 小屏自动换行 */
    padding: 10px 0;
}
.compBtns-five button,
.compBtns-five .compDirectionLink {
    padding: 10px 24px;
    font-size: 16px;
    border-radius: 24px;
    border: 2px solid #ccc;
    background: #fff;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.compBtns-five button.button-comp-selected,
.compBtns-five .compDirectionLink.button-comp-selected {
    background: #8B0000;
    color: #fff;
    border-color: #8B0000;
}

/* 移动端适配：按钮稍小，仍保持一行或换行 */
@media (max-width: 600px) {
    .compBtns-five {
        gap: 6px;
    }
    .compBtns-five button,
    .compBtns-five .compDirectionLink {
        padding: 8px 16px;
        font-size: 14px;
    }
}

.thirdMenuContainer {
    background: #fff;
    width: 100%;
    box-sizing: border-box;
}

.annualDirectionLoading .tableWrapper {
    opacity: .62;
    pointer-events: none;
    transition: opacity .16s ease;
}
