@CHARSET "UTF-8";
#left {
    width: 220px;
    margin-top: 20px;
    min-height: 100px;
    display: inline-block;
    vertical-align: top;
    border: 1px #e9e9e9 solid;

}
#left .left_title {
    width: 100%;
}
#left .left_title img{
    width: 100%;
}
#left .left_tab {
    height: auto;
    width: 100%;
    background-color: #FFFFFF;
}

#left .left_tab a {
    display: block;
    width: 100%;
    height: 45px;
    line-height: 45px;
    margin-bottom: 2px;
    transition: all .3s;
    font-size: 20px;
    background: #EFEFEF;
    text-align: center;
    letter-spacing: 2px;
}
#left .left_tab a:last-child{
    margin-bottom: 0;
}
#left .left_tab a.active, .left_tab a:hover {
    color: var(--gb-text-color);
    background: var(--gb-background2);
    font-weight: 600;
}
#left .logo {width: 100%;padding: 20px 0;text-align: center}
#left img {width: 100px;}


#right {
    width: calc(100% - 322px - 16px - 2px);
    margin-top: 28px;
    min-height: 550px;
    background-color: #FFFFFF;
    display: inline-block;
    margin-left: 24px;
}

#right .page-title{
    color: #2B303B;
    font-size: 30px;
    font-weight: bold;
}
#right ul{}
#right ul li{
    width: 100%;
    padding: 30px;
    margin-bottom: 20px;
    transition: all .3s;
    margin-top: 20px;
    border-radius: 10px;
    background: #f9f9f9;
}
#right ul li:hover{
    box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 0 6px rgba(0, 0, 0, .04)
}

#right .divider2{
    border-top: 2px solid #E8E8E8;
}

#right ul a:last-child .divider2{
    display: none;
}
#right ul li .cover{
    width: 223px;
    height: 137px;
    margin-right: 20px;
}
#right ul li .cover .cover-img{
    width: 100%;
    height: 100%;
}
#right ul li .info{
    flex:1
}
#right ul li .info .info-title{
    font-size: 18px;
    margin-bottom: 10px;
}
#right ul li .info .info-time{
    font-size: 14px;
    color: #C5C5C5;
    margin-bottom: 10px;
}
#right ul li .info .info-content{
    font-size: 14px;
    color: #888888;
    line-height: 24px;
}

.course-item {
    padding: 0 !important;
    margin-bottom: 30px !important;
}

.course-header {
    display: flex;
    padding: 20px 30px;
    border-bottom: 1px solid #E8E8E8;
}

.course-cover {
    width: 223px;
    height: 137px;
    margin-right: 20px;
    flex-shrink: 0;
}

.course-cover .cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.course-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.course-content {
    display: flex;
    padding: 20px 30px;
    gap: 20px;
}

.course-left {
    flex: 0 0 400px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 5px;
}

.course-left::-webkit-scrollbar {
    width: 8px;
}

.course-left::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

/*.course-left::-webkit-scrollbar-thumb {*/
/*    background: linear-gradient(135deg, var(--gb-background2) 0%, #667eea 100%);*/
/*    border-radius: 10px;*/
/*    border: 2px solid #f1f1f1;*/
/*}*/

/*.course-left::-webkit-scrollbar-thumb:hover {*/
/*    background: linear-gradient(135deg, #667eea 0%, var(--gb-background2) 100%);*/
/*}*/

.course-right {
    flex: 1;
    min-height: 400px;
}

.chapter-item {
    margin-bottom: 15px;
    border: 1px solid #E8E8E8;
    border-radius: 8px;
    overflow: hidden;
}

.chapter-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #F5F5F5;
    cursor: pointer;
    transition: all 0.3s;
    user-select: none;
}

.chapter-header:hover {
    background: var(--gb-background2);
}

.chapter-icon {
    margin-right: 10px;
    font-size: 12px;
    color: #666;
    transition: transform 0.3s;
}

.chapter-title {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.chapter-count {
    font-size: 14px;
    color: #999;
}

.chapter-videos {
    background: #FFFFFF;
    border-top: 1px solid #E8E8E8;
}

.video-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #F0F0F0;
    cursor: pointer;
    transition: all 0.3s;
    user-select: none;
}

.video-item:last-child {
    border-bottom: none;
}

.video-item:hover {
    background: var(--gb-background2);
}

.video-item.video-active {
    background: var(--gb-background2);
    border-left: 3px solid var(--gb-background2);
    color: #fff;
}

.video-icon {
    margin-right: 12px;
    font-size: 12px;
    color: #999;
}

.video-item.video-active .video-icon {
    color: #fff;
}

.video-title {
    flex: 1;
    font-size: 14px;
    color: #666;
}

.video-item.video-active .video-title {
    color: #fff;
    font-weight: 500;
}

.video-duration {
    font-size: 12px;
    color: #999;
}

.video-item.video-active .video-duration {
    color: #fff;
}

.video-player {
    width: 100%;
    height: 100%;
    background: #F5F5F5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.video-placeholder {
    text-align: center;
    color: #999;
}

.placeholder-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
}

.placeholder-text {
    font-size: 16px;
}

.video-info {
    width: 100%;
    /*height: 100%;*/
    padding: 30px;
}

.video-info-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.video-info-duration {
    font-size: 16px;
    color: #666;
}

.video-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.video-player-wrapper {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.video-player-wrapper:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

.video-player-element {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    outline: none;
    display: block;
    position: relative;
}

.video-player-element::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    pointer-events: none;
}

.video-container .video-info {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border-left: 4px solid var(--gb-background2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.video-info-title {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.4;
}

.video-info-duration {
    font-size: 14px;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    gap: 6px;
}

.video-info-duration::before {
    content: '⏱';
    font-size: 16px;
}

.login-required,
.enrollment-required,
.permission-denied {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
}

.prompt-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.login-required .prompt-icon {
    color: #FF6B6B;
}

.enrollment-required .prompt-icon {
    color: #4ECDC4;
}

.permission-denied .prompt-icon {
    color: #95A5A6;
}

.prompt-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.prompt-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.prompt-button {
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.login-button {
    background: var(--gb-background2);
    color: #fff;
}

.login-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.enroll-button {
    background: var(--gb-background2);
    color: #fff;
}

.enroll-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.debug-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #fff;
    border: 2px solid #E8E8E8;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-width: 300px;
}

.debug-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #E8E8E8;
}

.debug-status {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.debug-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.debug-button {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    background: var(--gb-background2);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.debug-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    #left {
        width: 100%;
        margin-bottom: 20px;
    }

    #right {
        width: 100%;
        margin-left: 0;
    }

    .course-header {
        flex-direction: column;
        padding: 15px;
    }

    .course-cover {
        width: 100%;
        height: 180px;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .course-content {
        flex-direction: column;
        padding: 15px;
    }

    .course-left {
        flex: none;
        width: 100%;
        max-height: 400px;
        padding-right: 5px;
    }

    .course-left::-webkit-scrollbar {
        width: 6px;
    }

    .course-left::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 8px;
    }

    /*.course-left::-webkit-scrollbar-thumb {*/
    /*    background: linear-gradient(135deg, var(--gb-background2) 0%, #667eea 100%);*/
    /*    border-radius: 8px;*/
    /*    border: 2px solid #f1f1f1;*/
    /*}*/

    /*.course-left::-webkit-scrollbar-thumb:hover {*/
    /*    background: linear-gradient(135deg, #667eea 0%, var(--gb-background2) 100%);*/
    /*}*/

    .course-right {
        min-height: 300px;
    }

    .chapter-header {
        padding: 12px 15px;
    }

    .chapter-title {
        font-size: 15px;
    }

    .video-item {
        padding: 10px 15px;
    }

    .video-title {
        font-size: 13px;
    }

    .video-player {
        min-height: 300px;
    }

    .video-player-element {
        height: 300px;
    }

    .video-player-wrapper {
        border-radius: 10px;
    }

    .video-player-element {
        border-radius: 10px;
    }

    .video-player-element::before {
        border-radius: 10px;
    }

    .video-container .video-info {
        padding: 15px;
    }

    .video-info-title {
        font-size: 18px;
    }

    .video-info-duration {
        font-size: 13px;
    }

    .login-required,
    .enrollment-required,
    .permission-denied {
        padding: 30px 20px;
    }

    .prompt-icon {
        font-size: 48px;
        margin-bottom: 15px;
    }

    .prompt-title {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .prompt-text {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .prompt-button {
        padding: 10px 24px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .chapter-header {
        flex-wrap: wrap;
    }

    .chapter-count {
        width: 100%;
        margin-top: 5px;
    }

    .video-item {
        flex-wrap: wrap;
    }

    .video-duration {
        width: 100%;
        margin-top: 5px;
        margin-left: 24px;
    }

    .video-player-element {
        height: 250px;
    }

    .video-player-wrapper {
        border-radius: 8px;
    }

    .video-player-element {
        border-radius: 8px;
    }

    .video-player-element::before {
        border-radius: 8px;
    }

    .video-container .video-info {
        padding: 12px;
    }

    .video-info-title {
        font-size: 16px;
    }

    .video-info-duration {
        font-size: 12px;
    }

    .login-required,
    .enrollment-required,
    .permission-denied {
        padding: 20px 15px;
    }

    .prompt-icon {
        font-size: 40px;
        margin-bottom: 12px;
    }

    .prompt-title {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .prompt-text {
        font-size: 13px;
        margin-bottom: 15px;
    }

    .debug-panel {
        bottom: 10px;
        right: 10px;
        max-width: 250px;
        padding: 12px;
    }

    .debug-title {
        font-size: 14px;
    }

    .debug-status {
        font-size: 12px;
    }

    .debug-button {
        padding: 6px 12px;
        font-size: 12px;
    }
}



/*#right>ul {*/
/*    !*width: 700px;*!*/
/*    !*margin: 1rem auto;*!*/
/*    !*min-height: 350px;*!*/
/*    padding: 2rem 0;*/
/*}*/

/*#right>ul>li {*/
/*    width: 100%;*/
/*    height: 35px;*/
/*    line-height: 35px;*/
/*    list-style: none;*/
/*    background-image: url(/home/image/label.png);*/
/*    background-position-x: 0;*/
/*    background-position-y: 8px;*/
/*    background-repeat: no-repeat;*/
/*    background-size: 18px;*/
/*    border-bottom: 1px #dddddd dashed;*/
/*    padding-left: 30px;*/
/*}*/
