:root { --bg-color: #ffffff; --text-color: #000000; --font-stack: "Helvetica Neue", Helvetica, Arial, sans-serif; --padding-x: 40px; --padding-y: 30px; --align-guide: clamp(50%, calc(136.5vw - 886px), 75%); --img-bg: #f0f0f0; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background-color: var(--bg-color); color: var(--text-color); font-family: var(--font-stack); -webkit-font-smoothing: antialiased; min-height: 100vh; padding-bottom: 80px; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }

header { padding: var(--padding-y) var(--padding-x); position: relative; height: 120px; margin-bottom: 0px; display: flex; justify-content: space-between; align-items: flex-start; }
.logo { display: block; cursor: pointer; position: relative; z-index: 10; }
.logo img { height: clamp(30px, 3.8vw, 55px); width: auto; display: block; }
.nav-group-right { position: absolute; left: var(--align-guide); top: var(--padding-y); z-index: 10; display: flex; gap: 40px; }
.nav-btn { font-size: clamp(1.9rem, 3.3vw, 4rem); font-weight: 400; line-height: 1; cursor: pointer; }
.nav-btn:hover { opacity: 0.6; }

.project-intro { padding: 0 var(--padding-x); display: grid; grid-template-columns: 20% 38% 4% 38%; margin-bottom: 80px; align-items: start; }
.col-meta { padding-right: 20px; }
.project-title { font-size: 2rem; font-weight: 700; line-height: 1.2; margin-bottom: 40px; }
.credits-list { font-size: 0.75rem; line-height: 1.6; text-transform: uppercase; }
.credits-item { margin-bottom: 4px; }
.credits-label { font-weight: 700; margin-right: 4px; }
.col-en { font-size: 1.2rem; line-height: 1.45; text-align: left; hyphens: auto; -webkit-hyphens: auto; }
.col-cn { font-size: 1.2rem; line-height: 1.55; text-align: left; }

.project-images { padding: 0 var(--padding-x); display: flex; flex-direction: column; gap: 20px; }
.proj-img-container {
    width: 100%; height: auto; background-color: var(--img-bg);
    opacity: 0; transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: zoom-in;
}
.proj-img-container img { width: 100%; height: auto; display: block; }
.proj-img-container.visible { opacity: 1; transform: translateY(0); }

#lightbox { display: none; position: fixed; inset: 0; background: #fff; z-index: 9999; align-items: center; justify-content: center; }
#lightbox.open { display: flex; }
#lb-img { max-width: calc(100vw - 160px); max-height: calc(100vh - 80px); object-fit: contain; user-select: none; transition: opacity 0.2s ease; transform-origin: center center; will-change: transform; }
#lb-img.fade { opacity: 0; }
#lb-close { position: fixed; top: 24px; right: 32px; font-size: 2rem; line-height: 1; cursor: pointer; color: #000; z-index: 10000; background: none; border: none; font-family: inherit; padding: 4px 8px; transition: opacity 0.2s; }
#lb-close:hover { opacity: 0.4; }
.lb-arrow { position: fixed; top: 50%; transform: translateY(-50%); font-size: 2.5rem; cursor: pointer; color: #000; z-index: 10000; background: none; border: none; font-family: inherit; padding: 20px; transition: opacity 0.2s; line-height: 1; user-select: none; }
.lb-arrow:hover { opacity: 0.4; }
#lb-prev { left: 8px; }
#lb-next { right: 8px; }
#lb-counter { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); font-size: 0.75rem; font-weight: 700; letter-spacing: 2px; color: #999; z-index: 10000; }

footer { position: fixed; bottom: 0; left: 0; width: 100%; padding: 20px var(--padding-x); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; z-index: 999; color: #333; pointer-events: none; }
footer div { pointer-events: auto; }
.copyright { float: left; }
.location { position: absolute; left: var(--align-guide); bottom: 20px; }
.location a:hover { text-decoration: underline; }

@media (max-width: 1024px) {
    .project-intro { grid-template-columns: 1fr 1fr; gap: 40px; }
    .col-meta { grid-column: 1 / -1; margin-bottom: 20px; }
    .col-en { grid-column: 1 / 2; }
    .col-cn { grid-column: 2 / 3; }
   
   
   
}
@media (max-width: 768px) {
    :root { --padding-x: 15px; }
    header { justify-content: space-between; height: auto; padding-top: 25px; }
   
    .nav-group-right { position: static; gap: 20px; }
    .nav-btn { font-size: 2rem; }
    .project-intro { display: flex; flex-direction: column; gap: 25px; margin-bottom: 40px; }
    .project-title { font-size: 1.5rem; margin-bottom: 20px; }
    .col-en, .col-cn { font-size: 0.95rem; line-height: 1.5; }
    footer { display: flex; flex-direction: column; gap: 5px; position: static; margin-top: 40px; padding-bottom: 40px; }
    .location { position: static; }
    #lb-img { max-width: 100vw; max-height: calc(100vh - 120px); }
    .lb-arrow { font-size: 1.8rem; padding: 12px; }
}

/* 详情内联视频（静音循环，无进度条） */
.proj-img-container.is-video { cursor: default; background: var(--img-bg); }
.proj-img-container video { width: 100%; height: auto; display: block; }

/* 超长图切片：各片无缝堆叠（懒加载） */
.proj-img-container.is-sliced { background: var(--img-bg); font-size: 0; line-height: 0; }
.proj-slice { display: block; width: 100%; height: auto; }

/* 超长图全屏查看器 */
.proj-img-container.is-sliced { cursor: zoom-in; }
/* 切片长图过高，渐显动画的"露出10%"判定永远触发不了，故始终显示 */
.proj-img-container.is-sliced { opacity: 1 !important; transform: none !important; }
#leo-slice-viewer { position: fixed; inset: 0; background: #fff; z-index: 1000; display: none; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
#leo-slice-viewer.open { display: block; }
#leo-slice-viewer .lsv-inner { max-width: 1600px; margin: 0 auto; font-size: 0; line-height: 0; }
#leo-slice-viewer .lsv-inner img { display: block; width: 100%; height: auto; }
#leo-slice-viewer .lsv-close { position: fixed; top: 16px; right: 18px; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: #000; font-size: 30px; line-height: 44px; text-align: center; cursor: pointer; box-shadow: 0 1px 8px rgba(0,0,0,.18); z-index: 1001; user-select: none; }
body.leo-noscroll { overflow: hidden; }
