/* akong-bottom-nav · Web 样式 · 用 var(--ak-*) 接 @akong/tokens */

.ak-bottom-nav {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--ak-z-sticky);
  background: var(--ak-bg-elevated);
  border-top: 1px solid var(--ak-border);
  /* iOS 安全区 inset · viewport-fit=cover 时生效 */
  padding-bottom: env(safe-area-inset-bottom, 0);
  font-family: var(--ak-font-sans);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.ak-bottom-nav__list {
  display: flex;
  justify-content: space-around;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  min-height: 52px;
}

.ak-bottom-nav__cell {
  flex: 1 1 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.ak-bottom-nav__item {
  flex: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--ak-space-1);
  /* 触摸目标 ≥ 44pt · iOS HIG */
  min-height: 44px;
  padding: var(--ak-space-1) var(--ak-space-2);
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--ak-fg-subtle);
  font-family: inherit;
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: var(--ak-tracking-tight);
  transition:
    color var(--ak-duration-fast) var(--ak-ease-out),
    opacity var(--ak-duration-fast) var(--ak-ease-out);
  outline: none;
  touch-action: manipulation;
}

.ak-bottom-nav__item:active {
  opacity: 0.7;
}

.ak-bottom-nav__item:focus-visible {
  outline: 2px solid var(--ak-border-strong);
  outline-offset: -2px;
  border-radius: var(--ak-radius-sm);
}

.ak-bottom-nav__item--active {
  color: var(--ak-fg);
  font-weight: var(--ak-weight-semibold);
}

.ak-bottom-nav__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}

.ak-bottom-nav__label {
  font-size: 10px;
  line-height: 1.2;
}

/* primary 项 · 中间突出圆按钮 (类小红书 +) */
.ak-bottom-nav__item--primary {
  color: var(--ak-fg-inverse);
  font-weight: var(--ak-weight-semibold);
  padding: 0;
  gap: 0;
}

.ak-bottom-nav__item--primary .ak-bottom-nav__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--ak-radius-full);
  background: var(--ak-fg);
  color: var(--ak-fg-inverse);
  font-size: 24px;
  font-weight: var(--ak-weight-semibold);
}
