/**
 * 底部Tab导航栏（通用）
 * 仅移动端显示，PC端隐藏
 */

/* ========== 底部Tab导航栏 ========== */
.m-tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 52px;
    background: #fff;
    display: flex;
    align-items: center;
    box-shadow: 0 -1px 6px rgba(0,0,0,0.08);
    z-index: 9999;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.m-tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #b0b0b0;
    font-size: 10px;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.15s ease;
}

.m-tab-item i {
    font-size: 22px;
    line-height: 1;
    margin-bottom: 2px;
    transition: transform 0.15s ease;
}

.m-tab-item span {
    line-height: 1;
    font-weight: 500;
}

.m-tab-item.active {
    color: #1890ff;
}

.m-tab-item.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background: #1890ff;
    border-radius: 0 0 2px 2px;
}

.m-tab-item.active i {
    transform: scale(1.1);
}

/* PC端隐藏 */
@media screen and (min-width: 769px) {
    .m-tab-bar {
        display: none !important;
    }
}

/* 移动端页面底部预留高度 */
@media screen and (max-width: 768px) {
    body {
        padding-bottom: 56px;
    }
}
