@charset "utf-8";
/* prd-tab.css — 产品详情页机型 Tab 与段内折叠（配合 prd-tab.js）
   仅作用于 .content.kprd 内由 JS 生成的 .mt-* 结构；无 JS 时全部规则不命中。 */

.mt-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 10px 0;
  background: #fff;
  border-bottom: 1px solid #e3e8ef;
  box-shadow: 0 6px 12px -10px rgba(12, 53, 84, .35);
}

.mt-bar-in {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.mt-tab {
  flex: 0 0 auto;
  max-width: 100%;
  margin: 0;
  padding: 7px 14px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.25;
  color: #12354f;
  background: #f4f7fb;
  border: 1px solid #dbe4ee;
  border-radius: 18px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background .15s, color .15s, border-color .15s;
}

.mt-tab:hover { background: #eaf2fa; border-color: #b9d2ea; }

.mt-tab[aria-selected="true"] {
  color: #fff;
  background: #0b5cad;
  border-color: #0b5cad;
  font-weight: 500;
}

.mt-tab:focus-visible { outline: 2px solid #0b5cad; outline-offset: 2px; }

.mt-all {
  flex: 0 0 auto;
  margin: 0;
  padding: 6px 12px;
  font-family: inherit;
  font-size: 13px;
  color: #0b5cad;
  background: #fff;
  border: 1px solid #cfe0f0;
  border-radius: 18px;
  cursor: pointer;
  white-space: nowrap;
}

.mt-all:hover { background: #f2f8fd; }

.mt-panel[hidden] { display: none !important; }

.mt-bar-ph { display: block; height: 0; }

/* ---------- 段内折叠 ----------
   tech.css 用 #content .content h2/h3{...!important} 定义标题，
   这里必须提高特异性并同样使用 !important 才能接管。 */
.mt-fold {
  margin: 8px 0;
  border: 1px solid #e3e8ef;
  border-radius: 8px;
  background: #f7fafd;
  overflow: hidden;
}

#content .content.kprd .mt-toggle {
  margin: 0 !important;
  padding: 11px 40px 11px 14px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
  color: #12354f !important;
  border: 0 !important;
  background: none !important;
  cursor: pointer;
  user-select: none;
  position: relative;
}

#content .content.kprd .mt-toggle:hover { color: #0b5cad !important; background: #eef5fc !important; }

/* 去掉 tech.css 给 h2/h3 加的左侧青色装饰，避免与折叠条冲突 */
#content .content.kprd .mt-toggle::before { display: none !important; }

#content .content.kprd .mt-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border-right: 2px solid #7c93a8;
  border-bottom: 2px solid #7c93a8;
  transform: rotate(45deg);
  transition: transform .2s;
}

#content .content.kprd .mt-toggle[aria-expanded="true"]::after {
  margin-top: -2px;
  transform: rotate(-135deg);
}

#content .content.kprd .mt-toggle[aria-expanded="true"] { color: #0b5cad !important; }

.mt-fold-p {
  padding: 2px 14px 12px;
  border-top: 1px solid #e7edf5;
  background: #fff;
}

.mt-fold-p > *:first-child { margin-top: 10px; }

/* ---------- 窄屏 ---------- */
/* tech.css 移动端用 html,body{overflow-x:hidden !important} 防横向拖动，
   但 hidden 会让 sticky 失效；仅在产品详情页改用 clip（裁剪效果相同、不阻断 sticky）。
   不支持 :has() 的旧浏览器忽略本规则，回退为不吸顶，页面其余表现不变。 */
@media (max-width: 720px) {
  html:has(.content.kprd),
  body:has(.content.kprd) {
    overflow-x: clip !important;
  }
}

@media (max-width: 720px) {
  .mt-bar {
    gap: 8px;
    margin: 0 0 12px;
    padding: 8px 0;
    box-shadow: 0 5px 10px -9px rgba(12, 53, 84, .4);
  }

  .mt-bar-in {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .mt-bar-in::-webkit-scrollbar { display: none; }

  .mt-tab {
    padding: 6px 12px;
    font-size: 13px;
    max-width: 62vw;
  }

  .mt-all { display: none; }

  #content .content.kprd .mt-toggle { padding: 10px 36px 10px 12px !important; font-size: 14px !important; }

  .mt-fold { margin: 8px 0; }

  .mt-fold-p { padding: 2px 12px 10px; }
}

/* ---------- 移动端侧栏折叠（prd-tab.js 的 foldSidebar） ---------- */
@media (max-width: 720px) {
  #sb .tl.sb-tg {
    position: relative;
    cursor: pointer;
    user-select: none;
    padding-right: 34px;
  }

  #sb .tl.sb-tg::after {
    content: "";
    position: absolute;
    right: 15px;
    top: 50%;
    width: 9px;
    height: 9px;
    margin-top: -7px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    transition: transform .2s;
  }

  #sb .tl.sb-tg[aria-expanded="true"]::after {
    margin-top: -2px;
    transform: rotate(-135deg);
  }

  #sb .b[hidden] { display: none !important; }
}
