/**
 * About Hero 元素样式
 *
 * 原则：
 * 1. 不覆盖字号/字体 —— 标题与正文直接继承主题（Bricks 全局）排版；
 * 2. 所有间距用 px / vw，不用 rem —— 主题根字号被设得较小（如 62.5%）时，
 *    rem 会让间距和字号一起缩水；
 * 3. 图片用比例约束 + object-fit 裁切，高度随列宽变化，不会撑满全屏。
 */

.pgc-about-hero {
	--pgc-hero-accent: #b4451f;
	--pgc-hero-surface: #e9e6de;

	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: clamp(24px, 3vw, 56px);
	align-items: center;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

/* ---------- 左侧文字：字号全部继承主题 ---------- */
.pgc-about-hero__content {
	min-width: 0;
}

.pgc-about-hero__heading {
	margin: 0;
	color: inherit;
	text-wrap: balance;
	overflow-wrap: break-word;
}

.pgc-about-hero__heading em {
	font-style: normal;
	color: var(--pgc-hero-accent);
}

.pgc-about-hero__lede {
	/* max-width: 56ch; */
	margin: 20px 0 0;
	color: inherit;
}

/* ---------- 右侧图片 ---------- */
.pgc-about-hero__media {
	position: relative;
	margin: 0;
	min-width: 0;
	overflow: hidden;
	border-radius: 16px;
	background: var(--pgc-hero-surface);
	aspect-ratio: 16 / 10;
}

.pgc-about-hero__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pgc-about-hero__tag {
	position: absolute;
	left: 16px;
	bottom: 16px;
	padding: 8px 12px;
	border-radius: 10px;
	background: rgba(18, 19, 15, 0.72);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	color: #f2f0ea;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 11px;
	line-height: 1.4;
	letter-spacing: 0.06em;
}

/* 编辑器里未选图时的提示 */
.pgc-about-hero__placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	color: #6d7066;
}

/* ---------- 窄屏：图片置顶、上下排列 ---------- */
@media (max-width: 860px) {
	.pgc-about-hero {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}

	.pgc-about-hero__media {
		order: -1;
		aspect-ratio: 16 / 11;
	}

	.pgc-about-hero__lede {
		margin-top: 14px;
	}
}
