/* 顶部欢迎栏 */

.header_nav {
    width: 100%;
    background: #fff;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, .3);
}

.top-bar {
    height: 30px;
    line-height: 30px;
    padding: 0 20px;
    background: #f5f5f5;
    font-size: 12px;
    color: #666;
    
}
.left_right_div {
    display: flex;
    justify-content: space-between;
}
.lang-switch {text-align: right;}
.lang-switch a {
    color: #666;
    text-decoration: none;
    margin-left: 10px;
}

/* Logo+搜索+电话区域 */
.header-main {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.header-main .container {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
}
.logo-box {
    display: flex;
    align-items: center;
}
.a_logo {
    display: inline-block;
    width: 45%;
}
.logo {
    width: 41%;
    width: auto;
    height: auto;
    display: inline-block;
    margin-right: 10px;
}
.logo-text h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 5px;
}
.logo-text p {
    font-size: 14px;
    color: #666;
}
.search-tel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-items: flex-end;
    gap: 5px;
    justify-content: flex-end;
}
.search-box {
    position: relative;
    width: 100%;
}
.search-input {
    height: 36px;
    width: 100%;
    padding: 0 10px;
    border: 1px solid #ddd;
    outline: none;
}
.search-btn {
    position: absolute;
    right: 0;
    top: 0;
    width: 40px;
    height: 36px;
    background: #0088ff;
    background: #b48250;
    background: #96551d;
    border: none;
    color: #fff;
    cursor: pointer;
}
.tel-box {
    font-size: 19px;
    color: #333;
    padding-left: 40px;
    background: url(../images/icon_tel.jpg) center left no-repeat;
}
.tel-num {
    color: #ff4400;
    color: #96551d;
    font-size: 18px;
    font-weight: bold;
}

.mobile-fixed-bar {
    display: none;
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    padding: 10px 10px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 998;
    /* 缓缓出现的动画 */
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
/* 显示固定栏的激活样式 */
.mobile-fixed-bar.show {
    position: relative;
    top: 0;
    opacity: 1;
    transform: translateY(0);
}

/* PC端导航栏 - 核心修改：添加下拉菜单样式 */
.nav-pc {
    background: #0066cc;
    background: #b48250;
    background: #96551d;
    height: 50px;
    line-height: 50px;
    padding: 0 20px;
    position: relative; /* 为下拉菜单定位做准备 */
}
.nav-list {
    display: flex;
    list-style: none;
    flex-wrap: nowrap;
    justify-content: space-around;
    position: relative;
}
.nav-item {
    margin-right: 1px;
    position: relative; /* 子菜单相对当前项定位 */
}
.nav-item a {
    display: block;
    padding: 0 25px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: all .5s ease;
}
.nav-item a:hover {color: #fff;}
.nav-item>a:hover, .nav-item.active>a {
    background: #0088ff;
    background: #96551d;
    background: #b48250;
}

/* 二级下拉菜单样式 */
.sub-nav {
    display: none; /* 默认隐藏 */
    position: absolute; /* 绝对定位 */
    top: 50px; /* 紧贴导航栏下方 */
    left: 0;
    background: #fff; /* 白色背景 */
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 999; /* 确保在最上层 */
    list-style: none;
    /*min-width: 150px;*/ /* 最小宽度 */
    width: 100%;
    text-align: center;
}
.sub-nav li {
    height: 40px;
    line-height: 40px;
}
.sub-nav li a {
    padding: 0 5px;
    color: #333; /* 文字黑色 */
    font-size: 14px;
    background: #fff;
    transition: all .5s ease;
}
.sub-nav li a:hover,
.sub-nav li.active>a {
    background: #f5f5f5; /* 悬浮灰色背景 */
    color: #0066cc; /* 文字变主色 */
    color: #b48250;
}
/* 鼠标悬浮显示下拉菜单 */
.nav-item:hover .sub-nav {
    display: block;
}

/* 手机端导航按钮（默认隐藏） */
.nav-mobile-btn {
    display: none;
    width: 40px;
    height: 40px;
    width: 35px;
    height: 35px;
    background: #0066cc;
    background: #b48250;
    color: #fff;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

/* 手机端导航栏（默认隐藏）- 适配二级菜单 */
.nav-mobile {
    display: none;
    background: #0066cc;
    background: #b48250;
    padding: 10px 0;
}
.nav-mobile-list {
    list-style: none;
}
.nav-mobile-item {
    position: relative;
}
.nav-mobile-item a {
    display: block;
    padding: 4px 10px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    border-top: 1px solid #0055bb;
    border-bottom: 1px solid #0055bb;
    border-color: #96551d;
}
.nav-mobile-item a:focus {color: #fff;}
.nav-mobile-item a:hover {
    color: #fff;
    background: #0088ff;
    background: #96551d;
}
.nav-mobile .nav-mobile-item.active>a {background: #96551d;}
/* 手机端二级菜单 */
.sub-nav-mobile {
    display: none;
    background: #0055bb;
    background: #b48250;
    list-style: none;
}
.sub-nav-mobile li a {
    padding-left: 40px; /* 缩进显示 */
    font-size: 14px;
}
.sub-nav-mobile>li.active>a {
    background: #96551d;
    background: #d16910;
}
/* 手机端下拉箭头 */
.dropdown-arrow {
    position: absolute;
    right: 15px;
    top: 10px;
    color: #fff;
    font-size: 12px;
}

.nav_li {
    position: relative;
    padding: 5px 10px;
    text-align: center;
    margin: 0;
}
.mobile-fixed-bar.show .nav_li {margin-top: 60px;}
.nav_li .form {}
.nav_li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    padding: 0;
    margin: 5px 10px;
    display: inline-block;
    border-color: transparent;
}


@media (max-width: 1199px){
    .a_logo {display: inline-block;width: 25%;}
    .logo {
        width: 200px;
    }
    .logo_2 {
        width: 200px;
        width: auto;
    }
    .nav_mobile_btn {
        position: absolute;
        right: 10px;
        top: 10px;
        top: 5px;
        width: 35px;
        height: 35px;
    }
    .nav-pc {
        display: none; /* 隐藏PC导航 */
    }
    .nav-mobile-btn {
        display: block; /* 显示手机导航按钮 */
    }
    .lang-switch {
        text-align: right;
    }
    .lang-switch a {margin-right: 10px;margin-left: 0;}
}

/* 响应式适配（手机端） */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    .header_nav .header-main .container {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        padding: 5px;
        margin: 0 auto;
        width: 100%;
    }
    .header-main {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
        padding: 5px;
    }
    .search-tel {
        width: 100%;
        justify-content: space-between;
        width: auto;
    }
    ..logo-box {width: auto;}
    .search-input {
        width: 100%;
    }
    .left_right_div {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    .top-bar {
        height: auto;
        line-height: inherit;
        padding: 5px;
        display: none;
    }
    .search-box,.tel-box {display: none;}
    /* 手机端显示固定栏 */
    .mobile-fixed-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    /* 滚动后隐藏原有的top-bar和header-main */
    .scroll-hide {
        opacity: 0;
        height: 0;
        padding: 0 20px;
        overflow: hidden;
    }
}

@media (max-width: 1199px) {
    .a_logo {
        display: inline-block;
        width: 50%;
    }
    .logo_2,.logo {
        width: auto;
    }
}
@media (max-width: 999px) {
    .a_logo {
        display: inline-block;
        width: 100%;
    }
}
@media (max-width: 768px) {
    .logo-box,.search-tel {width: auto;}
    .a_logo {
        display: inline-block;
        width: 55%;
    }
    .logo_2,.logo {
        width: auto;
    }
}
@media (max-width: 600px) {
    .a_logo {
        display: inline-block;
        width: 65%;
    }
    .logo_2,.logo {
        width: auto;
    }
}
@media (max-width: 500px) {
    .a_logo {
        display: inline-block;
        width: 70%;
    }
    .logo_2,.logo {
        width: auto;
    }
}
@media (max-width: 400px) {
    .a_logo {
        display: inline-block;
        width: 80%;
    }
    .logo_2,.logo {
        width: auto;
    }
}