/* ========================================
   Mobile Bottom Navigation
   移动端底部导航栏
   ======================================== */

.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.mobile-bottom-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    padding: 8px 4px;
    color: var(--text-tertiary);
    transition: all var(--transition-fast);
    position: relative;
}

.mobile-nav-item.active {
    color: var(--primary);
}

.mobile-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 0 0 3px 3px;
}

.mobile-nav-icon {
    font-size: 22px;
    line-height: 1;
    margin-bottom: 4px;
}

.mobile-nav-text {
    font-size: 11px;
    line-height: 1;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    margin-right: 8px;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.mobile-menu-btn:hover {
    background: var(--bg-tertiary);
}

.mobile-menu-btn svg {
    display: block;
}

/* 遮罩层 */
.sidebar-overlay {
    display: none;
}

/* 触摸优化 */
@media (hover: none) and (pointer: coarse) {
    .mobile-nav-item:active {
        opacity: 0.7;
    }
}

/* iOS 底部安全区域适配 */
@supports (-webkit-touch-callout: none) {
    .mobile-bottom-bar {
        padding-bottom: max(env(safe-area-inset-bottom), 8px);
    }
}

/* 暗黑模式 */
[data-theme="dark"] .mobile-bottom-bar {
    background: var(--bg-secondary);
    border-top-color: var(--border-color);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}