/* Bayase Platform — waterfall-post-list bp_v3
 * 错落瀑布流 + 封面固定 1280×720。
 * 列数由修饰类 --cols-N 控制（调用点写死 columns）。
 * 选择器均挂在 .bayase-bp-v3-waterfall-post-list 下。
 */

/* 分类色块 ----------- 开始 */

.bayase-bp-v3-waterfall-post-list .category-item,
.bayase-bp-v3-waterfall-post-list .cat-uncategorized {
	color: #fff;
	background-color: #5a5a5a;
}

.bayase-bp-v3-waterfall-post-list .category-item:hover {
	color: var(--theme-palette-color-11);
	opacity: .9;
}

.bayase-bp-v3-waterfall-post-list .category-item.cat-hehplwnq { background-color: #f08c54; }
.bayase-bp-v3-waterfall-post-list .category-item.cat-wly30jbm { background-color: #f26440; }
.bayase-bp-v3-waterfall-post-list .category-item.cat-v6zncq4c { background-color: #f7c46c; }
.bayase-bp-v3-waterfall-post-list .category-item.cat-tum3fari { background-color: #9ac05f; }
.bayase-bp-v3-waterfall-post-list .category-item.cat-scimaedx { background-color: #64a25f; }
.bayase-bp-v3-waterfall-post-list .category-item.cat-6 { background-color: #5cc0aa; }
.bayase-bp-v3-waterfall-post-list .category-item.cat-7 { background-color: #5aa4e4; }
.bayase-bp-v3-waterfall-post-list .category-item.cat-8 { background-color: #f4a1b8; }
.bayase-bp-v3-waterfall-post-list .category-item.cat-9 { background-color: #b86f50; }

/* 分类色块 ----------- 结束 */

/* 瀑布流布局 ----------- 开始
 *
 * 列数由修饰类 --cols-N 控制。响应式对齐 Blocksy：
 *   mobile  ≤699.98px
 *   tablet  700px–999.98px
 *   desktop ≥1000px
 * 移动端最低保持 2 列，避免单列过长难读。
 */

.bayase-bp-v3-waterfall-post-list {
	/* 上下间距与左右 column-gap 共用，避免视觉上「竖缝比横缝大」 */
	--bp-waterfall-gap: 20px;
	--bp-waterfall-cols: 3;
	column-count: var(--bp-waterfall-cols);
	column-gap: var(--bp-waterfall-gap);
}

.bayase-bp-v3-waterfall-post-list--cols-1 { --bp-waterfall-cols: 1; }
.bayase-bp-v3-waterfall-post-list--cols-2 { --bp-waterfall-cols: 2; }
.bayase-bp-v3-waterfall-post-list--cols-3 { --bp-waterfall-cols: 3; }
.bayase-bp-v3-waterfall-post-list--cols-4 { --bp-waterfall-cols: 4; }
.bayase-bp-v3-waterfall-post-list--cols-5 { --bp-waterfall-cols: 5; }
.bayase-bp-v3-waterfall-post-list--cols-6 { --bp-waterfall-cols: 6; }

/* Blocksy tablet（及更窄）：先降到可读列数 */
@media (max-width: 999.98px) {
	.bayase-bp-v3-waterfall-post-list--cols-6,
	.bayase-bp-v3-waterfall-post-list--cols-5,
	.bayase-bp-v3-waterfall-post-list--cols-4 {
		--bp-waterfall-cols: 3;
	}

	.bayase-bp-v3-waterfall-post-list--cols-3 {
		--bp-waterfall-cols: 2;
	}
}

/* Blocksy mobile：统一 2 列（不再收成 1 列） */
@media (max-width: 699.98px) {
	.bayase-bp-v3-waterfall-post-list--cols-6,
	.bayase-bp-v3-waterfall-post-list--cols-5,
	.bayase-bp-v3-waterfall-post-list--cols-4,
	.bayase-bp-v3-waterfall-post-list--cols-3,
	.bayase-bp-v3-waterfall-post-list--cols-2 {
		--bp-waterfall-cols: 2;
		--bp-waterfall-gap: 12px;
	}
}

.bayase-bp-v3-waterfall-post-list .bayase-bp-v3-waterfall-post-list-item {
	/* block 避免 inline-block 基线空隙把上下缝撑大 */
	display: block;
	width: 100%;
	break-inside: avoid;
	-webkit-column-break-inside: avoid;
	page-break-inside: avoid;
	background-color: #fff;
	border-radius: 12px;
	box-shadow:
		0 4px 8px rgba(0, 0, 0, 0.04),
		0 0 2px rgba(0, 0, 0, 0.06),
		0 0 1px rgba(0, 0, 0, 0.04);
	overflow: hidden;
	margin: 0 0 var(--bp-waterfall-gap);
}

.bayase-bp-v3-waterfall-post-list .bayase-bp-v3-waterfall-post-list-item:first-child {
	margin-top: 0;
}

/* 封面固定 1280×720（16:9），object-fit 裁切 */
.bayase-bp-v3-waterfall-post-list .bayase-bp-v3-waterfall-post-list-item .cover-image {
	width: 100%;
	aspect-ratio: 1280 / 720;
	overflow: hidden;
	background: #f2f2f2;
}

.bayase-bp-v3-waterfall-post-list .bayase-bp-v3-waterfall-post-list-item .cover-image a {
	display: block;
	width: 100%;
	height: 100%;
}

.bayase-bp-v3-waterfall-post-list .bayase-bp-v3-waterfall-post-list-item .cover-image a img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.bayase-bp-v3-waterfall-post-list .bayase-bp-v3-waterfall-post-list-item .info-container {
	padding: 20px;
}

.bayase-bp-v3-waterfall-post-list .bayase-bp-v3-waterfall-post-list-item .info-container .category {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.bayase-bp-v3-waterfall-post-list .bayase-bp-v3-waterfall-post-list-item .info-container .category a {
	padding: 4px 8px;
	font-size: 12px;
	border-radius: 8px;
	display: block;
	line-height: 1.2;
	text-decoration: none;
}

.bayase-bp-v3-waterfall-post-list .bayase-bp-v3-waterfall-post-list-item .info-container .title {
	margin: 10px 0 6px;
	line-height: 1;
}

.bayase-bp-v3-waterfall-post-list .bayase-bp-v3-waterfall-post-list-item .info-container .title a {
	color: var(--theme-palette-color-3);
	font-size: 18px;
	line-height: 1;
	font-weight: 600;
	text-decoration: none;
}

.bayase-bp-v3-waterfall-post-list .bayase-bp-v3-waterfall-post-list-item .info-container .title a:hover {
	color: var(--theme-palette-color-2, #f0874b);
}

.bayase-bp-v3-waterfall-post-list .bayase-bp-v3-waterfall-post-list-item .info-container .description {
	color: var(--theme-palette-color-9);
	font-size: 14px;
	line-height: 1.65;
	margin: 0;
}

.bayase-bp-v3-waterfall-post-list .bayase-bp-v3-waterfall-post-list-item .info-container .meta {
	font-size: 14px;
	/* 与摘要同色，弱化为辅助信息 */
	color: var(--theme-palette-color-9);
	margin-top: 10px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.bayase-bp-v3-waterfall-post-list .bayase-bp-v3-waterfall-post-list-item .info-container .meta .date,
.bayase-bp-v3-waterfall-post-list .bayase-bp-v3-waterfall-post-list-item .info-container .meta .views {
	display: inline-flex;
	align-items: center;
	gap: 0;
	white-space: nowrap;
}

.bayase-bp-v3-waterfall-post-list .bayase-bp-v3-waterfall-post-list-item .info-container .meta i {
	font-style: normal;
	line-height: 1;
}

.bayase-bp-v3-waterfall-post-list-pagination {
	width: 100%;
	margin-top: 8px;
	background-color: var(--theme-palette-color-11);
	border-radius: 25px;
	overflow: hidden;
}

.bayase-bp-v3-waterfall-post-list-pagination .page-numbers {
	padding: 16px 32px;
	color: var(--theme-palette-color-9);
	font-size: 16px;
	display: inline-block;
	line-height: 1;
	text-decoration: none;
}

.bayase-bp-v3-waterfall-post-list-pagination .page-numbers.current {
	background-color: var(--theme-palette-color-13);
	color: var(--theme-palette-color-3);
	font-weight: 700;
}

.bayase-bp-v3-waterfall-post-list-pagination .page-numbers:hover {
	background-color: var(--theme-palette-color-13);
	color: var(--theme-palette-color-3);
}

@media (max-width: 500px) {
	.bayase-bp-v3-waterfall-post-list {
		--bp-waterfall-gap: 12px;
	}

	.bayase-bp-v3-waterfall-post-list .bayase-bp-v3-waterfall-post-list-item .info-container {
		padding: 12px;
	}

	.bayase-bp-v3-waterfall-post-list .bayase-bp-v3-waterfall-post-list-item .info-container .title a {
		font-size: 16px;
	}
}

/* 瀑布流布局 ----------- 结束 */
