/* ─── Apple pill-style tab switcher（独立样式，不依赖 Webflow 默认值）─── */
/* 用法：给 .w-tabs 容器添加 apple-tabs class 即可启用 */

/* 居中容器 */
.apple-tabs.w-tabs {
  text-align: center;
}
.apple-tabs .tabs-content-2.w-tab-content {
  text-align: left;
}

/* 灰色胶囊容器 */
.apple-tabs .tabs-menu.w-tab-menu {
  position: relative;
  display: inline-flex !important;
  vertical-align: bottom !important;   /* 消除 baseline descender 空间 */
  width: auto !important;
  min-width: 0 !important;
  background-color: #f2f2f2 !important;
  border-radius: 980px !important;
  padding: 4px !important;
  flex-wrap: nowrap !important;        /* 覆盖 mobile.css: flex-wrap:wrap */
  gap: 0 !important;
  margin-bottom: 32px !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  overflow: hidden !important;         /* 裁剪圆角亚像素渲染线 */
}
.apple-tabs .tabs-menu.w-tab-menu::before,
.apple-tabs .tabs-menu.w-tab-menu::after {
  display: none !important;
  content: none !important;
}

/* 滑块（JS 注入）*/
.apple-pill-slider {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  background: #1d1d1f;
  border-radius: 980px;
  pointer-events: none;
  z-index: 0;
  /* 不用 will-change，避免合成层边界线 */
}
.apple-pill-slider.is-ready {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              width   0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 每个 tab 按钮 —— 完全独立样式，强制覆盖所有 Webflow/mobile 规则 */
.apple-tabs .tab-button-2.w-tab-link {
  /* 布局 */
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  z-index: 1 !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: auto !important;
  max-width: none !important;
  /* 间距 */
  padding: 8px 22px !important;
  margin: 0 !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  white-space: nowrap !important;
  color: #1d1d1f !important;
  text-decoration: none !important;
  -webkit-text-decoration: none !important;
  text-decoration-line: none !important;
  /* 清除所有边框/阴影/轮廓 */
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  border-radius: 980px !important;
  /* 过渡仅作用于颜色 */
  transition: color 0.35s ease !important;
  cursor: pointer !important;
}

/* 选中态：仅改颜色和字重，字号与未选中一致 */
.apple-tabs .tab-button-2.w-tab-link.w--current {
  color: #ffffff !important;
  font-weight: 500 !important;
  font-size: 16px !important;
  background-color: transparent !important;
  text-decoration: none !important;
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

/* 强制内嵌 strong / p / div 等子元素继承，防止 .p3-regular 等类覆盖 */
.apple-tabs .tab-button-2.w-tab-link *,
.apple-tabs .tab-button-2.w-tab-link.w--current * {
  font-size: inherit !important;
  font-weight: inherit !important;
  color: inherit !important;
  text-decoration: none !important;
  border: none !important;
  outline: none !important;
  width: auto !important;
  display: inline !important;
}

/* focus / active / visited 全部清除 */
.apple-tabs .tab-button-2.w-tab-link:focus,
.apple-tabs .tab-button-2.w-tab-link:active,
.apple-tabs .tab-button-2.w-tab-link:visited,
.apple-tabs .tab-button-2.w-tab-link:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
  border: none !important;
}
