/* ==========================================================================
   底部导航栏样式（迁移自 components/TabBar.vue）
   被多个页面复用，由外壳 index.html 静态 <link> 直引。
   ========================================================================== */

.floating-tab-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--page-max-width);
  bottom: 0;
  height: calc(100 * var(--rpx) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: #fff;
  box-shadow: 0 calc(-2 * var(--rpx)) calc(10 * var(--rpx)) rgba(0, 0, 0, 0.1);
  z-index: 999;
}

.floating-tab-bar .tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.floating-tab-bar .tab-item.active .tab-text {
  color: #007aff;
}

.floating-tab-bar .tab-icon {
  width: calc(44 * var(--rpx));
  height: calc(44 * var(--rpx));
  margin-bottom: calc(6 * var(--rpx));
  object-fit: contain;
}

.floating-tab-bar .tab-text {
  font-size: calc(24 * var(--rpx));
  color: #666;
}
