/* 三张动态海报 · 画廊：中性灰的看样墙，海报本身是唯一的颜色 */
:root {
	--wall: #A9AAAC;
	--ink: #000;
	--ink-2: rgba(0, 0, 0, .64);
	--line: rgba(0, 0, 0, .2);
	--room: #1C1D1F;
	--room-ink: #ECEDEE;
	--room-ink-2: rgba(236, 237, 238, .62);
	--room-line: rgba(236, 237, 238, .16);
	--cjk: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", "Noto Sans SC", sans-serif;
	--grot: "Space Grotesk", "Helvetica Neue", Arial;
	--wk-pill-bg: rgba(0, 0, 0, .84);
	--wk-pill-fg: #F2F2F0;
	--wk-pill-line: rgba(255, 255, 255, .16);
	--wk-pill-accent: #F2F2F0;
	--wk-pill-accent-fg: #000;
	color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--wall);
	color: var(--ink);
	font: 400 15px/1.75 var(--grot), var(--cjk), sans-serif;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
html.lb-open { overflow: hidden; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- 页头 ---------- */
.head {
	max-width: 1376px;
	margin: 0 auto;
	padding: 78px 48px 24px;
	display: grid;
	grid-template-columns: minmax(0, 4.4fr) minmax(0, 5fr) auto;
	gap: 24px 56px;
	align-items: end;
}
.head h1 {
	margin: 0;
	font: 700 54px/1.05 var(--cjk);
	letter-spacing: .02em;
}
.head__en { margin: 12px 0 0; font: 500 17px/1.3 var(--grot), sans-serif; letter-spacing: -.005em; }
.head__body p { margin: 0; max-width: 34em; font-size: 15px; line-height: 1.85; }
.head__body .head__fine { margin-top: 10px; font-size: 13px; line-height: 1.75; color: var(--ink-2); }
.head__ratio { margin: 0; display: flex; align-items: flex-end; gap: 12px; }
.head__ratio svg { display: block; color: var(--ink); font-family: var(--grot), sans-serif; overflow: visible; }
.head__ratio figcaption { width: 8.6em; font-size: 12px; line-height: 1.6; color: var(--ink-2); }

/* ---------- 海报墙 ---------- */
.wall {
	max-width: 1376px;
	margin: 0 auto;
	padding: 20px 48px 72px;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 64px 52px;
	align-items: start;
}
.ex { min-width: 0; }
.ex__frame { position: relative; }
.ex__poster {
	position: relative;
	aspect-ratio: 1 / 1.41421356;
	background: #9FA0A3;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .2), 0 26px 44px -26px rgba(0, 0, 0, .55);
}
.ex__poster::after {
	content: "在大图里查看";
	position: absolute; inset: 0;
	display: grid; place-items: center;
	font-size: 13px; color: var(--ink-2);
	opacity: 0; transition: opacity .3s;
	pointer-events: none;
}
.ex__poster.is-away::after { opacity: 1; }
.pz { position: absolute; inset: 0; overflow: hidden; cursor: zoom-in; touch-action: pan-y; -webkit-tap-highlight-color: transparent; }
/* 首次画好才现身：一次性的入场 */
.ex__poster .pz { opacity: 0; transition: opacity .7s ease; }
.ex__poster.is-in .pz, .lb .pz { opacity: 1; }
.ex:nth-child(2) .ex__poster .pz { transition-delay: .08s; }
.ex:nth-child(3) .ex__poster .pz { transition-delay: .16s; }
.pz svg, .pz canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pz--swiss svg text { user-select: none; -webkit-user-select: none; }
.lb .pz { cursor: crosshair; touch-action: none; }

/* 裁切线 */
.crop {
	position: absolute; inset: -18px; pointer-events: none;
	--m: linear-gradient(var(--ink), var(--ink));
	background:
		var(--m) left 0 top 18px / 11px 1px no-repeat,
		var(--m) left 18px top 0 / 1px 11px no-repeat,
		var(--m) right 0 top 18px / 11px 1px no-repeat,
		var(--m) right 18px top 0 / 1px 11px no-repeat,
		var(--m) left 0 bottom 17px / 11px 1px no-repeat,
		var(--m) left 18px bottom 0 / 1px 11px no-repeat,
		var(--m) right 0 bottom 17px / 11px 1px no-repeat,
		var(--m) right 18px bottom 0 / 1px 11px no-repeat;
}

/* 时间轴 */
.tl {
	position: relative;
	height: 22px;
	margin-top: 8px;
	cursor: pointer;
	touch-action: none;
}
.tl::before {
	content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 1px; background: var(--line);
}
.tl__fill {
	position: absolute; left: 0; top: 9px; height: 3px; width: 100%;
	background: var(--ink);
	transform-origin: 0 50%;
	transform: scaleX(0);
}
.tl::after {
	content: ""; position: absolute; top: 5px; width: 1px; height: 11px; background: var(--ink);
	left: var(--p, 0%);
}
.tl:focus-visible { outline-offset: 0; }

.ex__head { margin-top: 10px; }
.ex__head h2 { margin: 0; font: 700 22px/1.3 var(--cjk); letter-spacing: .02em; }
.ex__style { margin: 3px 0 0; font-size: 13px; color: var(--ink-2); }

/* 控件 */
.ctl { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.seg { display: inline-flex; border: 1px solid var(--ink); }
.seg button, .btn {
	-webkit-appearance: none; appearance: none;
	height: 34px; padding: 0 14px;
	border: 0; border-radius: 0;
	background: transparent;
	font: 600 13px/34px var(--grot), var(--cjk), sans-serif;
	letter-spacing: .04em;
	cursor: pointer;
	white-space: nowrap;
}
.seg button + button { border-left: 1px solid var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--wall); }
.seg button:not([aria-pressed="true"]):hover { background: rgba(0, 0, 0, .08); }
.btn { border: 1px solid var(--ink); background: var(--ink); color: var(--wall); }
.btn:hover { background: #262626; }
.btn--quiet { background: transparent; color: var(--ink); }
.btn--quiet:hover { background: rgba(0, 0, 0, .08); }
.btn[disabled] { opacity: .6; cursor: progress; }

.ex__hint { margin: 12px 0 0; font-size: 12.5px; line-height: 1.7; color: var(--ink-2); }

/* 设计说明 */
.notes { margin: 18px 0 0; border-top: 1px solid var(--line); }
.notes > div { display: grid; grid-template-columns: 3.3em minmax(0, 1fr); gap: 10px; padding: 11px 0 12px; border-bottom: 1px solid var(--line); }
.notes dt { font: 700 13px/1.75 var(--cjk); }
.notes dd { margin: 0; font-size: 13.5px; line-height: 1.75; }
.sw {
	display: inline-block; width: .82em; height: .82em; margin: 0 .3em 0 .1em;
	vertical-align: -.06em; background: var(--c);
}
.sw--line { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .35); }

/* ---------- 大图 ---------- */
.lb {
	position: fixed; inset: 0; z-index: 1000;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 380px;
	background: var(--room);
	color: var(--room-ink);
}
.lb[hidden] { display: none; }
.lb :focus-visible { outline-color: var(--room-ink); }
.lb__stage { display: grid; place-items: center; padding: 28px; min-width: 0; min-height: 0; }
.lb__slot {
	position: relative;
	height: min(calc(100vh - 56px), calc((100vw - 380px - 56px) * 1.41421356));
	aspect-ratio: 1 / 1.41421356;
}
.lb .pz { box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .04); }
@supports (height: 100dvh) {
	.lb__slot { height: min(calc(100dvh - 56px), calc((100vw - 380px - 56px) * 1.41421356)); }
}
.lb__side { overflow: auto; padding: 84px 32px 48px 12px; display: flex; flex-direction: column; }
.lb__top { display: flex; gap: 8px; }
.lb__btn {
	height: 34px; padding: 0 12px;
	border: 1px solid var(--room-line); background: transparent; color: var(--room-ink);
	font: 600 13px/32px var(--grot), var(--cjk), sans-serif; letter-spacing: .04em;
	cursor: pointer;
}
.lb__btn:hover { border-color: var(--room-ink-2); }
.lb__fs, .lb__close { margin-left: auto; }
.lb__fs:not([hidden]) + .lb__close { margin-left: 0; }
.lb:fullscreen { width: 100vw; height: 100vh; }
.lb__title { margin: 36px 0 0; font: 700 28px/1.3 var(--cjk); letter-spacing: .02em; }
.lb__style { margin: 4px 0 0; font-size: 13px; color: var(--room-ink-2); }
.lb .seg { border-color: var(--room-ink); }
.lb .seg button + button { border-left-color: var(--room-ink); }
.lb .seg button[aria-pressed="true"] { background: var(--room-ink); color: var(--room); }
.lb .seg button:not([aria-pressed="true"]):hover, .lb .btn--quiet:hover { background: rgba(255, 255, 255, .08); }
.lb .btn { border-color: var(--room-ink); background: var(--room-ink); color: var(--room); }
.lb .btn--quiet { background: transparent; color: var(--room-ink); }
.lb .tl::before { background: var(--room-line); }
.lb .tl__fill, .lb .tl::after { background: var(--room-ink); }
.lb__ctl { margin-top: 18px; }
.lb__ctl .ctl { margin-top: 10px; }
.lb__hint { margin: 16px 0 0; font-size: 13px; line-height: 1.7; color: var(--room-ink-2); }
.lb__notes .notes { border-top-color: var(--room-line); }
.lb__notes .notes > div { border-bottom-color: var(--room-line); }
.lb__notes .sw--line { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.lb [data-act="zoom"] { display: none; }

.nojs { max-width: 1376px; margin: 0 auto; padding: 0 48px 40px; }

/* ---------- 窄屏 ---------- */
@media (max-width: 1180px) {
	.head { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
	.head__ratio { display: none; }
	.wall { gap: 56px 36px; padding-left: 36px; padding-right: 36px; }
}
@media (max-width: 900px) {
	.head { grid-template-columns: minmax(0, 1fr); padding: 104px 24px 24px; gap: 18px; }
	.head h1 { font-size: 44px; }
	.head__ratio { display: flex; }
	.wall { grid-template-columns: minmax(0, 1fr); max-width: 560px; padding: 20px 24px 56px; gap: 72px; }
	.lb { display: block; overflow-y: auto; overscroll-behavior: contain; }
	.lb__stage { padding: 72px 16px 8px; }
	.lb__slot { height: auto; width: min(calc(100vw - 32px), 560px); }
	.lb__side { overflow: visible; padding: 8px 16px 120px; max-width: 592px; width: 100%; margin: 0 auto; }
	.lb__top { position: fixed; bottom: 12px; left: 16px; right: 16px; z-index: 2; }
	.lb__top .lb__btn { background: rgba(28, 29, 31, .86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
	.lb__title { margin-top: 18px; }
}
@media (max-width: 520px) {
	.head { padding: 102px 16px 20px; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; }
	.head__title { grid-column: 1; grid-row: 1; }
	.head__ratio { grid-column: 2; grid-row: 1; }
	.head__ratio figcaption { display: none; }
	.head__body { grid-column: 1 / -1; }
	.head h1 { font-size: 38px; }
	.head__en { font-size: 15px; }
	.head__ratio svg { width: 54px; height: 68px; }
	.wall { padding: 18px 16px 48px; gap: 64px; }
	.crop { inset: -12px; background-size: 8px 1px, 1px 8px, 8px 1px, 1px 8px, 8px 1px, 1px 8px, 8px 1px, 1px 8px;
		background-position: left 0 top 12px, left 12px top 0, right 0 top 12px, right 12px top 0, left 0 bottom 11px, left 12px bottom 0, right 0 bottom 11px, right 12px bottom 0; }
	.seg button, .btn { padding: 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
	.ex__poster::after, .ex__poster .pz { transition: none; }
}

/* ---------- 缩略图拍摄模式（?thumb） ---------- */
.is-thumb body { overflow: hidden; }
.is-thumb .head, .is-thumb .tl, .is-thumb .ex__head, .is-thumb .ctl, .is-thumb .ex__hint, .is-thumb .notes, .is-thumb .wk-pill, .is-thumb .wk-sheet { display: none !important; }
.is-thumb .wall { position: fixed; inset: 0; max-width: none; padding: 0; display: block; }
.is-thumb .ex { position: absolute; width: 446px; }
.is-thumb .ex:nth-child(1) { left: 28px; top: 118px; }
.is-thumb .ex:nth-child(2) { left: 497px; top: 38px; }
.is-thumb .ex:nth-child(3) { left: 966px; top: 172px; }
