/* AISN 自测入口 —— 颜色全部显式指定，避免深色主题下文字隐形 */
.aisn-qh-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 20px;
	margin: 24px 0;
}
.aisn-qh-card,
.aisn-qh-cta {
	background: #ffffff;
	color: #1f2420;
	border: 1px solid #e4e1d8;
	border-radius: 14px;
	padding: 22px 22px 20px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.aisn-qh-cta {
	background: #f3f7f4;
	border-color: #c9d9cf;
	margin: 32px 0 8px;
	flex-direction: row;
	align-items: center;
	flex-wrap: wrap;
	justify-content: space-between;
}
.aisn-qh-cta .aisn-qh-body { flex: 1 1 360px; min-width: 0; }
.aisn-qh-card .aisn-qh-body { flex: 1 1 auto; }
.aisn-qh-tagline {
	margin: 0 0 4px !important;
	font-size: 13px;
	color: #2f6b4f !important;
	font-weight: 600;
}
.aisn-qh-name {
	margin: 0 0 8px !important;
	font-size: 20px;
	line-height: 1.35;
	color: #1f2420 !important;
}
.aisn-qh-desc {
	margin: 0 0 8px !important;
	font-size: 15px;
	line-height: 1.65;
	color: #3a403b !important;
}
.aisn-qh-meta {
	margin: 0 !important;
	font-size: 13px;
	color: #5f665f !important;
}
.aisn-qh-btn,
.aisn-qh-btn:visited {
	display: inline-block;
	align-self: flex-start;
	background: #2f6b4f;
	color: #ffffff !important;
	text-decoration: none !important;
	font-weight: 600;
	font-size: 15px;
	border-radius: 10px;
	padding: 11px 22px;
	min-height: 44px;
	box-sizing: border-box;
}
.aisn-qh-btn:hover,
.aisn-qh-btn:focus {
	background: #1f4a36;
	color: #ffffff !important;
}
.aisn-qh-cta .aisn-qh-btn { align-self: center; }
.aisn-qh-note {
	font-size: 13px;
	color: #5f665f;
	margin: 4px 0 24px;
}
@media (max-width: 600px) {
	.aisn-qh-cta .aisn-qh-btn { width: 100%; text-align: center; }
}

/* 深色主题：theme="dark" */
.aisn-qh-theme-dark .aisn-qh-card,
.aisn-qh-theme-dark .aisn-qh-cta {
	background: #0f172a;
	border-color: #334155;
	color: #e2e8f0;
}
.aisn-qh-theme-dark .aisn-qh-tagline { color: #93c5fd !important; }
.aisn-qh-theme-dark .aisn-qh-name { color: #f1f5f9 !important; }
.aisn-qh-theme-dark .aisn-qh-desc { color: #cbd5e1 !important; }
.aisn-qh-theme-dark .aisn-qh-meta,
.aisn-qh-theme-dark .aisn-qh-note { color: #94a3b8 !important; }
.aisn-qh-theme-dark .aisn-qh-btn,
.aisn-qh-theme-dark .aisn-qh-btn:visited { background: #2563eb; }
.aisn-qh-theme-dark .aisn-qh-btn:hover,
.aisn-qh-theme-dark .aisn-qh-btn:focus { background: #1d4ed8; }
