/*---------------------------------------------------------------------- /
导航栏设置 PC-开始
----------------------------------------------------------------------- */


/* PC-导航栏盒子设置 */

.custom-navbar {
    height: 80px;
    border-bottom: 1.5px solid #e7e7e7;
    background-image: url("../images/index/bg-1-1.jpg");
    background-repeat: no-repeat;
    position: fixed;
    /* 配合fixed-top确保定位稳定 */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    /* Bootstrap固定导航栏默认层级，避免被其他元素覆盖 */
    height: 80px;
    /* 明确导航栏高度，与body的padding-top对应 */
    display: flex;
    align-items: center;
    /* 垂直居中导航栏内容 */
    transition: none !important;
    /* 禁用过渡动画，避免抖动 */
    will-change: position;
    /* 优化渲染性能 */
}


/* 可选：禁用导航栏过渡动画（如果动画导致抖动） */

.navbar {
    transition: none !important;
    /* 优化渲染性能，减少重排重绘 */
    will-change: position;
}


/* 导航栏下拉后-透明罩 */

.nav-bg-1 {
    background: white;
    opacity: 0.9;
}


/* LOGO配置 */

.custom-navbar .navbar-brand>.logo-css-1 {
    padding-left: 20px;
    width: 260px;
    display: block;
}

.custom-navbar .navbar-brand>.logo-css-2 {
    padding-left: 20px;
    width: 260px;
    display: none;
}


/* 一级导航栏 */


/* 一级导航栏-一级目录 */

.custom-navbar li.nav-item {
    height: 80px;
    padding-top: 20px;
    padding-left: 0;
}


/* 一级导航栏-一级目录-间隔 */

.custom-navbar .navbar-nav li:nth-child(n+1) {
    padding-right: 20px;
}


/* 一级导航栏-一级目录-最后间隔 */

.custom-navbar .navbar-nav li:last-child {
    padding-right: 10px;
}


/* 一级导航栏-一级目录-超链接*/

.custom-navbar li {
    min-width: 85px;
}

.custom-navbar li>a {
    letter-spacing: 1px;
    font-size: 11.5px;
    font-weight: 800;
    line-height: 22px;
    color: white;
    cursor: pointer;
    /* background-color: yellow; */
}


/* hover取消默认的hover效果 */


/* 一级导航栏触发效果 */

.dropdown-menu {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}


/* 二级子目录 */

.dropdown-menu.navtop {
    /* 子目录距离子目录间距 */
    margin-top: 22px;
    border-radius: 0;
    background-color: transparent;
    border: none;
    background-color: black;
    opacity: 0.9 !important;
    padding: 0;
}


/* 添加到您的样式表中 */

.dropdown-menu-left {
    right: 0 !important;
    left: auto !important;
}


/* 二级子目录-超链接*/

.dropdown-menu.navtop li a {
    font-size: 11px;
    line-height: 20px;
    font-weight: 800;
    color: white;
}


/* 二级子目录-盒子-选中效果 */

.navbar .dropdown-item:hover {
    background-color: transparent !important;
    color: white !important;
}


/* 二级子目录-选项选中效果 */

.navbar .dropdown-menu>li:hover {
    background-color: #35ad54;
}


/* 二级子目录-增加间距-第一层 */

.dropdown-menu>li:nth-child(1) {
    padding-top: 8px;
    padding-bottom: 5px;
    padding-left: 5px;
}


/* 二级子目录-增加间距-第2+层 */

.dropdown-menu>li:nth-child(n+2) {
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 5px;
}


/*---------------------------------------------------------------------- /
导航栏设置 PC-结束
----------------------------------------------------------------------- */


/*---------------------------------------------------------------------- /
导航栏设置 H5-开始
----------------------------------------------------------------------- */

.navh5 {
    position: fixed;
    /* 固定定位 */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    /* 高于页面内容，低于侧边栏（offcanvas默认1040） */
    background-image: url("../images/index/bg-1-1.jpg");
    background-repeat: no-repeat;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    height: 60px;
    /* 轻微阴影提升体验 */
    padding: 0 15px;
    transition: none !important;
    /* 禁用过渡动画，避免抖动 */
    will-change: position;
    /* 优化渲染性能 */
    display: none;
}


/* NAV_H5导航栏-logo设置 - flex布局*/

.navh5 .imgbox {
    flex: 8;
}


/* NAV_H5导航栏-logo设置-盒子设置 */

.navh5 .imgbox .h5-logo-css-1 {
    display: block;
    cursor: pointer;
}

.navh5 .imgbox .h5-logo-css-2 {
    display: none;
    cursor: pointer;
}


/* NAV_H5导航栏-logo设置-img */

.navh5 .imgbox img {
    height: 35px;
}


/* 导航栏-背景 */

.h5-nav-bg-1 {
    background: white !important;
}


/* NAV_H5导航栏-按钮 */

.navh5 .buttonbox {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    flex: 2;
    color: white;
}


/* NAV_H5导航栏-语言切换按钮 */

.buttonbox .btnqhyy {
    border-radius: 8px;
    font-weight: 500;
    padding: 0px 16px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 12px;
    line-height: 20px;
    font-weight: 800;
    color: white;
}


/* 子目录下边距 12.5px临时 */

.buttonbox .dropdown-menuqhyy {
    margin-top: 12.5px !important;
    border-radius: 0px;
}

.dropdown-menuqhyy .dropdown-item {
    font-size: 12px !important;
    line-height: 24px !important;
    letter-spacing: 1.5px !important;
    font-weight: 600;
}


/* 针对特定下拉菜单 */

.dropdown-menuqhyy li {
    border-bottom: 1px solid #e0e0e0;
    /* 可自定义颜色 */
}


/* 移除最后一项的下边框，避免多余线条 */

.dropdown-menuqhyy li:last-child {
    border-bottom: none;
}


/* 取消选中效果 */


/* 核心：移除btnqhyy按钮的聚焦/选中边框 */

.btnqhyy:focus,
.btnqhyy:active,
.btnqhyy:focus-visible,
.btnqhyy:not(:disabled):not(.disabled):active {
    /* 移除默认的聚焦外边框 */
    outline: none !important;
    /* 移除Bootstrap按钮的active/focus状态的box-shadow */
    box-shadow: none !important;
    /* 可选：如果还有边框，直接清空border */
    border: none !important;
}


/* NAV_H5导航栏-导航栏按钮*/

.buttonbox .icon-liebiaomoshi_kuai {
    font-size: 24px !important;
    line-height: 30px;
    font-weight: 800;
    padding-left: 5px;
    cursor: pointer;
}


/* 弹出框-自定义全屏 Offcanvas 样式 */

.offcanvas-fullscreen {
    width: 380px !important;
}


/* 弹出框-头部-文字部分 */

.offcanvas-header>div {
    padding-top: 15px;
    font-size: 11px;
    line-height: 30px;
    font-weight: 800;
    letter-spacing: 1.5px;
}


/* 弹出框-头部-图片 */

.offcanvas-header img {
    width: 25px;
}


/* 弹出框-内容部分 */

.offcanvas-body {
    padding: 1rem;
    margin-top: -10px;
}


/* h5导航栏文字 h6 主目录 */

.widget h6 a {
    color: black;
    font-size: 12px;
    line-height: 20px;
    letter-spacing: 1.5px;
    text-decoration: none;
    padding-left: 10px;
    font-weight: 800;
}


/* h5导航栏文字-子目錄 */

.widget .link li {
    height: 30px;
}


/* h5导航栏文字-子目錄-超链接 */

.widget .link li a {
    color: black;
    font-size: 11px;
    line-height: 20px;
    letter-spacing: 1px;
    text-decoration: none;
    font-weight: 500;
}


/* 导航栏退出按钮 */

.icon-tuichu1 {
    font-size: 25px !important;
    line-height: 30px;
    font-weight: 600;
    margin-top: 10px;
    cursor: pointer;
}


/* 导航栏内部布局优化 */


/* 以下响应式布局 */

@media screen and (max-width: 1279px) {
    /* 显示H5导航栏 */
    .navh5 {
        display: flex;
        flex-direction: row;
        align-items: center;
    }
    /* 关闭PC导航栏 */
    .custom-navbar {
        display: none !important;
    }
}

@media screen and (max-width: 580px) {
    /* NAV_H5导航栏-logo设置 - flex布局*/
    .navh5 .imgbox {
        flex: 4;
    }
    /* 自定义全屏 Offcanvas 样式 */
    .offcanvas-fullscreen {
        width: 100vw !important;
        /* 关键：宽度设为视口宽度的100% */
        max-width: 100vw !important;
        /* 覆盖Bootstrap的max-width限制 */
        /* 可选：如果需要它也从左侧开始滑入，可以添加 left: 0 */
        /* 默认 offcanvas-end 是 right: 0，这里我们保持它从右边滑入但占满全屏 */
    }
    /* 为了在移动设备上体验更好，可以去掉顶部的内边距 */
    .offcanvas-fullscreen .offcanvas-header {
        padding-top: env(safe-area-inset-top);
        /* 适配刘海屏 */
    }
    .offcanvas-fullscreen .offcanvas-body {
        padding-bottom: env(safe-area-inset-bottom);
        /* 适配底部安全区 */
    }
    .offcanvas-header {
        height: 60px;
    }
}


/*---------------------------------------------------------------------- /
导航栏设置 H5-结束
----------------------------------------------------------------------- */