/**
 * 流程步骤小部件 - 样式
 *
 * 布局：左图（含圆点）+ 右文（副标题/步骤/主标题/描述）
 * 切换：点击圆点 → 图片与文字同步淡入淡出
 */

/* 主容器 -------------------------------------------------------------- */
.hbc-ps {
	display: flex;
	align-items: stretch;
	gap: 40px;
	width: 100%;
}

/* 图片在右：通过 prefix_class hbc-ps--pos-right 控制 */
.hbc-ps--pos-right .hbc-ps {
	flex-direction: row-reverse;
}

/* ── 图片列 ── */
.hbc-ps__image-col {
	flex: 0 0 50%;
	max-width: 50%;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.hbc-ps__image-wrap {
	position: relative;
	width: 100%;
	height: 400px;
}

.hbc-ps__image {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.5s ease, visibility 0.5s ease;
	pointer-events: none;
}

.hbc-ps__image.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.hbc-ps__image img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: 100%;
	object-fit: contain;
	display: block;
}

/* ── 圆点 ── */
.hbc-ps__dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	margin-top: 24px;
}

.hbc-ps__dot {
	appearance: none;
	-webkit-appearance: none;
	border: 0;
	padding: 0;
	margin: 0;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: #cccccc;
	cursor: pointer;
	transition: background-color 0.25s ease, transform 0.25s ease;
}

.hbc-ps__dot:hover {
	transform: scale(1.2);
}

.hbc-ps__dot.is-active {
	background-color: #222222;
}

/* ── 文字列 ── */
.hbc-ps__content-col {
	flex: 1 1 0%;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	position: relative;
}

.hbc-ps__content {
	width: 100%;
}

/* ── 文字样式 ── */
.hbc-ps__subtitle {
	margin: 0 0 6px;
	padding: 0;
	color: #d80027;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.4;
}

.hbc-ps__step {
	margin: 0 0 16px;
	padding: 0;
	color: #222222;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
}

.hbc-ps__title {
	margin: 0 0 20px;
	padding: 0;
	color: #111111;
	font-size: clamp(24px, 3vw, 36px);
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.2;
	text-transform: uppercase;
}

.hbc-ps__desc {
	color: #444444;
	font-size: 14px;
	line-height: 1.7;
	max-width: 100%;
	margin: 0 auto;
}

.hbc-ps__desc p {
	margin: 0 0 0.75em;
}

.hbc-ps__desc p:last-child {
	margin-bottom: 0;
}

/* ── 响应式：平板 (≤1024px) ── */
@media (max-width: 1024px) {
	.hbc-ps {
		gap: 28px;
	}

	.hbc-ps__image-wrap {
		height: 320px;
	}
}

/* ── 响应式：手机 (≤768px) ── */
@media (max-width: 768px) {
	.hbc-ps,
	.hbc-ps--pos-right .hbc-ps {
		flex-direction: column;
		gap: 24px;
	}

	.hbc-ps__image-col {
		flex: none !important;
		max-width: 100% !important;
		width: 100%;
	}

	.hbc-ps__image-wrap {
		height: 260px;
	}

	.hbc-ps__title {
		font-size: clamp(20px, 6vw, 28px);
	}
}
