/**** 头部通用样式 ****/

@mixin arrowLineTransition {
  -webkit-transition: background .3s cubic-bezier(.645, .045, .355, 1), top .3s cubic-bezier(.645, .045, .355, 1), -webkit-transform .3s cubic-bezier(.645, .045, .355, 1);
  transition: background .3s cubic-bezier(.645, .045, .355, 1), top .3s cubic-bezier(.645, .045, .355, 1), -webkit-transform .3s cubic-bezier(.645, .045, .355, 1);
  transition: background .3s cubic-bezier(.645, .045, .355, 1), transform .3s cubic-bezier(.645, .045, .355, 1), top .3s cubic-bezier(.645, .045, .355, 1);
  transition: background .3s cubic-bezier(.645, .045, .355, 1), transform .3s cubic-bezier(.645, .045, .355, 1), top .3s cubic-bezier(.645, .045, .355, 1), -webkit-transform .3s cubic-bezier(.645, .045, .355, 1);
}

@mixin arrowCommon {
    position: absolute;
    width: 6px;
    height: 1.5px;
    background: rgba(0, 0, 0, 0.65) \9;
    background-image: none \9;
    border-radius: 2px;
    @include arrowLineTransition();
    content: '';
    background: #fff;
}

.large-sidebar {
  .bg-slider {
    width: 220px !important;
  }
}
.page-sidebar-wrapper.large-sidebar {
  .list-1st-a .text{
    width: 135px;
    max-width: 135px;
  }
  .list-2sd-li {
    .list-2sd-li-title {
      width: 180px;
    }
  }
  .list-2sd-li>span {
    max-width: 180px;
  }
}
.page-sidebar-wrapper.small-sidebar {
  .list-1st-a .text{
      width: 100px;
  }
  .list-2sd-li {
    .list-2sd-li-title {
      width: 140px;
    }
  }
}

.page-sidebar-wrapper {

    position: fixed;
    background-color: $C2;
    height: 100%;
    left: 0px;
    top: 40px;
    float: left;
    z-index: 99;
    font-size: 14px;
    padding-top: 65px;
    padding-bottom: 60px;
    box-sizing: border-box;

    .list-outer-wrapper {
        height: 100%;
        overflow-y: auto;
        overflow-x: hidden;
        position: relative;
        z-index: 98;
    }

    .list-1st-ul {
        position: relative;
    }

    .list-1st-li {
        width: 100%;
        line-height: 44px;
        background: rgba(black, 0);

        .list-1st-a {
            position: relative;
            z-index: 9;

            &:hover {
                color: $IE8Color095;
                color: rgba(white, 1);
                @include transition((color .3s $Linear, background-color .1s $Linear .2s));
            }
        }
    }

    .list-1st-a {
        display: block;
        width: 100%;
        height: 44px;
        cursor: pointer;
        color: $IE8Color06;
        color: rgba(white, 0.6);
    }

    .sd-icon-before {
        display: block;
        float: left;
        width: 18px;
        height: 18px;
        margin-top: 12px;
        margin-left: 16px;
        font-size: 18px;
    }

    .text {
        display: block;
        float: left;
        padding-left: 5px;
        font-family: $font-famliy;
        overflow: hidden;
        white-space: nowrap;
        // text-overflow: ellipsis;
        max-width: 117px;
        width: 117px;
    }

    .list-2sd-ul {
        background: #00508A\9;
        background: rgba(black, 0.1);
    }

    .list-2sd-li {
        display: block;
        height: 34px;
        line-height: 34px;
        text-indent: 70px;
        font-family: $font-famliy;
        color: $IE8Color06;
        color: rgba(white, 0.6);
        position: relative;
        z-index: 8;
        @include transition((color .3s $Linear));

        &:hover {
            color: $IE8Color095;
            color: rgba(white, 1);
            @include transition((color .3s $Linear));
        }

        &-title {
            white-space: nowrap;
        }
    }

    //add this style to fix chrome53 z-index:-1
    .bg-slider-region {
        position: absolute;
        z-index: 6;
    }

    .bg-slider {
       width: 180px;
        background-color: $C1;
        position: absolute;
        visibility: visible;
        opacity: 1;
        left: 0;
        z-index: -1;

        top: 0;
        height: 44px;

        -webkit-transform: translate3d(0, 0, 0);
        -moz-transform: translate3d(0, 0, 0);
        -ms-transform: translate3d(0, 0, 0);
        -o-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);

        // -webkit-transition:top 3s $Ease,height 3s $Ease ,-webkit-transform 3s $Ease;
        // -moz-transition:top 3s $Ease,height 3s $Ease ,-moz-transform 3s $Ease;
        // -ms-transition:top 3s $Ease,height 3s $Ease ,-ms-transform 3s $Ease;
        // -o-transition:top 3s $Ease,height 3s $Ease ,-ms-transform 3s $Ease;
        // transition:top 3s $Ease,height 3s $Ease ,transform 3s $Ease;

        -webkit-transition: top .3s $Ease, height .3s $Ease, -webkit-transform .3s $Ease;
        -moz-transition: top .3s $Ease, height .3s $Ease, -moz-transform .3s $Ease;
        -ms-transition: top .3s $Ease, height .3s $Ease, -ms-transform .3s $Ease;
        -o-transition: top .3s $Ease, height .3s $Ease, -ms-transform .3s $Ease;
        transition: top .3s $Ease, height .3s $Ease, transform .3s $Ease;
    }

    .silder-hidden {
        opacity: 0;
        -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
        filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0);
    }

    .bg-highlight {
        background-color: rgba(black, 0.2);
        color: $IE8Color095;
        color: rgba(white, 1);

        .sd-icon-after {
            opacity: 1 !important;
        }

        // @include transition((background-color 0s linear 0s!important))
    }

    .red-remind {
        position: relative;
        top: -20px;
        left: 14px;
        width: 7px;
        height: 7px;
        background: #fe5042;
        overflow: hidden;
        color: #fff;
        -webkit-border-radius: 7px;
        -moz-border-radius: 7px;
        border-radius: 7px;
        display: none;
    }

    .new-tip {
        background: url(//stnew02.beisen.com/ux/p-italent-framework/release/app/images/components/italent-sidebar/svg/new-2.png) no-repeat;
        position: relative;
        top: -25px;
        left: 6px;
        width: 25px;
        height: 18px;
        display: none;
    }

    .mult-new-tip {
        position: absolute;
        left: 40px;
        top: 0;
    }

    .sd-new-message {
        .red-remind {
            display: block !important;
        }
    }

    .sd-update-tip {
        .new-tip {
            display: block !important;
        }
    }

    .sd-icon-after {
        width: 10px;
        height: 10px;
        float: right;
        margin-top: 16px;
        background-image: none !important;
        margin-right: 16px;
        opacity: .45;
        margin-top: 21px !important;
        transform: rotateZ(0deg) !important;
        -webkit-transition: all .3s;
        transition: all .3s;

        &::before {
            @include arrowCommon();

            transform: rotate(-45deg) translateX(2px);
            background: #fff;
        }

        &::after {
            @include arrowCommon();

            transform: rotate(45deg) translateX(-2px);
            background: #fff
        }
    }

    .open {
        .sd-icon-after {
            background-image: none !important;
            margin-right: 16px;

            -webkit-transition: all .3s;
            transition: all .3s;
            margin-top: 20px !important;
            transform: none !important;

            &::before {
                @include arrowCommon();
                transform: rotate(45deg) translateX(2px);
                background: #fff;
            }

            &::after {
                @include arrowCommon();
                transform: rotate(-45deg) translateX(-2px);
                background: #fff;
            }
        }
    }
}

//宽屏样式
.page-spread-layout {
    width: 180px;
    @include transition((width .3s $Linear));
    .has-child {
      .text {
        max-width: 107px;
        width: 107px;
      }
    }
    .has-sub-list.open {
      .list-1st-a {
          background-color: #00508A\9;
          background-color: rgba(black, 0.1);
          color:#fff !important;
          @include transition((background-color 0s $Ease, color .3s $Ease !important));
      }
    }
    .text {
        text-indent: 0px;
        opacity: 1;
        @include transition((text-indent .3s $Linear, opacity .3s $Linear));

        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
    }

    .list-2sd-li {
        overflow: hidden;
        text-indent: 20px;
        line-height: 0px;
        height: 0;
        opacity: 0;
        & > span {
          font-size: 13px;
          max-width: 140px;
          width: 140px;
          overflow: hidden;
          text-overflow: ellipsis;
          display: inline-block;
        }
        span {

          font-size: 13px;

        }
        @include transition((height .2s $Linear, line-height .2s $Linear, text-indent .2s $Linear, opacity .2s $Linear, color .2s $Linear));
    }

    .has-sub-list.open {
        .list-1st-a {
            background-color: #00508A\9;
            // background-color: rgba(black, 0.1);
            // color:#fff !important;
            &:hover {
              background-color: rgba(0, 0, 0, 0.1) !important;
            }
            @include transition((background-color 0s $Ease, color .3s $Ease !important));
        }

        .list-2sd-li {
            text-indent: 20px;
            line-height: 34px;
            height: 34px;
            opacity: 1;
        }

        .ani-item-0 {
            @include transition((text-indent .2s $Ease .08s, line-height .2s $Ease .08s, height .2s $Ease, color .2s $Ease, opacity .1s $Ease .08s))
        }

        .ani-item-1 {
            @include transition((text-indent .2s $Ease .11s, line-height .2s $Ease .11s, height .2s $Ease, color .2s $Ease, opacity .1s $Ease .11s))
        }

        .ani-item-2 {
            @include transition((text-indent .2s $Ease .14s, line-height .2s $Ease .14s, height .2s $Ease, color .2s $Ease, opacity .1s $Ease .14s))
        }

        .ani-item-3 {
            @include transition((text-indent .2s $Ease .17s, line-height .2s $Ease .17s, height .2s $Ease, color .2s $Ease, opacity .1s $Ease .17s))
        }

        .ani-item-4 {
            @include transition((text-indent .2s $Ease .20s, line-height .2s $Ease .20s, height .2s $Ease, color .2s $Ease, opacity .1s $Ease .20s))
        }

        .ani-item-5 {
            @include transition((text-indent .2s $Ease .23s, line-height .2s $Ease .23s, height .2s $Ease, color .2s $Ease, opacity .1s $Ease .23s))
        }

        .ani-item-6 {
            @include transition((text-indent .2s $Ease .26s, line-height .2s $Ease .26s, height .2s $Ease, color .2s $Ease, opacity .1s $Ease .26s))
        }

        .ani-item-7 {
            @include transition((text-indent .2s $Ease .29s, line-height .2s $Ease .29s, height .2s $Ease, color .2s $Ease, opacity .1s $Ease .29s))
        }

        .ani-item-8 {
            @include transition((text-indent .2s $Ease .32s, line-height .2s $Ease .32s, height .2s $Ease, color .2s $Ease, opacity .1s $Ease .32s))
        }

        .ani-item-9 {
            @include transition((text-indent .2s $Ease .35s, line-height .2s $Ease .35s, height .2s $Ease, color .2s $Ease, opacity .1s $Ease .35s))
        }

        .ani-item-10 {
            @include transition((text-indent .2s $Ease .38s, line-height .2s $Ease .38s, height .2s $Ease, color .2s $Ease, opacity .1s $Ease .38s))
        }

        .ani-item-11 {
            @include transition((text-indent .2s $Ease .41s, line-height .2s $Ease .41s, height .2s $Ease, color .2s $Ease, opacity .1s $Ease .41s))
        }

        .ani-item-12 {
            @include transition((text-indent .2s $Ease .44s, line-height .2s $Ease .44s, height .2s $Ease, color .2s $Ease, opacity .1s $Ease .44s))
        }

        .ani-item-13 {
            @include transition((text-indent .2s $Ease .47s, line-height .2s $Ease .47s, height .2s $Ease, color .2s $Ease, opacity .1s $Ease .47s))
        }

        .ani-item-14 {
            @include transition((text-indent .2s $Ease .50s, line-height .2s $Ease .50s, height .2s $Ease, color .2s $Ease, opacity .1s $Ease .50s))
        }

        .ani-item-15 {
            @include transition((text-indent .2s $Ease .53s, line-height .2s $Ease .53s, height .2s $Ease, color .2s $Ease, opacity .1s $Ease .53s))
        }

        .ani-item-16 {
            @include transition((text-indent .2s $Ease .56s, line-height .2s $Ease .56s, height .2s $Ease, color .2s $Ease, opacity .1s $Ease .56s))
        }

        .ani-item-17 {
            @include transition((text-indent .2s $Ease .59s, line-height .2s $Ease .59s, height .2s $Ease, color .2s $Ease, opacity .1s $Ease .59s))
        }

        .ani-item-18 {
            @include transition((text-indent .2s $Ease .62s, line-height .2s $Ease .62s, height .2s $Ease, color .2s $Ease, opacity .1s $Ease .62s))
        }

        .ani-item-19 {
            @include transition((text-indent .2s $Ease .65s, line-height .2s $Ease .65s, height .2s $Ease, color .2s $Ease, opacity .1s $Ease .65s))
        }
    }
    .tucao-service-spread-layout {
        // display: inline-block;
        opacity: 1;
        z-index: 103;
        bottom: 40px !important;
        @include transition((opacity .3s $Linear));
    }
    .tucao-service-norrow-layout {
        // display: none;
        opacity: 0;
        @include transition((opacity .3s $Linear));
    }
}
// 宽屏样式结束
//窄屏样式
.page-norrow-layout {
    width: 50px;
    @include transition((width .3s $Linear));

    .text {
        text-indent: 30px;
        opacity: 0;
        @include transition((text-indent .3s $Linear, opacity .3s $Linear));
    }

    .list-2sd-li {
        display: none;
    }

    .has-sub-list .bg-highlight.list-1st-a {
        &:hover {
            background-color: rgba(0,0,0, 0.1) !important;
        }

        background-color: rgba(0,0,0, 0.2) !important;
       // @include transition((background-color .3s $Linear .3s));
    }

    .list-1st-li .bg-highlight {
        background-color: rgba(0,0,0, 0.2);
       // @include transition((background-color .1s $Linear .3s));
    }
    .tucao-service-norrow-layout {
        // display: inline-block;
        opacity: 1;
        @include arrowLineTransition();
    }
    .tucao-service-spread-layout {
        opacity: 0;
        bottom: -40px !important;
        @include arrowLineTransition();
    }
}
.list-spread .shadow-bg {
  background-color: rgba(black, 0.2);
}
.slimScrollDiv:hover {
  .slimScrollBar {
    visibility: visible !important;
  }
}
.page-sidebar-wrapper {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    zoom: 1;
    &:hover {
      .slimScrollBar {
        visibility: visible !important;
      }
    }

    .slimScrollBar {
        width: 6px !important;
        visibility: hidden;
        @include transition((width .2s $Linear));
    }

    .slimScrollBar:hover {

        width: 10px !important;
        @include transition((width .2s $Linear));
        right: 3px !important;
    }

    .slimScrollRail {
        @include transition((width .2s $Linear));
    }
}

.page-sidebar-wrapper {
    .shadow-node-top {
        height: 5px;
        position: absolute;
        top: 50px;
        width: 100%;
        z-index: 31;
    }

    .shadow-node-bottom {
        height: 36px;
        z-index: 100;
        background-color: #004f9e;
        width: 100%;
        position: absolute;
    }

    .bottom-shadow {
        box-shadow: 0 -2px 4px 0px rgba(0, 0, 0, 0.08);
        -webkit-box-shadow: 0px -2px 4px 0px rgba(0, 0, 0, 0.08);
        -moz-box-shadow: 0 -2px 4px 0px rgba(0, 0, 0, 0.08);
        border-bottom: 1px solid #004170 \0;
    }

    .top-shadow {
        box-shadow: 0 2px 4px 0px rgba(0, 0, 0, 0.08);
        -webkit-box-shadow: 0 2px 4px 0px rgba(0, 0, 0, 0.08);
        -moz-box-shadow: 0 2px 4px 0px rgba(0, 0, 0, 0.08);
        border-top: 1px solid #004170\0;
    }
}

.list-1st-a:hover {
    .sd-icon-after {
        opacity: 1;
    }

    .open .sd-icon-after {
        opacity: 1;
    }
}
.page-sidebar-wrapper {
    .tucao-service-container {
        background: #1D86F0;
        box-shadow: 0 -2px 8px 0 rgba(0,0,0,0.03);
        height: 36px;
        line-height: 36px;
        width: 100%;
        bottom: 0px;
        position: absolute;
        .want-tucao, .looking-for-service{
            width: 50%;
            @include transition((width .3s $Linear));
            font-size: 12px;
            color: #FFFFFF;
            float: left;
            text-align: center;
            line-height: 36px;
            cursor: pointer;
        }
        .looking-for-service{
            width: 49%;
            @include transition((width .3s $Linear));
        }
        .tucao-text, .service-text{
            font-size: 12px;
            color: #FFFFFF;
            line-height: 36px;
            text-align: center;
            font-weight: 600;
        }
        .icon {
            display:inline-block;
            font-size: 15px;
            margin-right: 5px;
            vertical-align: -2px;
        }
        .border{
            height: 12px;
            width: 1px;
            background: #fff;
            display: inline-block;
            float: left;
            margin-top: 12px;
        }
        .want-tucao:hover, .looking-for-service:hover{
            background: rgba(0,0,0,0.10);
        }
        .onlyone {
            width: 100%;
        }
        .tucao-service-list {
            width: 150px;
            @include transition((width .3s $Linear));
            position: absolute;
            bottom: 0px;
            left: 50px;
            background: #1D86F0;
            font-size: 12px;
            color: #FFFFFF;
            // margin-left: 2px;
            display: none;
            cursor: pointer;
        }
        .tucao-service-item {
            width: 150px;
            @include transition((width .3s $Linear));
            height: 36px;
            text-indent: 16px;
            line-height: 36px;
        }
        .norrow-icon {
            font-size: 18px;
            margin-top: 9px;
            color: #fff;
            vertical-align: -2px;
        }
        .norrow-border {
            width: 1px;
            height: 72px;
            background: #fff;
            position: fixed;
            bottom: 40px;
            left: 50px;
            z-index: 11;
        }
    }
    .tucao-service-norrow-layout:hover {
        background: rgb(24, 121, 219);
        .tucao-service-list {
            display: inline-block;
        }
    }
    .tucao-service-norrow-layout {
        cursor: pointer;
        text-align: center;
        position: relative;
        z-index: 101;
        .tucao-service-item:hover {
            opacity: 1;
            @include transition((opacity .3s $Linear));
            background:rgba(0,0,0,0.10);
        }
        .tucao-service-item {
            text-align: left;
            font-weight: 600;
        }
    }

}
