.blackTop {
    background-color: rgba(0, 0, 0, 0);
    color: rgb(0, 0, 0);
    height: 50px;
    width: 100%;
    position: relative;
    border-bottom: solid 1px #cfcfcf;
    transition-duration: 0.2s;
}
.blackTop,
.topleft > ul > li a {
    font-size: 17px;
}
.blackTop > div > div:first-child {
    height: 100%;
    float: left;
}
.blackTop > div > div:last-child {
    text-align: right;
    line-height: 35px;
    height: 100%;
    float: right;
}
.navbar-header {
    padding-left: 0px;
    height: 100%;
}
.navbar-header > .navbar-brand {
    height: 100%;
}
.navbar-brand {
    padding: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.navbar-brand > img {
    object-fit: contain;
}
.headerAll {
    position: fixed;
    top: 0px;
    background-color: rgb(255, 255, 255);
    z-index: 9999;
    width: 100%;
}
@media (max-width: 576px) {
    .headerAll {
        position: sticky;
        top: 0;
        width: 100%;
        box-shadow: 0 2px 28px 0 rgba(0, 0, 0, 0.09);
        color: black;
    }
    .headerAllTop,
    #headerStyle {
        background-color: #fff !important;
    }
    .blackTop,
    #navMenuUl > li > a,
    .topleft > ul > li a,
    .blackTop,
    #navMenuUl > li > a,
    .topleft > ul > li a {
        color: black !important;
    }
    .breadcrumb_nav {
        margin-top: 0;
    }
}
.scrolled {
    background-color: white !important; /* 修改菜单背景色 */
    box-shadow: 0 2px 28px 0 rgba(0, 0, 0, 0.09);
}
.scrolled > .container > .row > .nav-menuFont > ul > li > a {
    color: black !important;
}

.scrolled .menu-item > .sub-menu {
    background-color: #ffffffdb !important;
}
.nav-menuFont {
    height: 100%;
}
.daohang {
    width: 90vw;
    height: 100vh;
    background-color: var(--paragraphColor);
    position: absolute;
    text-align: left;
    padding-left: 20px;
    right: 0px;
    z-index: 9999;
}
.sub-menu-pe {
    padding-left: 40px;
}
.rightTOP {
    position: relative;
    z-index: 999;
}
#navMenuUl {
    display: flex;
    white-space: nowrap;
}
#navMenuUlPE li a {
    color: white !important;
}

#navMenuUl > li {
    border-bottom: 2px solid transparent; /* 首先将所有菜单项的底部边框设为透明 */
    transition: border-bottom 0.3s ease; /* 添加过渡效果 */
}
#navMenuUl > li:hover {
    background-color: #ffffff2f;
}
#navMenuUl > li:hover,
#navMenuUl > li:first-child:not(:hover) {
    border-bottom: 2px solid var(--mainColor2); /* 当鼠标悬停或者第一个项没有被悬停时，添加底部边框 */
}
#navMenuUl > li > a {
    color: rgb(0, 0, 0);
    background-color: #ffffff00;
}
#navMenuUl > li {
    font-size: 18px;
    font-weight: bold;
    height: 100%;
}
.pageProduct > img {
    object-fit: cover;
}
.overlay {
    width: 100%;
    color: white;
    position: absolute;
    top: 40%;
    left: 30%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    align-content: flex-start;
}
.overlay > div a {
    font-size: 17px;
    text-decoration: none;
    color: white;
}
.overlay > div a:last-child {
    font-weight: bold;
}
.overlay > h1 {
    font-size: 60px;
    font-weight: bold;
    text-shadow: 3px 1px 4px var(--mainColor2);
} /* 媒体查询 */
.topleft > ul li {
    float: left;
    margin-left: 20px;
}
.topright > ul > li {
    line-height: 50px;
}
.sub-menu-child {
    text-align: left;
}
.menu-item-child > .sub-menu-child > li:hover a {
    color: var(--mainColor2);
}
.sub-menu-child > li > a {
    color: gray !important;
    font-size: 15px;
}
#navMenuUl > li:hover > a {
    color: var(--mainColor2) !important;
}
.menu-item:hover > a {
    color: var(--mainColor2) !important;
}
.menu-item:hover > .sub-menu {
    backdrop-filter: brightness(1.5) blur(2px);
    display: block;
    position: fixed;
    background-color: #efefefdb;
    text-align: center;
    color: black;
    min-width: 100%;
    padding: 30px calc(20% - 60px);
    white-space: nowrap;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    left: 0px;
    height: auto;
}
.menu-item .menu-item-child {
    transition: background-position 0.5s ease;
    padding: 5px 20px;
    white-space: nowrap;
    text-wrap: nowrap; /* 标准语法 */
    -webkit-text-wrap: nowrap; /* 适用于WebKit（Chrome、Safari等） */
    -moz-text-wrap: nowrap; /* 适用于Firefox */
    -ms-text-wrap: nowrap; /* 适用于IE/Edge */
    display: flex;
    flex-direction: column;
    position: relative;
}
.sub-menu > .menu-item-child > a {
    color: var(--mainColor2);
    font-weight: bold !important;
}
.menu-item > .sub-menu > li {
    font-size: 16px;
    margin-right: 20px;
    padding: 5px 20px;
    text-align: left;
}
.menu-item > .sub-menu > li > a {
    color: var(--mainColor2);
    font-weight: bold !important;
}
.menu-item > .sub-menu li:hover > a {
    color: var(--mainColor2);
    transform: scale(1.01);
}
.menu-item > .sub-menu {
    min-height: 120px;
    display: none;
    box-shadow: inset 0px 2px 6px 1px #80808035;
    transform: translateY(10px);
    backdrop-filter: brightness(2) blur(8px);
}

.moveTop {
    /* transform: translateY(-200%) !important; */
    /* position: absolute; */
    color: black !important;
}
.topleft > ul > li a {
    color: rgb(0, 0, 0);
}
.moveTop > .container > .topleft > ul > li a {
    color: black;
}
#myclick {
    position: absolute;
    right: 40px;
    top: 60px;
}
/* 如果检测到视口宽度小于768px, 认为是手机端, left隐藏 */
@media (max-width: 768px) {
    * {
        flex-wrap: wrap;
        width: auto;
    }
    #navMenuUl {
        display: none;
    }
    .topleft {
        line-height: 25px;
    }
    .pageProduct {
        height: 150px;
    }
    .pageProduct > img {
        height: 150px;
        object-fit: cover;
    }
    .overlay {
        top: 30%;
        left: 50%;
    }
    .overlay > h1 {
        font-weight: bold;
        font-size: 30px;
    }
    .overlay > div a {
        font-size: 13px;
    }
    .navbar-header {
        padding-left: 10px !important;
    }

    .nav-menuFont {
        height: auto;
    }
    .nav-menuFontPE {
        overflow-y: auto;
        height: 90%;
    }
    #navMenuUlPE li {
        display: flex;
    }
    .menu-item:hover > .sub-menu {
        backdrop-filter: brightness(0.5) blur(0px);
        background-color: #626262db !important;
        min-width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        height: auto;
        position: relative;
        transform: translateY(-5px);
        flex-direction: column;
        padding: 5px;
    }
}
