/* ============================================================
   张艳艳 · 个人影像站
   编辑画册风：米色纸感 / 宋体大字 / 大留白 / 细线分隔
   ============================================================ */

:root {
  --paper: #f7f4ef;
  --paper-2: #efeae1;
  --paper-3: #e7e1d6;
  --ink: #191510;
  --ink-soft: #4b433a;
  --muted: #8c8378;
  --line: rgba(25, 21, 16, 0.14);
  --line-soft: rgba(25, 21, 16, 0.07);
  --accent: #9c5a32;

  --serif: "Songti SC", "STSong", "SimSun", "Noto Serif SC", Georgia, "Times New Roman", serif;
  --sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;

  --nav-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--ink); color: var(--paper); }

/* ---------- 纸纹噪点（极轻，增加质感） ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.055'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* ============================================================
   顶部导航
   ============================================================ */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  z-index: 120;
  transition: width 0.1s linear;
}

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 56px);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(247, 244, 239, 0.86);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--line-soft);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  line-height: 1;
}

.brand-cn {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: 0.14em;
}

.brand-en {
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--muted);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 38px);
}

.nav-links a {
  position: relative;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  padding: 6px 0;
  transition: color 0.3s var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}

.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-links a.is-active { color: var(--ink); }
.nav-links a.is-active::after { transform: scaleX(1); }

.burger {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  position: relative;
}

.burger span {
  position: absolute;
  left: 50%; top: 50%;
  width: 16px; height: 1px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ease), opacity 0.2s;
}

.burger span:nth-child(2) { transform: translate(-50%, calc(-50% + 5px)); }
.burger.is-open span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.burger.is-open span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 32px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}

.mobile-menu.is-open { opacity: 1; visibility: visible; }

.mobile-menu a {
  font-family: var(--serif);
  font-size: clamp(30px, 9vw, 44px);
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.mobile-menu.is-open a { opacity: 1; transform: none; }
.mobile-menu.is-open a:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu.is-open a:nth-child(2) { transition-delay: 0.14s; }
.mobile-menu.is-open a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.is-open a:nth-child(4) { transition-delay: 0.26s; }
.mobile-menu.is-open a:nth-child(5) { transition-delay: 0.32s; }

/* ============================================================
   通用
   ============================================================ */
.wrap {
  width: min(1280px, 100% - clamp(40px, 8vw, 112px));
  margin-inline: auto;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 22px;
}

.eyebrow .dot {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 10px;
  vertical-align: middle;
}

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(36px, 5vw, 64px);
}

.sec-title {
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 400;
  letter-spacing: 0.04em;
  margin: 0;
  line-height: 1.25;
}

.sec-note {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin: 0;
  padding-bottom: 6px;
  white-space: nowrap;
}

/* 滚动渐入 */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 60px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 5vw, 84px);
  width: min(1280px, 100% - clamp(40px, 8vw, 112px));
  margin-inline: auto;
}

.hero-tag { display: flex; align-items: center; gap: 14px; margin-bottom: 30px; }

.hero-tag .line {
  width: 48px; height: 1px;
  background: var(--ink);
  opacity: 0.4;
}

.hero-tag span {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(58px, 9.4vw, 132px);
  line-height: 0.95;
  letter-spacing: 0.06em;
  margin: 0 0 8px;
}

.hero-title .lat {
  display: block;
  font-size: clamp(13px, 1.4vw, 17px);
  letter-spacing: 0.52em;
  color: var(--muted);
  margin-top: 26px;
  font-family: var(--sans);
  text-transform: uppercase;
}

.hero-desc {
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--ink-soft);
  line-height: 2;
  max-width: 34em;
  margin: 34px 0 0;
}

.hero-desc em {
  font-style: normal;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
}

.hero-actions { display: flex; align-items: center; gap: 26px; margin-top: 46px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 30px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  letter-spacing: 0.12em;
  border-radius: 999px;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease);
}

.btn:hover { background: transparent; color: var(--ink); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  padding: 15px 6px;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
}

.btn-ghost:hover { background: transparent; transform: none; opacity: 0.6; }

.btn .arw { transition: transform 0.4s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }

/* 右侧图 */
.hero-media {
  position: relative;
  will-change: transform;
}

.hero-media .frame {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  height: clamp(360px, 60svh, 620px);
  background: var(--paper-3);
}

.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.6s var(--ease);
}

.hero-media:hover img { transform: scale(1.09); }

.hero-media .frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(25, 21, 16, 0.12);
}

.hero-media .cap {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--muted);
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero-scroll i {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, var(--ink), transparent);
  display: block;
  animation: scrollHint 2.4s var(--ease) infinite;
}

@keyframes scrollHint {
  0% { transform: scaleY(0.2); transform-origin: top; opacity: 0; }
  40% { transform: scaleY(1); transform-origin: top; opacity: 0.7; }
  70% { transform: scaleY(1); transform-origin: bottom; opacity: 0.7; }
  100% { transform: scaleY(0.2); transform-origin: bottom; opacity: 0; }
}

/* ============================================================
   精选作品
   ============================================================ */
.works { padding: clamp(90px, 12vw, 160px) 0; }

.works-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: clamp(200px, 33vw, 500px);
  gap: clamp(16px, 2vw, 28px);
}

.w-item { position: relative; overflow: hidden; border-radius: 2px; background: var(--paper-3); height: 100%; }
.w-item.a { grid-column: span 8; }
.w-item.b { grid-column: span 4; }
.w-item.c { grid-column: span 4; }
.w-item.d { grid-column: span 8; }

.w-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease), filter 0.8s var(--ease);
  cursor: zoom-in;
}

.w-item:hover img { transform: scale(1.055); }

.w-item .tag {
  position: absolute;
  left: 16px; bottom: 16px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(25, 21, 16, 0.5);
  backdrop-filter: blur(6px);
  padding: 6px 12px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.w-item:hover .tag { opacity: 1; transform: none; }

/* 分类入口 */
.cats { padding: clamp(40px, 6vw, 80px) 0 clamp(90px, 12vw, 150px); }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 24px);
}

.cat {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 3 / 4;
  background: var(--paper-3);
  color: #fff;
}

.cat img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.5s var(--ease), filter 0.9s var(--ease);
  filter: brightness(0.82) saturate(0.95);
}

.cat:hover img { transform: scale(1.07); filter: brightness(0.66) saturate(1); }

.cat .veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 10, 8, 0.72) 0%, rgba(12, 10, 8, 0.12) 46%, rgba(12, 10, 8, 0.22) 100%);
}

.cat .inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(18px, 2.2vw, 30px);
}

.cat .num {
  font-size: 11px;
  letter-spacing: 0.3em;
  opacity: 0.75;
}

.cat .label { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }

.cat .label h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 34px);
  letter-spacing: 0.1em;
  margin: 0;
  line-height: 1.2;
}

.cat .label .en {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.3em;
  opacity: 0.7;
  margin-top: 10px;
  text-transform: uppercase;
}

.cat .cnt {
  font-size: 12px;
  letter-spacing: 0.14em;
  opacity: 0.8;
  white-space: nowrap;
  padding-bottom: 6px;
  transition: transform 0.5s var(--ease);
}

.cat:hover .cnt { transform: translateX(4px); }

/* 关于片段 */
.about-strip {
  padding: clamp(80px, 11vw, 150px) 0;
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}

.about-strip .grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.about-strip h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.35;
  letter-spacing: 0.06em;
  margin: 0;
}

.about-strip h2 span { color: var(--accent); }

.about-strip p {
  font-size: 16px;
  line-height: 2.1;
  color: var(--ink-soft);
  margin: 0 0 22px;
}

.facts {
  display: flex;
  gap: clamp(24px, 4vw, 56px);
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.fact .n {
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1;
  display: block;
}

.fact .t {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 10px;
  display: block;
}

/* ============================================================
   子页面头
   ============================================================ */
.page-head {
  padding: calc(var(--nav-h) + clamp(64px, 9vw, 120px)) 0 clamp(36px, 5vw, 60px);
}

.page-head h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(42px, 7vw, 96px);
  line-height: 1.1;
  letter-spacing: 0.06em;
  margin: 0;
}

.page-head .sub {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.page-head .sub p {
  margin: 0;
  max-width: 42ch;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.95;
}

.page-head .count {
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--muted);
  white-space: nowrap;
  text-transform: uppercase;
}

/* 筛选 */
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: clamp(26px, 3.4vw, 44px);
}

.filters button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.1em;
  transition: all 0.35s var(--ease);
}

.filters button:hover { border-color: var(--ink); color: var(--ink); }

.filters button.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* 瀑布流 */
.masonry {
  padding-bottom: clamp(80px, 10vw, 130px);
}

.masonry.is-ready {
  display: flex;
  align-items: flex-start;
  gap: clamp(14px, 1.8vw, 24px);
}

.m-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.8vw, 24px);
}

.m-item {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background: var(--paper-3);
  cursor: zoom-in;
  margin: 0 0 clamp(14px, 1.8vw, 24px);
}

.masonry.is-ready .m-item { margin-bottom: 0; }

.m-item img {
  width: 100%;
  transition: transform 1.3s var(--ease), filter 0.7s var(--ease);
}

.m-item:hover img { transform: scale(1.045); }

.m-item .cover {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 10, 8, 0.5), transparent 42%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.m-item:hover .cover { opacity: 1; }

.m-item .idx {
  position: absolute;
  left: 16px; bottom: 14px;
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.24em;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.5s var(--ease);
}

.m-item:hover .idx { opacity: 0.9; transform: none; }

.m-item.is-hidden { display: none; }

/* ============================================================
   影像页
   ============================================================ */
.film-frame {
  position: relative;
  overflow: hidden;
  background: #0d0b09;
  border-radius: 2px;
  aspect-ratio: 16 / 9;
}

.film-frame video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.film-poster {
  position: absolute;
  inset: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: opacity 0.6s var(--ease);
}

.film-poster img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.72);
  transition: transform 1.4s var(--ease), filter 0.6s var(--ease);
}

.film-poster:hover img { transform: scale(1.03); filter: brightness(0.62); }

.play {
  position: relative;
  z-index: 2;
  width: 88px; height: 88px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  transition: transform 0.5s var(--ease), background 0.4s;
}

.film-poster:hover .play { transform: scale(1.07); background: rgba(255, 255, 255, 0.16); }

.play::after {
  content: "";
  width: 0; height: 0;
  border-left: 16px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 5px;
}

.film-poster.is-hidden { opacity: 0; pointer-events: none; }

.film-meta {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(24px, 5vw, 70px);
  padding: clamp(30px, 4vw, 48px) 0 clamp(60px, 8vw, 100px);
  border-bottom: 1px solid var(--line);
}

.film-meta h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: 0.08em;
  margin: 0 0 16px;
}

.film-meta p { margin: 0; color: var(--ink-soft); line-height: 2; font-size: 15px; }

.film-spec { display: grid; gap: 14px; }

.film-spec div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
}

.film-spec dt { color: var(--muted); letter-spacing: 0.12em; }
.film-spec dd { margin: 0; letter-spacing: 0.06em; }

.stills { padding: clamp(60px, 8vw, 100px) 0 clamp(80px, 10vw, 120px); }

.stills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 2vw, 24px);
}

.stills-grid .m-item { margin: 0; }

/* ============================================================
   关于页
   ============================================================ */
.about-body {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 6vw, 96px);
  padding: 0 0 clamp(80px, 10vw, 130px);
}

.about-portrait {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 3 / 4;
  background: var(--paper-3);
}

.about-portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.6s var(--ease);
}

.about-portrait:hover img { transform: scale(1.04); }

.about-text h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: 0.06em;
  margin: 0 0 22px;
}

.about-text p {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 2.1;
  color: var(--ink-soft);
  max-width: 44ch;
}

.about-text .quote {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.9;
  color: var(--ink);
  letter-spacing: 0.05em;
  border-left: 1px solid var(--accent);
  padding-left: 24px;
  margin: 34px 0;
}

.info-list { margin-top: 40px; border-top: 1px solid var(--line); }

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}

.info-list dt { color: var(--muted); letter-spacing: 0.12em; }
.info-list dd { margin: 0; letter-spacing: 0.04em; }

.contact {
  border-top: 1px solid var(--line);
  padding: clamp(60px, 8vw, 100px) 0 clamp(80px, 10vw, 120px);
}

.contact h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 68px);
  line-height: 1.25;
  letter-spacing: 0.05em;
  margin: 0 0 40px;
}

.mail {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--serif);
  font-size: clamp(20px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  transition: border-color 0.4s, opacity 0.4s;
}

.mail:hover { border-color: var(--ink); }

/* ============================================================
   灯箱
   ============================================================ */
.lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 13, 10, 0.96);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s;
}

.lb.is-open { opacity: 1; visibility: visible; }

.lb img {
  max-width: min(1280px, 92vw);
  max-height: 84vh;
  object-fit: contain;
  border-radius: 2px;
  transform: scale(0.965);
  transition: transform 0.5s var(--ease);
}

.lb.is-open img { transform: scale(1); }

.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  width: 50px; height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background 0.3s, border-color 0.3s;
}

.lb-close:hover, .lb-prev:hover, .lb-next:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.7);
}

.lb-close { top: 28px; right: 28px; font-size: 20px; line-height: 1; }
.lb-prev { left: 28px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 28px; top: 50%; transform: translateY(-50%); }

.lb-prev::after, .lb-next::after {
  content: "";
  width: 9px; height: 9px;
  border-left: 1px solid #fff;
  border-bottom: 1px solid #fff;
}

.lb-prev::after { transform: rotate(45deg) translate(2px, -2px); }
.lb-next::after { transform: rotate(-135deg) translate(2px, -2px); }

.lb-count {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.66);
  font-size: 11px;
  letter-spacing: 0.28em;
}

/* ============================================================
   页脚
   ============================================================ */
.foot {
  border-top: 1px solid var(--line);
  padding: 46px 0;
}

.foot .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.foot a:hover { color: var(--ink); }

.foot .sig {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.2em;
  color: var(--ink);
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 70px); }
  .hero-media .frame { height: auto; aspect-ratio: 16 / 11; }
  .hero-scroll { display: none; }
  .works-grid { grid-template-columns: repeat(6, 1fr); }
  .w-item.a, .w-item.d { grid-column: span 6; }
  .w-item.b, .w-item.c { grid-column: span 3; }
  .about-strip .grid { grid-template-columns: 1fr; }
  .about-body { grid-template-columns: 1fr; }
  .about-portrait { max-width: 420px; }
  .film-meta { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .brand-en { display: none; }
  .cat-grid { grid-template-columns: 1fr; }
  .cat { aspect-ratio: 16 / 10; }
  .works-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .w-item.a, .w-item.b, .w-item.c, .w-item.d { grid-column: span 1; height: auto; }
  .w-item.a, .w-item.d { aspect-ratio: 3 / 2; }
  .w-item.b, .w-item.c { aspect-ratio: 3 / 4; }
  .stills-grid { grid-template-columns: 1fr; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .page-head .sub { flex-direction: column; align-items: flex-start; gap: 16px; }
  .lb-prev, .lb-next { width: 42px; height: 42px; }
  .lb-prev { left: 12px; }
  .lb-next { right: 12px; }
  .lb-close { top: 14px; right: 14px; }
  .facts { flex-wrap: wrap; gap: 26px; }
  .hero-media .cap { flex-wrap: wrap; gap: 4px 12px; font-size: 10px; letter-spacing: 0.14em; }
  .hero-desc { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
