/**
 * 导航栏样式文件
 * 提供底部导航栏样式定义
 * 风格：简洁、平面化
 */

/* 主题变量 */
:root {
  --primary-color: #8B4513;
  --primary-light: #A0522D;
  --primary-dark: #6B4423;
  --text-color: #2D3436;
  --text-light: #636E72;
  --nav-bg: #FFFFFF;
  --nav-inactive: #919191;
  --nav-active: #8B4513;
  --nav-height: 56px;
  --border-radius: 8px;
}

/* 底部导航栏样式 */
.mobile-tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--nav-bg);
  display: flex;
  align-items: center;
  justify-content: space-around;
  box-shadow: 0 -1px 6px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

.mobile-tabbar__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--nav-inactive);
  font-size: 12px;
  padding: 4px 0;
  position: relative;
  transition: color 0.2s ease;
}

.mobile-tabbar__item.active {
  color: var(--nav-active);
}

.mobile-tabbar__icon {
  font-size: 22px;
  margin-bottom: 2px;
}

/* 特殊的标记线样式 */
.mobile-tabbar__item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background-color: var(--nav-active);
  border-radius: 2px 2px 0 0;
}

/* 安全区域适配 */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .mobile-tabbar {
    padding-bottom: env(safe-area-inset-bottom);
    height: calc(var(--nav-height) + env(safe-area-inset-bottom));
  }
  
  body {
    padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom));
  }
}

/* 添加点击效果 */
.mobile-tabbar__item:active {
  opacity: 0.7;
} 