/* ========================================
   BOYAN PENG - PHOTOGRAPHY PORTFOLIO
   Version 2.0 - Full Featured
   ======================================== */

/* ===== CSS Custom Properties ===== */
:root {
  --bg: #f5f1ea;
  --bg-warm: #faf8f5;
  --bg-cool: #f0ede6;
  --bg-card: rgba(255, 255, 255, 0.5);
  --fg: #161616;
  --fg-soft: #2a2825;
  --muted: #8a8479;
  --muted-light: #a9a49b;
  --accent: #b8843b;
  --accent-light: #d4a55a;
  --accent-dark: #96692d;
  --border-subtle: rgba(0, 0, 0, 0.06);
  --border-hover: rgba(184, 132, 59, 0.25);
  --header-bg: rgba(245, 241, 234, 0.85);
  --overlay-bg: rgba(0, 0, 0, 0.85);
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;
  --space-xs: 0.25rem; --space-sm: 0.5rem; --space-md: 1rem;
  --space-lg: 2rem; --space-xl: 4rem; --space-2xl: 6rem;
  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 16px;
  --radius-xl: 24px; --radius-full: 999px;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.05);
  --shadow-soft: 0 18px 40px rgba(0,0,0,0.08);
  --shadow-card: 0 24px 55px rgba(0,0,0,0.12);
  --shadow-hover: 0 32px 64px rgba(0,0,0,0.14);
  --shadow-glow: 0 0 40px rgba(184,132,59,0.15);
  --ease-out: cubic-bezier(0.25,0.9,0.35,1);
  --ease-spring: cubic-bezier(0.33,1,0.68,1);
  --duration-fast: 180ms; --duration-med: 280ms; --duration-slow: 420ms;
}

/* Dark Theme */
html.dark {
  --bg: #1a1a1a; --bg-warm: #1f1f1f; --bg-cool: #151515;
  --bg-card: rgba(40,40,40,0.6);
  --fg: #e8e4de; --fg-soft: #d0ccc5;
  --muted: #8a8479; --muted-light: #6a655c;
  --border-subtle: rgba(255,255,255,0.08);
  --border-hover: rgba(184,132,59,0.35);
  --header-bg: rgba(26,26,26,0.9);
  --shadow-soft: 0 18px 40px rgba(0,0,0,0.3);
  --shadow-card: 0 24px 55px rgba(0,0,0,0.4);
}

/* Reset */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-sans); background: var(--bg); color: var(--fg);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
  background: 
    linear-gradient(165deg, var(--bg-warm) 0%, var(--bg) 50%, var(--bg-cool) 100%);
  background-attachment: scroll; min-height: 100vh;
  transition: background 0.4s ease, color 0.4s ease;
}

/* GPU 加速优化 */
.hero-slides,
.hero-slide img,
.hero-arrow,
.category-row,
.photo-item,
.portrait-item,
.lightbox-img {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* 减少重绘 */
.hero-text,
.hero-meta,
.photo-overlay,
.portrait-overlay {
  contain: layout style;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; padding: 0; }

::selection { background: rgba(184,132,59,0.2); color: var(--fg); }
::-webkit-scrollbar { width: 10px; background-color: transparent; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg,#d1cdc7,#c4bfb8); border-radius: var(--radius-full); border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg,var(--accent-light),var(--accent)); }
html.dark ::-webkit-scrollbar-thumb { background: linear-gradient(180deg,#4a4a4a,#3a3a3a); }

/* Loader */
.loader { position: fixed; inset: 0; z-index: 10000; background: var(--bg); display: flex; align-items: center; justify-content: center; flex-direction: column; transition: opacity 0.6s ease, visibility 0.6s ease; }
.loader--hidden { opacity: 0; visibility: hidden; }
.loader-content { text-align: center; display: flex; flex-direction: column; align-items: center; }

.loader-logo { 
  font-family: var(--font-serif); 
  font-size: 3.5rem; 
  font-style: italic; 
  font-weight: 400;
  color: var(--fg); 
  margin-bottom: 2rem; 
  opacity: 0;
  transform: translateY(10px);
  animation: loaderLogoIn 0.6s var(--ease-out) 0.2s forwards;
}

.loader-logo span {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px) rotate(-2deg);
}

.loader-logo span:nth-child(1) { animation: letterIn 0.5s var(--ease-spring) 0.3s forwards; }
.loader-logo span:nth-child(2) { animation: letterIn 0.5s var(--ease-spring) 0.38s forwards; }
.loader-logo span:nth-child(3) { animation: letterIn 0.5s var(--ease-spring) 0.46s forwards; }
.loader-logo span:nth-child(4) { animation: letterIn 0.5s var(--ease-spring) 0.54s forwards; }
.loader-logo span:nth-child(5) { animation: letterIn 0.5s var(--ease-spring) 0.62s forwards; }
.loader-logo span:nth-child(6) { animation: letterIn 0.5s var(--ease-spring) 0.70s forwards; }
.loader-logo span:nth-child(7) { animation: letterIn 0.5s var(--ease-spring) 0.78s forwards; }

@keyframes letterIn {
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

@keyframes loaderLogoIn {
  to { opacity: 1; transform: translateY(0); }
}

.loader-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: loaderFadeIn 0.5s ease 0.9s forwards;
}

.loader-line::before,
.loader-line::after {
  content: "";
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--muted-light), transparent);
}

.loader-tagline {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

@keyframes loaderFadeIn {
  to { opacity: 1; }
}

.loader-bar { 
  width: 200px; 
  height: 4px; 
  background: rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-full); 
  overflow: hidden; 
  opacity: 0;
  animation: loaderFadeIn 0.4s ease 1s forwards;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

html.dark .loader-bar {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.loader-progress { 
  height: 100%; 
  width: 0; 
  background: linear-gradient(90deg, var(--accent-dark), var(--accent), var(--accent-light)); 
  border-radius: var(--radius-full); 
  animation: loaderProgress 1.2s var(--ease-out) 1.1s forwards;
  box-shadow: 0 0 12px rgba(184, 132, 59, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  position: relative;
}

.loader-progress::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, transparent 60%);
  border-radius: inherit;
}

@keyframes loaderProgress { to { width: 100%; } }

/* Skip Link */
.skip-link { position: absolute; top: -100%; left: 50%; transform: translateX(-50%); background: var(--fg); color: var(--bg); padding: var(--space-sm) var(--space-md); border-radius: var(--radius-md); z-index: 9999; transition: top var(--duration-fast); }
.skip-link:focus { top: var(--space-md); }

/* Noise grain overlay — blend mode removed for Chrome perf */
body::before { content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' 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; opacity: 0.025; }
html.dark body::before { opacity: 0.04; }

/* Linen texture removed for Chrome perf — visual effect merged into body bg */

/* Container */
.container { width: min(1200px, 100% - 3rem); margin: 0 auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: linear-gradient(180deg, rgba(245, 241, 234, 0.9) 0%, rgba(245, 241, 234, 0.8) 100%); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(255, 255, 255, 0.5); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04); transition: background var(--duration-slow) ease, box-shadow var(--duration-slow) ease; }
.site-header.scrolled { box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06), 0 1px 0 rgba(0, 0, 0, 0.04); }

html.dark .site-header { background: linear-gradient(180deg, rgba(26, 26, 26, 0.9) 0%, rgba(26, 26, 26, 0.8) 100%); border-bottom: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02); }
html.dark .site-header.scrolled { box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3), 0 1px 0 rgba(255, 255, 255, 0.02); }
.nav-container { position: relative; display: flex; align-items: center; justify-content: space-between; padding-block: 0.85rem; }

.logo a { font-size: 0.85rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; padding: 0.35rem 1rem; border-radius: var(--radius-full); border: 1px solid var(--border-subtle); background: var(--bg-card); box-shadow: var(--shadow-xs); transition: background var(--duration-fast), border-color var(--duration-fast), transform var(--duration-fast); }
.logo a:hover { border-color: var(--border-hover); transform: translateY(-1px); }

.nav-desktop { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 0.25rem; font-size: 0.88rem; }
.nav-desktop a { color: var(--muted); position: relative; padding: 0.5rem 1rem; border-radius: var(--radius-full); transition: color var(--duration-med) ease, background var(--duration-fast); }
.nav-desktop a::after { content: ""; position: absolute; left: 50%; bottom: -2px; width: 0; height: 1.5px; background: linear-gradient(90deg, transparent, var(--accent), transparent); border-radius: var(--radius-full); transform: translateX(-50%); transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease; opacity: 0; }
.nav-desktop a.active { color: var(--fg); }
.nav-desktop a.active::after { width: 24px; opacity: 1; }
.nav-desktop a:hover { color: var(--fg); background: var(--border-subtle); }
.nav-desktop a:hover:not(.active)::after { width: 14px; opacity: 0.4; }

.nav-controls { display: flex; align-items: center; gap: 0.5rem; }

.theme-toggle { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-full); color: var(--muted); transition: background var(--duration-fast), color var(--duration-fast); }
.theme-toggle:hover { background: var(--border-subtle); color: var(--fg); }
.theme-toggle .icon-moon { display: none; }
html.dark .theme-toggle .icon-sun { display: none; }
html.dark .theme-toggle .icon-moon { display: block; }

.nav-toggle { display: none; width: 40px; height: 40px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border-radius: var(--radius-md); transition: background var(--duration-fast); }
.nav-toggle:hover { background: var(--border-subtle); }
.hamburger-line { width: 20px; height: 2px; background: var(--fg); border-radius: var(--radius-full); transition: transform var(--duration-med) var(--ease-spring), opacity var(--duration-fast); }
.nav-toggle.is-active .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active .hamburger-line:nth-child(2) { opacity: 0; }
.nav-toggle.is-active .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border-subtle); padding: 1rem 0; transform: translateY(-10px); opacity: 0; visibility: hidden; transition: transform var(--duration-med) var(--ease-spring), opacity var(--duration-med), visibility var(--duration-med); }
.nav-mobile.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
.nav-mobile nav { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.nav-mobile a { font-size: 1.1rem; padding: 0.75rem 1.5rem; border-radius: var(--radius-md); transition: background var(--duration-fast), color var(--duration-fast); position: relative; }
.nav-mobile a:hover { background: var(--border-subtle); }
.nav-mobile a.active { background: rgba(184, 132, 59, 0.06); color: var(--fg); }
.nav-mobile a.active::before { content: ""; position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); width: 3px; height: 16px; background: var(--accent); border-radius: var(--radius-full); opacity: 0.7; }

/* Image Placeholder */
/* Image Placeholder with shimmer */
.img-placeholder { 
  position: absolute; 
  inset: 0; 
  background: linear-gradient(135deg, #e0dcd5, #d5d0c8); 
  z-index: 0;
  overflow: hidden;
}
.img-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
  animation: shimmer 1.5s infinite;
  transform: translateX(-100%);
}
@keyframes shimmer {
  100% { transform: translateX(100%); }
}
html.dark .img-placeholder { background: linear-gradient(135deg, #2a2a2a, #1f1f1f); }
html.dark .img-placeholder::after { background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.08) 50%, transparent 100%); }
.hero-slide img, .category-row img { position: relative; z-index: 1; opacity: 0; transition: opacity 0.5s ease; }
.hero-slide img.loaded, .category-row img.loaded { opacity: 1; }

/* series-photos-grid 图片默认可见，不需要淡入效果 */
.series-photos-grid .photo-item img { position: relative; z-index: 1; opacity: 1; }
/* Hide placeholder shimmer in series grids — images are always visible */
.series-photos-grid .img-placeholder,
.portrait-grid .img-placeholder { display: none; }

/* Hero Slider */
.hero-slider { position: relative; width: 100%; height: clamp(640px, 96vh, 1100px); min-height: 600px; overflow: hidden; outline: none; box-shadow: inset 0 -1px 0 var(--border-subtle); }
.hero-slider:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* Hero 左右箭头 */
.hero-arrow {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 10%;
  min-width: 60px;
  max-width: 120px;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.hero-arrow--prev { left: 0; padding-left: 1rem; }
.hero-arrow--next { right: 0; padding-right: 1rem; }

.hero-arrow svg {
  width: 44px;
  height: 44px;
  color: rgba(255, 255, 255, 0.5);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
  transition: color 0.3s ease, transform 0.3s ease;
}

.hero-arrow:hover svg {
  color: rgba(255, 255, 255, 0.95);
}
.hero-arrow--prev:hover svg { transform: translateX(-3px); }
.hero-arrow--next:hover svg { transform: translateX(3px); }

.hero-slider:hover .hero-arrow { opacity: 1; }

.hero-slides { position: relative; width: 100%; height: 100%; display: flex; transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1); will-change: transform; }
.hero-slide { position: relative; flex: 0 0 100%; width: 100%; min-width: 100%; height: 100%; overflow: hidden; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(1.08); transition: opacity 0.6s ease, transform 10s cubic-bezier(0.2, 0, 0.1, 1); filter: brightness(0.95); }
.hero-slide.is-active img.loaded { transform: scale(1); filter: brightness(1); }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 35%, transparent 70%), linear-gradient(to right, rgba(0,0,0,0.1) 0%, transparent 30%); pointer-events: none; z-index: 1; opacity: 0; transition: opacity 1.2s var(--ease-out); }
.hero-slide.is-active::after { opacity: 1; }

.hero-text { position: absolute; left: 10%; bottom: 14%; width: 520px; max-width: 75%; z-index: 2; color: #fff; opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease-out) 0.35s, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.35s, filter 1s ease 0.35s; filter: blur(4px); }
.hero-slide.is-active .hero-text { opacity: 1; transform: translateY(0); filter: blur(0); }
.hero-kicker { display: inline-block; text-transform: uppercase; letter-spacing: 0.28em; font-size: 0.72rem; font-weight: 500; color: rgba(255,255,255,0.75); margin: 0 0 0.75rem; padding: 0.35rem 0.9rem; background: rgba(255,255,255,0.1); backdrop-filter: blur(8px); border-radius: var(--radius-full); border: 1px solid rgba(255,255,255,0.15); }
.hero-title { margin: 0; font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: clamp(1.5rem, 3.2vw, 2rem); line-height: 1.3; text-shadow: 0 2px 20px rgba(0,0,0,0.4); }

.hero-meta { position: absolute; right: 6%; top: 12%; display: inline-flex; flex-direction: column; align-items: flex-end; gap: 0.2rem; padding: 0.6rem 0.9rem; border-radius: var(--radius-md); background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); backdrop-filter: blur(12px); font-size: 0.74rem; opacity: 0; transform: translateY(20px); transition: opacity 0.9s var(--ease-out) 0.5s, transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s, filter 0.9s ease 0.5s; filter: blur(3px); }
.hero-slide.is-active .hero-meta { opacity: 1; transform: translateY(0); filter: blur(0); }
.hero-meta-title { letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.7rem; font-weight: 500; color: rgba(255,255,255,0.9); }
.hero-meta-line { font-size: 0.72rem; color: rgba(255,255,255,0.6); max-width: 14rem; line-height: 1.4; }

.hero-pagination { position: absolute; bottom: 3rem; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; z-index: 10; }
@keyframes timerShrink { 0% { width: 48px; } 100% { width: 6px; } }
.hero-dot { width: 6px; height: 6px; border-radius: var(--radius-full); background-color: rgba(255,255,255,0.3); cursor: pointer; position: relative; transition: background-color 0.3s ease; padding: 0; border: none; outline: none; }
.hero-dot::before { content: ""; position: absolute; inset: -12px; z-index: 1; }
.hero-dot.active { background-color: #fff; animation: timerShrink 6000ms linear forwards; }
.hero-dot:hover { background-color: rgba(255,255,255,0.8); }

.hero-caption { background: linear-gradient(180deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.95) 100%); border-top: 1px solid var(--border-subtle); padding: 2.8rem 0; text-align: center; animation: captionFadeUp 700ms ease-out 420ms both; }
html.dark .hero-caption { background: linear-gradient(180deg, rgba(26,26,26,0.7) 0%, rgba(26,26,26,0.95) 100%); }
@keyframes captionFadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.hero-caption-text { margin: 0; display: inline-flex; align-items: center; gap: 2rem; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.hero-caption-text::before, .hero-caption-text::after { content: ""; height: 1px; width: 100px; background: linear-gradient(90deg, transparent, var(--border-subtle), transparent); }

/* Categories */
.categories { padding: var(--space-2xl) 0; border-top: 1px solid var(--border-subtle); background: linear-gradient(180deg, rgba(255,255,255,0.6) 0%, transparent 100%); position: relative; }
html.dark .categories { background: linear-gradient(180deg, rgba(40,40,40,0.3) 0%, transparent 100%); }
.categories::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 400px; background: radial-gradient(ellipse at 50% 0%, rgba(184,132,59,0.04) 0%, transparent 70%); pointer-events: none; }

.section-header { max-width: 720px; margin: 0 auto 3.5rem; text-align: center; position: relative; }
.section-kicker { display: inline-block; margin: 0 0 0.8rem; padding: 0.4rem 1rem; text-transform: uppercase; letter-spacing: 0.28em; font-size: 0.72rem; font-weight: 500; color: var(--accent); background: rgba(184,132,59,0.08); border-radius: var(--radius-full); }
.section-title { margin: 0 0 0.6rem; font-family: var(--font-serif); font-style: italic; font-size: clamp(1.5rem, 3vw, 1.85rem); color: var(--fg-soft); }
.section-subtitle { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.7; }

.category-vertical-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }

.category-row { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-card); border: 1px solid var(--border-subtle); box-shadow: var(--shadow-soft); transition: transform var(--duration-slow) var(--ease-spring), box-shadow var(--duration-slow) ease, border-color var(--duration-med) ease; }
.category-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.category-row:hover { box-shadow: var(--shadow-hover), var(--shadow-glow); border-color: var(--border-hover); transform: translateY(-6px); }

.category-img-wrap { background-color: #eae8e3; position: relative; width: 100%; border-radius: inherit; overflow: hidden; -webkit-mask-image: -webkit-radial-gradient(white, black); transform: translate3d(0,0,0); transition: transform 0.6s var(--ease-spring); }
html.dark .category-img-wrap { background-color: #2a2a2a; }
.category-img-wrap::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.08) 30%, rgba(0,0,0,0.38) 100%); z-index: 1; opacity: 0.9; pointer-events: none; }
.category-row:hover .category-img-wrap::before { opacity: 1; }
.category-img-wrap::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 120% 100% at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.08) 35%, rgba(255,255,255,0.02) 60%, transparent 80%); z-index: 2; opacity: 0; transition: opacity 0.5s ease; pointer-events: none; }

.category-row img { width: 100%; display: block; object-fit: cover; aspect-ratio: 4 / 5; filter: saturate(0.96); transition: transform 0.7s var(--ease-spring), filter var(--duration-slow) ease, opacity 0.5s ease; }
.category-row:hover .category-img-wrap { transform: scale(1.01); }
.category-row:hover img { transform: scale(1.06); filter: saturate(1.02); }
.category-row:hover .category-img-wrap::after { opacity: 1; }

.category-row-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; color: #fff; z-index: 3; }
.category-label-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; min-height: 3rem; }
.category-index { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.7; padding: 0.25rem 0.5rem; background: rgba(255,255,255,0.1); border-radius: var(--radius-sm); }
.category-name-en { font-size: 1.1rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; text-align: right; max-width: 16ch; line-height: 1.25; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.category-label-bottom { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding-top: 0.4rem; border-top: 1px solid rgba(255,255,255,0.15); }
.category-name-zh { font-size: 0.92rem; opacity: 0.85; }
.category-cta { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.9; transition: opacity var(--duration-fast); }
.category-cta::after { content: "→"; font-size: 0.9rem; transition: transform var(--duration-med) var(--ease-spring); }
.category-row:hover .category-cta { opacity: 1; }
.category-row:hover .category-cta::after { transform: translateX(5px); }

/* Section Transition Divider */
.section-transition {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem 0;
  max-width: 280px;
  margin: 0 auto;
}

.section-transition-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.3;
}

.section-transition-icon {
  color: var(--accent);
  opacity: 0.4;
  flex-shrink: 0;
}

/* Sections */
.section { padding: 4rem 0; }
.section h2 { font-size: 1rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; margin: 0 0 1.5rem; color: var(--fg-soft); }

.section-about { border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); background: linear-gradient(180deg, transparent 0%, var(--bg-card) 50%, transparent 100%); }
.about-layout { 
  max-width: 900px; 
  display: grid;
  grid-template-columns: 0.38fr 0.62fr;
  gap: 3.5rem;
  align-items: center;
}

/* About Portrait */
.about-portrait {
  position: relative;
}

.about-portrait-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(184, 132, 59, 0.1);
}

.about-portrait-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.about-portrait-frame::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  z-index: 2;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.2) 0%, transparent 100%);
  pointer-events: none;
}

.about-portrait-frame img {
  width: 100%;
  display: block;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: saturate(0.9);
  transition: transform 0.8s var(--ease-spring), filter 0.5s ease;
}

.about-portrait:hover .about-portrait-frame img {
  transform: scale(1.03);
  filter: saturate(1);
}

.about-portrait-caption {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted-light);
  font-style: italic;
}

html.dark .about-portrait-frame {
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(184, 132, 59, 0.15);
}

.about-text { position: relative; padding-left: 1.5rem; }
.about-text::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, var(--accent), transparent); border-radius: var(--radius-full); }
.about-en, .about-zh { line-height: 1.8; margin: 0 0 1rem; font-size: 0.95rem; color: var(--fg-soft); }
.about-zh { color: var(--muted); font-size: 0.9rem; }

.section-contact { padding-bottom: var(--space-2xl); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.contact-block { padding: 1.5rem; background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.4) 100%); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: var(--radius-md); border: 1px solid rgba(255, 255, 255, 0.6); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.5); transition: background var(--duration-med), border-color var(--duration-med), box-shadow var(--duration-med), transform var(--duration-med); }
.contact-block:hover { border-color: var(--border-hover); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.6); transform: translateY(-2px); }

html.dark .contact-block { background: linear-gradient(135deg, rgba(50, 50, 50, 0.5) 0%, rgba(40, 40, 40, 0.4) 100%); border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05); }
html.dark .contact-block:hover { border-color: var(--border-hover); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.contact-block h3 { margin: 0 0 0.5rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.contact-block p, .contact-block li { margin: 0.15rem 0; font-size: 0.9rem; color: var(--fg-soft); }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list a { color: var(--fg-soft); position: relative; transition: color var(--duration-fast); }
.contact-list a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px; background: var(--accent); transition: width var(--duration-med) var(--ease-spring); }
.contact-list a:hover { color: var(--accent); }
.contact-list a:hover::after { width: 100%; }

.contact-cta-wrap { margin-top: 3rem; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.contact-cta { display: inline-flex; align-items: center; gap: 0.5rem; padding: 1rem 1.6rem; background: linear-gradient(135deg, var(--fg) 0%, var(--fg-soft) 100%); color: var(--bg); letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.8rem; font-weight: 500; border-radius: var(--radius-full); transition: transform var(--duration-med) var(--ease-spring), box-shadow var(--duration-med); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.contact-cta:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.2); }
.contact-cta::after { content: "→"; font-size: 1rem; transition: transform var(--duration-med) var(--ease-spring); }
.contact-cta:hover::after { transform: translateX(4px); }
.contact-cta-note { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* Footer */
/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 90;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--muted);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s var(--ease-spring);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  color: var(--accent);
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.back-to-top:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
  }
}

.site-footer { border-top: 1px solid var(--border-subtle); padding: 2.5rem 0 2rem; font-size: 0.78rem; color: var(--muted); text-align: center; background: linear-gradient(180deg, transparent, var(--bg-card)); }

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-tagline {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--fg-soft);
  letter-spacing: 0.02em;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  color: var(--muted);
  border: 1px solid var(--border-subtle);
  transition: color var(--duration-fast), border-color var(--duration-fast), transform var(--duration-fast), background var(--duration-fast);
}

.footer-social a:hover {
  color: var(--accent);
  border-color: var(--border-hover);
  background: rgba(184, 132, 59, 0.05);
  transform: translateY(-2px);
}

/* 小红书 icon */
.xhs-icon {
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.footer-xhs:hover .xhs-icon {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted-light);
}

/* Breadcrumb */
.breadcrumb { padding: 0; }
.breadcrumb ol { display: flex; align-items: center; gap: 0.5rem; list-style: none; margin: 0; padding: 0; font-size: 0.78rem; color: var(--muted); }
.breadcrumb li { display: flex; align-items: center; gap: 0.5rem; }
.breadcrumb li:not(:last-child)::after { content: "·"; color: var(--muted-light); font-weight: 300; }
.breadcrumb a { color: var(--muted); transition: color var(--duration-fast); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current="page"] { color: var(--fg-soft); font-weight: 500; }

/* Series Page Header */
.series-wrapper { padding: 0 0 4rem; }

/* Travel 页面背景纹理 - 地图/旅行质感 */
.series-wrapper--travel {
  position: relative;
}

.series-wrapper--travel::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.25;
  background-image: 
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(74, 144, 164, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(184, 132, 59, 0.05) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-size: 100% 100%, 100% 100%, 200px 200px;
}

.series-hero {
  position: relative;
  padding: 4rem 0 3rem;
  margin-bottom: 2.5rem;
  background: linear-gradient(180deg, var(--bg-card) 0%, transparent 100%);
  border-bottom: 1px solid var(--border-subtle);
}

.series-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(184, 132, 59, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.series-hero .container {
  position: relative;
}

.series-hero .breadcrumb {
  margin-bottom: 2rem;
}

.series-header { 
  max-width: 680px; 
  margin: 0 auto; 
  text-align: center; 
  position: relative;
}

.series-kicker { 
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase; 
  letter-spacing: 0.22em; 
  font-size: 0.7rem; 
  font-weight: 500; 
  color: var(--accent); 
  margin-bottom: 1.25rem; 
  padding: 0.4rem 1rem; 
  background: linear-gradient(135deg, rgba(184,132,59,0.1) 0%, rgba(184,132,59,0.05) 100%);
  border: 1px solid rgba(184,132,59,0.15);
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}

.series-title { 
  margin: 0 0 1.25rem; 
  font-family: var(--font-serif); 
  font-style: italic; 
  font-weight: 400; 
  font-size: clamp(1.5rem, 3.5vw, 2rem); 
  line-height: 1.3; 
  color: var(--fg);
}

.series-subtitle-en, .series-subtitle-zh { 
  margin: 0 0 0.6rem; 
  font-size: 0.92rem; 
  line-height: 1.75; 
  color: var(--fg-soft);
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.series-subtitle-zh { 
  color: var(--muted); 
  font-size: 0.88rem; 
  margin-bottom: 0;
}

/* ===== Portrait Page ===== */

/* Portrait 页面背景纹理 - 柔和人像质感 */
.series-wrapper--portrait {
  position: relative;
}

.series-wrapper--portrait::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.3;
  background-image: 
    radial-gradient(ellipse 100% 80% at 50% 0%, rgba(184, 132, 59, 0.06) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-size: 100% 100%, 180px 180px;
}

/* Portrait Series Header - 更艺术的排版 */
.series-wrapper--portrait .series-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.series-wrapper--portrait .series-kicker {
  letter-spacing: 0.25em;
}

.series-wrapper--portrait .series-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-style: italic;
  letter-spacing: -0.01em;
}

.series-wrapper--portrait .series-subtitle-en,
.series-wrapper--portrait .series-subtitle-zh {
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* Featured Hero Image */
.portrait-hero-image {
  max-width: 1100px;
  margin: 0 auto 4rem;
  padding: 0 2rem;
}

.portrait-featured {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: 
    0 25px 50px -12px rgba(0,0,0,0.25),
    0 0 0 1px rgba(184, 132, 59, 0.1);
}

.portrait-featured::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

/* 艺术装饰线 */
.portrait-featured::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  z-index: 3;
  opacity: 0.8;
}

.portrait-featured img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 11438 / 6629;
  object-fit: cover;
  transition: transform 0.8s var(--ease-spring), filter 0.5s ease;
}

.portrait-featured:hover img {
  transform: scale(1.015);
}

.portrait-featured-meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.5rem 2.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
  color: #fff;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.portrait-featured:hover .portrait-featured-meta {
  opacity: 1;
}

.portrait-featured .portrait-location {
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--accent-light);
  background: rgba(184, 132, 59, 0.15);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(184, 132, 59, 0.25);
}

.portrait-featured .portrait-gear {
  opacity: 0.7;
  font-size: 0.72rem;
  font-style: italic;
  letter-spacing: 0.03em;
}

.portrait-featured .photo-zoom-hint {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 3;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.3s ease, transform 0.3s var(--ease-spring);
}

.portrait-featured:hover .photo-zoom-hint {
  opacity: 1;
  transform: scale(1);
}

/* 分隔装饰 */
.portrait-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 200px;
  margin: 0 auto 2rem;
  color: var(--accent);
  opacity: 0.5;
}

.portrait-divider::before,
.portrait-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
}

.portrait-divider svg {
  width: 16px;
  height: 16px;
}

/* 列数切换器 */
.grid-controls {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.column-switcher {
  position: relative;
  display: flex;
  gap: 0.25rem;
  padding: 0.3rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.col-btn {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  color: var(--muted);
  transition: color 0.3s ease;
}

.col-btn svg {
  width: 18px;
  height: 18px;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.col-btn:hover {
  color: var(--fg-soft);
}

.col-btn:hover svg {
  opacity: 0.8;
}

.col-btn.is-active {
  color: var(--accent);
}

.col-btn.is-active svg {
  opacity: 1;
}

.col-slider {
  position: absolute;
  top: 0.3rem;
  left: 0.3rem;
  height: 32px;
  width: 40px;
  background: linear-gradient(135deg, rgba(184, 132, 59, 0.15), rgba(184, 132, 59, 0.08));
  border: 1px solid rgba(184, 132, 59, 0.25);
  border-radius: var(--radius-full);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  will-change: transform;
}

/* 响应式隐藏 */
@media (max-width: 768px) {
  .grid-controls { display: none; }
}

/* Portrait Grid - 方案A：宽松两列 */
.portrait-grid {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2.5rem;
  position: relative;
  min-height: 200px;
}

.portrait-grid:not(.is-ready) .portrait-item {
  opacity: 0;
  transform: translateY(20px);
}

.portrait-grid.is-ready .portrait-item {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.5s var(--ease-spring), box-shadow 0.3s ease;
}

.portrait-item {
  position: absolute;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--bg-card);
  opacity: 0;
  /* 艺术感阴影 */
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.portrait-item:hover {
  box-shadow: 
    0 20px 40px -12px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(184, 132, 59, 0.15),
    0 0 30px rgba(184, 132, 59, 0.08);
}

.portrait-img-wrap {
  position: relative;
  background: var(--bg-cool);
  overflow: hidden;
}

.portrait-img-wrap img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.7s var(--ease-spring);
}

.portrait-item:hover .portrait-img-wrap img {
  transform: scale(1.03);
}

.portrait-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
  color: #fff;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s var(--ease-spring);
}

.portrait-item:hover .portrait-overlay {
  opacity: 1;
  transform: translateY(0);
}

.portrait-overlay .portrait-location {
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.65rem;
  color: var(--accent-light);
  background: rgba(184, 132, 59, 0.15);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(184, 132, 59, 0.25);
  width: fit-content;
}

.portrait-overlay .portrait-gear {
  opacity: 0.7;
  font-size: 0.68rem;
  font-style: italic;
  letter-spacing: 0.02em;
}

/* Portrait Responsive */
@media (max-width: 768px) {
  .series-wrapper--portrait .series-header { text-align: left; }
  .portrait-hero-image { padding: 0 1rem; margin-bottom: 2.5rem; }
  .portrait-featured { border-radius: var(--radius-md); }
  .portrait-featured img { aspect-ratio: 16 / 9; }
  .portrait-featured::after { display: none; }
  .portrait-featured-meta { 
    flex-direction: column; 
    align-items: flex-start; 
    gap: 0.5rem; 
    padding: 1.25rem;
    opacity: 1;
  }
  .portrait-divider { display: none; }
  .portrait-grid { 
    padding: 0 1rem;
  }
  .portrait-grid.is-ready .portrait-item { opacity: 1; transform: none; }
  .portrait-item {
    position: relative !important;
    width: 100% !important;
    left: 0 !important;
    top: auto !important;
    margin-bottom: 1.5rem;
    opacity: 1;
  }
  .portrait-overlay {
    opacity: 1;
    transform: none;
  }
}

/* ===== Media Art Page ===== */

/* Media Art 页面背景纹理 - 数字/科技质感 */
.series-wrapper--media-art {
  position: relative;
}

.series-wrapper--media-art::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.2;
  background-image: 
    radial-gradient(ellipse 70% 50% at 30% 20%, rgba(100, 80, 180, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 70% 70%, rgba(80, 160, 180, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, transparent 0%, rgba(184, 132, 59, 0.02) 100%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-size: 100% 100%, 100% 100%, 100% 100%, 150px 150px;
}

/* Filters */
.art-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.art-filter {
  padding: 0.5rem 1.1rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--duration-fast) ease;
}

.art-filter:hover {
  color: var(--fg-soft);
  border-color: var(--border-hover);
}

.art-filter.is-active {
  color: var(--accent);
  background: rgba(184, 132, 59, 0.08);
  border-color: rgba(184, 132, 59, 0.25);
}

/* Art Grid */
.art-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

/* Art Card */
.art-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all 0.4s var(--ease-spring);
}

.art-card.is-hidden {
  opacity: 0;
  transform: scale(0.95);
}

.art-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card), 0 0 40px rgba(184, 132, 59, 0.08);
  transform: translateY(-4px);
}

.art-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.art-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-cool);
}

.art-card-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-spring);
}

.art-card:hover .art-card-media img {
  transform: scale(1.05);
}

.art-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.art-card:hover .art-card-overlay {
  opacity: 1;
}

.art-card-view {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 0.6rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
  transform: translateY(8px);
  transition: transform 0.3s var(--ease-spring), background 0.2s ease;
}

.art-card:hover .art-card-view {
  transform: translateY(0);
}

.art-card-view:hover {
  background: rgba(255, 255, 255, 0.1);
}

.art-card-info {
  padding: 1.25rem 1.5rem 1.5rem;
}

.art-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.art-tag {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(184, 132, 59, 0.08);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}

.art-card-title {
  margin: 0 0 0.6rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--fg);
}

.art-card-desc {
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--fg-soft);
}

.art-card-desc-zh {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--muted);
}

.art-card-date {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.72rem;
  color: var(--muted-light);
  letter-spacing: 0.05em;
}

/* ===== Work Detail Page ===== */

.work-detail {
  padding-bottom: 4rem;
}

.work-header {
  padding: 3rem 0 2.5rem;
  background: linear-gradient(180deg, var(--bg-card) 0%, transparent 100%);
  border-bottom: 1px solid var(--border-subtle);
}

.work-header .breadcrumb {
  margin-bottom: 2rem;
}

.work-header-content {
  max-width: 800px;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.work-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--fg);
}

.work-subtitle {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--fg-soft);
  font-style: italic;
}

.work-subtitle-zh {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--muted);
}

.work-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.work-date {
  font-weight: 500;
  color: var(--accent);
}

/* Hero Media */
.work-hero-media {
  margin: 0;
  width: 100%;
  max-height: 70vh;
  overflow: hidden;
}

.work-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Content */
.work-content {
  max-width: 800px;
  padding-top: 3rem;
}

.work-section {
  margin-bottom: 3rem;
}

.work-section-title {
  margin: 0 0 1.25rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--fg);
}

.work-content p {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--fg-soft);
}

.work-content p:last-child {
  margin-bottom: 0;
}

.work-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--fg);
}

.work-lead-zh {
  font-size: 1rem;
  color: var(--muted);
}

.work-thanks {
  font-style: italic;
  color: var(--muted);
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
}

/* CTA Button */
.work-cta {
  margin: 2rem 0 3rem;
  text-align: center;
}

.work-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(184, 132, 59, 0.3);
}

.work-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184, 132, 59, 0.4);
}

/* Figures */
.work-figure {
  margin: 2.5rem 0;
}

.work-figure--full {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  max-width: 100vw;
}

.work-figure img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.work-figure--full img {
  border-radius: 0;
}

.work-figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
  font-style: italic;
}

.work-figure-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.work-figure-grid .work-figure {
  margin: 0;
}

/* Feature Grid */
.work-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.work-feature {
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.work-feature h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg);
}

.work-feature p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--muted);
}

/* Tech Stack */
.work-tech-stack {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.work-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.work-tech-list li {
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  color: var(--fg-soft);
  background: var(--bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
}

/* Work Nav */
.work-nav {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.work-nav-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.work-nav-back:hover {
  color: var(--accent);
}

/* Embed Demo */
.work-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 1.25rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-card);
}

.work-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 177.78%; /* 1920/1080 ≈ 1.78, 缩放回来 */
  height: 177.78%;
  border: none;
  transform: scale(0.5625); /* 1/1.78 ≈ 0.5625 */
  transform-origin: top left;
}

/* 800x500 画布 (8:5 = 1.6) */
.work-embed--800x500 {
  aspect-ratio: 8 / 5;
}

.work-embed--800x500 iframe {
  width: 100%;
  height: 100%;
  transform: none;
}

/* 全宽嵌入（不缩放） */
.work-embed--full {
  aspect-ratio: 16 / 9;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  border-radius: 0;
}

.work-embed--full iframe {
  width: 100%;
  height: 100%;
  transform: none;
}

.work-demo-hint {
  font-size: 0.9rem;
  color: var(--fg-soft);
  margin: 0 0 0.4rem;
}

.work-demo-hint-zh {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.work-demo-note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.6rem 1rem;
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.work-demo-note svg {
  flex-shrink: 0;
  opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
  .work-header { padding: 2rem 0 1.5rem; }
  .work-title { font-size: 1.8rem; }
  .work-subtitle { font-size: 1rem; }
  .work-content { padding-top: 2rem; }
  .work-feature-grid { grid-template-columns: 1fr; }
  .work-figure-grid { grid-template-columns: 1fr; }
  .work-figure--full { margin-left: -1rem; margin-right: -1rem; }
  .work-figure--full img { border-radius: 0; }
}

/* Photo Grid - JS Masonry Layout */
.series-photos-grid { 
  max-width: 1100px; 
  margin: 0 auto; 
  padding: 0 1.5rem;
  position: relative;
  min-height: 200px;
}

/* 初始状态隐藏，防止布局计算前图片叠加 */
.series-photos-grid:not(.is-ready) .photo-item {
  opacity: 0;
}

.series-photos-grid.is-ready .photo-item {
  opacity: 1;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.series-photos-grid .photo-item { 
  position: absolute;
  width: calc(50% - 0.75rem);
  overflow: hidden; 
  border-radius: var(--radius-lg); 
  box-shadow: var(--shadow-sm); 
  background: var(--bg-card); 
  border: 1px solid var(--border-subtle); 
  will-change: transform;
  opacity: 0;
}

/* 图片容器保持尺寸 */
.series-photos-grid .photo-img-wrap {
  position: relative;
  background: var(--bg-cool);
}

.series-photos-grid .photo-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.series-photos-grid .photo-item:hover { 
  box-shadow: var(--shadow-card); 
  border-color: var(--border-hover); 
}

.series-photos-grid .photo-img-wrap { 
  position: relative; 
  cursor: zoom-in; 
  overflow: hidden;
  background: var(--bg-cool);
}

.series-photos-grid .photo-img-wrap img { 
  width: 100%; 
  display: block;
  /* 移除opacity transition，防止滚动时重新淡入 */
}

.series-photos-grid .photo-item:hover .photo-img-wrap img { 
  transform: scale(1.02); 
}

.series-photos-grid .photo-zoom-hint { 
  position: absolute; 
  bottom: 0.75rem; 
  right: 0.75rem; 
  width: 32px; 
  height: 32px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  background: rgba(0,0,0,0.4); 
  backdrop-filter: blur(8px); 
  border-radius: var(--radius-full); 
  border: 1px solid rgba(255,255,255,0.1); 
  color: #fff; 
  opacity: 0; 
  transform: scale(0.8); 
  transition: opacity 0.3s ease, transform 0.3s var(--ease-spring); 
}

.series-photos-grid .photo-item:hover .photo-zoom-hint { 
  opacity: 1; 
  transform: scale(1); 
}

.series-photos-grid .photo-meta { 
  padding: 0; 
  font-size: 0.78rem; 
  max-height: 0; 
  overflow: hidden; 
  transition: max-height 0.35s ease-out, padding 0.35s ease, opacity 0.3s ease; 
  opacity: 0;
}

.series-photos-grid .photo-item:hover .photo-meta { 
  opacity: 1; 
  max-height: 250px; 
  padding: 0.9rem 1rem 1.1rem; 
}

.series-photos-grid .photo-line-main { 
  display: flex; 
  align-items: baseline; 
  gap: 0.4rem; 
  flex-wrap: wrap; 
  margin: 0;
  color: var(--fg-soft);
  font-size: 0.8rem;
  line-height: 1.5;
}

.series-photos-grid .photo-line-main span.location { 
  font-weight: 600; 
  letter-spacing: 0.12em; 
  text-transform: uppercase; 
  font-size: 0.65rem; 
  color: var(--accent); 
  background: rgba(184,132,59,0.1); 
  padding: 0.15rem 0.5rem; 
  border-radius: var(--radius-full); 
  flex-shrink: 0;
}

.series-photos-grid .photo-line-sub { 
  margin: 0.35rem 0 0; 
  line-height: 1.55; 
  color: var(--muted); 
  font-size: 0.75rem;
}

.series-photos-grid .photo-line-gear { 
  margin: 0.25rem 0 0; 
  opacity: 0.5; 
  font-size: 0.68rem; 
  font-style: italic; 
}

/* Page Loader for Series Pages */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader--hidden {
  opacity: 0;
  visibility: hidden;
}

.page-loader-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-loader-text {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-style: italic;
  font-weight: 400;
  color: var(--fg);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: pageLoaderFadeIn 0.5s ease 0.1s forwards;
}

@keyframes pageLoaderFadeIn {
  to { opacity: 1; }
}

.page-loader-bar {
  width: 160px;
  height: 3px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
  opacity: 0;
  animation: pageLoaderFadeIn 0.4s ease 0.3s forwards;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

html.dark .page-loader-bar {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-loader-progress {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent), var(--accent-light));
  border-radius: var(--radius-full);
  transition: width 0.3s ease-out;
  box-shadow: 0 0 8px rgba(184, 132, 59, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
}

.page-loader-progress::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, transparent 60%);
  border-radius: inherit;
}

/* Single column layout (original) */
.series-photos { max-width: 800px; margin: 0 auto; }
.photo-item { margin-bottom: 4rem; overflow: hidden; border-radius: var(--radius-xl); box-shadow: var(--shadow-soft); background: var(--bg-card); border: 1px solid var(--border-subtle); transition: box-shadow 0.5s ease, transform 0.5s var(--ease-spring), border-color 0.3s ease; }
.photo-item:hover { box-shadow: var(--shadow-card), var(--shadow-glow); transform: translateY(-6px); border-color: var(--border-hover); }
.photo-img-wrap { position: relative; cursor: zoom-in; overflow: hidden; }
.photo-img-wrap img { width: 100%; display: block; transition: transform 0.8s var(--ease-spring), opacity 0.5s ease; }
.photo-item:hover .photo-img-wrap img { transform: scale(1.03); }

.photo-zoom-hint { position: absolute; bottom: 1rem; right: 1rem; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.4); backdrop-filter: blur(12px); border-radius: var(--radius-full); border: 1px solid rgba(255,255,255,0.1); color: #fff; opacity: 0; transform: scale(0.8) translateY(8px); transition: opacity 0.4s ease 0.1s, transform 0.4s var(--ease-spring) 0.1s; }
.photo-item:hover .photo-zoom-hint { opacity: 1; transform: scale(1) translateY(0); }

.photo-meta { padding: 0 1.5rem; font-size: 0.82rem; opacity: 0; max-height: 0; transform: translateY(12px); overflow: hidden; transition: opacity 0.5s ease 0.15s, transform 0.5s var(--ease-spring) 0.15s, max-height 0.6s ease-out, padding 0.5s ease 0.15s; }
.photo-item:hover .photo-meta { opacity: 1; max-height: 200px; transform: translateY(0); padding: 1rem 1.5rem 1.4rem; }
.photo-line-main, .photo-line-sub, .photo-line-gear { color: var(--muted); margin: 0; }
.photo-line-main { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.photo-line-main span.location { font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; font-size: 0.7rem; color: var(--accent); background: rgba(184,132,59,0.1); padding: 0.2rem 0.6rem; border-radius: var(--radius-full); }
.photo-line-sub { margin-top: 0.4rem; line-height: 1.6; color: var(--fg-soft); }
.photo-line-gear { margin-top: 0.3rem; opacity: 0.6; font-size: 0.75rem; font-style: italic; }

/* Back to Top */
.back-to-top { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--radius-full); background: var(--bg-card); border: 1px solid var(--border-subtle); color: var(--muted); font-size: 1.2rem; transition: background var(--duration-fast), color var(--duration-fast), transform var(--duration-fast); }
.back-to-top:hover { background: var(--fg); color: var(--bg); transform: translateY(-2px); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 10000; background: var(--overlay-bg); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity var(--duration-med), visibility var(--duration-med); }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-content { max-width: 90vw; max-height: 90vh; display: flex; align-items: center; justify-content: center; }
.lightbox-content img { max-width: 100%; max-height: 90vh; object-fit: contain; border-radius: var(--radius-md); box-shadow: 0 20px 60px rgba(0,0,0,0.5); }

.lightbox-close, .lightbox-prev, .lightbox-next { position: absolute; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius-full); color: #fff; transition: background var(--duration-fast), transform var(--duration-fast); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.2); transform: scale(1.05); }
.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover { transform: translateY(-50%) scale(1.05); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.05); }
.lightbox-counter { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.7); font-size: 0.85rem; letter-spacing: 0.1em; }

/* Animations */
.reveal-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
.category-row.reveal-on-scroll:nth-child(1) { transition-delay: 0ms; }
.category-row.reveal-on-scroll:nth-child(2) { transition-delay: 80ms; }
.category-row.reveal-on-scroll:nth-child(3) { transition-delay: 160ms; }
.category-row.reveal-on-scroll:nth-child(4) { transition-delay: 240ms; }
.category-row.reveal-on-scroll:nth-child(5) { transition-delay: 320ms; }
.category-row.reveal-on-scroll:nth-child(6) { transition-delay: 400ms; }
.category-row.reveal-on-scroll:nth-child(7) { transition-delay: 480ms; }
.category-row.reveal-on-scroll:nth-child(8) { transition-delay: 560ms; }

.page { opacity: 0; transform: translateY(12px); transition: opacity var(--duration-slow) ease-out, transform var(--duration-slow) ease-out; }
.page--visible { opacity: 1; transform: translateY(0); }
.page--hidden { opacity: 0; transform: translateY(12px); }

/* Series Navigation (between pages) */
.series-nav {
  margin-top: 4rem;
  border-top: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.series-nav-inner {
  display: contents;
}

/* Single link: span full width */
.series-nav > :only-child,
.series-nav-inner:has(> :only-child) {
  grid-column: 1 / -1;
}

.series-nav-inner > :only-child {
  border-right: none !important;
}

.series-nav-link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  padding: 2rem clamp(2rem, 5vw, 4rem);
  border: none;
  background: transparent;
  transition: background var(--duration-fast);
  min-width: 0;
  min-height: 90px;
  border-radius: 0;
}

.series-nav-link:hover {
  background: rgba(184, 132, 59, 0.04);
}

.series-nav-link:first-child:not(:only-child) {
  border-right: 1px solid var(--border-subtle);
}

.series-nav-next {
  text-align: right;
  margin-left: 0;
}

/* Single next-link should center */
.series-nav-inner > .series-nav-next:only-child {
  text-align: center;
}

.series-nav-label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-light);
}

.series-nav-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--fg);
  transition: color var(--duration-fast);
}

.series-nav-link:hover .series-nav-title {
  color: var(--accent);
}

/* Film page series nav adaption */
.series-nav--film {
  border-top-color: var(--film-border, rgba(255,255,255,0.08));
}

.series-nav--film .series-nav-link {
  background: transparent;
}

.series-nav--film .series-nav-link:first-child:not(:only-child) {
  border-right-color: var(--film-border, rgba(255,255,255,0.08));
}

.series-nav--film .series-nav-link:hover {
  background: rgba(184, 132, 59, 0.06);
}

.series-nav--film .series-nav-label {
  color: var(--film-muted, #888);
}

.series-nav--film .series-nav-title {
  color: var(--film-text, #e8e4de);
}

/* Mobile Nav Enhancements */
.nav-mobile-divider {
  width: 40px;
  height: 1px;
  background: var(--border-subtle);
  margin: 0.5rem auto;
}

.nav-mobile-label {
  display: block;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 0.25rem;
}

/* ===== NEW FEATURES ===== */

/* --- Lightbox Info Panel --- */
.lightbox-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 5rem 2.5rem 2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.97) 0%, rgba(0,0,0,0.85) 35%, rgba(0,0,0,0.5) 65%, transparent 100%);
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s var(--ease-spring);
  pointer-events: none;
  z-index: 2;
}
.lightbox.show-info .lightbox-info { opacity: 1; transform: translateY(0); pointer-events: auto; }
.lightbox-info-left { display: flex; flex-direction: column; gap: 0.5rem; }
.lightbox-info-location { font-weight: 600; font-size: 0.85rem; letter-spacing: 0.2em; text-transform: uppercase; color: #d4a55a; text-shadow: 0 2px 8px rgba(0,0,0,0.6); }
.lightbox-info-desc { font-size: 0.88rem; color: rgba(255,255,255,0.92); line-height: 1.5; max-width: 60vw; text-shadow: 0 1px 4px rgba(0,0,0,0.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lightbox-info-gear { font-size: 0.8rem; color: rgba(255,255,255,0.8); font-style: italic; letter-spacing: 0.04em; white-space: nowrap; text-shadow: 0 1px 6px rgba(0,0,0,0.5); }
.lightbox-info-toggle { position: absolute; top: 1.5rem; left: 1.5rem; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius-full); color: #fff; cursor: pointer; transition: background var(--duration-fast); z-index: 3; }
.lightbox-info-toggle:hover { background: rgba(255,255,255,0.2); }
.lightbox.show-info .lightbox-info-toggle { background: rgba(184,132,59,0.3); border-color: rgba(184,132,59,0.5); }

/* --- View Transitions --- */
@view-transition { navigation: auto; }
::view-transition-old(page-content) { animation: vtFadeOut 0.2s ease forwards; }
::view-transition-new(page-content) { animation: vtFadeIn 0.3s ease 0.1s both; }
@keyframes vtFadeOut { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vtFadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.page { view-transition-name: page-content; }

/* --- Footer Status Breathing Light --- */
.footer-status { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.72rem; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.75rem; }
.footer-status-dot { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; animation: breathe 3s ease-in-out infinite; box-shadow: 0 0 6px rgba(74, 222, 128, 0.4); }
@keyframes breathe {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(74, 222, 128, 0.4); }
  50% { opacity: 0.4; box-shadow: 0 0 2px rgba(74, 222, 128, 0.2); }
}

/* --- About Skills Tags --- */
.about-skills { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border-subtle); }
.about-skill-tag { display: inline-block; padding: 0.3rem 0.7rem; font-size: 0.68rem; font-weight: 500; letter-spacing: 0.05em; color: var(--muted); background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-full); transition: color var(--duration-fast), border-color var(--duration-fast), background var(--duration-fast); }
.about-skill-tag:hover { color: var(--accent); border-color: var(--border-hover); background: rgba(184, 132, 59, 0.05); }

/* --- Keyboard Focus Enhancement --- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius-sm); }
.nav-desktop a:focus-visible, .logo a:focus-visible, .footer-social a:focus-visible { outline-offset: 4px; border-radius: var(--radius-full); }
.lightbox-close:focus-visible, .lightbox-prev:focus-visible, .lightbox-next:focus-visible, .hero-arrow:focus-visible { outline-color: #fff; outline-offset: 4px; }

/* --- Section Divider Slow Spin --- */
.section-transition-icon { animation: slowSpin 40s linear infinite; }
@keyframes slowSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* --- Footer accent line --- */
.site-footer { position: relative; }
.site-footer::before { content: ""; position: absolute; top: -1px; left: 50%; transform: translateX(-50%); width: 60px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0.4; }

/* Responsive */
@media (max-width: 900px) {
  .series-photos-grid .photo-item { width: calc(50% - 0.625rem); }
}

@media (max-width: 768px) {
  .container { width: min(100% - 2rem, 720px); }
  .nav-desktop { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile { display: block; }
  .hero-slider { height: clamp(400px, 72vh, 720px); }
  .hero-text { left: 6%; right: 6%; bottom: 12%; max-width: none; width: auto; }
  .hero-kicker { font-size: 0.68rem; padding: 0.3rem 0.7rem; }
  .categories { padding: 4rem 0; }
  .category-vertical-list { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
  .series-wrapper { padding-top: 0; }
  .series-hero { padding: 2.5rem 0 2rem; margin-bottom: 1.5rem; }
  .series-hero .breadcrumb { margin-bottom: 1.5rem; }
  .series-title { font-size: 1.35rem; }
  .series-subtitle-en, .series-subtitle-zh { font-size: 0.88rem; }
  .contact-block { padding: 1.2rem; }

  /* About 响应式 */
  .about-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 520px;
    margin: 0 auto;
  }
  .about-portrait-frame img {
    aspect-ratio: 4 / 3;
  }
  
  .lightbox-prev { left: 0.75rem; }
  .lightbox-next { right: 0.75rem; }
  .lightbox-close { top: 0.75rem; right: 0.75rem; }
  .lightbox-info { padding: 2.5rem 1.25rem 1rem; flex-direction: column; align-items: flex-start; gap: 0.3rem; }
  .lightbox-info-toggle { top: 0.75rem; left: 0.75rem; }
  .lightbox-info-desc { max-width: 70vw; }
  
  /* 移动端单列 */
  .series-photos-grid { max-width: 520px; padding: 0 1rem; }
  .series-photos-grid.is-ready .photo-item { opacity: 1; }
  .series-photos-grid .photo-item { 
    position: relative !important;
    width: 100% !important;
    left: 0 !important;
    top: auto !important;
    margin-bottom: 1.25rem;
    opacity: 1;
  }
  .series-photos-grid .photo-meta { opacity: 0.9; max-height: 200px; padding: 0.8rem 1rem 1rem; }
  
  /* Media Art 响应式 */
  .art-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .art-filters { gap: 0.4rem; margin-bottom: 2rem; }
  .art-filter { padding: 0.45rem 0.9rem; font-size: 0.72rem; }
  .art-card-info { padding: 1rem 1.25rem 1.25rem; }
  .art-card-title { font-size: 1.05rem; }
  .art-card-desc, .art-card-desc-zh { font-size: 0.8rem; }
  
  /* Series Nav 响应式 */
  .series-nav { grid-template-columns: 1fr; }
  .series-nav-link { padding: 1.5rem; min-height: auto; text-align: center; }
  .series-nav-link:first-child:not(:only-child) { border-right: none; border-bottom: 1px solid var(--border-subtle); }
  .series-nav-next { text-align: center; }
  .series-nav-title { font-size: 0.95rem; }
}

@media (max-width: 768px) and (hover: none) {
  .category-row:hover { transform: none; box-shadow: var(--shadow-soft); }
  .category-row:hover img { transform: none; }
  .photo-item:hover { transform: none; }
  .photo-item .photo-meta { opacity: 0.5; max-height: 200px; transform: none; padding: 0.8rem 1rem 1rem; }
  .photo-zoom-hint { opacity: 0.7; transform: scale(1); }
}

@media (max-width: 480px) {
  .container { width: min(100% - 1.5rem, 720px); }
  .logo a { letter-spacing: 0.12em; padding: 0.3rem 0.7rem; font-size: 0.8rem; }
  .section-title { font-size: 1.3rem; }
  .category-row-label { padding: 1rem; }
  .category-name-en { font-size: 1rem; }
  .photo-item { margin-bottom: 2.5rem; border-radius: var(--radius-md); }
  
  .hero-text { 
    left: 1rem; 
    right: 1rem; 
    bottom: 16%; 
    transform: none; 
    width: auto; 
    max-width: none; 
    text-align: left; 
  }
  .hero-title { font-size: 1.2rem; line-height: 1.4; }
  .hero-kicker { font-size: 0.6rem; padding: 0.25rem 0.6rem; letter-spacing: 0.18em; }
  
  .hero-pagination { bottom: 1.2rem; }
  .hero-caption-text { display: block; font-size: 0.7rem; line-height: 1.9; padding: 0 1rem; }
  .hero-caption-text::before, .hero-caption-text::after { display: none; }
  .hero-meta { display: none; }
  .contact-grid { gap: 1rem; }
  .contact-block { padding: 1rem; }
  .lightbox-prev, .lightbox-next { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .hero-slides { transition: none; }
  .hero-slide.is-active img { transform: none; }
  .reveal-on-scroll { opacity: 1; transform: none; }
  .page { opacity: 1; transform: none; }
  .loader { display: none; }
}

@media print {
  .site-header, .hero-slider, .hero-caption, .hero-pagination, .loader, .lightbox, .nav-toggle, .theme-toggle { display: none; }
  body::before { display: none; }
  .page { opacity: 1; transform: none; }
  .category-row { break-inside: avoid; }
}
