/**
 * 知心 · 全局底部导航栏样式 V7.0
 * ====================================
 * 五导航等分平铺（发现/记录/聊聊知心/社区/我的），无中间凸起药丸。
 * 选中态用主色变量；触控目标 ≥48px；全面屏 safe-area 适配。
 */
/* ========== 底部导航容器 ========== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--height-bottom-nav);
  box-sizing: border-box;
  z-index: 200;
  background-color: var(--color-nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-border-line);
  display: flex;
  align-items: center;
  /* CB-145：五项均分，中间项天然几何居中 */
  justify-content: space-around;
  padding: 0 8px;
}

/* ========== 普通Tab 基础样式 ========== */
.bottom-nav-item {
  flex: 1 1 0;
  min-width: 48px;          /* 触控目标 ≥48px（微信 H5 铁律） */
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.15s ease;
  /* 非选中态：辅助灰 */
  color: var(--color-text-secondary, #9A846A);
}

.bottom-nav-item:active {
  transform: scale(0.94);
}

.bottom-nav-item.active {
  color: var(--color-primary, #C4916C);
}

/* ========== 图标/文字通用样式 ========== */
.bottom-nav-item .zxn-icon {
  font-size: 22px;
  line-height: 1;
}
.bottom-nav__label {
  font-size: 11px;
  margin-top: 4px;
  white-space: nowrap;
}
.bottom-nav__main {
  font-size: 12px;
  font-weight: 500;
}

/* 中间按钮文字/图标强制白色 */
.bottom-nav-item--center .bottom-nav__main,
.bottom-nav-item--center .zxn-icon,
.bottom-nav-item--center svg {
  color: #ffffff !important;
}
.bottom-nav-item--center .bottom-nav__main {
  position: static;
  transform: none;
  font-size: 10px;
}

/* ========== 深色模式 ========== */
html[data-theme="dark"] {
  .bottom-nav-item {
    color: #B8A796;
  }
  .bottom-nav-item.active {
    color: var(--color-primary, #D98A98);
  }
}

/* ========== 全面屏安全区 ========== */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .bottom-nav {
    padding-bottom: env(safe-area-inset-bottom);
    height: calc(var(--height-bottom-nav) + env(safe-area-inset-bottom));
  }
}
