/* 导航栏样式 */
.nav-container-index #nav-search-container{
    display: none;
}
.main-nav {
    padding: 15px calc((100% - 1404px) / 2);  /* 动态计算边距 */
    background-color: #FFFFFF;
    box-sizing: border-box;
    height: 80px;
}
.nav-info {
    max-width: calc(100%- 360px);
    align-items: center!important;
}
.nav-left {
    margin-right: 50px;
    width: 180px;
}
.nav-left .logo {
    height: 50px;
    width: auto;
}

.nav-list {
    display: flex;
    justify-content: space-between;
}

/* 首页导航列表特殊样式 */
.nav-right {
    flex: 1;
}
.nav-right .nav-list li a{
    font-size: 16px;
}
.nav-item {
    cursor: pointer;
    position: relative;
}
.nav-item:not(:last-child) {
    margin-right: 16px;
}
.active-li {
    padding: 0 16px;
}
.active-li::before {
    content: '';
    background-image: url('../images/active_lf.png');
    background-size: 100%;
    position: absolute;
    left: 0;
    top: 1px;
    width: 12px;
    height: 18px;
}
.active-li::after {
    content: '';
    background-size: 100%;
    background-image: url('../images/active_rh.png');
    position: absolute;
    right: 0;
    top: 1px;
    width: 12px;
    height: 18px;
}
.nav-item a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    transition: color 0.3s;
}

/* 导航搜索框样式 */
.nav-search {
    display: flex;
    align-items: center;
    margin-left: 48px;
    max-width: 18%; /* 限制最大宽度 */
    width: 100%; /* 响应式宽度 */
    position: relative;
}

.nav-search-input {
    flex-grow: 1; /* 允许输入框自适应 */
    height: 40px;
    padding: 0 16px;
    font-size: 14px;
    color: #858585;
    outline: none;
    border: none;
    max-width: 360px; /* 限制最大宽度 */
    width: 100%; /* 响应式宽度 */
    background-color: #F6F6F6;
    border-radius: 40px;
}

.nav-search-button {
    height: 20px;
    margin-left: 8px;
    background: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0; /* 防止按钮被压缩 */
    position: absolute;
    right: 16px;
    outline: none;
    border: none;
}
.nav-search-button span {
    font-size: 14px;
    color: #333;
}
.nav-search-button img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    margin-right: 6px;
    padding-left: 16px;
    border-left: 1px solid #dddddd;
    display: inline-block;
}

/*wap样式*/
@media screen and (max-width: 750px) {
    .nav-container-index #nav-search-container{
        display: flex;
    }
    .main-nav {
        width: 100%;
        padding: 0;
        height: auto;
    }
    .nav-content {
        padding: 0.4rem 1rem;
    }
    .nav-info {
        width: 44px;
        margin-left: 0;
    }
    .nav-left {
        margin-right: 35px;
        width: 44px;
        flex: none;
    }
    .nav-left .logo {
        width: 44px;
        height: 35px;
    }
    .nav-search {
        margin-left: 0;
        width: calc(100% - 80px);
        max-width: 100%;
    }
    .nav-search-input {
        max-width: 100%;
    }
    .nav-wap {
        width: 100%;
        box-sizing: border-box;
        position: relative;
        overflow: hidden;
    }
    .nav-wap .nav-list {
        width: 100%;
        padding: 0.8rem 4rem 0.8rem 1rem;
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: flex-start;
        box-sizing: border-box;
    }
    .nav-wap .nav-list .nav-item {
        flex: none;
    }
    .nav-wap .nav-list::-webkit-scrollbar {
        display: none;
    }
    .nav-wap .show-nav-menu {
        position: absolute;
        right: -3px;
        top: 0.8rem;
        width: 50px;
        height: 24px;
        background-color: #fff;
        z-index: 10;
        padding-left: 10px;
        box-sizing: border-box;
    }
    .nav-wap .show-nav-menu img {
        width: 16px;
        height: 20px;
        margin: auto;
        object-fit: cover;
    }

}
