* {
    margin: 0;
    padding: 0;
}

.navbar_top {
    width: 100%;
    min-height: 36px;
    height: auto;
    padding: 2px 0;
    background-image: url(/static/public/image/图层\ 3.png);
}

.dangqian {
    color: #002695;
} 
.navbar_box {
    width: 100%;
    height: 70px;
    min-height: 70px; 
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    background: rgba(3, 12, 36, .9);
}

.navbar {
    color: #fff;
    display: flex;
    width: 90%; 
    height: 100%; 
    margin: 0 auto;
    max-width: 1370px;
    padding-left: 5%;
    padding-right: 5%;
    align-items: center;
    justify-content: space-between;
    transition: all .3s;
    border-radius: 20px;
}

.navbar.open {
    border-radius: 20px 20px 0 0;
}

.aa_box {
    width: 50px;
    height: 100%;
}
.navbar li {
    width: 90%;
    margin: 0 auto;
    position: relative;
    text-align: left;
    color: white;
    text-decoration: none;
}

.logo {
    height: 85%;
}

.logo a {
    display: block;
    height: 100%;
}

.logo img {
    height: 100%;
    object-fit: contain;
    max-width: 90px;
}

.search-box {
    position: relative;
}

.search-box input {
    width: 200px;
    height: 30px;
    border: none;
    padding: 5px 10px;
    border-radius: 6px;
    background-color: #eff6f8;
}

.buttons {
    display: flex;
}

.buttons button {
    margin-left: 10px;
    padding: 5px 10px;
    border: none;
    cursor: pointer;
}

.login {
    color: #232c53;
    background-color: #fff;
}

.register {
    color: #fff;
    background-color: #232c53;
    border-radius: 10px;
}

#product_li img {
    max-height: 15px;
    object-fit: contain;
    position: absolute;
    right: 0;
}

#product_li {
    display: flex;
    align-items: center;
}

#productpc_ul {
    display: none;
}

#product_ul {
    padding-left: 10px;
}

.navbar li a {
    color: white;
}

.foot {
    width: 100%;
    min-height: 50px;
    height: auto;
    background-color: rgb(241, 242, 246);
    border-top: 1px solid #dcdfe6;
    border-bottom: 1px solid #dcdfe6;
    font-size: 13px;
}

.foot_box {
    width: 90%;
    min-height: 50px;
    height: auto;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.foot_box span {
    height: 40px;
    padding: 0 10px;
    display: flex;
    align-items: center;
}

.foot_box span a {
    color: black;
    padding-left: 3px;
}

#gongan a:hover {
    border-bottom: 1px solid black;
}

#icp a:hover {
    border-bottom: 1px solid black;
}

.foot_box span img {
    height: 40%;
}
 

.denglu_zhuce {
    display: none;
}
.expand-icon {
    transition: transform 0.3s ease;
    transform: rotate(90deg); 
}

.expand-icon.open {
    transform: rotate(0);
}
.submenu {
    display: none; /* 隐藏二级菜单 */ 
}
.submenu li{
    line-height: 30px;

}
/* 添加响应式设计的样式 */
@media screen and (max-width: 768px) {
    .navbar {
        position: relative;
    }

    /* 在小屏幕上隐藏导航栏和搜索框等 */
    .navbar ul,
    .search-box,
    .buttons {
        display: none;
    }

    /* 显示汉堡式图标 */
    .navbar .menu-icon {
        display: block;
        position: relative;
        width: 30px;
        height: 20px;
        cursor: pointer;
    }

    .navbar .menu-icon span {
        display: block;
        position: absolute;
        height: 4px;
        width: 100%;
        background: white;
        border-radius: 4px;
        opacity: 1;
        left: 0;
        transform: rotate(0deg);
        transition: 0.25s ease-in-out;
    }

    .navbar .menu-icon span:nth-child(1) {
        top: 0px;
    }

    .navbar .menu-icon span:nth-child(2),
    .navbar .menu-icon span:nth-child(3) {
        top: 10px;
    }

    .navbar .menu-icon span:nth-child(4) {
        top: 20px;
    }

    /* 菜单展开时的样式 */
    .navbar.open .menu-icon span:nth-child(1) {
        top: 18px;
        width: 0%;
        left: 50%;
    }

    .navbar.open .menu-icon span:nth-child(2) {
        transform: rotate(45deg);
    }

    .navbar.open .menu-icon span:nth-child(3) {
        transform: rotate(-45deg);
    }

    .navbar.open .menu-icon span:nth-child(4) {
        top: 18px;
        width: 0%;
        left: 50%;
    }

    /* 展开菜单时的导航栏样式 */
    .navbar.open #navbarMenu {
        display: flex;
        flex-direction: column;
    }

    .navbar.open .search-box,
    .navbar.open .buttons {
        display: block;
    }

    .search-box,
    .buttons {
        display: block;
    }

    #navbarMenu {
        width: 100%;
        flex-direction: column;
        gap: 10px; 
        padding-top: 10px;
        padding-bottom: 20px;
        background-color: #ffffff;
        border-radius: 10px;
        position: absolute;
        left: 0;
        top: 70px;
        text-align: center;
        background: rgba(3, 12, 36, .9);
        z-index: 999;
        transition: all .3s;
        border-radius: 0px 0px 20px 20px;
    }

    #navbarMenu li a {
        font-size: 14px;
    }
    #navbarMenu li img { 
        padding: 0 3px;
        max-width: 12px;
        object-fit: contain;
    }
}

@media (min-width:768px) {
    .expand-icon{
        display: none;
    }
    #navbarMenu{
        list-style-type: none;
        margin: 0;
        padding: 0;
        display: flex;
        align-items: center;
    }
    .submenu{
        position: absolute;
        left: 0; 
        top: 40px;
        width: auto;
        display: none;
        flex-wrap: wrap;
        background-color: white;
    }
    .submenu li{
        padding: 0; 
        width: 100%;
        height: 100%;
        white-space: nowrap;
        border-bottom: 1px solid #ccc;
    }
    .submenu li a{ 
        display: block;
        width: 100%;
        height: 100%;
        color: black;
    }
    .logo img {
        max-width: 140px;
    } 
    .navbarMenu li:hover .submenu{ 
        display: block;
    }
    .navbarMenu li:hover{ 
        background-color: rgb(159, 0, 13); 
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .navbarMenu li:hover .submenu li{ 
        background-color: transparent;
        padding-top: 0px;
        padding-bottom: 0px;
    } 
    .navbar li .submenu li{ 
        text-align: left;
    }
    .navbarMenu li:hover .submenu li:hover {
        background-color: rgb(205, 205, 205);
    }
    
    .denglu_kong {
        width: 20px;
        height: auto;
    }

    #pc_denglu{
        min-height: 40px;
        max-height: 40px;
        border-radius: 5%;
        padding-left: 10px;
        padding-right: 10px;
    }
    #pc_denglu a{ 
        white-space: nowrap;
    }
    .denglu_zhuce li a {
        display: flex;
        width: 100%;
        height: 100%;
        align-items: center;
    }

    .denglu_zhuce li:hover {
        background-color: rgb(213, 15, 32);
    }

    .denglu_zhuce li:hover a {
        color: white;
    }

    .denglu_zhuce {
        display: flex;
    } 

    .navbar_box {
        height: 80px; 
        width: 100%; 
        transition: all .3s;
        top: 0;
        left: 0;
        z-index: 999; 
        background: rgba(3, 12, 36, .9);
        border-bottom: 1px solid white;
    }

    .navbar_top_box {
        display: flex;
        justify-content: space-between;
    }

    .navbar_top_box_right_item {
        padding-left: 30px;
        display: flex;
        align-items: center;
    }

    .navbar_top img {
        max-height: 16px;
        object-fit: contain;
    }

    .navbar_top_box_left,
    .navbar_top_box_right_item {
        font-size: 12px;
    }

    .navbar {
        height: 100%;
        width: 80%;
        margin: 0 auto;
        background: none;
        justify-content: normal
    }

    #navbarMenu {
        padding-left: 20px;
        width: 100%;
        height: 100%;
        background: none
    }

    #shouji_denglu,
    #shouji_zhuce {
        display: none;
    }


    .navbar li {
        text-align: center;
        width: auto;
        position: relative;
        margin: 0;
        padding-right: 30px;
        padding-left: 30px;
    }

    .navbar li a {
        font-size: 14px;
    } 
    #product_li {
        position: relative;
    }

    #product_li img {
        display: none;
    }

    #productpc_ul {
        position: absolute;
        min-width: 100%;
        height: auto;
        top: 100px;
        z-index: 999;
        background-color: white;
        left: -10px;
    }

    #productpc_ul li {
        width: 100%;
        padding: 5px 10px;
        text-align: left;
        min-height: 40px;
        line-height: 40px;
        border-bottom: 1px solid #ccc;
        white-space: nowrap;
        width: auto;
        min-width: 100%;
    }

    #productpc_ul li a {
        font-size: 20px;
    }

    #product_li:hover #productpc_ul {
        display: block;
    }

    .foot {
        min-height: 30px;
        margin-top: 0px;
        border: 0;
        padding: 0;
    }

    .foot_box {
        min-height: 30px;
        position: relative;
        z-index: 999;
        background: rgb(241, 242, 246);
        width: 100%;
        border-top: 1px solid #dcdfe6;
        border-bottom: 1px solid #dcdfe6;
    }
}