/* ========== 底部导航栏 ========== */
.tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 6px 0;
    padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
    z-index: 500;
    max-width: 450px;
    margin: 0 auto;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    padding: 4px 16px;
    min-width: 60px;
    text-decoration: none;
    color: #999;
    transition: color 0.15s ease;
}

.tab-item.active {
    color: #27ae60;
}

.tab-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-label {
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
}

/* 页面底部留出导航栏高度的空间 */
.page-with-tabbar {
    padding-bottom: 70px;
}
