/**
 * 行动号召条 — 样式
 */

.b2b-cta {
	color: #fff;
}

/* --- 形态 --- */

.b2b-cta--band .b2b-cta__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: clamp(1.5rem, 1rem + 2vw, 3rem);
	padding-block: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}

.b2b-cta--card {
	padding: clamp(2rem, 1.5rem + 2.5vw, 3rem);
}

.b2b-cta--card .b2b-cta__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: clamp(1.5rem, 1rem + 2vw, 3rem);
	padding: 0;
}

/* --- 背景 --- */

.b2b-cta--dark {
	background: var(--wp--preset--color--dark);
}

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

.b2b-cta--accent {
	background: linear-gradient(120deg, #FF6A00 0%, #FF8A2B 100%);
}

.b2b-cta--card.b2b-cta--dark {
	background: var(--wp--preset--gradient--hero-dark);
}

/* --- 内容 --- */

.b2b-cta__content {
	flex: 1 1 460px;
	min-width: 0;
}

.b2b-cta__title {
	margin: 0 0 0.75rem;
	font-size: clamp(1.375rem, 1.2rem + 1vw, 2rem);
	font-weight: 750;
	line-height: 1.2;
	letter-spacing: -0.028em;
	color: #fff;
	text-wrap: balance;
}

/* CTA 深/主色底上的 eyebrow：原 primary 蓝对比不足，改浅色 */
.b2b-cta--dark .b2b-section__eyebrow,
.b2b-cta--primary .b2b-section__eyebrow {
	color: rgba(255, 255, 255, 0.88);
}

.b2b-cta__text {
	margin: 0;
	max-width: 62ch;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.78);
}

.b2b-cta--accent .b2b-cta__text {
	color: rgba(255, 255, 255, 0.92);
}

/* 深色底上的主按钮改为白色，橙底上才用橙 */
.b2b-cta--dark .b2b-btn--accent,
.b2b-cta--primary .b2b-btn--accent {
	background: var(--wp--preset--color--accent);
}

.b2b-cta--dark .b2b-btn--ghost-light,
.b2b-cta--primary .b2b-btn--ghost-light {
	border-color: rgba(255, 255, 255, 0.45);
}

/* 橙底上主按钮用白色，否则两个橙色糊在一起 */
.b2b-cta--accent .b2b-btn--accent {
	background: #fff;
	color: var(--wp--preset--color--text);
}

.b2b-cta--accent .b2b-btn--accent:hover {
	background: #fff;
	color: var(--wp--preset--color--text);
	box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.35);
}

.b2b-cta--accent .b2b-btn--ghost-light:hover {
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
}

.b2b-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.875rem;
	/* 1.3.3：原先 flex-shrink:0 + 无 min-width，按钮文案长时
	   （西语/法语 WhatsApp 按钮）整行 600px 直接撑破窄屏视口，
	   改成允许收缩并占满容器，按钮放不下时自己换行。 */
	flex-shrink: 1;
	min-width: 0;
	width: 100%;
}

/* 窄屏：按钮整行堆叠，长文案自动换行，绝不横向溢出；lg 内边距收窄防 320px 爆框 */
@media (max-width: 640px) {
	.b2b-cta__actions .b2b-btn {
		flex: 1 1 100%;
		max-width: 100%;
	}

	.b2b-cta__actions .b2b-btn--lg {
		padding-inline: 1.25rem;
	}
}

/* --- 联系方式 --- */

.b2b-cta__contacts {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.75rem;
	margin: 1.5rem 0 0;
	padding: 0;
	list-style: none;
	font-size: var(--wp--preset--font-size--x-small);
}

.b2b-cta__contacts a,
.b2b-cta__contacts span {
	display: inline-flex;
	align-items: baseline;
	gap: 0.4rem;
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
}

.b2b-cta__contacts a:hover {
	color: #fff;
	text-decoration: underline;
}

.b2b-cta__contact-label {
	opacity: 0.55;
	font-weight: 500;
}
