/* 试卷分类页：强化筛选层级并提升资源列表在不同屏幕下的可读性。 */
.paper-category-page {
    padding-bottom: 24px;
}

.paper-category-page .breadcrumb {
    width: 100%;
    padding-right: 0;
    padding-left: 0;
}

.paper-category-page .breadcrumb-inner {
    display: flex;
    overflow: hidden;
    height: 50px;
    align-items: center;
    color: #8a94a3;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.paper-category-page .breadcrumb-inner a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
}

.paper-category-page .breadcrumb-current {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.paper-category-page .doc_content,
.paper-category-page .doc_box_right {
    width: 100%;
}

.paper-category-page .introduce,
.paper-category-page .docs {
    border: 1px solid #edf0f5;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(38, 50, 68, .04);
}

.paper-category-page .search_box .hd {
    display: flex;
    padding: 24px 0 20px;
    align-items: flex-end;
    justify-content: space-between;
}

.paper-category-page .search_box .hd h1 {
    font-size: 26px;
    font-weight: 700;
    color: #202938;
}

.paper-category-page .search_box .hd p {
    font-size: 13px;
    color: #98a1af;
}

.paper-category-page .search_box .item {
    justify-content: flex-start;
}

.paper-category-page .search_box .item_name {
    flex: 0 0 64px;
    width: 64px;
    color: #5f6978;
    font-weight: 600;
}

.paper-category-page .search_box .sub_lists ul li {
    margin: 0 8px 10px 0;
}

.paper-category-page .search_box .sub_lists ul li a {
    min-width: 48px;
    padding: 6px 12px;
    border-radius: 6px;
    text-align: center;
}

.paper-category-page .doc_box_right .docs {
    padding: 0 20px 20px;
}

.paper-category-page .doc_box_right .docs .doc-list {
    display: grid;
    padding: 20px 0;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.paper-category-page .doc_box_right .docs .doc-list li {
    display: flex;
    overflow: hidden;
    min-width: 0;
    min-height: 320px;
    padding: 12px;
    border: 1px solid #edf0f5;
    border-radius: 9px;
    flex-direction: column;
    background: #fff;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.paper-category-page .doc_box_right .docs .doc-list li:not(.category-empty-state):hover {
    border-color: #ffd2c7;
    box-shadow: 0 10px 24px rgba(46, 55, 72, .09);
    transform: translateY(-3px);
}

.paper-category-page .doc_box_right .docs .doc-list li .front {
    float: none;
    width: 100%;
    height: 205px;
    padding: 0;
    border-radius: 5px;
    background: #f7f8fa;
    box-sizing: border-box;
}

.paper-category-page .front.cover-placeholder {
    border-color: #e5e9f0;
    background: linear-gradient(145deg, #fff 0%, #f0f3f8 100%);
}

.paper-category-page .front.cover-placeholder::before {
    position: absolute;
    top: 84px;
    right: 0;
    left: 0;
    color: #a5afbd;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-align: center;
    content: "试卷";
    z-index: 2;
}

.paper-category-page .front.cover-placeholder img {
    visibility: hidden;
}

.paper-category-page .doc_box_right .docs .doc-list li .title {
    display: -webkit-box;
    float: none;
    width: 100%;
    max-width: none;
    height: 44px;
    margin: 12px 0 8px;
    line-height: 22px;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.paper-category-page .doc_box_right .docs .intros,
.paper-category-page .doc_box_right .docs .infos {
    float: none;
    width: 100%;
    margin-left: 0;
}

.paper-category-page .doc_box_right .docs .intros a {
    display: -webkit-box;
}

.paper-category-page .doc_box_right .docs .intros {
    display: none;
}

.paper-category-page .doc_box_right .docs .infos {
    overflow: hidden;
    height: 22px;
    margin-top: auto;
    white-space: nowrap;
}

.category-empty-state {
    display: flex;
    min-height: 220px !important;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    color: #98a1af;
    text-align: center;
    grid-column: 1 / -1;
}

.category-empty-state strong {
    margin-bottom: 8px;
    font-size: 17px;
    color: #5f6978;
}

.category-empty-state span {
    font-size: 13px;
}

.paper-category-page .pageModel {
    display: flex;
    margin: 14px 0 4px;
    gap: 7px;
    align-items: center;
    justify-content: center;
}

.paper-category-page .pageModel a,
.paper-category-page .pageModel span {
    display: inline-flex;
    min-width: 38px;
    height: 38px;
    padding: 0 11px;
    border: 1px solid #e5e9f0;
    border-radius: 7px;
    align-items: center;
    justify-content: center;
    color: #5f6978;
    background: #fff;
    box-sizing: border-box;
}

.paper-category-page .pageModel a:hover,
.paper-category-page .pageModel .active {
    border-color: #ef3f35;
    color: #fff;
    background: #ef3f35;
}

.paper-category-page .pageModel .disabled {
    color: #c4cad3;
    background: #f7f8fa;
    cursor: not-allowed;
}

@media (max-width: 1200px) and (min-width: 769px) {
    .paper-category-page .doc_box_right .docs .doc-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .paper-category-page {
        width: calc(100% - 24px) !important;
        padding: 0 0 18px;
    }

    .paper-category-page .breadcrumb {
        padding: 10px 0;
    }

    .paper-category-page .breadcrumb-inner {
        height: 30px;
    }

    .paper-category-page .introduce {
        margin-bottom: 12px;
        padding: 0 14px 4px;
    }

    .paper-category-page .search_box .hd {
        display: block;
        padding: 18px 0 14px;
    }

    .paper-category-page .search_box .hd h1 {
        float: none;
        font-size: 21px;
    }

    .paper-category-page .search_box .hd p {
        margin-top: 7px;
        line-height: 20px;
    }

    .paper-category-page .search_box .item {
        display: block;
        padding-top: 14px;
    }

    .paper-category-page .search_box .item_name {
        display: block;
        width: auto;
        padding: 0 0 8px;
    }

    .paper-category-page .search_box .sub_lists {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .paper-category-page .search_box .sub_lists::-webkit-scrollbar {
        display: none;
    }

    .paper-category-page .search_box .sub_lists ul {
        display: flex;
        width: max-content;
        min-width: 100%;
    }

    .paper-category-page .doc_box_right .docs {
        padding: 0 12px 14px;
    }

    .paper-category-page .doc_box_right .docs ul.sort {
        padding-top: 14px;
    }

    .paper-category-page .doc_box_right .docs ul.sort li a {
        padding-bottom: 12px;
    }

    .paper-category-page .doc_box_right .docs .doc-list {
        padding: 14px 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .paper-category-page .doc_box_right .docs .doc-list li {
        min-height: 270px;
        padding: 9px;
    }

    .paper-category-page .doc_box_right .docs .doc-list li .front {
        float: none;
        width: 100%;
        height: 175px;
    }

    .paper-category-page .doc_box_right .docs .doc-list li .title {
        float: none;
        width: 100%;
        max-width: none;
        margin: 10px 0 7px;
        font-size: 14px;
        line-height: 21px;
    }

    .paper-category-page .doc_box_right .docs .intros {
        display: none;
    }

    .paper-category-page .doc_box_right .docs .infos {
        float: none;
        width: 100%;
        height: auto;
        margin-left: 0;
        line-height: 22px;
    }

    .paper-category-page .doc_box_right .docs .infos .item {
        padding-right: 7px;
    }

    .paper-category-page .doc_box_right .docs .infos .item:nth-child(3) {
        display: none;
    }

    .paper-category-page .doc_box_right .docs .infos .item:nth-child(n + 3) {
        display: none;
    }

    .paper-category-page .front.cover-placeholder::before {
        top: 70px;
    }

    .paper-category-page .pageModel {
        display: flex;
        gap: 10px;
        justify-content: center;
    }

    .paper-category-page .pageModel a,
    .paper-category-page .pageModel span {
        min-width: 42px;
        height: 40px;
        padding: 0 10px;
    }

    .paper-category-page .pageModel .page-edge,
    .paper-category-page .pageModel .page-number:not(.active) {
        display: none;
    }
}
