/* 触发按钮样式 */
.trigger-btn {
	padding: 12px 24px;
	background-color: #4CAF50;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 16px;
	transition: background-color 0.3s;
}

.trigger-btn:hover {
	background-color: #45a049;
}

/* 遮罩层样式 - 使用transform实现居中 */
.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.8);
	display: none;
	z-index: 9999;
	opacity: 0;
	transition: opacity 0.3s ease;
}

/* 弹出内容容器 */
.modal-container {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	max-width: 90%;
	max-height: 90%;
	padding: 20px;
}

/* 弹出内容样式 */
.modal-content {
	position: relative;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
	animation: modalFadeIn 0.3s ease-out;
}

/* 图片样式 */
.modal-image {
	display: block;
	max-width: 100%;
	max-height: 80vh;
	width: auto;
	height: auto;
}

/* 关闭按钮 */
.modal-close {
	position: absolute;
	top: 0px;
	right: 0px;
	width: 30px;
	height: 30px;
	background: #ff4444;
	color: white;
	border: none;
	border-radius: 50%;
	font-size: 20px;
	line-height: 30px;
	text-align: center;
	cursor: pointer;
	z-index: 10;
	transition: all 0.2s;
}

.modal-close:hover {
	background: #ff1111;
	transform: scale(1.1);
}

/* 图片描述样式 */
.modal-caption {
	padding: 12px;
	background: #f9f9f9;
	text-align: center;
}

/* 动画效果 */
@keyframes modalFadeIn {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}