.sl-switchable-products {
--slsp-gap: 28px;
--slsp-border: 0px solid rgba(51, 51, 51, 0.30);
--slsp-radius: 5px;
--slsp-tab-gap: 10px;
--slsp-tab-pad: 12px 30px;
--slsp-tab-bg: #F7F7F7;
--slsp-tab-color: #333333;
--slsp-tab-active-bg: #333333;
--slsp-tab-active-color: #fff;
--slsp-link-gap: 10px;
}
.sl-switchable-products .slsp-container{
margin: 0 auto;
box-sizing: border-box;
}
.sl-switchable-products .slsp-head,
.sl-switchable-products .slsp-content{
min-width: 0;
}
.sl-switchable-products .slsp-title{
margin: 0 0 14px 0;
}
.sl-switchable-products .slsp-head-info-box {
margin-bottom: 30px;
}
.sl-switchable-products .slsp-content-tab-box {
display: flex;
height:100%;
min-height: 65px;
margin-bottom: 30px;
justify-content: flex-end;
align-items: flex-end;
}
.sl-switchable-products .slsp-image-stage {
  position: relative;
  border: none;
  border-radius: var(--slsp-radius);
  overflow: hidden;
  width: 100%;
  height: auto;
  aspect-ratio: 852 / 470;
  background: #fafafa;
}
.sl-switchable-products .slsp-image-stage picture{
height: 100%;
}
.sl-switchable-products .slsp-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s ease;
}
.sl-switchable-products .slsp-image-info{
position: absolute;
bottom: 80px;
right: 40px;
color: #fff;
display: flex;
flex-direction: column;
text-align: right;
max-width: 45%;
align-items: flex-end;
}
.sl-switchable-products .slsp-image-content{
margin-top: 14px;
}
.sl-switchable-products .slsp-image-button{
margin-top: 40px;
width: fit-content;
text-align: left;
}
.sl-switchable-products .slsp-image.is-active{
opacity: 1;
visibility: visible;
}
.sl-switchable-products .slsp-image--placeholder{
display: flex;
align-items: center;
justify-content: center;
background: repeating-linear-gradient(45deg,#f3f3f3,#f3f3f3 10px,#eee
10px,#eee 20px);
color:#999;
}
.sl-switchable-products .slsp-tabs{
display: flex;
flex-wrap: wrap;
gap: var(--slsp-tab-gap);
margin-bottom: 0px;
justify-content: flex-end;
}
.sl-switchable-products .slsp-tab{
appearance: none;
border: var(--slsp-border);
background: var(--slsp-tab-bg);
color: var(--slsp-tab-color);
padding: var(--slsp-tab-pad);
border-radius: 30px;
cursor: pointer;
line-height: 1;
transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.sl-switchable-products .slsp-tab.is-active{
background: var(--slsp-tab-active-bg);
color: var(--slsp-tab-active-color);
border-color: transparent;
}
.sl-switchable-products .slsp-panel{
display: none;
}
.sl-switchable-products .slsp-panel.is-active{
display: flex;
width: 100%;
height: 100%;
flex: 1;
}
.sl-switchable-products .slsp-links{
display: flex;
width: 100%;
height: 100%;
}
.sl-switchable-products .slsp-link-item{
margin: 0;
}
.sl-switchable-products .slsp-link{
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 14px 16px;
border: var(--slsp-border);
border-radius: var(--slsp-radius);
text-decoration: none;
color: inherit;
transition: transform .16s ease, box-shadow .16s ease;
}
.sl-switchable-products .slsp-link:hover{
transform: translateY(-1px);
box-shadow: 0 4px 18px rgba(0,0,0,.06);
}
.sl-switchable-products .slsp-link-icon{ flex: 0 0 auto; }
/* 布局：桌面左右两列，移动端上下两块 */
.sl-switchable-products .slsp-container{
display: flex;
flex-direction: column;
}
@media (min-width: 860px){
.sl-switchable-products .slsp-container{
}
}
.sl-switchable-products .slsp-head{
display: flex;
flex-direction: row;
width: 100%;
gap: 10px;
justify-content: space-between;
}
.sl-switchable-products .slsp-content{
display: flex;
flex-direction: row;
width: 100%;
gap: 10px;
justify-content: space-between;
}
.sl-switchable-products .slsp-left{
width: 60%;
}
.sl-switchable-products .slsp-right{
width: auto;
flex: 1;
}
.sl-switchable-products .product-box{
display: flex;
flex: 1;
justify-content: center;
align-items: center;
width: 100%;
background: rgb(var(--color-background));
border-radius: 5px;
}
.sl-switchable-products .product-imgbox{
max-width: 130px;
max-height: 130px;
aspect-ratio: 1 / 1;
width: 9vw;
height: 9vw;
}
.sl-switchable-products .product-imgbox img{
height:100%;
}
.sl-switchable-products .block-product-group{
display: flex;
flex-direction: column;
gap: 10px;
width: 100%;
}
.sl-switchable-products .product-infobox{
margin-top: 15px;
}
.sl-switchable-products .product-price-button{
margin-top: 8px;
}
.sl-switchable-products .product{
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
width: 100%;
height: 100%;
}
.sl-switchable-products .slsp-mobile-tabs {
display: none;
}
.sl-switchable-products .swiper {
--color-button-background: 51, 51, 51;
--color-button-text: 255, 255, 255;
--color-button-border: 51, 51, 51;
--color-button-secondary-background: 255, 255, 255;
--color-button-secondary-text: 51, 51, 51;
--color-button-secondary-border: 255, 255, 255;
}
@media (min-width: 959.01px) {
.sl-switchable-products .swiper-controls .swiper-button {
display: none;
}
.sl-switchable-products .swiper-wrapper {
display: flex;
flex-direction: column;
gap: 10px;
width: 100%;
}
.sl-switchable-products .swiper-wrapper > .swiper-slide:nth-child(n + 3)
{
display: none;
}
.sl-switchable-products product-slide {
width: 100%;
height: 100%;
}
.sl-switchable-products product-slide .swiper {
width: 100%;
height: 100%;
}
}
@media (max-width: 959px) {
.sl-switchable-products .slsp-head .slsp-right{
display: none;
}
.sl-switchable-products .slsp-mobile-tabs {
display: flex;
}
.sl-switchable-products .slsp-left{
width: 100%;
}
.sl-switchable-products .slsp-head-info-box{
padding-inline: 0px;
text-align: center;
margin-bottom: 40px;
}
.sl-switchable-products .slsp-content-tab-box{
display: flex;
width: 100%;
justify-content: flex-start;
margin-top: 20px;
}
.sl-switchable-products .block-product-group{
flex-direction: row;
}
.sl-switchable-products .slsp-content{
flex-direction: column;
}
.sl-switchable-products .slsp-content .slsp-right{
padding-inline: 0px;
}
.sl-switchable-products .product-box{
background: rgb(var(--color-background));
flex: none;
}
.sl-switchable-products .product-imgbox{
max-width: 300px;
max-height: 300px;
aspect-ratio: 1 / 1;
width: 40vw;
height: 40vw;
}
.sl-switchable-products .slsp-image-info{
position: absolute;
bottom: 40px;
right: 20px;
color: #fff;
display: flex;
flex-direction: column;
text-align: right;
max-width: 66%;
align-items: flex-end;
}
.sl-switchable-products .slsp-image-stage{
aspect-ratio: 690 / 650;
height: auto;
}
.sl-switchable-products .slsp-image-content{
margin-top: 15px;
}
.sl-switchable-products .slsp-image-button{
margin-top: 30px;
}
.sl-switchable-products .slsp-tabs{
justify-content: flex-start;
}
.sl-switchable-products .product-infobox{
margin-top: 15px;
margin-bottom: 30px;
display: flex;
flex-direction: column;
align-items: flex-start;
width: 100%;
padding-inline: 20px;
}
.sl-switchable-products .swiper-slide {
height: 100%;
}
.sl-switchable-products .swiper-slide img {
aspect-ratio: 1 / 1;
}
}

/* ===== Tab 图文展示版：保留头部与 Tab，只将文字移到右侧 ===== */
.sl-switchable-products .slsp-head .slsp-content {
  display: block;
  width: auto;
}
.sl-switchable-products .slsp-content > .slsp-left {
  width: 60%;
  min-width: 0;
}
.sl-switchable-products .slsp-content > .slsp-right {
  flex: 1;
  min-width: 0;
}
.sl-switchable-products .slsp-panel.is-active {
  display: block;
  height: auto;
}
.sl-switchable-products .slsp-text-info {
  width: 100%;
  padding: 28px 20px 0;
  color: inherit;
  text-align: left;
}
.sl-switchable-products .slsp-text-title {
  margin: 0 0 18px;
}
.sl-switchable-products .slsp-text-description {
  margin: 0;
  line-height: 1.8;
  white-space: pre-line;
}
.sl-switchable-products .slsp-image-info,
.sl-switchable-products .slsp-image-button,
.sl-switchable-products .slsp-links { display: none !important; }

@media (max-width: 959px) {
  .sl-switchable-products .slsp-content > .slsp-left,
  .sl-switchable-products .slsp-content > .slsp-right { width: 100%; }
  .sl-switchable-products .slsp-text-info { padding: 24px 0 0; }
  .sl-switchable-products .slsp-text-title { margin-bottom: 12px; }
  .sl-switchable-products .slsp-content-tab-box { min-height: 0; }
}



@media (min-width: 960px) {
  .sl-switchable-products .slsp-head,
  .sl-switchable-products .slsp-content {
    display: grid;
    grid-template-columns: minmax(0, 60fr) minmax(0, 40fr);
    column-gap: 40px;
    width: 100%;
  }

  .sl-switchable-products .slsp-head > .slsp-left,
  .sl-switchable-products .slsp-head > .slsp-right,
  .sl-switchable-products .slsp-content > .slsp-left,
  .sl-switchable-products .slsp-content > .slsp-right {
    width: 100%;
    min-width: 0;
    flex: none;
    box-sizing: border-box;
  }

  .sl-switchable-products .slsp-head .slsp-right {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
  }

  .sl-switchable-products .slsp-head .slsp-content-tab-box {
    width: 100%;
    justify-content: flex-end;
  }

  .sl-switchable-products .slsp-content .slsp-text-info {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    padding-right: 0;
    text-align: left;
  }
}


/* =====================================
   Tab 原生富文本区域
===================================== */

/* 右侧文字容器 */
.sl-switchable-products .slsp-text-info {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
  padding: 20px 0 0;
}

/* 富文本整体布局 */
.sl-switchable-products .slsp-richtext-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  min-width: 0;
}

/* 每个富文本子模块 */
.sl-switchable-products .slsp-richtext-group > * {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* 避免长文本撑破右侧区域 */
.sl-switchable-products .slsp-richtext-group {
  overflow-wrap: anywhere;
}

/* 移动端 */
@media (max-width: 959px) {
  .sl-switchable-products .slsp-richtext-group {
    gap: 16px;
  }

  .sl-switchable-products .slsp-text-info {
    padding-top: 24px;
  }
}


/* ==========================================
   移动端 Tab 图文布局
   标题 → Tab → 图片 → 文字
========================================== */

@media (max-width: 959px) {

  /* 主内容改为 Grid */
  .sl-switchable-products .slsp-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "tabs"
      "image"
      "text";
    gap: 0;
    width: 100%;
  }

  /* 将右侧容器展开，让内部元素参与 Grid 排列 */
  .sl-switchable-products .slsp-content > .slsp-right {
    display: contents;
  }

  /* Tab 排在图片前面 */
  .sl-switchable-products .slsp-mobile-tabs {
    grid-area: tabs;
    display: block;
    width: 100%;
    margin-bottom: 24px;
  }

  /* 图片排第二 */
  .sl-switchable-products .slsp-content > .slsp-left {
    grid-area: image;
    width: 100%;
    min-width: 0;
  }

  /* 右侧各 Tab 对应的文字内容 */
  .sl-switchable-products .slsp-content .slsp-panel {
    grid-area: text;
    width: 100%;
    min-width: 0;
  }

  /* 防止隐藏面板意外显示 */
  .sl-switchable-products .slsp-panel:not(.is-active) {
    display: none;
  }

  .sl-switchable-products .slsp-panel.is-active {
    display: block;
  }

  /* Tab 外层占满宽度 */
  .sl-switchable-products .slsp-mobile-tabs .slsp-content-tab-box {
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    display: block;
  }

  /* 三个 Tab 强制同一行 */
  .sl-switchable-products .slsp-mobile-tabs .slsp-tabs {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    gap: 8px;
    justify-content: space-between;
    align-items: center;
  }
.sl-switchable-products .slsp-mobile-tabs .slsp-tab {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    padding: 12px 20px;
    white-space: nowrap;
    text-align: center;
    font-size: 14px;
    line-height: 1.4;
}

  /* 图片和文字之间的距离 */
  .sl-switchable-products .slsp-image-stage {
    width: 100%;
    margin: 0;
  }

  .sl-switchable-products .slsp-text-info {
    padding-top: 28px;
  }
}


/* ==========================================
   iFLYTEK | Switchable Products 全局统一样式
   ========================================== */

/* 1. 顶部标题区域统一居中 */
@media (min-width: 769px) {

  sl-switchable-products.slsp-container .slsp-head {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 24px !important;
    margin-bottom: 36px !important;
  }

  sl-switchable-products.slsp-container .slsp-head > .slsp-left,
  sl-switchable-products.slsp-container .slsp-head > .slsp-right {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    text-align: center !important;
  }

  sl-switchable-products.slsp-container .slsp-head-info-box {
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
  }

  sl-switchable-products.slsp-container .slsp-title,
  sl-switchable-products.slsp-container .slsp-head .slsp-content {
    text-align: center !important;
  }

  /* 2. 顶部按钮移动到标题下方并居中 */
  sl-switchable-products.slsp-container .slsp-head .slsp-content-tab-box,
  sl-switchable-products.slsp-container .slsp-head .slsp-tabs {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
  }

  /* 3. 左图右文，内容垂直居中 */
  sl-switchable-products.slsp-container > .slsp-content {
    display: flex !important;
    align-items: center !important;
    gap: 36px !important;
  }

  sl-switchable-products.slsp-container > .slsp-content > .slsp-left,
  sl-switchable-products.slsp-container > .slsp-content > .slsp-right {
    flex: 1 1 0 !important;
    min-width: 0 !important;
  }

  sl-switchable-products.slsp-container > .slsp-content > .slsp-right {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-self: stretch !important;
  }
}

/* 4. 所有切换按钮的基本样式 */
sl-switchable-products.slsp-container .slsp-tab {
  border-radius: 999px !important;
  transition: background-color 0.2s ease,
              border-color 0.2s ease,
              color 0.2s ease !important;
}

/* 5. 选中状态：讯飞蓝 */
sl-switchable-products.slsp-container .slsp-tab.is-active,
sl-switchable-products.slsp-container .slsp-tab[aria-selected="true"] {
  background-color: #113652 !important;
  border-color: #113652 !important;
  color: #ffffff !important;
}

/* 6. 未选中状态 */
sl-switchable-products.slsp-container .slsp-tab:not(.is-active):not([aria-selected="true"]) {
  background-color: transparent !important;
  border-color: #d9d9d9 !important;
  color: #333333 !important;
}

/* 7. 鼠标悬停 */
@media (hover: hover) {
  sl-switchable-products.slsp-container .slsp-tab:not(.is-active):hover {
    border-color: #113652 !important;
    color: #113652 !important;
  }
}





/* 修复说明文与按钮之间的间距 */
@media (min-width: 769px) {

  sl-switchable-products.slsp-container .slsp-head {
    gap: 0 !important;
    margin-bottom: 24px !important;
  }

  sl-switchable-products.slsp-container .slsp-head > .slsp-left {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  sl-switchable-products.slsp-container .slsp-head > .slsp-right {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  sl-switchable-products.slsp-container .slsp-head-info-box {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  sl-switchable-products.slsp-container .slsp-head .slsp-content-tab-box {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}


@media (min-width: 769px) {

  /* 左图右文整体顶部对齐 */
  sl-switchable-products.slsp-container > .slsp-content {
    align-items: flex-start !important;
  }

  /* 右侧容器不再居中或拉伸 */
  sl-switchable-products.slsp-container > .slsp-content > .slsp-right {
    display: block !important;
    align-self: flex-start !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* 激活的文字面板取消居中和伸展 */
  sl-switchable-products.slsp-container .slsp-panel.is-active {
    display: block !important;
    flex: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* 移除文字各级容器的顶部空白 */
  sl-switchable-products.slsp-container .slsp-text-info,
  sl-switchable-products.slsp-container .slsp-richtext-group,
  sl-switchable-products.slsp-container .slsp-richtext-group
  .block-richtext:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  /* 标题自身不留顶部空白 */
  sl-switchable-products.slsp-container .slsp-richtext-group h4 {
    margin-top: 0 !important;
  }
}

.sl-switchable-products .slsp-tab:not(.is-active) {
  border: 1px solid #d9d9d9 !important;
}

.sl-switchable-products .slsp-tab.is-active {
  border: 1px solid #113652 !important;
}