@charset "utf-8";
.title{
	line-height: 2.5;
	text-align: center;
}
/* 搜索 */
.search {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
}

.search .label {
	min-width: 50px;
	text-align: right;
}

.search .search-btn {
	max-width: 100px;
	background: #28a745;
}

.error {
	display: flex;
	justify-content: center;
	align-items: center;
	color: red;
	padding-bottom: 50vh;
	min-height: 50vh;
}

/* 科室列表 */
.box {
	display: flex;
	justify-content: space-between;
	align-items: top;
	padding: 20px 0;
}

.card {
	width: 30%;
	text-decoration: none;
	color: #333;
	margin: 20px 0;
	box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
	overflow: hidden;
}

.card:hover {
	color: #28a745;
	border-color: #28a745;
	text-decoration: none;
}

.card .top {
	height: 100%;
	overflow: hidden;
}

.card .top img {
	width: 100%;
	height: 100%;
	border-top-left-radius: 3px;
	border-top-right-radius: 3px;
	transition: .6s;
	
}
.card .top img:hover{
	transform: scale(1.2);
}
.card .bottom {
	padding: 10px 20px;
	border-bottom-left-radius: 3px;
	border-bottom-right-radius: 3px;
	background: url(../../static/images/cloud.png) repeat-x bottom center;
}

.card .bottom .desc {
	font-size: 14px;
	text-align: justify;
	/* 三行省略 */
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	text-align: justify;
	line-height: 1.5;
}

@media screen and (max-width: 1400px) {
	.box {
		padding: 10px;
	}

	.card {
		width: 45%;
	}

	.card .bottom {
		padding: 10px;
	}

	.card .bottom .desc {
		font-size: 14px;
		text-align: justify;
		/* 三行省略 */
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		text-align: justify;
		line-height: 1.5;
	}
}

@media only screen and (max-width: 768px) {

	.desc {
		font-size: 14px;
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-line-clamp: 6;
		-webkit-box-orient: vertical;
		text-align: justify;
		line-height: 1.5;
	}

	.card {
		width: 100%;
		margin: 10px;
	}

	.card .bottom .desc {
		font-size: 12px;
	}
}