﻿
.oc-sam-header {
    display: flex;
    position: fixed;
    /* top: 0.18rem; */
    top: 0;
    width: 100%;
    height: 0.6rem;
    padding: 0 0.8rem;
    background: #25323A;
    z-index: 999;
    box-sizing: border-box;
    align-items: center;
    justify-content: space-between;

}
.oc-sam-header .logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.oc-sam-header .logo-wrapper .logo {
    height: 0.4rem;
}

.menu-pc-nav {
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-pc-nav .nav-ul {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin: 0 0.3rem 0 1rem;
    height: 100%;
}

.menu-pc-nav .nav-ul .nav-ul-li {
    display: flex;
    align-items: center;
    cursor: pointer;
    height: 100%;
}

.menu-pc-nav .nav-ul .nav-ul-li a {
    padding-bottom: 0.03rem;
    border-bottom: 1px solid transparent;
}

.menu-pc-nav .nav-ul .nav-ul-li:hover a {
    border-bottom: 1px solid #FFF;
    /* padding-bottom: 0.03rem; */
    /* margin-top: 0.04rem; */
}

.menu-pc-nav .nav-ul .nav-ul-li .first-nav-title {
    font-family: 'Roboto';
    font-weight: 500;
    font-size: 0.2rem;
    color: #FFF;
}

/*二级菜单*/
.tree-menu-wrapper {
    display: flex;
    /* justify-content: space-between; */
    flex-wrap: wrap;
    flex-direction: column;
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    top: 0.6rem;
    width: 80%;
    background-color: #FFF;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    /* padding-top: 0.45rem;
    padding-left: 1.7rem;
    padding-right: 1.7rem; */
    padding: 0.48rem 0.6rem;
    row-gap: 0.3rem;
    max-height: 78vh;
    gap: 10px;
}

.nav-ul-li .column-wrapper {
    /* width: 10% !important; */
    padding: 0.4rem;
    padding-bottom: 0;
    left: auto;
    transform: translateX(0);
    max-height: 70vh;
    width: auto;
    /* overflow-y: auto; */
}

.nav-ul-li .column-wrapper .second-nav-column {
    display: flex;
    /* align-items: center; */
    flex-flow: row wrap;
    row-gap: 0.2rem;
    max-height: 70vh;
    width: auto;
    /* align-content: flex-start; */
    /* justify-content: space-between; */
    writing-mode: vertical-lr;
}

.second-nav-name,
.third-nav-li {
    display: flex;
    writing-mode: horizontal-tb;
}

.second-nav-name {
    margin-bottom: 0.24rem;
}

.third-nav-ul {
    display: flex;
    flex-direction: column;
    /* flex-wrap: wrap; */
    /* max-height: 3.8rem; */
}

.third-nav-li {
    margin-bottom: 0.12rem;
}

.second-nav-name a {
    display: block;
    border-bottom: 2px solid #fff !important;
}

.second-nav-name a:hover {
    border-bottom: 2px solid #2C63A0 !important;
}

.second-nav-name a {
    font-family: 'Roboto';
    font-weight: 600;
    font-size: 0.18rem;
    color: #333333;
}

.third-nav-li a {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-size: 0.16rem;
    color: #010101;
}

.third-nav-li:hover a {
    color: #2C63A0;
}

.menu-pc-nav .nav-ul .nav-ul-li .second-nav {
    /* width: 26%; */
}


.tree-menu-none {
    display: none;
}

.third-nav-li a {
    font-family: 'Roboto';
    font-weight: 400;
    font-size: 0.16rem;
    color: #000000;
}

.oc-sam-header .header-search {
    position: relative;
    display: flex;
    align-items: center;

}

.oc-sam-header .header-search input {
    border: 1px solid #FFFFFF;
    border-radius: 0.3rem;
    width: 4.74rem;
    height: 0.36rem;
    margin-right: 0.15rem;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-size: 0.16rem;
    padding: 0 0.15rem;
}

.oc-sam-header .header-search input::placeholder {
    color: rgba(255, 255, 255, 0.40);
}

.oc-sam-header .header-search input:focus {
    background-color: #fff;
    color: #000000;
}

.oc-sam-header .header-search input:focus-visible {
    background-color: #fff;
    color: #000000;
}

.oc-sam-header .header-search .search-icon {
    cursor: pointer;
    font-size: 0.18rem;
    color: #fff;
    position: absolute;
    right: 0.16rem;
    background-color: #2C63A0;
    padding: 0.06rem 0.18rem;
    border-radius: 0.18rem;
}

/* .oc-sam-header .header-search input:focus+.search-icon path {
    stroke: #000
} */


.oc-sam-header .social-media {
    display: flex;
    align-items: center;
    gap: 0.2rem;

}

.oc-sam-header .social-media a {
    display: flex;
    position: relative;
    width: 0.23rem;
    height: 0.23rem;
}

.oc-sam-header .social-media a img {
    width: 100%;
    height: 100%;
}

.cart-number-icon {
    position: absolute;
    display: inline-block;
    display: none;
    width: 0.2rem;
    height: 0.2rem;
    border-radius: 50%;
    background-color: #FF3434;
    color: white;
    text-align: center;
    line-height: 0.2rem;
    font-size: 0.1rem;
    right: -0.1rem;
    top: -0.03rem;
}

/* search下拉抽屉 */
.header-search .search-down {
    position: absolute;
    width: 4.75rem;
    height: 4rem;
    overflow: auto;
    overscroll-behavior: contain;
    top: 0.5rem;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    border-radius: 6px;
    padding: 0 0.15rem;
}

.header-search .search-down .search-data-item {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-size: 0.16rem;
    line-height: 0.19rem;
    padding: 0.1rem 0;
    border-bottom: 1px solid #ADADAD;
    cursor: pointer;
    color: #7B7B7B;
    display: flex;
    /* align-items: center; */
    align-items: flex-start;
    gap: 0.12rem;
}

.header-search .search-down .search-data-item .search-data-text {
    color: #2C63A0;
    font-family: Roboto;
    font-size: 0.16rem;
    font-weight: 400;
    line-height: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

}

.header-search .search-down .search-data-item img {
    width: 0.57rem;
}

.header-search .search-down .search-data-item:last-child {
    border-bottom: none;
}
.menu-search-powder{
    display: flex;
    justify-content: space-between;
    gap: 0.4rem;
    margin: 0 0.05rem 0 1rem;
    height: 100%;
}
.oc-sam-mobile-header {
    display: none;
}
.oc-main-sam-menu{
    font-size: 0.2rem;
    height: 100%;
}
.oc-main-sam-menu-item,.oc-main-sam-menu-item-a,.menu-title-wrapper{
    height: 100%;

    display: flex;
    align-items: center;
}
.oc-main-sam-menu-item .special-menu{
    height: 100%;
}
.oc-sam-header .menu-title{
    color: #fff;
}
@media screen and (max-width: 1025px) {
    .oc-sam-header {
        display: none;
    }

    .oc-sam-mobile-header {
        display: flex;
        position: fixed;
        box-sizing: border-box;
        width: 100%;
        top: 0;
        justify-content: space-between;
        align-items: center;
        height: 0.8rem;
        background-color: #25323A;
        z-index: 999;
    }

    .oc-sam-mobile-header .menu-wrapper {
        display: flex;
        width: 0.44rem;
        height: 0.44rem;
        margin-left: 0.34rem;
    }

    .oc-sam-mobile-header .logo-wrapper {
        display: flex;
        width: 2.83rem;
        height: 0.47rem;
    }


    .oc-sam-mobile-header .search-cart-wrapper {
        display: flex;
        gap: 0.15rem;
        margin-right: 0.34rem;
    }

    .oc-sam-mobile-header .search-cart-wrapper .search-icon {
        width: 0.35rem;
        display: flex;
    }

    .oc-sam-mobile-header .search-cart-wrapper .cart-icon {
        position: relative;
        display: flex;
        width: 0.44rem;
        height: 0.44rem;
    }

    .oc-sam-mobile-header .search-cart-wrapper .mobile-cart-number-icon {
        position: absolute;
        top: 0;
        font-size: 0.16rem;
        background-color: #FF3434;
        border-radius: 50%;
        color: #fff;
        width: 0.28rem;
        height: 0.28rem;
        line-height: 0.28rem;
        text-align: center;
        right: -0.1rem;
    }

    .oc-sam-mobile-header .logo-wrapper img {
        width: 100%;
        height: 100%;
    }

    .oc-sam-mobile-header .mobile-drop-down {
        width: 100%;
        position: absolute;
        top: 0;
        background-color: #fff;
        display: none;
    }

    .oc-sam-mobile-header .mobile-drop-down .close-icon-wrapper {
        display: flex;
        width: 100%;
        height: 0.8rem;
        align-items: center;

        padding: 0 0.34rem;
    }

    .oc-sam-mobile-header .mobile-drop-down .close-icon-wrapper .close-icon {
        width: 0.28rem;
        height: 0.28rem;
    }

    .oc-sam-mobile-header .mobile-drop-down .nav-content {
        padding: 0 0.90rem;
        max-height: 94vh;
        overflow: auto;
    }

    .oc-sam-mobile-header .mobile-drop-down .first-nav {
        font-family: 'Anton';
        font-style: normal;
        font-weight: 400;
        font-size: 0.36rem;
        line-height: 0.54rem;
        color: #221C1C;
        margin-bottom: 0.54rem;
    }

    .oc-sam-mobile-header .mobile-drop-down .first-nav:first-child {
        margin-top: 0.45rem;
    }

    .oc-sam-mobile-header .mobile-drop-down .first-nav .first-nav-title {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .oc-sam-mobile-header .mobile-drop-down .second-nav {
        display: none;
        max-height: 60vh;
        overflow: auto;
    }

    .oc-sam-mobile-header .mobile-drop-down .second-nav li {
        margin-bottom: 0.4rem;
    }

    .oc-sam-mobile-header .mobile-drop-down .second-nav li:first-child {
        margin-top: 0.3rem;
    }

    .oc-sam-mobile-header .mobile-drop-down .first-nav a {
        font-family: 'Anton';
        font-style: normal;
        font-weight: 400;
        font-size: 0.36rem;
        line-height: 0.5rem;
        color: #221C1C;
    }

    .oc-sam-mobile-header .mobile-drop-down .second-nav li a {
        font-family: 'Roboto';
        font-style: normal;
        font-weight: 400;
        font-size: 0.32rem;
        line-height: 0.38rem;
        color: #221C1C;
        opacity: 0.6;
    }

    .oc-sam-mobile-header .mobile-search-wrapper {
        display: none;
        width: 100%;
        height: 1rem;
        position: absolute;
        top: 0;
        box-sizing: border-box;
        justify-content: space-between;
        align-items: center;
        background-color: #fff;
    }

    .oc-sam-mobile-header .mobile-search-wrapper .sam-input-mobile-wrapper {
        display: flex;
        width: 100%;
        height: 0.76rem;
        margin: 0.12rem;
        border: 1px solid #ccc;
        box-sizing: border-box;
        align-items: center;
        gap: 0.3rem;
    }

    .oc-sam-mobile-header .mobile-search-wrapper input {
        width: 100%;
        height: 100%;
        font-family: 'Roboto';
        font-style: normal;
        font-weight: 400;
        font-size: 0.28rem;
        line-height: 33rem;
    }

    .oc-sam-mobile-header .mobile-search-wrapper input::placeholder {
        color: #221C1C;
        opacity: 0.2;
    }

    .oc-sam-mobile-header .mobile-search-wrapper .close-icon {
        display: flex;
        margin-left: 0.2rem;
    }

    .oc-sam-mobile-header .mobile-search-wrapper .close-icon svg {
        width: 0.35rem;
        height: 0.35rem;
    }

    .oc-sam-mobile-header .mobile-search-wrapper .search-icon {
        display: flex;
        margin-right: 0.2rem;
    }

    .oc-sam-mobile-header .mobile-search-wrapper .search-icon svg {
        width: 0.44rem;
        height: 0.44rem;
    }

    .mobile-search-wrapper .search-down {
        box-sizing: border-box;
        width: 100%;
        height: 5rem;
        overflow: auto;
        overscroll-behavior: contain;
        position: absolute;
        top: 1rem;
        display: flex;
        flex-direction: column;
        background-color: #fff;
        box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
        /* border-radius: 6px; */
        padding: 0.15rem 0.15rem;
        border-bottom-left-radius: 0.12rem;
        border-bottom-right-radius: 0.12rem;
    }

    .mobile-search-wrapper .search-down .search-data-item {
        font-family: 'Roboto';
        font-style: normal;
        font-weight: 400;
        font-size: 0.28rem;
        padding: 0.1rem 0;
        border-bottom: 1px solid #ADADAD;
        cursor: pointer;
        color: #2C63A0;
        display: flex;
        align-items: self-start;
        gap: 0.12rem;

    }

    .mobile-search-wrapper .search-down .search-data-item img {
        width: 1rem;
    }

}
