/* 课程详情页面样式 */
body{
    font-family: PingFang SC;
}
.cd-container{
    background: #EAE3FF;
    width: 100%;
    padding: 40px 0;
}
.cd-video-group{
    margin: 0 auto;
}
.max1280{
    max-width: 1280px;
}
.cd-main{
    background: #FFFFFF;
    padding: 60px 0;
}
.cdm-details{
    margin:  0 auto;
}
.ctl-item{
    background: #F8F8F8;
    padding: 20px 24px;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.ctl-item:hover {
    background: #E8E8E8;
}

.ctl-item.active {
    background: linear-gradient(90deg, #3947FF 0%, #805AF5 100%);
    color: #fff;
}

.ctl-item.active .ctl-item-title {
    color: #fff;
}
.cd-nav {
    display: flex;
    width: 660px;
    justify-content: center;
    background: #FFFFFF;
    border-radius: 40px;
    padding: 10px;
    margin: 0 auto;
    margin-bottom: 60px;
    border: 1px solid #E2E2EC;
}

.nav-button {
    width: 200px;
    height: 60px;
    line-height: 60px;
    border: none;
    border-radius: 30px;
    background-color: transparent;
    color: #4F4F57;
    font-size: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.nav-button.active {
    background: linear-gradient(90deg, #3947FF 0%, #805AF5 100%);
    color: #fff;
    font-weight: bold;
    border-radius: 30px;
}

.ctl-item-img{
    width: 24px;
    height: 24px;
    margin-right: 18px;
}
.ctl-item-title{
    font-weight: bold;
}
/* Video.js播放器样式优化 */
.video-js {
    background-color: #2c3e50; /* 设置播放器背景颜色 */
    border-radius: 10px; /* 设置播放器边框圆角 */
}

.vjs-control-bar {
    background-color: #34495e; /* 设置控制栏背景颜色 */
}

.vjs-play-control,
.vjs-volume-panel,
.vjs-fullscreen-control,
.vjs-pip-control {
    color: #ecf0f1; /* 设置控制按钮颜色 */
}

.vjs-progress-control .vjs-progress-holder {
    background-color: #8e44ad; /* 设置进度条背景颜色 */
}

.vjs-progress-control .vjs-play-progress {
    background-color: #3498db; /* 设置播放进度颜色 */
}
#videoContainer{
    width: 960px;
    height: 620px;
    border-radius: 10px;
    overflow: hidden;
    flex: 1;
}
.details-details {
    background-color: #fff;
    border-radius: 16px;
    padding: 20px;
    width: 300px;
    height: 620px;
    margin-left: 20px;
    position: relative;
}
.course-subtitle{
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 控制显示的行数 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dd-title{
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.details-details h2 {
    font-weight: bold;
}

.course-subtitle {
    color: #73737A;
    margin-bottom: 30px;
}

.course-rating {
    padding: 19px 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    background: #F7F4FF;
}

.course-rating span {
    color: #666;
}

.stars {
    color: #ffc107;
    margin: 0 10px;
}

.course-teacher {
    display: flex;
    align-items: center;
}

.teacher-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.teacher-info h5 {
    margin-bottom: 8px;
    color: #232328;
}

.teacher-info p {
    color: #73737A;
    margin: 0;
}

.course-price {
    margin-top: 150px;
    margin-bottom: 20px;
    text-align: center;
}

.current-price {
    font-family: DINPro;
    color: #ff4d4f;
    font-weight: bold;
    margin-right: 10px;
}

.original-price {
    font-family: DINPro;
    color: #999;
    text-decoration: line-through;
}

.buy-now-btn {
    width: 100%;
    height: 54px;
    line-height: 54px;
    background: linear-gradient(90deg, #3947FF 0%, #805AF5 100%);
    box-shadow: 0px 2px 6px 0px rgba(57,71,255,0.4);
    color: white;
    border: none;
    border-radius: 27px;
    cursor: pointer;
    margin-bottom: 30px;
}

.course-sales {
    text-align: center;
    color: #4e54ff;
    position: absolute;
    bottom: 0;
    left: 0;
    border-radius: 0px 0px 20px 20px;
    height: 60px;
    background: #F6F3FF;
    width: 100%;
    text-align: center;
    line-height: 60px;
}

.cd-video-group {
    display: flex;
    align-items: flex-start;
}

@media (min-width: 993px) and (max-width: 1199px){
    .max1280{
        max-width: 800px;
    }
    #videoContainer{
        width: 600px;
        height: 388px;
        border-radius: 13px;
    }
    .details-details {
        border-radius: 13px;
        padding: 13px;
        width: 188px;
        height: 388px;
        margin-left: 13px;
        position: relative;
    }
    .course-rating {
        padding: 12px 8px;
        border-radius: 8px;
        margin-bottom: 13px;
        background: #F7F4FF;
    }

    .teacher-avatar {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        margin-right: 13px;
    }
    .teacher-info h5 {
        margin-bottom: 6px;
    }
    .course-price {
        margin-top: 100px;
        margin-bottom: 15px;
        text-align: center;
    }
    .course-subtitle {
        color: #73737A;
        margin-bottom: 19px;
    }
    .buy-now-btn {
        width: 100%;
        height: 34px;
        line-height: 34px;
        border-radius: 17px;
    }

    .course-sales {
        height: 38px;
        line-height: 38px;
        border-radius: 0px 0px 13px 13px;
    }
    .cd-nav {
        display: flex;
        width: 413px;
        border-radius: 25px;
        padding: 6px;
        margin: 0 auto;
        margin-bottom: 44px;
        border: 1px solid #E2E2EC;
    }
    .nav-button {
        width: 125px;
        height: 38px;
        line-height: 38px;
        border-radius: 19px;
        font-size: 13px;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }
}