.nav-header {
    /* max-width: var(--z-header-max-width); */
    width: 100%;
    position: fixed;
    /* top:0; */
    left: 0;
    top: var(--z-body-top-position);
    z-index: 8;
    /* left: 50%; */
    /* transform: translateX(-50%); */
}

nav {
    display: flex;
    background: #E6E6E6;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
    padding: var(--z-header-wrap-padding);
    position: relative;
    height: var(--z-header-content-height);
    line-height: var(--z-header-content-height);
    box-shadow:0px 6px 12px rgba(0,0,0,0.2);
}

nav ul,
nav > div {
    height: var(--z-header-content-height);
    padding: 0px 32px;
}
ul.nav-right {
    margin-top: 0;
}

.nav-left {
    height: 100%;
    padding: 0;
}

.nav-left img {
    height: 100%;
    width: initial;
}

.nav-right {
    display: flex;
    gap: 30px;
    color: #333333;
    align-items: center;
    margin-bottom: 0;
    padding: 0;
}

.nav-right li {
    padding: 0 15px;
    position: relative;
    overflow: hidden;
}
/* 导航的三角形 */
.nav-right li .triangle {
    display: block;
    width: 26px;
    height: 26px;
    background-color: #fff;
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 125%) rotate(45deg);
    /* clip-path: polygon(0% 100%, 0% 100%, 100% 0%, 100% 0%); */
    clip-path: polygon(0% 0%, 0% 100%, 100% 0%, 0% 0%);
    /* 应用动画 */
    /* animation: revealFromBottom 1.5s ease-out forwards; */
    transition: transform 0.2s ease-out ;
    transition-delay: 0.05s;
    pointer-events: none;
    opacity: 0;
    /* 优化性能 */    
    will-change: transform;
    display: none;
}
.nav-right li.show-dropdown .triangle {
    display: block;
    opacity: 1;
}

.nav-right li.show-dropdown .triangle.active {  
    transform: translate(-50%, 50%) rotate(45deg);
}


.nav-right a {
    padding: 2px 5px;
}

.nav-right > li > a {
    cursor: pointer;
}

.nav-right > li > a:hover,
.nav-right > li > a:focus {
    background-color: var(--z-page-yellow-color);
    color: #333333;
}

.nav-right .tpl-btn.primary {
    background-color: #ffffff;
    cursor: pointer;
    height: 58px;
    margin-left: 8px;
}

.nav-right .tpl-btn.primary:hover,
.nav-right .tpl-btn.primary:focus {
    background-color: var(--z-page-yellow-color);
    color: var(--z-link-color);
}

.nav-right .show-dropdown {
    position: relative;
}

/* .nav-right .show-dropdown::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-left: 16px solid transparent;
    border-right: 16px solid transparent;
    border-bottom: 18px solid #ffffff;
    position: absolute;
    left: 50%;
    transform: translateX(-50%) scaleY(0);
    bottom: 0;
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    transform: translateX(-50%) scaleY(1);
    opacity: 1;
} */

.nav-header-open, .nav-header-close {
    display: none;
}

/* 移动端样式 */
@media screen and (max-width: 1158px) {

    .nav-header {
        width: 100%;
    }

    .nav-header .nav-left {
        height: 30px;
        padding: 0;
    }

    .nav-header-open {
        display: flex;
        align-items: center;
        cursor: pointer;
    }

    .nav-right {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        position: fixed;
        width: 100vw;
        height: 100vh;
        display: flex;
        flex-direction: column;
        background: #ffffff;
        gap: 0;
        z-index: 8;
        left: 0;
        top: 0;
        padding-top: 50px;
    }

    .nav-right.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-right li {
        width: 100%;
        padding: 16px;
        border-bottom: 1px solid var(--z-body-bg-color1);
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
    }

    .nav-right li::after {
        content: '';
        display: block;
        width: 0;
        height: 0;
        border-top: 4px solid transparent;
        border-bottom: 4px solid transparent;
        border-left: 8px solid #000;
    }

    .nav-right .tpl-btn {
        margin-top: 16px;
    }

    .nav-header-close {
        display: block;
        position: absolute;
        right: 10px;
        top: 10px;
        background: none;
    }

    nav ul,
    nav>div {
        padding: 6px 0;
    }

    .nav-right .show-dropdown::after {
        display: none;
    }
}
