
/* ============================================================
 * Novaris 移动端修复
 * 解决 el-drawer 定位/z-index 失效导致的侧边菜单遮挡
 * ============================================================ */

/* 抽屉遮罩层 */
.el-drawer__wrapper {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 3000 !important;
    background: rgba(0, 0, 0, 0.5) !important;
    overflow: hidden !important;
}

/* 抽屉本体 */
.el-drawer {
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 72% !important;
    max-width: 320px !important;
    z-index: 3001 !important;
    display: flex !important;
    flex-direction: column !important;
    background: #fff !important;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15) !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
    padding: 20px 0 !important;
}

.el-drawer.rtl { right: 0 !important; left: auto !important; }
.el-drawer.ltr { left: 0 !important; right: auto !important; }

.el-drawer__body {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 12px 24px !important;
}

.el-drawer__header {
    padding: 16px 24px !important;
    margin-bottom: 0 !important;
}

/* 移动端头部：假数据通知条不要遮挡 */
@media screen and (max-width: 768px) {
    /* 顶部提示条下移，避免压住 logo 和按钮 */
    .layui-layer.layui-layer-msg,
    .layui-layer-msg {
        top: 96px !important;
        max-width: 92vw !important;
    }

    /* 移动端 header 内元素间距 */
    .header-box {
        padding: 0 12px !important;
    }

    /* 主内容两侧留白，避免贴边截断 */
    .body-box,
    .body_one,
    .body_two {
        padding-left: 16px !important;
        padding-right: 16px !important;
        box-sizing: border-box !important;
    }

    /* 卡片最小字号，避免文字溢出 */
    .body_two_box1 h1,
    .body_two_box1 h2 {
        font-size: 22px !important;
        line-height: 1.35 !important;
        word-break: break-word !important;
    }

    /* 导航文字在小屏不要换行 */
    .nav-box a, .nav-item a {
        white-space: nowrap !important;
        font-size: 14px !important;
    }
}
/* ============================================================
 * Novaris 移动端修复 v2
 * ============================================================ */

@media screen and (max-width: 768px) {
    /* 客服悬浮按钮缩小并下移，避免遮挡正文 */
    .el-image[style*="position: fixed"],
    div[style*="position: fixed"][style*="bottom: 24px"] {
        width: 48px !important;
        height: 48px !important;
        bottom: 18px !important;
        right: 14px !important;
        z-index: 100 !important;
    }
    .el-image[style*="position: fixed"] img,
    div[style*="position: fixed"][style*="bottom: 24px"] img {
        width: 100% !important;
        height: 100% !important;
    }

    /* 页面底部留白，避免最后一段被悬浮按钮盖住 */
    body {
        padding-bottom: 72px !important;
    }

    /* 正文段落两侧再多留 4px，避免贴边 */
    .body_two, .body_one {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* 段落文字不要被按钮压住：给卡片底部留空间 */
    .body_two_box1, .body_two_box2 {
        padding-bottom: 28px !important;
    }
}
/* v3: 客服按钮再上移 + 内容底部留白加大 */
@media screen and (max-width: 768px) {
    .el-image[style*="position: fixed"],
    div[style*="position: fixed"][style*="bottom: 24px"] {
        width: 44px !important;
        height: 44px !important;
        bottom: 76px !important;
        right: 12px !important;
        opacity: .92 !important;
    }
    body { padding-bottom: 140px !important; }
    /* 页面最后一张卡片额外留白 */
    .body_two_box1:last-child,
    .body_two_box2:last-child,
    .body_one:last-child {
        margin-bottom: 100px !important;
    }
}
/* ============================================================
 * 通知条重新定位：固定底部，不遮挡任何内容
 * ============================================================ */
.layui-layer.layui-layer-msg,
.layui-layer-msg {
    position: fixed !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    top: auto !important;
    bottom: 96px !important;
    max-width: min(92vw, 420px) !important;
    background: rgba(17, 24, 39, 0.92) !important;
    color: #fff !important;
    border-radius: 24px !important;
    padding: 10px 18px !important;
    font-size: 13px !important;
    box-shadow: 0 6px 24px rgba(0,0,0,.28) !important;
    border: none !important;
    z-index: 2000 !important;
    pointer-events: none !important;
    animation: nvToastIn .28s ease-out !important;
}
.layui-layer-msg .layui-layer-content {
    color: #fff !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}
@keyframes nvToastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(12px); }
    to   { opacity: .95; transform: translateX(-50%) translateY(0); }
}

/* 移动端：通知条不要压住底部按钮 */
@media screen and (max-width: 768px) {
    .layui-layer-msg { bottom: 110px !important; font-size: 12px !important; }
}
