/* 移动设备样式 - 媒体查询 */
.footer {
    display: none;
}
/* 针对最大宽度为768px的设备（平板竖屏） */
@media screen and (max-width: 768px) {
    .footer {
        display: block;
    }
    .top-nav {
        height: 3.5rem;
        padding: 0;
        padding-left: 1rem;
    }
    .top-nav-left {
        width: 100% !important;
        justify-content: space-between !important;
    }
    .top-nav-left img {
        margin-left: 0 !important;
        height: 2.5rem;
    }
    .top-nav-menu {
        margin-left: 0;
    }
    .top-nav-menu .menu-item {
        display: none;
    }
    .main-container {
        margin-top: 3.2rem;
        height: calc(100vh - 3.5rem);
    }
    .tab-bar {
        gap: 0.2rem;
        height: 7rem;
        border-radius: 0;
    }
    .search-box input {
        width: 100%;
        height: 2.3rem;
    }
    .content {
        border-radius: 0;
        height: calc(100% - 2.7rem);
    }
    .sidebar-item-sub {
        padding: 0.2rem .5rem;
        font-size: 0.8rem;
        font-weight: normal;
    }
    .sidebar-item-sub.selected {
        font-weight: 700;
    }
    .sidebar-AIFrontier , .sidebar-RapidProfit , .sidebar-Workflow {
        height: 2.7rem;
    }
    .content-box {
        height: calc(100% - 3rem);
        padding: 0;
        padding-bottom: 1rem;
    }
    .card-list {
        padding: 0 .5rem 1rem .5rem;
        margin-top: .3rem;
    }
}

/* 针对最大宽度为480px的设备（手机） */
@media screen and (max-width: 480px) {
    .top-nav {
        height: 3.5rem;
    }
    
    .top-nav-left img {
        margin-left: 0 !important;
    }
    
    .top-nav-menu .menu-item {
        display: none;
    }
}

/* 针对超小屏幕设备的额外调整 */
@media screen and (max-width: 360px) {
    .top-nav {
        height: 3.5rem;
    }
    
    .top-nav-left img {
        margin-left: 0 !important;
    }
    
    .top-nav-menu .menu-item {
        display: none;
    }
}

/* 侧边栏组件横向摆放和滚动 */
@media screen and (max-width: 768px) {
    .tab-bar .sidebar-AIFrontier.active, .tab-bar .sidebar-RapidProfit.active, .tab-bar .sidebar-Workflow.active {
        display: flex;
    }
    .tab-bar > div {
        width: 100% !important;
    }
    .sidebar-AIFrontier,
    .sidebar-RapidProfit,
    .sidebar-Workflow {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        width: 100%;
        padding: 10px 0;
        gap: 8px;
    }
    
    /* 隐藏滚动条 */
    .sidebar-AIFrontier::-webkit-scrollbar,
    .sidebar-RapidProfit::-webkit-scrollbar,
    .sidebar-Workflow::-webkit-scrollbar {
        display: none;
    }
    
    /* 横向滚动容器中的项目 */
    .sidebar-AIFrontier > div,
    .sidebar-RapidProfit > div,
    .sidebar-Workflow > div,
    .sidebar-AIFrontier > .sidebar-item-sub,
    .sidebar-RapidProfit > .sidebar-item-sub,
    .sidebar-Workflow > .sidebar-item-sub {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}

/* 在较小屏幕上的进一步调整 */
@media screen and (max-width: 480px) {
    .sidebar-AIFrontier,
    .sidebar-RapidProfit,
    .sidebar-Workflow {
        gap: 6px;
        padding: 8px 0;
    }
}

/* 底部tab切换样式 */
@media screen and (max-width: 768px) {
    .footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 3rem;
        background: #fff;
        border-top: 1px solid #e5e7eb;
        z-index: 1000;
        display: block;
    }
    
    .bottom-tab-bar {
        display: flex;
        justify-content: space-around;
        align-items: center;
        height: 100%;
        width: 100%;
    }
    
    .bottom-tab-item {
        flex: 1;
        text-align: center;
        padding: 8px 0;
        font-size: 14px;
        color: #666;
        cursor: pointer;
        transition: color 0.2s;
    }
    
    .bottom-tab-item.active {
        color: #409eff;
        font-weight: bold;
    }
    
    .bottom-tab-item:hover {
        color: #409eff;
    }
}