/* 所有非移动端设备隐藏 */
#mobileFixed {
    display: none;
}

@media (max-width: 768px) {
    #mobileFixed {
        display: block;
    }
}

/* ========= 移动端底部抽屉式窗口样式开始 ========= */
@media (max-width: 768px) {
    /* 隐藏原有的右侧固定窗口 */
    .st-float-window {
        display: none !important;
    }

    /* 移动端悬浮按钮 - 位置固定在右下角 */
    .mobile-float-btn {
        position: fixed;
        bottom: 20px;
        right: 10px;
        width: 50px;
        height: 50px;
        background: linear-gradient(135deg, #0052cc, #0a6cff);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 20px rgba(0, 82, 204, 0.4);
        z-index: 99998;
        cursor: pointer;
        transition: all 0.3s ease;
        border: none;
    }

    .mobile-float-btn:active {
        transform: scale(0.95);
    }

    .mobile-float-btn svg {
        width: 28px;
        height: 28px;
        stroke: white;
        fill: none;
    }

    /* 底部抽屉遮罩层 */
    .mobile-drawer-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 99999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .mobile-drawer-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* 底部抽屉窗口 */
    .mobile-drawer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        border-radius: 24px 24px 0 0;
        z-index: 100000;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
        box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
        max-height: 85vh;
        display: flex;
        flex-direction: column;
    }

    .mobile-drawer.active {
        transform: translateY(0);
    }

    /* 抽屉头部 - 带拖拽条 */
    .mobile-drawer-header {
        padding: 16px 20px 12px;
        border-bottom: 1px solid #eef2f9;
        position: relative;
        text-align: center;
        flex-shrink: 0;
    }

    .mobile-drawer-drag {
        width: 40px;
        height: 4px;
        background: #cbd5e1;
        border-radius: 4px;
        margin: 0 auto 12px;
    }

    .mobile-drawer-title {
        font-size: 18px;
        font-weight: 700;
        color: #0052cc;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .mobile-drawer-title img {
        height: 24px;
    }

    .mobile-drawer-close {
        position: absolute;
        right: 20px;
        top: 16px;
        background: #f1f5f9;
        border: none;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: #64748b;
        font-size: 18px;
    }

    .mobile-drawer-close:active {
        background: #e2e8f0;
    }

    /* 抽屉滚动内容区 */
    .mobile-drawer-content {
        flex: 1;
        overflow-y: auto;
        padding: 20px;
        padding-bottom: 30px;
    }

    .mobile-drawer-content p {
        color: #1e293b;
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 16px;
    }

    .mobile-drawer-content a {
        display: block;
        color: #0052cc;
        text-decoration: underline;
        font-size: 14px;
        margin-bottom: 12px;
        word-break: break-all;
    }

    .mobile-drawer-content .quick-link {
        background: #eef3ff;
        padding: 14px;
        border-radius: 12px;
        margin-top: 16px;
        text-align: center;
    }

    .mobile-drawer-content .quick-link a {
        margin-bottom: 0;
        font-weight: 600;
        text-decoration: none;
    }
}

/* ========= 移动端底部抽屉式窗口样式结束 ========= */