header {
    position: -webkit-sticky; /* Safari 兼容 */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-color: white;
}
.top-bar {
    height: 28px;
    width: 100%;
    background-color: rgb(245, 245, 245);
    box-sizing: border-box;

}

.top-bar .hot-phone {
    text-align: right;
    line-height: 22px;


}

.nav-bar {
    height: 90px;
    display: flex;

    align-items: center;
    padding: 0 30px;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.nav-bar .log{
    /*width: 300px;*/
    flex: 0 0 25%;
}
.nav-bar .logo,img {
    height: 60px;
}
.nav-bar .search-icon{
    width: 25px;
    height: 25px;
}
.nav{
   min-width: 800px;
    flex: 1;
}
.nav ul {
    display: flex;
    justify-content: flex-end;
}
.nav .top-nav p a{
    padding:0 10px;
}
.nav .top-nav:hover a {
    color: white;
}
.nav .top-nav {
    position: relative;
    list-style: none;

}
.nav .top-nav:hover {
    /*animation: slideBackground 0.3s forwards;*/
}
@keyframes slideBackground {
    from { background-color: transparent; }
    to { background-color: var(--primary-color); }
}
.nav .top-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: -1;
}

.nav .top-nav:hover::before {
    transform: scaleX(1);
}
.sub-nav {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #F5F5F5;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    width: 245px;
    list-style: none !important;
    padding:0;

}

.sub-nav li {
    padding: 16px 12px;

}

.sub-nav li a {
    color: rgb(51,51,51) !important;
    padding:0 10px;
    text-decoration: none;
}

.nav li:hover .sub-nav {
    display: block !important;
}
.sub-nan-item-wrapper:hover{
    border-bottom: solid 1px white;
    animation: slideBackground 0.3s forwards;

}

.sub-nav-item{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.right-option{
    display: flex;
    padding-left: 10px;
    width: 100px;
    justify-content: space-around;
    flex: 0 0 auto;
}
/* 悬停子菜单项时的样式 */
.sub-nav li:hover {
    background-color: var(--primary-color);
}

.sub-nav li:hover a {
    color: white !important;
}

.sub-nav li:hover svg {
    fill: white !important;
}
.sub-nav li a{
    text-decoration: none;
    color:  rgb(51,51,51) !important;
}
.top-nav .top-nav-a{
    text-decoration: none;
    color:  rgb(51,51,51) !important;
}
.nav .top-nav:hover .top-nav-a{
    text-decoration: none;
    color: white !important;
}