/* ==============================
   Header Base
================================= */

header {
    position: relative;
    z-index: 999;
    width: 100%;
    padding: 5px 0;
    background: #fff;
    overflow: visible;
}

header.current {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 999;
    border-bottom: 1px solid #eee;
}

.header-main {
    position: relative;
    align-items: center;
    justify-content: space-between;
    overflow: visible;
}

header .logo {
  width: 278px;
  height: 54px;
    flex-shrink: 0;
}

header .logo a {
    display: block;
    width: 278px;
    height: 54px;
    background: url(../images/logo.jpg) no-repeat center;
    background-size: contain;
}

header .logo a h1{
    display: none;
}

/* ==============================
   Header Right
================================= */

.header-search {
   width: 300px;
   height: 50px;
   background: #F4F4F4;
   border-radius: 60px;
}

.header-search input {
    width: 100%;
    height: 100%;
    padding: 0 40px 0 20px;
    border: none;
    outline: none;
    background: transparent;
    color: #333;
    font-size: 14px;
    line-height: 40px;
    box-sizing: border-box;
}

.header-search input::placeholder {
    color: #666;
}

.header-search button {
    position: absolute;
    right: 12px;
    top: 50%;
    width: 22px;
    height: 22px;
    padding: 0;
    border: none;
    outline: none;
    background: none;
    color: #293b86;
    font-size: 22px;
    line-height: 22px;
    cursor: pointer;
    transform: translateY(-50%);
}

.header-search button:hover {
    color: #0305d5;
}



/* ==============================
   Header Nav
================================= */

.header-nav {
    position: static;
}

.header-nav .nav-list {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.header-nav li {
    list-style: none;
}

.header-nav .nav-list > li {
    position: relative;
}

.header-nav .nav-list > li > a {
    display: block;
    padding: 0 12px;
    color: #222;
    font-size: 1.1rem;
    line-height: 80px;
    text-decoration: none;
    transition: all .25s ease;
}

.header-nav .nav-list > li:hover > a {
    color: #293b86;
}

.header-nav .has-sub > a::after {
    content: "\f107";
    font-family: FontAwesome;
    margin-left: 7px;
    font-size: 13px;
}

.header-nav .sub-menu {
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 180px;
    margin: 0;
    padding: 10px 0;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all .25s ease;
    z-index: 999;
}

.header-nav .has-sub:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-nav .sub-menu li a {
    display: block;
    padding: 11px 18px;
    color: #333;
    font-size: 14px;
    line-height: 22px;
    white-space: nowrap;
    text-decoration: none;
    transition: all .25s ease;
}

.header-nav .sub-menu li a:hover {
    background: #293b86;
    color: #fff4eb;
}


/* ==============================
   Product Mega Menu
================================= */

.header-nav .nav-list > li.product-mega-li {
    position: static !important;
}

.header-nav .product-mega-li > a::after {
    content: "\f107";
    font-family: FontAwesome;
    margin-left: 7px;
    font-size: 13px;
}

.product-mega {
    position: absolute;
    left: 50%;
    top: 100%;
    width: 100vw;
    background: #fff;
    border-top: 1px solid #f1f1f1;
    box-shadow: 0 14px 35px rgba(0,0,0,.08);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 12px);
    transition: all .25s ease;
    z-index: 998;
}

.product-mega-li:hover .product-mega {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.product-mega-inner {
    padding: 32px 0 36px;
}

.product-mega-layout {
    position: relative;
    display: flex;
    min-height: 320px;
    background: #fff;
}

/* 左侧一级分类 */
.product-mega-primary {
    width: 230px;
    flex-shrink: 0;
    padding: 6px 0;
    border-right: 1px solid #eee;
    background: #fafafa;
}

.mega-tab {
    position: static;
}

.mega-primary-link {
    position: relative;
    display: block;
    padding: 15px 22px;
    color: #222;
    font-size: 15px;
    line-height: 22px;
    font-weight: bold;
    text-decoration: none;
    transition: all .25s ease;
}

.mega-primary-link::after {
    content: "\f105";
    font-family: FontAwesome;
    position: absolute;
    right: 18px;
    top: 50%;
    font-size: 14px;
    transform: translateY(-50%);
}

.mega-tab:hover .mega-primary-link,
.mega-tab.is-active .mega-primary-link {
    background: #293b86;
    color: #fff;
}

/* 右侧二级/三级分类 */
.mega-panel {
    position: absolute;
    left: 260px;
    right: 0;
    top: 0;
    display: none;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 70px;
    row-gap: 36px;
    padding: 6px 0 0 10px;
}

.mega-tab.is-active > .mega-panel {
    display: grid;
}

.product-mega-group h3 {
    margin: 0 0 14px;
    color: #0d1b2a;
    font-size: 16px;
    line-height: 24px;
    font-weight: bold;
}

.product-mega-group h3 a {
    color: #0d1b2a;
    text-decoration: none;
}

.product-mega-group h3 a:hover {
    color: #293b86;
}

.product-mega-group > a {
    position: relative;
    display: block;
    padding-left: 14px;
    margin-bottom: 10px;
    color: #222;
    font-size: 14px;
    line-height: 22px;
    text-decoration: none;
    transition: all .25s ease;
}

.product-mega-group > a::before {
    content: "\f105";
    font-family: FontAwesome;
    position: absolute;
    left: 0;
    top: 0;
    color: #222;
    font-size: 13px;
    line-height: 22px;
    transition: all .25s ease;
}

.product-mega-group > a:hover {
    color: #293b86;
    padding-left: 18px;
}

.product-mega-group > a:hover::before {
    color: #293b86;
}