/* ==========================================================================
 * HBC Partner CTA — 合作伙伴行动号召
 *
 * 结构:
 *   .hbc-pcta                       (外层容器,支持背景色/图片/渐变色)
 *     └ .hbc-pcta__inner            (内容区)
 *         ├ .hbc-pcta__accent       (顶部装饰线)
 *         ├ .hbc-pcta__cols         (两列 flex)
 *         │   ├ .hbc-pcta__body     (左:斜体正文)
 *         │   └ .hbc-pcta__label    (右:标签/副标题)
 *         └ .hbc-pcta__btn-wrap     (按钮行,居中)
 *             └ .hbc-pcta__btn      (有链接 → <a>;无链接 → <span>)
 *                 ├ .hbc-pcta__btn-label
 *                 └ .hbc-pcta__btn-icon
 * ========================================================================== */

/* ── 外层容器 ──────────────────────────────────────────────────────────── */
.hbc-pcta {
	position: relative;
	width: 100%;
	background-color: #F5F5E8;
	overflow: hidden;
	box-sizing: border-box;
}

.hbc-pcta * {
	box-sizing: border-box;
}

/* ── 内容区 ──────────────────────────────────────────────────────────────── */
.hbc-pcta__inner {
	position: relative;
	padding: 48px 60px;
}

/* ── 顶部装饰线 ────────────────────────────────────────────────────── */
.hbc-pcta__accent {
	display: block;
	width: 120px;
	height: 3px;
	background-color: #3D1B6B;
	margin-bottom: 24px;
	border-radius: 2px;
}

/* ── 两列布局 ──────────────────────────────────────────────────────── */
.hbc-pcta__cols {
	display: flex;
	align-items: center;
	gap: 48px;
	width: 100%;
}

/* ── 左侧正文 ──────────────────────────────────────────────────────── */
.hbc-pcta__body {
	flex: 0 0 60%;
	max-width: 60%;
	min-width: 0;
	color: #1D0F36;
	font-size: 16px;
	font-style: italic;
	font-weight: 400;
	line-height: 1.65;
	word-wrap: break-word;
}

.hbc-pcta__body p {
	margin: 0 0 1em;
	color: inherit;
}

.hbc-pcta__body p:last-child {
	margin-bottom: 0;
}

/* ── 右侧标签 ──────────────────────────────────────────────────────── */
.hbc-pcta__label {
	flex: 1 1 auto;
	min-width: 0;
	color: #3D1B6B;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.5;
	text-align: right;
	word-wrap: break-word;
}

.hbc-pcta__label p {
	margin: 0 0 1em;
	color: inherit;
}

.hbc-pcta__label p:last-child {
	margin-bottom: 0;
}

/* ── 按钮行 ────────────────────────────────────────────────────────── */
.hbc-pcta__btn-wrap {
	display: flex;
	justify-content: center;
	margin-top: 32px;
}

/* ── 按钮本体 ──────────────────────────────────────────────────────── */
.hbc-pcta__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	flex-shrink: 0;
	padding: 14px 36px;
	background-color: #3D1B6B;
	color: #FFFFFF;
	text-decoration: none;
	border: 0;
	cursor: pointer;
	user-select: none;
	transition: background-color 250ms ease, color 250ms ease, transform 250ms ease, box-shadow 250ms ease;
	line-height: 1;
	will-change: transform;
}

a.hbc-pcta__btn,
a.hbc-pcta__btn:hover,
a.hbc-pcta__btn:focus {
	text-decoration: none;
}

span.hbc-pcta__btn--no-link {
	cursor: default;
}

.hbc-pcta__btn:hover {
	background-color: #2A1049;
	transform: translateY(-2px);
}

.hbc-pcta__btn:focus-visible {
	outline: 3px solid #FFD400;
	outline-offset: 3px;
}

/* ── 按钮内层 ──────────────────────────────────────────────────────── */
.hbc-pcta__btn-label {
	display: inline-block;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	color: inherit;
	white-space: nowrap;
}

.hbc-pcta__btn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1em;
	height: 1em;
	font-size: 12px;
	color: inherit;
	flex-shrink: 0;
	line-height: 1;
}

.hbc-pcta__btn-icon i,
.hbc-pcta__btn-icon svg {
	display: block;
	width: 1em;
	height: 1em;
}

.hbc-pcta__btn-icon svg {
	fill: currentColor;
}

/* ==========================================================================
 *  响应式
 * ========================================================================== */
@media (max-width: 1024px) {
	.hbc-pcta__inner {
		padding: 40px 40px;
	}

	.hbc-pcta__cols {
		gap: 32px;
	}

	.hbc-pcta__body {
		font-size: 15px;
	}

	.hbc-pcta__label {
		font-size: 16px;
	}
}

@media (max-width: 767px) {
	.hbc-pcta__inner {
		padding: 32px 24px;
	}

	.hbc-pcta__cols {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
	}

	.hbc-pcta__body {
		flex: 0 0 100%;
		max-width: 100%;
		font-size: 14px;
	}

	.hbc-pcta__label {
		width: 100%;
		text-align: left;
		font-size: 15px;
	}

	.hbc-pcta__btn-wrap {
		margin-top: 20px;
	}
}

/* ==========================================================================
 *  减动效偏好
 * ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	.hbc-pcta__btn {
		transition: none;
	}

	.hbc-pcta__btn:hover {
		transform: none;
	}
}

/* ==========================================================================
 *  编辑器空白占位
 * ========================================================================== */
.elementor-editor-active .hbc-pcta__inner:not(:has(.hbc-pcta__cols))::after {
	content: '合作伙伴行动号召 — 请在左侧面板填写内容';
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 80px;
	color: rgba(61, 27, 107, 0.4);
	font-size: 13px;
	font-style: italic;
}
