﻿:root {
    /*菜单栏高度*/
    --header-bar-height: 60px;
    /*--菜单定位参数 */
    --nav-menu-top: 40px;
    --nav-menu-topfix: 20px;
    /*菜单链接项宽度*/
    --menu-item-width: 70px;
    /*菜单悬停移动层与顶部的距离*/
    --menu-holder-top: calc(var(--header-bar-height) - 40px);
    /*菜单登录、注册链接项宽度*/
    --sign-menu-item-width: 120px;
    /*购物车菜单宽和高*/
    --cart-menu-width: 320px;
    --cart-menu-height: 280px;
    /*购物车状态栏高度*/
    --menu-statebar-height: 52px;
    /*用户登录菜单宽高*/
    --sign-menu-width: 280px;
    --sign-menu-height: 300px;
    /*用户消息菜单宽高*/
    --message-menu-width: 320px;
    --message-menu-height: 280px;
    /*用户信息菜单宽高*/
    --user-menu-width: 300px;
    --user-menu-height: 380px;
    /*用户头像的宽高*/
    --avatar-size: calc(var(--header-bar-height) * 0.6);
    --avatar-hover-size: calc(var(--header-bar-height) * 1.2);
    /*用户头像的宽高(包含边框)*/
    --avatar-size-wb: calc(var(--avatar-size) + 4px);
    --avatar-hover-size-wb: calc(var(--avatar-hover-size) + 4px);
}
.animated {
    -webkit-animation-duration: .6s;
    animation-duration: .6s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

@keyframes slideInDown {
    0% {
        -webkit-transform: translate3d(0,-100%,0);
        transform: translate3d(0,-100%,0);
        visibility: visible
    }

    100% {
        -webkit-transform: translate3d(0,0,0);
        transform: translate3d(0,0,0)
    }
}
.slideInDown {
    -webkit-animation-name: slideInDown;
    animation-name: slideInDown
}
body {
    display: grid;
    grid-template-rows: 60px auto 198px;
}

.header-frame, .main-frame, .footer-frame {
    margin: 0 auto;
    max-width: 1480px;
}
.main-frame {
    height: 100%;
}

header, .header-container, .header-fixed {
    height: var(--header-bar-height);
    width: 100%;
    background-color: white;
}

.header-container {
    position: relative;
    -webkit-box-shadow: 0 0 12px rgba(0,0,0,.15);
    box-shadow: 0 0 12px rgba(0,0,0,.15);
    z-index: 999;
}

.header-fixed {
    position: fixed;
    left: 0;
    top: 0;
    padding: 0;
    -webkit-transition: top 300ms ease;
    -o-transition: top 300ms ease;
    transition: top 300ms ease;
    -webkit-box-shadow: 0 0 15px rgba(0,0,0,0.15);
    box-shadow: 0 0 15px rgba(0,0,0,0.15);
    z-index: 999;
}

.header-wrapper {
    height: 100%;
    max-width: 1480px;
    margin: 0 auto;
}

.logo {
    width: 160px;
    height: 58px;
    background: url(/res/common/dxperlogo32.png) left center no-repeat;
}

.header-menu, .user-panel, .menu-panel {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .header-menu a {
        color: #222;
    }
    .header-menu a:hover {
        color: var(--red-90);
    }
    .menu-panel > ul {
        position: relative;
        margin: 0;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        height: 100%;
    }

        .menu-panel > ul > li {
            margin: 0 10px;
            position: relative;
            -webkit-transition: all 300ms ease;
            -o-transition: all 300ms ease;
            transition: all 300ms ease;
        }

            .menu-panel > ul > li > a {
                position: relative;
                display: block;
                text-align: center;
                font-size: 16px;
                font-weight: 800;
                text-transform: capitalize;
                opacity: 1;
                transition: all 100ms ease
            }

.user-panel {
    color: dimgray;
}
.sign-link {
    display: flex;
    align-items: center;
    margin-left: 15px;
}
.sign-link span {
    padding: 0 5px;
    font-size: 15px;
}
    .sign-link:before {
        display: flex;
        content: '\e461';
        font-family: 'FontAwesome';
        font-size: 20px;
        font-weight: bold;
        border-radius: 50px;
        color: white;
        background-color: rgb(80,89,104);
        float: left;
        width: 32px;
        height: 32px;
        align-items: center;
        justify-content: center;
        margin-right: 5px;
    }
.menu-item:hover .menu-text {
    background-color: rgba(0,0,0,.04);
}

.menu-item:hover .avatar-img {
    z-index: 99999;
    transition: .2s;
    width: var(--avatar-hover-size);
    height: var(--avatar-hover-size);
    top: calc(var(--header-bar-height) - calc(var(--avatar-hover-size-wb) / 2));
    left: calc((var(--menu-item-width) - var(--avatar-hover-size-wb)) / 2);
    border: #fafafa solid 2px;
    box-shadow: none;
}
.avatar-warp,
.avatar-link {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
}
/*用户头像*/
.avatar-img {
    transition: .2s;
    position: absolute;
    width: var(--avatar-size);
    height: var(--avatar-size);
    top: calc((var(--header-bar-height) - var(--avatar-size-wb)) / 2);
    left: calc((var(--menu-item-width) - var(--avatar-size-wb)) / 2);
    border: #fafafa solid 2px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,.1);
}

.menu-text > a {
    color: #505968;
    font-size: 15px;
    padding: 10px;
    transition: .2s;
}
    .menu-text > a:hover {
        color: #ff4350;
    }
.user-panel .cart i,
.user-panel .messagebox i {
    font-size: 20px;
    font-family: 'FontAwesome';
    font-weight: 900;
    height: 100%;
    font-style: normal;
}
.user-panel .cart i:before {
    content: '\f07a';
    margin-right: 5px;
}
    .user-panel .messagebox i:before {
        content: '\f0e0';
    }
/*购物车和用户登录浮动面板*/
.cart-body, .guestpanel-body, .userpanel-body, .messagebox-body {
    display: flex;
    width: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
/*空内容提示样式*/
.empty-body .fas + div {
    padding: 10px 0;
}
/*购物车*/
.messagebox-body,
.cart-body {
    height: calc(var(--cart-menu-height) - var(--menu-statebar-height));
}

    .cart-body a,
    .guestpanel-body a,
    .messagebox-body a{
        color: var(--red-90);
        font-size: 14px;
    }

.cart-body .fas:before {
    content: '\f07a';
    font-size: 38px;
    color: var(--deep-40);
}

.menu-statebar {
    display: flex;
    position: absolute;
    bottom: 0;
    height: var(--menu-statebar-height);
    width: calc(100% - 30px);
    margin: 0 15px;
    padding: 5px;
    justify-content: space-between;
    align-items: center;
    border-top: #f3f6f8 solid 1px;
    box-sizing: border-box;
    font-size: 14px;
}

    .menu-statebar a {
        background: var(--red-90);
        font-size: 14px;
        color: white;
        padding: 7px 20px;
        border-radius: 5px;
    }
/*访客登陆*/
.guestpanel-body {
    height: calc(var(--cart-menu-height));
}
    .guestpanel-body .fas:before {
        content: '\f2bd';
        font-size: 52px;
        color: var(--deep-30);
    }
/*消息中心*/
.messagebox-body .fas:before {
    content: '\f658';
    font-size: 38px;
    color: var(--deep-40);
}
/*用户功能菜单*/
.user-aclist{
    padding: 35px 20px 10px 20px;
}
.user-aclist a {
    transition: .35s;
}
.user-tags {
    display: block;
    margin-top: 3px;
    padding: 10px;
    border-radius: 6px;
    transition: .4s;
}
.user-tags > div {
    text-align: center;
}
.tags-warp{
    display:flex;
    justify-content:center;
}
.user-nickname {
    margin-left: 22px;
    font-size: 18px;
    color: var(--deep-90);
}
    .user-nickname:hover {
        color: var(--red-90);
    }
 /*用户的职称头衔*/
.user-title {
    padding-top: 3px;
    font-size: 14px;
    cursor: default;
}
/*昵称后的讲师或会员信息*/
.level-type {
    padding: 3px 5px;
}
    .level-type:hover {
        background: var(--deep-20);
        border-radius: 3px;
    }
    .level-type:after {
        color: var(--red-90);
    }
    /*会员*/
    .level-type.lvip:after {
        content: '\f7e4';
    }
    /*讲师*/
    .level-type.lect:after {
        content: '\f46a';
    }
    /*会员同时也是讲师*/
    .level-type.lectlvip:after {
        content: '\f6df';
    }
/*学习信息链接块*/
.study-progress {
    display: block;
    border-radius: 6px;
    color: var(--deep-50);
    border: dashed 1px;
    border-color: var(--deep-30);
    padding: 8px 10px;
}
/*进度条背景*/
.progressbar-warp{
    padding:5px 0;
}
.progressbar-chunk,
.progressbar-back {
    height: 5px;
    border-radius: 5px;
    background: var(--deep-20);
    overflow: hidden;
}
.study-progress:hover {
    color: var(--deep-70);
    background: var(--deep-10);
}
.progressbar-chunk {
    background: var(--red-80);
    float:left;
}
/*学到章节*/
.progressbar-info,
.learning-info {
    font-size: 12px;
    color: var(--deep-40);
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
.progressbar-info{
    text-align: right;
}
/*用户下拉菜单快捷链接*/
.quick-links {
    margin-top: 14px;
}
.quick-links > li > a{
    padding: 10px 2px 10px 18px;
    color: var(--deep-60);
    display: block;
    border-radius: 6px;
    font-size: 16px;
}
    .quick-links > li > a:hover{
        color:var(--deep-80);
        background: var(--deep-20);
    }
    .quick-links > li > a:after,
    .quick-links > li > a:before {
        font-family: 'FontAwesome';
        padding-right: 14px;
    }
    .quick-links > li:not(li:nth-child(5)) > a:after {
        content: '\f054';
        float: right;
        font-size: 14px;
        padding-top: 5px;
    }
    /*我的课程*/
    .quick-links > li:nth-child(1) > a:before {
        content: '\f733';
    }
    /*我的收藏*/
    .quick-links > li:nth-child(2) > a:before {
        content: '\f004';
    }
    /*学习笔记*/
    .quick-links > li:nth-child(3) > a:before {
        content: '\f52d';
    }
    /*分割线*/
    .quick-links > li:nth-child(4) {
        height: 1px;
        font-size: 0;
        background: linear-gradient(to right,rgba(0,0,0,0) 0%, rgb(239,234,246) 10%, rgb(239,234,246) 90%, rgba(0,0,0,0) 100%);
        margin: 8px 6px;
    }
    /*退出登录*/
    .quick-links > li:nth-child(5) > a:before {
        content: '\f08b';
    }


/*页脚*/
footer {
    height: 182px;
}
.footer-nav {
    display: flex;
    padding: 50px 0 20px;
}

    .footer-nav li {
        padding: 0 15px;
    }

        .footer-nav li a {
            color: #000;
            font-size: 18px;
        }

            .footer-nav li a:hover {
                color: #c32222;
                font-size: 18px;
                border-bottom: #c32222 solid 2px;
            }

.copyright {
    font-family: "univia";
    font-weight: 400;
    padding-left: 10px;
    font-size: 15px;
    color: #777;
    cursor: default;
}
/* 弹出框遮罩层 */
#popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .75);
}

/* 弹出框 */
#popup-container, #popup-borderbox {
    display: none;
    opacity: 0;
    position: fixed;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 600px;
    margin-left: -400px;
    margin-top: -300px;
    box-sizing: border-box;
}
/*带圆边和阴影的弹出框*/
#popup-borderbox {
    overflow: hidden;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: rgba(0, 0, 0, 0.5) 0px 2px 10px 0px;
}
/*栏项目*/
.swrap, .icol-wrapper {
    background-color: white;
    box-shadow: 0 0 10px 0 rgba(0,0,0,0.05);
    border-radius: 8px;
}
.icol-wrapper {
    padding: 20px;
}
.icol-header{
    display: flex;
    justify-content: space-between;
    position: relative;
    height: 32px;
}
    .icol-header:after {
        content: '';
        height: 1px;
        background: linear-gradient(to right,rgb(239,234,246) 25%, rgba(0,0,0,0) 100%);
        position: absolute;
        width: 60%;
        left: -6px;
        top: 30px;
    }
.icol-title {
    display: flex;
    color: #243042;
    font-size: 16px;
    font-weight: bold;
}
    .icol-title:before {
        content: '';
        width: 4px;
        display: block;
        margin: 2px 6px 10px 0;
        border-radius: 2px;
        background: linear-gradient(to bottom,#b7bbfd,#4fa3ff);
    }
.icol-more > a{
    font-size: 13px;
    color: rgba(0,0,0,0.35);
}
.icol-more > a:hover {
    color: var(--red-90);
}
    .icol-more > a:after {
        content: '\f105';
        font-family: 'FontAwesome';
        margin-left: 3px;
    }
.icol-content{
    padding-top: 5px;
}
.icol-content > ul {
    padding: 0;
    margin: 0;
    list-style: none;
}
    .icol-content > ul > li {
        display: grid;
        grid-template-columns: 12px auto 40px;
        align-items: center;
        margin-top: 12px;
    }
    .icol-content > ul > li:before {
        content: '\f111';
        font-family: 'FontAwesome';
        font-size: 5px;
        font-weight: bold;
        color: #bcbcbc;
    }
    .icol-content > ul > li > a {
        font-size: 14px;
        color: #5d5d5d;
    }
        .icol-content > ul > li > a:hover {
            color: var(--red-90);
        }
        .icol-content > ul > li > i {
            font-size: 12px;
            color: #5d5d5d;
            font-style: normal;
            display: flex;
            align-items: flex-end;
            color: rgba(0,0,0,0.35);
        }
            .icol-content > ul > li > i:after {
                content: '阅';
                margin-left: 1px;
                font-size: 13px;
            }
