/**
 * Qing 资质展示卡小部件样式（对齐设计稿）。
 *
 * 结构：.qing-fc（定位容器） >
 *   .qing-fc-bg（背景图，悬停可放大）
 *   .qing-fc-overlay（正常渐变遮罩）
 *   .qing-fc-overlay--hover（悬停蓝色渐变遮罩，透明度 0→1 淡入）
 *   .qing-fc-inner（内容层：顶部图标+标题，底部序号列表）
 *
 * 具体尺寸、颜色、排版由 Elementor 控件通过内联 selectors 覆盖，
 * 这里提供合理默认与结构性布局。
 */

.qing-fc {
	/* 渐变遮罩起止色以 CSS 变量暴露，由小部件控件覆盖，避免跨控件 token 依赖。 */
	--fc-ov-start: rgba(46, 54, 66, 0);
	--fc-ov-end: rgba(28, 35, 46, 0.7);
	--fc-ovh-start: rgba(37, 99, 235, 0.25);
	--fc-ovh-end: rgba(29, 78, 216, 0.9);
	position: relative;
	display: flex;
	width: 100%;
	min-height: 560px;
	overflow: hidden;
	border-radius: 12px;
	color: #ffffff;
	isolation: isolate;
}

/* 背景图层：铺满裁切，悬停平滑放大。 */
.qing-fc-bg {
	position: absolute;
	inset: 0;
	z-index: 1;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	transform: scale(1);
	transition: transform 0.6s ease;
	will-change: transform;
}

/* 正常渐变遮罩：默认自上而下由透明过渡到深灰，保证文字可读。 */
.qing-fc-overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	background: linear-gradient(180deg, var(--fc-ov-start) 0%, var(--fc-ov-end) 100%);
	transition: opacity 0.5s ease;
}

/* 悬停渐变遮罩：蓝色渐变，默认透明，悬停时淡入覆盖整卡。 */
.qing-fc-overlay--hover {
	position: absolute;
	inset: 0;
	z-index: 2;
	opacity: 0;
	background: linear-gradient(180deg, var(--fc-ovh-start) 0%, var(--fc-ovh-end) 100%);
	transition: opacity 0.5s ease;
}

.qing-fc:hover .qing-fc-overlay--hover {
	opacity: 1;
}

/* 内容层：撑满卡片，顶部放图标+标题，底部放序号列表。 */
.qing-fc-inner {
	position: relative;
	z-index: 3;
	display: flex;
	flex-direction: column;
	width: 100%;
	padding: 40px;
	box-sizing: border-box;
}

/* 顶部图标。 */
.qing-fc-icon {
	display: block;
	margin-bottom: 20px;
}

.qing-fc-icon img {
	display: block;
	width: 54px;
	height: auto;
}

/* 主标题。 */
.qing-fc-title {
	margin: 0;
	color: inherit;
	font-size: 32px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0.3px;
}

/* 序号列表：靠 margin-top:auto 顶到卡片底部；底部留出可配置下边距。 */
.qing-fc-list {
	margin: auto 0 40px;
	padding: 0;
	list-style: none;
}

/* 单条：文字在左、序号在右，条目间用细分隔线。 */
.qing-fc-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.qing-fc-item:last-child {
	padding-bottom: 0;
}

.qing-fc-text {
	flex: 1 1 auto;
	color: inherit;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.45;
}

.qing-fc-num {
	flex: 0 0 auto;
	color: inherit;
	font-size: 26px;
	font-weight: 800;
	line-height: 1;
	opacity: 0.95;
}

/* 尊重「减少动态效果」偏好。 */
@media (prefers-reduced-motion: reduce) {
	.qing-fc-bg,
	.qing-fc-overlay,
	.qing-fc-overlay--hover {
		transition: none;
	}
}

/* -------- 移动端适配 -------- */
@media (max-width: 767px) {
	.qing-fc {
		min-height: 460px;
	}

	.qing-fc-inner {
		padding: 28px;
	}

	.qing-fc-title {
		font-size: 26px;
	}

	.qing-fc-num {
		font-size: 22px;
	}
}
