/*多玩公用头部*/

$headerBgColor:#232329;
.dw-common-header {
    position: relative;
    z-index: 10999;
    /*上方栏目*/
    .tool-bar {
        position: relative;
        z-index: 10999;
        @include webkitbox();
        height: px2rem(88/1.6);
        padding: 0 px2rem(25/1.6);
        background-color: $headerBgColor;
        -webkit-box-align: center;
        /*左侧多玩图标*/
        .dw-info {
            @include flex(1);
        }
        .dw-link {
            @include webkitbox;
            -webkit-box-align: center;
            height: px2rem(50/1.6);
            span {
                display: block;
                height: px2rem(50/1.6);
                padding: 0 px2rem(20/1.6);
                margin-left: px2rem(20/1.6);
                border-left: 1px solid #636367;
                font-size: $largeFontSize * 2;
                line-height: px2rem(50/1.6);
                color: $highLightColor;
            }
        }
        .dw-icon {
            display: block;
            // @include flex(1)
            width: px2rem(170/1.6);
            height: 100%;
            background: url(../img/dw_icon.png) no-repeat;
            background-size: auto 100%;
        }
    }
    .menu-detail {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: #f7f7f7;
        z-index: 99;
        display: none;
        transition: transform .5s ease;
        h4 {
            padding-left: px2rem(25/1.6);
            background: #f7f7f7;
            font-size: $smallFontSize * 2;
            line-height: px2rem(50/1.6);
            color: $lightFontColor;
        }
        .common-channel-list {
            background-color: #fff;
        }
    }
    .header-shade {
        position: fixed;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, .35);
        z-index: 66;
        display: none;
    }
}


/*右侧工具栏*/

.toolbar-menu-wrap {
    @include flex(1);
    @include webkitbox();
    -webkit-box-pack: end;
    -webkit-box-align: center;
    height: 100%;
    .pc-icon {
        display: block;
        width: px2rem(34/1.6);
        height: px2rem(30/1.6);
        background: url(../img/pc_icon.jpg) no-repeat;
        background-size: 100% 100%;
        margin-right: px2rem(15/1.6);
    }
    .tool-bar-wrap {
        height: 100%;
        @include webkitbox();
        -webkit-box-align: center;
        padding: 0 px2rem(25/1.6);
        margin-right: -px2rem(25/1.6);
    }
    .tool-bar-menu {
        position: relative;
        display: block;
        width: px2rem(34/1.6);
        height: 2px;
        background-color: $highLightColor;
        transition: all .5s;
        &.open {
            background: transparent;
        }
        &::before,
        &::after {
            content: '';
            position: absolute;
            left: 0;
            right: 0;
            height: 2px;
            background: $highLightColor;
        }
        &::before {
            top: -px2rem(14/1.6);
        }
        &::after {
            top: px2rem(6/1.6);
        }
    }
    .close::after {
        animation: menu-after-close .5s forwards;
    }
    .close::before {
        animation: menu-before-close .5s forwards;
    }
    .open::after {
        animation: menu-after-open .5s forwards;
    }
    .open::before {
        animation: menu-before-open .5s forwards;
    }
    .user-icon {
        display: block;
        width: px2rem(35/1.6);
        height: px2rem(35/1.6);
        background: url(../img/user_default_icon.png) no-repeat center;
        background-size: 100% auto;
        margin-right: px2rem(40/1.6);
        transform: translateY(-2px)
    }
}


/*下方频道导航栏*/

.dw-common-nav {
    position: relative;
    height: px2rem(80/1.6);
    line-height: px2rem(76/1.6);
    border-bottom: $baseBorder;
    &.not-flex {
        padding: 0 px2rem(30/1.6);
        .dw-nav-list {
            .nav-list__item {
                @include flex(0);
                width: auto;
                margin-left: px2rem(45/1.6);
                font-size: $baseFontSize * 2;
                &:first-child {
                    margin-left: 0;
                }
            }
        }
    }
    .dw-nav-list {
        @include webkitbox();
        height: 100%;
        text-align: center;
    }
    .nav-list__item {
        @include flex(1);
        background: #fff;
        a {
            display: inline-block;
            height: 100%;
        }
        &.active a {
            color: #e54141;
            border-bottom: 2px solid #e54141;
        }
        //找游戏导航
        &.current a {
            color: #e54141;
        }
    }
}

@keyframes menu-after-open {
    0% {
        top: -px2rem(14/1.6);
        transform: rotate(0deg);
    }
    50% {
        top: 0;
    }
    100% {
        transform: rotate(45deg);
        top: 0;
    }
}

@keyframes menu-before-open {
    0% {
        top: px2rem(6/1.6);
        transform: rotate(0);
    }
    50% {
        top: 0;
    }
    100% {
        transform: rotate(-45deg);
        top: 0;
    }
}

@keyframes menu-after-close {
    0% {
        top: 0;
        transform: rotate(45deg);
    }
    50% {
        top: 0;
    }
    100% {
        transform: rotate(0deg);
        top: 14px;
    }
}

@keyframes menu-before-close {
    0% {
        top: 0;
        transform: rotate(-45deg);
    }
    50% {
        top: 0;
    }
    100% {
        transform: rotate(0deg);
        top: -14px;
    }
}

@keyframes menu-after-closex3 {
    0% {
        top: 0;
        transform: rotate(45deg);
    }
    50% {
        top: 0;
    }
    100% {
        transform: rotate(0deg);
        top: 21px;
    }
}

@keyframes menu-before-closex3 {
    0% {
        top: 0;
        transform: rotate(-45deg);
    }
    50% {
        top: 0;
    }
    100% {
        transform: rotate(0deg);
        top: -21px;
    }
}

@keyframes menu-after-closex1 {
    0% {
        top: 0;
        transform: rotate(45deg);
    }
    50% {
        top: 0;
    }
    100% {
        transform: rotate(0deg);
        top: 7px;
    }
}

@keyframes menu-before-closex1 {
    0% {
        top: 0;
        transform: rotate(-45deg);
    }
    50% {
        top: 0;
    }
    100% {
        transform: rotate(0deg);
        top: -7px;
    }
}


/*公用频道列表*/

.common-channel-list {
    font-size: 0;
    padding: px2rem(6/1.6) 0;
    overflow: hidden;
    .channel-list__item {
        display: inline-block;
        position: relative;
        width: 25%;
        height: px2rem(66/1.6);
        font-size: $baseFontSize * 2;
        line-height: px2rem(66/1.6);
        text-align: center;
        &:before {
            content: '';
            position: absolute;
            left: -2px;
            top: 50%;
            width: 2px;
            height: px2rem(30/1.6);
            transform: translateY(-px2rem(15/1.6));
            background: #e9e9e9;
        }
        a {
            display: block;
        }
    }
}

html[data-dpr="1"] {
    .dw-link span {
        font-size: $largeFontSize !important;
    }
    .menu-detail h4 {
        font-size: $smallFontSize !important;
    }
    .nav-list__item {
        font-size: $baseFontSize !important;
    }
    .channel-list__item {
        font-size: $baseFontSize !important;
    }
    .tool-bar-menu {
        height: 1px !important;
        &:before,
        &:after {
            height: 1px !important;
        }
        &.close::after {
            animation: menu-after-closex1 .5s forwards !important;
        }
        &.close::before {
            animation: menu-before-closex1 .5s forwards !important;
        }
    }
}

html[data-dpr="3"] {
    .dw-link span {
        font-size: $largeFontSize * 3 !important;
    }
    .menu-detail h4 {
        font-size: $smallFontSize * 3 !important;
    }
    .nav-list__item {
        font-size: $baseFontSize * 3 !important;
    }
    .channel-list__item {
        font-size: $baseFontSize * 3 !important;
    }
    .tool-bar-menu {
        height: 3px !important;
        &:before,
        &:after {
            height: 3px !important;
        }
        &.close::after {
            animation: menu-after-closex3 .5s forwards !important;
        }
        &.close::before {
            animation: menu-before-closex3 .5s forwards !important;
        }
    }
}

.video-list-info{
    padding: px2rem(20);
}