/* 教师列表页样式表 teacher-list.css */

/* 教师列表: start */
.teacher-list {
    width: 100%;
    padding-top: 10px;
}
.teacher-list .item {
    float: left;
    width: 292px;
    height: 140px;
    margin-right: 54px;
    margin-bottom: 45px;
}
.teacher-list .item:nth-child(3n+3) {
    margin-right: 0px;
}
.teacher-list .item:hover {
    box-shadow: 4px 4px 4px #999999;
}
.teacher-list .item a {
    display: block;
    width: 100%;
    height: 100%;
}
.teacher-list .item a .img {
    position: relative;
    float: left;
    width: 188px;
    height: 100%;
    background: #dce7f0;
    
    overflow: hidden;
}
.teacher-list .item a .img img {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

    max-width: 100%;
    max-height: 100%;
}
.teacher-list .item a .info {
    margin-left: 188px;
    height: 100%;
    background: #eeeeee;
    padding-top: 40px;
}
.teacher-list .item:hover a .info {
    background: #055094;
}
.teacher-list .item a .info p {
    position: relative;
    font-size: 16px;
    line-height: 28px;
    font-weight: bold;
    color: #055094;
    padding-left: 23px;
}
.teacher-list .item:hover a .info p {
    color: #ffffff;
}
.teacher-list .item a .info p::after {
    position: absolute;
    bottom: -21px;
    left: 23px;

    content: '';
    width: 25px;
    height: 9px;
    background: url(../images/icon_arrow.png) center center no-repeat;
    background-size: contain;
}
/* 教师列表: end */


/* 教师列表页-响应式样式表 */
@media(max-width: 1500px){
    .container {
        width: 1170px;
    }
    .common-right {
        width: 900px;
    }
    .teacher-list .item {
        margin-right: 12px;
    }
}


/* iPadPro（横屏1366) */
@media(max-width: 1300px){
    .container {
        width: 996px;
    }
    .first-title {
        display: block;
    }
    .common-left {
        margin-top: 2px;
        width: 100%;
        display: none;
    }
    .first-column {
        height: 60px;
    }
    .common-right {
        width: 100%;
    }
    .teacher-list .item {
        margin-right: 60px;
    }
}

/* iPadPro(1024), iPad(横屏1024)，iPhone X(横屏812)，Pixel2 XL(横屏823)*/
@media(max-width: 1024px){
    .container {
        width: 750px;
    }
    .teacher-list .item {
        width: 360px;
        height: 150px;
        margin-right: 0px;   
    }
    .teacher-list .item:nth-child(2n) {
        float: left;
    }
    .teacher-list .item:nth-child(2n+2) {
        float: right;
    }
    .teacher-list .item a .img {
        width: 225px;
    }
    .teacher-list .item a .info {
        margin-left: 225px;
    }
}

/* iPad(768);Glaxy Fold(653);Pixel2(横屏731);iPhone6/7/8Plus(横屏736)*/
@media(max-width: 768px){
    .container {
        width: 510px;  /*因为当缩减到540时，padding为0px 15px；540-15*2 = 510，刚好拼接起来，不发生跳动*/
    }
    .first-column {
        height: 46px;
    }
    .navlist-side .second>a {
        line-height: 40px;
    }
    .teacher-list .item {
        width: 240px;
        height: 240px;
        margin-bottom: 20px;
    }
    .teacher-list .item a .img {
        float: none;
        width: 100%;
        height: 160px;
    }
    .teacher-list .item a .info {
        width: 100%;
        margin-left: 0px;
        padding-top: 10px;
    }
    .teacher-list .item a .info {
        height: 80px;
    }
    .teacher-list .item a .info p {
        padding-left: 0px;
        text-align: center;
    }
    .teacher-list .item a .info p::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Surface Duo(540) */
@media(max-width: 540px){
    .container {
        width: 100%;
        padding: 0px 15px;
    }
    .teacher-list {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .teacher-list .item:nth-child(2n) {
        float: none;
        display: flex;
    }
    .teacher-list .item:nth-child(2n+2) {
        float: none;
        display: flex;
    }
    .teacher-list .item {
        width: 360px;
        height: auto;
    }
    .teacher-list .item a .img {
        height: 227px;
    }
}

/* iPhone 6/7/8 Plus(414) */
@media(max-width: 450px){
    .teacher-list .item {
        width: 300px;
    }
    .teacher-list .item a .img {
        height: 200px;
    }
}

/* iphone6,7,8(375)；iphoneX(375) */
@media(max-width: 375px){
    .teacher-list .item {
        width: 256px;
    }
    .teacher-list .item a .img {
        height: 170px;
    }
}

/* iPhone5/SE(320) */
@media(max-width: 320px){}

/* Galaxy Fold(280)*/
/* @media(max-width: 280px){} */