--- // 走秀 / 街拍详情页共享的全屏大图灯箱:左栏缩略图条 + 大图 + 上/下·左/右翻页 + 单图收藏。 // // 视觉遵循全站「黑白编辑风」:直角细框、小字 + 宽字距、零填充计数、hover 反色(bg-black + 白字)。 // 交互逻辑全部在 src/lib/gallery.ts(createGalleryView);本组件只负责标记。 // // 各页独有的附加层通过具名插槽 details 注入(走秀页塞「当前 look 的细节图簇」,街拍页不传)。 import { getI18n } from "@/lib/i18n" interface Props { /** SSR 首屏图片(前 PREVIEW_LIMIT 张),需带 thumb 供左栏缩略图条使用 */ images: { thumb: string }[] /** 缩略图比例:走秀 look 为 2/3,街拍为 3/4 */ aspect?: "2/3" | "3/4" } const { images, aspect = "2/3" } = Astro.props const { t } = getI18n(Astro) // 两个字面量都出现在本文件源码里,保证 Tailwind v4 JIT 能扫描到 const thumbAspect = aspect === "3/4" ? "aspect-[3/4]" : "aspect-[2/3]" ---