/* ──────────────────────────────────────────────
   Process Steps Widget — 进度步骤
   ────────────────────────────────────────────── */
.psw-wrapper {
	width: 100%;
	box-sizing: border-box;
}

/* ── 进度条（点状） ────────────────────────── */
.psw-progress {
	position: relative;
	width: 100%;
	height: 16px;
	margin-bottom: 30px;
	pointer-events: none;
}

.psw-progress-line {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 2px;
	background: #e8e8e8;
	border-radius: 999px;
	transform: translateY(-50%);
}

.psw-progress-fill {
	position: absolute;
	top: 50%;
	left: 0;
	height: 2px;
	background: #e53935;
	border-radius: 999px;
	transform: translateY(-50%);
	transition: width 0.5s cubic-bezier(.4, 0, .2, 1);
}

.psw-progress-dot {
	position: absolute;
	top: 50%;
	width: 14px;
	height: 14px;
	background: #ffffff;
	border: 3px solid #e8e8e8;
	border-radius: 50%;
	transform: translate(-50%, -50%);
	transition: border-color 0.3s ease, transform 0.3s ease;
	box-sizing: border-box;
	cursor: pointer;
	pointer-events: auto;
}

.psw-progress-dot.psw-dot-active {
	border-color: #e53935;
}

/* ── 步骤容器 ─────────────────────────────── */
.psw-steps {
	display: flex;
	gap: 20px;
	flex-wrap: nowrap;
	align-items: stretch;
}

/* ── 单个步骤盒 ───────────────────────────── */
.psw-step {
	flex: 1 1 0;
	min-width: 0;
	background: #ffffff;
	border: 1px solid #e8e8e8;
	border-radius: 4px;
	padding: 36px 20px;
	color: inherit;
	text-decoration: none;
	cursor: pointer;
	box-sizing: border-box;
	display: flex;
	transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.psw-step:hover,
.psw-step.psw-active {
	border-color: #e53935;
	box-shadow: 0 6px 18px rgba(229, 57, 53, 0.10);
}

/* ── 图标在上方（默认） ──────────────────── */
.psw-icon-pos-top .psw-step {
	flex-direction: column;
}

/* 默认对齐（与 text_align 控件配合，未设时居中） */
.psw-icon-pos-top .psw-step,
.psw-icon-pos-top.psw-align-center .psw-step {
	align-items: center;
	text-align: center;
}

.psw-icon-pos-top.psw-align-left .psw-step {
	align-items: flex-start;
	text-align: left;
}

.psw-icon-pos-top.psw-align-right .psw-step {
	align-items: flex-end;
	text-align: right;
}

.psw-icon-pos-top .psw-icon {
	margin-bottom: 14px;
}

/* ── 图标在左侧 ──────────────────────────── */
.psw-icon-pos-left .psw-step {
	flex-direction: row;
	align-items: flex-start;
	text-align: left;
}

.psw-icon-pos-left .psw-icon {
	margin-right: 14px;
	flex-shrink: 0;
}

/* 文字对齐控件在左侧布局下仅作用于内容部分 */
.psw-icon-pos-left.psw-align-center .psw-step-content {
	text-align: center;
}
.psw-icon-pos-left.psw-align-right .psw-step-content {
	text-align: right;
}

/* ── 图标 ─────────────────────────────────── */
.psw-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.psw-icon i {
	font-size: 32px;
	color: #9aa3ad;
	transition: color 0.3s ease;
	display: inline-block;
}

.psw-icon svg {
	width: 32px;
	height: 32px;
	fill: #9aa3ad;
	transition: fill 0.3s ease;
	display: block;
}

/* 悬停 / 激活：图标变红 */
.psw-step:hover .psw-icon i,
.psw-step.psw-active .psw-icon i {
	color: #e53935;
}

.psw-step:hover .psw-icon svg,
.psw-step.psw-active .psw-icon svg {
	fill: #e53935;
}

/* ── 文字内容 ─────────────────────────────── */
.psw-step-content {
	flex: 1;
	min-width: 0;
	width: 100%;
}

/* STEP 0X 小标签 */
.psw-step-label {
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #bbbbbb;
	margin: 0 0 8px;
	line-height: 1.4;
	transition: color 0.3s ease;
}

.psw-step:hover .psw-step-label,
.psw-step.psw-active .psw-step-label {
	color: #e53935;
}

/* 标题（颜色不会因为悬停 / 激活而变化） */
.psw-title {
	font-size: 1.15rem;
	font-weight: 600;
	color: #1a1a1a;
	margin: 0 0 12px;
	line-height: 1.35;
}

/* 描述（颜色不会因为悬停 / 激活而变化） */
.psw-desc {
	font-size: 0.875rem;
	color: #888888;
	margin: 0;
	line-height: 1.6;
}

/* ── 编辑器空状态 ─────────────────────────── */
.psw-empty {
	padding: 40px;
	text-align: center;
	background: #f5f5f5;
	color: #888;
	font-size: 0.95rem;
	border-radius: 8px;
}

/* ── 响应式 ───────────────────────────────── */
@media (max-width: 1024px) {
	.psw-steps {
		flex-wrap: wrap;
	}
	.psw-step {
		flex: 1 1 calc(50% - 10px);
	}
}

@media (max-width: 768px) {
	/* !important 钳制 Elementor 排版组控件的桌面字号 */
	.psw-step-label {
		font-size: 12px !important;
		letter-spacing: 0.1em !important;
	}
	.psw-title {
		font-size: 18px !important;
		line-height: 1.3 !important;
	}
	.psw-desc {
		font-size: 13px !important;
		line-height: 1.55 !important;
	}
}

@media (max-width: 600px) {
	.psw-step {
		flex: 1 1 100%;
	}
	.psw-progress {
		display: none; /* 小屏幕下隐藏进度条 */
	}
}

@media (max-width: 480px) {
	.psw-title {
		font-size: 17px !important;
	}
	.psw-desc {
		font-size: 12.5px !important;
	}
}
