/* WOPUS 科技背景区块 · 前端与编辑器共用样式（纯 CSS，无图片） */

.wp-block-wopus-tech-hero.tech-hero {
	--th-bg-top: #050a18;
	--th-bg-mid: #081632;
	--th-glow-blue: 59, 130, 255;
	--th-glow-cyan: 114, 231, 255;
	--th-grid-color: 255, 255, 255;
	--th-grid-alpha: 0.035;
	--th-grid-size: 56px;
	--th-min-height: 100vh;

	position: relative;
	isolation: isolate;
	overflow: hidden;
	min-height: var(--th-min-height);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #f3f7ff;
	background:
		radial-gradient(circle at 16% 8%, rgba(var(--th-glow-blue), 0.20), transparent 30rem),
		radial-gradient(circle at 82% 12%, rgba(var(--th-glow-cyan), 0.12), transparent 24rem),
		linear-gradient(180deg, var(--th-bg-top) 0%, var(--th-bg-mid) 48%, var(--th-bg-top) 100%);
}

/* 网格层 */
.wp-block-wopus-tech-hero.tech-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -2;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(var(--th-grid-color), var(--th-grid-alpha)) 1px, transparent 1px),
		linear-gradient(90deg, rgba(var(--th-grid-color), var(--th-grid-alpha)) 1px, transparent 1px);
	background-size: var(--th-grid-size) var(--th-grid-size);
	-webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 78%);
	        mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 78%);
}

/* 关闭网格 */
.wp-block-wopus-tech-hero.tech-hero--no-grid::before {
	display: none;
}

/* 中心聚光 */
.wp-block-wopus-tech-hero.tech-hero::after {
	content: "";
	position: absolute;
	top: 6%;
	left: 50%;
	z-index: -1;
	width: min(54rem, 92vw);
	height: min(54rem, 92vw);
	transform: translateX(-50%);
	pointer-events: none;
	background:
		radial-gradient(circle at 50% 50%, rgba(var(--th-glow-blue), 0.28), transparent 58%),
		radial-gradient(circle at 35% 36%, rgba(var(--th-glow-cyan), 0.16), transparent 40%);
}

/* 内容容器 */
.wp-block-wopus-tech-hero .tech-hero__inner {
	position: relative;
	z-index: 1;
	width: min(1120px, 92vw);
	margin: 0 auto;
	padding: 6rem 1.5rem;
	text-align: center;
}

/* 让内部文字默认更亮，符合深色背景 */
.wp-block-wopus-tech-hero .tech-hero__inner :where(h1, h2, h3, h4, p) {
	color: #f3f7ff;
}

@media (max-width: 720px) {
	.wp-block-wopus-tech-hero.tech-hero {
		--th-grid-size: 40px;
		--th-min-height: 70vh;
	}
	.wp-block-wopus-tech-hero .tech-hero__inner {
		padding: 4rem 1.25rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wp-block-wopus-tech-hero.tech-hero,
	.wp-block-wopus-tech-hero.tech-hero::before,
	.wp-block-wopus-tech-hero.tech-hero::after {
		animation: none;
	}
}
