html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}
.fmls {
    position: relative;
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
}
.fmls_a {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 90%;
    background: #e6f2ff; /* 淡蓝色 */
    display: flex;
    flex-direction: column;
}
.dxca_a {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 95%;
    background: #8f8e8e; /* 淡灰色 */
    z-index: 2;
}
.dxca_b {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 10px 0;
    z-index: 1;
}
/* 菜单选项样式 - 卡片式按钮容器 */
.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 18px;
    margin: 3px 8px;
    cursor: pointer;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    transition: all 0.2s;
    text-align: left;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    position: relative;
    border-left: 3px solid transparent;
}
.menu-item:hover {
    background: #f0f8ff;
    border-color: #91d5ff;
    box-shadow: 0 2px 6px rgba(24,144,255,0.1);
    transform: translateX(2px);
}

.menu-item.active {
    background: #e6f7ff;
    border-color: #69c0ff;
    border-left-color: #1890ff;
    color: #1890ff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(24,144,255,0.15);
}

/* 店铺名称 */
.shop-item-name {
    flex: 1;
    font-size: 14px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.menu-item.active .shop-item-name {
    color: #1890ff;
}

/* 右侧箭头 */
.shop-item-arrow {
    flex-shrink: 0;
    font-size: 20px;
    color: #c0c4cc;
    margin-left: 8px;
    transition: all 0.2s;
    font-weight: 300;
    line-height: 1;
}
.menu-item:hover .shop-item-arrow {
    color: #1890ff;
    transform: translateX(3px);
}
.menu-item.active .shop-item-arrow {
    color: #1890ff;
}

.fmls_b {
    position: relative;
    left: 10%;
    width: 90%;
    height: 100vh;
    background: #fff;
}
@media (max-width: 800px) {
    .fmls_a { right: 60%; }
    .fmls_b { left: 40%; width: 60%; }
}
@media (max-width: 500px) {
    .fmls_a { right: 40%; }
    .fmls_b { left: 60%; width: 40%; }
}

/* ===== 移动端顶部栏 ===== */
.mobile-topbar {
    display: none;
}

.mobile-overlay {
    display: none;
}

/* 移动端适配 ≤768px */
@media (max-width: 768px) {
    /* 移动端顶栏 */
    .mobile-topbar {
        display: flex;
        align-items: center;
        gap: 12px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
        height: 48px;
        padding: 0 16px;
        background: #409eff;
        color: #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    .mobile-hamburger {
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        display: flex;
        flex-direction: column;
        gap: 4px;
        width: 36px;
        height: 36px;
        align-items: center;
        justify-content: center;
        border-radius: 4px;
    }
    .mobile-hamburger:active {
        background: rgba(255,255,255,0.15);
    }
    .mobile-hamburger span {
        display: block;
        width: 22px;
        height: 2.5px;
        background: #fff;
        border-radius: 2px;
        transition: all 0.2s;
    }
    .mobile-current-name {
        font-size: 16px;
        font-weight: 600;
        flex: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* 移动端遮罩 */
    .mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.4);
        z-index: 90;
    }
    .mobile-overlay.active {
        display: block;
    }

    /* 左侧菜单 → 抽屉 */
    .fmls {
        padding-top: 48px;
    }
    .fmls_a {
        position: fixed !important;
        top: 48px !important;
        left: 0;
        bottom: 0;
        width: 230px !important;
        right: auto !important;
        z-index: 110 !important;
        display: block !important;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        box-shadow: 2px 0 12px rgba(0,0,0,0.1);
        border-right: none !important;
    }
    .fmls_a.drawer-open {
        transform: translateX(0);
        display: block !important;
    }

    .dxca_a {
        top: auto;
        bottom: 0;
        height: 44px;
        position: absolute;
    }
    .dxca_a .add-btn {
        font-size: 14px;
    }
    .dxca_b {
        top: 0;
        bottom: 44px;
        position: absolute;
    }
    .menu-item {
        padding: 12px 14px;
        font-size: 14px;
        text-align: left;
        margin: 2px 6px;
        border-radius: 6px;
    }
    .menu-item:hover {
        transform: none;
    }

    /* 右侧产品区域全宽 - 改用 relative 让 iframe 内部 sticky 生效 */
    .fmls_b {
        left: 0 !important;
        position: relative;
        top: 0;
        height: calc(100vh - 48px) !important;
        width: 100%;
        font-size: 12px;
        overflow: hidden;
    }

    /* iframe 适配 - 强制使用设备宽度 */
    .fmls_b iframe {
        width: 100vw !important;
        height: 100% !important;
        border: none;
        margin-left: calc((100vw - 100%) / -2);
    }

    /* 弹窗 */
    .modal {
        min-width: auto;
        width: 90%;
        max-width: 320px;
        padding: 16px;
    }
    .modal input {
        width: 90%;
        font-size: 14px;
    }
}
.add-btn {
    position: absolute;
    left: 0; top: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
    background: #409eff;
    color: #fff;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}
.add-btn:hover {
    background: #2ab5fa;
}
.dxca_b {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 5%;
    overflow-y: auto;
    z-index: 1;
    display: flex;
    flex-direction: column;
    /* align-items: center;  // 删除这行 */
    width: auto; /* 或直接删除 width 属性 */
}

/* 成员列表滚动容器滑轮样式 */
.shops-scroll-container {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 5%;
    overflow-y: auto;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

/* 滑轮样式 */
.shops-scroll-container::-webkit-scrollbar {
    width: 8px;
}

.shops-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.shops-scroll-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.shops-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Firefox滑轮样式 */
.shops-scroll-container {
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
}
.modal-mask {
    position: fixed;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal {
    background: #fff;
    padding: 24px 32px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
    min-width: 300px;
    text-align: center;
}
.modal input {
    width: 80%;
    padding: 8px;
    margin-bottom: 16px;
    font-size: 16px;
}
.modal button {
    margin: 0 8px;
    padding: 6px 18px;
    font-size: 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.modal .ok-btn { background: #409eff; color: #fff; }
.modal .ok-btn:hover { background: #66b1ff; }
.modal .cancel-btn { background: #f2f2f2; color: #333; }
.modal .cancel-btn:hover { background: #e6e6e6; }