/* 底部导航栏 - 简约风格 */
:root {
  --primary: #2563eb;
  --primary-light: #dbeafe;
  --text: #1e293b;
  --text-secondary: #64748b;
  --bg: #ffffff;
  --border: #e2e8f0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.tabbar-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 1000;
}

.tabbar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 56px;
  max-width: 640px;
  margin: 0 auto;
}

.tabbar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 11px;
  gap: 4px;
  transition: color 0.2s;
  padding: 4px 0;
}

.tabbar-item.active {
  color: var(--primary);
}

.tab-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.tab-icon-wrap .icon {
  width: 24px;
  height: 24px;
  transition: transform 0.2s;
}

.tabbar-item.active .tab-icon-wrap .icon {
  transform: scale(1.1);
}

.tab-text {
  font-size: 11px;
  font-weight: 500;
}

/* 中间凸起按钮 */
.tabbar-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  text-decoration: none;
  margin-top: -20px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.tabbar-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.tabbar-action:active {
  transform: scale(0.95);
}

.action-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-inner .icon {
  width: 24px;
  height: 24px;
}

/* 响应式 */
@media (max-width: 380px) {
  .tabbar {
    height: 52px;
  }
  
  .tabbar-action {
    width: 44px;
    height: 44px;
  }
  
  .action-inner .icon {
    width: 22px;
    height: 22px;
  }
  
  .tab-icon-wrap {
    width: 24px;
    height: 24px;
  }
  
  .tab-icon-wrap .icon {
    width: 22px;
    height: 22px;
  }
}

