body {
	margin: 0;
	font-family: "Segoe UI", sans-serif;
	background-color: #f0f2f5;
}

header {
	background-color: #1976d2;
	color: white;
	text-align: center;
	padding: 20px;
}

.filter-bar {
	max-width: 1000px;
	margin: 20px auto 10px;
	display: flex;
	justify-content: flex-end;
	padding: 0 20px;
}

.filter-bar select {
	padding: 8px 12px;
	font-size: 16px;
	border-radius: 5px;
	border: 1px solid #ccc;
}

.doctor-list {
	max-width: 1000px;
	margin: 20px auto;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
	padding: 0 20px;
}

a {
	width: 320px;
	text-decoration: none;
}

.doctor-card {
	width: 100%;
	height: 180px;
	background-color: #fff;
	border-radius: 10px;
	padding: 20px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
	transition: transform 0.2s ease;
	display: flex;
	justify-content: space-between;
	align-items: center;
	box-sizing: border-box;
}

.doctor-card:hover {
	transform: translateY(-5px);
}

.avatar {
	width: 90px;
	height: 90px;
	border-radius: 50%;
	object-fit: cover;
	margin-bottom: 12px;
	margin-right: 20px;
	border: 2px solid #1976d2;
}

.doctor-name {
	font-size: 18px;
	font-weight: bold;
	color: #1976d2;
	margin-bottom: 6px;
}

.info {
	width: 150px;
	box-sizing: border-box;
}

.doctor-title,
.doctor-department,
.hospital-name {
	width: 100%;
	/* 新增医院名称样式 */
	font-size: 14px;
	color: #555;
	margin-bottom: 4px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	/* 限制行数为3 */
	-webkit-box-orient: vertical;
	overflow: hidden;
	box-sizing: border-box;
}

@media (max-width: 600px) {
	.filter-bar {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}
}