.teacher-list{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .4rem;
}
.teacher-list .item{
    background: #fff;
    padding: 20px;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
/* 图片 */
.teacher-list .item-t{
    width:100%;
    overflow: hidden;
    flex: 1;
    justify-content: flex-start;
    background-color: #efefef;
    /*box-shadow: 2px 5px 10px rgba(0, 0, 0, 0.2);*/
}

.teacher-list .item:hover .item{
    transform: scale(1.1);
}
.teacher-list .item{
    transition: all .5s;
    height: 100%;
    width: 100%;
}
/* 文字 */
.teacher-list .tit{
    min-height: 40px;
    line-height: 40px;
    font-size: 18px;
    font-weight: bold;
    /* -webkit-line-clamp: 1; */
    text-align: center;
}
.teacher-list .content{
    min-height: 30px;
    line-height: 30px;
    /* overflow: hidden; */
    font-size: 16px;
    /*-webkit-line-clamp: 4;*/
    text-align: center;
}

@media screen and (max-width: 1200px) {
    .teacher-list{
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .teacher-list{
        grid-template-columns: repeat(1, 1fr);
    }
    .teacher-list .item-t{
        width:auto;
        height: 180px;

    }
    .teacher-list .item-t img{
        height: 100%;
        width: auto;
        object-fit: contain
    }
}