/* 首页：区块标题 + 子栏目 — 子类横向一排，超出可滑动（移动端 / 多子类） */
.index-block .a-tit {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 10px 12px;
	min-width: 0;
}

.index-block .a-tit h2 {
	flex: 0 0 auto;
	min-width: 0;
}

.index-block .a-tit span.st48-a-tit-links {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-start;
	gap: 8px 10px;
	flex: 1 1 0;
	min-width: 0;
	max-width: 100%;
	padding: 4px 4px 6px 2px;
	box-sizing: border-box;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
	scroll-snap-type: x proximity;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

.index-block .a-tit span.st48-a-tit-links::-webkit-scrollbar {
	height: 5px;
}

.index-block .a-tit span.st48-a-tit-links::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.22);
	border-radius: 5px;
}

.index-block .a-tit span.st48-a-tit-links::-webkit-scrollbar-track {
	background: transparent;
}

.index-block .a-tit span.st48-a-tit-links > a {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 13px;
	line-height: 1.4;
	color: hsla(0, 0%, 100%, 0.78) !important;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
	transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
	white-space: nowrap;
	scroll-snap-align: start;
}

.index-block .a-tit span.st48-a-tit-links > a:hover {
	color: var(--zy-hover) !important;
	border-color: rgba(var(--zy-hover-rgb), 0.45);
	background: rgba(var(--zy-hover-rgb), 0.14);
}

.index-block .a-tit span.st48-a-tit-links > a.st48-a-tit-more {
	font-weight: 600;
	padding-inline: 14px;
}

/* 顶栏：播放记录 / 九宫格菜单，触屏可点（原模板仅靠 hover） */
.header .nav .menu > span {
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	user-select: none;
	position: relative;
	z-index: 1002;
	touch-action: manipulation;
}

.header .nav .menu > span .iconfont {
	pointer-events: none;
}

@media (max-width: 767px) {
	/* 窄屏：标题独占一行，子类整行横向滑动 */
	.index-block .a-tit {
		flex-wrap: wrap;
		align-items: stretch;
	}

	.index-block .a-tit h2 {
		flex: 1 1 100%;
	}

	.index-block .a-tit span.st48-a-tit-links {
		flex: 1 1 100%;
		max-width: 100%;
		padding-left: 0;
		padding-top: 4px;
	}
}
