/* 图片列表 */
.media .ml-1 .avatar-3,
.thread > a.ml-1 {
	display: none;
}

.context {
	display: none !important;
	margin: 0 !important;
	padding: 0 !important;
	height: 0 !important;
	border: 0 !important;
	overflow: hidden !important;
}

.context:empty {
	display: none !important;
}

.threadlist {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -8px;
}

.threadlist .thread {
	width: 25%;
	display: flex;
	flex-direction: column;
	position: relative;
	padding: 0 8px 18px;
	box-sizing: border-box;
	border-bottom: 0;
	background: transparent;
}

.threadlist .thread > input[name="modtid"] {
	position: absolute;
	top: 10px;
	left: 18px;
	z-index: 5;
	width: 18px;
	height: 18px;
	margin: 0 !important;
	accent-color: #0d6efd;
	border-radius: 4px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.thread .media-body {
	width: 100%;
}

.spic {
	position: relative;
	width: 100%;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	line-height: normal;
	border-radius: 10px;
	background: #f5f5f5;
}

.spic::before {
	content: "性息网";
	position: absolute;
	top: 42%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 0;
	font-size: 36px;
	font-weight: 700;
	color: rgba(0, 0, 0, 0.12);
	white-space: nowrap;
	letter-spacing: 8px;
	pointer-events: none;
}

.spic::after {
	content: "xingxibbs.org";
	position: absolute;
	top: 59%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 0;
	font-size: 17px;
	font-weight: 400;
	color: rgba(0, 0, 0, 0.09);
	white-space: nowrap;
	letter-spacing: 2px;
	pointer-events: none;
}

.spic a {
	display: block;
	width: 100%;
	height: 100%;
	position: relative;
	z-index: 1;
}

.spic img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hidden-sm {
	display: none;
}

/* 固定两行标题高度，保证用户名行横向对齐 */
ul.threadlist > li.thread .media-body {
	display: flex;
	flex-direction: column;
}

ul.threadlist > li.thread .media-body .subject,
ul.threadlist > li.thread .media-body .subject.break-all {
	flex: 0 0 42px;
	height: 42px !important;
	min-height: 42px !important;
	max-height: 42px !important;
	margin: 0.55rem 0 0.3rem;
	padding: 0;
	overflow: hidden !important;
	line-height: 1.45;
	box-sizing: border-box;
	font-weight: 500 !important;
	color: #2a3648;
}

.thread .media-body > .d-flex {
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.25rem;
}

.thread .media-body > .d-flex > .text-muted {
	flex: 0 1 auto;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.subject a {
	font-size: 14px;
	font-weight: 500;
	color: #1f2d3d;
}

.thread .subject .van-thread-tag {
	display: inline-block;
	margin-left: 0.35rem;
	padding: 0.18rem 0.48rem;
	font-size: 11px;
	line-height: 1.2;
	font-weight: 500;
	border-radius: 999px;
	vertical-align: middle;
}

.thread:hover {
	background: transparent;
}

.thread:hover a {
	color: #0d6efd;
}

.thread img {
	cursor: pointer;
	opacity: 0.95;
	transition: transform 0.5s ease, opacity 0.5s ease;
}

.thread:hover img {
	opacity: 1;
	transform: scale(1.06);
}

@media (max-width: 900px) {
	.threadlist .thread {
		width: 33.3333%;
	}
	.spic::before {
		font-size: 26px;
		letter-spacing: 5px;
	}
	.spic::after {
		font-size: 13px;
		letter-spacing: 1.5px;
	}
}

@media (max-width: 480px) {
	.threadlist {
		margin: 0 -5px;
	}

	.threadlist .thread {
		width: 50%;
		padding: 0 5px 12px;
	}

	.threadlist .thread > input[name="modtid"] {
		top: 8px;
		left: 11px;
		width: 16px;
		height: 16px;
	}

	ul.threadlist > li.thread .media-body .subject,
	ul.threadlist > li.thread .media-body .subject.break-all {
		flex: 0 0 38px;
		height: 38px !important;
		min-height: 38px !important;
		max-height: 38px !important;
		margin-top: 0.5rem;
	}

	.subject a {
		font-size: 13px;
	}

	.thread .subject .van-thread-tag {
		font-size: 10px;
		padding: 0.16rem 0.42rem;
	}

	.spic {
		border-radius: 8px;
	}
	.spic::before {
		font-size: 22px;
		letter-spacing: 4px;
	}
	.spic::after {
		font-size: 11px;
	}
}
