    $('.TABclick1 li').on('click', function () {
		var tab = $(this).parent('.TABclick1');
		var con = tab.attr('id');
		var on = tab.find('li').index(this);
		var my = $(this);
		$(my).addClass('cur').siblings(tab.find('li')).removeClass('cur');
		$(con).eq(on).show().siblings(con).hide();
		
		$('.pt_list').hide();
		let to = $(this).data('to');
		$('.cnt-' + to).show();
	});
	$('.pt_list').hide();
	$('.cnt-main').show();
/* 外层 */
.tongtags-wrap {
  margin: 0;
  padding: 0 9.38px;
  font-family: Arial, "Microsoft YaHei", sans-serif;
}

/* 顶部分类导航 */
.tongtags-nav {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: nowrap;
  border-bottom: 2.01px solid #d7d7d7;
  padding: 0;
  margin: 0 0 17.42px;
  height: 49.58px;
  overflow: visible;
}

/* Tab 按钮改成文字导航 */
.tongtags-tab {
  position: relative;
  height: 49.58px;
  line-height: 49.58px;
  padding: 0 10.72px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #666;
  font-size: 16.08px;
  font-weight: 700;
  cursor: pointer;
  transition: none;
  white-space: nowrap;
}

/* 隐藏数量 */
.tongtags-tab em {
  display: none;
}

/* 选中状态 */
.tongtags-tab.active {
  background: transparent;
  color: #1297e8;
  border: 0;
}

/* 蓝色下划线 */
.tongtags-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2.01px;
  height: 2.01px;
  background: #1e9bef;
}

/* 小倒三角 */
.tongtags-tab.active::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6.7px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 4.69px solid transparent;
  border-right: 4.69px solid transparent;
  border-top: 4.69px solid #1e9bef;
}

/* 面板 */
.tongtags-panel {
  display: none;
}

.tongtags-panel.active {
  display: block;
}

/* 软件列表改成图标宫格 */
.tongtags-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  column-gap: 22.78px;
  row-gap: 17.42px;
}

/* 每个软件项 */
.tongtags-list li {
  display: block;
  background: transparent;
  border-radius: 0;
  padding: 0;
  text-align: center;
  overflow: hidden;
}

/* 图片外层链接 */
.tongtags-list li > a {
  display: block;
  width: 100%;
  height: auto;
  text-decoration: none;
}

/* 图标 */
.tongtags-list li img {
  display: block;
  width: 64.32px;
  height: 64.32px;
  margin: 0 auto 6.7px;
  border-radius: 12.06px;
  object-fit: cover;
  flex-shrink: 0;
}

/* 标题容器 */
.tongtags-list li div {
  min-width: 0;
  width: 100%;
}

/* 标题 */
.tongtags-list li div a {
  display: block;
  color: #222;
  font-size: 13.4px;
  line-height: 17.42px;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

/* 鼠标经过 */
.tongtags-list li div a:hover {
  color: #1297e8;
}

/* 隐藏大小、版本、评分 */
.tongtags-list li span {
  display: none;
}

/* 平板 */
@media (max-width: 737px) {
  .tongtags-list {
    grid-template-columns: repeat(6, 1fr);
    column-gap: 16.08px;
  }

  .tongtags-tab {
    font-size: 14.74px;
    padding: 0 8.04px;
  }
}

/* 手机 */
@media (max-width: 514.56px) {
  .tongtags-wrap {
    padding: 0 6.7px;
  }

  .tongtags-nav {
    height: 32.16px;
    margin-bottom: 12.06px;
    overflow-x: auto;
    overflow-y: visible;
    border-bottom-width: 1.34px;
  }

  .tongtags-tab {
    height: 32.16px;
    line-height: 32.16px;
    font-size: 10.72px;
    padding: 0 6.7px;
    flex-shrink: 0;
  }

  .tongtags-tab.active::after {
    bottom: -1.34px;
    height: 1.34px;
  }

  .tongtags-tab.active::before {
    bottom: -5.36px;
    border-left-width: 3.35px;
    border-right-width: 3.35px;
    border-top-width: 3.35px;
  }

  .tongtags-list {
    grid-template-columns: repeat(4, 1fr);
    column-gap: 8.04px;
    row-gap: 12.06px;
  }

  .tongtags-list li img {
    width: 42.88px;
    height: 42.88px;
    border-radius: 9.38px;
    margin-bottom: 4.02px;
  }

  .tongtags-list li div a {
    font-size: 9.38px;
    line-height: 13.4px;
  }
}

function switchTag(idx, btn) {
  document.querySelectorAll('.tongtags-tab').forEach(function(b){
    b.classList.remove('active');
  });

  document.querySelectorAll('.tongtags-panel').forEach(function(p){
    p.classList.remove('active');
  });

  btn.classList.add('active');

  var panel = document.getElementById('tag-panel-' + idx);
  if (panel) {
    panel.classList.add('active');
  }
}

(function(){
  var tabs = document.querySelectorAll('.tongtags-tab');

  tabs.forEach(function(tab){
    tab.addEventListener('mouseenter', function(){
      switchTag(this.getAttribute('data-idx'), this);
    });
  });

  if (tabs.length > 0) {
    switchTag(tabs[0].getAttribute('data-idx'), tabs[0]);
  }
})();
