/* 公共样式 */

/* 桌面端导航 */
.navPc {
    width: 100%;
    background-color: #fff;
    position: fixed;
    top: 0;
    z-index: 11;
}

.navPc .top {
    width: 100%;
    height: 30px;
    color: #d3d3d3;
    background-color: #2b2b2b;
    display: flex;
    justify-content: center;
    align-items: center;
}

.navPc .top .content {
    width: 80%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navPc .top .title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navPc .top .handover a {
    margin: 0 10px;
    color: #d3d3d3;
}

.navPc .top .handover a:hover {
    color: #409eff;
}

.header {
    display: flex;
    justify-content: space-between;
    width: 80%;
    margin: 0 auto;
    padding: 15px 0;
    border-bottom: solid 1px #e6e6e6;
    background-color: #fff;
}

.header .img {
    width: 20%;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.header .img img {
    width: 100%;
}

.header .phone {
    display: flex;
    align-items: center;
}

.main-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-menu > li {
    position: relative;
    margin-left: 20px;
}

.main-menu > li > a {
    color: #333;
    padding: 10px 15px;
    display: block;
    font-size: 14px;
}

.main-menu > li > a:hover,
.main-menu > li.active > a {
    color: #409eff;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    display: none;
    z-index: 100;
}

.submenu li a {
    display: block;
    padding: 10px 15px;
    color: #333;
    font-size: 14px;
}

.submenu li a:hover {
    background-color: #f5f7fa;
    color: #409eff;
}

.has-submenu:hover .submenu {
    display: block;
}

/* 移动端导航 */
.navApp {
    display: none;
    width: 100%;
    height: 60px;
    background-color: #fff;
    position: fixed;
    top: 0;
    z-index: 11;
}

.header-row {
    width: 100%;
    background-color: #fff;
    z-index: 999;
}

.header-row .row {
    width: 100%;
    display: flex;
    padding: 10px 15px;
    border-bottom: 1px solid #e6e6e6;
}

.header-row .img {
    width: 50%;
    padding: 5px 0;
}

.header-row .img img {
    width: 100%;
}

.header-row .list {
    width: 50%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    cursor: pointer;
}

.header-row .list img {
    width: 35px;
}

/* 移动端菜单 - 从上往下显示的关键样式 */
.mobile-menu {
    position: fixed;
    top: -100vh; /* 初始位置在视口上方 */
    left: 0;
    width: 100%;
    height: 100vh; /* 占满整个视口高度 */
    background-color: #fff;
    transition: transform 0.3s ease, top 0.3s ease; /* 顶部过渡动画 */
    z-index: 998;
    overflow-y: auto;
}

.mobile-menu.active {
    top: 64px; /* 激活时从顶部滑到导航栏下方 */
}

.mobile-menu ul {
    padding: 15px 0;
}

.mobile-menu li {
    border-bottom: 1px solid #e6e6e6;
}

.mobile-menu li a {
    display: block;
    padding: 15px 20px;
    color: #333;
    font-size: 16px;
}

.mobile-menu li a:hover {
    color: #409eff;
}

.mobile-menu .submenu-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 15px 20px;
    color: #333;
    font-size: 16px;
}

.mobile-menu .submenu-toggle .arrow {
    transition: transform 0.3s ease;
}

.mobile-menu .submenu-toggle.active .arrow {
    transform: rotate(180deg);
}

.mobile-submenu {
    display: none;
    background-color: #f5f7fa;
}

.mobile-submenu.active {
    display: block;
}

.mobile-submenu li a {
    padding-left: 40px;
    font-size: 14px;
}

@media only screen and (max-width: 576px) {
    .navPc {
        display: none;
    }
    .navApp {
        display: block;
    }
    .infoItem {
        width: 100% !important;
    }
    .fixed {
        height: 60px;
    }
    .hidden-sm-and-down {
        /* display: none !important; */
    }
    .footer .info .code {
        width: 50% !important;
    }
}
