/* ==========================================================================
 * HBC Service Showcase — 图片背景 + 文字叠加卡片列表
 *
 * 卡片结构:
 *   <div.hbc-service-showcase>
 *     <div.hbc-ss__item.hbc-ss__item--align-h-{left|center|right}.hbc-ss__item--align-v-{top|center|bottom}>
 *       <div.hbc-ss__bg>              (背景图，绝对定位填满卡片)
 *       <div.hbc-ss__overlay>         (暗色遮罩，让文字可读)
 *       <div.hbc-ss__content>         (文字内容，叠加在图片上方)
 *         <hN.hbc-ss__title>
 *         <p.hbc-ss__desc>
 *       </div>
 *       [<a.hbc-ss__item-link>]       (可选整卡链接)
 *     </div>
 *   </div>
 * ========================================================================== */

/* ==========================================================================
 *  容器
 * ========================================================================== */
.hbc-service-showcase {
	display: flex;
	flex-direction: column;
	gap: 36px;
}

.hbc-service-showcase * {
	box-sizing: border-box;
}

/* ==========================================================================
 *  卡片（图片 + 遮罩 + 文字三层叠加）
 * ========================================================================== */
.hbc-ss__item {
	position: relative;
	display: flex;
	min-height: 400px;
	padding: 48px 60px;
	border-radius: 12px;
	overflow: hidden;
	background-color: #444444;
	color: #FFFFFF;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.hbc-ss__item:hover {
	box-shadow: 0 16px 56px rgba(0, 0, 0, 0.28);
}

/* ==========================================================================
 *  背景图层（第一层，最底）
 * ========================================================================== */
.hbc-ss__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	z-index: 1;
}

/* ==========================================================================
 *  暗色遮罩（第二层，覆盖在图片之上）
 * ========================================================================== */
.hbc-ss__overlay {
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.45);
	z-index: 2;
	pointer-events: none;
}

/* ==========================================================================
 *  文字内容（第三层，最上层）
 * ========================================================================== */
.hbc-ss__content {
	position: relative;
	z-index: 3;
	max-width: 55%;
	display: flex;
	flex-direction: column;
}

/* ==========================================================================
 *  整卡链接（覆盖全卡，便于点击，第四层）
 * ========================================================================== */
.hbc-ss__item-link {
	position: absolute;
	inset: 0;
	z-index: 4;
	display: block;
	text-indent: -9999px;
	overflow: hidden;
	white-space: nowrap;
}

/* ==========================================================================
 *  文字水平对齐（通过 flex 的 justify-content 控制内容块位置）
 * ========================================================================== */
.hbc-ss__item--align-h-left {
	justify-content: flex-start;
}

.hbc-ss__item--align-h-center {
	justify-content: center;
}

.hbc-ss__item--align-h-right {
	justify-content: flex-end;
}

.hbc-ss__item--align-h-center .hbc-ss__content {
	text-align: center;
}

.hbc-ss__item--align-h-right .hbc-ss__content {
	text-align: right;
}

/* ==========================================================================
 *  文字垂直对齐
 * ========================================================================== */
.hbc-ss__item--align-v-top {
	align-items: flex-start;
}

.hbc-ss__item--align-v-center {
	align-items: center;
}

.hbc-ss__item--align-v-bottom {
	align-items: flex-end;
}

/* ==========================================================================
 *  标题
 * ========================================================================== */
.hbc-ss__title {
	margin: 0 0 20px;
	padding: 0;
	font-size: 40px;
	font-weight: 700;
	line-height: 1.15;
	color: #FFFFFF;
}

/* ==========================================================================
 *  描述
 * ========================================================================== */
.hbc-ss__desc {
	margin: 0;
	padding: 0;
	font-size: 16px;
	line-height: 1.7;
	color: #F2F2F2;
}

/* ==========================================================================
 *  响应式：平板
 * ========================================================================== */
@media ( max-width: 1024px ) {
	.hbc-ss__item {
		min-height: 340px;
		padding: 36px 40px;
	}

	.hbc-ss__content {
		max-width: 70%;
	}

	.hbc-ss__title {
		font-size: 30px;
		margin-bottom: 14px;
	}

	/* 偶数项在平板上减少偏移 */
	.hbc-service-showcase .hbc-ss__item:nth-child(even) {
		margin-left: 32px;
	}
}

/* ==========================================================================
 *  响应式：移动端
 * ========================================================================== */
@media ( max-width: 767px ) {
	.hbc-ss__item {
		min-height: 300px;
		padding: 28px 24px;
	}

	.hbc-ss__content {
		max-width: 100%;
	}

	.hbc-ss__title {
		font-size: 24px;
		margin-bottom: 12px;
	}

	.hbc-ss__desc {
		font-size: 14px;
	}

	/* 移动端取消错落偏移 */
	.hbc-service-showcase .hbc-ss__item:nth-child(even) {
		margin-left: 0 !important;
	}
}

/* ==========================================================================
 *  编辑器占位（无图片时）
 * ========================================================================== */
.elementor-editor-active .hbc-ss__item:not(:has(.hbc-ss__bg)) {
	background-color: #555;
}
