/**
 * 首屏主推 — 样式（区块内独立样式，便于子主题覆盖）
 */

.b2b-hero {
	position: relative;
	padding-block: clamp(3.5rem, 2.5rem + 5vw, 6.5rem);
	overflow: hidden;
}

/* --- 配色变体 --- */

.b2b-hero--dark {
	background: var(--wp--preset--gradient--hero-dark);
	color: #fff;
}

.b2b-hero--primary {
	background: var(--wp--preset--gradient--hero-primary);
	color: #fff;
}

.b2b-hero--light {
	background: var(--wp--preset--color--light);
	color: var(--wp--preset--color--text);
}

.b2b-hero--light .b2b-hero__title {
	color: var(--wp--preset--color--dark);
}

/* --- 布局 --- */

.b2b-hero__inner {
	display: grid;
	gap: clamp(2rem, 1.5rem + 3vw, 4rem);
	align-items: center;
}

@media (min-width: 900px) {
	.b2b-hero--split .b2b-hero__inner {
		grid-template-columns: 1.05fr 0.95fr;
	}
}

.b2b-hero--centered .b2b-hero__inner {
	grid-template-columns: 1fr;
	max-width: 860px;
	margin-inline: auto;
	text-align: center;
}

.b2b-hero--centered .b2b-btn-row,
.b2b-hero--centered .b2b-section__eyebrow {
	justify-content: center;
}

.b2b-hero--centered .b2b-section__eyebrow::after {
	content: "";
	width: 24px;
	height: 2px;
	background: currentColor;
}

.b2b-hero--centered .b2b-hero__sub {
	margin-inline: auto;
}

/* --- 文案 --- */

.b2b-hero__title {
	margin: 0 0 1.25rem;
	font-size: var(--wp--preset--font-size--display);
	line-height: 1.08;
	letter-spacing: -0.035em;
	font-weight: 800;
	text-wrap: balance;
}

.b2b-hero__sub {
	margin: 0 0 2rem;
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.6;
	max-width: 56ch;
	opacity: 0.82;
}

.b2b-hero--centered .b2b-hero__sub {
	max-width: 62ch;
}

.b2b-hero--light .b2b-hero__sub {
	color: var(--wp--preset--color--text-muted);
	opacity: 1;
}

/* --- 信任标签 --- */

.b2b-hero__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.625rem 1.5rem;
	margin: 2.5rem 0 0;
	padding: 0;
	list-style: none;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	opacity: 0.85;
}

.b2b-hero__badges li {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.b2b-hero__badges svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	fill: none;
	stroke: currentColor;
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.b2b-hero--light .b2b-hero__badges {
	color: var(--wp--preset--color--text-muted);
}

/* --- 媒体 --- */

.b2b-hero__media {
	position: relative;
	border-radius: var(--wp--custom--radius--xl, 28px);
	overflow: hidden;
	box-shadow: var(--wp--preset--shadow--hover);
}

.b2b-hero__img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.b2b-hero__placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	aspect-ratio: 4 / 3;
	padding: 2rem;
	background: rgba(255, 255, 255, 0.08);
	border: 2px dashed rgba(255, 255, 255, 0.28);
	border-radius: var(--wp--custom--radius--xl, 28px);
	color: rgba(255, 255, 255, 0.75);
	font-size: var(--wp--preset--font-size--small);
	text-align: center;
}

.b2b-hero__placeholder svg {
	width: 48px;
	height: 48px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.b2b-hero--light .b2b-hero__placeholder {
	background: #fff;
	border-color: var(--wp--preset--color--border);
	color: var(--wp--preset--color--text-muted);
}

/* 全屏背景图版式 */
.b2b-hero--bleed .b2b-hero__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.b2b-hero--bleed .b2b-hero__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(10, 16, 28, 0.88) 0%, rgba(10, 16, 28, 0.65) 55%, rgba(10, 16, 28, 0.35) 100%);
}

@media (max-width: 767px) {
	.b2b-hero--bleed .b2b-hero__bg::after {
		background: linear-gradient(180deg, rgba(10, 16, 28, 0.8) 0%, rgba(10, 16, 28, 0.9) 100%);
	}
}

.b2b-hero--bleed .b2b-hero__bg-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.b2b-hero--bleed .b2b-container {
	position: relative;
	z-index: 1;
}

.b2b-hero--bleed .b2b-hero__inner {
	grid-template-columns: 1fr;
	max-width: 760px;
	min-height: min(72vh, 640px);
	align-content: center;
}

/* 主色底上的次按钮需要深色文字才看得清 */
.b2b-hero--light .b2b-btn--ghost-light {
	color: var(--wp--preset--color--dark);
	border-color: var(--wp--preset--color--border);
}

.b2b-hero--light .b2b-btn--ghost-light:hover {
	background: #fff;
	border-color: var(--wp--preset--color--dark);
}
