/* SP Community —— 首页 + 指路牌样式(融进子比白卡,沿用主题变量) */

.spc-home, .spc-links { --sp-accent: #1fc4a7; --sp-accent2: #15a98f; }

/* ── Hero ── */
.spc-hero {
	text-align: center;
	padding: 30px 20px 26px;
	border-radius: 16px;
	background: linear-gradient(150deg, #eafaf6 0%, #eaf1ff 100%);
	margin-bottom: 18px;
}
.spc-hero h2 { margin: 0 0 8px; font-size: 23px; letter-spacing: 1px; }
.spc-hero p  { margin: 0 0 18px; color: var(--muted-color, #8a9099); font-size: 13px; }
.spc-hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.spc-hero-cta .btn {
	padding: 11px 26px; border-radius: 999px; text-decoration: none;
	font-size: 14px; font-weight: 700;
	background: #fff; color: var(--sp-accent2); border: 1.5px solid var(--sp-accent);
	transition: transform .1s;
}
.spc-hero-cta .btn.primary { background: var(--sp-accent); color: #fff; border-color: var(--sp-accent); }
.spc-hero-cta .btn:active { transform: scale(.96); }

/* ── 快捷入口卡 ── */
.spc-home-grid {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 14px; margin-bottom: 22px;
}
.spc-entry {
	display: flex; flex-direction: column; align-items: center;
	text-decoration: none; color: inherit;
	padding: 20px 14px; border-radius: 16px;
	background: var(--body-bg-color, #f7f8fa);
	box-shadow: 0 4px 14px rgba(50,60,80,.06);
	transition: transform .15s, box-shadow .15s;
}
.spc-entry:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(31,196,167,.16); }
.spc-entry-ico  { font-size: 38px; margin-bottom: 8px; }
.spc-entry-name { font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.spc-entry-desc { font-size: 12px; color: var(--muted-2-color, #999); text-align: center; }

/* ── 最新动态 ── */
.spc-home-sec h3, .spc-links-cat h3 {
	font-size: 16px; margin: 0 0 14px; padding-left: 10px;
	border-left: 4px solid var(--sp-accent); line-height: 1.2;
}
.spc-post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.spc-post {
	display: flex; gap: 12px; text-decoration: none; color: inherit;
	padding: 10px; border-radius: 14px; background: var(--body-bg-color, #f7f8fa);
	transition: transform .12s;
}
.spc-post:active { transform: scale(.98); }
.spc-post-thumb {
	flex: 0 0 64px; width: 64px; height: 64px; border-radius: 10px;
	background-size: cover; background-position: center; background-color: #e9edf2;
	display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.spc-post-body { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.spc-post-title {
	font-size: 14px; font-weight: 600; line-height: 1.4;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.spc-post-meta { font-size: 12px; color: var(--muted-2-color, #999); margin-top: 4px; }

/* ── 指路牌 ── */
.spc-links-head { text-align: center; margin-bottom: 22px; }
.spc-links-head h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: 1px; }
.spc-links-head p  { margin: 0; color: var(--muted-color, #8a9099); font-size: 12px; }
.spc-links-cat { margin-bottom: 24px; }
.spc-links-empty { color: var(--muted-2-color, #aaa); font-size: 13px; padding: 6px 10px; }
.spc-links-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.spc-link-card {
	display: flex; flex-direction: column;
	text-decoration: none; color: inherit;
	padding: 14px 16px; border-radius: 14px;
	background: var(--body-bg-color, #f7f8fa);
	box-shadow: 0 3px 12px rgba(50,60,80,.05);
	transition: transform .15s, box-shadow .15s;
}
.spc-link-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(31,196,167,.14); }
.spc-link-name { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.spc-link-desc { font-size: 12px; color: var(--muted-2-color, #999); line-height: 1.5; margin-bottom: 8px; min-height: 18px; }
.spc-link-host { font-size: 11px; color: var(--sp-accent2); }

@media (max-width: 480px) {
	.spc-home-grid { grid-template-columns: repeat(2, 1fr); }
	.spc-hero h2 { font-size: 20px; }
}
