/* ============================================================
   手机端底部菜单（微信底部菜单样式）
   样式独立成文件，供未引入 style.css 的页面（用户中心 / 分销页）共用
   电脑端隐藏，手机端（<=768px）显示在页面底部
   ============================================================ */

.tabbar {
    display: none;
}

@media (max-width: 768px) {
    .tabbar {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1200;
        background: rgba(255, 255, 255, 0.98);
        border-top: 1px solid #ececf0;
        box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
        padding-bottom: env(safe-area-inset-bottom);
    }

    .tabbar-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 6px 0 5px;
        text-decoration: none;
        color: #8a94a6;
        font-size: 11px;
        line-height: 1.2;
        -webkit-tap-highlight-color: transparent;
    }

    .tabbar-icon {
        font-size: 21px;
        line-height: 1;
        margin-bottom: 2px;
    }

    .tabbar-text {
        font-size: 11px;
    }

    .tabbar-item.active {
        color: #667eea;
    }

    /* 中间「预定」按钮：微信风格的凸起主按钮 */
    .tabbar-center .tabbar-icon {
        width: 44px;
        height: 44px;
        margin-top: -16px;
        margin-bottom: 0;
        border-radius: 50%;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        color: #fff;
        box-shadow: 0 4px 10px rgba(102, 126, 234, 0.4);
    }

    .tabbar-center .tabbar-text {
        margin-top: 2px;
        color: #8a94a6;
    }

    /* 避免底部菜单遮挡页面内容 */
    body.has-tabbar {
        padding-bottom: calc(56px + env(safe-area-inset-bottom));
    }
}
