/**
 * 瓜奇 · 功能卡片网格
 * 无固定背景色，随主题/暗黑模式；每列 min 25rem + auto-fit。
 */

.gq-feature-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(25rem, 100%), 1fr));
	gap: 1.25rem;
	margin: 1.25rem 0;
	box-sizing: border-box;
}

.gq-feature-grid__card {
	background: transparent;
	border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
	border-radius: 14px;
	padding: 1.25rem 1.35rem;
	box-shadow: none;
	box-sizing: border-box;
	color: inherit;
	transition: border-color 0.15s ease, opacity 0.15s ease;
}

.gq-feature-grid__card:hover {
	border-color: color-mix(in srgb, currentColor 28%, transparent);
}

.gq-feature-grid__icon-wrap {
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 10px;
	background: color-mix(in srgb, currentColor 6%, transparent);
	border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 0.9rem;
	flex-shrink: 0;
}

.gq-feature-grid__icon-wrap svg {
	width: 1.35rem;
	height: 1.35rem;
	color: currentColor;
	opacity: 0.85;
}

.gq-feature-grid__icon-wrap .gq-feature-grid__icon-img {
	display: block;
	max-width: 1.5rem;
	max-height: 1.5rem;
	width: auto;
	height: auto;
	object-fit: contain;
}

.gq-feature-grid__title {
	margin: 0 0 0.5rem;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.35;
	color: inherit;
}

.gq-feature-grid__desc {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: color-mix(in srgb, currentColor 72%, transparent);
	font-weight: 400;
}

.gq-feature-grid__desc a {
	color: inherit;
	opacity: 0.9;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.gq-feature-grid__desc a:hover {
	opacity: 1;
}

/* 卡片级外链（与描述内链分离，避免嵌套 <a>） */
.gq-feature-grid__cta {
	display: inline-flex;
	align-items: center;
	margin-top: 0.85rem;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.35;
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
	opacity: 0.92;
}

.gq-feature-grid__cta:hover {
	opacity: 1;
}

.block-editor-block-list__block .gq-feature-grid__title,
.block-editor-block-list__block .gq-feature-grid__desc {
	min-height: 1.2em;
}
