/* ===========================================================
 * WJC 行动引领面板 (Action Panels)
 * =========================================================== */

.wjc-action-panels {
	--wjc-ap-active-flex: 5;
	--wjc-ap-overlay-active: rgba(0, 0, 0, 0.72);
	--wjc-ap-overlay-inactive: rgba(0, 0, 0, 0.5);
	font-family: Arial, "Microsoft YaHei", sans-serif;
}

/* ---------- 桌面 / 平板端 ---------- */
.wjc-ap-desktop {
	display: flex;
	gap: 16px;
	height: 480px;
	width: 100%;
}

.wjc-ap-panel {
	position: relative;
	flex: 1;
	min-width: 0;
	border-radius: 16px;
	overflow: hidden;
	cursor: pointer;
	color: #fff;
	transition: flex 0.6s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.4s ease;
}

.wjc-ap-panel:hover,
.wjc-ap-panel.is-active {
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.wjc-ap-panel.is-active {
	flex: var(--wjc-ap-active-flex);
}

.wjc-ap-panel .wjc-ap-img,
.wjc-ap-m-panel .wjc-ap-img {
	position: absolute !important;
	inset: 0 !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	min-width: 100% !important;
	min-height: 100% !important;
	margin: 0 !important;
	object-fit: cover !important;
	display: block;
	transform: scale(1);
	filter: brightness(0.72);
	transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), filter 0.5s ease;
}

.wjc-ap-panel.is-active .wjc-ap-img {
	transform: scale(1.06);
	filter: brightness(1);
}

.wjc-ap-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, var(--wjc-ap-overlay-inactive), rgba(0, 0, 0, 0.2));
	transition: background 0.5s ease;
	pointer-events: none;
}

.wjc-ap-panel.is-active .wjc-ap-overlay {
	background: linear-gradient(to top, var(--wjc-ap-overlay-active), rgba(0, 0, 0, 0.12));
}

.wjc-ap-main {
	position: absolute;
	left: 24px;
	right: 24px;
	bottom: 22px;
	z-index: 10;
	opacity: 0;
	transform: translateY(10px);
	pointer-events: none;
	transition: opacity 0.45s ease, transform 0.45s ease;
}

.wjc-ap-panel.is-active .wjc-ap-main {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.wjc-ap-main h3 {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 12px;
}

.wjc-ap-main p {
	font-size: 13px;
	line-height: 1.8;
	opacity: 0.9;
	margin: 0;
}

.wjc-ap-side {
	position: absolute;
	inset: 0;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 8px;
	opacity: 1;
	pointer-events: auto;
	transition: opacity 0.45s ease;
}

.wjc-ap-panel.is-active .wjc-ap-side {
	opacity: 0;
	pointer-events: none;
}

.wjc-ap-side h3 {
	font-size: 13px;
	font-weight: 700;
	margin: 0;
	line-height: 1.4;
	text-align: center;
	writing-mode: horizontal-tb;
	white-space: normal;
	word-break: break-word;
}

.wjc-ap-mobile {
	display: none;
}

/* ---------- 移动端：纵向点击展开 ---------- */
@media (max-width: 767px) {
	.wjc-ap-desktop {
		display: none;
	}

	.wjc-ap-mobile {
		display: flex;
		flex-direction: column;
		gap: 14px;
	}

	.wjc-ap-m-panel {
		position: relative;
		height: 72px;
		border-radius: 16px;
		overflow: hidden;
		color: #fff;
		cursor: pointer;
		transition: height 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
	}

	.wjc-ap-m-panel.is-active {
		height: 240px;
	}

	.wjc-ap-m-panel .wjc-ap-img {
		filter: brightness(0.85);
	}

	.wjc-ap-m-panel.is-active .wjc-ap-img {
		filter: brightness(1);
	}

	.wjc-ap-m-panel .wjc-ap-overlay {
		background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.12));
	}

	.wjc-ap-m-text {
		position: absolute;
		left: 20px;
		right: 20px;
		bottom: 18px;
		z-index: 10;
	}

	.wjc-ap-m-text h3 {
		font-size: 16px;
		font-weight: 700;
		margin: 0 0 8px;
	}

	.wjc-ap-m-desc {
		font-size: 13px;
		line-height: 1.8;
		opacity: 0.9;
		margin: 0;
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.4s ease, opacity 0.3s ease;
		opacity: 0;
	}

	.wjc-ap-m-panel.is-active .wjc-ap-m-desc {
		max-height: 160px;
		opacity: 0.9;
	}
}

/* ---------- 平板中间断点：布局与原组件一致地做适度收窄 ---------- */
@media (min-width: 768px) and (max-width: 1100px) {
	.wjc-ap-desktop {
		height: 420px;
	}
}
