/**
 * 锚点导航小部件 - 样式
 *
 * 等宽圆角按钮网格，点击平滑滚动到锚点
 * 按钮上下/左右内边距统一，不受文字长短影响
 */

/* 网格容器 ----------------------------------------------------------- */
.hbc-an__grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	row-gap: 16px;
	column-gap: 16px;
	width: 100%;
}

/* 按钮 --------------------------------------------------------------- */
.hbc-an__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 14px 20px;
	margin: 0;
	box-sizing: border-box;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	border: 1px solid #111111;
	border-radius: 999px;
	background-color: transparent;
	color: #111111;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hbc-an__btn:hover {
	background-color: #111111;
	color: #ffffff;
	border-color: #111111;
	text-decoration: none;
}

/* 响应式：平板 (≤1024px) -------------------------------------------- */
@media (max-width: 1024px) {
	.hbc-an__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* 响应式：手机 (≤768px) --------------------------------------------- */
@media (max-width: 768px) {
	.hbc-an__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.hbc-an__btn {
		font-size: 11px;
		white-space: normal;
		word-break: break-word;
	}
}
