/* 作品页以参考站的 1200px 版心、20px 栅格、480px 卡片和 160px 内页顶部间距为基准。 */
.work-section, .work-archive, .case-main, .work-related, .work-footer { position: relative; isolation: isolate; color: #050505; background: #f5f5f5; }
.work-section::before, .work-archive::before, .case-main::before, .work-related::before, .work-footer::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .03; background: url('./paper-grain.png') repeat; background-size: 256px; pointer-events: none; }
.work-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.work-section { padding: 80px 0; }
.work-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; margin-bottom: 60px; }
.work-heading h2 { margin: 0; font-size: 56px; font-weight: 600; letter-spacing: -.06em; line-height: 1.2; }
.work-heading-title { display: flex; align-items: flex-start; gap: 10px; }
.work-heading-title > span { font-size: 14px; line-height: 1.4; letter-spacing: -.06em; color: #05050580; }
.work-all-button { display: inline-flex; align-items: center; gap: 0; padding: 14px 20px; border: 0; border-radius: 100px; color: white; background: #050505; font-size: 16px; line-height: 1.4; letter-spacing: -.06em; text-decoration: none; overflow: hidden; }
.work-all-button > span:last-child { display: grid; place-items: center; overflow: hidden; width: 0; transition: width .4s cubic-bezier(.2,.8,.2,1), margin .4s; }
.work-all-button:hover > span:last-child, .work-all-button:focus-visible > span:last-child { width: 18px; margin-left: 12px; }
.work-grid { display: grid; grid-template-columns: repeat(2,minmax(50px,1fr)); gap: 20px; }
.work-tile { min-width: 0; }
.work-link { display: block; position: relative; height: 480px; width: 100%; overflow: hidden; color: #fff; text-decoration: none; isolation: isolate; }
.work-link > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.8,.2,1), filter .4s; }
.work-link:hover > img { transform: scale(1.035); filter: brightness(.96); }
.work-card-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg,rgba(0,0,0,.66),rgba(0,0,0,0) 48%); }
.work-card-caption { position: absolute; bottom: 0; left: 0; width: 100%; padding: 20px; }
.work-card-caption h3 { margin: 0 0 10px; font-weight: 600; font-size: 36px; line-height: 1.2; letter-spacing: -.06em; overflow-wrap: anywhere; }
.work-card-caption p { margin: 0; color: #ffffff99; font-size: 14px; line-height: 1.4; letter-spacing: -.06em; }
.work-card-arrow { position: absolute; top: 30px; right: 30px; width: 30px; height: 30px; display: grid; place-items: center; background: #fff; color: #050505; border-radius: 50%; opacity: 0; transition: opacity .4s, top .4s cubic-bezier(.2,.8,.2,1), right .4s cubic-bezier(.2,.8,.2,1); }
.work-link:hover .work-card-arrow, .work-link:focus-visible .work-card-arrow { top: 20px; right: 20px; opacity: 1; }
.work-card-arrow svg { width: 16px; height: 16px; }
.work-keyboard-label { display: none; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); color: white; background: #05050599; border: 1px solid #ffffff80; padding: 7px 12px; border-radius: 100px; font-size: 12px; }
.work-link:focus-visible .work-keyboard-label { display: block; }
.work-hover-label { position: fixed; top: 0; left: 0; z-index: 100; transform: translate3d(-500px,-500px,0); pointer-events: none; opacity: 0; transition: opacity .18s; }
.work-hover-label > span { display: block; transform: translate(-50%,-50%); background: #05050599; backdrop-filter: blur(7px); color: white; border: 1px solid #ffffffaa; border-radius: 100px; padding: 7px 12px; font-size: 12px; white-space: nowrap; line-height: 1.1; }
.work-hover-label.is-visible { opacity: 1; }
.work-archive, .case-main { padding: 160px 0 80px; }
.work-archive-top { display: flex; align-items: center; justify-content: space-between; gap: 40px; margin-bottom: 60px; }
.work-archive-top h1 { flex: 1; font-size: 24px; line-height: 1.3; letter-spacing: -.06em; text-wrap: balance; font-weight: 600; margin: 0; max-width: 520px; }
.work-filters { flex: 1; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 20px; align-items: center; }
.work-filters a { color: #05050580; text-decoration: none; font-size: 16px; line-height: 1.4; white-space: nowrap; letter-spacing: -.06em; transition: color .25s; }
.work-filters a.is-active, .work-filters a:hover { color: #050505; }
.case-container { display: flex; flex-direction: column; gap: 60px; }
.case-top { width: 100%; display: flex; flex-direction: column; gap: 20px; }
.case-back { display: inline-flex; width: fit-content; align-items: center; gap: 5px; color: #050505; text-decoration: none; font-size: 12px; line-height: 1.4; letter-spacing: -.06em; }
.case-back svg { width: 12px; height: 12px; transform: rotate(-135deg); transition: transform .25s; }
.case-back:hover svg { transform: translateX(-3px) rotate(-135deg); }
.case-introduction { display: grid; grid-template-columns: 1.5fr .2fr 1fr; gap: 20px; align-items: start; }
.case-introduction h1 { margin: 0; font-size: 24px; font-weight: 600; line-height: 1.3; letter-spacing: -.06em; white-space: pre-line; }
.case-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 0; }
.case-meta > div { min-width: 0; }
.case-meta dt { color: #05050580; font-size: 12px; margin-bottom: 10px; line-height: 1.4; letter-spacing: -.06em; }
.case-meta dd { margin: 0; font-size: 20px; line-height: 1.4; letter-spacing: -.06em; overflow-wrap: anywhere; }
.case-hero { width: 100%; height: 800px; overflow: hidden; }
.case-hero img, .case-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.case-text-row { display: grid; width: 100%; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.case-text-row h2 { margin: 0; color: #05050580; font-size: 12px; line-height: 1.4; font-weight: 600; letter-spacing: -.06em; }
.case-text-row p { margin: 0; font-size: 20px; line-height: 1.4; font-weight: 600; letter-spacing: -.06em; white-space: pre-line; }
.case-gallery { display: flex; flex-direction: column; gap: 20px; width: 100%; }
.case-gallery-row { display: flex; gap: 20px; width: 100%; }
.case-image { position: relative; flex: 1; display: block; border: 0; padding: 0; min-width: 0; width: 100%; height: 600px; overflow: hidden; cursor: zoom-in; background: #ddd; }
.case-image-wide { height: 800px; }
.case-image img { transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.case-image:hover img { transform: scale(1.02); }
/* 四类详情统一适配 1920×1080；保留原图文件、图集顺序与栅格。 */
.case-main[data-original-images] .case-hero,
.case-main[data-original-images] .case-image { position: relative; aspect-ratio: 16 / 9; height: auto; overflow: hidden; background: transparent; }
.case-main[data-original-images] .case-hero img,
.case-main[data-original-images] .case-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transform: none; }
.case-deliverables { display: flex; flex-wrap: wrap; gap: 12px 18px; margin-top: 25px; color: #05050580; font-size: 14px; }
.case-statistics { display: flex; flex-wrap: wrap; gap: 28px 55px; margin-top: 40px; }
.case-statistics > div { display: flex; flex-direction: column; gap: 12px; }
.case-statistics strong { font-size: 56px; line-height: 1; letter-spacing: -.06em; font-weight: 600; }
.case-statistics span { font-size: 14px; color: #05050580; letter-spacing: -.06em; }
.case-statistics .case-pdf { justify-content: flex-end; align-items: flex-start; }
.case-pdf-link { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 12px 18px; border: 1px solid #050505; border-radius: 100px; background: #050505; color: #fff; font-size: 14px; font-weight: 600; line-height: 1.2; white-space: nowrap; text-decoration: none; transition: background .25s, color .25s; }
.case-statistics .case-pdf-link { color: #fff; }
.case-pdf-link svg { flex: none; }
a.case-pdf-link:hover { background: transparent; color: #050505; }
.case-statistics .case-pdf-link.is-pending { background: transparent; color: #05050580; border-color: #05050533; cursor: default; }
.work-related { padding: 80px 0; }
.work-footer { padding: 40px 0; }
.work-footer-cta { display: flex; justify-content: space-between; align-items: center; color: #050505; text-decoration: none; font-size: clamp(72px,17vw,225px); line-height: .95; font-weight: 600; letter-spacing: -.08em; padding: 0 0 70px; }
.work-footer-cta svg { width: 15%; height: auto; transition: transform .4s; }
.work-footer-cta:hover svg { transform: translate(8px,-8px); }
.work-footer-bottom { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 35px; font-size: 14px; line-height: 1.4; }
.work-footer-name { font-size: 24px; letter-spacing: -.06em; color: #050505; text-decoration: none; }
.work-footer-bottom p { color: #05050580; margin: 18px 0 0; }
.work-footer-bottom nav, .work-footer-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.work-footer-bottom a { color: inherit; text-decoration: none; }
.work-footer-copy { color: #05050580; justify-self: end; font-size: 12px; }
.work-footer-copy a { color: #050505; }
.work-subpage { margin: 0; background: #f5f5f5; color: #050505; -webkit-font-smoothing: antialiased; }
.work-subpage.modal-open { overflow: hidden; }
.work-subpage *, .work-subpage *::before, .work-subpage *::after { box-sizing: border-box; }
.work-subpage button { cursor: pointer; }
.work-subpage a:focus-visible, .work-subpage button:focus-visible { outline: 2px solid #050505; outline-offset: 5px; }
.work-subpage .av-nav-panel { display: none; }
.work-subpage .av-nav-panel.open { display: flex; }
.work-subpage .av-nav-panel a { text-decoration: none; color: inherit; }
.work-has-reveal [data-reveal] { opacity: 0; transition: opacity .8s cubic-bezier(.44,0,.56,1); }
.work-has-reveal [data-reveal].is-visible { opacity: 1; }
.work-page-leaving main { opacity: 0; clip-path: inset(0 50%); transition: opacity .4s cubic-bezier(.27,0,.51,1), clip-path .4s cubic-bezier(.27,0,.51,1); }
.work-page-enter main { animation: work-enter .4s .1s cubic-bezier(.27,0,.51,1) both; }
@keyframes work-enter { from { opacity: 0; clip-path: inset(0 50%); } to { opacity: 1; clip-path: inset(0); } }
@media (min-width: 810px) and (max-width: 1199px) { .work-heading h2 { font-size: 48px; } .work-card-caption h3 { font-size: 30px; } .case-image:not(.case-image-wide) { height: 500px; } }
@media (max-width: 1000px) and (min-width: 810px) { .work-archive-top { align-items: flex-start; } .work-filters { gap: 12px; } .work-filters a { font-size: 14px; } }
@media (max-width: 809px) {
  .work-container { padding: 0 16px; }
  .work-section, .work-related { padding: 60px 0; }
  .work-heading { align-items: flex-start; flex-direction: column; gap: 20px; margin-bottom: 40px; }
  .work-heading h2 { font-size: 40px; }
  .work-grid { grid-template-columns: 1fr; }
  .work-link { height: 400px; }
  .work-card-caption { padding: 16px; }
  .work-card-caption h3 { font-size: 30px; }
  .work-archive, .case-main { padding: 96px 0 60px; }
  .work-archive-top { flex-direction: column; align-items: flex-start; gap: 40px; margin-bottom: 40px; }
  .work-filters { justify-content: flex-start; gap: 14px 20px; }
  .work-filters a { font-size: 15px; }
  .case-container { gap: 40px; }
  .case-introduction { grid-template-columns: 1fr; gap: 40px; }
  .case-spacer { display: none; }
  .case-meta { gap: 24px 20px; }
  .case-meta dd { font-size: 18px; }
  .case-hero, .case-image, .case-image-wide { height: 400px; }
  .case-text-row { grid-template-columns: 1fr; gap: 20px; }
  .case-text-row p { font-size: 18px; }
  .case-gallery-row { flex-direction: column; }
  .case-image { flex: none; }
  .case-gallery { gap: 20px; }
  .case-statistics { gap: 28px; }
  .work-footer-cta { font-size: 18vw; padding-bottom: 45px; }
  .work-footer-bottom { grid-template-columns: 1fr 1fr; gap: 35px 20px; }
  .work-footer-copy { grid-column: span 2; justify-self: start; }
}
@media (hover: hover) and (pointer: fine) { .work-interactive .work-link { cursor: none; } }
@media (prefers-reduced-motion: reduce) {
  .work-has-reveal [data-reveal] { opacity: 1; transition: none; }
  .work-link img, .case-image img { transition: none; }
  .work-page-enter main { animation: none; }
  .work-page-leaving main { opacity: 1; clip-path: none; }
}
