@media screen and (max-width: 1300px) {
    .megamenu-wrapper {
        min-width: 1200px;
        margin: auto;
    }
}
.megamenu-wrapper{
  height: 48px;
  background: #F4F5F8;
  margin-top: 12px;
}

.megamenu-wrapper.hidden-search{
  margin-top: 0;
}

.megamenu-wrapper.fixed-top{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  margin-top: 0;
}

.megamenu-wrapper .megamenu {
    display: flex;
    justify-content: space-around;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    position: relative;
    max-width: 1350px;
    margin: 0 auto;
    line-height: 48px;
}

.megamenu-wrapper .megamenu .sub-menu {
    display: none;
    position: fixed;
    z-index: 9999;
    width: 100%;
    left: 0;
    top: 122px;
    background-color: #fff;
    box-shadow: 0px 5px 20px -10px rgba(2, 11, 24, 0.08);
    padding: 24px;
}

.megamenu-wrapper .megamenu>li {
    position: relative;
    padding: 0;
    flex: 1;
    text-align: center;
    cursor: pointer;
    min-width: 193px;
}
.megamenu-wrapper .megamenu>li>a{
  display: inline-block;
}

.megamenu-wrapper .megamenu>li .fa-angle-down::after {
    content: "\f107";
    font-size: 18px;
}

.megamenu-wrapper .megamenu>li .fa-angle-down::before {
    content: "";
}

.megamenu-wrapper .megamenu>li .fa-angle-down {
    transition: transform 0.6s ease-in-out;
}

.megamenu-wrapper .megamenu>li strong {
    color: #141737;
    font-size: 16px;
    font-weight: bold;
    line-height: 24px;
    text-transform: uppercase;
}

.megamenu-wrapper .megamenu>li strong.active-category+i.fa-angle-down {
    color: #20B1B1;
}

.megamenu-wrapper .megamenu .active-subcategory .sld-child-img {
    border: 1px solid #20B1B1 !important;
}

.megamenu-wrapper .megamenu .active-subcategory .sld-child-name {
    color: #009A9E !important;
}

.megamenu-wrapper .megamenu>li strong:hover {
    color: #20B1B1;
}

.megamenu-wrapper .megamenu>li .menu-hot {
    background-color: #D33040;
    font-size: 12px;
    color: #FFFFFF;
    border-radius: 3px;
    line-height: 1;
    padding: 4px;
    font-style: normal;
    display: inline-block;
    position: relative;
    top: -2px;
    margin-left: 8px;
    margin-right: 4px;
}

.megamenu-wrapper .megamenu>li .menu-hot>svg {
    position: relative;
    top: 1px;
    margin-right: 4px;
}

.megamenu-wrapper .megamenu>li .sub-menu .sld-menu-category::after {
    content: "";
    justify-content: center;
}

.megamenu-wrapper .megamenu>li:hover .sub-menu {
    display: block;
}

.megamenu-wrapper .megamenu>li:hover i.fa.fa-angle-down {
    transform: rotate(180deg);
}

.megamenu-wrapper .megamenu .sub-menu .sld-menu-category {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
}

/* 当容器出现横向滚动时切换为左对齐 */
/* .megamenu-wrapper .megamenu .sub-menu .sld-menu-category:has(> :first-child:nth-last-child(n+2)) {
  justify-content: flex-start;
} */

@media (max-width: 1199px) {
    .megamenu-wrapper .megamenu .sub-menu .sld-menu-category {
        justify-content: flex-start;
    }
}

.megamenu-wrapper .megamenu .sub-menu .sld-menu-category::-webkit-scrollbar,
.megamenu-wrapper .megamenu::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.megamenu-wrapper .megamenu .sub-menu .sld-menu-category::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.megamenu-wrapper .megamenu .sub-menu .sld-menu-category::-webkit-scrollbar-track,
.megamenu-wrapper .megamenu::-webkit-scrollbar {
    background: #E8EBF0;
    border-radius: 2px;
}

.megamenu-wrapper .megamenu .sub-menu .sld-menu-category::-webkit-scrollbar-thumb,
.megamenu-wrapper .megamenu::-webkit-scrollbar {
    background: #E8EBF0;
    border-radius: 10px;
}

.megamenu-wrapper .megamenu .sub-menu .sld-menu-category::-webkit-scrollbar-thumb:hover,
.megamenu-wrapper .megamenu::-webkit-scrollbar-thumb:hover {
    background: #009A9E;
    border-radius: 2px;
}

.megamenu-wrapper .megamenu>li .sub-menu .level2 img {
    width: 100%;
    border-radius: 4px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    max-width: 100%;
    max-height: 100%;
}

.megamenu-wrapper .megamenu>li .sub-menu .level2 .sld-child-img,
.megamenu-wrapper .megamenu>li .sub-menu .level3 .sld-child-img {
    border: 1px solid #E8EBF0;
    border-radius: 4px;
    background-color: #fff;
    padding: 0;
    width: 186px;
    height: 140px;
    overflow: hidden;
    position: relative;
}

.megamenu-wrapper .megamenu>li .sub-menu .level2 .sld-child-img .swap-image, 
.megamenu-wrapper .megamenu>li .sub-menu .level3 .sld-child-img .swap-image {
    position: absolute;
    visibility: hidden;
    opacity: 0.5;
    transition: opacity 0.2s ease-in;
    -moz-transition: opacity 0.2s ease-in;
    -webkit-transition: opacity 0.2s ease-in;
    border-radius: 4px;
    max-height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    margin: auto;
}

.megamenu-wrapper .megamenu>li .sub-menu .level2 .sld-child-img:hover .swap-image, 
.megamenu-wrapper .megamenu>li .sub-menu .level3 .sld-child-img:hover .swap-image {
    visibility: visible;
    opacity: 1;
}

.megamenu-wrapper .megamenu>li .sub-menu .level2:hover .sld-child-img,
.megamenu-wrapper .megamenu>li .sub-menu .sld-menu-category-level3:hover .sld-child-img
{
    border: 1px solid #20B1B1;
    background-color: #fff;
}

.megamenu-wrapper .megamenu>li .sub-menu .level2 .sld-child-img {
    margin-bottom: 8px;
}

.megamenu-wrapper .megamenu>li .level2 .sld-child-name {
    /* display: flex; */
    justify-content: space-between;
    font-size: 16px;
    width: 186px;
    line-height: 24px;
    text-align: center;
}

.sld-menu-category-child.level2 {
    margin-bottom: 0;
    margin-left: 24px;
}

@media screen and (max-width: 1299px) {
    .megamenu-wrapper .megamenu>li .level2 .sld-child-name {
        margin-bottom: 16px;
    }
}

.megamenu-wrapper .megamenu .level3-has-child {
    display: flex;
    justify-content: center;
    align-items: self-start;
}

.megamenu-wrapper .megamenu .level3-has-child .sld-menu-category-child .sld-child-name {
    display: flex;
    width: auto;
    align-items: center;
    margin-right: 24px;
}

.megamenu-wrapper .megamenu .level3-has-child .sld-menu-category-child .sld-child-name.active-level3-child span.level3-name,
.megamenu-wrapper .megamenu .level3-has-child .sld-menu-category-child .sld-child-name.active-level3-child svg {
    color: #20B1B1;
}

.megamenu-wrapper .megamenu .level3-has-child .sld-menu-category-child .sld-child-name>span.level3-name {
    padding-right: 4px;
    display: inline-block;
}

.megamenu-wrapper .megamenu>li .level3-name {
    display: inline-block;
    color: #141737;
    font-size: 16px;
    height: 24px;
}

.megamenu-wrapper .megamenu>li .level3-name:hover {
    color: #20B1B1;
}

.megamenu-wrapper .megamenu .level3-has-child>div.sld-menu-category {
    display: block;
    line-height: 22px;
}

.megamenu-wrapper .megamenu .level3-has-child .sld-menu-category-child {
    margin-bottom: 16px;
}

.megamenu-wrapper .megamenu .level3-has-child .sld-menu-category-child:last-child {
    margin-bottom: 0;
}

.megamenu-wrapper .megamenu .level3-has-child .sld-menu-category-child:hover .level3-name {
    color: #20B1B1;
}

.megamenu-wrapper .level3-has-child .level3 {
    padding-left: 24px;
    border-left: 1px solid #E4E7ED;
}


.megamenu-wrapper .megamenu .level3-has-child .level3 .sld-child-name {
    font-size: 16px;
    line-height: 24px;
    padding-top: 8px;
    text-align: center;
    color: #141737;
}

.megamenu-wrapper .megamenu .level3 .sld-child-img {
    border: 1px solid transparent;
    background: #F8F8F8;
    border-radius: 4px;
    width: 186px;
    height: 140px;
    overflow: hidden;
}

.megamenu-wrapper .megamenu .level3 .sld-menu-category-level3 {
    margin-right: 24px;
}
.megamenu-wrapper .megamenu .level3 .sld-menu-category-level3:last-child{
    margin-right: 0;
}


.megamenu-wrapper .megamenu .level3 .sld-child-img img {
    border-radius: 4px;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.megamenu-wrapper .megamenu .level3 .sld-child-img:hover {
    border: 1px solid #20B1B1;
}

.megamenu-wrapper .megamenu .filterby-relevance {
    color: #666C7C;
    font-size: 14px;
    padding-bottom: 22px;
}