/* ── Post List Widget ─────────────────────────────────── */
.plw-wrap {
	font-family: inherit;
}

.plw-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.plw-item {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 20px 0;
	border-bottom: 1px solid #e8e8e8;
	transition: border-bottom-color 0.25s ease;
}

.plw-item:hover {
	border-bottom-color: #c0392b;
}

.plw-item:first-child {
	border-top: 1px solid #e8e8e8;
}

/* ── 日期 ─────────────────────────────────────────────── */
.plw-date {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 48px;
	text-align: center;
	flex-shrink: 0;
}

.plw-date-day {
	display: block;
	font-size: 32px;
	font-weight: 600;
	line-height: 1;
	color: #3a3a3a;
}

.plw-date-ym {
	display: block;
	font-size: 13px;
	color: #888;
	margin-top: 4px;
	white-space: nowrap;
}

/* ── 竖线分割 ─────────────────────────────────────────── */
.plw-divider {
	width: 1px;
	height: 48px;
	background-color: #d0d0d0;
	flex-shrink: 0;
}

/* ── 中间：标题 + 描述 ────────────────────────────────── */
.plw-content {
	flex: 1;
	min-width: 0;
}

.plw-title {
	margin: 0 0 6px;
	padding: 0;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
}

.plw-title a {
	color: #3a3a3a;
	text-decoration: none;
	transition: color 0.2s ease;
}

.plw-title a:hover {
	color: #c0392b;
}

.plw-excerpt {
	margin: 0;
	font-size: 13px;
	color: #888;
	line-height: 1.6;
	overflow: hidden;
	display: -webkit-box;
	-webkit-box-orient: vertical;
}

/* ── 右边：特色图 ─────────────────────────────────────── */
.plw-image {
	width: 120px;
	min-width: 120px;
	flex-shrink: 0;
	overflow: hidden;
}

.plw-image a {
	display: block;
	overflow: hidden;
}

.plw-image img {
	display: block;
	width: 100%;
	height: 80px;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.plw-item:hover .plw-image img {
	transform: scale(1.12);
}

/* ── 分页 ─────────────────────────────────────────────── */
.plw-pagination {
	margin-top: 24px;
	text-align: center;
}

.plw-pagination .page-numbers {
	display: inline-flex;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.plw-pagination .page-numbers li {
	list-style: none;
}

.plw-pagination .page-numbers a,
.plw-pagination .page-numbers span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border: 1px solid #d0d0d0;
	color: #3a3a3a;
	text-decoration: none;
	font-size: 13px;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.plw-pagination .page-numbers a:hover {
	background-color: #f5f5f5;
	border-color: #aaa;
}

.plw-pagination .page-numbers .current {
	background-color: #3a3a3a;
	border-color: #3a3a3a;
	color: #fff;
}

.plw-no-posts {
	color: #888;
	font-size: 14px;
	text-align: center;
	padding: 20px 0;
}

/* ── 响应式：平板 ─────────────────────────────────────── */
@media (max-width: 768px) {
	.plw-item {
		gap: 14px;
	}

	.plw-image {
		width: 96px;
		min-width: 96px;
	}

	.plw-image img {
		height: 68px;
	}
}

/* ── 响应式：手机 ─────────────────────────────────────── */
@media (max-width: 600px) {
	/* 完全竖向堆叠：图片 → 日期 → 标题 → 描述 */
	.plw-item {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding-top: 16px;
		padding-bottom: 16px;
	}

	/* 图片：最上方，全宽（!important 覆盖 Elementor 图片宽度控件的内联样式） */
	.plw-image {
		order: 1;
		width: 100% !important;
		min-width: 0 !important;
		max-width: 100% !important;
		margin-bottom: 10px;
	}

	.plw-image img {
		width: 100%;
		height: 180px;
	}

	/* 日期：图片下方 */
	.plw-date {
		order: 2;
		flex-direction: row;
		align-items: baseline;
		gap: 6px;
		min-width: unset;
		margin-bottom: 8px;
	}

	.plw-date-ym {
		margin-top: 0;
	}

	/* 隐藏竖线分割 */
	.plw-divider {
		display: none;
	}

	/* 内容：标题 + 描述 在日期下方 */
	.plw-content {
		order: 3;
		width: 100%;
	}

	.plw-title {
		font-size: 15px;
		margin-bottom: 6px;
	}

	.plw-excerpt {
		font-size: 13px;
		-webkit-line-clamp: 3;
		line-clamp: 3;
	}
}
