﻿/* ==============================
   Top Bar
============================== */
header.current{ width: 100%; position: fixed; left: 0; top: 0; z-index: 999; border-bottom:1px solid #e886ae;}
.top-bar {
    width: 100%;
    height: 46px;
    line-height: 46px;
    background: #f1f2f3;
    position: relative;
    z-index: 99;
}

.top-bar .container {
    height: 46px;
    justify-content: space-between;
}

.top-bar-left {
    font-size: 0;
}

.top-bar-left h1 {
    display: inline-block;
    margin: 0;
    font-weight: normal;
    font-family: myFirstFont;
    color: #333;
    font-size: 0.95rem;
    vertical-align: middle;
}

.top-bar-left b {
    display: inline-block;
    font-weight: normal;
    font-family: myFirstFont;
    color: #333;
    font-size: 0.95rem;
    vertical-align: middle;
}

.top-bar-left a {
    display: inline-block;
    color: #333;
    font-size: 0.95rem;
    text-decoration: none;
    vertical-align: middle;
}

.top-bar-left a:before {
    content: "|";
    padding: 0 25px;
    color: #999;
}

.top-bar-left a:hover {
    color: #e886ae;
}

.top-bar-right {
    align-items: center;
    height: 46px;
}

.top-bar-user {
    font-size: 0;
}

.top-bar-user a {
    display: inline-block;
    color: #333;
    font-size: 0.95rem;
    text-decoration: none;
    vertical-align: middle;
}

.top-bar-user a:hover {
    color: #e886ae;
}

.top-bar-user span {
    display: inline-block;
    padding: 0 10px;
    color: #999;
    font-size: 0.95rem;
    vertical-align: middle;
}

/* 语言切换 */
.top-bar-language {
    position: relative;
    margin-left: 30px;
    cursor: pointer;
    color: #333;
    font-size: 0.95rem;
    user-select: none;
}

.top-bar-language i {
    color: #333;
}

.top-bar-language span {
    padding: 0 5px;
}

.top-bar-language em {
    color: #e886ae;
    transition: transform .25s ease;
}

.top-bar-language.active em {
    transform: rotate(180deg);
}

/* 下拉菜单 */
.top-language-menu {
    position: absolute;
    right: 0;
    top: 46px;
    width: 150px;
    padding: 8px 0;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    border-radius: 4px;
    line-height: normal;
    display: none;
    z-index: 9999;
}

.top-language-menu:before {
    content: "";
    position: absolute;
    right: 18px;
    top: -6px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
}

.top-language-menu a {
    position: relative;
    display: block;
    padding: 10px 18px;
    color: #333;
    font-size: 14px;
    line-height: 20px;
    text-decoration: none;
    white-space: nowrap;
    transition: all .25s ease;
    z-index: 2;
}

.top-language-menu a:hover,
.top-language-menu a.active {
    color: #e886ae;
    background: #faf3f7;
}

/* 点击后显示 */
.top-bar-language.active .top-language-menu,
.top-language-menu.active {
    display: block;
}

/* ==============================
   Header
============================== */

.site-header {
    width: 100%;
    background: #fff;
}

/* 顶部主区域 */
.header-main {
    width: 100%;
    padding: 22px 0 12px;
}

.header-main-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.header-logo {
    flex: 0 0 132px;
    width: 132px;
}

.header-logo a {
    display: block;
    width: 132px;
    height: 54px;
}

.header-logo img {
    display: block;
    width: 132px;
    height: 54px;
    object-fit: contain;
}

/* 搜索区域 */
/* 搜索区域 */
.header-search {
    position: relative;
    flex: 1;
    max-width: 760px;
    margin: 0 50px 0 60px;
    z-index: 50;
}

.header-search-box {
    display: flex;
    align-items: center;
    width: 100%;
    height: 54px;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.header-search input {
    flex: 1;
    width: auto;
    min-width: 0;
    height: 54px;
    padding: 0 22px;
    border: none;
    outline: none;
    background: transparent;
    font-size: 17px;
    color: #333;
}

.header-search input::placeholder {
    color: #777;
}

.header-search-type {
    width: 152px;
    height: 52px;
    flex: 0 0 172px;
    padding: 0 36px 0 16px;
    border: none;
    border-right: 1px solid #e7e7e7;
    outline: none;
    background: #fafafa;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.header-search-type:focus {
    background: #fff5f9;
    color: #d8759e;
}

.header-search button {
    width: 80px;
    height: 54px;
    border: none;
    outline: none;
    background: #e886ae;
    color: #fff;
    cursor: pointer;
    font-size: 22px;
    transition: all .3s ease;
}

.header-search button:hover {
    background: #d8759e;
}

/* 搜索下拉结果 */
.search-window {
    display: none;
    position: absolute;
    left: 0;
    top: 62px;
    width: 100%;
    background: #fff;
    border: 1px solid #f5d6e3;
    border-radius: 8px;
    box-shadow: 0 14px 35px rgba(216, 117, 158, .18);
    z-index: 9999;
    overflow: hidden;
}

.search-rst {
    width: 100%;
    max-height: 360px;
    overflow-y: auto;
    margin: 0;
    padding: 6px 0;
}

.search-rst li {
    display: block;
    border-bottom: 1px solid #f5eef2;
}

.search-rst li:last-child {
    border-bottom: none;
}

.search-rst li a {
    display: block;
    padding: 12px 18px;
    text-decoration: none;
    color: #333;
    transition: all .2s ease;
}

.search-rst li a:hover {
    background: #fff1f7;
    color: #e886ae;
}

.search-rst li p {
    margin: 0;
    color: #111;
    font-size: 15px;
    line-height: 22px;
    font-family: myFirstFont1;
}

.search-rst li .mfg {
    margin-top: 3px;
    color: #777;
    font-size: 13px;
    line-height: 20px;
    font-family: myFirstFont;
}

.search-rst li a:hover p {
    color: #e886ae;
}

.search-rst li.search-empty,
.search-rst li.search-loading {
    padding: 14px 18px;
    color: #999;
    font-size: 14px;
    line-height: 22px;
}


/* 右侧工具 */
.header-tools {
    display: flex;
    align-items: center;
    gap: 26px;
    flex-shrink: 0;
}

.header-tool-item {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #222;
    font-size: 15px;
    transition: all .3s ease;
}

.header-tool-item:hover {
    color: #e886ae;
}

.header-tool-icon {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: #e886ae;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.header-tool-icon img {
    display: block;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.header-tool-text {
    white-space: nowrap;
    font-size: 15px;
    color: #222;
}

/* 导航 */
.header-nav-wrap {
    width: 100%;
    padding-bottom: 14px;
}

.header-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 42px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.header-nav li {
    position: relative;
}

.header-nav li a {
    position: relative;
    display: inline-block;
    padding: 10px 0 12px;
    color: #111;
    text-decoration: none;
    font-size: 1.1rem;
    line-height: 1.4;
    transition: all .3s ease;
}

.header-nav li a:hover {
    color: #e886ae;
}



.header-nav li:hover a:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -14px;
    width: 100%;
    height: 3px;
    background: #e886ae;
}

.header-mobile-menu-btn {
    display: none;
}

@media screen and (max-width: 768px) {

    /* 顶部欢迎栏 */
    .top-bar {
        height: auto;
        line-height: normal;
        padding: 8px 0;
        background: #f1f2f3;
        z-index: 999;
    }

    .top-bar .container {
        height: auto;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }

    .top-bar-left {
    display: none;
    }


    .top-bar-right {
        width: 100%;
        height: auto;
        margin-top: 5px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        line-height: 28px;
    }

    .top-bar-user {
        display: flex;
        align-items: center;
        font-size: 0;
    }

    .top-bar-user a,
    .top-bar-user span {
        font-size: 13px;
        line-height: 28px;
    }

    .top-bar-user span {
        padding: 0 8px;
    }

    .top-bar-lanuge {
        margin-left: 0;
        font-size: 13px;
        line-height: 28px;
    }

    .top-bar-lanuge i,
    .top-bar-lanuge span,
    .top-bar-lanuge em {
        line-height: 28px;
    }

    .top-language-menu {
        top: 34px;
        right: 0;
        width: 145px;
        z-index: 9999;
    }

    .top-language-menu a {
        padding: 9px 15px;
        font-size: 13px;
    }


    /* Header 主体 */
    .site-header {
        position: relative;
        z-index: 98;
        background: #fff;
        border-bottom: 1px solid #eee;
    }

    .header-main {
        padding: 12px 0;
    }

    .header-main-inner {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }

    /* Logo */
    .header-logo {
        flex: 0 0 132px;
        width: 132px;
    }

    .header-logo a {
        width: 132px;
        height: 54px;
    }

    .header-logo img {
        width: 132px;
        height: 54px;
    }

    /* 手机端菜单按钮 */
    .header-mobile-menu-btn {
        display: flex;
        width: 42px;
        height: 42px;
        padding: 0;
        margin: 0;
        border: none;
        border-radius: 6px;
        background: #e886ae;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        cursor: pointer;
    }

    .header-mobile-menu-btn span {
        display: block;
        width: 22px;
        height: 2px;
        margin: 3px 0;
        background: #fff;
        border-radius: 2px;
        transition: all .3s ease;
    }

    .header-mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .header-mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .header-mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* 搜索框移动端显示 */
    .header-search {
        order: 3;
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
        margin: 12px 0 0;
    }

    .header-search-box {
        height: 46px;
        border-radius: 6px;
        border-color: #333;
    }

    .header-search-type {
        width: 124px;
        height: 44px;
        flex: 0 0 124px;
        padding: 0 24px 0 10px;
        font-size: 12px;
    }

    .header-search input {
        width: auto;
        min-width: 0;
        height: 46px;
        padding: 0 12px;
        font-size: 14px;
    }

    .header-search button {
        width: 56px;
        height: 46px;
        font-size: 18px;
    }

    .search-window {
        top: 52px;
        border-radius: 6px;
    }

    .search-rst {
        max-height: 280px;
    }

        .search-rst li a {
            padding: 10px 14px;
        }

        .search-rst li p {
            font-size: 14px;
        }

        .search-rst li .mfg {
            font-size: 12px;
        }
    /* BOM / Shopping cart 移动端显示 */
    .header-tools {
   display:none;
    }

    .header-tool-item {
        flex: 1;
        height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f8f8f8;
        border: 1px solid #eee;
        border-radius: 6px;
        font-size: 14px;
    }

    .header-tool-icon {
        width: 32px;
        height: 32px;
        margin-right: 8px;
        border-radius: 5px;
    }

    .header-tool-icon img {
        width: 20px;
        height: 20px;
    }

    .header-tool-text {
        font-size: 14px;
    }

    /* 导航默认隐藏 */
    .header-nav-wrap {
        display: none;
        width: 100%;
        padding: 0;
        background: #fff;
        border-top: 1px solid #eee;
        box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
    }

    /* 点击按钮后显示 */
    .header-nav-wrap.open {
        display: block;
    }

    .header-nav {
        display: block;
        width: 100%;
        margin: 0;
        padding: 5px 0;
        list-style: none;
    }

    .header-nav li {
        display: block;
        width: 100%;
        border-bottom: 1px solid #f1f1f1;
    }

    .header-nav li:last-child {
        border-bottom: none;
    }

    .header-nav li a {
        display: block;
        padding: 13px 15px;
        font-size: 15px;
        line-height: 22px;
        color: #222;
    }

    .header-nav li a:hover {
        color: #e886ae;
        background: #faf3f7;
    }

    .header-nav li:hover a:after {
        display: none;
    }
}