/* 底部导航栏样式 */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 15px;
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 1000;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #6b7280;
  padding: 4px 8px;
  gap: 2px;
  transition: all 0.3s;
  cursor: pointer;
}

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

.bottom-nav-item.active {
  color: #3b82f6;
}

.bottom-nav-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 20px;
  transition: all 0.3s;
}

.bottom-nav-item.active .bottom-nav-icon {
  background: #dbeafe;
}

.bottom-nav-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.bottom-nav-label {
  font-size: 11px;
  font-weight: 400;
  margin-top: 2px;
}

/* 为有底部导航的页面添加底部内边距 */
.has-bottom-nav {
  padding-bottom: calc(60px + env(safe-area-inset-bottom));
}

/* 顶部返回按钮样式（与账户管理页面完全一致） */
.back-button {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  font-size: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 响应式适配 */
@media (max-width: 375px) {
  .bottom-nav-icon {
    width: 32px;
    height: 32px;
  }
  
  .bottom-nav-icon img {
    width: 20px;
    height: 20px;
  }
  
  .bottom-nav-label {
    font-size: 10px;
  }
}
