.teaching_courses {
    min-height: calc(100vh - 30.8rem);
    background: #F4F4F4;
}


/* 导航 */
@media screen and (max-width: 767px) {
    .courses_main_nav {
        font-size: 6rem;
        height: 22rem;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .courses_main_nav a {
        display: block;
        min-width: 32.77rem;
    }

    .courses_nav_item {
        min-width: 32.77rem;
    }

    .courses_nav_active {
        min-width: 32.77rem;
    }

    .courses_nav_active::after {
        height: 1rem;
    }
}

@media screen and (min-width: 768px) {
    .courses_main_nav {
        height: 8rem;
        font-size: 1.6rem;
    }

    .courses_nav_item {
        min-width: 6.4rem;
    }

    .courses_nav_active {
        min-width: 6.4rem;
    }

    .courses_nav_active::after {
        /* bottom: 0rem; */
        height: 0.2rem;
    }
}


.teaching_courses_main {
    padding-bottom: 16.7rem;
}

.courses_main_nav {

    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #E2E2E2;
}

.courses_nav_box {
    display: flex;
    gap: 4.8rem;
    overflow-x: auto;
    scrollbar-width: none;
    height: 100%;
}

::-webkit-scrollbar {
    background-color: transparent;
    width: 0;
    display: none;
    z-index: 999;
}

.courses_nav_item {
    font-weight: 400;
    height: 100%;
    color: #7A7980;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.courses_nav_active {

    font-weight: 600;

    /* color: #333333; */
    color: #8465FF;
    position: relative;
}

.courses_nav_active::after {
    content: '';
    position: absolute;
    width: 100%;
    bottom: 0;
    background: #8465FF;
    left: 0;
}


/* 课程列表 */
@media screen and (max-width: 767px) {
    .courses_main_list {
        margin-top: 3.2rem;
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
    }
}
@media screen and (min-width: 768px) {
    .courses_main_list {
        margin-top: 3.2rem;
        display: grid;
        grid-gap: 2rem;
        grid-template-columns: repeat(5,1fr);
        /* display: flex;
        gap: 1rem;
        flex-wrap: wrap; */
    }
}


/* pc端 */
.courses_pc_item_box {
    width: 100%;
    /* width: 28rem; */
    /* height: 37rem; */
    aspect-ratio: 28 / 37;
    background-color: #fff;
    padding: 2rem;
    border-radius: 1.4rem;
    box-sizing: border-box;
    cursor: pointer;
    transition: transform 0.5s ease;
}
.courses_pc_item_box:hover {
    box-shadow: 0 4px 10px 0 #3333330a;
    transform: translate3d(0, -8px, 0);
}
.courses_pc_item_box:hover .courses_pc_item_img img {
    transform: scale(1.1);
    -webkit-transform: scale(1.1);
    -moz-transform: scale(1.1);
    -ms-transform: scale(1.1);
    -o-transform: scale(1.1);
}

.courses_pc_item_img {
    width: 100%;
    aspect-ratio: 24 / 15.3;
    /* width: 24rem; */
    /* height: 15.3rem; */
    border-radius: 1.4rem;
    
    overflow: hidden;
}
.courses_pc_item_img img {
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.courses_pc_item_info {
    margin-top: 2rem;
}

.courses_pc_item_title {
    /* font-size: 1.4rem; */
    font-weight: bold;
    margin-bottom: 1.4rem;
    /* height: 5.2rem; */
    height: 6rem;
    line-height: 3rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    /* 表示盒子对象的子元素的排列方式 */
    -webkit-line-clamp: 2;
    /* 限制文本的行数，表示文本第多少行省略 */
    text-overflow: ellipsis;
    /*  打点展示 */
    overflow: hidden;
    /*超出部分进行隐藏*/
}

.courses_pc_item_desc {
    width: 100%;
    box-sizing: border-box;
    color: #8a8a8a;
    background-color: #fafafa;
    padding: 1rem 1.4rem;
    /* height: 8.2rem; */
    height: 6rem;
    box-sizing: border-box;
    border-radius: 1rem;
    font-size: 1.2rem;
    line-height: 2rem;
}

.courses_pc_item_desc p {
    overflow: hidden;
    word-wrap: break-word;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.courses_pc_item_info_author {
    margin-top: 2.4rem;
    display: flex;
    align-items: center;
}

.courses_pc_item_info_author img {
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 1.5rem;
}

.courses_pc_item_info_author span {
    color: #b5b5b5;
    margin-left: 1rem;
    font-size: 1.2rem;
}

/* 移动端 */
.courses_main_list_mobile {
    margin-top: 10.24rem;
}

.courses_main_list_mobile a {
    width: 100%;
}

.courses_mobile_item_box {
    /*width: calc(100vw - 3.2rem);
    */
    width: 100%;
    box-sizing: border-box;
    display: flex;
    padding: 10.24rem;
    background-color: #fff;
    border-radius: 7.17rem;
    margin-bottom: 5.12rem;
}

.courses_mobile_item_info {
    flex: 1;
}

.courses_mobile_item_img {
    width: 58.88rem;
    height: 37.38rem;
    border-radius: 3.07rem;
}

.courses_mobile_item_title {
    color: #323232;
    margin-bottom: 5.12rem;
    /* height: 21.5rem; */
    font-weight: bold;
    font-size: 8.19rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    /* 表示盒子对象的子元素的排列方式 */
    -webkit-line-clamp: 2;
    /* 限制文本的行数，表示文本第多少行省略 */
    text-overflow: ellipsis;
    /*  打点展示 */
    overflow: hidden;
    /*超出部分进行隐藏*/
}

.courses_mobile_item_name {
    font-size: 6.14rem;
    color: #b5b5b5;
}

/* 分页 */
.courses_main_paging {
    margin-top: 3.6rem;
    display: flex;
    justify-content: center;
}