/* 助销宝标签页：由 SVG 规范还原为原生 HTML/CSS 组件 */
.zxb-tab-spec {
  margin-top: 28px;
  padding: 28px;
  border: 1px solid #ececec;
  border-radius: 20px;
  background: #fff;
}

.zxb-tab-spec__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.zxb-tab-spec__eyebrow {
  margin: 0 0 6px;
  color: #ff161f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
}

.zxb-tab-spec__title {
  margin: 0;
  color: #222;
  font-size: 22px;
  line-height: 1.35;
}

.zxb-tab-spec__note {
  margin: 0;
  color: #999;
  font-size: 13px;
}

.zxb-tab-spec__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.zxb-tab-demo {
  min-width: 0;
  padding: 20px;
  border: 1px solid #ededed;
  border-radius: 16px;
  background: #fff;
}

.zxb-tab-demo__name {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #555;
  font-size: 13px;
  font-weight: 600;
}

.zxb-tab-demo__index {
  color: #ff161f;
  font-size: 11px;
  letter-spacing: .08em;
}

.zxb-native-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.zxb-native-tab {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  margin: 0;
  padding: 0;
  background: none;
  color: #8d8d8d;
  font: inherit;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}

.zxb-native-tab:focus-visible {
  outline: 2px solid rgba(255, 22, 31, .28);
  outline-offset: 3px;
}

/* 样式一：状态 + 小型数字徽标 */
.zxb-tabs--status {
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.zxb-tabs--status::-webkit-scrollbar {
  display: none;
}

.zxb-tabs--status .zxb-native-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 9px;
  border: 1px solid #e8e8e8;
  border-radius: 999px;
  color: #969696;
  font-size: 12px;
  background: #fff;
}

.zxb-tabs--status .zxb-native-tab__count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  color: #fff;
  background: #ff4d55;
  font-size: 10px;
  font-weight: 700;
}

.zxb-tabs--status .zxb-native-tab.is-active {
  border-color: #ff161f;
  color: #ff161f;
  background: #fff7f7;
}

.zxb-tabs--status .zxb-native-tab.is-active .zxb-native-tab__count {
  background: #ff3038;
}

/* 样式二：文字导航 + 下划线 */
.zxb-tabs--underline {
  justify-content: space-between;
  border-bottom: 1px solid #f0f0f0;
}

.zxb-tabs--underline .zxb-native-tab {
  position: relative;
  min-width: 56px;
  height: 40px;
  padding: 0 8px 12px;
  color: #777;
  font-size: 13px;
  font-weight: 600;
}

.zxb-tabs--underline .zxb-native-tab::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: -1px;
  left: 12px;
  height: 2px;
  border-radius: 2px;
  background: transparent;
}

.zxb-tabs--underline .zxb-native-tab.is-active {
  color: #ff161f;
}

.zxb-tabs--underline .zxb-native-tab.is-active::after {
  background: #ff161f;
}

/* 样式三：轻量筛选胶囊 */
.zxb-tabs--chips {
  flex-wrap: wrap;
}

.zxb-tabs--chips .zxb-native-tab {
  min-height: 34px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #666;
  background: #f5f5f5;
  font-size: 13px;
}

.zxb-tabs--chips .zxb-native-tab.is-active {
  border-color: #ff161f;
  color: #ff161f;
  background: #fff5f5;
}

/* 样式四：分段标签 */
.zxb-tabs--segment {
  gap: 0;
  padding: 3px;
  border-radius: 10px;
  background: #f5f5f5;
}

.zxb-tabs--segment .zxb-native-tab {
  flex: 1 1 0;
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  color: #777;
  font-size: 13px;
}

.zxb-tabs--segment .zxb-native-tab.is-active {
  color: #ff161f;
  background: #fff;
  box-shadow: 0 2px 8px rgba(35, 35, 35, .08);
}

/* 同步优化助销宝手机预览中的两组标签 */
#zxb-foundation .zxb-customer-tabs.zxb-tabs-native-status {
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

#zxb-foundation .zxb-customer-tabs.zxb-tabs-native-status::-webkit-scrollbar {
  display: none;
}

#zxb-foundation .zxb-customer-tabs.zxb-tabs-native-status button {
  flex: 0 0 auto;
  min-width: 0;
  height: 27px;
  padding: 0 8px;
  border: 1px solid #e9e9e9;
  border-radius: 999px;
  color: #929292;
  background: #fff;
  font-size: 10px;
}

#zxb-foundation .zxb-customer-tabs.zxb-tabs-native-status button.is-active {
  border-color: #ff161f;
  color: #ff161f;
  background: #fff7f7;
}

#zxb-foundation .zxb-customer-tabs.zxb-tabs-native-filter button {
  position: relative;
  border: 0;
  border-radius: 0;
  background: transparent;
}

#zxb-foundation .zxb-customer-tabs.zxb-tabs-native-filter button.is-active {
  color: #ff161f;
}

#zxb-foundation .zxb-customer-tabs.zxb-tabs-native-filter button.is-active::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 0;
  left: 14px;
  height: 2px;
  border-radius: 2px;
  background: #ff161f;
}

@media (max-width: 900px) {
  .zxb-tab-spec {
    padding: 20px 16px;
    border-radius: 16px;
  }

  .zxb-tab-spec__head {
    display: block;
  }

  .zxb-tab-spec__note {
    margin-top: 8px;
  }

  .zxb-tab-spec__grid {
    grid-template-columns: 1fr;
  }
}
