﻿.category-page {
    padding: 16px 0px;
}

    .category-page .title-box {
        display: flex;
        margin-bottom: 20px;
    }

        .category-page .title-box > * {
            display: flex;
            align-items: center;
            width: fit-content;
        }

        .category-page .title-box .title {
            font-family: Source Serif;
            font-weight: 700;
            font-size: 24px;
            line-height: 30px;
            color: var(--color-primary);
        }

        .category-page .title-box .icon {
            margin-left: 8px;
            width: 20px;
            height: 20px;
            border: 1px solid #92999C;
            border-radius: 50%;
            position: relative;
        }

            .category-page .title-box .icon .chevron {
                border-style: solid;
                border-width: 2px 2px 0 0;
                content: '';
                display: inline-block;
                height: 6px;
                transform: rotate(45deg);
                vertical-align: top;
                width: 6px;
                position: absolute;
                left: 5px;
                top: 5.5px;
            }

        .category-page .title-box .sub-list {
            display: flex;
            align-items: end;
            margin-left: 24px;
        }

            .category-page .title-box .sub-list .wrap {
                list-style: none;
                margin-right: 16px;
            }

                .category-page .title-box .sub-list .wrap .item {
                    font-family: Source Serif;
                    font-weight: 700;
                    font-size: 18px;
                    line-height: 23px;
                    color: #656C6F;
                }

    .category-page .topstory {
        margin-bottom: 32px;
    }

        .category-page .topstory .wrap .top {
            display: flex;
            margin-bottom: 16px;
            padding-bottom: 16px;
            border-bottom: 1px solid #BFC6C9;
        }

            .category-page .topstory .wrap .top > *:nth-child(n+2) {
                margin-left: 16px;
            }

            .category-page .topstory .wrap .top > *:nth-last-child(n+2) {
                padding-right: 16px;
                border-right: 1px solid #BFC6C9;
            }

            .category-page .topstory .wrap .top .main {
                width: 49.45%;
            }

                .category-page .topstory .wrap .top .main .title {
                    font-size: 32px;
                    line-height: 40px;
                    margin-bottom: 8px;
                }

                .category-page .topstory .wrap .top .main .info .text {
                    font-size: 18px;
                    line-height: 25px;
                }

                    .category-page .topstory .wrap .top .main .info .text > * {
                        --line-num: 4;
                    }

                .category-page .topstory .wrap .top .main .type {
                    display: flex;
                }

            .category-page .topstory .wrap .top .sub {
                width: 27.82%;
            }

                .category-page .topstory .wrap .top .sub > *:nth-last-child(n+2) {
                    margin-bottom: 16px;
                    padding-bottom: 16px;
                    border-bottom: 1px solid #BFC6C9;
                }

                .category-page .topstory .wrap .top .sub .title {
                    font-size: 24px;
                    line-height: 30px;
                }

                .category-page .topstory .wrap .top .sub .info {
                    display: none;
                }

            .category-page .topstory .wrap .top .column {
                width: 22.72%;
            }

                .category-page .topstory .wrap .top .column > * {
                    flex-direction: row;
                }

                .category-page .topstory .wrap .top .column .title > * {
                    --line-num: 3;
                }

                .category-page .topstory .wrap .top .column .thumb {
                    width: 45%;
                    margin-bottom: 0px;
                    margin-right: 12px;
                    min-width: 128px;
                }

                .category-page .topstory .wrap .top .column .info-wrapper {
                    flex: 1;
                }

                .category-page .topstory .wrap .top .column .title {
                    font-size: 16px;
                    line-height: 20px;
                }

                .category-page .topstory .wrap .top .column > *:nth-last-child(n+2) {
                    margin-bottom: 16px;
                    padding-bottom: 16px;
                    border-bottom: 1px solid #BFC6C9;
                }

        .category-page .topstory .wrap .bottom {
            display: flex;
        }

            .category-page .topstory .wrap .bottom > * {
                flex: 1;
            }

                .category-page .topstory .wrap .bottom > *:nth-child(n+2) {
                    margin-left: 16px;
                }

                .category-page .topstory .wrap .bottom > *:nth-last-child(n+2) {
                    padding-right: 16px;
                    border-right: 1px solid #BFC6C9;
                }

            .category-page .topstory .wrap .bottom .title {
                font-size: 16px;
                line-height: 20px;
            }

                .category-page .topstory .wrap .bottom .title > * {
                    --line-num: 3;
                }

            .category-page .topstory .wrap .bottom .thumb {
                margin-bottom: 12px;
            }

            .category-page .topstory .wrap .bottom .type {
                display: flex;
            }

    .category-page .sub-category-wrap {
        display: flex;
        padding-bottom: 20px;
        border-bottom: 1px solid #383F42;
        margin-bottom: 32px;
    }

        .category-page .sub-category-wrap .category {
            width: 74.45%;
            --size: 16px;
            margin-right: var(--size);
            padding-right: var(--size);
            border-right: 1px solid #BFC6C9;
        }

        .category-page .sub-category-wrap .most-view {
            flex: 1;
        }

    .category-page .category .layout {
        margin-top: 32px;
        padding-top: 32px;
        border-top: 1px solid #383F42;
    }

    .category-page .category > *:first-child {
        margin-top: 0px;
    }

    .category-page .category .layout .top > * {
        flex-direction: row-reverse;
    }

    .category-page .category .layout .top {
        margin-bottom: 16px;
        padding-bottom: 16px;
        border-bottom: 1px solid #BFC6C9;
    }

        .category-page .category .layout .top .thumb {
            width: 57%;
            margin-bottom: 0px;
            margin-left: 16px;
        }

        .category-page .category .layout .top .info-wrapper {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .category-page .category .layout .top .title {
            font-size: 24px;
            line-height: 30px;
            margin-bottom: 8px;
        }

        .category-page .category .layout .top .info .text {
            font-size: 18px;
            line-height: 25px;
        }

            .category-page .category .layout .top .info .text > * {
                --line-num: 2;
            }

    .category-page .category .layout .bottom {
        display: flex;
    }

        .category-page .category .layout .bottom > * {
            flex: 1;
            width: calc((100% / 4) - 32px);
        }

            .category-page .category .layout .bottom > *:nth-last-child(n+2) {
                --size: 16px;
                margin-right: var(--size);
                padding-right: var(--size);
                border-right: 1px solid #BFC6C9;
            }

        .category-page .category .layout .bottom .title {
            font-size: 20px;
            line-height: 25px;
        }

            .category-page .category .layout .bottom .title > * {
                --line-num: 3;
            }

    .category-page .most-view {
        padding-top: 32px;
        border-top: 1px solid #383F42;
    }

        .category-page .most-view .list > *:first-child .title {
            font-size: 20px;
            line-height: 25px;
        }

        .category-page .most-view .list > *:first-child .info {
            display: none;
        }

        .category-page .most-view .list > *:nth-child(n+2) {
            flex-wrap: wrap;
            flex-direction: row;
        }

            .category-page .most-view .list > *:nth-child(n+2) .title-wrap {
                order: 1;
                width: 100%;
            }

            .category-page .most-view .list > *:nth-child(n+2) .title {
                font-size: 18px;
                line-height: 23px;
                margin-bottom: 8px;
            }

            .category-page .most-view .list > *:nth-child(n+2) .thumb {
                order: 2;
                width: 38.78%;
                margin-right: 8px;
                min-width: 128px;
                margin-bottom: 0px;
            }

            .category-page .most-view .list > *:nth-child(n+2) .info {
                order: 3;
                width: calc(100% - 136px);
            }

                .category-page .most-view .list > *:nth-child(n+2) .info .text {
                    font-size: 16px;
                    line-height: 24px;
                }

        .category-page .most-view .list > *:nth-last-child(n+2) {
            margin-bottom: 16px;
            padding-bottom: 16px;
            border-bottom: 1px solid #BFC6C9;
        }

    .category-page .wrapper {
        display: flex;
        justify-content: space-between;
    }

        .category-page .wrapper .banner {
            width: 22.83%;
            padding-left: 16px;
            position: relative;
        }

            .category-page .wrapper .banner img {
                width: 100%;
                object-fit: cover;
                border-radius: 8px;
            }

    .category-page .news {
        width: 65.44%;
        /* min-width: 890px; */
        margin-bottom: 16px;
    }

        .category-page .news .list .mobile-title {
            display: none;
        }

        .category-page .news .list > * {
            flex-direction: row-reverse;
        }

            .category-page .news .list > *:nth-last-child(n+2) {
                margin-bottom: 16px;
                padding-bottom: 16px;
                border-bottom: 1px solid #BFC6C9;
            }

            .category-page .news .list > * .thumb {
                width: 27.97%;
                margin-bottom: 0px;
                margin-left: 32px;
                min-width: 240px;
            }

            .category-page .news .list > * .info-wrapper {
                flex: 1;
            }

            .category-page .news .list > * .title {
                font-size: 20px;
                line-height: 25px;
                margin-bottom: 8px;
            }

            .category-page .news .list > * .info .text {
                font-size: 16px;
                line-height: 24px;
            }

                .category-page .news .list > * .info .text > * {
                    --line-num: 2;
                }

    .category-page .sticky-wrap {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .category-page .sticky-content {
        position: sticky;
        top: 75px;
    }

        .category-page .sticky-content img{
            width: 100%;
        }

@media screen and (max-width: 996px) {
    .category .sticky-wrap {
        position: relative;
    }

    .category-page {
        padding: 24px 0px;
    }

        .category-page .title-box {
            margin-bottom: 16px;
        }

            .category-page .title-box .title {
                font-size: 20px;
                line-height: 25px;
            }

        .category-page .topstory {
            margin-bottom: 0px;
        }

            .category-page .topstory .wrap .top {
                flex-direction: column;
            }

                .category-page .topstory .wrap .top .main,
                .category-page .topstory .wrap .top .sub,
                .category-page .topstory .wrap .top .column {
                    width: 100%;
                }

                    .category-page .topstory .wrap .top .main .info-wrapper .type,
                    .category-page .topstory .wrap .top .sub .info {
                        display: none;
                    }

                    .category-page .topstory .wrap .top .main .title {
                        font-size: 24px;
                        line-height: 30px;
                    }

                    .category-page .topstory .wrap .top .main .info .text {
                        margin-bottom: 0px;
                    }

                        .category-page .topstory .wrap .top .main .info .text > * {
                            --line-num: 2;
                        }

                    .category-page .topstory .wrap .top .sub > *:nth-last-child(n+2) {
                        display: none;
                    }

                    .category-page .topstory .wrap .top .sub .title {
                        font-size: 20px;
                        line-height: 25px;
                        margin-bottom: 0px;
                    }

                .category-page .topstory .wrap .top > *:nth-last-child(n+2) {
                    padding-right: 0px;
                    border-right: none;
                    padding-bottom: 12px;
                    margin-bottom: 12px;
                    border-bottom: 1px solid #BFC6C9;
                }

                .category-page .topstory .wrap .top > *:nth-child(n+2) {
                    margin-left: 0px;
                }

                .category-page .topstory .wrap .top .column .thumb {
                    width: 38%;
                }

                .category-page .topstory .wrap .top .column > *:nth-last-child(-n+2) {
                    display: none;
                }

                .category-page .topstory .wrap .top .column > *:nth-last-child(-n+3),
                .category-page .topstory .wrap .top {
                    margin-bottom: 0px;
                    padding-bottom: 0px;
                    border-bottom: none;
                }

            .category-page .topstory .wrap .bottom {
                display: none;
            }

        .category-page .sub-category-wrap .most-view {
            display: none;
        }

        .category-page .sub-category-wrap .category {
            width: 100%;
            --size: 0px;
            border-right: none;
        }

        .category-page .category .layout {
            margin-top: 24px;
            padding-top: 24px;
        }

            .category-page .category .layout .top > * {
                flex-direction: column;
            }

            .category-page .category .layout .top .thumb {
                width: 100%;
                margin-left: 0px;
                margin-bottom: 12px;
            }

            .category-page .category .layout .top .info-wrapper .type {
                display: none;
            }

            .category-page .category .layout .bottom {
                flex-wrap: wrap;
            }

                .category-page .category .layout .bottom > * {
                    flex: unset;
                    width: calc(100% / 2);
                }

                    .category-page .category .layout .bottom > * .thumb {
                        margin-bottom: 12px;
                    }

                    .category-page .category .layout .bottom > *:nth-last-child(n+2) {
                        --size: 0px;
                        border-right: none;
                    }

                    .category-page .category .layout .bottom > *:nth-child(odd) {
                        padding-right: 12px;
                        border-right: 1px solid #BFC6C9;
                    }

                    .category-page .category .layout .bottom > *:nth-child(even) {
                        padding-left: 12px;
                    }

                    .category-page .category .layout .bottom > *:first-child {
                        position: relative;
                    }

                        .category-page .category .layout .bottom > *:first-child::before {
                            position: absolute;
                            content: '';
                            bottom: 0px;
                            right: -2px;
                            height: 16px;
                            width: 4px;
                            background-color: #ffffff;
                        }

                    .category-page .category .layout .bottom > *:nth-child(-n+2) {
                        padding-bottom: 16px;
                        margin-bottom: 16px;
                        border-bottom: 1px solid #BFC6C9;
                    }

                .category-page .category .layout .bottom .info-wrapper .type {
                    display: flex;
                }

        .category-page .sub-category-wrap {
            padding-bottom: 24px;
            margin-bottom: 24px;
        }

        .category-page .wrapper .banner {
            display: none;
        }

        .category-page .news {
            width: 100%;
            min-width: unset;
            margin-bottom: 0px;
        }

            .category-page .news .list > * {
                flex-direction: row;
                flex-wrap: wrap;
            }

            .category-page .news .list .mobile-title {
                display: flex;
                width: 100%;
                margin-bottom: 8px;
            }

                .category-page .news .list .mobile-title .title {
                    font-size: 18px;
                    line-height: 23px;
                    margin-bottom: 0px;
                }

            .category-page .news .list > * .info .text {
                font-size: 14px;
                line-height: 20px;
            }

            .category-page .news .list > * .info-wrapper .title-wrap {
                display: none;
            }

            .category-page .news .list > * .info .text > * {
                --line-num: 2;
            }

            .category-page .news .list > * .thumb {
                width: 35.82%;
                min-width: 120px;
                margin-left: 0px;
                margin-right: 8px;
            }
}

@media screen and (max-width: 768px) {
    .category-page .title-box {
        white-space: nowrap;
        overflow-x: auto;
    }

        .category-page .title-box::-webkit-scrollbar {
            display: none;
        }
}
