/**
 * 产品首屏（Product Hero）
 *
 * 背景科技感：点阵底纹（径向渐隐）+ 品牌色光晕 + 图片后两层缓慢旋转的圆环 + 右上角刻度线
 * 交互：悬停产品图轻微推近；缩略图点击切换主图；主按钮打开 Elementor 弹窗
 */

.wjc-phero {
	--wjc-phero-accent: #b6c81a;
	--wjc-phero-bg: #f7f8f8;
	--wjc-phero-pattern: 0.7;
	--wjc-phero-media-cols: 55%;
	--wjc-phero-min-h: 560px;
	--wjc-phero-img-max: 460px;
	--wjc-phero-meta-label: #9aa0a6;
	--wjc-phero-meta-value: #b6c81a;
	--wjc-phero-btn-bg: #111827;
	--wjc-phero-btn-color: #ffffff;
	--wjc-phero-btn-hover-bg: #b6c81a;
	--wjc-phero-btn-hover-color: #111827;
	--wjc-phero-btn-w: 340px;

	position: relative;
	box-sizing: border-box;
	padding: 40px 20px;
	overflow: hidden;
	background-color: var(--wjc-phero-bg);
}

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

/* ==================== 背景：蓝图网格 + 圆点 + 十字标记 ==================== */
/* 三层叠在一起：细网格线（蓝图感）+ 圆点（粒子感）+ 十字准星（工程感） */
.wjc-phero::before {
	content: "";
	position: absolute;
	inset: -40px;
	z-index: 0;
	pointer-events: none;
	opacity: var(--wjc-phero-pattern);
	background-image:
		/* 十字准星（每 120px 一个） */
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg stroke='%23111827' stroke-opacity='0.28' stroke-width='1'%3E%3Cpath d='M60 54v12M54 60h12'/%3E%3C/g%3E%3Ccircle cx='60' cy='60' r='16' fill='none' stroke='%23111827' stroke-opacity='0.1'/%3E%3C/svg%3E"),
		/* 圆点 */
		radial-gradient(rgba(17, 24, 39, 0.22) 1px, transparent 1px),
		/* 细网格线 */
		linear-gradient(to right, rgba(17, 24, 39, 0.07) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(17, 24, 39, 0.07) 1px, transparent 1px);
	background-size:
		120px 120px,
		20px 20px,
		120px 120px,
		120px 120px;
	background-position: 0 0, 0 0, 0 0, 0 0;
	-webkit-mask-image: radial-gradient(115% 95% at 26% 46%, #000 26%, transparent 80%);
	mask-image: radial-gradient(115% 95% at 26% 46%, #000 26%, transparent 80%);
	animation: wjc-phero-grid 34s linear infinite;
}

@keyframes wjc-phero-grid {
	from {
		background-position: 0 0, 0 0, 0 0, 0 0;
	}
	to {
		background-position: 120px 120px, 20px 20px, 120px 120px, 120px 120px;
	}
}

/* 品牌色光晕（两层：主光 + 一点冷调边缘） */
.wjc-phero.has-glow::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 18%;
	width: min(760px, 78%);
	aspect-ratio: 1;
	transform: translate(-50%, -50%);
	z-index: 0;
	pointer-events: none;
	background:
		radial-gradient(closest-side, rgba(182, 200, 26, 0.24), transparent 72%);
	background:
		radial-gradient(closest-side, color-mix(in srgb, var(--wjc-phero-accent) 26%, transparent), transparent 72%);
	animation: wjc-phero-breathe 9s ease-in-out infinite alternate;
}

@keyframes wjc-phero-breathe {
	from {
		opacity: 0.42;
		transform: translate(-50%, -50%) scale(0.94);
	}
	to {
		opacity: 0.68;
		transform: translate(-50%, -50%) scale(1.04);
	}
}

/* 四角括号 */
.wjc-phero.has-frame .wjc-phero__frame {
	position: absolute;
	inset: 16px;
	z-index: 2;
	pointer-events: none;
	opacity: 0.5;
	background-image:
		linear-gradient(var(--wjc-phero-accent), var(--wjc-phero-accent)),
		linear-gradient(var(--wjc-phero-accent), var(--wjc-phero-accent)),
		linear-gradient(var(--wjc-phero-accent), var(--wjc-phero-accent)),
		linear-gradient(var(--wjc-phero-accent), var(--wjc-phero-accent)),
		linear-gradient(var(--wjc-phero-accent), var(--wjc-phero-accent)),
		linear-gradient(var(--wjc-phero-accent), var(--wjc-phero-accent)),
		linear-gradient(var(--wjc-phero-accent), var(--wjc-phero-accent)),
		linear-gradient(var(--wjc-phero-accent), var(--wjc-phero-accent));
	background-repeat: no-repeat;
	background-size:
		18px 1px, 1px 18px,
		18px 1px, 1px 18px,
		18px 1px, 1px 18px,
		18px 1px, 1px 18px;
	background-position:
		left top, left top,
		right top, right top,
		left bottom, left bottom,
		right bottom, right bottom;
}

/* 右上角技术刻度线 */
.wjc-phero.has-lines .wjc-phero__grid::before {
	content: "";
	position: absolute;
	right: 0;
	top: 0;
	width: 120px;
	height: 120px;
	pointer-events: none;
	opacity: 0.5;
	background-image:
		linear-gradient(to right, rgba(17, 24, 39, 0.18) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(17, 24, 39, 0.18) 1px, transparent 1px);
	background-size: 20px 20px;
	-webkit-mask-image: linear-gradient(225deg, #000 10%, transparent 70%);
	mask-image: linear-gradient(225deg, #000 10%, transparent 70%);
}

/* ==================== 两栏 ==================== */
.wjc-phero__grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: var(--wjc-phero-media-cols) minmax(0, 1fr);
	gap: clamp(24px, 4vw, 72px);
	align-items: center;
	max-width: 1300px;
	min-height: var(--wjc-phero-min-h);
	margin: 0 auto;
}

.wjc-phero.is-image-right .wjc-phero__grid {
	grid-template-columns: minmax(0, 1fr) var(--wjc-phero-media-cols);
}

.wjc-phero.is-image-right .wjc-phero__media {
	order: 2;
}

/* ==================== 图片区 ==================== */
.wjc-phero__media {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 0;
}

.wjc-phero__img {
	position: relative;
	z-index: 2;
	display: block;
	width: 100%;
	max-width: 100%;
	max-height: var(--wjc-phero-img-max);
	object-fit: contain;
	filter: drop-shadow(0 26px 44px rgba(17, 24, 39, 0.14));
	transition: transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (hover: hover) {
	.wjc-phero__media:hover .wjc-phero__img {
		transform: scale(1.03);
	}
}

/* 图片后面的两层旋转圆环（外圈虚线 + 光点，内圈实线反向） */
.wjc-phero__rings {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1;
	width: min(92%, 620px);
	aspect-ratio: 1;
	transform: translate(-50%, -50%);
	pointer-events: none;
}

.wjc-phero__ring {
	position: absolute;
	inset: 0;
	border-radius: 999px;
	border: 1px solid rgba(17, 24, 39, 0.14);
	border-color: color-mix(in srgb, var(--wjc-phero-accent) 40%, rgba(17, 24, 39, 0.12));
	opacity: 0.55;
}

.wjc-phero__ring.is-outer {
	animation: wjc-phero-spin 46s linear infinite;
	border-style: dashed;
	border-width: 1px;
}

.wjc-phero__ring.is-inner {
	inset: 14%;
	animation: wjc-phero-spin 32s linear infinite reverse;
	opacity: 0.35;
}

.wjc-phero__ring.is-outer::after {
	content: "";
	position: absolute;
	top: -4px;
	left: 50%;
	width: 8px;
	height: 8px;
	margin-left: -4px;
	border-radius: 999px;
	background-color: var(--wjc-phero-accent);
	box-shadow: 0 0 0 4px rgba(182, 200, 26, 0.22);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--wjc-phero-accent) 22%, transparent);
}

@keyframes wjc-phero-spin {
	to {
		transform: rotate(360deg);
	}
}

/* ==================== 文字区 ==================== */
.wjc-phero__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	min-width: 0;
}

.wjc-phero__kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #6b6f76;
}

.wjc-phero__dot {
	flex: 0 0 auto;
	width: 7px;
	height: 7px;
	border-radius: 999px;
	background-color: var(--wjc-phero-accent);
	box-shadow: 0 0 0 4px rgba(182, 200, 26, 0.2);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--wjc-phero-accent) 20%, transparent);
}

.wjc-phero__title {
	margin: 0;
	font-size: clamp(24px, 2.5vw, 38px);
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -0.015em;
	color: #16181b;
	word-break: keep-all;
}

.wjc-phero__desc {
	font-size: 14px;
	line-height: 1.85;
	color: #6b6f76;
	word-break: keep-all;
}

/* ==================== 按钮 ==================== */
.wjc-phero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-top: 6px;
}

.wjc-phero__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 15px 24px;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	transition:
		background-color 0.3s ease,
		color 0.3s ease,
		border-color 0.3s ease,
		transform 0.3s ease,
		box-shadow 0.3s ease;
}

.wjc-phero__btn.is-primary {
	width: var(--wjc-phero-btn-w, 340px);
	max-width: 100%;
	border: 1px solid transparent;
	background-color: var(--wjc-phero-btn-bg);
	color: var(--wjc-phero-btn-color);
	cursor: pointer;
}

.wjc-phero__btn.is-primary svg {
	flex: 0 0 auto;
	transition: transform 0.3s ease;
}

.wjc-phero__btn.is-ghost {
	border: 1px solid rgba(17, 24, 39, 0.18);
	background-color: transparent;
	color: #2b2d31;
}

@media (hover: hover) {
	.wjc-phero__btn.is-primary:hover {
		background-color: var(--wjc-phero-btn-hover-bg);
		color: var(--wjc-phero-btn-hover-color);
		box-shadow: 0 14px 30px rgba(182, 200, 26, 0.32);
		box-shadow: 0 14px 30px color-mix(in srgb, var(--wjc-phero-accent) 35%, transparent);
		transform: translateY(-2px);
	}

	.wjc-phero__btn.is-primary:hover svg {
		transform: translateX(3px);
	}

	.wjc-phero__btn.is-ghost:hover {
		border-color: #16181b;
		background-color: #16181b;
		color: #ffffff;
	}
}

.wjc-phero__btn:active {
	transform: scale(0.99);
}

.wjc-phero__btn:focus-visible {
	outline: 2px solid var(--wjc-phero-accent);
	outline-offset: 3px;
}

/* ==================== 分类 / 标签 ==================== */
.wjc-phero__meta {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
	margin-top: 10px;
	padding-top: 18px;
	border-top: 1px solid rgba(17, 24, 39, 0.1);
}

.wjc-phero__meta-row {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	font-size: 12.5px;
	line-height: 1.7;
}

.wjc-phero__meta-label {
	flex: 0 0 auto;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wjc-phero-meta-label);
}

.wjc-phero__meta-value {
	min-width: 0;
	color: var(--wjc-phero-meta-value);
	word-break: keep-all;
}

.wjc-phero__meta-value a {
	color: inherit;
	text-decoration: none;
	transition: opacity 0.25s ease;
}

.wjc-phero__meta-value a:hover {
	opacity: 0.7;
	text-decoration: underline;
}

/* ==================== 响应式 ==================== */
@media (max-width: 1024px) {
	.wjc-phero__grid,
	.wjc-phero.is-image-right .wjc-phero__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
		min-height: 0;
	}

	.wjc-phero.is-image-right .wjc-phero__media {
		order: 0;
	}

	.wjc-phero__rings {
		width: min(78%, 420px);
	}

	.wjc-phero__img {
		max-height: 340px;
	}
}

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

	.wjc-phero__title {
		font-size: 22px;
	}

	.wjc-phero__btn.is-primary {
		width: 100%;
	}


}

/* ==================== 降低动效 ==================== */
@media (prefers-reduced-motion: reduce) {
	.wjc-phero::before,
	.wjc-phero.has-glow::after,
	.wjc-phero__ring.is-outer,
	.wjc-phero__ring.is-inner {
		animation: none;
	}

	.wjc-phero__img,
	.wjc-phero__btn {
		transition: none;
	}

	.wjc-phero__media:hover .wjc-phero__img,
	.wjc-phero__btn.is-primary:hover {
		transform: none;
	}
}
