/* 底部导航样式 */
.van-tabbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(50px + env(safe-area-inset-bottom)); /* 总高度包含安全区域 */
    background-color: #fff;
    display: flex;
    box-shadow: 0 -1px 6px rgba(0, 0, 0, 0.05);
    z-index: 1001;
}

.van-tabbar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* 改为从顶部开始布局 */
    cursor: pointer;
    color: #666;
    text-decoration: none;
    height: 50px; /* 保持内容区域高度固定 */
    padding-top: 4px;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    margin: 0 !important;
    border: none !important;
    background: none !important;
    transition: color 0.2s ease;
}

.van-tabbar-item__icon {
    margin-bottom: 2px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.van-tabbar-item__icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.van-tabbar-item__text {
    font-size: 12px !important;
    line-height: 1;
    text-align: center;
    transform-origin: center center;
    white-space: nowrap;
    margin: 0;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    transition: transform 0.2s ease;
}

/* 当前页面激活样式 */
.van-tabbar-item[data-current="true"] {
    color: #3B82F6;
}

.van-tabbar-item[data-current="true"] .van-tabbar-item__icon,
.van-tabbar-item[data-current="true"] .van-tabbar-item__text {
    color: #3B82F6;
}

/* 点击反馈效果 */
.van-tabbar-item:active {
    opacity: 0.8;
}

.van-tabbar-item:active .van-tabbar-item__icon {
    transform: scale(0.95);
}

.van-tabbar-item:active .van-tabbar-item__text {
    transform: scale(0.95);
}

/* 页面容器过渡效果 */
.container {
    transition: opacity 0.2s ease;
} 