/* 当前轮精准修复：页眉白底状态、产品系列导航居中、语言切换不改变版面 */
:root{
  --biodex-header-ink:#111827;
  --biodex-header-muted:#667085;
  --biodex-header-line:rgba(17,24,39,.12);
}

body .biodex-current-managed-header,
body .biodex-lv-header,
body header,
body nav{
  transition:background-color .18s ease,color .18s ease,border-color .18s ease,box-shadow .18s ease,backdrop-filter .18s ease!important;
}

body.biodex-current-header-white .biodex-current-managed-header,
body.biodex-lv-header-hover .biodex-current-managed-header,
body.biodex-lv-scrolled .biodex-current-managed-header,
body.biodex-lv-scroll-up .biodex-current-managed-header,
body .biodex-current-managed-header:hover,
body.biodex-current-header-white .biodex-lv-header,
body.biodex-lv-header-hover .biodex-lv-header,
body.biodex-lv-scrolled .biodex-lv-header,
body.biodex-lv-scroll-up .biodex-lv-header,
body .biodex-lv-header:hover{
  background:#fff!important;
  color:var(--biodex-header-ink)!important;
  border-bottom:1px solid var(--biodex-header-line)!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}

body.biodex-current-header-white .biodex-current-managed-header *,
body.biodex-lv-header-hover .biodex-current-managed-header *,
body.biodex-lv-scrolled .biodex-current-managed-header *,
body.biodex-lv-scroll-up .biodex-current-managed-header *,
body .biodex-current-managed-header:hover *,
body.biodex-current-header-white .biodex-lv-header *,
body.biodex-lv-header-hover .biodex-lv-header *,
body.biodex-lv-scrolled .biodex-lv-header *,
body.biodex-lv-scroll-up .biodex-lv-header *,
body .biodex-lv-header:hover *{
  color:var(--biodex-header-ink)!important;
  border-color:rgba(17,24,39,.18)!important;
}

body.biodex-current-header-white .biodex-current-managed-header svg,
body.biodex-lv-header-hover .biodex-current-managed-header svg,
body.biodex-lv-scrolled .biodex-current-managed-header svg,
body.biodex-lv-scroll-up .biodex-current-managed-header svg,
body .biodex-current-managed-header:hover svg,
body.biodex-current-header-white .biodex-lv-header svg,
body.biodex-lv-header-hover .biodex-lv-header svg,
body.biodex-lv-scrolled .biodex-lv-header svg,
body.biodex-lv-scroll-up .biodex-lv-header svg,
body .biodex-lv-header:hover svg{
  color:var(--biodex-header-ink)!important;
  stroke:currentColor!important;
}

body.biodex-current-header-white .biodex-current-managed-header [class*="line"],
body.biodex-lv-header-hover .biodex-current-managed-header [class*="line"],
body.biodex-lv-scrolled .biodex-current-managed-header [class*="line"],
body.biodex-lv-scroll-up .biodex-current-managed-header [class*="line"],
body .biodex-current-managed-header:hover [class*="line"]{
  background:var(--biodex-header-ink)!important;
}

/* 产品系列二级页：红框区域居中、等距，不向一侧偏移 */
body .plc-series-tabs.biodex-centered-series-tabs,
body .product-series-tabs.biodex-centered-series-tabs,
body .series-tabs.biodex-centered-series-tabs,
body .product-series-nav.biodex-centered-series-tabs{
  width:min(1680px,calc(100% - 96px))!important;
  max-width:1680px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  left:auto!important;
  right:auto!important;
  transform:none!important;
  display:grid!important;
  grid-template-columns:repeat(7,minmax(0,1fr))!important;
  align-items:center!important;
  justify-items:center!important;
  gap:0!important;
  padding-left:clamp(12px,2vw,32px)!important;
  padding-right:clamp(12px,2vw,32px)!important;
  box-sizing:border-box!important;
}

body .biodex-centered-series-tabs > a,
body .biodex-centered-series-tabs > button,
body .biodex-centered-series-tabs .plc-series-tab,
body .biodex-centered-series-tabs .product-series-tab,
body .biodex-centered-series-tabs .series-tab,
body .biodex-centered-series-tabs [role="tab"]{
  width:100%!important;
  min-width:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  white-space:nowrap!important;
  box-sizing:border-box!important;
}

/* 面包/侧边子菜单不再过粗，和一级导航保持接近 */
body .biodex-menu-panel .sub-menu-card,
body .biodex-menu-panel .submenu-card,
body .biodex-menu-panel [class*="sub"] a,
body .biodex-menu-panel [class*="sub"] button,
body .biodex-menu-panel [class*="sub"] h3,
body .biodex-menu-panel [class*="sub"] strong{
  font-weight:500!important;
}

@media(max-width:900px){
  body .plc-series-tabs.biodex-centered-series-tabs,
  body .product-series-tabs.biodex-centered-series-tabs,
  body .series-tabs.biodex-centered-series-tabs,
  body .product-series-nav.biodex-centered-series-tabs{
    width:100%!important;
    max-width:100%!important;
    display:flex!important;
    overflow-x:auto!important;
    justify-content:flex-start!important;
    gap:18px!important;
    padding:0 20px!important;
    scrollbar-width:none;
  }
  body .biodex-centered-series-tabs::-webkit-scrollbar{display:none;}
  body .biodex-centered-series-tabs > a,
  body .biodex-centered-series-tabs > button,
  body .biodex-centered-series-tabs .plc-series-tab,
  body .biodex-centered-series-tabs .product-series-tab,
  body .biodex-centered-series-tabs .series-tab,
  body .biodex-centered-series-tabs [role="tab"]{
    width:auto!important;
    flex:0 0 auto!important;
  }
}
body .biodex-hide-old-product-tabs {
  display: none !important;
}

body .biodex-product-detail-tabs {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: relative;
  z-index: 35;
}

body .biodex-product-detail-tabs__inner {
  max-width: 1720px;
  min-height: 72px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: center;
}

body .biodex-product-detail-tabs__item {
  position: relative;
  min-width: 0;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #111827 !important;
  text-decoration: none !important;
  font-size: clamp(14px, 1.05vw, 18px);
  font-weight: 500 !important;
  line-height: 1.2;
  white-space: nowrap;
}

body .biodex-product-detail-tabs__item:hover {
  color: #22b573 !important;
}

body .biodex-product-detail-tabs__item.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 15px;
  width: 54px;
  height: 3px;
  border-radius: 999px;
  background: #22b573;
  transform: translateX(-50%);
}

@media (max-width: 900px) {
  body .biodex-product-detail-tabs__inner {
    min-height: 58px;
    padding: 0 18px;
    display: flex;
    gap: 24px;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
  }

  body .biodex-product-detail-tabs__item {
    flex: 0 0 auto;
    height: 58px;
    font-size: 14px;
  }
}
