/**
 * 全站分类 Tab 统一（对齐首页 index）：
 * L1 一级：0.32rem — style-rem 中 .header-nav-tabs .item
 * L2 二级：0.28rem 横滑 + 粗下划线 — .txt-list-grid--tabs / #txtListGrid
 * L3 三级：0.26rem + 细下划线 — .content-tabs .tab-item
 */

/* ========== 三级：主题 / 排序（.content-tabs） ========== */
.content-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.16rem;
  padding: 0 0.2rem;
  position: relative;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.content-tabs .tabs-list {
  display: flex;
  gap: 0.16rem;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.content-tabs .tabs-list::-webkit-scrollbar {
  display: none;
}

.content-tabs .tab-item {
  padding: 0.12rem 0.24rem;
  font-size: 0.26rem;
  color: var(--fc-80);
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
  position: relative;
}

.content-tabs .tab-item.active {
  color: #ff4366;
  font-weight: bold;
}

.content-tabs .tab-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 0.04rem;
  background: #ff4366;
  border-radius: 0.02rem;
}

.content-tabs .tabs-toggle {
  display: flex;
  align-items: center;
  gap: 0.08rem;
  font-size: 0.26rem;
  color: var(--fc-80);
  cursor: pointer;
  margin-left: 0.16rem;
  flex-shrink: 0;
}

.content-tabs .tabs-toggle .iconfont {
  font-size: 0.26rem;
}

/* ========== 二级：横向子分类（.txt-list-grid--tabs / #txtListGrid） ========== */
.txt-list-grid.txt-list-grid--tabs,
#txtListGrid.txt-list-grid {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  grid-template-columns: none;
  grid-gap: 0;
  gap: 0;
  margin: 0.12rem 0 0.08rem;
  padding: 0 0.2rem;
  max-width: 100%;
  box-sizing: border-box;
}

.txt-list-grid.txt-list-grid--tabs::-webkit-scrollbar,
#txtListGrid.txt-list-grid::-webkit-scrollbar {
  display: none;
}

.txt-list-grid.txt-list-grid--tabs .item-txt,
.txt-list-grid.txt-list-grid--tabs .search-tag-keyword,
.txt-list-grid.txt-list-grid--tabs .detail-tag-keyword,
#txtListGrid .item-txt {
  display: block;
  flex-shrink: 0;
  width: auto;
  height: auto;
  min-height: 0.8rem;
  line-height: 0.8rem;
  padding: 0 0.15rem;
  margin: 0;
  background: transparent !important;
  border-radius: 0;
  font-size: 0.28rem;
  color: var(--fc-80);
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.txt-list-grid.txt-list-grid--tabs .item-txt:active,
.txt-list-grid.txt-list-grid--tabs .search-tag-keyword:active,
.txt-list-grid.txt-list-grid--tabs .detail-tag-keyword:active,
#txtListGrid .item-txt:active {
  background: transparent !important;
  color: var(--fc-80);
}

.txt-list-grid.txt-list-grid--tabs .item-txt.active,
.txt-list-grid.txt-list-grid--tabs .search-tag-keyword.active,
#txtListGrid .item-txt.active {
  font-size: 0.28rem;
  font-weight: bold;
  color: #ff4366;
  position: relative;
}

.txt-list-grid.txt-list-grid--tabs .item-txt.active::after,
.txt-list-grid.txt-list-grid--tabs .search-tag-keyword.active::after,
#txtListGrid .item-txt.active::after {
  content: '';
  position: absolute;
  bottom: 0.06rem;
  left: 50%;
  transform: translateX(-50%);
  width: 32%;
  height: 0.06rem;
  background: #ff4366;
  border-radius: 0.03rem;
}

/* ========== 粘性顶栏分段 Tab（与一级同款：0.3rem + 细下划线） ========== */
.messages-tabs-list .messages-tab-item,
.tag-tabs-list .tag-tab-item,
.profile-tabs-list .profile-tab-item {
  flex: 1;
  min-height: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.32rem;
  color: var(--fc-80);
  cursor: pointer;
  position: relative;
  transition: color 0.3s;
}

.messages-tabs-list .messages-tab-item.active,
.tag-tabs-list .tag-tab-item.active,
.profile-tabs-list .profile-tab-item.active {
  color: #ff4366;
  font-weight: bold;
}

.messages-tabs-list .messages-tab-item.active::after,
.tag-tabs-list .tag-tab-item.active::after,
.profile-tabs-list .profile-tab-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 0.04rem;
  background: #ff4366;
  border-radius: 0.02rem;
}

/* ========== 社区 sheqqu：主 Tab = L1，分类 = L2，筛选 = L3 ========== */
.community-main-tab {
  font-size: 0.32rem !important;
  color: var(--fc-80) !important;
  position: relative;
}

.community-main-tab.active {
  color: #ff4366 !important;
  font-weight: bold;
}

.community-main-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 0.04rem;
  background: #ff4366;
  border-radius: 0.02rem;
}

.community-category-tab {
  font-size: 0.28rem !important;
  color: var(--fc-80) !important;
  position: relative;
  padding: 0.12rem 0.24rem;
}

.community-category-tab.active {
  color: #ff4366 !important;
  font-weight: bold;
}

.community-category-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0.06rem;
  left: 50%;
  transform: translateX(-50%);
  width: 32%;
  height: 0.06rem;
  background: #ff4366;
  border-radius: 0.03rem;
}

.community-filter-tab {
  font-size: 0.26rem !important;
  color: var(--fc-80) !important;
  position: relative;
}

.community-filter-tab.active {
  color: #ff4366 !important;
  font-weight: bold;
}

.community-filter-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 0.04rem;
  background: #ff4366;
  border-radius: 0.02rem;
}
