/* 首页「最新文章」卡片区块（template-parts/home/latest-posts.php）
   —— 纯文字卡：不取缩略图，省请求、省流量；仅首页加载。 */
.lp-section {
	padding: 10px 0 76px;
}

.lp-container {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px;
}

.lp-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 22px;
}

.lp-title {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
	color: #1f2430;
	letter-spacing: 0.3px;
}

.lp-all {
	font-size: 14px;
	color: #4a6cf7;
	text-decoration: none;
	transition: color 0.2s ease;
}

.lp-all:hover { color: #6366f1; }

.lp-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

/* ---- 卡片 ---- */
.lp-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 22px 22px 18px;
	background: #ffffff;
	border: 1px solid #eef1f6;
	border-radius: 14px;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.lp-card:hover {
	transform: translateY(-3px);
	border-color: #e2e8f6;
	box-shadow: 0 12px 30px rgba(31, 36, 48, 0.08);
}

/* AJAX 追加的批次（is-new 由 JS 打标）：轻量上浮入场 */
.lp-card.is-new { animation: lp-in 0.45s ease both; }
@keyframes lp-in {
	from { opacity: 0; transform: translateY(14px); }
}

.lp-card-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
}

.lp-card-cat {
	flex-shrink: 0;
	max-width: 60%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 12px;
	color: #4a6cf7;
	background: #eef1ff;
	padding: 3px 10px;
	border-radius: 999px;
}

.lp-card-time {
	flex-shrink: 0;
	font-size: 12px;
	color: #9aa3b2;
}

.lp-card-title {
	margin: 0;
	font-size: 16.5px;
	font-weight: 600;
	line-height: 1.45;
}

.lp-card-title a {
	display: block;
	color: #242a36;
	text-decoration: none;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	transition: color 0.2s ease;
}

.lp-card-title a:hover { color: #4a6cf7; }

.lp-card-excerpt {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.7;
	color: #6b7280;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.lp-card-foot {
	margin-top: auto;
	display: flex;
	align-items: center;
	gap: 8px;
	padding-top: 12px;
	border-top: 1px solid #f1f4f9;
	font-size: 12.5px;
	color: #9aa3b2;
}

.lp-card-dot { color: #d3d9e3; }

.lp-card-author {
	max-width: 40%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ---- 加载更多哨兵 / 状态行 ---- */
.lp-sentinel {
	height: 1px;
	margin-top: -1px;
}

.lp-status {
	margin: 26px 0 0;
	text-align: center;
	font-size: 13px;
	color: #9aa3b2;
}

.lp-status.is-loading::before {
	content: "";
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-right: 8px;
	vertical-align: -2px;
	border: 2px solid #dfe5f1;
	border-top-color: #4a6cf7;
	border-radius: 50%;
	animation: lp-spin 0.7s linear infinite;
}

@keyframes lp-spin { to { transform: rotate(360deg); } }

.lp-empty {
	grid-column: 1 / -1;
	margin: 0;
	text-align: center;
	font-size: 14px;
	color: #9aa3b2;
	padding: 30px 0;
}

/* ---- 响应式 ---- */
@media (max-width: 1024px) {
	.lp-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
	.lp-section { padding-bottom: 56px; }
	.lp-container { padding: 0 16px; }
	.lp-grid { grid-template-columns: 1fr; gap: 14px; }
	.lp-title { font-size: 20px; }
	.lp-card { padding: 18px 16px 14px; }
}

/* ---- 减少动态效果 ---- */
@media (prefers-reduced-motion: reduce) {
	.lp-card { transition: none; }
	.lp-card:hover { transform: none; }
	.lp-card.is-new { animation: none; }
}
