@charset "utf-8";
/* 手机导航独立样式：电脑端隐藏，wap-page 布局启用手机导航。 */
.wap-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 16px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
    box-sizing: border-box;
}
.wap-topbar-logo {
    display: flex;
    align-items: center;
}
.wap-topbar-logo img {
    width: auto;
    height: 32px;
}
.wap-topbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}
.wap-topbar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #333;
    text-decoration: none;
}
.wap-topbar-icon svg {
    width: 24px;
    height: 24px;
}
.wap-hamburger-btn {
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}
.wap-drawer-overlay {
    display: none;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 9998 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, .5) !important;
}
.wap-drawer-overlay.active {
    display: block !important;
}
.wap-drawer {
    position: fixed !important;
    top: 0 !important;
    right: -280px !important;
    z-index: 9999 !important;
    width: 280px !important;
    height: 100vh !important;
    overflow-y: auto;
    background: #fff !important;
    transition: right .3s ease;
}
.wap-drawer.active {
    right: 0 !important;
}
.wap-drawer-header {
    display: flex;
    justify-content: flex-end;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
}
.wap-drawer-close {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: none;
    color: #666;
    font-size: 24px;
    cursor: pointer;
}
.wap-drawer-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}
.wap-drawer-menu li {
    border-bottom: 1px solid #f0f0f0;
}
.wap-drawer-menu li a {
    display: block;
    padding: 16px 20px;
    color: #333;
    font-size: 15px;
    text-decoration: none;
}
.wap-drawer-menu li a:hover {
    background: #f5f7fa;
}
.wap-drawer-contact {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    color: #666;
    font-size: 14px;
}
.wap-drawer-actions {
    display: flex;
    gap: 12px;
    padding: 20px;
}
.wap-drawer-btn {
    flex: 1;
    height: 40px;
    line-height: 40px;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}
.wap-drawer-btn-primary {
    background: #00aaff;
    color: #fff;
}
.wap-drawer-btn-outline {
    border: 1px solid #00aaff;
    color: #00aaff;
}

/* 手机布局下隐藏电脑顶栏，避免两套导航同时显示。 */
body.wap-page .toph,
body.wap-page .top {
    display: none !important;
}

/* 窄屏兜底：即使布局类尚未写入，也不能同时显示两套导航。 */
@media screen and (max-width: 768px) {
    body .toph,
    body .top {
        display: none !important;
    }
}

/* 电脑端始终隐藏手机导航；手机横屏由 wap-page 保留手机导航。 */
@media screen and (min-width: 769px) {
    body:not(.wap-page) .wap-topbar,
    body:not(.wap-page) .wap-drawer-overlay,
    body:not(.wap-page) .wap-drawer {
        display: none !important;
    }
}
