/**
 * ProCountdown Banner – 前台样式
 *
 * 前缀 pcb-；结构与默认视觉都写在这里，Elementor 控件只按需覆盖。
 * 默认字号使用 clamp()，≤900px 自动上下堆叠并居中，≤420px 再缩小方块尺寸。
 */

.pcb {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 26px 40px;
	overflow: hidden;
	isolation: isolate;
	color: #fffaf7;
	background-color: #6f0b0a;
	background-image: linear-gradient(
		var(--pcb-bg-angle, 100deg),
		var(--pcb-bg-a, #7c0b0a) 0%,
		#560908 46%,
		var(--pcb-bg-b, #1c0200) 100%
	);
	border-radius: 0;
}

/* 纯色模式：去掉渐变，只保留背景色 */
.pcb--bg-solid {
	background-image: none;
}

/* 左上的暖色反光，让大面积红色不至于发闷 */
.pcb::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background:
		radial-gradient(120% 190% at 82% 130%, rgba(255, 138, 94, 0.12) 0%, rgba(255, 138, 94, 0) 58%),
		radial-gradient(90% 140% at 4% -30%, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 62%);
}

.pcb__decor {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}

/* 右侧闪电装饰（默认很淡，颜色与透明度可在 Elementor 里调整） */
.pcb__bolt {
	position: absolute;
	top: -26%;
	right: -1.5%;
	width: auto;
	height: 160%;
	color: #fff;
	opacity: 0.08;
}

.pcb__inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 36px;
	width: 100%;
}

/* ---------------- 左侧标题 ---------------- */

.pcb__heading-wrap {
	min-width: 0;
	max-width: 100%;
}

.pcb__heading {
	margin: 0;
	color: #fffaf7;
	font-family: inherit;
	font-size: clamp(26px, 3.2vw, 38px);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.015em;
	text-wrap: balance;
	overflow-wrap: break-word;
}

.pcb__lead {
	margin: 8px 0 0;
	color: #d9a7a2;
	font-size: clamp(12px, 1.2vw, 14px);
	font-weight: 500;
	line-height: 1.4;
}

/* ---------------- 右侧倒计时 ---------------- */

.pcb__timer-wrap {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
	flex: 0 1 auto;
	max-width: 100%;
}

.pcb__timer {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
}

.pcb__unit {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	box-sizing: border-box;
	min-width: 72px;
	padding: 8px 13px 7px;
	background-color: rgba(226, 214, 209, 0.82);
	border-radius: 11px;
	box-shadow:
		inset 0 0 0 1px rgba(255, 255, 255, 0.28),
		0 8px 18px rgba(0, 0, 0, 0.16);
}

.pcb__value {
	color: #2a1513;
	font-family: inherit;
	font-size: clamp(25px, 2.6vw, 32px);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: 0.01em;
	font-variant-numeric: tabular-nums;
}

.pcb__label {
	color: #5c403b;
	font-family: inherit;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.2;
}

.pcb__sep {
	color: #f3d9d3;
	font-size: 24px;
	font-weight: 700;
	line-height: 1;
	transform: translateY(-0.16em);
}

/* ---------------- 底部促销文字（可加链接） ---------------- */

.pcb__note {
	max-width: 100%;
	margin: 0;
	color: #f6efea;
	font-size: clamp(13px, 1.35vw, 16px);
	font-weight: 500;
	line-height: 1.45;
	text-align: right;
	overflow-wrap: break-word;
}

.pcb__note-icon {
	display: inline-block;
	margin-right: 0.4em;
	font-size: 0.95em;
	vertical-align: -0.06em;
}

.pcb__note-accent {
	color: #fff;
	font-weight: 700;
	margin-right: 0.35em;
}

.pcb__note-text {
	color: inherit;
	font-weight: 500;
}

.pcb__note-link {
	color: inherit;
	text-decoration: none;
}

.pcb__note-link:hover .pcb__note-text,
.pcb__note-link:focus-visible .pcb__note-text {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.pcb__note-link:focus-visible {
	outline: 2px solid rgba(255, 255, 255, 0.8);
	outline-offset: 3px;
	border-radius: 3px;
}

/* ---------------- 结束状态 ---------------- */

.pcb--expired .pcb__value {
	opacity: 0.55;
}

.pcb--expired-hide-timer .pcb__timer {
	display: none;
}

.pcb--expired-hidden {
	display: none;
}

/* ---------------- 仅编辑器提示 ---------------- */

.pcb__editor-note {
	position: relative;
	z-index: 2;
	margin: 14px 0 0;
	padding: 7px 10px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.14);
	color: #ffe9e4;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.5;
}

/* ---------------- 响应式 ---------------- */

@media (max-width: 900px) {
	.pcb {
		padding: 22px 20px;
	}

	.pcb__inner {
		flex-direction: column;
		align-items: center;
		gap: 18px;
	}

	.pcb__heading-wrap {
		text-align: center;
	}

	.pcb__heading {
		font-size: 27px;
	}

	.pcb__lead {
		margin-top: 6px;
		font-size: 13px;
	}

	.pcb__timer-wrap {
		align-items: center;
	}

	.pcb__timer {
		gap: 8px;
	}

	.pcb__unit {
		min-width: 56px;
		padding: 8px 10px 6px;
		border-radius: 10px;
	}

	.pcb__value {
		font-size: 26px;
	}

	.pcb__label {
		font-size: 11px;
	}

	.pcb__sep {
		font-size: 20px;
	}

	.pcb__note {
		font-size: 14px;
		text-align: center;
	}
}

@media (max-width: 420px) {
	.pcb {
		padding: 18px 14px;
	}

	.pcb__inner {
		gap: 16px;
	}

	.pcb__heading {
		font-size: 24px;
	}

	.pcb__unit {
		min-width: 48px;
		padding: 6px 8px 5px;
		border-radius: 9px;
	}

	.pcb__value {
		font-size: 22px;
	}

	.pcb__label {
		font-size: 10px;
	}

	.pcb__sep {
		font-size: 17px;
	}

	.pcb__note {
		font-size: 13px;
	}
}
