.flex {
  display: flex;
}
.items-center {
  align-items: center;
}
.justify-self-stretch {
  justify-self: stretch;
}
.justify-between {
  justify-content: space-between;
}
.flex-1 {
  flex: 1;
}
.w-full {
  width: 100%;
}
.hlxb-tabs {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  transform: translate(0);
}
.hlxb-tabs-wrap {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  flex: 1;
  margin: 0 12px;
}
.hlxb-tabs-wrap::-webkit-scrollbar {
  display: none;
}
.hlxb-tabs-list {
  position: relative;
  display: inline-flex;
  white-space: nowrap;
}
.hlxb-tabs-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  height: 100%;
  background-color: #fff;
  transition: all 0.25s ease;
}
.hlxb-tabs-item:first-child {
  position: sticky;
  left: 0;
  top: 0;
  z-index: 2;
  /* 阴影放入第一个 tab 内，随滚动进度变化 */
}
.hlxb-tabs-item:first-child .shadow {
  position: absolute;
  top: 0;
  left: 100%;
  height: 100%;
  width: 12px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0));
  opacity: 0;
  z-index: 3;
}
.hlxb-tabs-item:hover {
  color: var(--theme-color, #2b63a1);
}
.hlxb-tabs-item.is-active {
  color: var(--theme-color, #2b63a1);
  font-weight: bold;
}
.hlxb-tabs-text {
  position: relative;
  color: rgba(0, 0, 0, 0.64);
  line-height: 1;
}
.hlxb-tabs-badge {
  position: absolute;
  top: -9px;
  right: 0;
  transform: translateX(100%);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background-color: #ff2e2e;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  color: #fff;
  font-weight: normal;
  white-space: nowrap;
  z-index: 10;
  transition: all 0.2s;
}
.hlxb-tabs-badge span {
  text-align: center;
}
.hlxb-tabs-badge.is-dot {
  min-width: 6px;
  width: 6px;
  height: 6px;
  padding: 0;
  border-radius: 3px;
  top: -4px;
  right: 0;
  transform: translateX(100%);
}
.hlxb-tabs-ink {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 32px;
  z-index: 3;
  background-color: var(--theme-color, #2b63a1);
  border-radius: 1px;
  transform: translateX(0);
  will-change: transform, width;
  transition: transform 0.25s ease, width 0.25s ease;
}
