/* OneNav 站点介绍增强 —— 截图画廊
   变量前缀 onb-sc-*，便于美化插件统一覆盖配色 */

.onb-sc {
	--onb-sc-line: rgba(15, 20, 40, .09);
	--onb-sc-ink: #1f2330;
	--onb-sc-mut: #8b90a0;
	--onb-sc-brand: #534AB7;
	--onb-sc-bg: #fff;
	--onb-sc-soft: #f6f7fb;
	margin: 20px 0 0;
	background: var(--onb-sc-bg);
	border: 1px solid var(--onb-sc-line);
	border-radius: 12px;
	overflow: hidden;
}

.onb-sc-hd {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	padding: 14px 18px;
	border-bottom: 1px solid var(--onb-sc-line);
}

.onb-sc-ttl {
	font-size: 15px;
	font-weight: 600;
	color: var(--onb-sc-ink);
}

.onb-sc-sub {
	font-size: 12px;
	color: var(--onb-sc-mut);
}

.onb-sc-stage {
	position: relative;
	display: flex;
	justify-content: center;
	padding: 16px;
	background: var(--onb-sc-soft);
	cursor: zoom-in;
}

.onb-sc-img {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	border: 1px solid var(--onb-sc-line);
	background: #fff;
	transition: opacity .25s ease;
}

.onb-sc-zoom {
	position: absolute;
	right: 26px;
	bottom: 26px;
	padding: 4px 11px;
	font-size: 12px;
	color: #fff;
	background: rgba(0, 0, 0, .55);
	border-radius: 999px;
	opacity: 0;
	transition: opacity .2s ease;
	pointer-events: none;
}

.onb-sc-stage:hover .onb-sc-zoom {
	opacity: 1;
}

.onb-sc-thumbs {
	display: flex;
	gap: 10px;
	padding: 14px 18px;
	overflow-x: auto;
	border-top: 1px solid var(--onb-sc-line);
	scrollbar-width: thin;
}

.onb-sc-thumbs::-webkit-scrollbar {
	height: 6px;
}

.onb-sc-thumbs::-webkit-scrollbar-thumb {
	background: rgba(0, 0, 0, .16);
	border-radius: 3px;
}

.onb-sc-th {
	position: relative;
	flex: 0 0 auto;
	width: 134px;
	padding: 0;
	line-height: 0;
	cursor: pointer;
	background: #fff;
	border: 2px solid transparent;
	border-radius: 8px;
	overflow: hidden;
	transition: border-color .2s ease, transform .2s ease;
}

.onb-sc-th img {
	display: block;
	width: 100%;
	height: 92px;
	object-fit: cover;
	object-position: top center;
}

.onb-sc-th:hover {
	transform: translateY(-2px);
}

.onb-sc-th.is-on {
	border-color: var(--onb-sc-brand);
}

.onb-sc-lb {
	display: block;
	font-size: 11px;
	line-height: 2;
	text-align: center;
	color: var(--onb-sc-mut);
	background: var(--onb-sc-bg);
	transition: color .2s ease;
}

.onb-sc-th.is-on .onb-sc-lb {
	color: var(--onb-sc-brand);
	font-weight: 600;
}

/* 灯箱 */
.onb-sc-lbwrap {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 40px;
	background: rgba(10, 12, 20, .9);
}

.onb-sc-lbwrap.is-open {
	display: flex;
}

.onb-sc-lbwrap img {
	max-width: 100%;
	max-height: 100%;
	border-radius: 8px;
}

.onb-sc-lbclose {
	position: absolute;
	top: 18px;
	right: 24px;
	width: 38px;
	height: 38px;
	font-size: 24px;
	line-height: 1;
	color: #fff;
	background: rgba(255, 255, 255, .12);
	border: 0;
	border-radius: 50%;
	cursor: pointer;
}

.onb-sc-lbclose:hover {
	background: rgba(255, 255, 255, .22);
}

@media (max-width: 767px) {
	.onb-sc-stage {
		padding: 10px;
	}

	.onb-sc-thumbs {
		padding: 10px 12px;
		gap: 8px;
	}

	.onb-sc-th {
		width: 106px;
	}

	.onb-sc-th img {
		height: 72px;
	}

	.onb-sc-lbwrap {
		padding: 14px;
	}
}
