/**
 * CE Utilities — 通用 CSS 工具类。
 */

/* ── Flex ── */
.ce-flex { display: flex; }
.ce-flex-col { flex-direction: column; }
.ce-flex-wrap { flex-wrap: wrap; }
.ce-items-center { align-items: center; }
.ce-items-start { align-items: flex-start; }
.ce-justify-center { justify-content: center; }
.ce-justify-between { justify-content: space-between; }
.ce-flex-1 { flex: 1; }

/* ── Grid ── */
.ce-grid { display: grid; }
.ce-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.ce-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.ce-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.ce-gap-2 { gap: var(--ce-space-2); }
.ce-gap-4 { gap: var(--ce-space-4); }
.ce-gap-6 { gap: var(--ce-space-6); }

/* ── Typography ── */
.ce-text-h1 { font-family: var(--ce-font-heading); font-size: 2.25rem; font-weight: 800; line-height: 1.2; color: var(--ce-text-primary); }
.ce-text-h2 { font-family: var(--ce-font-heading); font-size: 1.875rem; font-weight: 700; line-height: 1.3; color: var(--ce-text-primary); }
.ce-text-h3 { font-family: var(--ce-font-heading); font-size: 1.5rem; font-weight: 600; line-height: 1.4; color: var(--ce-text-primary); }
.ce-text-body { font-family: var(--ce-font-body); font-size: 1rem; line-height: 1.7; color: var(--ce-text-primary); }
.ce-text-sm { font-size: 0.875rem; color: var(--ce-text-secondary); }
.ce-text-xs { font-size: 0.75rem; color: var(--ce-text-secondary); }
.ce-text-center { text-align: center; }

/* ── Spacing ── */
.ce-p-4 { padding: var(--ce-space-4); }
.ce-p-6 { padding: var(--ce-space-6); }
.ce-p-8 { padding: var(--ce-space-8); }
.ce-py-4 { padding-top: var(--ce-space-4); padding-bottom: var(--ce-space-4); }
.ce-py-6 { padding-top: var(--ce-space-6); padding-bottom: var(--ce-space-6); }
.ce-py-10 { padding-top: var(--ce-space-10); padding-bottom: var(--ce-space-10); }
.ce-px-4 { padding-left: var(--ce-space-4); padding-right: var(--ce-space-4); }

/* ── Container ── */
.ce-container {
	margin-left: auto;
	margin-right: auto;
	max-width: 1200px;
	padding-left: var(--ce-space-4);
	padding-right: var(--ce-space-4);
}

/* ── Display ── */
.ce-hidden { display: none; }

/* ── Responsive helpers ── */
@media (max-width: 768px) {
	.ce-grid-cols-2,
	.ce-grid-cols-3,
	.ce-grid-cols-4 { grid-template-columns: 1fr; }
}
