/**
 * xsmh4 首页对齐 + 手机底部 tabbar
 * 覆盖 weuix 全局 table 样式把漫画列表撑乱的问题
 */

.search table,
.search tbody,
.search tr,
.search td,
.search th {
	display: revert !important;
	width: auto;
	border: none !important;
	background: transparent !important;
	text-align: left !important;
	line-height: normal !important;
	padding: 0 !important;
	vertical-align: middle;
}

.search table {
	display: table !important;
	width: 100% !important;
	table-layout: fixed;
	border-collapse: collapse;
}

.search td:nth-child(1) {
	width: 52px !important;
}

.search td:nth-child(2) {
	width: auto !important;
	background-color: #fff !important;
	border: 1px solid #ccc !important;
}

.search td.search-go,
.search td:nth-child(3) {
	width: 42px !important;
	background-color: #0080C0 !important;
	text-align: center !important;
}

.search .key {
	width: 100%;
	height: 35px;
	box-sizing: border-box;
}

.search .go {
	width: 42px;
	height: 35px;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
}

.s_m .mh-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 8px;
	border-bottom: 1px dashed #d4d4d4;
	text-decoration: none;
	color: inherit;
	background: #fff;
	box-sizing: border-box;
}

.s_m .mh-item:last-child {
	border-bottom: none;
}

.s_m .mh-cover {
	flex: 0 0 80px;
	width: 80px;
	height: 100px;
	overflow: hidden;
	background: #f2f2f2;
	border-radius: 2px;
}

.s_m .mh-cover img {
	display: block;
	width: 80px;
	height: 100px;
	object-fit: cover;
}

.s_m .mh-info {
	flex: 1;
	min-width: 0;
	text-align: left;
}

.s_m .mh-title {
	display: block;
	font-size: 15px;
	font-weight: 700;
	color: #333;
	line-height: 1.4;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.s_m .mh-author {
	font-weight: 400;
	color: #888;
	font-size: 13px;
}

.s_m .mh-desc {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 6px 0 0 !important;
	padding: 0;
	font-size: 12px;
	line-height: 1.5;
	color: #777;
	text-align: left !important;
}

.s_m .q_top p {
	text-align: left;
	margin-left: 10px;
}

/* 手机底部 tabbar，PC 不显示 */
.xsmh4-tabbar {
	display: none;
}

@media (max-width: 767px) {
	.index-head .btn {
		display: none;
	}

	.index-head h1 {
		float: none;
		padding-left: 12px;
		text-align: left;
	}

	body.xsmh4-has-tabbar {
		padding-bottom: calc(54px + env(safe-area-inset-bottom, 0px));
	}

	.xsmh4-tabbar {
		display: flex;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 10050;
		align-items: stretch;
		justify-content: space-around;
		height: 54px;
		padding-bottom: env(safe-area-inset-bottom, 0);
		background: #fff;
		border-top: 1px solid #e5e5e5;
		box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
		box-sizing: content-box;
	}

	.xsmh4-tabbar__item {
		flex: 1 1 0;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 2px;
		color: #999;
		text-decoration: none;
		font-size: 11px;
		line-height: 1.2;
	}

	.xsmh4-tabbar__item svg {
		width: 22px;
		height: 22px;
		fill: currentColor;
	}

	.xsmh4-tabbar__item.is-active,
	.xsmh4-tabbar__item:active {
		color: #007bb1;
	}

	.weui-footer {
		margin-bottom: 8px !important;
	}
}

@media (min-width: 768px) {
	.s_m {
		max-width: 860px;
		margin-left: auto;
		margin-right: auto;
	}

	.search,
	.index-head,
	#center_tip {
		max-width: 860px;
		margin-left: auto;
		margin-right: auto;
	}
}
