.highlight {
    color: red;
}

.first-block {
    display: flex;
    height: 360px;
    justify-content: space-between;
}

.courses {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.layui-carousel-ind {
    text-align: right;
    top: -30px;
}

.layui-carousel-ind ul {
    display: block;
    padding: 10px 5px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 0 0 5px 5px
}

.banner-title {
    top: -30px;
    position: relative;
    color: #ffffff;
    height: 30px;
    line-height: 30px;
    width: 70%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    z-index: 1000;
    padding-left: 10px;
    font-size: 16px;
}

.second-block {
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
}

.article {
    width: 860px;
}

.more {
    position: absolute;
    top: 10px;
    right: 5px;
}

.recommend-course {
    width: 320px;
    margin-left: 20px;
}

.pagination {
    text-align: center;
}

.article-box {
    display: flex;
    border: 1px #EEEEEE solid;
    padding: 27px 20px;
    margin-top: 15px;
}

.article-box:first-child {
    margin: 0;
}

.article-title {
    font-size: 19px;
    font-weight: bold;
}

.article-text {
    margin-left: 20px;
    width: 90%;
    display: flex;
    flex-direction: column;
    line-height: 24px;
}

.article-status {
    width: 55px;
    height: 55px;
    background: #3072D0;
    padding: 10px;
    border-radius: 5px;
    box-sizing: border-box;
    text-align: center;
    line-height: 18px;
    color: #ffffff;
}

.article-status-disable {
    width: 55px;
    height: 55px;
    background: #BBBBBB;
    padding: 10px;
    border-radius: 5px;
    box-sizing: border-box;
    text-align: center;
    line-height: 18px;
    color: #ffffff;
}

.article-desc {
    width: 100%;
    height: 48px; /* 固定高度 */
    line-height: 24px; /* 行高=总高度/行数 (48px/2=24px) */
    overflow: hidden; /* 隐藏超出内容 */
    position: relative; /* 为伪元素定位 */
    margin: 5px 0;
    color: #666;
}

.article-desc::after {
    content: "..."; /* 省略号 */
    position: absolute;
    right: 0;
    bottom: 0;
    background: white; /* 背景色需与div背景一致 */
    padding-left: 5px; /* 与文字间距 */
}

.course-cover {
    width: 280px;
    height: 147px;
    object-fit: cover;
}

.recommend-course-bar {
    display: flex;
    flex-direction: column;
    border: 1px #EEEEEE solid;
    margin-top: 15px;
}

.recommend-course-box {
    padding: 15px 12px 14px 12px
}

.recommend-course-box h3 {
    margin-top: 5px;
    font-size: 16px;
    font-weight: bold;
}

.recommend-course-box p {
    margin-top: 5px;
}

.learn-num {
    color: #3072D0;
    margin-left: 5px;
}

.course-list {
    display: flex;
    flex-wrap: wrap;
}

.course-box {
    width: 280px;
    margin-left: 26px;
    margin-bottom: 20px;
}

.course-box:nth-of-type(4n+1) {
    margin-left: 0;
}

.course-box p {
    margin-top: 10px;
    height: 40px;
    overflow: hidden;
    font-size: 16px;
    font-weight: bold;
}

.course-info {
    margin-top: 5px;
    color: #666666;
    display: flex;
    justify-content: space-between;
}

.teacher-list {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
}

.teacher-box {
    width: 220px;
    border: 1px solid #EEEEEE;
    box-sizing: border-box;
    padding-bottom: 8px;
}

.teacher-box + .teacher-box {
    margin-left: 20px;
}

.teacher-cover {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.teacher-title {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    margin: 10px 0;
}


/**通知页**/
.article-container .article-panel {
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.article-container .article-header {
    text-align: center;
    padding: 10px 20px 20px 20px;
}

.article-container .article-title {
    margin: 10px;
    font-size: 24px;
    font-family: inherit;
    font-weight: 500;
    line-height: 1.1;
    color: inherit;
}

.article-container .article-sub span {
    font-size: 14px;
    color: #a1a1a1;
    margin-right: 20px;
}

.article-container .article-content {
    font-size: 18px;
    line-height: 32px;
}

.article-container .article-content img {
    max-width: 1160px;
}

.article-container .article-footer {
    text-align: center;
}

.article-container .article-footer .layui-btn {
    min-width: 10em;
}

.article-container .article-footer .layui-btn + .layui-btn {
    margin-left: 20px !important;
}

/**教师页**/
.teacher-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #FFFFFF;
    padding: 20px;
}

.teacher-detail-header-title {
    display: flex;
    gap: 10px;
    font-weight: bold;
    font-size: 20px;
}

.teacher-container .teacher-rows {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 20px 0 0;
}

.teacher-container .teacher-item {
    width: 386.66px;
    height: 207px;
    padding: 21px 12px 12px 25px;
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: all .3s;
    box-sizing: border-box;
}

.teacher-container .teacher-item:not(:nth-of-type(3n)) {
    margin-right: 20px;
}

.teacher-container .teacher-item:hover {
    box-shadow: 0 10px 30px 0 rgba(0, 0, 0, .1);
    transform: translateY(-5px);
}

.teacher-container .teacher-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.teacher-container .teacher-header img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    -o-object-fit: cover;
    object-fit: cover;
    margin-right: 14px;
}

.teacher-container .teacher-name {
    font-size: 20px;
    margin-bottom: 6px;
}

.teacher-container .teacher-title {
    font-size: 15px;
}

.teacher-container .teacher-content {
    height: 66px;
    line-height: 1.5;
    margin-bottom: 10px;
    font-size: 14px;
    color: #909399;
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.teacher-container #teacher-pager {
    width: 100%;
    text-align: center;
    background-color: #FFFFFF;
}

/**搜索页**/
.search-container {
    padding: 20px;
    background-color: #FFFFFF;
    border-radius: 6px;
}

.search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid #EEEEEE;
    margin-bottom: 20px;
}

.search-header-title {
    display: flex;
    gap: 10px;
    font-weight: bold;
    font-size: 20px;
}

.search-result {
    font-size: 16px;
    line-height: 20px;
    margin-bottom: 20px;
}