﻿.preview-trigger {
	
	max-width: 30vw;
	border-radius: 2px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
	cursor: pointer;
	transition: transform 0.25s ease, box-shadow 0.3s ease;
	display: block;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	background: #fff;
}

	.preview-trigger:hover {
		transform: scale(1.02);
		box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
	}

/* 提示文案 */
.hint {
	margin-top: 20px;
	color: #5a6a7e;
	font-size: 15px;
	letter-spacing: 0.5px;
	background: #eef2f7;
	padding: 6px 18px;
	border-radius: 40px;
	backdrop-filter: blur(4px);
}

/* ----- 预览遮罩层 ----- */
.preview-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.82);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	display: none;
	/* 默认隐藏 */
	align-items: center;
	justify-content: center;
	z-index: 9999;
	opacity: 0;
	transition: opacity 0.3s ease;
}

	.preview-overlay.active {
		display: flex;
		opacity: 1;
	}

/* ----- 预览容器 (相对定位用于关闭按钮) ----- */
.preview-container {
	position: relative;
	max-width: 92vw;
	max-height: 92vh;
	animation: zoomIn 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes zoomIn {
	0% {
		transform: scale(0.88);
		opacity: 0;
	}

	100% {
		transform: scale(1);
		opacity: 1;
	}
}

/* ----- 大图 ----- */
.preview-image {
	max-width: 92vw;
	max-height: 85vh;
	border-radius: 18px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
	object-fit: contain;
	background: #111;
	display: block;
	user-select: none;
	-webkit-user-drag: none;
}

/* ----- 关闭按钮 (圆形) ----- */
.close-btn {
	position: absolute;
	top: -50px;
	right: -10px;
	width: 44px;
	height: 44px;
	background: rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(6px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.25s, transform 0.25s;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

	.close-btn:hover {
		background: rgba(233, 69, 96, 0.85);
		transform: rotate(90deg);
		border-color: #e94560;
	}

/* ----- 响应式微调 ----- */
@media (max-width: 600px) {
	.preview-trigger {
		width: 260px;
	}

	.close-btn {
		top: -40px;
		right: 0;
		width: 38px;
		height: 38px;
		font-size: 22px;
	}

	.preview-image {
		max-height: 78vh;
		border-radius: 14px;
	}
}
