/* SE Home Modules — 极简线框风格，与主题解耦
   只作用于首页，类名以 se- 前缀，避免污染主题 */

.se-home {
	--se-line: #e2e8f0;
	--se-ink: #1a202c;
	--se-mute: #5a6b7d;
	--se-accent: #3182ce;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px 64px;
	color: var(--se-ink);
	font-size: 16px;
	line-height: 1.6;
}

.se-home h1,
.se-home h2,
.se-home h3 {
	letter-spacing: -0.01em;
	margin: 0;
}

/* ---------- Hero ---------- */
.se-hero {
	border: 1px solid var(--se-line);
	border-radius: 10px;
	padding: 56px 40px;
	margin: 32px 0 0;
	background: #fbfcfd;
}

.se-hero__inner {
	max-width: 720px;
}

.se-hero__kicker {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--se-accent);
	margin-bottom: 14px;
}

.se-hero h1 {
	font-size: clamp(28px, 4vw, 44px);
	line-height: 1.15;
	margin-bottom: 16px;
}

.se-hero p {
	color: var(--se-mute);
	font-size: 17px;
	margin: 0 0 26px;
}

.se-hero__btns {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* ---------- Buttons ---------- */
.se-btn {
	display: inline-block;
	padding: 11px 22px;
	border-radius: 6px;
	border: 1px solid var(--se-accent);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.se-btn--primary {
	background: var(--se-accent);
	color: #fff;
}

.se-btn--primary:hover {
	background: #2b6cb0;
	color: #fff;
}

.se-btn--ghost {
	background: transparent;
	color: var(--se-accent);
}

.se-btn--ghost:hover {
	background: #eef4fb;
	color: #2b6cb0;
}

/* ---------- Section ---------- */
.se-section {
	margin: 48px 0 0;
}

.se-section__head {
	margin-bottom: 24px;
}

.se-section__kicker {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--se-mute);
	margin-bottom: 8px;
}

.se-section__head h2 {
	font-size: clamp(22px, 2.4vw, 28px);
	margin-bottom: 8px;
}

.se-section__desc {
	color: var(--se-mute);
	margin: 0;
	max-width: 640px;
}

.se-section__more {
	display: inline-block;
	margin-top: 18px;
	font-size: 15px;
	font-weight: 600;
	color: var(--se-accent);
	text-decoration: none;
}

.se-section__more:hover {
	text-decoration: underline;
}

.se-divider {
	border: 0;
	border-top: 1px solid var(--se-line);
	margin: 48px 0 0;
}

/* ---------- Card grid ---------- */
.se-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
	gap: 20px;
}

.se-card {
	border: 1px solid var(--se-line);
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.se-card:hover {
	border-color: #c7d3e0;
	transform: translateY(-2px);
}

.se-card__link {
	display: block;
	padding: 20px;
	text-decoration: none;
	color: inherit;
}

.se-card__media {
	display: block;
	height: 120px;
	margin: -20px -20px 16px;
	background-color: #f2f5f8;
	background-size: cover;
	background-position: center;
}

.se-card__media--icon {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #93a5b8;
}

.se-card__media--icon .se-icon {
	width: 30px;
	height: 30px;
}

.se-card__cat {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--se-accent);
	margin-bottom: 8px;
}

.se-card__title {
	font-size: 18px;
	line-height: 1.35;
	margin-bottom: 8px;
}

.se-card__excerpt {
	font-size: 14px;
	color: var(--se-mute);
	margin: 0 0 12px;
}

.se-card__meta {
	font-size: 12px;
	color: #8b9aab;
}

.se-empty {
	color: var(--se-mute);
	font-size: 15px;
}

.se-icon {
	width: 20px;
	height: 20px;
	flex: none;
}

/* ---------- Explore by category ---------- */
.se-cats {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
}

.se-cat {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 20px;
	border: 1px solid var(--se-line);
	border-radius: 10px;
	background: #fff;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.se-cat:hover {
	border-color: #c7d3e0;
	transform: translateY(-2px);
}

.se-cat__icon {
	color: var(--se-accent);
}

.se-cat__icon .se-icon {
	width: 26px;
	height: 26px;
}

.se-cat__name {
	font-size: 16px;
	font-weight: 600;
}

.se-cat__count {
	font-size: 13px;
	color: var(--se-mute);
}

/* ---------- Virtual lab promo ---------- */
.se-labpromo__inner {
	border: 1px dashed #c7d3e0;
	border-radius: 10px;
	padding: 28px;
	background: #fbfcfd;
}

.se-labpromo__inner p {
	margin: 0 0 18px;
	color: var(--se-mute);
	max-width: 640px;
}

/* ---------- Newsletter ---------- */
.se-newsletter {
	margin: 56px 0 0;
	padding: 40px 28px;
	border: 1px solid var(--se-line);
	border-radius: 10px;
	text-align: center;
	background: #fbfcfd;
}

.se-newsletter__icon {
	display: flex;
	justify-content: center;
	color: var(--se-accent);
	margin-bottom: 14px;
}

.se-newsletter__icon .se-icon {
	width: 28px;
	height: 28px;
}

.se-newsletter h2 {
	font-size: clamp(20px, 2vw, 26px);
	margin-bottom: 8px;
}

.se-newsletter p {
	color: var(--se-mute);
	margin: 0 0 22px;
}

.se-subscribe {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	max-width: 460px;
	margin: 0 auto;
}

.se-subscribe__input {
	flex: 1 1 240px;
	min-width: 0;
	padding: 11px 14px;
	border: 1px solid #cfd8e3;
	border-radius: 6px;
	font-size: 15px;
	background: #fff;
	color: var(--se-ink);
}

.se-subscribe__input:focus {
	outline: 2px solid var(--se-accent);
	outline-offset: 0;
	border-color: var(--se-accent);
}

.se-subscribe__btn {
	padding: 11px 22px;
	border: 1px solid var(--se-accent);
	border-radius: 6px;
	background: var(--se-accent);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}

.se-subscribe__btn:hover {
	background: #2b6cb0;
}

.se-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.se-form__msg {
	max-width: 460px;
	margin: 14px auto 0;
	font-size: 14px;
	font-weight: 600;
}

.se-form__msg--ok {
	color: #2f855a;
}

.se-form__msg--error {
	color: #c53030;
}

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
	.se-home {
		padding: 0 16px 48px;
	}

	.se-hero {
		padding: 36px 22px;
	}

	.se-hero__btns .se-btn {
		width: 100%;
		text-align: center;
	}

	.se-grid,
	.se-cats {
		grid-template-columns: 1fr;
	}
}
