/* 课程中心/粤妆学堂样式 */

/* 首页样式排版 START */
body {
    --course-color: #5587E6;
    --success-color: #04c877;
    --gray-3: #333;
    --gray-6: #666;
    --gray-9: #999;
    background-color: #F9F9F9;
}
@media (min-width: 1200px) {
    .course-layout .container  {
        max-width: 1120px;
    }

    .first-part .xm4 {
        width: calc(33.33% - 10px); 
        margin-left: 10px;
    }
    
    .first-part .xm8 {
        width: calc(66.66% - 10px); 
        margin-right: 10px;
    }
}
.text-gray3 {
    color: var(--gray-3)!important;
}
.text-gray6 {
    color: var(--gray-6)!important;
}
.text-gray9 {
    color: var(--gray-9)!important;
}
.text-primary {
    color: var(--primary-color)!important;
}
/* banner图 + 用户卡片 */
.course-layout .first-part {
    height: 350px;
    margin-top: 20px;
    --first-height: 350px;
    padding: 0;
}

.user-card {
    height: var(--first-height);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 10px;
    background-image: linear-gradient(
        to bottom,
        #E1ECFE 0%, 
        #E9F1FC 20%,
        white 50% 
    );
    border-color: rgba(0, 0, 0, 0.3);
    box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.1) ;
    position: relative;
    z-index: 1;
}

.user-card .avatar {
    height: 90px;
    width: 90px;
    overflow: hidden;
    border-radius: 50%;
    margin-top: 40px;
}
.avatar img {
    height: 100%;
    width: 100%;
}
.user-card .nickname {
    margin-top: 15px;
    font-size: 18px;
}
.user-card .welcome-words {
    margin-top: 24px;
    text-align: center;
}
.user-card .welcome-words p {
    line-height: 1.4;
}
.user-card .welcome-words span {
    font-weight: bolder;
    font-size: 24px;
    color: var(--primary-color);
}
.user-card .look-course-btn {
    color: white;
    margin-top: 20px;
    padding: 10px 25px;
    border-radius: 30px;
    background-image: linear-gradient(
        to right,
        #538AE5 0%,
        #63A8F8 100%
    );
    border-color: #538AE5;
}

/* 通知通告 */
.second-part {
    background-color: #F5F5F5;
    border-radius: 10px;
    margin-top: 20px;
    position: relative;
}

.second-part .notice-icon {
    --size-unit: 50px;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: -10px;
    margin-left: -10px;
    padding: 0;
}
.second-part .notice-container {
    padding: 0;
}
.second-part .notice-icon img {
    width: var(--size-unit);
    height: var(--size-unit);
    margin-top: 9px;
}
.second-part .notice-icon span {
    font-size: 20px;
    font-weight: bolder;
}
.second-part .notice-list {
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}
.second-part .notice-list .notice-item{
    display: block;
    position: relative;
    margin-left: 25px;
    cursor: pointer;
}
.second-part .notice-list .notice-item::before {
    content: ' ';
    position: absolute;
    border-radius: 50%;
    left: -20px;
    top: 35%;
    height: 10px;
    width: 10px;
    background-color: var(--course-color);
}
.second-part .notice-list .notice-item:hover {
    color: var(--course-color);
}
.second-part .more {
    align-self: center;
    color: var(--course-color);
    cursor: pointer;
}

/* 热门课程 */
.third-part {
    margin-top: 30px;
    padding: 0;
}
.third-part .hot-title {
    --size-unit: 30px;
    font-size: 26px;
    font-weight: bolder;
    height: 50px;
    line-height: 50px;
    margin-bottom: 30px;
}
.third-part .hot-title img {
    width: var(--size-unit);
    height: var(--size-unit);
    margin-top: -5px;
}
.course-list .course-item {
    cursor: pointer;
    margin-bottom: 30px;
    padding-left: 10px;
    padding-right: 10px;
    display: block;
}
.course-list .course-box {
    border-radius: 17px;
    overflow: hidden;
    background-color: white;
    width: 100%;
    transition: all 0.3s;
}

.course-list .course-box:hover {
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

.course-list .course-item .cover {
    height: 180px;
    position: relative;
}

.course-list .course-item .cover::before {
    content: '热门课程';
    color: white;
    position: absolute;
    background-image: linear-gradient(
        to bottom,
        #EB5B49 0%,
        #EC7B5A 50%,
        #EE9665 100%
    );
    font-size: 18px;
    padding: 5px 10px;
    border-bottom-right-radius: 17px;
    border-color: transparent;
}

.course-list .course-item .cover img {
    height: 180px;
    width: 100%;
}
.course-list .course-bottom {
    padding: 20px;
}

.course-list .course-item .course-title {
    font-size: 20px;
    font-weight: bolder;
    line-height: 24px;
    overflow: hidden;
}

.course-list .course-item .short-desc {
    font-size: 14px;
    color: #999;
    margin-top: 10px;
    height: 18px;
    line-height: 18px;
    overflow: hidden;
}
.course-list .course-item .course-footer {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-list .course-item .lesson-num {
    font-size: 16px;
    color: var(--course-color);
    display: flex;
}
.course-list .course-item .lesson-num img {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    margin-right: 5px;
}

.apply-btn {
    padding: 5px 20px;
    border-radius: 30px;
    background-image: linear-gradient(
        to right,
        #538AE5 0%,
        #63A8F8 100%
    );
    border-color: white;
}
.apply-btn:hover {
    border-color: white;
}
.go-study-btn,
.go-study-btn:hover
{
    background: #DDE9FD!important;
    color: var(--course-color)!important;
}
.look-all,
.look-all:link,  
.look-all:active  
{
    display: block;
    text-align: center;
    color: var(--course-color);
    cursor: pointer;
}
.course-finish-btn, 
.course-finish-btn:hover,
.course-finish-btn:active
{
    background: #F8F9FA!important;
    color: var(--success-color)!important;
    display: inline-block;
    border: #F8F9FA!important;
}
/* 首页样式排版 END */

/* 课程列表页排版 START */
.no-padding {
    padding: 0;
}
.cate-line {
    margin-top: 0px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}
.cate-line .cate.active {
    color: var(--course-color);
}
.cate-line .cate {
    margin-right: 50px;
    position: relative;
    color: #666;
}
.cate-line .cate:hover {
    color: var(--course-color);
}
.cate-line .cate::after {
    content: '';
    position: absolute;
    right: -25px;
    top: 20%;
    width: 1px; 
    height: 60%;
    background-color: var(--course-color);
}
.cate-line .cate:last-child::after {
    display: none;
}

.pagination a {
    display: flex;
    align-items: center;
}
.pagination a.page-num-current {
    background-color: var(--course-color);
}
/* 课程列表页排版 END */


/* 课程详情页排版 START */
.course-detail .chapter-title {
    font-size: 20px;
    font-weight: bolder;
}
.course-detail .lesson {
    display: block;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}
.course-tabs {
    display: flex;
    font-size: 18px;
}
.tab-link {
    cursor: pointer;
    padding: 20px;
    color: #666;
}
.tab-link.active {
    color: var(--course-color);
    position: relative;
}
.tab-link.active::after {
    content: '';
    position: absolute;
    height: 4px;
    width: 60%;
    bottom: 0;
    left: 20%;
    background-color: var(--course-color);
}

.course-detail .course-top {
    border-radius: 15px;
    background-color: white;
    padding: 30px 30px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.course-detail .course-info {
    display: flex;
    margin-bottom: 30px;
}
.course-detail .cover img {
    width: 350px;
    height: 250px;
    border-radius: 15px;

}
.course-detail .info-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-left: 30px;
    padding-top: 20px;
    padding-bottom: 20px;
}
.course-detail .course-title {
    font-size: 24px;
    font-weight: bolder;
}
.course-detail .course-desc {
    margin-top: 20px;
    color: #666;
}

.course-detail .course-status {
    color: white;
    background-image: linear-gradient(
        to right,
        #538AE5 0%,
        #63A8F8 100%
    );
    width: 120px; 
    padding: 10px 20px;
    border-radius: 25px;
    text-align: center;
}

.course-detail .course-bottom {
    margin-top: 30px;
    border-radius: 15px;
    background-color: white;
    padding: 30px;
}
.course-detail .chapter {
    margin-bottom: 30px;
}
.course-detail .chapter-title {
    font-size: 20px;
    font-weight: bolder;
    margin-bottom: 20px;
}
.course-detail .lesson {
    margin-bottom: 20px;    
    font-size: 16px;
    display: flex;
    justify-content: space-between;
}
.course-detail .chapter .lesson {
    margin-left: 20px;
}
.course-detail .lesson-duration {
    color: #AEAEAE; 
}
.course-detail .lesson-finish-status {
    margin-left: 20px;
    color: var(--success-color);
}
.course-detail .lesson-unfinish-status {
    margin-left: 20px;
    color: var(--gray-9);
}
.course-detail .course-tabs {
    margin-top: -15px;
    margin-left: -15px;
    margin-bottom: 45px;
}
.course-detail .course-lecturer {
    margin-bottom: 20px;
}
.course-detail .lecturer-header {
    margin-bottom: 20px;
    font-size: 20px;
}
.course-detail .lecturer-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}
.course-detail .lecturer-item {
    display: flex;
    width: 240px;
    margin-bottom: 20px;
    margin-right: 20px;
    align-items: center;
    cursor: pointer;
}
.course-detail .lecturer-avatar {
    object-fit: cover;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
    box-sizing: border-box;
}
.course-detail .lecturer-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.course-detail .lecturer-name{
    font-size: 14px;
    margin-bottom: 5px;
    color: #000;
}
.course-detail .lecturer-title{
    font-size: 12px;
    color: #999;
    height: 30px;
    line-height: 15px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    /* 或者使用 white-space: nowrap; */
    width: 170px;
}
/* 课程详情页排版 END */

/* 视频播放页排版 START */
.video-container {
    display: flex;
    align-items: stretch;
    background-color: white;
}
.video-left {
    padding: 0;
}
.video-right {
    box-sizing: border-box;
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 20px;
    height: 520px;
    overflow-y: auto;
    overflow-x: hidden;
}
.course-detail .lesson.lesson-finish{
    color: var(--gray-9);
}
.course-detail .lesson.active {
    color: var(--course-color);
    font-weight: bold;
}
.course-detail .course-updating {
    width: 100%;
    position: relative;
}
.course-detail .course-updating img {
    width: 100%;
    height: 100%;
}
.course-detail .course-updating::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(to top, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0) 10%), 
        linear-gradient(to left, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0) 10%)
    ;  
    z-index: 1;  /* 确保遮罩在图片上层显示 */
}
/* 视频播放页排版 END */

/* 我的课程页面 START */
.my-course {
    background: white;
    border-radius: 15px;
    padding: 25px;
}
.my-course .course-item {
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.my-course .cover {
    width: 240px;
    height: 160px;
    border-radius: 10px;
    overflow: hidden;
    margin-right: 30px;
}
.my-course .cover img {
    width: 100%;
}
.my-course .course-box {
    display: flex;
}
.my-course .course-info{
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}
.my-course .course-title {
    font-size: 20px;
    font-weight: bolder;
}
.my-course .study-status span {
    color: var(--success-color);
}
.my-course .course-btn {
    padding: 10px 25px;
    border-radius: 5px;
}
.my-course .continue-study-btn {
    background-image: linear-gradient(
        to right,
        #538AE5 0%,
        #63A8F8 100%
    );
    border-color: white;
}
.my-course .study-finish-btn {
    color: #3ca7fa;
    background: #f4fafe;
}
.my-course-box .hot-title {
    --size-unit: 30px;
    font-size: 26px;
    font-weight: bolder;
    height: 50px;
    line-height: 50px;
    margin-bottom: 20px;
}
.my-course-box .hot-title img {
    width: var(--size-unit);
    height: var(--size-unit);
    margin-top: -5px;
}
.course-empty {
    text-align: center;
    font-size: 30px;
    margin-top: 100px;
    margin-bottom: 100px;
    color: #999;
}
/* 我的课程页面 END */


/* 个人中心页面 START */
.user-info .info-header {
    background-color: #61A4F5;    
    color: white;
    display: flex;
    padding: 25px;
    border-radius: 8px;
}
.user-info .info-header {
    display: flex;
    justify-content: space-between;
}
.user-info .info-header-left {
    display: flex;
    align-items: center;
}
.user-info .avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 20px;
}
.user-info .nickname {
    font-weight: bolder;
    font-size: 26px;
}
.user-info .course-num {
    color: white;
    display: flex;
    flex-direction: column;
    margin-right: 30px;
    align-items: center;
}
.user-info .course-num span:first-child {
    font-weight: bold;
    font-size: 26px;
}
.user-info .info-basic {
    margin-top: 20px;
    padding: 25px;
    border-radius: 8px;
    background-color: white;
}
.user-info .info-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    padding-bottom: 20px;
}
.user-info .info-line-content {
    display: flex;
    align-items: center;
}
.user-info .info-field {
    width: 160px;
    color: #666;
}
.user-info .info-line-tips{
    color: #999;
}
.user-info .info-basic .avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 20px;
}
.user-info .icon {
    width: 24px;
    height: 24px;
}
/* 个人中心页面 END */


/* 用户登录注册 START */
.user-login-page .tab-content {
    display: block;
}
.user-login-page .btn-primary {
    background-color: var(--main-color)!important;
}
.append-pad {
    padding-top: 10px;
    padding-bottom: 10px;
}
.user-login-page .login-form {
    background-color: #fff;
    border-radius: 5px;
    padding: 30px;
}
.user-login-page .login-btns {
    display: flex;
    justify-content: space-between;
}
.user-login-page .liu-nav-item {
    font-size: 20px;
    margin-right: 15px;
    margin-left: 15px;
    margin-bottom: 10px;
}

.user-login-page .liu-nav-link{
    display: flex;
    height: 100%;
    width: 100%;
    padding-bottom: 20px;
}
.user-login-page .liu-nav-link:hover{
    color: #000;
    opacity: 0.8;
}
.user-login-page .liu-nav-link.active {
    position: relative;
    color: var(--main-color);
}
.user-login-page .liu-nav-link.active::after {
    position: absolute;
    content: '';
    background-color: var(--main-color);
    height: 2px;
    width: 80%;
    left: 10%;
    bottom: 0;
}

.user-login-page .captcha-container {
  width: 120px;
  height: 40px;
}
/* 用户登录注册 END */


.course-update-tips {
    color: red; 
    margin-top: 15px; 
    font-size: 24px;
}