/* 移动优先的基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'yahei','PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
    color: #333;
    background-color: #fff;
}
a{
    color: #000; 
    text-decoration: none;
}
img{
    border: 0;
}
ul,li{
    list-style: none; 
    margin: 0; 
    padding: 0;
}
/* 头部 */

.hred{
    height: 44px;
    background: #fff;    
    position: relative;
}
.hred .hred_left{
    position: absolute;
    width: 54px;
    height: 44px;
    left: 15px;
    top: 0;
}
.hred .hred_left .back{
    background: url(../img/back.png) no-repeat left center;
    background-size: 12px 21px;
    width: 44px;
    height: 44px;
}


.hred .hred_left .mode{
    background: url(../img/arrow_1.png) no-repeat center right;
    background-size: 8px 5px;
    font-size: 14px;
    text-align: center;
    line-height: 44px;
    color: #5373FE;
    padding-right: 10px;
}
.hred .hred_left a{
    display: block;
    width: 44px;
    height: 44px;
}
.hred .hred_left a.close{
    background: url(../img/close.png) center left no-repeat;
    background-size: 16px 16px;
}
.hred .hred_center{
    font-size: 18px;
    width: 100%;
    height: 44px;
    line-height: 44px;
    text-align: center;
}
.hred .hred_right{
    position: absolute;
    height: 44px;
    right: 15px;
    top: 0;
}
.hred .hred_right a{
    display: block;
    width: 44px;
    height: 44px;
    background: url(../img/user_ico.png) no-repeat center right;
}
.hred .hred_right a.index{
    background: url(../img/index.png) no-repeat right center;
    background-size: 24px 22px;
    width: 44px;
    height: 44px;
}
.hred .hred_right .submit-btn{
    width: 60px;
    height: 28px;
    line-height: 28px;
    background: #fff;
    border: 1px solid #5373FE;
    border-radius: 5px;
    color: #5373FE;
    text-align: center;
    margin-top: 10px;
}

/* 搜索 */
.search{
    padding: 10px 15px;
    background: #fff;
}
.search input{
    width: 100%;
    border: 0;
    /* border: 1px solid #ddd; */
    border-radius: 10px;
    outline: none;
    background: #f9f9f9 url(../img/search.png) no-repeat 10px center;
    text-indent: 32px;
    line-height: 40px;
}
.container {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
}

/* 轮播样式 */
.banner {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.banner-container {
    display: flex;
    transition: transform 0.5s ease;
}

.banner-container img {
    width: 100%;
    flex-shrink: 0;
}

/* 滑动容器样式 */
.class_list {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.class_list::-webkit-scrollbar {
    display: none;
}

.class_list ul {
    display: inline-block;
    padding: 0;
    margin: 0;
    margin-left: 15px;
}

.class_list li {
    display: inline-block;
    width: 64px;
    margin-right: 15px;
    vertical-align: top;
    text-align: center;
}

/*栏目*/
.name_class{
    margin: 15px 0;
    color: #333;
}
.name_class h2{
    font-size: 18px;
    font-weight: bold;
}
.name_class h2 span{
    width: 5px;
    display: block;
    float: left;
    margin-right: 10px;
    text-indent: -9999px;
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
}
.name_class h2.color_1 span{
    background: #5373FE;
}
.name_class h2.color_2 span{
    background: #FFBF43;
}
.name_class h2.color_3 span{
    background: #FA4949;
}

/* 阅读记录 */
.data_list{
    padding: 0px 15px;
    padding-bottom: 5px;
}
.data_list li{
    padding: 10px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    margin-bottom: 15px;
}
.data_list li .img{
    width: 80px;
    float: left;
    margin-right: 10px;
    border-radius: 10px;
    overflow: hidden;
}
.data_list li .img img{
    width: 100%;
    object-fit: cover;   
}
.data_list li .text{
    margin-left: 90px;
}
.data_list li .text strong{
    font-size: 16px;
}

.data_list li .text .progress{
    font-size: 14px;
    margin-top: 5px;
    overflow: hidden;
}
.data_list li .text .progress div{
    float: left;
}
.data_list li .text .progress .progress-bar{
    float: left;
    color: #5373FE;
}
.data_list li .text .progress .progress-bar span{
    padding: 0 5px;
    color: #ddd;
}
.data_list li .text .btn{
    margin-top: 10px;
    width: 100px;
    text-align: center;
    border-radius: 10px;
    background: #5373FE;
    color: #fff;
    line-height: 30px;
    display: block;
}
/* 新课程 */
.new_list{
    padding: 0px 15px;
}
.new_list li{
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
}
.new_list li .color{
    float: left;
    width: 10px;
    height: 120px;
    margin-right: 10px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}
.new_list li .color_1{
    background: linear-gradient(to bottom, #FA4949, #fff);
}
.new_list li .color_2{
    background: linear-gradient(to bottom, #5373FE, #fff);
}
.new_list li .color_3{
    background: linear-gradient(to bottom, #FF7A58, #fff);
}
.new_list li .text strong{
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
}
.new_list li .text span{
    display: block;
    font-size: 14px;
    color: #999;
}
.new_list li .text span.time{
   font-size: 12px; 
}
.new_list li .play_link{
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 30px;
    height: 30px;
    background: #5373FE url(../img/play_link.png) no-repeat center center;
    border-radius: 100px;
}


/* 详情页 */
.play-info{
    overflow: hidden;
}
.play-info .video-dplayer{
    width: 100%;
    height: 0;
    padding-bottom: 75%; /* 4:3 比例 */
    position: relative;
    background: #000;
    overflow: hidden;
}

.play-info .video-dplayer #dplayer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.play-info .info{
    padding: 10px 15px;
    padding-right: 100px;
    position: relative;
}
.play-info .info h2{
    font-size: 18px;
    font-weight: bold;
}
.play-info .info p{
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}
.play-info .info p span{
    padding: 0 5px;
}
.play-info .info .video-favorite{
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    font-size: 12px;
    border: 1px solid #5373FE;
    border-radius: 100px;
    line-height: 24px;
}
.play-info .info .video-favorite span{
    display: block;
    height: 24px;
    padding-left: 24px;
     color: #5373FE;
    background: url(../img/info-ico-1.png) no-repeat 5px center;
}
.play-info .info .video-favorite span.active{
    background: url(../img/info-ico-2.png) no-repeat 5px center;
}

.video-container{
    width: 100%;
    padding: 15px;
    border-top: 10px solid #eee;
    overflow: hidden;
}
.video-container .img{
    float: left;
    width: 60px;
    height: 68px;
    margin-right: 10px;
    overflow: hidden;  
}
.video-container .img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.video-container .chapter-info{
    float: left;
}
.video-container .chapter-info h2{
    font-size: 16px;
    font-weight: bold;
    overflow: hidden;
}
.video-container .chapter-info p{
    font-size: 14px;
    color: #999;
    margin-top: 5px;
}

.course-list{
    padding: 0 15px;
}
.course-list .item{
    padding-bottom: 15px;
}
.course-list .item .title{
    font-size: 16px;
    font-weight: bold;
    overflow: hidden;
    line-height: 28px;
    position: relative;
    margin-bottom: 10px;
}
.course-list .item .title div{
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    color: #5373FE;
    padding-left: 10px;
    padding-right: 10px;
    height: 26px;
    font-size: 12px;
    border: 1px solid #5373FE;
    border-radius: 100px;
    text-align: left;
    line-height: 24px;
    padding-right: 20px;
}
.course-list .item .title div i{
    display: block;
    width: 10px;
    height: 32px;
    background: url(../img/i.png) no-repeat center center;
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}
.detail-content .item .title.active i {
    transform: translateY(-50%) rotate(180deg);
}

.detail-content .item ul {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.detail-content .item.active ul {
    /* max-height: 1000px; */
	max-height: none;
}
.detail-content .item ul li{
    padding: 10px;
    border-radius: 10px;
    position: relative;
}
.detail-content .item ul li.cure{
    background: #EEF1FF;
}
.detail-content .item ul li strong{
    display: block;
    font-size: 14px;
    font-weight: normal;
    color: #5373FE;
}
.detail-content .item ul li .play-item-ico{
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 16px;
    background: url(../img/play-item-ico.png) no-repeat center center;
    display: none;
}
.detail-content .item ul li.cure .play-item-ico{
    display: block;
}
.detail-content .item ul li div{
    display: block;
    font-size: 12px;
    color: #999;
}
.detail-content .item ul li div span{
    padding: 0 5px;
    color: #000;
}
.detail-content .list-more{
    width: 100px;
    line-height: 32px;
    text-align: center;
    font-size: 14px;
    display: block;
    color: #5373FE;
    border: 1px solid #5373FE;
    border-radius: 50px;
    margin: 0px auto;
    margin-bottom: 15px

}

/* 学科分类tab样式 */
.tab-list {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-bottom: 1px solid #ddd;
}
.tab-list::-webkit-scrollbar {
    display: none;
}
.tab-list ul {
    display: inline-flex;
    padding: 0 15px;
}
.tab-list li {
    padding: 0 15px;
    position: relative;
    margin: 0 15px;
}
.tab-list li p{
    line-height: 40px;
    font-size: 16px;
}
.tab-list li.active {
    color: #5373FE;
}
.tab-list li.active:after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: #5373FE;
    border-radius: 2px;
}

.class-list .item {
    display: none;
}
.class-list .item.active {
    display: block;
    animation: fadeIn 0.5s;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 课程列表样式 */
.class-list .item{
    background: url(../img/class-bg.png) no-repeat center top;
    background-size: 100% auto;
}
.class-list .hred-img {
    height: 170px;
    text-align: center;
}
.class-list .hred-img strong{
    display: block;
    font-size: 40px;
    color: #000;
    padding-top: 7%;
}
.class-list .hred-img span{
    display: block;
    font-size: 16px;
    color: #000;
    margin-top: -10px;
}
.class-list .class-list-content{
    padding: 20px 15px;
    background: #fff;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;

}
.class-list .class-list-content .class-item{
    padding-bottom: 15px;
}
.class-list .class-list-content .class-item .title{
    overflow: hidden;
    line-height: 28px;
    margin-bottom: 10px;
    position: relative;
    height: auto;
}
.class-list .class-list-content .class-item .title .img{
    width: 64px; 
    height: 64px; 
    float: left; 
    margin-right: 10px;
    background-color: #eee;
}
.class-list .class-list-content .class-item .title .img img{
    width: 64px;
    height: 64px;
}
.class-list .class-list-content .class-item .title .text{
    margin: 0px 70px 0 74px;
    line-height: 24px;
}
.class-list .class-list-content .class-item .title .text strong{
    display: block;
    padding-bottom: 5px;
    font-size: 16px;
}
.class-list .class-list-content .class-item .title .text t{
    font-size: 12px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    height: 24px;
}

.class-list .class-list-content .class-item .title .more{
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    color: #5373FE;
    padding-left: 10px;
    padding-right: 10px;
    height: 26px;
    font-size: 12px;
    border: 1px solid #5373FE;
    border-radius: 100px;
    text-align: left;
    line-height: 24px;
    padding-right: 20px;
}

.class-list .class-list-content .class-item .title .more i{
    display: block;
    width: 10px;
    height: 32px;
    background: url(../img/i.png) no-repeat center center;
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}
.class-list .class-list-content .class-item .title.active .more i {
    transform: translateY(-50%) rotate(180deg);
}
.class-list .class-list-content .class-item ul {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.class-list .class-list-content .class-item.active ul {
    /* max-height: 1000px; */
	max-height: none;
}
.class-list .class-list-content .class-item ul li{
    padding: 10px;
    border-radius: 10px;
    position: relative;
    color:#999;
    font-size: 12px;
    border-bottom: 1px solid #eee;
}
.class-list .class-list-content .class-item ul li a{
    display: block;
    background: url(../img/arrow_2.png) no-repeat center right;
    color: #999;
}
.class-list .class-list-content .class-item ul li strong{
    display: block;
    font-size: 16px;
    font-weight: normal;
    color: #5373FE;
}
.class-list .class-list-content .class-item ul li span{
    padding: 0 5px;
    color: #ddd;
}
.class-list .class-list-content .class-item ul li span.state{
    color: #5373FE;
}


/* 模式切换弹框样式 */
.mode-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 999;
    justify-content: center;
    align-items: center;
}

.mode-modal-content {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    width: 80%;
    max-width: 300px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    margin: 70% auto;
}

.mode-modal-content .mode-option {
    padding: 15px 0;
    text-align: center;
    font-size: 16px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}
.mode-modal-content .class-name{
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    padding-bottom: 15px;
}

.mode-modal-content .mode-option:last-child {
    border-bottom: none;
}

.mode-modal-content .mode-option:hover {
    color: #5373FE;
}

/* 搜索 */
.search-list{
    padding: 0 15px;
}
.search-list .tip{
    font-size: 14px;
    margin-top: 10px;
}
.search-list .tip span{
    padding: 0 5px;
    color: #5373FE;
}
.search-list .search-list-content{
    padding: 15px 0;
}
.search-list .search-list-content li{
    padding: 10px 0;
    position: relative;
}
.search-list .search-list-content li strong{
    display: block;
    font-size: 16px;
    font-weight: normal;
    color: #5373FE;
}
.search-list .search-list-content li span{
    display: block;
    font-size: 14px;
    color: #999;
}

/* 我的 */
.profile-form{
    padding: 0 15px;
}
.profile-form .form-group{
    overflow: hidden;
    padding: 15px 0;
    line-height: 32px;
    border-bottom: 1px solid #ddd;
}
.profile-form .form-group label{
    float: left;
    width: 90px;
    font-size: 16px;
}
.profile-form .form-group .text{
    font-size: 16px;
    text-align: right;
    padding-right: 20px;
    background: url(../img/arrow_3.png) no-repeat center right;
}
.profile-form .form-group .avatar-upload{
    padding: 0;
    border-bottom: none;
    text-align: right;
    padding-right: 20px;
    background: url(../img/arrow_3.png) no-repeat center right;
    height: 40px;
    float: right;
}
.profile-form .form-group .avatar-upload img{
    width: 40px;
    height: 40px;
    border-radius: 100px;
    background: #999;
}
.profile-form .edit-form-group{
    padding-top: 15px;
}
.profile-form .edit-form-group label{
    display: block;
    font-size: 16px;
}
.profile-form .edit-form-group input{
    line-height: 48px;
    font-size: 16px;
    border: 0;
    border-bottom: 1px solid #5373FE;
    width: 100%;
}
.profile-actions{
    padding: 0 15px;
    padding-top: 15px;
    border-top: 10px solid #eee;
    margin-top: 15px;
}
.profile-actions .action-item{
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
    overflow: hidden;
}
.profile-actions .action-item .text{
    float: left;
    line-height: 40px;
}
.profile-actions .action-item .icon {
    padding: 0;
    border-bottom: none;
    text-align: right;
    padding-right: 20px;
    background: url(../img/arrow_3.png) no-repeat center right;
    height: 40px;
    float: right;
}

/* 登录 */
.app-ico{
    width: 64px;
    height: 64px;
    margin: 30px auto;
    overflow: hidden;
    border-radius: 100px;
    background: #999;
}
.app-ico img{
    width: 64px;
    height: 64px;
}

/* 登录表单 */
.login-form {
    padding: 30px 15px;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

.login-form .captcha-container {
    display: flex;
    align-items: center;
    width: 100%;
}
.login-form #captcha-img{
    float: left;
    width: 150px;
    height: 44px;
    margin-left: 15px;
}

.login-form .submit-btn {
    width: 100%;
    background: #5373FE;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 16px;
}

.login-form .submit-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

/* 我的收藏 */
.collect{
    padding: 15px;
}