/*多玩公用头部*/

$headerBgColor:#232329;
.dw-common-header {
    position: relative;
    z-index: 99;
    /*上方栏目*/
    .tool-bar {
        position: relative;
        z-index: 999;
        @include webkitbox();
        height: px2rem(88);
        padding: 0 px2rem(25);
        background-color: $headerBgColor;
        -webkit-box-align: center;
        /*左侧多玩图标*/
        .dw-info {
            @include flex(1);
        }
        .dw-link {
            @include webkitbox;
            -webkit-box-align: center;
            height: px2rem(50);
            span {
                display: block;
                height: px2rem(50);
                padding: 0 px2rem(20);
                margin-left: px2rem(20);
                border-left: 1px solid #636367;
                font-size: $largeFontSize;
                line-height: px2rem(50);
                color: $highLightColor;
            }
        }
        .dw-icon {
            display: block;
            // @include flex(1)
            width: px2rem(170);
            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);
            background: #f7f7f7;
            font-size: $smallFontSize;
            line-height: px2rem(50);
            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);
        height: px2rem(30);
        background: url(../img/pc_icon.jpg) no-repeat;
        background-size: 100% 100%;
        margin-right: px2rem(15);
    }
    .tool-bar-wrap{
        height: 100%;
        @include webkitbox();
        -webkit-box-align: center;
        padding: 0 px2rem(25);
        margin-right: -px2rem(25);
    }
    .tool-bar-menu {
        position: relative;
        display: block;
        width: px2rem(34);
        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);
        }
        &::after {
            top: px2rem(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);
        height: px2rem(35);
        background: url(../img/user_default_icon.png) no-repeat center;
        background-size: 100% auto;
        margin-right: px2rem(40);
        transform: translateY(-1px)
    }
}


/*下方频道导航栏*/

.dw-common-nav {
    position: relative;
    height: px2rem(80);
    line-height: px2rem(76);
    border-bottom: $baseBorder;
    &.not-flex {
        padding: 0 px2rem(30);
        .dw-nav-list {
            .nav-list__item {
                @include flex(0);
                width: auto;
                margin-left: px2rem(45);
                font-size: $baseFontSize;
                &: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);
        transform: rotate(0deg);
    }
    50% {
        top: 0;
    }
    100% {
        transform: rotate(45deg);
        top: 0;
    }
}

@keyframes menu-before-open {
    0% {
        top: px2rem(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: 7px;
    }
}

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