/* ============================================
   板块Tab切换栏样式
   ============================================ */

.tab-bar-wrapper {
  background: var(--color-bg-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.tab-bar {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab-bar::-webkit-scrollbar {
  display: none;
}

/* Tab栏Logo */
.tab-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
  margin-right: 8px;
}

.tab-item {
  position: relative;
  padding: 16px 28px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--transition-fast);
  background: none;
  border: none;
  outline: none;
  font-family: inherit;
}

.tab-item:hover {
  color: var(--color-primary);
}

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

.tab-item.is-active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-primary));
  border-radius: 2px 2px 0 0;
}

/* 内容区域 */
.tab-content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md) var(--space-2xl);
  min-height: 400px;
}

.tab-panel {
  display: none;
  animation: fadeIn 0.35s ease;
}

.tab-panel.is-active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 响应式 */
@media (max-width: 768px) {
  .tab-bar {
    padding: 0;
  }

  .tab-item {
    padding: 14px 18px;
    font-size: 14px;
  }

  .tab-content-wrapper {
    padding: var(--space-md) var(--space-sm) var(--space-lg);
  }
}
