/**
 * 文章 Hero 小部件 - 样式
 */

/* 容器 ---------------------------------------------------------------- */
.hbc-post-hero {
	position: relative;
	width: 100%;
	min-height: 400px;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

/* 遮罩 ---------------------------------------------------------------- */
.hbc-post-hero__overlay {
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.45);
	pointer-events: none;
}

/* 内容区 -------------------------------------------------------------- */
.hbc-post-hero__content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 40px 24px;
	width: 100%;
	max-width: 900px;
	margin: 0 auto;
}

/* 徽章 ---------------------------------------------------------------- */
.hbc-post-hero__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	cursor: pointer;
	transition-property: background-color, border-color, color, transform, box-shadow;
	transition-timing-function: ease;
	transition-duration: 0.25s;
	will-change: transform;
}

.hbc-post-hero__badge span {
	transition-property: color;
	transition-timing-function: ease;
	transition-duration: 0.25s;
}

:where(.hbc-post-hero__badge) {
	border: 1px solid rgba(255, 255, 255, 0.7);
	background-color: rgba(255, 255, 255, 0.1);
	border-radius: 20px;
	padding: 5px 16px;
	margin-bottom: 16px;
}

:where(.hbc-post-hero__badge span) {
	color: #ffffff;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	line-height: 1.4;
}

/* 标题 ---------------------------------------------------------------- */
:where(.hbc-post-hero__title) {
	color: #ffffff;
	font-size: 36px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-align: center;
	margin: 0;
	line-height: 1.2;
}

/* 响应式 -------------------------------------------------------------- */
@media (max-width: 768px) {
	.hbc-post-hero {
		min-height: 220px;
	}

	:where(.hbc-post-hero__title) {
		font-size: 22px;
	}
}
