/**
 * Qing 菜单锚点导航（药丸 Tab）样式。
 *
 * 结构：nav.qing-anchor > ul.qing-anchor__list > li.qing-anchor__cell > a.qing-anchor__item(.is-active)
 *
 * 三态（初始/悬停/选中）的背景、文字、边框颜色均由控件覆盖，此处提供结构与默认观感。
 * 手机端：Tab 列表横向可滑动（不换行），超出宽度以滑动查看。
 */

.qing-anchor {
	width: 100%;
	box-sizing: border-box;
}

.qing-anchor__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.qing-anchor__cell {
	list-style: none;
	flex: 0 0 auto;
}

/* 药丸按钮：默认白底、蓝字、蓝边框。 */
.qing-anchor__item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 24px;
	border: 1px solid #1e50c8;
	border-radius: 30px;
	background-color: #ffffff;
	color: #1e50c8;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.qing-anchor__item:hover {
	background-color: #eaf0ff;
}

/* 选中态：蓝底白字。 */
.qing-anchor__item.is-active {
	background-color: #1e50c8;
	color: #ffffff;
	border-color: #1e50c8;
}

/* -------- 移动端：不换行，横向滑动查看超出的 Tab -------- */
@media (max-width: 767px) {
	.qing-anchor__list {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		/* 两端留白，避免首末 Tab 贴边。 */
		padding: 2px 4px;
	}

	/* 隐藏横向滚动条（WebKit）。 */
	.qing-anchor__list::-webkit-scrollbar {
		display: none;
	}
}
