.container {
    width: 100%;
    padding: 77px 0 0 0;
}

.right-color {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 536px;
    background: #474C5E;
    z-index: 1;
}

.teach-container {
    width: 1140px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.slider-box {
    width: 100%;
    height: 459px;
    overflow: hidden;
    position: relative;

}

.teach-items {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.teach-items .item {
    height: 100%;
    width: 1140px;
    position: relative;
    float: left;
    background-repeat: no-repeat;
}

.teach-items .item .image-box {
    width: 769px;
    height: 459px;
}

.teach-items .teach-info {
    width: 516px;
    height: 365px;
    background: #fff;
    position: absolute;
    right: 0;
    top: 44px;
    box-sizing: border-box;
    padding: 40px 36px 40px 64px;
}

.teach-items .teach-info .name-box {
    padding-bottom: 20px;
    border-bottom: 1px dotted #DCDCDC;
    color: #E14438;
}

.teach-info .name-box h2 {
    font-size: 24px;
    margin-bottom: 6px;;
}

.teach-info .name-box span {
    font-size: 14px;
    font-weight: 500;
}

.teach-info p {
    margin: 24px 0;
    font-size: 16px;
    line-height: 32px;
    height: 128px;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.teach-info .good-at {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 20px;
    color: #232323;
    line-height: 32px;
    font-weight: bold;
}

.control-box {
    margin-top: 120px;
    height: 120px;
}

.control-box .teach-left, .control-box .teach-right {
    display: inline-block;
    width: 54px;
    height: 60px;
    vertical-align: middle;
    float: left;
    margin-top: 30px;
    text-align: center;
    line-height: 60px;
    background: #E5E5E5;
    padding: 15px 0;
    box-sizing: border-box;
    cursor: pointer;
}

.control-box .teach-left:hover, .control-box .teach-right:hover {
    background: #E14438;
}

.control-box .disabled {
    cursor: none;
}
.control-box .disabled:hover{
    background: #E5E5E5;
}
.control-box .teach-left img, .control-box .teach-right img {
    height: 30px;
}

.control-box .teach-images {
    height: 100%;
    float: left;
    width: 1032px;
    position: relative;
    overflow: hidden;
}

.teach-images-items {
    white-space: nowrap;
    position: relative;
}

.control-box .image-items {
    float: left;
    width: 119px;
    height: 120px;
    display: inline-block;
    overflow: hidden;
    margin-left: 33px;
    background-size: cover;
    background-position-x: center;
    position: relative;
    cursor: pointer;

}

.control-box .image-items:first-child {
    margin-left: 0;
}

.control-box .image-items .dialog {
    width: 100%;
    height: 100%;
    background: #E63932;
    opacity: 0.7;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    display: none;
}

.control-box .image-items span {
    font-size: 18px;
    color: #fff;
    line-height: 120px;
    text-align: center;
    display: none;
    height: 100%;
    position: absolute;
    z-index: 2;
    width: 100%;
}

.control-box .image-items:hover .dialog, .control-box .image-items:hover span {
    display: block;
}

.control-box .active .dialog, .control-box .active span {
    display: block;
}

@media (max-width: 800px) {
    .container {
        padding: 0;
    }

    .right-color {
        display: none;
    }

    .teach-container {
        width: 100%;
    }

    .slider-box {
        height: 6.8rem;
        overflow: inherit;
    }

    .teach-items .item {
        width: 6.4rem;
        -ms-background-position-x: center;
        background-position-x: center;
        background-repeat: no-repeat;
    }

    .teach-items .item .image-box {
        display: none;
    }

    .teach-items .teach-info {
        width: 5.92rem;
        height: 3.62rem;
        padding: 0.34rem 0.56rem 0.34rem 0.78rem;
        top: 5.72rem;
        right: 0.24rem;
        background: #f5f5f5;
    }

    .teach-items .teach-info .name-box {
        padding-bottom: 0.1rem;
        border-color: #CFCFCF;
    }

    .teach-info .name-box h2 {
        font-size: 0.3rem;
        margin-bottom: 0.06rem;
    }

    .teach-info .name-box span {
        font-size: 0.24rem;
    }

    .teach-info p {
        margin: 0.2rem 0;
        font-size: 0.24rem;
        line-height: .35rem;
        height: 1.4rem;

    }

    .teach-info .good-at {
        font-size: 0.28rem;
        line-height: 0.28rem;
    }

    .control-box {
        height: 1.28rem;
        display: block;
        margin:2.8rem 0.24rem 0.26rem;
        overflow: hidden;
    }

    .control-box .teach-left, .control-box .teach-right {
        display: none;
    }
    .control-box .teach-images{width: 100%;}
    .control-box .image-items{width: 1.28rem;height:1.28rem;margin-left: 0.12rem;}
    .control-box .image-items span{
        line-height:1.28rem;
        font-size: 0.28rem;
    }
}
