/*
Theme Name: Cave Fantasy
Theme URI: https://gowayfun.com
Description: Dark, cinematic WordPress theme for Cave Fantasy — immersive digital attractions for tourism, retail and family entertainment. Bilingual (EN/ZH). 
Author: Cave Fantasy
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: cave-fantasy
*/

/* ============================================================
   Cave Fantasy — WordPress Theme Styles
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  --font-sans: 'Inter', sans-serif;
  --color-bg: #000000;
  --color-fg: #ffffff;
  --color-muted: #666666;
  --color-border: #333333;
  --color-red: #22d3ee;
  --color-accent: #22d3ee;
  --color-accent-2: #8b5cf6;
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font: inherit; color: inherit; background: none; border: none; }
input, select, textarea { font: inherit; color: inherit; }
select option { color: #000; background: #fff; }
input::placeholder, textarea::placeholder { color: #6b7280; }
ul, ol { list-style: none; }

/* ---------- Scrollbar ---------- */
html { scrollbar-width: thin; scrollbar-color: var(--color-border) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-muted); }

/* ---------- Typography ---------- */
.text-xs    { font-size: 0.75rem; line-height: 1rem; }
.text-sm    { font-size: 0.875rem; line-height: 1.25rem; }
.text-base  { font-size: 1rem; line-height: 1.5rem; }
.text-lg    { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl    { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl   { font-size: 1.5rem; line-height: 2rem; }
.text-3xl   { font-size: 4rem; line-height:1; }
.text-4xl   { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl   { font-size: 3rem; line-height: 1; }
.text-6xl   { font-size: 3.75rem; line-height: 1; }
.text-7xl   { font-size: 4.5rem; line-height: 1; }
.text-8xl   { font-size: 6rem; line-height: 1; }

.font-light      { font-weight: 300; }
.font-normal     { font-weight: 400; }
.font-medium     { font-weight: 500; }
.font-semibold   { font-weight: 600; }
.font-bold       { font-weight: 700; }

.tracking-tight    { letter-spacing: -0.025em; }
.tracking-tighter  { letter-spacing: -0.05em; }
.tracking-wide     { letter-spacing: 0.025em; }
.tracking-widest   { letter-spacing: 0.1em; }

.leading-tight   { line-height: 1.25; }
.leading-snug    { line-height: 1.375; }
.leading-relaxed { line-height: 1.625; }

.text-left    { text-align: left; }
.text-center  { text-align: center; }

.whitespace-nowrap    { white-space: nowrap; }
.whitespace-pre-line  { white-space: pre-line; }

.uppercase  { text-transform: uppercase; }
.capitalize { text-transform: capitalize; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.line-clamp-3 {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Colors: Text ---------- */
.text-white   { color: #ffffff; }
.text-black   { color: #000000; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-red-500  { color: var(--color-accent); }

/* ---------- Colors: Background ---------- */
.bg-black       { background-color: #000000; }
.bg-white       { background-color: #ffffff; }
.bg-transparent { background-color: transparent; }
.bg-gray-900    { background-color: #111827; }
.bg-111         { background-color: #111111; }
.bg-1a1a1a      { background-color: #1a1a1a; }
.bg-0a0a0a      { background-color: #0a0a0a; }
.bg-black\/20   { background-color: rgba(0,0,0,0.2); }
.bg-black\/50   { background-color: rgba(0,0,0,0.5); }
.bg-black\/60   { background-color: rgba(0,0,0,0.6); }
.bg-black\/80   { background-color: rgba(0,0,0,0.8); }
.bg-black\/95   { background-color: rgba(0,0,0,0.95); }

/* ---------- Borders ---------- */
.border      { border: 1px solid; }
.border-b    { border-bottom: 1px solid; }
.border-t    { border-top: 1px solid; }
.border-l    { border-left: 1px solid; }
.border-l-4  { border-left: 4px solid; }


/* ---------- Colors: Border ---------- */
.border-white\/5   { border-color: rgba(255,255,255,0.05); }
.border-white\/10  { border-color: rgba(255,255,255,0.1); }
.border-white\/20  { border-color: rgba(255,255,255,0.2); }
.border-white\/30  { border-color: rgba(255,255,255,0.3); }
.border-white\/50  { border-color: rgba(255,255,255,0.5); }
.border-white      { border-color:#333; }
.border-red-500    { border-color: var(--color-accent); }
.border-transparent{ border-color: transparent; }


/* ---------- Border Radius ---------- */
.rounded-full { border-radius: 9999px; }
.rounded-sm   { border-radius: 0.125rem; }

/* ---------- Display ---------- */
.hidden        { display: none; }
.block         { display: block; }
.inline-block  { display: inline-block; }
.flex          { display: flex; }
.inline-flex   { display: inline-flex; }
.grid          { display: grid; }

/* ---------- Flex ---------- */
.flex-col       { flex-direction: column; }
.flex-wrap      { flex-wrap: wrap; }
.flex-grow      { flex-grow: 1; }
.shrink-0       { flex-shrink: 0; }
.justify-start  { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-between{ justify-content: space-between; }
.justify-end    { justify-content: flex-end; }
.items-start    { align-items: flex-start; }
.items-center   { align-items: center; }
.items-end      { align-items: flex-end; }
.items-baseline { align-items: baseline; }

/* ---------- Grid ---------- */
.grid-cols-1  { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2  { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3  { grid-template-columns: repeat(3, 1fr); }

/* ---------- Columns ---------- */
.columns-1 { column-count: 1; }
.columns-2 { column-count: 2; }

/* ---------- Position ---------- */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed    { position: fixed; }
.sticky   { position: sticky; }

.inset-0   { inset: 0; }
.top-0     { top: 0; }
.top-6     { top: 1.5rem; }
.top-full  { top: 100%; }
.top-64px  { top: 64px; }
.left-0    { left: 0; }
.left-2    { left: 0.5rem; }
.left-6    { left: 1.5rem; }
.left-1\/2 { left: 50%; }
.right-0   { right: 0; }
.right-2   { right: 0.5rem; }
.right-6   { right: 1.5rem; }
.bottom-0  { bottom: 0; }
.bottom-6  { bottom: 1.5rem; }
.bottom-8  { bottom: 2rem; }

.-translate-x-1\/2 { transform: translateX(-50%); }

/* ---------- Z-Index ---------- */
.z-10   { z-index: 10; }
.z-40   { z-index: 40; }
.z-50   { z-index: 50; }
.z-100  { z-index: 100; }

/* ---------- Width ---------- */
.w-10   { width: 2.5rem; }
.w-16   { width: 4rem; }
.w-20   { width: 5rem; }
.w-32   { width: 8rem; }
.w-36   { width: 9rem; }
.w-full { width: 100%; }

/* ---------- Height ---------- */
.h-10     { height: 2.5rem; }
.h-16     { height: 4rem; }
.h-20     { height: 5rem; }
.h-64px   { height: 64px; }
.h-88px   { height: 88px; }
.h-70vh   { height: 70vh; }
.h-auto   { height: auto; }
.h-full   { height: 100%; }
.h-screen { height: 100vh; }

/* ---------- Min-Height ---------- */
.min-h-screen { min-height: 100vh; }

/* ---------- Max-Width ---------- */
.max-w-3xl  { max-width: 48rem; }
.max-w-4xl  { max-width: 56rem; }
.max-w-5xl  { max-width: 64rem; }
.max-w-none  { max-width: none; }

/* ---------- Aspect Ratio ---------- */
.aspect-video { aspect-ratio: 16 / 9; }
.aspect-square{ aspect-ratio: 1 / 1; }

/* ---------- Padding ---------- */
.p-2   { padding: 0.5rem; }
.p-4   { padding: 1rem; }
.p-6   { padding: 1.5rem; }
.p-8   { padding: 2rem; }
.p-12  { padding: 3rem; }
.p-24  { padding: 6rem; }

.px-2  { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3  { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4  { padding-left: 1rem; padding-right: 1rem; }
.px-6  { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8  { padding-left: 2rem; padding-right: 2rem; }
.px-12 { padding-left: 3rem; padding-right: 3rem; }

.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2    { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3    { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4    { padding-top: 1rem; padding-bottom: 1rem; }
.py-5    { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-8    { padding-top: 2rem; padding-bottom: 2rem; }
.py-12   { padding-top: 3rem; padding-bottom: 3rem; }
.py-16   { padding-top: 4rem; padding-bottom: 4rem; }
.py-24   { padding-top: 6rem; padding-bottom: 6rem; }

.pt-8   { padding-top: 2rem; }
.pt-16  { padding-top: 4rem; }
.pt-24  { padding-top: 6rem; }
.pt-32  { padding-top: 8rem; }

.pb-2   { padding-bottom: 0.5rem; }
.pb-8   { padding-bottom: 2rem; }
.pb-12  { padding-bottom: 3rem; }
.pb-16  { padding-bottom: 4rem; }
.pb-24  { padding-bottom: 6rem; }
.pb-32  { padding-bottom: 8rem; }

.pl-4  { padding-left: 1rem; }
.pr-4  { padding-right: 1rem; }

/* ---------- Margin ---------- */
.mx-auto { margin-left: auto; margin-right: auto; }
.mx-4    { margin-left: 1rem; margin-right: 1rem; }
.mt-4    { margin-top: 1rem; }
.mt-6    { margin-top: 1.5rem; }
.mt-8    { margin-top: 2rem; }
.mt-12   { margin-top: 3rem; }
.mt-16   { margin-top: 4rem; }
.mt-24   { margin-top: 6rem; }
.mb-0    { margin-bottom: 0; }
.mb-1    { margin-bottom: 0.25rem; }
.mb-2    { margin-bottom: 0.5rem; }
.mb-3    { margin-bottom: 0.75rem; }
.mb-4    { margin-bottom: 1rem; }
.mb-6    { margin-bottom: 1.5rem; }
.mb-8    { margin-bottom: 2rem; }
.mb-10   { margin-bottom: 2.5rem; }
.mb-12   { margin-bottom: 3rem; }
.mt-10   { margin-top: 2.5rem; }
.mb-16   { margin-bottom: 4rem; }
.mb-24   { margin-bottom: 6rem; }
.mb-32   { margin-bottom: 8rem; }

/* ---------- Gap ---------- */
.gap-1\.5 { gap: 0.375rem; }
.gap-2    { gap: 0.5rem; }
.gap-4    { gap: 1rem; }
.gap-6    { gap: 1.5rem; }
.gap-8    { gap: 2rem; }
.gap-12   { gap: 3rem; }
.gap-16   { gap: 4rem; }
.gap-x-8  { column-gap: 2rem; }
.gap-y-12  { row-gap: 3rem; }
.gap-y-16  { row-gap: 4rem; }

/* ---------- Space Between ---------- */
.space-y-1 > * + *  { margin-top: 0.25rem; }
.space-y-2 > * + *  { margin-top: 0.5rem; }
.space-y-3 > * + *  { margin-top: 0.75rem; }
.space-y-6 > * + *  { margin-top: 1.5rem; }
.space-y-8 > * + *  { margin-top: 2rem; }
.space-y-12 > * + * { margin-top: 3rem; }
.space-y-16 > * + * { margin-top: 4rem; }
.space-x-4 > * + *  { margin-left: 1rem; }
.space-x-8 > * + *  { margin-left: 2rem; }

/* ---------- Overflow ---------- */
.overflow-hidden  { overflow: hidden; }
.overflow-visible { overflow: visible; }

/* ---------- Object Fit ---------- */
.object-cover    { object-fit: cover; }
.object-contain  { object-fit: contain; }

/* ---------- Opacity ---------- */
.opacity-0   { opacity: 0; }
.opacity-70  { opacity: 0.7; }
.opacity-80  { opacity: 0.8; }
.opacity-90  { opacity: 0.9; }
.opacity-100 { opacity: 1; }

/* ---------- Cursor ---------- */
.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }

/* ---------- Pointer Events ---------- */
.pointer-events-none { pointer-events: none; }

/* ---------- User Select ---------- */
.select-none { user-select: none; }

/* ---------- Resize ---------- */
.resize-none { resize: none; }

/* ---------- Transition ---------- */
.transition-all       { transition: all 0.15s ease; }
.transition-colors    { transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease; }
.transition-opacity   { transition: opacity 0.15s ease; }
.transition-transform { transition: transform 0.15s ease; }

.duration-300 { transition-duration: 0.3s; }
.duration-500 { transition-duration: 0.5s; }
.duration-700 { transition-duration: 0.7s; }

/* ---------- Break ---------- */
.break-inside-avoid { break-inside: avoid; }

/* ---------- Max ---------- */
.max-h-full   { max-height: 100%; }
.max-h-80vh   { max-height: 80vh; }

/* ---------- Hover ---------- */
.hover\:bg-white:hover    { background-color: #ffffff; }
.hover\:bg-white\/5:hover  { background-color: rgba(255,255,255,0.05); }
.hover\:bg-white\/20:hover { background-color: rgba(255,255,255,0.2); }
.hover\:bg-gray-200:hover  { background-color: #e5e7eb; }
.hover\:bg-1a1a1a:hover    { background-color: #1a1a1a; }
.hover\:text-white:hover  { color: #ffffff; }
.hover\:text-black:hover  { color: #000000; }
.hover\:text-gray-200:hover { color: #e5e7eb; }
.hover\:text-gray-300:hover { color: #d1d5db; }
.hover\:border-white:hover { border-color: #ffffff; }

/* ---------- Group Hover ---------- */
.group:hover .group-hover\:scale-105   { transform: scale(1.05); }
.group-hover\:scale-105                 { transition: transform 0.7s ease; }
.group:hover .group-hover\:opacity-0   { opacity: 0; }
.group:hover .group-hover\:opacity-100 { opacity: 1; }
.group-hover\:opacity-100  { transition: opacity 0.3s ease; }
.group:hover .group-hover\:text-gray-300 { color: #d1d5db; }
.group-hover\:text-gray-300 { transition: color 0.15s ease; }

/* ---------- Focus ---------- */
.focus\:outline-none:focus { outline: none; }
.focus\:border-white:focus  { border-color: #ffffff; }

.last\:border-0:last-child { border-width: 0; }

/* ---------- Gradients ---------- */
.bg-gradient-to-t.from-black   { background: linear-gradient(to top, #000000, transparent, transparent); }
.bg-gradient-to-t.from-black\/80 { background: linear-gradient(to top, rgba(0,0,0,0.8), transparent, transparent); }
.bg-gradient-to-b.from-black\/60 { background: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent, transparent); }

/* ---------- Shadow ---------- */
.shadow-2xl    { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }
.drop-shadow-lg{ filter: drop-shadow(0 10px 8px rgba(0,0,0,0.04)) drop-shadow(0 4px 3px rgba(0,0,0,0.1)); }

/* ---------- Backdrop ---------- */
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.backdrop-blur-md { backdrop-filter: blur(12px); }

/* ============================================================
   Layout: Header / Main / Footer
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.4s ease;
}
.header:not(.scrolled) { height: 80px; }
.header.scrolled {
  height: 64px;
  background-color: rgba(0,0,0,0.55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* Case detail: a black-to-transparent scrim under the fixed nav so the
   white links stay legible over the hero image/video before scrolling. */
body.single-cf_project .header:not(.scrolled)::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.75), rgba(0,0,0,0));
  pointer-events: none;
  z-index: -1;
}

.header-inner {
  width: 100%;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 768px) {
.header-inner {
  padding: 0 1rem;
}
}

.header-logo { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.05em; color: #ffffff; }

.header-nav { display: none; }
.header-nav a { font-size: 0.875rem; font-weight: 500; letter-spacing: 0.025em; position: relative; }
.header-nav a::after {
  content: ''; position: absolute; width: 100%; transform: scaleX(0);
  height: 1px; bottom: -4px; left: 0; background-color: currentColor;
  transform-origin: bottom right; transition: transform 0.3s ease;
}
.header-nav a:hover::after,
.header-nav a.active::after,
.header-nav a[aria-current]::after { transform: scaleX(1); transform-origin: bottom left; }
.header-nav a.active, .header-nav a[aria-current] { color: #ffffff; }
.header-nav a:not(.active):not([aria-current]) { color: #d1d5db; }
.header-nav a:not(.active):not([aria-current]):hover { color: #ffffff; }
.header-nav ul.menu { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.header-nav ul.menu li { margin: 0; }

.header-actions { display: flex; align-items: center; gap: 1rem; }

/* Hover underline */
.hover-underline { position: relative; }
.hover-underline::after {
  content: ''; position: absolute; width: 100%; transform: scaleX(0);
  height: 1px; bottom: -2px; left: 0; background-color: currentColor;
  transform-origin: bottom right; transition: transform 0.25s ease-out;
}
.hover-underline:hover::after { transform: scaleX(1); transform-origin: bottom left; }

/* Lang selector */
.lang-selector { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 0.375rem;
  font-size: 0.75rem; letter-spacing: 0.1em; font-weight: 500;
  text-transform: uppercase; transition: color 0.15s ease;
  /* Enlarge the tap target: the bare text is ~14px tall, too small for a
     finger to hit reliably (works with a mouse on desktop, fails on mobile). */
  min-height: 44px;
  padding: 0 0.25rem;
  -webkit-tap-highlight-color: transparent;
}
.lang-btn:hover { color: #d1d5db; }
.lang-dropdown {
  position: absolute; right: 0; top: 100%; margin-top: 0.375rem;
  width: 9rem; background-color: #111111;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  z-index: 50; flex-direction: column; padding: 0.5rem 0;
  border-radius: 0.125rem;
}
.lang-dropdown.hidden { display: none; }
.lang-dropdown.visible { display: flex; }
.lang-dropdown button {
  text-align: left; padding: 0.375rem 1rem;
  font-size: 0.75rem; font-weight: 500; color: #9ca3af;
  transition: all 0.15s ease;
}
.lang-dropdown button:hover { color: #ffffff; background-color: rgba(255,255,255,0.05); }
.lang-dropdown button.active { color: #ffffff; }

/* Multi-language switcher: caret flip + native-name trigger */
.lang-btn .lang-caret { opacity: 0.7; transition: transform 0.2s ease; }
.lang-btn[aria-expanded="true"] .lang-caret { transform: rotate(180deg); }

/* Hamburger */
.hamburger { display: flex; align-items: center; justify-content: center; cursor: pointer; width:20px; height: 40px; }
.hamburger svg { width: 24px; height: 24px; transition: transform 0.3s ease; }
.hamburger.active svg { transform: rotate(90deg); }

/* Mobile Menu */
.mobile-menu {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background-color: #000000;
  z-index: 200; display: flex; flex-direction: column; padding: 1.5rem;
  opacity: 0; visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-menu.open { opacity: 1; visibility: visible; pointer-events: auto; }
.mobile-menu.is-closing {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.3s ease, visibility 0.3s ease !important;
}
.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3rem; }
.mobile-menu-close { font-size: 2rem; padding: 0.5rem; line-height: 1; transition: color 0.2s ease; }
.mobile-menu-close:hover { color: #9ca3af; }
.mobile-menu nav {
  display: flex; flex-direction: column; gap: 0.5rem;
  overflow-y: auto; flex: 1; min-height: 0;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu nav a {
  font-size: 1.25rem; font-weight: 600; letter-spacing: 0.05em;
  padding: 0.875rem 0; color: #d1d5db; transition: color 0.2s ease, padding-left 0.2s ease;
}
.mobile-menu nav a:hover { color: #ffffff; padding-left: 0.5rem; }
.mobile-menu nav ul.menu { display: flex; flex-direction: column; gap: 0.5rem; margin: 0; padding: 0; }
.mobile-menu nav ul.menu li { margin: 0; }

/* Mobile language selector inside menu */
.mobile-lang { margin-top: 0; display: flex; flex-wrap: wrap; gap: 0.5rem;  }
.mobile-lang button {
  font-size: 0.75rem; padding: 0.5rem 1rem; border: 1px solid rgba(255,255,255,0.2);
  border-radius: 9999px; color: #9ca3af; transition: all 0.2s ease;
}
.mobile-lang button:hover,
.mobile-lang button.active { color: #fff; border-color: #fff; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background-color: #000000; margin-top:0;
  /* border-top: 1px solid rgba(255,255,255,0.1); */
  padding:0 1rem 4rem; /* pt-32 px-4 pb-16 */
  font-size: 0.75rem;
}
.footer-inner { width: 100%; }
.footer-top {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2.5rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.5rem; }
.footer-social {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 0.75rem; /* space-x-3 */
}
.footer-social li { display: flex; position: relative; }
.footer-social a {
  width: 3rem; height: 3rem; border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  color: #e5e7eb; transition: all 0.15s ease;
}
.footer-social a:hover { background-color: #ffffff; color: #000000; }
.footer-social svg { width: 22px; height: 22px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 4rem; padding-top: 4rem;
}
.footer-copyright {
  line-height: 1.5; color: #9ca3af;
}
.footer-contact {
  display: flex; flex-direction: column; gap: 0.25rem; margin-top: 1rem;
}
.footer-contact a {
  color: #9ca3af; display: inline-flex; align-items: center; gap: 0.5rem;
}
.footer-contact a svg { width: 14px; height: 14px; flex-shrink: 0; opacity: 0.75; }
.footer-contact a:hover { color: #ffffff; transition: color 0.15s ease; }

/* 底部内容放大（与导航菜单字号一致） */
.footer-copyright,
.footer-copyright a,
.footer-copyright span { font-size: 0.875rem; }
.footer-legal a { font-size: 0.875rem; }
.footer-main a { font-size: 0.875rem; }
.footer-contact a,
.footer-contact a span { font-size: 0.875rem; }
.footer-contact svg { width: 18px; height: 18px; }

.footer-main, .footer-legal { margin-top: 2rem; }
.footer-main ul, .footer-legal ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.25rem 1rem;
}
.footer-main li, .footer-legal li { margin: 0.25rem 0; }
.footer-main a {
  color: #e5e7eb; text-decoration: none;
}
.footer-main a:hover { color: #ffffff; text-decoration: underline; text-underline-offset: 4px; }
.footer-legal a {
  color: #9ca3af; text-decoration: none;
}
.footer-legal a:hover { color: #ffffff; text-decoration: underline; text-underline-offset: 4px; }

/* ============================================================
   Component Styles
   ============================================================ */

/* Hero */
.hero-section { position: relative; width: 100%; height: 100vh; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-color: #000; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, #000, transparent, transparent); }
.hero-content { position: absolute; bottom: 0; left: 0; width: 100%; padding: 2rem; display: flex; flex-direction: column; justify-content: flex-end; z-index: 10; }

/* Exhibition Card */
.exhibition-card { display: block; cursor: pointer; }
.exhibition-card .exhibition-img-wrap {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
  margin-bottom: 1.5rem; background-color: #111827;
}
.exhibition-card .exhibition-img-wrap img,
.exhibition-card .exhibition-img-wrap video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.7s ease;
}
.exhibition-card:hover .exhibition-img-wrap img { transform: scale(1.05); }

/* Section Heading + description */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2rem; margin-bottom: 3rem;
}
.section-head-desc {
  max-width: 22rem; flex-shrink: 0;
  font-size: 0.875rem; font-weight: 300; line-height: 1.6;
  color: #9ca3af; text-align: right; padding-bottom: 0.5rem;
}

/* Section Tag */
.section-tag { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em; color: var(--color-accent);margin-top: 2rem; margin-bottom:2rem; }

/* Products page hero header (scoped: template-products only) */
.products-hero { padding-bottom: 5rem; }
.products-hero .section-tag { margin-bottom: 1.5rem; }
.products-hero__title {
  margin: 0;
  font-size: clamp(1.25rem, 1.9vw, 1.75rem);
  font-weight: 500; line-height: 1.25; letter-spacing: 0.01em;
  color: #ffffff;
}
.products-hero__intro {
  max-width: 40rem; margin: 1rem 0 0;
  font-size: 0.875rem; font-weight: 300; line-height: 1.8;
  color: #9ca3af;
}
@media (min-width: 768px) {
  .products-hero__intro { font-size: 0.875rem; }
}

/* CTA Button */
.cta-btn {
  display: inline-block; border: 1px solid rgba(255,255,255,0.3);
  padding: 1rem 2rem; font-size: 0.875rem; font-weight: 400;
  text-transform: uppercase; transition: all 0.15s ease;
}
.cta-btn:hover { background-color: #ffffff; color: #000000; }
@media (max-width: 740px) {
  .cta-btn { font-size: 0.8125rem; }
}
.cta-btn-solid {
  display: inline-block; background-color: #ffffff; color: #000000;
  padding: 1rem 3rem; font-size: 0.875rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; transition: all 0.15s ease;
}
.cta-btn-solid:hover { background-color: #e5e7eb; }

/* Artwork Card */
.artwork-card {
  display: block;
  position: relative; overflow: hidden; background-color: #111827;
}
.artwork-card.artwork-square { aspect-ratio: 4/3; }

/* Background */
.artwork-card .artwork-bg {
  position: absolute; inset: 0;
  transition: transform 0.5s ease;
}
.artwork-card .artwork-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block;
}
.artwork-card:hover .artwork-bg { transform: scale(1.1); }

/* Legibility wash: black → transparent */
.artwork-card .artwork-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0) 70%);
}

/* Content */
.artwork-card .artwork-content {
  position: absolute; inset: 0; z-index: 20;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 1.25rem;
  color: #cbd5e1;
  transition: color 0.5s ease;
}
.artwork-card:hover .artwork-content { color: #ffffff; }

/* Arrow */
.artwork-card .artwork-arrow {
  margin-left: auto; display: flex;
  transition: transform 0.5s ease;
}
.artwork-card:hover .artwork-arrow { transform: rotate(-45deg); }

/* Heading with per-letter roll-up */
.artwork-card .artwork-heading {
  font-size: 1.5rem; line-height: 1.2;
  font-weight: 400;
}
.artwork-card .aw-letter {
  display: inline-block; height: 1.2em; overflow: hidden;
  vertical-align: bottom;
}
.artwork-card .aw-letter-inner {
  display: flex; flex-direction: column;
  transform: translateY(0);
  transition: transform 0.5s ease;
}
.artwork-card:hover .aw-letter-inner { transform: translateY(-50%); }
.artwork-card .aw-letter-inner > span {
  display: block; height: 1.2em; line-height: 1.2em;
}

/* Concept Card */
.concept-card { display: block; cursor: pointer; }
.concept-card .concept-img-wrap {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
  margin-bottom: 1.5rem; background-color: #111827; border: 1px solid rgba(255,255,255,0.05);
}
.concept-card .concept-img-wrap img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease;
}
.concept-card:hover .concept-img-wrap img { transform: scale(1.05); }

/* Series Link */
.series-link {
  display: block; border-left: 1px solid rgba(255,255,255,0.2);
  padding-left: 1rem; transition: border-color 0.15s ease;
}
.series-link:hover { border-color: #ffffff; }

/* News Item */
.news-item { display: block; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 3rem; }

/* Page Header */
.page-header { padding-top: 8rem; padding-bottom: 6rem; padding-left: 1rem; padding-right: 1rem;  }
.page-header .cf-section-title {
  font-size: clamp(1.25rem, 1.9vw, 1.75rem);
  font-weight: 500; line-height: 1.25; letter-spacing: 0.01em;
}
.page-header__intro {
  max-width: 40rem;
  margin: 1rem 0 0;
  font-size: 0.875rem; font-weight: 300; line-height: 1.8;
  color: #9ca3af;
}
.page-header__intro p { font-size: 0.875rem; line-height: 1.8; }
.page-header__story { max-width: 46rem; margin-top: 1.5rem; display: grid; gap: 1rem; }
.page-header__story img { display: block; width: 100%; height: auto; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background-color: rgba(0,0,0,0.95); backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
}
.lightbox.hidden { display: none; }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  color: #9ca3af; padding: 0.5rem; transition: color 0.15s ease; z-index: 10;
}
.lightbox-close:hover { color: #ffffff; }
.lightbox-prev, .lightbox-next { position: absolute; color: #6b7280; padding: 1rem; transition: color 0.15s ease; z-index: 10; }
.lightbox-prev:hover, .lightbox-next:hover { color: #ffffff; }
.lightbox-prev { left: 0.5rem; }
.lightbox-next { right: 0.5rem; }
.lightbox-img-wrap { width: 100%; height: 100%; padding: 4rem; display: flex; align-items: center; justify-content: center; }
.lightbox-img-wrap img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }
.lightbox-counter {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  color: #6b7280; font-size: 0.875rem; letter-spacing: 0.1em; font-family: monospace;
}

/* Expand overlay */
.expand-overlay {
  position: absolute; inset: 0; background-color: rgba(0,0,0,0.2);
  opacity: 0; transition: opacity 0.3s ease;
  display: flex; align-items: center; justify-content: center;
}
.expand-overlay .expand-icon {
  background-color: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
  border-radius: 9999px; padding: 1rem; color: #ffffff;
}

/* Subnav - page internal secondary nav */
.subnav {
  position: sticky; top: 80px; z-index: 39; width: 100%;
  background-color: rgba(0,0,0,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 2rem;
}
.subnav.scrolled { top: 64px; }
.subnav-links { gap: 1.5rem; }
.subnav-links a {
  white-space: nowrap; font-size: 0.75rem; letter-spacing: 0.025em; font-weight: 500;
  transition: color 0.15s ease; padding: 0.875rem 0;
  color: #9ca3af;
}
.subnav-links a:hover { color: #ffffff; }
.subnav-dropdown-parent { position: relative; }
.subnav-dropdown {
  position: absolute; left: 0; top: 100%; display: none; flex-direction: column;
  background-color: #111; border: 1px solid rgba(255,255,255,0.1);
  min-width: 200px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); z-index: 50;
}
.subnav-dropdown-parent:hover .subnav-dropdown { display: flex; }
.subnav-dropdown a {
  padding: 0.75rem 1.25rem; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.025em;
  color: #9ca3af; border-bottom: 1px solid rgba(255,255,255,0.05); transition: all 0.15s ease;
}
.subnav-dropdown a:last-child { border-bottom: 0; }
.subnav-dropdown a:hover { color: #ffffff; background-color: rgba(255,255,255,0.05); }

.subnav-actions{ gap: 6px; padding: 4px 0;}
.subnav-visit { font-size: 0.75rem; letter-spacing: 0.1em; font-weight: 500; }
.subnav-tickets {
  border: 1px solid #fff; color: #fff; padding: 0.375rem 0.875rem;
  font-size: 0.75rem; font-weight: 500; transition: all 0.15s ease; white-space: nowrap;
}
.subnav-tickets:hover { background-color: #fff; color: #000; }

.subnav-mobile {
  position: sticky; top: 80px; z-index: 39; width: 100%;
  background-color: rgba(0,0,0,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0.5rem 1rem;
  transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; align-items: center; justify-content: space-between;
}
.subnav-mobile.scrolled { top: 64px; }

/* Drawer trigger button */
.subnav-mobile-toggle {
  display: flex; align-items: center; gap: 0.375rem;
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  color: #fff; padding: 0.375rem 0;
  white-space: nowrap;
}
.subnav-mobile-toggle svg { transition: transform 0.3s ease; }
.subnav-mobile-toggle.open svg { transform: rotate(180deg); }

/* Drawer panel */
.subnav-mobile-drawer {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0,0,0,0.98);
  z-index: 300; padding: 1.5rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  display: flex; flex-direction: column;
}
.subnav-mobile-drawer.open { opacity: 1; visibility: visible; pointer-events: auto; }
.subnav-mobile-drawer-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 2rem;
}
.subnav-mobile-drawer-title {
  font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}
.subnav-mobile-drawer-close {
  font-size: 1.5rem; padding: 0.5rem; line-height: 1; color: #9ca3af;
  transition: color 0.2s ease;
}
.subnav-mobile-drawer-close:hover { color: #fff; }
.subnav-mobile-drawer nav {
  display: flex; flex-direction: column; gap: 0;
  overflow-y: auto; flex: 1;
}
.subnav-mobile-drawer nav a {
  font-size: 1rem; font-weight: 600; letter-spacing: 0.05em;
  color: #9ca3af; padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.2s ease;
}
.subnav-mobile-drawer nav a.active { color: #ffffff; }
.subnav-mobile-drawer nav a:hover { color: #ffffff; }

.subnav-mobile-links { display: none; }
.subnav-tickets-mobile {
  flex-shrink: 0; white-space: nowrap;
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  border: 1px solid #fff; color: #fff;
  padding: 0.375rem 0.75rem;
  transition: all 0.15s ease;
}
.subnav-tickets-mobile:hover { background-color: #fff; color: #000; }

/* Notice Box */
.notice-box {
  background-color: #1a1a1a; border-left: 4px solid var(--color-accent);
  padding: 1.5rem 3rem 2rem; max-width: 48rem;
  color: #d1d5db; font-size: 0.875rem; line-height: 1.625; margin-bottom: 3rem;
}

/* Store Card */
.store-card {
  background-color: #111; padding: 3rem; transition: background-color 0.15s ease;
  cursor: pointer; border: 1px solid rgba(255,255,255,0.05);
}
.store-card:hover { background-color: #1a1a1a; }

/* Visit */
.visit-section h4 {
  font-size: 1.125rem; font-weight: 700; margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 0.5rem;
}

/* Form */
.form-input {
  width: 100%; background: transparent; border: 1px solid rgba(255,255,255,0.2);
  padding: 0.75rem 1rem; color: #fff; transition: all 0.15s ease;
}
.form-input:focus { outline: none; border-color: #fff; }
.form-select {
  width: 100%; background-color: #000; border: 1px solid rgba(255,255,255,0.2);
  padding: 0.75rem 1rem; color: #fff; transition: all 0.15s ease; appearance: none;
}
.form-select:focus { outline: none; border-color: #fff; }

/* Contact page — details rail on the left, form on the right with its fields
   flowing in two columns, so the whole thing fits without scrolling. */
/* The footer carries no top padding of its own, so this section has to hold
   the gap between the submit button and the footer. */
.cf-contact { padding-top: 1.25rem; padding-bottom: clamp(4rem, 7vw, 6rem); }
/* The trimmed-down form (4 fields) reads better narrow: cap the whole
   info-rail + form grid and center it in the page. */
.cf-contact__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; max-width: 60rem; margin-inline: auto; }
.cf-contact__rail { display: flex; flex-direction: column; gap: 2.5rem; }
.cf-contact__meta { display: grid; gap: 1.125rem; }
.cf-contact__meta-label {
  margin-bottom: 0.375rem;
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: #6b7280;
}
.cf-contact__meta-value { font-size: 0.8125rem; font-weight: 300; line-height: 1.6; }
.cf-contact__note { font-size: 0.75rem; font-weight: 300; line-height: 1.7; color: #9ca3af; }
.cf-contact__main { min-width: 0; }

.cf-contact__fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.125rem 1.75rem; }
.cf-contact__field { display: flex; flex-direction: column; min-width: 0; }
.cf-contact__field--full { grid-column: 1 / -1; }
.cf-contact__label { margin-bottom: 0.4375rem; font-size: 0.75rem; font-weight: 600; }
.cf-contact__control {
  width: 100%; background-color: transparent; color: inherit;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.5625rem 0.8125rem;
  font-size: 0.8125rem; line-height: 1.4;
  transition: border-color 0.15s ease;
}
.cf-contact__control:focus { outline: none; border-color: #fff; }
/* Slim custom chevron instead of the chunky native select arrow. */
select.cf-contact__control {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='6' viewBox='0 0 9 6' fill='none' stroke='%239ca3af' stroke-width='1.2'%3E%3Cpath d='M1 1.2 4.5 4.8 8 1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6875rem center;
  background-size: 9px 6px;
  padding-right: 1.875rem;
}
.cf-contact__row { display: flex; gap: 0.5rem; }
.cf-contact__row > * { flex: 1 1 0; min-width: 0; }
/* Natural widths, flowing onto as many lines as the form width allows — all
   nine fit one line from ~1440px up, wrapping as it narrows. The tight gap
   and 12px label size (matching .cf-contact__label) are what buy the room. */
.cf-contact__checks { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.4375rem 0.875rem; }
.cf-contact__check {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 0.4375rem;
  font-size: 0.75rem; font-weight: 300; color: #d1d5db; cursor: pointer;
}
.cf-contact__check input { flex-shrink: 0; }

/* On phones the wraps come out ragged (2/2/2/3 …), which just reads as two
   columns — one option per line instead. */
@media (max-width: 767px) {
  .cf-contact__checks { flex-direction: column; }
}

@media (min-width: 1024px) {
  .cf-contact__grid { grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: 4.5rem; }
}

/* Cat Tab */
.cat-tab {
  padding-bottom: 0.25rem; letter-spacing: 0.025em; text-transform: uppercase;
  transition: color 0.15s ease; border-bottom: 1px solid transparent;
  font-size: 0.875rem; font-weight: 500; cursor: pointer;
}
.cat-tab.active { color: #fff; border-bottom-color: #fff; }
.cat-tab:not(.active) { color: #6b7280; }
.cat-tab:not(.active):hover { color: #fff; }

/* Video modal (films) */
.video-modal {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.92);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
}
.video-modal.hidden { display: none; }
.video-modal-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  font-size: 2.5rem; line-height: 1; color: #9ca3af;
  padding: 0.5rem; transition: color 0.2s ease; z-index: 10;
}
.video-modal-close:hover { color: #ffffff; }
.video-modal-wrap { width: 100%; max-width: 960px; }
.video-modal-wrap video {
  width: 100%; max-height: 82vh; background: #000; display: block;
}
.video-modal-title {
  margin-top: 1rem; text-align: center;
  font-size: 1rem; font-weight: 300; color: #d1d5db;
}

/* Play button */
.play-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.play-btn {
  width: 4rem; height: 4rem; border-radius: 9999px;
  background-color: rgba(0,0,0,0.5); border: 2px solid rgba(255,255,255,0.5);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); transition: all 0.3s ease;
}
.play-btn:hover { background-color: rgba(255,255,255,0.2); }

/* ============================================================
   Responsive
   ============================================================ */
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .sm\:columns-2    { column-count: 2; }
  .sm\:w-auto       { width: auto; }
}

@media (min-width: 768px) {
  .md\:flex         { display: flex; }
  .md\:grid         { display: grid; }
  .md\:hidden       { display: none; }
  .md\:order-2      { order: 2; }
  .md\:grid-cols-2  { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-cols-3  { grid-template-columns: repeat(3, 1fr); }
  .md\:grid-cols-4  { grid-template-columns: repeat(4, 1fr); }
  .md\:grid-cols-12 { grid-template-columns: repeat(12, 1fr); }
  .md\:col-span-5   { grid-column: span 5 / span 5; }
  .md\:col-span-6   { grid-column: span 6 / span 6; }
  .md\:col-span-7   { grid-column: span 7 / span 7; }
  .md\:columns-2    { column-count: 2; }
  .md\:columns-3    { column-count: 3; }
  .md\:flex-row     { flex-direction: row; }
  .md\:items-baseline { align-items: baseline; }
  .md\:mb-0         { margin-bottom: 0; }
  .md\:mt-0         { margin-top: 0; }
  .md\:mt-24        { margin-top: 6rem; }
  .md\:ml-40        { margin-left: 10rem; }
  .md\:mx-0         { margin-left: 0; margin-right: 0; }
  .md\:mx-8         { margin-left: 2rem; margin-right: 2rem; }
  .md\:gap-4        { gap: 1rem; }
  .md\:gap-6        { gap: 1.5rem; }
  .md\:gap-8        { gap: 2rem; }
  .md\:gap-12       { gap: 3rem; }
  .md\:gap-16       { gap: 4rem; }
  .md\:gap-20       { gap: 5rem; }
  .md\:gap-24       { gap: 6rem; }
  .md\:gap-32       { gap: 8rem; }
  .md\:text-left    { text-align: left; }
  .md\:text-center  { text-align: center; }
  .md\:text-base    { font-size: 1rem; }
  .md\:text-lg      { font-size: 1.125rem; }
  .md\:text-xl      { font-size: 1.25rem; }
  .md\:text-2xl     { font-size: 1.5rem; }
  .md\:text-3xl     { font-size: 1.875rem; }
  .md\:text-5xl     { font-size: 5rem; }
  .md\:text-6xl     { font-size: 7rem; }
  .md\:text-7xl     { font-size: 4.5rem; }
  .md\:text-8xl     { font-size: 6rem; }
  .md\:px-4    { padding-left: 1rem; padding-right: 1rem; }
  .md\:px-8    { padding-left: 2rem; padding-right: 2rem; }
  .md\:px-12   { padding-left: 3rem; padding-right: 3rem; }
  .md\:py-8    { padding-top: 2rem; padding-bottom: 2rem; }
  .md\:py-24   { padding-top: 6rem; padding-bottom: 6rem; }
  .md\:pt-24   { padding-top: 6rem; }
  .md\:pt-40   { padding-top: 10rem; }
  .md\:pb-24   { padding-bottom: 6rem; }
  .md\:p-16    { padding: 4rem; }
  .md\:p-24    { padding: 6rem; }

  .header-nav { display: flex; align-items: center; gap: 2rem; }
  .hamburger { display: none; }
  .subnav { display: flex; align-items: center; justify-content: space-between; }
  .subnav-mobile { display: none; }
  .hero-content { padding: 4rem; }
  .page-header { padding-left: 2rem; padding-right: 2rem; }
  .notice-box { text-align: center; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .lg\:columns-3   { column-count: 3; }
  .lg\:px-12  { padding-left: 3rem; padding-right: 3rem; }
  .lg\:mx-12  { margin-left: 3rem; margin-right: 3rem; }
  .page-header { padding-left: 3rem; padding-right: 3rem; }

  .footer { padding:4rem 2rem 4rem; }
  .footer-top { flex-direction: row; justify-content: space-between; align-items: flex-start; }
  .footer-bottom { display: grid; grid-template-columns: repeat(10, 1fr); margin-top: 4rem; padding-top: 4rem; }
  .footer-copyright { grid-column: 1 / 4; grid-row: 1 / 3; }
  .footer-main { grid-column: 4 / 11; grid-row: 1; margin-top: 0; }
  .footer-legal { grid-column: 4 / 11; grid-row: 2; margin-top: 0.5rem; }
  .footer-main ul, .footer-legal ul { justify-content: flex-end; }
}

@media (min-width: 1280px) {
  .xl\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .xl\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
  .xl\:grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
  .xl\:columns-4   { column-count: 4; }
  .xl\:columns-5   { column-count: 5; }
  .xl\:px-16 { padding-left: 4rem; padding-right: 4rem; }
  .xl\:mx-16 { margin-left: 4rem; margin-right: 4rem; }
  .page-header { padding-left: 4rem; padding-right: 4rem; }
}

/* ============================================================
   Cave Fantasy — additional components
   ============================================================ */

/* Hero rotator (home) */
.cf-hero { position: relative; width: 100%; height: 100vh; overflow: hidden; background: #000; }
.cf-hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.cf-hero-slide.is-active { opacity: 1; z-index: 1; }
.cf-hero-slide img { width: 100%; height: 100%; object-fit: cover; opacity: 0.75; }
.cf-hero-caption { position: absolute; bottom: 3rem; left: 2rem; right: 2rem; z-index: 2; min-height: 8rem; }
.cf-hero-text { position: absolute; left: 0; right: 0; bottom: 0; opacity: 0; visibility: hidden; transition: opacity 0.8s ease; }
.cf-hero-text.is-active { opacity: 1; visibility: visible; }
@media (min-width: 768px) { .cf-hero-caption { left: 4rem; right: 4rem; } }
.cf-hero-dots { position: absolute; bottom: 1.5rem; right: 2rem; z-index: 3; display: flex; gap: 0.5rem; }
.cf-hero-dots span { width: 8px; height: 8px; border-radius: 9999px; background: rgba(255,255,255,0.35); transition: background 0.3s ease; }
.cf-hero-dots span.is-active { background: #fff; }

.cf-hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 3rem; height: 3rem; border-radius: 9999px;
  background: rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.4);
  display: flex; align-items: center; justify-content: center; color: #fff;
  backdrop-filter: blur(4px); transition: background-color 0.2s ease, border-color 0.2s ease;
}
.cf-hero-arrow:hover { background: rgba(0,0,0,0.6); border-color: #fff; }
.cf-hero-arrow.cf-hero-prev { left: 1rem; }
.cf-hero-arrow.cf-hero-next { right: 1rem; }
@media (min-width: 768px) {
  .cf-hero-arrow { width: 3.5rem; height: 3.5rem; }
  .cf-hero-arrow.cf-hero-prev { left: 2rem; }
  .cf-hero-arrow.cf-hero-next { right: 2rem; }
}

/* Accent gradient text */
.cf-gradient-text {
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.cf-specs { font-size: 0.875rem; color: #9ca3af; font-weight: 300; line-height: 2; white-space: pre-line; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; margin-top: 1.5rem; }

/* Project / case card */
.cf-case { border-top: 1px solid rgba(255,255,255,0.08); padding: 4rem 0; }
.cf-case-media { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #0a0a0a; }
.cf-case-media img, .cf-case-media video { width: 100%; height: 100%; object-fit: cover; }

/* Film grid card */
.film-card { position: relative; overflow: hidden; background: #111827; aspect-ratio: 3/4; display: block; }
.film-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.film-card:hover img { transform: scale(1.06); }
.film-card .film-overlay {
  position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.9) 10%, rgba(0,0,0,0.1) 55%, transparent 80%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem;
}
.film-card .film-desc { max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.4s ease, opacity 0.3s ease; font-size: 0.8125rem; color: #d1d5db; font-weight: 300; line-height: 1.5; }
.film-card:hover .film-desc { max-height: 10rem; opacity: 1; margin-top: 0.5rem; }

/* Stat grid */
.cf-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: rgba(255,255,255,0.08); }
.cf-stat { background: #000; padding: 2.5rem 1.5rem; text-align: center; }
.cf-stat-num { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
@media (min-width: 768px) { .cf-stats { grid-template-columns: repeat(5, 1fr); } }

/* Contact list */
.cf-contact-row { display: flex; flex-direction: column; gap: 0.375rem; padding: 1.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.cf-contact-row h4 { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-accent); font-weight: 600; }
.cf-contact-row p, .cf-contact-row a { font-size: 1.125rem; font-weight: 300; color: #fff; }

/* Block-editor content rendered via the_content() (Contact form, etc.) */
.cf-entry-content { color: #d1d5db; font-weight: 300; }
.cf-entry-content h2 { font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 1.5rem; letter-spacing: -0.01em; }
.cf-entry-content p { margin-bottom: 1.5rem; line-height: 1.7; }
.cf-entry-content a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,0.3); }
.cf-entry-content a:hover { text-decoration-color: #fff; }
.cf-entry-content .wp-block-columns { gap: 4rem; }
.cf-entry-content .wp-block-column + .wp-block-column { margin-top: 0; }
.cf-entry-content input[type=text], .cf-entry-content input[type=email], .cf-entry-content input[type=tel], .cf-entry-content input[type=url], .cf-entry-content textarea {
  width: 100%; background: transparent; border: 1px solid rgba(255,255,255,0.2); border-radius: 0;
  padding: 0.75rem 1rem; color: #fff; font-family: var(--font-sans); font-size: 0.9375rem; transition: border-color 0.15s ease;
}
.cf-entry-content input:focus, .cf-entry-content textarea:focus { outline: none; border-color: #fff; }
.cf-entry-content .contact-form label,
.cf-entry-content .grunion-field-label,
.cf-entry-content label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #9ca3af; margin-bottom: 0.5rem; display: block; }
.cf-entry-content .wp-block-button__link {
  background: #fff; color: #000; border-radius: 0; padding: 1rem 3rem; font-size: 0.875rem;
  font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; transition: background 0.15s ease;
}
.cf-entry-content .wp-block-button__link:hover { background: #e5e7eb; }
.cf-entry-content .contact-form-submit { margin-top: 0.5rem; }
@media (max-width: 767px) { .cf-entry-content .wp-block-columns { flex-wrap: wrap; } .cf-entry-content .wp-block-column { flex-basis: 100% !important; } }

/* ============================================================
   Filmstrip editorial hero
   ============================================================ */
.cf-film {
  position: relative; overflow: hidden; width: 100%;
  height: 100vh; /* fallback for browsers without svh */
  height: 100svh; /* stable when the mobile URL bar collapses on scroll */
  min-height: 560px;
  background: #000; color: #fff;
  -webkit-user-select: none; user-select: none; outline: none;
  touch-action: pan-y; /* horizontal swipe flips slides; vertical scroll stays with the page */
  /* geometry defaults — JS overrides after measure */
  --film-fullH: 200px;
  --film-halfH: 100px;
  --film-cardW: 150px;
  --film-gap: 8px;
  pointer-events: auto;
  /* Editorial padding / label / title scale — kept inside .cf-film so they
     stay in the cascade (they had been stranded after the @media block below,
     which dropped them as invalid top-level declarations). */
  --film-pad: 24px;
  --film-label: 11px;
  --film-title: 68px;
}

/* Background: focused photo, re-hued to its accent */
.cf-film__bg { position: absolute; inset: 0; }
/* 只渲染当前激活背景（+ 淡出中的旧背景），避免 6 张全屏大图同时占 GPU 内存，
   这是移动端第一/二张切换时缩略图闪烁的根因。 */
.cf-film__bg-slide {
  position: absolute; inset: 0;
  opacity: 0;
  display: none;
}
.cf-film__bg-slide.is-active,
.cf-film__bg-slide.is-leaving { display: block; }
.cf-film__bg-slide.is-active { opacity: 1; transition: opacity 0.7s ease; }
.cf-film__bg-slide.is-leaving { opacity: 0; transition: opacity 0.7s ease; }
.cf-film__bg-slide img {
  width: 100%; object-fit: cover; display: block;
  transform: scale(1.28);
  height: 100%;
  will-change: transform;
  /* 背景保持彩色，只加一点暗调；灰度/去色交给非激活的缩略图 */
  filter: brightness(0.6);
}
.cf-film__bg-slide.is-active img { animation: cf-film-zoom 6s linear forwards; }
@keyframes cf-film-zoom { from { transform: scale(1.42); } to { transform: scale(1.28); } }

/* Wash + grain, above the swap so they never flicker */
.cf-film__wash {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent 100%, rgba(0,0,0,0.8));
}
.cf-film__grain {
  position: absolute; inset: 0; pointer-events: none;
  opacity: 0.22; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* Top bar: centred wordmark */
.cf-film__topbar {
  position: absolute; left: 0; right: 0; top: max(16px, 2.9vh);
  display: flex; justify-content: center;
}
.cf-film__brand {
  font-weight: 600; letter-spacing: 0.06em;
  font-size: calc(var(--film-label) * 1.35);
}

/* Headline block, sitting just above the strip's top edge */
.cf-film__headline {
  position: absolute; left: 0; right: 0; top: 0; height:65%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--film-pad) 2.5vh;
}
@media (max-width: 768px) { .cf-film__headline {height:58%;padding: 0 var(--film-pad) 0;} }

.cf-film__headline-row {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 0.75rem 6vw;
}
.cf-film__headline-main { flex: 0 1 auto; min-width: 0; }
.cf-film__title {
  font-size: clamp(2.5rem, 9vw, 4.25rem);
  font-weight: 600; line-height:1.6; letter-spacing: -0.03em;
}
.cf-film__title .cf-film__line { display: block; overflow: hidden; }
.cf-film__title .cf-film__line > span {
  display: block; transform: translateY(110%);
  transition: transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
}
.cf-film__title.is-in .cf-film__line > span { transform: translateY(0); }
.cf-film__credit {
  margin-top: 0.6em;
  font-family:  var(--font-sans);
  text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 14px; opacity: 0.8; color: #fff;
  transition: opacity 0.5s ease;
}
.cf-film__meta {
  display: flex; align-items: flex-end;
  gap: max(16px, 5.5vw); padding-bottom: 0.35em;
}
.cf-film__meta span {
  font-family: var(--font-sans);
  text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 14px; opacity: 0.8; color: #fff; white-space: nowrap;
}

/* The strip: one shared top edge, focused card twice as tall */
.cf-film__strip-wrap {
  position: absolute; left: 0; right: 0; top: 50%; height: var(--film-fullH);
}
.cf-film__strip {
  display: flex; flex-direction: row-reverse; align-items: flex-start; gap: var(--film-gap);
  will-change: transform; cursor: grab;
  touch-action: pan-y; /* horizontal drag is ours; vertical scroll stays with the page */
  /* card 0 is right-most (row-reverse), so pre-centre it before JS measures —
     otherwise the hero flashes card 0 on the right edge, then jumps to centre. */
  transform: translateX(calc(var(--film-cardW) / 2 - 50vw));
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.cf-film__strip.is-dragging { cursor: grabbing; transition: none; }
.cf-film__card {
  flex: 0 0 auto; width: var(--film-cardW); height: var(--film-fullH);
  overflow: hidden; position: relative; padding: 0; border: 0; border-radius: 0;
  background: rgba(255,255,255,0.05); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  /* Cards stay full height and the image never re-renders; the active card is
     distinguished by opacity only. This avoids the mobile flicker that the
     height/clip-path "unfurl" animation caused on the first two slides. */
  opacity: 1;
  will-change: opacity;
  transition: opacity 0.5s ease;
}
.cf-film__card.is-active {
  opacity: 1;
}
.cf-film__card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 26%; display: block;
  filter: grayscale(1);
  transition: filter 0.5s ease;
}
.cf-film__card.is-active img {
  filter: grayscale(0);
}
.cf-film__card::after {
  content: ''; position: absolute; inset: 0; background: #000; opacity: 0.5;
  transition: opacity 0.4s ease;
}
.cf-film__card.is-active::after { opacity: 0; }

/* Pagination rail — centred, larger, clickable dots */
.cf-film__rail {
  position: absolute; left: 0; right: 0; bottom: 3vh;
  display: flex; flex-direction: column; align-items: center; gap: 0.875rem;
}
.cf-film__rail-labels {
  display: flex; justify-content: center; gap: 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums; font-size: 16px; letter-spacing: 0.1em; opacity: 0.85;
}
.cf-film__rail-dots {
  display: flex; align-items: center; justify-content: center; gap: 0.25rem;
}
.cf-film__dot {
  width: 28px; height: 28px; border: 0; padding: 0; margin: 0;
  background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.cf-film__dot::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transition: background 0.3s ease, transform 0.3s ease;
}
.cf-film__dot:hover::before { background: rgba(255,255,255,0.7); }
.cf-film__dot.is-active::before { background: #fff; transform: scale(1.35); }

/* Mobile: keep the hero stable while scrolling and let text reflow instead of
   overflowing the small viewport. */
@media (max-width: 767px) {
  .cf-film { min-height: 0; }
  .cf-film__title { line-height: 1.06; }
  .cf-film__credit { font-size: 12px; }
  .cf-film__meta { gap: 1rem 1.25rem; }
  .cf-film__meta span { font-size: 12px; white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  .cf-hero-slide { transition: none; }
  .film-card img { transition: none; }
  .cf-film__bg-slide,
  .cf-film__bg-slide img,
  .cf-film__strip,
  .cf-film__card,
  .cf-film__card::after,
  .cf-film__title .cf-film__line > span,
  .cf-film__credit,
  .cf-film__rail-fill { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* Product spec icon */
.cf-spec-icon {
  display: inline-flex;
  flex-shrink: 0;
  color: var(--color-accent);
}

/* ============================================================
   Product gallery (thumbnail switch + lightbox)
   ============================================================ */
.cf-gallery {
  width: 100%;
  margin-top: 1rem;
}
@media (min-width: 1024px) {
  .cf-gallery {
    width: 28rem;
    justify-self: end;
  }
}
.cf-gallery__main {
  display: block; width: 100%; aspect-ratio: 4 / 3;
  overflow: hidden; background: #0a0a0a; padding: 0; border: 0;
  cursor: zoom-in;
}
.cf-gallery__main img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.cf-gallery__main:hover img { transform: scale(1.03); }

.cf-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(4rem, 1fr));
  gap: 0.6rem; margin-top: 0.75rem;
}
.cf-gallery__thumb {
  width: 100%; aspect-ratio: 4 / 3; overflow: hidden; padding: 0;
  background: #0a0a0a; border: 1px solid transparent; cursor: pointer;
  opacity: 0.5; transition: opacity 0.2s ease, border-color 0.2s ease;
}
.cf-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cf-gallery__thumb:hover { opacity: 0.85; }
.cf-gallery__thumb.is-active { opacity: 1; border-color: #ffffff; }

/* Lightbox */
.cf-lightbox {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.92); padding: 3rem;
  cursor: zoom-out;
}
.cf-lightbox img {
  max-width: 100%; max-height: 100%; object-fit: contain; display: block;
}
.cf-lightbox__close,
.cf-lightbox__prev,
.cf-lightbox__next {
  position: absolute; display: flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border: 0; cursor: pointer;
  color: #fff; background: rgba(255, 255, 255, 0.12); font-size: 1.4rem;
  line-height: 1; transition: background 0.2s ease;
}
.cf-lightbox__close:hover,
.cf-lightbox__prev:hover,
.cf-lightbox__next:hover { background: rgba(255, 255, 255, 0.24); }
.cf-lightbox__close { top: 1.5rem; right: 1.5rem; }
.cf-lightbox__prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.cf-lightbox__next { right: 1.5rem; top: 50%; transform: translateY(-50%); }

/* Film card play button */
.cf-film-card { cursor: pointer; }

.film-card__duration {
  display: flex;
  align-items: center;
  gap: 6px;
}
.film-card__dur-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.cf-play-btn {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  transition: background 0.2s ease;
}
.cf-film-card:hover .cf-play-btn { background: rgba(0, 0, 0, 0.1); }
.cf-play-btn svg {
  width: 3.5rem; height: 3.5rem; color: #fff; opacity: 0.9;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
  transition: transform 0.2s ease;
}
.cf-film-card:hover .cf-play-btn svg { transform: scale(1.1); }

/* Video layer */
.cf-video-layer {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.92); padding: 2rem;
}
.cf-video-layer video {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  background: #000; outline: none;
}
.cf-video-layer__close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border: 0; cursor: pointer;
  color: #fff; background: rgba(255, 255, 255, 0.12); font-size: 1.4rem;
  line-height: 1; transition: background 0.2s ease;
}
.cf-video-layer__close:hover { background: rgba(255, 255, 255, 0.24); }

/* ============================================================
   Products list + detail
   ============================================================ */
.cf-product-card { display: block; }
.cf-product-card__media {
  position: relative; aspect-ratio: 4/3; overflow: hidden;
  background-color: #111827;
}
.cf-product-card__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(0.35);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), filter 0.7s ease;
}
.cf-product-card:hover .cf-product-card__media img { transform: scale(1.05); filter: grayscale(0); }
.cf-product-card__meta {
  display: flex; align-items: baseline; gap: 0.75rem; margin-top: 1rem;
}
.cf-product-card__index {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem; letter-spacing: 0.1em; color: #6b7280;
}
.cf-product-card__title {
  font-size: 1.125rem; font-weight: 500; letter-spacing: -0.01em;
  color: #e5e7eb; transition: color 0.3s ease;
}
.cf-product-card:hover .cf-product-card__title { color: #fff; }

/* ============================================================
   Single product detail — teamLab-style artwork page
   Editor composes the gallery from "产品相册" patterns; CSS only
   enforces the reference proportions: wide rows ≈ 11:6, column
   tiles 1:1, uniform flush gaps.
   ============================================================ */
.cf-art {
  /* Shared scale tokens live on the root so every section can read them
     (custom properties do NOT inherit upward from .cf-art__shell). */
  --art-gap: 10px;
  padding-top: clamp(6rem, 12vh, 8rem);
}

/* Padded page container shared by intro / gallery / info / related. */
.cf-art__shell {
  --art-pad-x: clamp(24px, 5.6vw, 116px);
  padding-inline: var(--art-pad-x);
}

/* --- Intro ------------------------------------------------ */
/* Roomy drop from the title/excerpt block down to the first shot (reference
   uses a clearly larger gap here than the inter-image gutters). */
.cf-art__intro { margin-bottom: clamp(2.25rem, 4vw, 72px); }
.cf-art__back {
  display: inline-block; margin-bottom: 1.25rem;
  font-size: 0.6875rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: #9ca3af; transition: color 0.2s ease;
}
.cf-art__back:hover { color: #fff; }
.cf-art__title {
  font-size: clamp(1.25rem, 1.9vw, 1.75rem);
  line-height: 1.25; font-weight: 500; letter-spacing: 0.01em; color: #fff;
}
.cf-art__subline {
  margin-top: 0.375rem;
  font-size: 0.6875rem; font-weight: 400; letter-spacing: 0.02em;
  color: #8b8f96;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cf-art__dur-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.cf-art__intro-desc {
  margin-top: 1.25rem;
  max-width: 48rem;
}
.cf-art__intro-desc p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.8;
  color: #9ca3af;
}
.cf-art__intro-desc p + p {
  margin-top: 0.875rem;
}

/* --- Gallery (editor-composed Gutenberg content) ---------- */
/* Uniform 10px breathing room above and below the whole gallery too. */
.cf-art__gallery { --art-gap: 10px; padding-block: var(--art-gap); padding-bottom: 100px;}
/* Zero every default block-library margin first so the only spacing in the
   gallery is the uniform reference gap. */
.cf-art__gallery :where(*) { margin: 0; }
.cf-art__gallery img {
  width: 100%; height: auto; display: block; object-fit: cover;
  background-color: #0a0a0a;
}

/* Uniform vertical rhythm between composed rows / blocks.
   Rows live inside the padded .cf-art__shell, so target its children. */
.cf-art__gallery .cf-art__shell > * + * { margin-top: var(--art-gap); }
.cf-art__gallery .wp-block-columns { gap: var(--art-gap); }
.cf-art__gallery .wp-block-gallery { gap: var(--art-gap); }
.cf-art__gallery .wp-block-column { min-width: 0; }
.cf-art__gallery .wp-block-column .wp-block-image + .wp-block-image,
.cf-art__gallery .wp-block-column > * + * { margin-top: var(--art-gap); }

/* A top-level column holding two stacked full-width tiles (the 左上下两张
   layout): split the column's height in half rather than hard-coding an
   aspect ratio, so the column ends exactly level with the 2×2 grid beside it
   at every width.
   - scoped with the leading `.cf-art__shell >` so it does NOT also match the
     two-cover sub-columns inside the 2×2 grid (that would stack the flex gap
     on top of the `* + *` margin above and double the gutter);
   - `align-self: stretch` (not `align-items` on the parent) is what gives the
     column a height to split, and it leaves every other column alone;
   - the !important neutralises an aspect ratio already saved in the block,
     so galleries built before this rule still line up. */
.cf-art__gallery .cf-art__shell > .wp-block-columns > .wp-block-column:has(> .wp-block-cover + .wp-block-cover) {
  align-self: stretch;
  display: flex; flex-direction: column; gap: var(--art-gap);
}
.cf-art__gallery .cf-art__shell > .wp-block-columns > .wp-block-column:has(> .wp-block-cover + .wp-block-cover) > .wp-block-cover {
  flex: 1 1 0; min-height: 0; margin-top: 0; aspect-ratio: auto !important;
}

/* The same stacked pair when the tiles are Image blocks instead of Covers —
   what 重新生成随机布局 emits. `margin-top: 0` hands the gutter to the flex
   gap rather than doubling it, and `aspect-ratio: auto` releases the square
   1:1 tile crop so each image can split the stretched column's height. */
.cf-art__gallery .cf-art__shell > .wp-block-columns > .wp-block-column:has(> .wp-block-image + .wp-block-image) {
  align-self: stretch;
  display: flex; flex-direction: column; gap: var(--art-gap);
}
.cf-art__gallery .cf-art__shell > .wp-block-columns > .wp-block-column:has(> .wp-block-image + .wp-block-image) > .wp-block-image {
  flex: 1 1 0; min-height: 0; margin-top: 0; aspect-ratio: auto; overflow: hidden;
}
.cf-art__gallery .cf-art__shell > .wp-block-columns > .wp-block-column:has(> .wp-block-image + .wp-block-image) > .wp-block-image img {
  width: 100%; height: 100%; object-fit: cover;
}

/* Full-width rows: cinematic 11:6 crop (reference hero ratio). */
.cf-art__gallery .wp-block-image.alignfull { aspect-ratio: 11 / 6; overflow: hidden; }
.cf-art__gallery .wp-block-image.alignfull img { width: 100%; height: 100%; object-fit: cover; }

/* Tiles inside columns / galleries: square 1:1 crops (reference pairs). */
.cf-art__gallery :is(.wp-block-column, .wp-block-gallery) .wp-block-image:not(.alignfull),
.cf-art__gallery :is(.wp-block-column, .wp-block-gallery) .wp-block-gallery .blocks-gallery-item {
  aspect-ratio: 1 / 1; overflow: hidden;
}
.cf-art__gallery :is(.wp-block-column, .wp-block-gallery) .wp-block-image:not(.alignfull) img,
.cf-art__gallery :is(.wp-block-column, .wp-block-gallery) .blocks-gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
}

/* Any standalone non-full image keeps its natural shape but is capped so a
   loose single shot still reads cinematic on huge screens. */
.cf-art__gallery > .wp-block-image:not(.alignfull):not(:has(> figcaption)) img { height: auto; }

/* Video & embed blocks inside the gallery render like images: full-width,
   native aspect ratio (never force-cropped to 11:6 / 1:1), dark backing. */
.cf-art__gallery .wp-block-video,
.cf-art__gallery .wp-block-embed { width: 100%; }
.cf-art__gallery .wp-block-video video {
  width: 100%; height: auto; display: block; background-color: #0a0a0a;
}
.cf-art__gallery .wp-block-embed__wrapper { position: relative; width: 100%; }
.cf-art__gallery .wp-block-embed iframe {
  width: 100%; height: auto; display: block; aspect-ratio: 16 / 9;
  background-color: #0a0a0a; border: 0;
}

/* Cover-wrapped tiles: a slot the editor can fill with an image *or* a
   video. The block carries its own aspect-ratio (style.dimensions), so only
   the block-library chrome needs flattening here. */
.cf-art__gallery .wp-block-cover { width: 100%; padding: 0; }
.cf-art__gallery .wp-block-cover__image-background,
.cf-art__gallery .wp-block-cover__video-background { background-color: #0a0a0a; }
.cf-art__gallery .wp-block-cover__image-background { cursor: zoom-in; }
/* Core paints the dim layer (and an empty inner container) over the image at
   inset 0, so they swallow the click the lightbox listens for on the <img>.
   The inner container keeps its pointer events once the editor puts content
   in it. */
.cf-art__gallery .wp-block-cover__background,
.cf-art__gallery .wp-block-cover__inner-container:empty { pointer-events: none; }

/* Legacy fallback stack renders everything as wide shots. */

/* --- Info column ------------------------------------------ */
.cf-art__info { padding-top: clamp(3.5rem, 7vw, 6.5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.cf-art__info-col { max-width: 46rem; margin-left: clamp(0px, 14%, 320px); }
.cf-art__info-title {
  font-size: 1rem; font-weight: 600; letter-spacing: 0.01em; color: #fff;
  margin: 0 0 0.375rem;
}
.cf-art__info-col .cf-art__subline { margin-top: 0; }
.cf-art__info-desc { margin-top: 1rem; display: grid; gap: 0.875rem; }
.cf-art__info-desc p {
  font-size: 0.84375rem; font-weight: 300; line-height: 1.95; letter-spacing: 0.01em;
  color: #b6bac1;
  margin: 0;
}
.cf-art__specs {
  list-style: none; margin-top: 1.75rem; padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  display: flex; flex-direction: column; gap: 0.625rem;
}
.cf-art__spec {
  display: flex; align-items: flex-start; gap: 0.75rem;
  font-size: 0.78125rem; font-weight: 300; letter-spacing: 0.02em; color: #7d828a;
  line-height: 1.6;
}
.cf-spec-icon { display: inline-flex; color: #22d3ee; opacity: 0.8; flex-shrink: 0; margin-top: 1px; }
.cf-art__info-cta {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}
.cf-art__info-cta p {
  margin: 0;
  font-size: 0.8125rem; font-weight: 300; line-height: 1.9;
  color: #9ca3af;
  max-width: 36rem;
}

/* --- Related products ------------------------------------- */
.cf-art__related {
  padding-top: clamp(2.5rem, 5vw, 4.5rem); padding-bottom: clamp(4rem, 8vw, 7rem);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.cf-art__related-title {
  font-size: 0.875rem; font-weight: 700; letter-spacing: 0.06em; color: #fff;
  margin-bottom: 1.5rem;
}
.cf-art__related-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}
.cf-art-card { display: block; min-width: 0; }
.cf-art-card__media {
  position: relative; aspect-ratio: 11 / 6; overflow: hidden;
  background-color: #111214; outline: 1px solid rgba(255, 255, 255, 0.07); outline-offset: -1px;
}
.cf-art-card__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s ease;
  filter: brightness(0.92);
}
.cf-art-card:hover .cf-art-card__media img { transform: scale(1.05); filter: brightness(1); }
.cf-art-card__pill {
  position: absolute; left: 0.625rem; bottom: 0.625rem;
  padding: 0.3125rem 0.625rem; border-radius: 999px;
  background: rgba(16, 16, 18, 0.85); backdrop-filter: blur(4px);
  font-size: 0.5625rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff; white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease;
}
.cf-art-card:hover .cf-art-card__pill { background: #fff; color: #000; }
.cf-art-card__name {
  margin-top: 0.75rem;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.01em; color: #f3f4f6;
  transition: color 0.25s ease;
}
.cf-art-card:hover .cf-art-card__name { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cf-art-card__meta {
  margin-top: 0.25rem;
  font-size: 0.65625rem; font-weight: 300; letter-spacing: 0.03em; color: #8b8f96;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cf-art-card__duration {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cf-art-card__dur-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}
.cf-art-card__duration span {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* --- Responsive -------------------------------------------- */
@media (max-width: 1023px) {
  .cf-art__related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  /* Composed columns stack naturally (block library behaviour); tiles stay
     square full-width, wide rows relax to 16:9 to save vertical space. */
  .cf-art__gallery .wp-block-image.alignfull { aspect-ratio: 16 / 9; }
  .cf-art__info-col { margin-left: 0; }
  .cf-art__related-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   teamLab-style homepage cards
   PRODUCTS → works-style tile (square, hover zoom + dim,
   caption overlays the centred image), PROJECTS → exhibition
   card (16:9 figure, white status badge bottom-left, stacked
   meta lines). Both reveal with a fade-in on scroll.
   ============================================================ */
.cf-reveal { opacity: 0; transform: translateY(20px);
  transition: opacity 0.9s cubic-bezier(0.215, 0.61, 0.355, 1),
              transform 0.9s cubic-bezier(0.215, 0.61, 0.355, 1); }
.cf-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .cf-reveal { opacity: 1; transform: none; transition: none; }
}
/* 移动端（触摸屏）禁用入场位移动画：translateY 过渡会让元素在 touchstart 与
   touchend 之间移动，iOS 据此判定为“滑动”而不合成 click，导致卡片要连点两次
   才能进详情页。这里一并关掉淡入与位移，保证首 tap 即跳转。 */
@media (hover: none), (pointer: coarse) {
  .cf-reveal { opacity: 1; transform: none; transition: none; }
}

/* --- Works card (PRODUCTS) --------------------------------- */
.cf-artcard { position: relative; display: block; overflow: hidden; text-align: center; }
.cf-artcard__wrap {
  /* Reference ratio: 100/67 on desktop; square only on small screens. */
  display: block; position: relative; aspect-ratio: 100 / 67;
  overflow: hidden; background-color: #101113;
}
.cf-artcard__wrap img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.8s cubic-bezier(0.215, 0.61, 0.355, 1),
              opacity 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
}
.cf-artcard:hover .cf-artcard__wrap img { transform: scale(1.05); opacity: 0.6; }
/* 移动端禁用 hover 变暗/放大（与 .cf-exhcard 一致），避免触摸端 sticky hover
   在首次 tap 时只触发视觉反馈、不导航。 */
@media (hover: none), (pointer: coarse) {
  .cf-artcard:hover .cf-artcard__wrap img { transform: none; opacity: 1; }
}
.cf-artcard__title {
  display: block; padding-block-start: 10px; padding-inline: 5px;
  font-size: 13px; font-weight: 400; color: #fff;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
@media (min-width: 1024px) {
  /* Desktop mirrors the reference WORKS card: static caption is replaced by a
     hover-only title laid over the image centre. */
  .cf-artcard__title {
    position: absolute; top: 50%; left: 0; right: 0; bottom: auto; z-index: 2;
    display: flex; justify-content: center; text-align: center;
    padding-inline: 20px; font-size: 16px; letter-spacing: 0.02em;
    line-height: 1.5; color: #fff; pointer-events: none; white-space: normal;
    opacity: 0; transform: translateY(-50%);
    transition: transform 1s cubic-bezier(0.215, 0.61, 0.355, 1),
                opacity 0.36s cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  .cf-artcard:hover .cf-artcard__title { opacity: 1; }
}
@media (max-width: 767px) {
  /* Reference goes square on phones. */
  .cf-artcard__wrap { aspect-ratio: 1; }
}

/* --- Exhibition card (PROJECTS) ----------------------------- */
.cf-exhcard {
  display: flex; flex-direction: column; min-width: 0;
  position: relative; z-index: 1;
  -webkit-tap-highlight-color: transparent;
}
.cf-exhcard__figure {
  position: relative; display: block; width: 100%;
  aspect-ratio: 16 / 9; overflow: hidden; background-color: #101113;
}
.cf-exhcard__figure img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
}
.cf-exhcard:hover .cf-exhcard__figure img { transform: scale(1.05); }
/* 禁用移动端触摸的 hover 效果，避免干扰点击 */
@media (hover: none), (pointer: coarse) {
  .cf-exhcard:hover .cf-exhcard__figure img { transform: none; }
  .cf-exhcard:active .cf-exhcard__figure img { transform: scale(1.02); }
}

/* 首页 PROJECTS 区域确保不被覆盖 */
.home .cf-exhcard { z-index: 10; }

/* 首页 PROJECTS section 移动端提升层级 */
@media (max-width: 767px) {
  .cf-projects-section { position: relative; z-index: 10; }
}
.cf-exhcard__status {
  position: absolute; left: 15px; bottom: 15px;
  min-width: 70px; max-width: calc(100% - 50px);
  padding: 7px 10px; font-size: 10px; font-weight: 700; line-height: 1;
  color: #000; background-color: #fff; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cf-exhcard__status.is-construction {
  color: #fff;
  background-color: #f33404;
}
.cf-exhcard__body { display: block; padding-top: 20px; color: #fff; }
.cf-exhcard__title { margin-bottom: 4px; font-size: 14px; font-weight: 400; line-height: 1.6; color: #fff; }
.cf-exhcard__sub {
  font-size: 12px; color: #999; line-height: 1.7;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cf-exhcard__type { font-size: 12px; line-height: 2; color: #999; }

/* Section headings for the teamLab-style homepage card grids
   (matches the reference: 20px / 700 / white). */
.cf-section-title {
  font-size: 20px; font-weight: 700; line-height: 1.5;
  letter-spacing: 0; color: #fff;
}

/* Small gray blurb sitting beside section titles (kept clearly smaller
   than the 20px heading). */
.cf-section-desc {
  font-size: 13px; font-weight: 300; line-height: 1.8; letter-spacing: 0.01em;
  color: #9ca3af;
}

/* --- Legal pages (Privacy Policy / Terms of Use) ------------ */
/* Matches the product-detail info column so body copy sits on the same
   left-aligned measure and reads at the same size/leading. */
.cf-legal { padding: 0 clamp(24px, 5.6vw, 116px) clamp(4rem, 8vw, 7rem); }
.cf-legal__body { max-width: 1200px; margin-left: clamp(0px, 16%, 320px);}
.cf-legal__section + .cf-legal__section { margin-top: 2.5rem; }
.cf-legal__heading {
  font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.01em; color: #fff;
  margin-bottom: 0.75rem;
}
.cf-legal__text {
  font-size: 0.84375rem; font-weight: 300; line-height: 1.95; letter-spacing: 0.01em;
  color: #b6bac1; margin-top: 0.75rem;
}
@media (max-width: 767px) {
  .cf-legal__body { margin-left: 0; }
}

/* ============================================================
   Global media loading spinner: while an img/video is loading,
   JS puts .is-loading (static parents get relative positioning)
   or .is-loading-abs (positioned parents keep their own) on the
   parent — the spinner never changes an existing layout.
   ============================================================ */
.is-loading { position: relative; }
:is(.is-loading, .is-loading-abs) img,
:is(.is-loading, .is-loading-abs) video { opacity: 0; }
img, video { transition: opacity 0.5s ease; }
:is(.is-loading, .is-loading-abs)::after {
  content: ''; position: absolute; inset: 0;
  width: 24px; height: 24px; margin: auto;
  border: 2px solid #3d3d3d; border-left-color: #707070;
  border-radius: 50%; animation: cf-spin 1s linear infinite;
}
@keyframes cf-spin { 0% { transform: rotate(0deg); } to { transform: rotate(1turn); } }

/* Product gallery: keeps its own cursor affordance for the lightbox. */
.cf-art__gallery figure { position: relative; }
.cf-art__gallery figure img { cursor: zoom-in; }

/* --- Lightbox ------------------------------------------------ */
.cf-lb {
  position: fixed; inset: 0; z-index: 99990;
  width: 100%; height: 100%; background-color: #000;
  opacity: 0; transition: opacity 0.5s ease;
}
.cf-lb.is-open { opacity: 1; }
.cf-lb[hidden] { display: none; }
.cf-lb__stage {
  position: relative; width: 100%; height: 100%;
  padding: 60px 30px 50px; overflow: hidden;
}
.cf-lb__stage img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  cursor: zoom-in; opacity: 0; transition: opacity 0.5s ease, transform 0.5s ease;
}
.cf-lb.is-ready .cf-lb__stage img { opacity: 1; }
.cf-lb.is-slide .cf-lb__stage img { opacity: 0.25; }
/* Zoomed state: panable oversized image, teamLab-style. */
.cf-lb.is-zoom .cf-lb__stage { overflow: auto; scrollbar-width: none; padding-bottom: 20px; }
.cf-lb.is-zoom .cf-lb__stage::-webkit-scrollbar { display: none; }
.cf-lb.is-zoom .cf-lb__stage img {
  width: 200%; height: auto; max-height: none;
  object-fit: unset; cursor: zoom-out; margin: 0 auto;
}

/* Top-right control bar (zoom · counter · prev · next · close) */
.cf-lb__bar {
  position: absolute; top: 10px; right: 20px; z-index: 2;
  display: flex; gap: 20px; align-items: center; justify-content: flex-end;
}
.cf-lb__zoom { height: 24px; color: rgba(255,255,255,0.7); background: none; border: 0; padding: 0; cursor: pointer; }
.cf-lb__zoom svg { height: 24px; width: 24px; display: block; }
.cf-lb__num { font-size: 13px; color: #fff; font-variant-numeric: tabular-nums; }
.cf-lb__prev, .cf-lb__next {
  position: relative; width: 50px; height: 50px; padding: 0 12px 12px;
  background: none; border: 0; cursor: pointer;
}
.cf-lb__prev::before {
  content: ''; position: absolute; width: 12px; height: 12px;
  border-top: 2px solid rgba(255,255,255,0.7); border-left: 2px solid rgba(255,255,255,0.7);
  transform: rotate(-45deg) translateY(50%); transform-origin: 0 0;
}
.cf-lb__next::after {
  content: ''; position: absolute; width: 12px; height: 12px;
  border-top: 2px solid rgba(255,255,255,0.7); border-left: 2px solid rgba(255,255,255,0.7);
  transform: rotate(135deg) translateY(-50%); transform-origin: 0 0;
}
.cf-lb__close { position: relative; width: 50px; height: 50px; background: none; border: 0; cursor: pointer; }
.cf-lb__close::before, .cf-lb__close::after {
  content: ''; position: absolute; inset: 0; margin: auto;
  width: 2px; height: 20px; background-color: rgba(255,255,255,0.7);
}
.cf-lb__close::before { transform: rotate(-45deg); }
.cf-lb__close::after { transform: rotate(45deg); }
.cf-lb__prev:hover::before, .cf-lb__next:hover::after,
.cf-lb__zoom:hover, .cf-lb__close:hover::before, .cf-lb__close:hover::after {
  border-color: #fff; color: #fff; background-color: transparent;
}
.cf-lb__close:hover::before, .cf-lb__close:hover::after { background-color: #fff; }

@media (max-width: 740px) {
  .cf-lb__bar { top: 6px; right: 8px; gap: 8px; }
  .cf-lb__stage { padding: 48px 10px 40px; }
}

/* ============================================================
   Projects listing — teamLab /e/ style: filter tab bar + card grid
   ============================================================ */
.cf-eplist__tabrow {
  display: flex; align-items: flex-end;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.cf-eplist__tab {
  position: relative; display: inline-block;
  padding: 10px 25px 10px 5px; border: 0; background: none; cursor: pointer;
  font-size: 13px; letter-spacing: 0.02em; color: #fff;
  opacity: 0.55; transition: opacity 0.25s ease;
}
.cf-eplist__tab:hover { opacity: 0.85; }
.cf-eplist__tab.is-active { opacity: 1; font-weight: 700; }
.cf-eplist__tab.is-active::before {
  content: ''; position: absolute; left: 5px; right: 20px; bottom: -1px;
  height: 1px; background-color: #fff;
}
.cf-eplist__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2vw;
  margin-top: 40px; padding-bottom: 40px;
}
.cf-eplist__grid .is-hidden { display: none; }
@media (max-width: 740px) {
  .cf-eplist__tabrow { overflow-x: auto; scrollbar-width: none; }
  .cf-eplist__tabrow::-webkit-scrollbar { display: none; }
  .cf-eplist__tab { padding: 0 20px 0 40px; line-height: 60px; }
  .cf-eplist__tab.is-active::before { height: 3px; left: 20px; right: 20px; }
  .cf-eplist__grid { grid-template-columns: 1fr; gap: 30px; margin-top: 25px; }
  /* 单行省略在小屏会撑破网格列宽，改为两行截断。 */
  .cf-exhcard__sub {
    white-space: normal;
    display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; text-overflow: clip;
  }
}

/* ============================================================
   Project detail (cf_project) — teamLab exhibition page layout
   ============================================================ */
/* Page head mirrors the film detail header (.cf-art__intro): back link,
   title, one meta subline — no fullscreen media banner. */
/* Same gutter value as .cf-art__gallery so the media column below can land on
   the exact x of the gallery's inter-column split. */
.cf-pd { --art-gap: 10px; padding-top: clamp(6rem, 12vh, 8rem); }
.cf-pd__subline {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  margin-top: 0.875rem;
}
.cf-pd__status {
  padding: 5px 9px;
  font-size: 10px; font-weight: 700; line-height: 1; letter-spacing: 0.14em;
  color: #fff;
  border: 1px solid #fff;
}
.cf-pd__status.is-construction {
  color: #f59e0b;
  border-color: #f59e0b;
}
.cf-pd__region {
  font-size: 0.6875rem; font-weight: 400; letter-spacing: 0.15em;
  text-transform: uppercase; color: #8b8f96;
}

.cf-pd__intro { padding-block: clamp(3.5rem, 7vw, 6rem); }
/* Flush with .cf-art__shell so the intro lines up with the head above it. */
.cf-pd__intro-col { max-width: 46rem; }

/* Back link, then title, then the facts block stack in the left column (each
   its own row so the right-hand media can start level with the title); the
   banner video — or, without one, the overview shot — runs down the right.
   Two equal tracks + the gallery's own gutter: the media fills half the
   container AND its left edge lands on the same x as the gallery's column
   split below it. The wider text gutter is then an inset on the text column. */
.cf-pd__layout.has-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  column-gap: var(--art-gap);
  row-gap: 0;
}
.cf-pd__layout.has-media .cf-art__back { grid-column: 1; grid-row: 1; }
.cf-pd__layout.has-media .cf-pd__head { grid-column: 1; grid-row: 2; }
.cf-pd__layout.has-media .cf-pd__intro { grid-column: 1; grid-row: 3; }
.cf-pd__layout.has-media .cf-pd__media { grid-column: 2; grid-row: 2 / span 2; }
.cf-pd__layout.has-media .cf-pd__head,
.cf-pd__layout.has-media .cf-pd__intro {
  padding-right: calc(clamp(2rem, 5vw, 5rem) - var(--art-gap));
}
.cf-pd__media {
  position: sticky;
  top: clamp(88px, 12vh, 120px);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #0a0a0a;
}
.cf-pd__media video,
.cf-pd__media img {
  position: absolute; inset: 0;
  display: block; width: 100%; height: 100%; object-fit: cover;
}

@media (max-width: 900px) {
  .cf-pd__layout.has-media { grid-template-columns: minmax(0, 1fr); }
  .cf-pd__layout.has-media .cf-art__back,
  .cf-pd__layout.has-media .cf-pd__head,
  .cf-pd__layout.has-media .cf-pd__intro,
  .cf-pd__layout.has-media .cf-pd__media { grid-column: 1; grid-row: auto; }
  /* stacked: the gutter is a row gap again, not a right-hand inset. */
  .cf-pd__layout.has-media .cf-pd__head,
  .cf-pd__layout.has-media .cf-pd__intro { padding-right: 0; }
  /* relative, not static — it is the containing block for the media inside. */
  .cf-pd__media { position: relative; }
}

.cf-pd__facts {
  display: grid;
  gap: 0.875rem;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.cf-pd__fact {
  display: flex;
  gap: 0.75rem;
  font-size: 0.8125rem;
}
.cf-pd__fact-icon {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  color: #6b7280;
  align-self: flex-start;
  margin-top: 3px;
}
.cf-pd__fact-label {
  flex-shrink: 0;
  width: 7rem;
  color: #6b7280;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.cf-pd__fact-value {
  color: #e5e7eb;
  font-weight: 300;
  line-height: 1.7;
}
.cf-pd__intro-title {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.01em;
}

.cf-pd__intro-col p {
  font-size: 0.84375rem; font-weight: 300; line-height: 1.95; letter-spacing: 0.01em;
  color: #b6bac1;
}
.cf-pd__intro-col p + p { margin-top: 1rem; }

.cf-pd__cta {
  padding-block: clamp(2.25rem, 4.5vw, 3.75rem);
}
.cf-pd__cta .cf-art__cta {
  margin-top: 0;
  margin-left: clamp(0px, 14%, 320px);
}

.cf-pd__others {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: clamp(3rem, 6vw, 5rem);
}
.cf-pd__others-title {
  margin-bottom: 54px; font-size: 24px; font-weight: 700;
  letter-spacing: 0.05em; text-align: center; color: #fff;
}
.cf-pd__others-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2vw;
  margin-bottom: 2vw;
}
@media (max-width: 740px) {
  .cf-pd__others-title { margin-bottom: 40px; font-size: 20px; }
  .cf-pd__others-grid { grid-template-columns: 1fr; gap: 30px; margin-bottom: 45px; }
}

/* Blog — inherits the theme's cinematic black, fine rules and image-led cards. */
.cf-blog-shell { max-width: 1440px; margin-inline: auto; padding-inline: clamp(1rem, 4.6vw, 4rem); }
.cf-blog-heading { padding-bottom: 3.5rem; }
.cf-blog-label { border-top: 1px solid var(--color-border); padding-block: 1.5rem 2rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.cf-blog-label h2 { font-size: .75rem; font-weight: 500; letter-spacing: .12em; }
.cf-blog-label > span, .cf-blog-meta { color: #999; font-size: .6875rem; line-height: 1.7; letter-spacing: .08em; }
.cf-blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3.5rem 2rem; padding-bottom: 6rem; }
.cf-blog-card { min-width: 0; display: flex; flex-direction: column; }
.cf-blog-card .cf-blog-card__excerpt { margin-bottom: 1.5rem; }
.cf-blog-card .cf-blog-card__read { margin-top: auto; }
.cf-blog-card__image { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--color-border); }
.cf-blog-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cf-blog-card__placeholder { height: 100%; display: flex; align-items: center; justify-content: center; font-size: .75rem; letter-spacing: .12em; color: var(--color-fg); }
.cf-blog-meta { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-block: 1.25rem .75rem; }
.cf-blog-card h3 { font-size: 1.125rem; font-weight: 500; line-height: 1.55; }
.cf-blog-card__excerpt { font-size: .8125rem; line-height: 1.85; color: #999; margin-top: .75rem; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.cf-blog-card__read { display: flex; justify-content: space-between; align-items: center; margin-top: 1.5rem; border-top: 1px solid var(--color-border); padding-block: 1rem; font-size: .6875rem; letter-spacing: .08em; }
.cf-blog-card a:focus-visible, .cf-blog-article a:focus-visible, .cf-blog-pagination a:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 5px; }
.cf-blog-pagination { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; padding-bottom: 5rem; }
.cf-blog-pagination .page-numbers { border: 1px solid var(--color-border); padding: .75rem 1rem; font-size: .8125rem; }
.cf-blog-pagination .current { background: var(--color-fg); color: var(--color-bg); }
.cf-blog-empty { padding-block: 2rem 6rem; color: #999; line-height: 1.8; }
.cf-blog-article { padding-top: 8rem; }
.cf-blog-article__head { padding-bottom: 2.75rem; }
.cf-blog-article__head .cf-blog-meta { margin-top: 2.5rem; }
.cf-blog-article__head h1 { max-width: 1000px; font-size: clamp(1.8rem, 4vw, 3.5rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.2; overflow-wrap: anywhere; }
.cf-blog-article__intro { max-width: 740px; margin-top: 1.5rem; font-size: 1rem; line-height: 1.9; color: #aaa; font-weight: 300; }
.cf-blog-article__cover img { width: 100%; height: auto; max-height: 640px; object-fit: cover; aspect-ratio: 2 / 1; }
.cf-blog-article__body { max-width: 792px; padding: 3.5rem 1.5rem 4rem; margin-inline: auto; font-size: 1rem; line-height: 1.95; font-weight: 300; color: #bbb; overflow-wrap: anywhere; }
.cf-blog-article__body h2 { color: var(--color-fg); font-size: 1.5rem; font-weight: 500; line-height: 1.5; margin-block: 2.5rem 1rem; }
.cf-blog-article__body h3 { color: var(--color-fg); font-size: 1.125rem; font-weight: 500; margin-block: 2rem 1rem; }
.cf-blog-article__body p, .cf-blog-article__body ul, .cf-blog-article__body ol, .cf-blog-article__body figure { margin-bottom: 1.5rem; }
.cf-blog-article__body ul { list-style: disc; padding-left: 1.5rem; }
.cf-blog-article__body ol { list-style: decimal; padding-left: 1.5rem; }
.cf-blog-article__body a { text-decoration: underline; text-underline-offset: .25em; }
.cf-blog-article__body blockquote { border-left: 2px solid var(--color-fg); padding-left: 1.5rem; margin-block: 2rem; }
.cf-blog-article__body figcaption { color: #999; font-size: .75rem; line-height: 1.7; margin-top: .75rem; }
.cf-blog-article__body pre { overflow-x: auto; padding: 1rem; border: 1px solid var(--color-border); }
.cf-blog-article__body .wp-block-table { overflow-x: auto; }
.cf-blog-article__foot { padding-bottom: 5rem; }
.cf-blog-neighbors { border-top: 1px solid var(--color-border); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; padding-block: 2rem 3rem; }
.cf-blog-neighbors a { display: flex; flex-direction: column; gap: .75rem; }
.cf-blog-neighbors span { color: #999; font-size: .6875rem; letter-spacing: .08em; }
.cf-blog-neighbors strong { font-size: 1rem; font-weight: 400; line-height: 1.7; }
@media (hover: hover) {
  .cf-blog-card__image:hover img { transform: scale(1.04); }
  .cf-blog-card__read:hover, .cf-blog-card h3 a:hover, .cf-blog-neighbors a:hover { color: var(--color-accent); }
}
@media (min-width: 769px) and (max-width: 1200px) {
  body .header-nav ul.menu { gap: 1rem; }
  body .header-nav a { font-size: .75rem; }
}
@media (min-width: 769px) and (max-width: 959px) {
  body .header-nav { display: none; }
  body .hamburger { display: block; }
}
@media (max-width: 1023px) { .cf-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) {
  .cf-blog-grid { grid-template-columns: 1fr; gap: 2.5rem; padding-bottom: 3rem; }
  .cf-blog-heading { padding-bottom: 2rem; }
  .cf-blog-article { padding-top: 7rem; }
  .cf-blog-article__cover img { aspect-ratio: 4 / 3; }
  .cf-blog-article__body { padding-top: 2rem; }
  .cf-blog-neighbors { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .cf-blog-card__image img { transition: none; } }

