/* 影领视界立体画廊：两个模块的样式均限定在各自命名空间内。 */

.yjsj-gallery-builder-note {
	margin-top: 4px;
	color: #696e76;
	font-size: 11px;
	line-height: 1.35;
}

/* =========================================================
   3D 环形旋转画廊
   ========================================================= */

.yjsj-orbit {
	--yjsj-orbit-card: min(var(--yjsj-orbit-card-user, 720px), 40vw);
	--yjsj-orbit-radius: min(var(--yjsj-orbit-radius-user, 560px), 28vw);
	--yjsj-orbit-gap: clamp(22px, 3vw, 52px);
	--yjsj-orbit-stage-height: clamp(320px, 40vw, 610px);
	--yjsj-orbit-ratio: 16 / 9;
	--yjsj-orbit-perspective: 1550px;
	--yjsj-orbit-bg-start: #05080d;
	--yjsj-orbit-bg-end: #06090e;
	--yjsj-orbit-accent: #75bfff;
	--yjsj-orbit-caption-size: 20px;
	position: relative;
	width: 100%;
	max-width: 100%;
	margin-inline: auto;
	padding: clamp(48px, 7vw, 108px) 0 clamp(42px, 6vw, 88px);
	overflow: hidden;
	isolation: isolate;
	color: #fff;
	background:
		radial-gradient(circle at 50% 38%, rgba(61, 111, 178, .18), transparent 44%),
		linear-gradient(180deg, var(--yjsj-orbit-bg-start) 0%, #0a111b 52%, var(--yjsj-orbit-bg-end) 100%);
}

.yjsj-orbit--full {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.yjsj-orbit--square {
	--yjsj-orbit-card-user: 540px;
	--yjsj-orbit-radius-user: 520px;
	--yjsj-orbit-stage-height: clamp(370px, 45vw, 680px);
}

.yjsj-orbit--portrait {
	--yjsj-orbit-card-user: 450px;
	--yjsj-orbit-radius-user: 520px;
	--yjsj-orbit-stage-height: clamp(450px, 54vw, 780px);
}

.yjsj-orbit-ambient {
	position: absolute;
	inset: 12% -8% 14%;
	z-index: -2;
	background-position: center;
	background-size: cover;
	filter: blur(58px) saturate(1.35);
	opacity: 0;
	transform: scale(1.12);
	transition: opacity .8s ease, background-image .8s ease;
	pointer-events: none;
}

.yjsj-orbit--ambient .yjsj-orbit-ambient {
	opacity: .32;
}

.yjsj-orbit::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(ellipse at center, transparent 0%, rgba(4, 7, 12, .28) 46%, rgba(4, 7, 12, .92) 84%),
		linear-gradient(180deg, rgba(4, 7, 12, .1), #05080d 94%);
	pointer-events: none;
}

.yjsj-orbit-stage {
	position: relative;
	width: 100%;
	height: var(--yjsj-orbit-stage-height);
	overflow: hidden;
	perspective: var(--yjsj-orbit-perspective);
	perspective-origin: 50% 35%;
	cursor: grab;
	touch-action: pan-y pinch-zoom;
	outline: none;
}

.yjsj-orbit-stage.is-dragging {
	cursor: grabbing;
}

.yjsj-orbit-stage:focus-visible {
	box-shadow: inset 0 0 0 2px rgba(120, 194, 255, .7);
}

.yjsj-orbit-ring {
	--yjsj-orbit-step: 60deg;
	--yjsj-orbit-y: 0deg;
	position: absolute;
	inset: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	transform-style: preserve-3d;
	pointer-events: none;
}

.yjsj-orbit-stage.is-dragging .yjsj-orbit-ring {
	transition-duration: 0s;
}

.yjsj-orbit-stage.is-pointer-following .yjsj-orbit-ring {
	transition-duration: 0s;
}

.yjsj-orbit-card {
	--yjsj-orbit-x: 0px;
	--yjsj-orbit-y: 0px;
	--yjsj-orbit-z: 0px;
	--yjsj-orbit-ry: 0deg;
	--yjsj-orbit-scale: 1;
	--yjsj-orbit-brightness: 1;
	position: absolute;
	top: 44%;
	left: 50%;
	width: var(--yjsj-orbit-card);
	aspect-ratio: var(--yjsj-orbit-ratio);
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: clamp(8px, 1vw, 15px);
	background: #111923;
	box-shadow: 0 30px 70px rgba(0, 0, 0, .66);
	transform:
		translate3d(calc(-50% + var(--yjsj-orbit-x)), calc(-50% + var(--yjsj-orbit-y)), var(--yjsj-orbit-z))
		rotateY(var(--yjsj-orbit-ry))
		scale(var(--yjsj-orbit-scale));
	transform-style: preserve-3d;
	backface-visibility: visible;
	cursor: pointer;
	opacity: .78;
	filter: brightness(var(--yjsj-orbit-brightness)) saturate(.9);
	transition:
		transform .82s cubic-bezier(.2, .72, .22, 1),
		opacity .55s ease,
		filter .55s ease,
		box-shadow .35s ease,
		border-color .35s ease;
	pointer-events: auto;
}

.yjsj-orbit-stage.is-pointer-following .yjsj-orbit-card {
	transition-duration: .18s;
	transition-timing-function: linear;
}

.yjsj-orbit-stage.is-auto-rotating .yjsj-orbit-card {
	transition-duration: .08s;
	transition-timing-function: linear;
}

.yjsj-orbit-stage.is-dragging .yjsj-orbit-card {
	transition-duration: 0s;
	transition-timing-function: linear;
}

.yjsj-orbit-card::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: linear-gradient(135deg, rgba(255, 255, 255, .13), transparent 34%, transparent 72%, rgba(0, 0, 0, .2));
	pointer-events: none;
}

.yjsj-orbit-card.is-active {
	opacity: 1;
	filter: none;
	border-color: rgba(255, 255, 255, .34);
	box-shadow:
		0 38px 90px rgba(0, 0, 0, .74),
		0 0 42px rgba(91, 164, 255, .22);
}

.yjsj-orbit-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	user-select: none;
	-webkit-user-drag: none;
}

.yjsj-orbit-arrow {
	position: absolute;
	top: 44%;
	z-index: 20;
	width: clamp(42px, 4vw, 58px);
	height: clamp(58px, 5vw, 76px);
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 999px;
	background: rgba(8, 14, 23, .62);
	color: #fff;
	font: 44px/1 Georgia, serif;
	cursor: pointer;
	backdrop-filter: blur(14px);
	transform: translateY(-50%);
	transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.yjsj-orbit-arrow:hover,
.yjsj-orbit-arrow:focus-visible {
	border-color: rgba(255, 255, 255, .48);
	background: rgba(28, 60, 95, .88);
	transform: translateY(-50%) scale(1.04);
}

.yjsj-orbit-prev {
	left: clamp(10px, 2.5vw, 42px);
}

.yjsj-orbit-next {
	right: clamp(10px, 2.5vw, 42px);
}

.yjsj-orbit-caption-wrap {
	position: relative;
	z-index: 4;
	width: min(720px, calc(100% - 48px));
	margin: clamp(18px, 2vw, 32px) auto 0;
	text-align: center;
}

.yjsj-orbit-kicker {
	display: block;
	margin-bottom: 7px;
	color: var(--yjsj-orbit-accent);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .28em;
}

.yjsj-orbit-caption {
	min-height: 1.4em;
	margin: 0;
	color: rgba(255, 255, 255, .94);
	font-size: clamp(12px, 1.45vw, var(--yjsj-orbit-caption-size));
	font-weight: 500;
	letter-spacing: .03em;
	line-height: 1.4;
}

.yjsj-orbit-progress {
	position: relative;
	width: 92px;
	height: 2px;
	margin: 16px auto 0;
	overflow: hidden;
	background: rgba(255, 255, 255, .16);
}

.yjsj-orbit-progress span {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, var(--yjsj-orbit-accent), #b278ff);
	transform: scaleX(.1);
	transform-origin: left;
	transition: transform .55s ease;
}

@media (max-width: 900px) {
	.yjsj-orbit {
		--yjsj-orbit-card: min(var(--yjsj-orbit-card-user, 480px), 54vw);
		--yjsj-orbit-radius: min(var(--yjsj-orbit-radius-user, 430px), 43vw);
		--yjsj-orbit-stage-height: clamp(310px, 61vw, 520px);
	}

	.yjsj-orbit--portrait {
		--yjsj-orbit-card: min(var(--yjsj-orbit-card-user, 370px), 43vw);
		--yjsj-orbit-radius: min(var(--yjsj-orbit-radius-user, 390px), 40vw);
		--yjsj-orbit-stage-height: clamp(400px, 73vw, 620px);
	}
}

@media (max-width: 767px) {
	.yjsj-orbit {
		--yjsj-orbit-card: min(var(--yjsj-orbit-card-user, 390px), 72vw);
		--yjsj-orbit-radius: min(var(--yjsj-orbit-radius-user, 320px), 58vw);
		--yjsj-orbit-stage-height: min(68vw, 360px);
		padding-block: 42px 46px;
	}

	.yjsj-orbit--portrait {
		--yjsj-orbit-card: min(var(--yjsj-orbit-card-user, 310px), 58vw);
		--yjsj-orbit-radius: min(var(--yjsj-orbit-radius-user, 270px), 50vw);
		--yjsj-orbit-stage-height: min(90vw, 480px);
	}

	.yjsj-orbit--full {
		width: 100%;
		max-width: 100%;
		margin-inline: 0;
	}

	.yjsj-orbit-arrow {
		display: none;
	}
}

/* =========================================================
   电影感景深画廊
   ========================================================= */

.yjsj-cinema {
	--yjsj-cinema-ratio: 16 / 9;
	--yjsj-cinema-card: min(var(--yjsj-cinema-card-user, 1040px), 54vw);
	--yjsj-cinema-side: min(var(--yjsj-cinema-side-user, 660px), 35vw);
	--yjsj-cinema-tilt: 19deg;
	--yjsj-cinema-page-bg: #05070a;
	--yjsj-cinema-accent: #f4bd72;
	--yjsj-cinema-caption-size: 34px;
	position: relative;
	width: 100%;
	max-width: 100%;
	margin-inline: auto;
	padding: clamp(76px, 9vw, 142px) 0 clamp(54px, 7vw, 104px);
	overflow: hidden;
	isolation: isolate;
	color: #fff;
	background: var(--yjsj-cinema-page-bg);
}

.yjsj-cinema--full {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.yjsj-cinema--square {
	--yjsj-cinema-card-user: 820px;
	padding-top: clamp(70px, 8vw, 120px);
}

.yjsj-cinema--portrait {
	--yjsj-cinema-card-user: 570px;
	padding-top: clamp(70px, 8vw, 120px);
}

.yjsj-cinema-ambient {
	position: absolute;
	inset: -14%;
	z-index: -3;
	background-position: center;
	background-size: cover;
	filter: blur(50px) saturate(1.25) brightness(.68);
	transform: scale(1.2);
	opacity: 0;
	transition: background-image .8s ease, opacity .8s ease;
}

.yjsj-cinema--ambient .yjsj-cinema-ambient {
	opacity: .58;
}

.yjsj-cinema-vignette {
	position: absolute;
	inset: 0;
	z-index: -2;
	background:
		linear-gradient(90deg, #05070a 0%, rgba(5, 7, 10, .2) 22%, rgba(5, 7, 10, .16) 78%, #05070a 100%),
		linear-gradient(180deg, rgba(5, 7, 10, .25), rgba(5, 7, 10, .12) 50%, #05070a 95%);
}

.yjsj-cinema::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 34%;
	z-index: -1;
	background: linear-gradient(180deg, transparent, var(--yjsj-cinema-page-bg) 82%);
	pointer-events: none;
}

.yjsj-cinema-stage {
	position: relative;
	width: 100%;
	height: calc(var(--yjsj-cinema-card) / (16 / 9) + clamp(70px, 7vw, 130px));
	perspective: 1700px;
	perspective-origin: 50% 45%;
	cursor: grab;
	touch-action: pan-y pinch-zoom;
	outline: none;
}

.yjsj-cinema--square .yjsj-cinema-stage {
	height: calc(var(--yjsj-cinema-card) + clamp(70px, 7vw, 130px));
}

.yjsj-cinema--portrait .yjsj-cinema-stage {
	height: calc(var(--yjsj-cinema-card) / (4 / 5) + clamp(70px, 7vw, 130px));
}

.yjsj-cinema-stage.is-dragging {
	cursor: grabbing;
}

.yjsj-cinema-stage:focus-visible {
	box-shadow: inset 0 0 0 2px rgba(255, 206, 129, .65);
}

.yjsj-cinema-track {
	position: absolute;
	inset: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	transform-style: preserve-3d;
}

.yjsj-cinema-card {
	position: absolute;
	top: 46%;
	left: 50%;
	width: var(--yjsj-cinema-card);
	margin: 0;
	padding: 0;
	opacity: 0;
	transform-style: preserve-3d;
	transition:
		transform .9s cubic-bezier(.18, .75, .18, 1),
		opacity .65s ease,
		filter .65s ease;
	will-change: transform, opacity;
	pointer-events: none;
}

.yjsj-cinema-frame {
	position: relative;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: clamp(8px, .9vw, 15px);
	background: #0c1118;
	box-shadow: 0 40px 90px rgba(0, 0, 0, .72);
	aspect-ratio: var(--yjsj-cinema-ratio);
}

.yjsj-cinema-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	user-select: none;
	-webkit-user-drag: none;
}

.yjsj-cinema-shine {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(120deg, rgba(255, 255, 255, .14), transparent 25%),
		linear-gradient(180deg, transparent 65%, rgba(0, 0, 0, .5));
	pointer-events: none;
}

.yjsj-cinema-card-title {
	position: absolute;
	right: clamp(18px, 2vw, 34px);
	bottom: clamp(15px, 1.7vw, 28px);
	left: clamp(18px, 2vw, 34px);
	color: #fff;
	font-size: clamp(13px, 1.1vw, 18px);
	font-weight: 600;
	letter-spacing: .03em;
	text-align: left;
	text-shadow: 0 2px 14px rgba(0, 0, 0, .8);
}

.yjsj-cinema-card.is-slot-0 {
	z-index: 10;
	opacity: 1;
	pointer-events: auto;
	transform: translate(-50%, -50%) translateZ(80px) rotateX(1.5deg) scale(1);
}

.yjsj-cinema-card.is-slot--1 {
	z-index: 7;
	opacity: .72;
	pointer-events: auto;
	filter: brightness(.55) saturate(.8);
	transform: translate(calc(-50% - var(--yjsj-cinema-side)), -50%) translateZ(-80px) rotateY(var(--yjsj-cinema-tilt)) scale(.72);
}

.yjsj-cinema-card.is-slot-1 {
	z-index: 7;
	opacity: .72;
	pointer-events: auto;
	filter: brightness(.55) saturate(.8);
	transform: translate(calc(-50% + var(--yjsj-cinema-side)), -50%) translateZ(-80px) rotateY(calc(var(--yjsj-cinema-tilt) * -1)) scale(.72);
}

.yjsj-cinema-card.is-slot--2 {
	z-index: 4;
	opacity: .36;
	filter: brightness(.38) saturate(.68);
	transform: translate(calc(-50% - min(61vw, 1150px)), -50%) translateZ(-170px) rotateY(29deg) scale(.55);
}

.yjsj-cinema-card.is-slot-2 {
	z-index: 4;
	opacity: .36;
	filter: brightness(.38) saturate(.68);
	transform: translate(calc(-50% + min(61vw, 1150px)), -50%) translateZ(-170px) rotateY(-29deg) scale(.55);
}

.yjsj-cinema-arrow {
	position: absolute;
	top: 44%;
	z-index: 30;
	width: clamp(44px, 4vw, 60px);
	height: clamp(64px, 6vw, 86px);
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 999px;
	background: rgba(7, 10, 15, .52);
	color: #fff;
	font: 48px/1 Georgia, serif;
	cursor: pointer;
	backdrop-filter: blur(16px);
	transform: translateY(-50%);
	transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.yjsj-cinema-arrow:hover,
.yjsj-cinema-arrow:focus-visible {
	border-color: rgba(255, 218, 156, .62);
	background: rgba(78, 53, 34, .72);
	transform: translateY(-50%) scale(1.04);
}

.yjsj-cinema-prev {
	left: clamp(10px, 2.8vw, 48px);
}

.yjsj-cinema-next {
	right: clamp(10px, 2.8vw, 48px);
}

.yjsj-cinema-meta {
	position: relative;
	z-index: 20;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: 24px;
	width: min(1180px, calc(100% - 64px));
	margin: clamp(-4px, 1.2vw, 22px) auto 0;
}

.yjsj-cinema-kicker {
	grid-column: 1 / -1;
	color: var(--yjsj-cinema-accent);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .3em;
}

.yjsj-cinema-meta p {
	margin: 0;
	color: rgba(255, 255, 255, .95);
	font-size: clamp(14px, 2vw, var(--yjsj-cinema-caption-size));
	font-weight: 500;
	letter-spacing: .02em;
	line-height: 1.35;
}

.yjsj-cinema-count {
	display: flex;
	align-items: center;
	gap: 9px;
	min-width: 90px;
	color: rgba(255, 255, 255, .38);
	font-size: 12px;
	letter-spacing: .12em;
}

.yjsj-cinema-count b {
	color: #fff;
	font-size: 16px;
	font-weight: 600;
}

.yjsj-cinema-count i {
	display: block;
	width: 30px;
	height: 1px;
	background: rgba(255, 255, 255, .28);
}

@media (max-width: 900px) {
	.yjsj-cinema {
		--yjsj-cinema-card: min(var(--yjsj-cinema-card-user, 680px), 63vw);
	}

	.yjsj-cinema-card.is-slot--1 {
		transform: translate(calc(-50% - var(--yjsj-cinema-side)), -50%) translateZ(-90px) rotateY(var(--yjsj-cinema-tilt)) scale(.68);
	}

	.yjsj-cinema-card.is-slot-1 {
		transform: translate(calc(-50% + var(--yjsj-cinema-side)), -50%) translateZ(-90px) rotateY(calc(var(--yjsj-cinema-tilt) * -1)) scale(.68);
	}

	.yjsj-cinema-card.is-slot--2,
	.yjsj-cinema-card.is-slot-2 {
		opacity: 0;
	}
}

@media (max-width: 767px) {
	.yjsj-cinema {
		--yjsj-cinema-card: min(var(--yjsj-cinema-card-user, 86vw), 86vw);
		padding-block: 64px 64px;
	}

	.yjsj-cinema--full {
		width: 100%;
		max-width: 100%;
		margin-inline: 0;
	}

	.yjsj-cinema-stage {
		height: calc(86vw / (16 / 9) + 74px);
	}

	.yjsj-cinema--square .yjsj-cinema-stage {
		height: calc(86vw + 74px);
	}

	.yjsj-cinema--portrait .yjsj-cinema-stage {
		height: calc(86vw / (4 / 5) + 74px);
	}

	.yjsj-cinema-card.is-slot--1,
	.yjsj-cinema-card.is-slot-1,
	.yjsj-cinema-card.is-slot--2,
	.yjsj-cinema-card.is-slot-2 {
		opacity: 0;
		pointer-events: none;
	}

	.yjsj-cinema-arrow {
		display: none;
	}

	.yjsj-cinema-meta {
		grid-template-columns: 1fr;
		width: calc(100% - 40px);
		margin-top: 0;
	}

	.yjsj-cinema-count {
		justify-self: end;
	}
}

@media (min-width: 1600px) {
	.yjsj-orbit {
		--yjsj-orbit-card: min(var(--yjsj-orbit-card-user, 780px), 32vw);
		--yjsj-orbit-radius: min(var(--yjsj-orbit-radius-user, 620px), 25vw);
		--yjsj-orbit-stage-height: clamp(620px, 42vw, 820px);
	}

	.yjsj-cinema {
		--yjsj-cinema-card: min(var(--yjsj-cinema-card-user, 1180px), 48vw);
		--yjsj-cinema-side: min(var(--yjsj-cinema-side-user, 760px), 31vw);
	}

	.yjsj-cinema-meta {
		width: min(1320px, calc(100% - 96px));
	}
}

@media (prefers-reduced-motion: reduce) {
	.yjsj-orbit-ring,
	.yjsj-orbit-card,
	.yjsj-cinema-card {
		transition-duration: .01ms !important;
	}
}
