/* 移动端头部样式 */
@media (max-width: 768px) {
    /* 隐藏桌面版元素 */
    .sidebar {
        display: none !important;
    }
    
    .top-search-bar {
        display: none !important;
    }
    
    /* 主内容区调整 */
    .main-content {
        margin-left: 0 !important;
        padding-top: 90px !important; /* 为移动端头部和导航栏留出空间 */
        padding-bottom: 60px !important; /* 为底部导航留出空间 */
    }
    
    /* 移动端顶部导航 */
    .mobile-header {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 50px;
        background: #fff;
        border-bottom: 1px solid #e8e8e8;
        z-index: 1001;
        align-items: center;
        padding: 0 15px;
        justify-content: space-between;
    }
    
    .mobile-logo-link {
        display: flex;
        align-items: center;
    }
    
    .mobile-logo {
        height: 25px;
        width: auto;
    }
    
    .mobile-search-box {
        flex: 1;
        margin: 0 15px;
        position: relative;
    }
    
    .mobile-search-box input {
        width: 100%;
        height: 32px;
        padding: 0 35px 0 15px;
        border: 1px solid #e8e8e8;
        border-radius: 16px;
        background: #f7f7f7;
        font-size: 14px;
        outline: none;
    }
    
    .mobile-search-box i {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: #999;
        font-size: 14px;
    }
    
    /* 移动端导航栏 */
    .mobile-nav-bar {
        display: block !important;
        position: fixed;
        top: 50px;
        left: 0;
        right: 0;
        height: 40px;
        background: #f8f8f8;
        border-bottom: 1px solid #e8e8e8;
        z-index: 1000;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .mobile-nav-bar::-webkit-scrollbar {
        display: none;
    }
    
    .mobile-nav-list {
        display: flex;
        align-items: center;
        height: 100%;
        padding: 0 10px;
        white-space: nowrap;
    }
    
    .mobile-nav-link {
        display: inline-flex;
        align-items: center;
        padding: 0 12px;
        height: 100%;
        color: #666;
        text-decoration: none;
        font-size: 14px;
        flex-shrink: 0;
        position: relative;
    }
    
    .mobile-nav-link.active {
        color: #ff2e4d;
        font-weight: 500;
    }
    
    .mobile-nav-link.active::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 12px;
        right: 12px;
        height: 2px;
        background: #ff2e4d;
    }
    
    .mobile-nav-link i {
        margin-right: 4px;
        font-size: 14px;
    }
    
    .mobile-nav-badge {
        display: inline-block;
        margin-left: 4px;
        padding: 2px 6px;
        background: #ff4444;
        color: #fff;
        font-size: 10px;
        font-weight: bold;
        border-radius: 10px;
        line-height: 1;
    }
    
    .mobile-nav-divider {
        display: inline-block;
        width: 1px;
        height: 20px;
        background: #e8e8e8;
        margin: 0 8px;
        vertical-align: middle;
    }
    
    /* 移动端底部导航 */
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 50px;
        background: #fff;
        border-top: 1px solid #e8e8e8;
        z-index: 1001;
        justify-content: space-around;
        align-items: center;
    }
    
    .mobile-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #666;
        text-decoration: none;
        font-size: 11px;
        gap: 3px;
    }
    
    .mobile-nav-item.active {
        color: #ff2e4d;
    }
    
    .mobile-nav-item i {
        font-size: 20px;
    }
    
    .mobile-nav-item-text {
        font-size: 11px;
        margin-top: 2px;
    }
}

/* 默认隐藏移动端元素 */
.mobile-header,
.mobile-nav-bar,
.mobile-bottom-nav {
    display: none;
}