/*首页*/
.header-banner{
    position: relative;
    width: 100%;
    height: 180px;
    background: url("../images/banner/banner-train-h5.jpg") no-repeat top;
    background-size: 100%;
}
.train-main{
    position: absolute;
    top: 120px;
    width: 100%;
    max-width: 750px;
    padding-bottom: 54px;
}

.main-item{
    margin: 12px 0;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-sizing: border-box;
    box-shadow: 0 6px 6px rgba(61,110,153,0.05);
}
.main-item .footer{
    width:100%;
    text-align: center;
    padding-bottom: 16px;
}
.main-item .footer .van-button{
    width: calc(100% - 24px);
}
.current-course{
     padding: 12px;
 }
.current-course p span{
    color: #666;
}
.current-course .van-progress{
    margin: 18px 0;
}
.current-course .van-button{
    width: 100%;
}
.category-ul{
    margin: 0 6px 12px;
}
.category-ul li{
    display: inline-block;
    background-color: #F2F6F9;
    padding: 10px;
    width: calc(50% - 11px);
    box-sizing: border-box;
    border-radius: 4px;
    margin:  6px 4px;
    text-align: center;
    cursor: pointer;
}
.category-ul li:hover{
    background-color: #44A4F8;
    color: #fff;
}
.news-ul{
    padding-bottom: 16px;
    overflow: hidden;
}
.news-ul li{
    display: inline-block;
    float: left;
    position: relative;
    padding: 8px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-indent: 20px;
    font-size: 14px;
    width: 50%;
}
.news-ul li:after{
    position: absolute;
    content: "";
    top: 50%;
    left: 10px;
    background: #ff8a00;
    width: 5px;
    height: 5px;
    border-radius: 3px;
    margin-top: -2px;
}
.course-wrap{
    margin: 12px 12px 6px;
}
.course-wrap .van-col:nth-child(2n+1){
    clear: both;
}
.course-item{
    position: relative;
    width: 100%;
    background: #FFFFFF;
    box-shadow: 0 4px 8px 0 rgba(95,101,105,0.06);
    transition: all .2s;
    overflow: hidden;
    border-radius: 6px;
    padding-bottom: 6px;
    margin-bottom: 12px;
    transition: all .2s;
}
.course-item:hover{
    transform: translateY(-4px);
}
.course-item .course-img{
    position: relative;
    width: 100%;
    min-height: 86px;
    background-image: url("../images/icon-empty-img.svg") ;
    background-repeat: no-repeat;
    background-size: 10%;
    background-position: center;
    background-color: #f2f6f9;
    color: #fff;
    border-radius:  2px 2px 0 0;
    overflow: hidden;
}
.course-item .course-img img{
    width: 100%;
    height: 100%;
}
.course-item .course-img .status{
    position: absolute;
    top: 0;
    text-align: center;
    font-size: 12px;
    line-height: 20px;
    border-radius: 0 0 11px;
    left: 0;
    width: 38px;
    height: 20px;
    background-color: rgba(38,38,38,0.5);
    color: #fff;
}
.course-list-wrap{
    position: relative;
    height: 100px;
}
.course-title{
    margin:12px 8px 8px;
    height: 18px;
    font-size: 14px;
    color: #333;
    line-height: 18px;
    overflow: hidden;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.course-describe{
    margin:0  8px;
    font-size: 12px;
    color: #666;
    line-height: 16px;
    height: 32px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.course-property{
    display: block;
    position: absolute;
    width: 100%;
    bottom: 8px;
    color: #9199A1;
    font-size: 12px;
    padding: 0 8px;
    overflow: hidden;
}
.course-property .left{
    float: left;
}
.course-property .left .layui-icon{
    vertical-align: -1px;
}
.course-property .left span{
    padding-right: 6px;
    margin-right: 2px;
    border-right: 1px solid #eaeaea;
}
.course-property .left span:last-child{
    padding-right: 0;
    margin-right: 0;
    border-right: none;
}
.course-property .right{
    color: #ff5722;
    font-size: 14px;
    font-weight: bold;
    float: right;
}
/*详情页*/
.course-view-header{
    width: 100%;
    min-height: 180px;
    background: linear-gradient(to top right, #bbdcb1 0%, #5bc3c0 25%, #6690ff 100%);
    background-size: cover;
    color: #fff;
    padding-bottom: 12px;
    overflow: hidden;
}
.view-header-box{
    margin: 0 auto;
    padding: 0 12px;
    max-width: 1200px;
    position: relative;
}
.view-header-box .title{
    font-size: 22px;
    margin: 16px 0;
    color: #fff;
}
.view-header-box .intro{
    font-size: 14px;
    height: 16px;
    color: #fff;
    margin-bottom: 34px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.view-header-box .course-info{
    color: #fff
}
.view-header-box .course-breadcrumb div,.view-header-box .course-breadcrumb{
    display: inline-block;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}
.course-breadcrumb{
    -ms-flex-pack: justify;
    justify-content: space-between;
    -ms-flex-align: center;
    align-items: center;
    padding: 18px 0 14px;
    overflow: hidden;
}
.course-info-img{
    display: inline-block;
    float: left;
    margin-top: -9px;
}
.course-info-item{
    display: inline-block;
    float: left;
    margin: 0 12px 14px 0;
    padding-right: 12px;
    line-height: 18px;
    border-right: 1px dashed rgba(255,255,255,0.3);
    color: #fff;
    font-size: 14px;
}
.course-info-img img{
    display: inline-block;
    width: 36px;
    margin-right: 6px;
}
.van-tabs__content{
    border-top: 1px solid #eaeaea;
    padding-bottom: 54px;
}
.btn-favorite{
    position: absolute;
    right: 12px;
    top: 14px;
    background-color: transparent;
    border-color: #fff;
}
.btn-favorite.van-button--info{
    color: #fff;
}
.btn-favorite.active.van-button--info{
    color: rgba(255,255,255,0.6);
    border-color:rgba(255,255,255,0.6);
}
.train-info{
    padding: 12px;
}
.chapter-list{
    padding: 12px;
}
.chapter-list h3{
    color: #1c1f21;
    margin-bottom: 16px;
    padding-bottom: 10px;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    border-bottom: 1px dashed #ccc;
}
.video-list li{
    margin-bottom: 16px;
    padding: 12px;
    background-color: #fff;
    box-shadow: 0 0 6px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all .2s;
    overflow: hidden;
    line-height: 24px;
}
.video-list li.active{
    color: #44A4F8;
    box-shadow: 0 0 6px rgba(68,164,248,0.2);
}
.video-list li.active span{
    color: #44A4F8;
}
.video-list li:hover{
    transform: translateY(-4px);
    box-shadow: 0 0 6px rgba(0,0,0,0.2);
}
.video-list li .van-icon:before{
    font-size: 18px;
    vertical-align: -1px;
}
.video-list li .type-text{
    color: #666;
}
.video-list li .time{
    color: #666;
}
.video-list li .van-icon-checked{
    float: right;
    color: #07c160;
    margin-top: 2px;
}