@charset "utf-8";

.iTalent-header {
    position: fixed;
    top: 0;
    width: 100%;
    min-width: 980px;
    z-index: 1200;
    height: 40px;
    background-color: #fff;
    border-bottom: 1px solid $M7;
    font-family: $font-family-H;

    .header-out-wrapper {
        height: inherit;
    }

    .header-left {
        float: left;
        width: 450px;
        height: 100%;
    }

    .header-right {
        float: right;
        height: 100%;

        .user-info-region {}

        .btns-group {
            display: block;
            float: right;
        }

        .header-webim-region {
            float: right;
            height: inherit;
        }
    }

    .search-icon-box {
        width: 100%;
        height: 100%;
    }

    .opr-btns {
        float: right;
        width: 40px;
        height: 40px;
        border-radius: 2px !important;
        position: relative;
        background-color: $M6;
        @include transition((background-color 0.2s $Ease));

        .btn-tips {
            display: none; // min-width: 44px;
            position: absolute;
            white-space: nowrap;
            padding: 0 10px;
            height: 30px;
            background: #3e4e59;
            font-size: 12px;
            color: #ffffff;
            line-height: 30px;
            border-radius: 2px;
            z-index: 1200;
            left: 50%;
            transform: translateX(-50%);

            .entry-trangle-top {
                top: -5px;
                left: 50%;
                transform: translateX(-50%);
                width: 0px;
                height: 0px;
                position: absolute;
                border-left: 5px solid transparent;
                border-right: 5px solid transparent;
                border-bottom: 5px solid #3e4e59;
            }
        }

        &:hover {
            @include transition((background-color 0.3s $Ease));

            .common-link {
                color: $C1;
                @include transition((color 0.3s $Ease));
            }

            .btn-tips {
                display: block;
            }

            .opr-btns-select {
                .btn-tips {
                    display: none;
                }
            }
        }
    }

    .common-link {
        display: block;
        width: 100%;
        height: 100%;
        font-size: 18px;
        color: $M2;
        @include transition((color 0.3s $Ease));
        text-align: center;
        line-height: 40px !important;
    }

    .new-message {
        position: absolute;
        display: block;
        min-width: 8px;
        max-width: 22px;
        padding: 0 5px;
        border-radius: 18px;
        background: #fe5042;
        top: 2px;
        right: 0px;
        line-height: 14px;
        color: #fff;
        font: 12px/18px arial;
        @include AniQuote((newMessageCome 1s $Spring forwards));
    }

    //按钮选中样式
    .opr-btns-select {
        background-color: $M5;
        @include transition((background-color 0.3s $Ease));

        .common-link {
            color: $C1;
            @include transition((color 0.3s $Ease));
        }

        &:hover {
            .tips {
                display: none;
            }
        }
    }

    .list-wrapper {
        width: 340px;
        height: auto;
        max-height: 612px;
        background-color: #fff;
        position: absolute;
        z-index: 1200;
        top: 43px;
        right: 10px;
        overflow: hidden;
        border-radius: 3px; //开启硬件加速
        -webkit-transform: translate3d(0, 0, 0) scale(0);
        -moz-transform: translate3d(0, 0, 0) scale(0); //关闭ie9的scale。因为ie9支持scale但不支持keyframe
        // -ms-transform: translate3d(0, 0, 0) scale(0);
        -o-transform: translate3d(0, 0, 0) scale(0);
        transform: translate3d(0, 0, 0) scale(0); //消除3D变换中
        -webkit-backface-visibility: hidden;
        -moz-backface-visibility: hidden;
        -ms-backface-visibility: hidden;
        -o-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-perspective: 1000;
        -moz-perspective: 1000;
        -ms-perspective: 1000;
        -o-perspective: 1000;
        perspective: 1000;
        -webkit-transform-origin: top right;
        -moz-transform-origin: top right;
        -ms-transform-origin: top right;
        -o-transform-origin: top right;
        transform-origin: top right;
        overflow: hidden\9;
        border: 1px solid $M4;
        display: none\9;

        /**IE8\9\10**/
        .title {
            height: 34px;
            background-color: $C2;
            color: #ffffff;
            font-size: 14px;
            text-align: center;
            line-height: 34px;
        }

        .view-all {
            height: 36px;

            a {
                display: block;
                float: right;
                line-height: 36px;
                font-size: 12px;
                margin-right: 15px;
                color: $C2;
            }
        }
    }

    .content-visible {
        @include opacity(0);
        @include transition((opacity 0.25s $Ease));
    }

    .list-wrapper.list-open {
        box-shadow: 0 0 8px 0 rgba(0,0,0,0.08);
        @include transition((box-shadow 0.3s linear 0.4s));
        @include AniQuote((popShow 0.15s linear forwards));
        border: 0 !important;
        .content-visible {
            @include opacity(1);
            @include transition((opacity 0.35s $Ease));
        }

        display: block\9;
        /**IE8\9\10**/
    }

    .list-wrapper.list-close {
        display: none\9;
        /**IE8\9\10**/
        @include opacity(0);
        @include transition((opacity 0.2s $Ease));
        @include AniQuote((popHide 0.3s $Ease forwards));
    }

    /***************webIM 开始********************/
    .header-webim {
        height: inherit;
        border-left: 1px solid #e4ebf0;
        color: #4ab1b1;
        text-align: center;
        width: 50px;
        cursor: pointer;
        line-height: 40px;

        .ico-webim {
            width: 100%;
            display: inline-block;
            line-height: 40px;
            font-size: 18px;

            &:hover {
                background-color: #f5f8fa;
            }
        }

        .disabled {
            color: #acb7bf;
            cursor: default;

            &:hover {
                background-color: transparent;
            }
        }

        .active {
            background-color: #53c6c6;
            color: #fff;

            &:hover {
                background-color: #4ab1b1;
            }
        }

        .hide {
            display: none;
        }
    }

    .new-icon {
        position: absolute;
        left: 24px;
        top: 1px;
        width: 30px;
        height: 13px;
        background-image: url(../../../images/components/italent-header/new2.svg);
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
    }
    .list-wrapper-mask{
        width: 100%;
        height: 100%;
        position: fixed;
        z-index: 1199;
        top: 44px;
        left: 0;
        display: none;
    }
    .mask-open {
        display: block;
    }
    .mask-close {
        display: none;
    }

    .UserCommunity-region  {
        .btn-tips {
            top: 40px;
        }
        .userCommunity-icon-box .header-icon-userCommunity {
            position: relative;
          width: 40px;
          height: 40px;
          background: no-repeat center/18px url('../../../../images/components/italent-header/user-community.svg');
          &:before {
              content: '';
              display: inline-block;
              position: absolute;
              top: 0;
              left: 0;
              width: 40px;
              height: 40px;
              opacity: 0;
              background: no-repeat center/18px url('../../../../images/components/italent-header/user-community-hover.svg');
          }
          &:hover:before {
            opacity: 1;
          }
        }
        
      }
}