
/* ===== 电脑端：分类导航 ===== */
.ly_poster_97:has(.title_srcoll_l > h2.tagsTitle:nth-child(6):last-child) .title_slide {
  height: auto !important;
  overflow: visible !important;
  padding-top: 36px !important;
}

.ly_poster_97:has(.title_srcoll_l > h2.tagsTitle:nth-child(6):last-child) .title_slide .title_srcoll_l {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 10px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  transform: none !important;
  white-space: normal !important;
}

.ly_poster_97:has(.title_srcoll_l > h2.tagsTitle:nth-child(6):last-child) .title_slide .title_srcoll_l > h2.tagsTitle {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  float: none !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 76px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 12px !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: #f3f3f3 !important;
  color: #171717 !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  text-align: center !important;
  white-space: normal !important;
  box-shadow: none !important;
  cursor: pointer;
}

.ly_poster_97:has(.title_srcoll_l > h2.tagsTitle:nth-child(6):last-child) .title_slide .title_srcoll_l > h2.tagsTitle.cur {
  background: #071e38 !important;
  color: #fff !important;
  font-weight: 600 !important;
}

.ly_poster_97:has(.title_srcoll_l > h2.tagsTitle:nth-child(6):last-child) .title_slide .title_srcoll_l > h2.tagsTitle::before,
.ly_poster_97:has(.title_srcoll_l > h2.tagsTitle:nth-child(6):last-child) .title_slide .title_srcoll_l > h2.tagsTitle::after {
  display: none !important;
  content: none !important;
}

/* 电脑端隐藏手机折叠标题 */
.ly_poster_97:has(.title_srcoll_l > h2.tagsTitle:nth-child(6):last-child) .tome-accordion-title {
  display: none !important;
}

/* 屏幕中等宽度时三列两行，避免6个长标题挤压 */
@media (min-width: 768px) and (max-width: 1100px) {
  .ly_poster_97:has(.title_srcoll_l > h2.tagsTitle:nth-child(6):last-child) .title_slide .title_srcoll_l {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

/* ===== 手机端：6个分类手风琴 ===== */
@media (max-width: 767px) {
  .ly_poster_97:has(.title_srcoll_l > h2.tagsTitle:nth-child(6):last-child) .title_slide {
    padding-top: 16px !important;
  }

  /* 脚本尚未运行时保留原导航 */
  .ly_poster_97:has(.title_srcoll_l > h2.tagsTitle:nth-child(6):last-child) .title_slide .title_srcoll_l {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .ly_poster_97:has(.title_srcoll_l > h2.tagsTitle:nth-child(6):last-child) .title_slide .title_srcoll_l > h2.tagsTitle {
    min-height: 82px !important;
    padding: 12px 10px !important;
    font-size: 12px !important;
  }

  /* 折叠初始化成功后隐藏原导航 */
  .ly_poster_97:has(.title_srcoll_l > h2.tagsTitle:nth-child(6):last-child).tome-accordion-ready .title_slide {
    display: none !important;
  }

  .ly_poster_97:has(.title_srcoll_l > h2.tagsTitle:nth-child(6):last-child).tome-accordion-ready .poster_box {
    margin-top: 16px !important;
  }

  /* 所有产品标题始终显示 */
  .ly_poster_97:has(.title_srcoll_l > h2.tagsTitle:nth-child(6):last-child).tome-accordion-ready .tome-accordion-title {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-height: 62px !important;
    margin: 0 0 10px !important;
    padding: 16px !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: #f3f3f3 !important;
    color: #171717 !important;
    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    text-align: left !important;
    white-space: normal !important;
    box-shadow: none !important;
    cursor: pointer;
  }

  .ly_poster_97:has(.title_srcoll_l > h2.tagsTitle:nth-child(6):last-child) .tome-accordion-title::after {
    content: "";
    display: block;
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    margin-right: 4px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
  }

  .ly_poster_97:has(.title_srcoll_l > h2.tagsTitle:nth-child(6):last-child).tome-accordion-ready
  .tome-accordion-title[aria-expanded="true"] {
    background: #071e38 !important;
    color: #fff !important;
    font-weight: 600 !important;
  }

  .ly_poster_97:has(.title_srcoll_l > h2.tagsTitle:nth-child(6):last-child)
  .tome-accordion-title[aria-expanded="true"]::after {
    transform: rotate(225deg);
  }

  .ly_poster_97:has(.title_srcoll_l > h2.tagsTitle:nth-child(6):last-child) .tome-accordion-title:focus-visible {
    outline: 2px solid #e62129 !important;
    outline-offset: 3px;
  }

  /* 手机端收起未选中的产品内容 */
  .ly_poster_97:has(.title_srcoll_l > h2.tagsTitle:nth-child(6):last-child).tome-accordion-ready
  .poster_box .item_box {
    display: none !important;
  }

  .ly_poster_97:has(.title_srcoll_l > h2.tagsTitle:nth-child(6):last-child).tome-accordion-ready
  .poster_box .item_box.tome-accordion-active {
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
    width: 100% !important;
    margin: 0 0 24px !important;
    padding-top: 6px !important;
  }
}
