/**
 * 禁用移动端适配 - 配合 viewport 缩放方案
 * 浏览器以 1440px 宽度渲染页面，移动端自动整体缩放
 * 只需隐藏移动端专用元素即可
 */

/* ========== 隐藏移动端专用元素 ========== */
.xymob-head,
.xymob-menu,
.xymob-search,
.footer3,
.footer3-qrcode,
.mobile-sidebar-modules,
.mobile-only,
.page-mob-tool,
.xymob-left-close-btn {
    display: none !important;
}

/* ========== 全局基础重置 ========== */
html, body {
    min-height: 100vh;
}
body {
    display: flex;
    flex-direction: column;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
/* 让主内容区自动填充 body 高度，页脚粘底 */
.page-container {
    flex: 1;
}

/* ========== 恢复桌面端导航显示 ========== */
.top2 {
    display: block !important;
}

/* ========== 导航栏整体缩放修复 ========== */
/* 强制导航栏容器不换行，保持单行布局 */
.top2 .wh {
    flex-wrap: nowrap !important;
    width: 92%;
    max-width: 1520px;
}

/* Logo区域 */
.top2 .logo {
    flex-shrink: 0;
    width: 180px;
    display: flex;
    align-items: center;
}

.top2 .logo img {
    max-width: 100%;
    height: auto;
    max-height: 50px;
    display: block;
}

/* 导航菜单区域 */
.top2 .tnav {
    flex: 1;
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap !important;
    overflow: visible !important;
}

/* 导航菜单项 */
.top2 .x-menu {
    display: inline-flex !important;
    flex-wrap: nowrap;
    white-space: nowrap;
}
.top2 .x-menu::after {
    display: none !important;
}

.top2 .x-menu > li {
    float: none;
    flex-shrink: 0;
}

.top2 .x-menu > li > a {
    padding: 0 0.9vw;
    white-space: nowrap;
}

/* 语言切换和二维码区域 */
.top2 .lang-switch,
.top2 .tewm {
    flex-shrink: 0;
    display: flex !important;
}

.top2 .tewm {
    margin-left: 15px !important;
}

.top2 .lang-switch {
    margin-left: 10px !important;
}

/* 子菜单宽度修复：适应长文字，防止溢出 */
.top2 .x-sub-menu {
    width: auto !important;
    min-width: 220px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    white-space: nowrap !important;
}

.top2 .x-sub-menu > li > a {
    white-space: nowrap !important;
    padding: 0.5em 1.2em !important;
}

/* ========== 窗口小于1440px时，导航栏整体缩放 ========== */
@media (max-width: 1439px) {
    .top2 .wh {
        
        transform: scale(calc(100vw / 1440));
        transform-origin: left top;
    }
}

/* ========== 针对所有可能生效的媒体查询进行终极覆盖 ========== */
@media screen and (max-width: 768px),
       screen and (max-width: 640px),
       screen and (max-width: 995px),
       screen and (max-width: 990px),
       screen and (max-width: 1200px),
       screen and (max-width: 1600px),
       screen and (max-width: 1800px) {

    .flexed {
        flex-wrap: nowrap !important;
    }
}
