@mixin box-shadow {
    box-shadow: 3px 3px 5px rgba(0, 33, 66, .2);
}


.layout-2-wings {
    *zoom: 1;
    &:before,
    &:after {
        content: "";
        display: table;
    }
    &:after {
        clear: both;
    }
    .layout-body-wrap {
        float: left;
        width: 100%;
    }
    .layout-body {
        margin: 0 200px 0 300px;
    }
    .layout-wing-left {
        float: left;
        width: 200px;
        margin-left: -100%;
    }
    .layout-wing-right {
        float: left;
        width: 300px;
        margin-left: -300px;
        *position: relative;
        *z-index: 11;
    }
}

.m-header {
    color: #555;
    background: #fff;
    font: 12px/1.5 "Roboto", arial, "Microsoft Yahei", sans-serif;
    padding: 1px 0;
    margin: -1px 0;

    .grid{
        background-color: #fff;
    }

    .m-search-input-wrap {
        *position: relative;
        *zoom: 1;
        *z-index: 10;
    }

    a {
        color: #555;
        &:hover {
            color: #555;
            text-decoration: none;
        }
        &.link-blue {
            color: #1470cc !important;
            &:hover {
                color: #f60 !important;
            }
        }
    }

    .num,
    .num-basket {
        font-style: normal;
    }

    .m-header-row {
        margin: 20px 0;
        *zoom: 1;
        &:before,
        &:after {
            content: "";
            display: table;
        }
        &:after {
            clear: both;
        }
    }

    .m-top-wrap {
        border-bottom: 1px solid $color-brush-tiny;

        .m-header-row {
            margin: 0;
            padding: 10px 0;

            .m-header-menu {
                margin-top: 0;
            }
        }
    }

    .m-logo-wrap {
        float: left;
    }
    .m-logo {
        display: block;
        width: 210px;
        height: 43px;
        float: left;
        background: url(/common/img/logo-2.png) left top no-repeat;
        &:hover {
            background-position: left bottom;
        }
    }
    .m-channel-name {
        float: left;
        max-width: 180px;
        line-height: 0;
        font-size: 16px;
        font-weight: normal;
        margin-left: 10px;
        padding-top: 8px;
        color: #222;
        word-wrap: break-word;
        word-break: normal;

        .m-channel-name-content {
            display: table-cell;
            height: 35px;
            line-height: 35px;
            vertical-align: middle;
        }

        a {
            color: #222;
            &:hover {
                color: #f73;
                text-decoration: none;
            }
        }
        sup {
            color: #888;
        }
    }
    .m-header-menu {
        float: right;
        margin-top: 16px;

        &.m-customNav .m-header-menu-item{
            padding: 0 15px;
            font-size: 14px;
        }
    }
    .m-customNav-left{
      .m-header-menu{
        float:left;
        &.m-customNav .m-header-menu-item {
          padding: 0 40px 0 0;
        }
      }
    }
    .collect-directory {
      font-size: 14px;
      position: relative;
      float: right;
      &:hover {
        text-decoration: none;
      }
      .collect-icon {
        font-size: 32px;
        color: #888;
      }
      .collect-bubble {
        position: absolute;
        padding: 0 5px;
        top: 3px;
        left: 20px;
        height: 18px;
        line-height: 18px;
        border-radius: 8px;
        background: #e64545;
        color: #fff;
        font-size: 12px;
      }
      .collect-title {
        color: #555;
        margin-left: 8px;
        vertical-align: bottom;
      }
    }
    .m-header-menu-item {
        float: left;
        padding: 0 10px;
        .m-header-menu-title {
            .num {
                display: inline-block;
                padding: 0 6px;
                border-radius: 9px;
                background: #e64545;
                color: #fff;
            }
        }
        &.m-header-menu-basket {
            .icon-cart {
                margin-right: 5px;
            }
            .num-basket {
                color: #e64545;
            }
            .M-svg-cart{
                margin-right: 5px;
                vertical-align: middle;
                path{
                    stroke: #555;
                    fill: #fff;
                }
                .M-shopping-cart-circle{
                    fill: #555;
                }
            }
        }

        &.selected a{
            color: $color-red;
        }
    }
    .m-header-menu-gap {
        float: left;
        //border-left: 1px solid #dae0e6;
        width: 0;
        height: 12px;
        position: relative;
        top: 3px;
        margin: 0 5px;
    }

    .m-header-select {
        .m-header-select-title {
            display: block;
            padding: 5px 10px;
            border: 1px solid #fff;
            margin: -6px -11px;
            border-radius: 3px 3px 0 0;
            cursor: pointer;
            .icon-down {
                margin: 0 0 0 2px;
                -webkit-transition: all 100ms ease;
                transition: all 100ms ease
            }
            &.pad-acount-txt{
                display: none;
            }
        }
        .m-header-option-list {
            @include box-shadow;
            position: absolute;
            left: -1px;
            top: 22px;
            display: none;
            border: 1px solid #ced3d9;
            background: #fff;
            white-space: nowrap;
            padding: 5px 0;
            border-radius: 0 3px 3px 3px;;
            .m-header-option {
                position: relative;
                z-index: 12;
                a {
                    display: block;
                    padding: 5px 10px;
                    &:hover {
                        background: #e6ecf2;
                    }
                }
            }
            .m-header-option-with-num {
                position: relative;
                a {
                    padding-right: 40px;
                }
                .num {
                    color: #e64545;
                    position: absolute;
                    right: 10px;
                    top: 5px;
                }
            }
            .m-header-option-caption {
                padding: 5px 10px;
                font-weight: bold;
                color: #222;
            }
            .m-header-option-gap {
                margin: 5px 10px;
                height: 0;
                border-top: 1px solid #dae0e6;
                font-size: 0;
                *height: auto;
            }
            &.m-header-option-list-left {
                left: auto;
                right: -1px;
                border-radius: 3px 0 3px 3px;
            }
            &.m-header-option-cwp{
                width: 500px;
                padding: 10px 20px 20px 20px;
                .m-header-option-col{
                    float: left;
                    width: 50%;
                }
                .m-header-option-gap{
                    display: none;
                }
                .m-header-option-caption{
                    margin-top: 10px;
                }
            }
        }
        &:hover, &.hover {
            position: relative;
            z-index: 100;
            .icon-down {
                -webkit-transform: rotate(180deg);
                transform: rotate(180deg)
            }
            .m-header-select-title {
                @include box-shadow;
                border: 1px solid #ced3d9;
                border-bottom: 1px solid #fff;
                border-bottom: none;
                background: #fff;
                position: relative;
                z-index: 12;
                *zoom: 1;
            }
            .m-header-option-list {
                display: block;
                // z-index: 11;

                &::before {
                    content: "";
                    display: block;
                    position: absolute;
                    z-index: 12;
                    width: 100%;
                    height: 8px;
                    background: #fff;
                    top: 0;
                    left: 0;
                }
            }
        }

    }



    .layout-2-wings {
        &.m-cate-search-rfq {
            .layout-body {
                margin: 0 200px 0 200px;
            }
            .layout-wing-left {
                width: 190px;
            }
            .layout-wing-right {
                width: 190px;
                margin-left: -190px;
            }
        }
        &.m-cate-search {
            .layout-body {
                margin: 0 0 0 200px;
            }
            .layout-wing-left {
                width: 190px;
            }
        }
        &.with-long-cate {
            .layout-body {
                margin-left: 265px;
            }
            .layout-wing-left {
                width: 255px;
            }
        }

        &.m-search-rfq {
            .layout-body {
                margin: 0 200px 0 0;
            }
            .layout-wing-right {
                width: 190px;
                margin-left: -190px;
            }
        }


        &.m-search-bar {
            .layout-body {
                margin: 0 58px 0 107px;
            }
            .layout-wing-left {
                width: 107px;
            }
            .layout-wing-right {
                width: 60px;
                margin-left: -60px;
            }
            &.m-search-bar-no-option {
                .layout-body {
                    margin: 0 58px 0 0;
                }
            }
            &.m-search-bar-long-option {
                .layout-body {
                    margin: 0 58px 0 200px;
                }
                .layout-wing-left {
                    width: 200px;
                }
            }
        }

    }

    // search bar

    .m-search-bar {
        border: 2px solid #e64545;
        box-sizing: border-box;
        height: 40px;
        *height: 36px;
        .m-search-input {
            font-size: 14px;
            width: 100%;
            outline: none;
            border: none;
            height: 36px;
            line-height: 36px;
            *height: 34px;
            *line-height: 34px;
            box-sizing: border-box;
            padding: 0 10px;
            *padding: 0;
        }
        .m-search-tips-wrap {
            position: relative;
            // display: none;
            z-index: 9;
            .m-search-tips-list {
                display: none;
                box-sizing: border-box;
                /*width: 100%;*/
                position: absolute;
                left: -1px;
                right: -1px;
                padding: 5px 0;
                border: 1px solid #ced3d9;
                box-shadow: 0 2px 3px rgba(0,0,0,.2);
                border-radius: 3px;
                background: #fff;
                z-index: 10;
            }

            .m-search-tip {
                position: relative;
                display: block;
                padding: 0 10px;
                line-height: 28px;
                cursor: pointer;
                @include cutxt;

                a { display: block; }

                &:hover, &.hover {
                    background: #e6ecf2;
                    .m-search-tip-del{
                        display: inline-block;
                    }
                    .icon-right{
                        position: absolute;
                        right: 10px;
                        line-height: 28px;
                    }
                }
                .keyword-highlight {
                    color: #e64545;
                }
                .keyword-cate {
                    color: #1470cc;
                }
                .keyword-num{
                    color: #888;
                }
                a {
                    color: #222;
                }
                .m-search-tip-del{
                    position: absolute;
                    right: 10px;
                    top: 0;
                    line-height: 28px;
                    color: #1470cc;
                    display: none;
                    &:hover{
                        color: #f73;
                    }
                }
                .icon-right{
                    vertical-align: bottom;
                    color: #888;
                    line-height: 26px;
                    background: none;
                }
            }

            .m-search-suggest-ads {
                .suggest-pro{
                    padding:10px;
                    background:#f7fbff;
                    border-top:1px solid #ddebff;
                    .pro-img{
                        margin-right: 10px;
                        float:left;
                        img{ display:block; }
                    }
                    .pro-links{
                        /*float:left;*/
                        padding:5px 0;
                        /*width:170px;*/
                        overflow:hidden;
                        text-overflow: ellipsis;
                        
                        a{ display: block; color:#06c; }
                        .company{
                            color:#54b154;
                            overflow: hidden;
                            height: 18px;
                            white-space: nowrap;
                            text-overflow:ellipsis;
                        }

                    }
                    a{
                        height:auto;
                        &:hover{ background:0; }
                    }
                }
                &:hover{
                    .suggest-pro {
                        border-width:1px 0 0 0;
                        border-top:1px solid #ddebff;
                        background:#fffff4;
                    }
                    .pro-btn{ color:#f8ce72; }
                }
            }

            .m-search-suggest-seo {
                display: block;
                padding: 0 10px;
                line-height: 28px;

                a {
                    height: 28px;
                    font-size: 12px;
                    color: #e64545;
                    font-weight: bold;
                    text-transform: uppercase;
                    line-height: 28px;
                    vertical-align: middle;
                }
            }

            .m-search-tip-title {
                padding: 0 10px;
                line-height: 28px;
                color: #888;
            }
            .m-search-tip-clear{
                padding: 0 10px;
                line-height: 28px;
                text-align: right;
                a{

                }
            }
            .m-search-tips-query{
                position: absolute;
                box-sizing: border-box;
                right: 0;
                bottom: 0;
                width: 42%;
                height: 100%;
                background: #f5f7fa;
                border-left: 1px solid #e6ecf2;
            }
            .m-search-tips-query-box{
                padding: 0 10px;
                @include clearfix;
            }
            .m-search-tips-query-title{
                font-weight: bold;
                font-size: 12px;
                margin-bottom: 10px;
            }
            .m-search-tips-query-item{
                float: left;
                padding: 2px 5px;
                border: 1px solid #ced3d9;
                color: #555;
                background: #fff;
                border-radius: 2px;
                margin: 0 5px 5px 0;

                &:hover, &.hover {
                    border: 1px solid #7a8a99;
                    background: #f5f7fa;
                }
            }
            .m-query-open{
                padding-right: 41.666%;
                .m-search-tips-query{
                    display: block;
                }
            }
        }
        .m-search-select {
            position: relative;
            cursor: pointer;
            *z-index: 11;
            .m-search-select-title {
                font-size: 14px;
                white-space: nowrap;
                height: 36px;
                line-height: 36px;
                border-right: 1px solid #dae0e5;
                padding: 0 15px;
                position: relative;
                .icon-down {
                    position: absolute;
                    right: 15px;
                    top: 10px;
                    color: $color-black-light;
                    -webkit-transition: all 100ms ease;
                    transition: all 100ms ease
                }
            }
            .m-search-option-list {
                @include box-shadow;
                display: none;
                /*box-sizing: border-box;*/
                margin-left: -2px;
                min-width: 100%;
                position: absolute;
                border: 1px solid #ced3d9;
                border-radius: 3px;
                background: #fff;
                z-index: 10;
            }
            .m-search-option {
                white-space: nowrap;
                a {
                    display: block;
                    padding: 0 15px;
                    line-height: 30px;

                    &:hover {
                        color: #555;
                    }
                }
                &:hover {
                    background: #e6ecf2;
                    color: #555;
                }
            }
            .m-search-option-selected {
                display: none;
            }
            &.hover {
                .m-search-option-list {
                    display: block;
                }
                .icon-down {
                    -webkit-transform: rotate(180deg);
                    transform: rotate(180deg)
                }
            }


        }

        .m-search-btn-wrap { height: 36px; overflow: hidden; }
        .m-search-btn {
            border: none;
            width: 60px;
            height: 40px;
            background: #e64545;
            color: #fff;
            text-align: center;
            line-height: 36px;
            position: relative;
            top: -2px;
            right: -2px;

            &:hover {
                background: #d92121;
            }

            .icon-search {
                margin-top: -2px;
                margin-left: 2px;
                font-size: 20px;
                *width: 20px;
                *height: 20px;
                *background: url('/common/img/icon/search.png') no-repeat 0 0;
            }
            .M-svg-search{
                margin-top: -2px;
                vertical-align: middle;
                path{
                    fill: #fff;
                    stroke:#fff;
                    stroke-width: .5;
                }
                .M-search-line{
                    stroke:#fff;
                    stroke-width: 1.2;
                }
            } 
        }
        &.m-search-bar-gray {
            border: 1px solid #c2c7cc;

            .m-search-select-title {
                height: 38px;
                line-height: 38px;
            }
            .m-search-btn {
                top: -1px;
                right: -1px;
            }
        }
    }

    .m-cate-list-wrap {
        z-index: 11;
        height: 40px;
        position: relative;
        .m-cate-list-title {
            font-size: 14px;
            white-space: nowrap;
            border: 1px solid $color-brush-small;
            background: #fff;
            height: 38px;
            line-height: 38px;
            padding: 0 10px;
            position: relative;
            cursor: pointer;
            .icon-category2 {
                color: $color-black-light;
                margin-right: 5px;
            }
            .icon-down {
                float: right;
                position: absolute;
                top: 11px;
                right: 10px;
                color: $color-black-light;
                -webkit-transition: all 100ms ease;
                transition: all 100ms ease
            }
        }
        .m-cate-list-outer {
            width: 990px;
            position: relative;
        }
        .m-cate-list {
            @include box-shadow;
            border: 1px solid $color-brush-small;
            background: #fff;
            position: absolute;
            margin-top: -1px;
            display: none;
            white-space: nowrap;
            padding: 5px 0;
            z-index: 5;
            .m-cate-list-sub {
                padding: 15px;
                float: left;
                position: relative;
                z-index: 11;
            }
            a {
                display: block;
                padding: 5px;
                overflow: hidden;
                font-size: 0;

                .ob-icon {
                    float: left;
                    margin-right: 5px;
                    -webkit-transition: all 100ms ease;
                    transition: all 100ms ease
                }
                .m-cate-name {
                    display: inline-block;
                    font-size: 12px;
                    overflow: hidden;
                    zoom: 1;
                }
                &:hover {
                    background: #e6ecf2;
                    color: #555;
                }
            }
        }
        &:hover {
            .m-cate-list-title {
                @include box-shadow;
                z-index: 10;
                border-bottom: none;
                position: relative;

                &:before {
                    content: "";
                    display: block;
                    position: absolute;
                    width: 100%;
                    padding-right: 10px;
                    height: 10px;
                    left: 0;
                    top: 38px;
                    background: #fff;
                }
            }
            .m-cate-list {
                display: block;
            }
            .icon-down {
                -webkit-transform: rotate(180deg);
                transform: rotate(180deg)
            }
        }

    }
    .m-rfq {
        display: block;
        border: 1px solid $color-brush-small;
        height: 38px;
        line-height: 38px;
        text-align: center;
        color: #e64545;
        font-size: 14px;
        .icon-purchase {
            margin-right: 5px;
        }

        &:hover {
            color: #e64545;
            background: #f5f7fa;
        }
    }



    .m-related-keywords-wrap {
        position: relative;
        margin: 10px 0;
        color: #888;
        white-space: nowrap;
        overflow: hidden;
        z-index: 6;

        .m-related-keywords-content {
            display: inline;
          h1{
            font-weight: normal;
            display: inline-block;
          }
        }

        .m-related-keywords {
            margin-right: 10px;
            display: inline-block;
            color: #888;

            &:first-child {
                margin-left: 10px;
            }

            &:hover {
                color: $color-yellow;
                text-decoration: underline;
            }
        }
        .m-related-keywords-more {
            display: none;
            color: #888;
            position: relative;
            cursor: default;
            z-index: 1;

            .m-related-keywords-list {
                position: absolute;
                display: none;
                border: 1px solid #ced3d9;
                background: #fff;
                white-space: nowrap;
                padding: 5px 0;
                border-radius: 3px;

                .m-related-keywords {
                    margin: 0;
                    display: block;
                    padding: 5px 10px;
                    &:hover {
                        color: #888;
                        text-decoration: none;
                        background: #e6ecf2;
                    }
                }
            }

            .icon-down {
                -webkit-transition: all 100ms ease;
                transition: all 100ms ease
            }

            &:hover {
                .icon-down {
                    -webkit-transform: rotate(180deg);
                    transform: rotate(180deg)
                }

                .m-related-keywords-list {
                    display: block;
                }
            }
        }
    }

    /* search bar gray */
    &.m-search-gray {
        .m-search-bar{
            border: 1px solid #c2c7cc;
            *height: 38px;

            .m-search-input {
                height: 38px;
                line-height: 38px;
                *height: 36px;
                *line-height: 36px;
            }

            .layout-wing-right {
                position: relative;

                .m-search-btn-wrap {
                    position: absolute;
                    top: -1px;
                    right: -1px;
                    height: 40px;
                    *width: 59px;

                    .m-search-btn {
                        height: 40px;
                        top: 0;
                        right: 0;
                    }
                }
            }
        }

        .m-search-select {
            .m-search-select-title {
                height: 38px;
                line-height: 38px;

                .icon-down {
                    top: 11px;
                }
            }

            .m-search-option-list {
                margin-left: -1px;
            }
        }
    }

    /* search bar fixed */
    .m-search-fixed {
        height: 40px;

         .m-related-keywords-wrap {
            display: none;
        }

        .m-search-content {
            width: 100%;
            border-bottom: 1px solid #eee;
            background-color: #FFF;
            z-index: 210;
            padding: 10px 0;
        }


        .m-search-bar{
            height: 36px;
            border: 1px solid #e64545;

            .m-search-input {
                height: 34px;
                line-height: 34px;
            }

            .m-search-btn-wrap {
                height: 34px;

                .m-search-btn {
                    top: -1px;
                    right: -1px;

                    .icon-search {
                        margin-top: -4px;
                    }
                }
            }
        }

        .m-search-select {
            .m-search-select-title {
                height: 34px;
                line-height: 34px;

                .icon-down {
                    top: 10px;
                }
            }

            .m-search-option-list {
                margin-left: -1px;
            }
        }

        .m-rfq {
            height: 34px;
            line-height: 34px;
        }

        .m-cate-list-wrap {
            display: none;
        }

        .layout-body-wrap .layout-body {
            margin-left: 0;
        }
    }
    .sf-placeholder + .m-header-menu-gap{
        margin: 0;
    }

    //smart expo大展重置
    &.expo{
        .grid{
            width: auto;
            max-width: 1280px;
            padding: 0 20px;
        }
        .m-logo-wrap{
            a{
                width: 173px !important;
                height: 20px !important;
            }
        }
        .m-header-menu{
            margin-top: 1px;
        }
        .m-header-menu-gap {
            margin: 0;
            border-left: 1px solid #dae0e6;
        }
    }


}
.pc-hide{
    display: none;
}


