/**
 * 流程步骤（Process Steps）
 *
 * 左侧：眉标（橙点 + 大写小字）+ 大标题 + 说明 + 白底图示卡（图片淡入切换 + 底部小字）
 * 右侧：步骤卡列表 —— 未选中浅灰底，当前项白底 + 橙色左边框 + 底部橙色进度条
 * 颜色/尺寸都是 CSS 变量，由 Elementor 控件注入。
 */

.wjc-steps {
	--wjc-steps-accent: #e2552b;
	--wjc-steps-muted: #8a857f;
	--wjc-steps-heading: #16181b;
	--wjc-steps-card-bg: #f2f1ee;
	--wjc-steps-card-bg-on: #ffffff;
	--wjc-steps-card-gap: 16px;
	--wjc-steps-radius: 14px;
	--wjc-steps-ratio: 4/3;
	--wjc-steps-interval: 4500ms;

	position: relative;
	box-sizing: border-box;
	padding: 80px 20px;
}

.wjc-steps *,
.wjc-steps *::before,
.wjc-steps *::after {
	box-sizing: border-box;
}

/* ==================== 两栏 ==================== */
.wjc-steps__grid {
	display: grid;
	grid-template-columns: 45% minmax(0, 1fr);
	gap: 52px;
	align-items: start;
	max-width: 1300px;
	margin: 0 auto;
}

.wjc-steps.is-side-right .wjc-steps__side {
	order: 2;
}

.wjc-steps__side {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

/* ==================== 左侧文案 ==================== */
.wjc-steps__eyebrow {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 16px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 10.5px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wjc-steps-muted);
}

.wjc-steps__dot {
	flex: 0 0 auto;
	width: 7px;
	height: 7px;
	background-color: var(--wjc-steps-accent);
}

.wjc-steps__title {
	margin: 0;
	font-size: clamp(25px, 2.6vw, 42px);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: var(--wjc-steps-heading);
	word-break: keep-all;
}

.wjc-steps__sub {
	max-width: 44ch;
	margin: 18px 0 0;
	font-size: 14px;
	line-height: 1.85;
	color: var(--wjc-steps-muted);
}

/* ==================== 图示卡 ==================== */
.wjc-steps__media {
	position: relative;
	margin-top: 30px;
	padding: 26px 26px 18px;
	border-radius: var(--wjc-steps-radius);
	background-color: var(--wjc-steps-card-bg-on);
	box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}

.wjc-steps__slides {
	position: relative;
	width: 100%;
	aspect-ratio: var(--wjc-steps-ratio, 4/3);
}

.wjc-steps__slide {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	transition: opacity 0.55s ease;
}

.wjc-steps__slide.is-active {
	opacity: 1;
}

.wjc-steps__slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.wjc-steps__caption {
	margin-top: 14px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 11px;
	line-height: 1.5;
	color: var(--wjc-steps-muted);
	min-height: 1.5em;
}

/* ==================== 步骤卡 ==================== */
.wjc-steps__list {
	display: flex;
	flex-direction: column;
	gap: var(--wjc-steps-card-gap);
	min-width: 0;
}

.wjc-steps__card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	width: 100%;
	margin: 0;
	padding: 22px 24px 24px;
	overflow: hidden;
	appearance: none;
	-webkit-appearance: none;
	border: 0;
	border-left: 3px solid transparent;
	border-radius: 10px;
	background-color: var(--wjc-steps-card-bg);
	text-align: left;
	cursor: pointer;
	transition:
		background-color 0.35s ease,
		border-color 0.35s ease,
		box-shadow 0.35s ease,
		transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.wjc-steps__card:hover {
	transform: translateY(-2px);
}

.wjc-steps__card.is-active {
	background-color: var(--wjc-steps-card-bg-on);
	border-left-color: var(--wjc-steps-accent);
	box-shadow: 0 14px 34px rgba(17, 24, 39, 0.07);
	transform: none;
}

.wjc-steps__kicker {
	display: inline-flex;
	align-items: baseline;
	gap: 7px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 11px;
	line-height: 1.4;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wjc-steps-muted);
}

.wjc-steps__num {
	font-weight: 700;
	color: var(--wjc-steps-accent);
}

.wjc-steps__kicker-word::before {
	content: "/";
	margin-right: 7px;
	opacity: 0.55;
}

.wjc-steps__card-title {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: -0.005em;
	color: #16181b;
	word-break: keep-all;
	transition: color 0.3s ease;
}

.wjc-steps__card-desc {
	font-size: 13px;
	line-height: 1.75;
	color: #5c5852;
}

/* 底部橙色进度条 */
.wjc-steps__bar {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 0;
	height: 2px;
	background-color: var(--wjc-steps-accent);
	pointer-events: none;
}

@keyframes wjc-steps-fill {
	from {
		width: 0;
	}
	to {
		width: 100%;
	}
}

.wjc-steps.has-progress[data-autoplay="yes"] .wjc-steps__card.is-active .wjc-steps__bar {
	animation: wjc-steps-fill var(--wjc-steps-interval, 4500ms) linear forwards;
}

.wjc-steps.has-progress .wjc-steps__card.is-active.is-paused .wjc-steps__bar {
	animation-play-state: paused;
}

.wjc-steps.no-progress .wjc-steps__bar,
.wjc-steps[data-autoplay="no"] .wjc-steps__bar {
	display: none;
}

/* 焦点可见性 */
.wjc-steps__card:focus-visible {
	outline: 2px solid var(--wjc-steps-accent);
	outline-offset: 2px;
}

/* ==================== 响应式 ==================== */
@media (max-width: 1024px) {
	.wjc-steps {
		padding: 60px 20px;
	}

	.wjc-steps__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 34px;
	}

	.wjc-steps.is-side-right .wjc-steps__side {
		order: 0;
	}

	.wjc-steps__sub {
		max-width: none;
	}

	.wjc-steps__media {
		margin-top: 24px;
	}
}

@media (max-width: 767px) {
	.wjc-steps {
		padding: 46px 16px;
	}

	.wjc-steps__title {
		font-size: 24px;
	}

	.wjc-steps__media {
		padding: 18px 18px 14px;
	}

	.wjc-steps__card {
		padding: 18px 18px 20px;
		gap: 6px;
	}

	.wjc-steps__card-title {
		font-size: 15.5px;
	}

	.wjc-steps__card-desc {
		font-size: 12.5px;
		line-height: 1.7;
	}
}

/* ==================== 降低动效 ==================== */
@media (prefers-reduced-motion: reduce) {
	.wjc-steps__bar {
		display: none;
	}

	.wjc-steps__slide,
	.wjc-steps__card {
		transition: none;
	}

	.wjc-steps__card:hover,
	.wjc-steps__card.is-active {
		transform: none;
	}
}
