/* app/web/user/css/mobile-bottom-nav.css */

.mobile-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    height: calc(72px + env(safe-area-inset-bottom));
    padding: 6px 0 env(safe-area-inset-bottom);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid #edf0f2;
    box-shadow: 0 -4px 18px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .mobile-bottom-nav-item {
    min-width: 0;
    height: 62px;
    border: none;
    background: transparent;
    color: #5f636d;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-bottom-nav-icon {
    width: 29px;
    height: 29px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-bottom-nav-icon svg {
    width: 29px;
    height: 29px;
    display: block;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.15;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-bottom-nav-text {
    font-size: 13px;
    line-height: 16px;
    font-weight: 500;
    color: currentColor;
  }

  .mobile-bottom-nav-item.active {
    color: #fb4f93;
  }

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

  /* 中间投稿按钮 */
  .mobile-bottom-nav-item.mobile-bottom-nav-create {
    gap: 0;
    transform: translateY(-4px);
  }

  .mobile-bottom-nav-create .mobile-bottom-nav-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ff6cac 0%, #f73588 100%);
    box-shadow: 0 8px 22px rgba(247, 53, 136, 0.32);
    color: #ffffff;
  }

  .mobile-bottom-nav-create .mobile-bottom-nav-icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 2.8;
  }

  .mobile-bottom-nav-create .mobile-bottom-nav-text {
    display: none;
  }

  .mobile-bottom-nav-create.active {
    color: #ffffff;
  }

  .mobile-bottom-nav-create:active {
    transform: translateY(-4px) scale(0.94);
  }
}