/* 沿用index.html的字体 */
body {
	font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.page {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 20px 20px 100px;
	height: 100%;
	box-sizing: border-box;
	background-color: #f0f4f8;
	position: relative;
}

/* 添加背景装饰元素 */
.page::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 150px;
	background: linear-gradient(to bottom, rgba(156, 220, 254, 0.2), rgba(156, 220, 254, 0));
	z-index: 0;
}

.header {
	flex-grow: 0;
	margin: 20px;
	text-align: center;
	z-index: 1;
	width: 100%;
	position: relative;
	/* 新增：用于定位返回按钮 */
	max-width: 800px;
}

/* 返回按钮样式 */
.back-btn {
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background-color: #ffffff;
	border: 1px solid #9cdcfe;
	color: #9cdcfe;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	padding: 0;
}

.back-btn:hover {
	background-color: #9cdcfe;
	color: #ffffff;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.title {
	font-size: 32px;
	font-weight: bold;
	color: #334e68;
}

.subtitle {
	color: #627d98;
	font-size: 18px;
	margin-top: 10px;
}

.patient-list {
	width: 45%;
	margin-top: 20px;
	z-index: 1;
}

.patient-item {
	display: flex;
	align-items: center;
	padding: 15px;
	background-color: #ffffff;
	border-radius: 10px;
	margin-bottom: 10px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
	position: relative;
}

/* 添加患者项的装饰元素 */
.patient-item::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 5px;
	height: 100%;
	background-color: #9cdcfe;
	border-top-left-radius: 10px;
	border-bottom-left-radius: 10px;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.patient-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.patient-item:hover::after {
	opacity: 1;
}

.patient-info {
	color: #334e68;
	display: flex;
	justify-content: flex-start;
	align-items: center;
	flex-wrap: wrap;
	font-size: 14px;
}

.patient-info>span {
	min-width: 40%;
	display: inline-block;
}

.patient-info>span span {
	color: #acacac;
}

.add-patient-container {
	width: 100%;
	display: flex;
	justify-content: center;
	margin-top: 20px;
	z-index: 1;
}

.add-patient-btn {
	width: 300px;
	height: 100px;
	border-radius: 10px;
	background-color: #ffffff;
	border: 2px solid #9cdcfe;
	color: #9cdcfe;
	font-size: 18px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

/* 添加按钮的动态效果 */
.add-patient-btn::before {
	content: "";
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(to right, rgba(156, 220, 254, 0.2), rgba(156, 220, 254, 0.5));
	transition: left 0.3s ease;
}

.add-patient-btn:hover {
	background-color: #9cdcfe;
	color: #ffffff;
}

.add-patient-btn:hover::before {
	left: 100%;
}

.next-step-btn-container {
	width: 100%;
	display: flex;
	justify-content: center;
	position: fixed;
	bottom: 0;
	left: 0;
	padding: 20px 0;
	background-color: white;
	z-index: 1;
}

.next-step-btn {
	width: 340px;
	height: 50px;
	border-radius: 25px;
	background-color: #C0C0C0;
	border: none;
	color: white;
	font-size: 18px;
	cursor: pointer;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
}

.next-step-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 添加选中样式 */
.selected {
	background-color: #9cdcfe;
	color: #ffffff;
}

/* 过渡动画 */
.patient-item-transition-enter-active,
.patient-item-transition-leave-active {
	transition: all 0.3s ease;
}

.patient-item-transition-enter,
.patient-item-transition-leave-to {
	opacity: 0;
	transform: translateY(10px);
}

/* 新增页脚样式 */
.footer {
	background-color: #333;
	color: white;
	text-align: center;
	padding: 10px;
	position: fixed;
	bottom: 0;
	width: 100%;
}

.footer p {
	margin: 0;
}

.footer a {
	color: white;
	text-decoration: none;
}

/* 响应式调整 */
@media (max-width: 768px) {
	.patient-list {
		width: 90%;
	}

	.back-btn {
		width: 36px;
		height: 36px;
	}

	.title {
		font-size: 28px;
	}
}