/* 过往合作案例区块（Elementor 组件 starlabs_case_studies） */
.starlabs-cases { --cs-accent: #F23801; font-family: 'Work Sans', sans-serif; color: #191919; }
.starlabs-cases__heading { margin: 24px 0 0; padding: 24px 0 0; border: 0; border-top: 1px solid #c5c5c3;
	font-family: 'Cormorant', serif; font-size: clamp(28px, 3.25vw, 42px); font-weight: 500; line-height: 1; letter-spacing: 0; color: inherit; }
.starlabs-cases__notice { padding: 24px; border: 1px dashed #F23801; color: #F23801; font-size: 14px; }

.starlabs-cases__panel { display: none; grid-template-columns: 42% 56%; gap: 2%; align-items: center; margin: 30px 0; }
.starlabs-cases__panel.is-active { display: grid; }
.starlabs-cases__label { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .11em; color: #ab310c; }
.starlabs-cases__name { margin: 18px 0; font-family: 'Cormorant', serif; font-size: clamp(32px, 3.5vw, 46px); font-weight: 500; font-style: italic; line-height: 1; color: inherit; }
.starlabs-cases__intro { max-width: 37ch; margin: 0 0 26px; font-size: 18px; line-height: 1.55; color: #474747; }
.starlabs-cases__open { padding: 13px 22px; border: 0; background: #191919; color: #fff; font: inherit; font-size: 16px; cursor: pointer; transition: background-color .3s; }
.starlabs-cases__open:hover { background: #383838; }

.starlabs-cases__stage { position: relative; display: block; overflow: hidden; width: 100%; aspect-ratio: 1.82; padding: 0; border: 0; cursor: pointer;
	background: radial-gradient(ellipse at 83% 15%, var(--cs-glow), transparent 62%), linear-gradient(135deg, var(--cs-deep), var(--cs-mid) 80%); }
.starlabs-cases__stage::before { content: ''; position: absolute; inset: -30%; transform: rotate(-18deg); pointer-events: none;
	background: linear-gradient(90deg, transparent 25%, #ffffff12 25% 45%, transparent 45% 67%, #ffffff16 67% 72%, transparent 72%); }
.starlabs-cases__stage img { position: absolute; width: 36%; height: 75%; object-fit: contain; object-position: center; box-sizing: border-box;
	border: clamp(5px, .65vw, 11px) solid var(--cs-mount); background: var(--cs-mount); box-shadow: 2px 10px 26px #0005; transition: transform .3s; }
.starlabs-cases__stage img:nth-of-type(1) { left: 3%; top: 18%; transform: rotate(-8deg); }
.starlabs-cases__stage img:nth-of-type(2) { left: 32%; top: 9%; z-index: 1; transform: rotate(-1deg); }
.starlabs-cases__stage img:nth-of-type(3) { right: 3%; top: 22%; transform: rotate(7deg); }
.starlabs-cases__stage:hover img:nth-of-type(3) { transform: rotate(4deg); }
.starlabs-cases__stage--4 { aspect-ratio: 1.4; }
.starlabs-cases__stage--4 img { width: 47%; height: 50%; object-position: center; }
.starlabs-cases__stage--4 img:nth-of-type(1) { left: 2%; top: 4%; transform: rotate(-2deg); }
.starlabs-cases__stage--4 img:nth-of-type(2) { right: 2%; top: 8%; left: auto; transform: rotate(2deg); }
.starlabs-cases__stage--4 img:nth-of-type(3) { left: 3%; top: auto; bottom: 4%; right: auto; transform: rotate(1deg); }
.starlabs-cases__stage--4 img:nth-of-type(4) { right: 2%; bottom: 2%; top: auto; transform: rotate(-2deg); }

.starlabs-cases__index { display: flex; gap: 10px; margin-bottom: 54px; }
.starlabs-cases__index button { flex: 1 1 0; min-width: 0; padding: 15px 7px; border: 0; border-top: 1px solid #c0c1bd; background: transparent; color: #333;
	font-family: 'Cormorant', serif; font-size: 26px; font-weight: 500; line-height: 1.1; text-align: left; cursor: pointer; transition: background-color .3s; }
.starlabs-cases__index button:hover { background: #e9e9e7; }
.starlabs-cases__index button[aria-pressed=true] { padding-top: 14px; border-top: 2px solid var(--cs-accent); background: #eaeae8; color: #1b1b1b; }
.starlabs-cases__index button:first-child { padding-left: 0; }

/* 详情弹窗 */
.starlabs-cases__dialog { width: min(1060px, 94vw); max-width: none; max-height: 94dvh; padding: 0; border: 0; background: #faf9f5; color: #191919; }
.starlabs-cases__dialog::backdrop { background: #181918c9; }
body:has(.starlabs-cases__dialog[open]) { overflow: hidden; }
.starlabs-cases__detail { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.starlabs-cases__detail--no-image { grid-template-columns: minmax(0, 1fr); }
.starlabs-cases__story { display: flex; flex-direction: column; align-items: flex-start; padding: 50px 32px 36px 38px; }
.starlabs-cases__accent { width: 32px; height: 3px; background: var(--cs-accent); }
.starlabs-cases__story-title { margin: 12px 0 10px; font-family: 'Cormorant', serif; font-size: 64px; font-weight: 500; line-height: .98; letter-spacing: -.035em; color: inherit; }
.starlabs-cases__story-cat { font-size: 13px; color: #585950; }
.starlabs-cases__story-content { max-width: 56ch; margin-top: 24px; font-size: 17px; line-height: 1.55; }
.starlabs-cases__story-content > :first-child { margin-top: 0; }
.starlabs-cases__story-content > :last-child { margin-bottom: 0; }
.starlabs-cases__story-content img { max-width: 100%; height: auto; }
.starlabs-cases__more { margin-top: 30px; font-size: 14px; color: inherit; text-underline-offset: 4px; }
.starlabs-cases__gallery { display: flex; flex-direction: column; justify-content: center; padding: 62px 24px 19px; background: #eeede7; }
.starlabs-cases__gallery img { display: block; width: 100%; max-height: 64dvh; object-fit: contain; }
.starlabs-cases__close { position: absolute; top: 14px; right: 14px; z-index: 1; width: 40px; height: 40px; padding: 0; border: 1px solid #ccc; border-radius: 50%;
	background: #fff; color: inherit; font: inherit; font-size: 22px; line-height: 1; cursor: pointer; }

@media (max-width: 800px) {
	.starlabs-cases__heading { margin-top: 16px; padding-top: 18px; font-size: clamp(36px, 9vw, 48px); }
	.starlabs-cases__panel { grid-template-columns: minmax(0, 1fr); row-gap: 16px; margin: 24px 0 18px; }
	.starlabs-cases__stage { margin-top: 8px; }
	.starlabs-cases__index { flex-wrap: wrap; gap: 4px; margin-bottom: 40px; }
	.starlabs-cases__index button { flex: 1 0 auto; padding: 9px 4px; }
	.starlabs-cases__index button[aria-pressed=true] { padding-top: 8px; }
}

@media (max-width: 700px) {
	.starlabs-cases__detail { grid-template-columns: minmax(0, 1fr); }
	.starlabs-cases__story { padding: 36px 24px 24px; }
	.starlabs-cases__gallery { padding: 20px; }
	.starlabs-cases__gallery img { max-height: 48dvh; }
}
