.saas-stabs {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #E4E6ED;
    position: relative; /* 为指示线提供定位上下文 */
  padding-bottom: 8px;
}

.saas-stabs--no-border {
    border-bottom: none;
}

.saas-stabs-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

// 滚动容器
.saas-stabs-scroll-container {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.saas-stabs-nav {
  display: inline-flex;
  align-items: center;
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  position: relative;
  min-width: 100%;
  
  // 隐藏滚动条
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  
  &::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
  }
}

// 滑动按钮
.saas-stabs-scroll-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #fff;
  cursor: pointer;
  color: #666;
  font-size: 14px;
  transition: all 0.3s ease;
  flex-shrink: 0;
  z-index: 2;
  
  &:hover {
    color: var(--saas-success);
  }
  
  &:active {
    transform: scale(0.95);
  }
  
  &--left {
    margin-right: 8px;
  }
  
  &--right {
    margin-left: 8px;
  }
}

.saas-stabs-extra {
  display: flex;
  align-items: center;
  margin-left: 16px;
  flex-shrink: 0;
}

.stabs-nav-item {
  display: flex;
  align-items: center;
  cursor: pointer;
  color: var(--saas-gray-600);
  font-size: 14px;
  transition: all 0.3s ease;
  user-select: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.stabs-nav-item:hover {
    color: var(--saas-success);
}

.stabs-nav-item__active {
    color: var(--saas-success);
    font-weight: 600;
}

.stabs-nav-item__active:hover {
    background-color: transparent;
}

.stabs-nav-item__disabled {
    color: var(--saas-gray-400);
    cursor: not-allowed;
}

.stabs-nav-item__disabled:hover {
    color: var(--saas-gray-400);
    background-color: transparent;
}

.stabs-nav-item-text {
    height: 22px;
}
/* 滑动指示线 */
.stabs-nav-indicator {
    position: absolute;
    bottom: -1px;
    left: 0;
    height: 2px;
    background-color: var(--saas-success);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1px;
    z-index: 1;
    pointer-events: none; /* 确保不影响点击事件 */
}

/* 响应式设计 */
@media (max-width: 768px) {
  .stabs-nav-item {
    padding: 10px 0;
    font-size: 13px;
  }
}