/* 底部标签栏样式 - 从styles.css抽离 */

/* 标签栏样式 */
.tab-bar {
  /* 基础样式 */
  height: 83px !important; /* iOS标准Tab Bar高度，包含底部安全区域 */
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--divider-color);
  display: flex;
  justify-content: space-around;
  padding-bottom: 30px; /* 安全区域 */
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

/* 统一处理iPhone底部安全区域 */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .tab-bar {
    padding-bottom: env(safe-area-inset-bottom) !important;
    height: calc(53px + env(safe-area-inset-bottom)) !important;
  }
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding-top: var(--spacing-sm);
  height: 49px; /* 不含底部安全区域的高度 */
  position: relative;
  transition: all 0.2s ease;
}

.tab-item:active {
  opacity: 0.7;
}

.tab-icon {
  width: 24px;
  height: 24px;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-icon svg {
  transition: all 0.2s ease;
}

.tab-label {
  font-size: 10px;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.tab-item.active .tab-icon svg path {
  fill: var(--primary-color);
}

.tab-item.active .tab-label {
  color: var(--primary-color);
  font-weight: 500;
}

.tab-item.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 4px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 50%;
  margin-bottom: 6px;
  opacity: 0.7;
}

/* 大尺寸标签样式 */
.tab-large {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: -30px;
  z-index: 1001;
  transition: transform 0.2s ease;
}

.tab-large:active {
  transform: scale(0.95);
}

.tab-large-icon {
  width: 58px;
  height: 58px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  margin-bottom: 1px;
  border: 3px solid white;
}

.tab-large-icon svg {
  width: 28px;
  height: 28px;
}

.tab-large-label {
  font-size: 10px;
  color: var(--primary-color);
  font-weight: 500;
}

/* 确保内容区有足够的底部间距 */
body .content {
  margin-bottom: 83px !important; /* 预留底部Tab Bar空间 */
  padding-bottom: var(--spacing-md);
}

/* 确保iPhone安全区域下内容区有足够的底部间距 */
@supports (margin-bottom: env(safe-area-inset-bottom)) {
  body .content {
    margin-bottom: calc(53px + env(safe-area-inset-bottom)) !important;
  }
} 