:root {
  --bg: #0a0a0a;
  --surface: #111210;
  --surface-soft: #171815;
  --text: #f3f1e9;
  --muted: #8f9189;
  --line: rgba(243, 241, 233, 0.15);
  --accent: #d7ff63;
  --pad: clamp(24px, 5vw, 84px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open,
body.lightbox-open {
  overflow: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

img {
  display: block;
  width: 100%;
}

::selection {
  color: var(--bg);
  background: var(--accent);
}

.scroll-progress {
  position: fixed;
  z-index: 120;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 26px var(--pad);
  transition: padding 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  padding-top: 16px;
  padding-bottom: 16px;
  background: rgba(10, 10, 10, 0.86);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  line-height: 1;
}

.brand-cn {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.brand-en {
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.22em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 38px;
}

.desktop-nav a {
  position: relative;
  color: rgba(243, 241, 233, 0.72);
  font-size: 12px;
  letter-spacing: 0.16em;
  transition: color 0.25s ease;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.desktop-nav a:hover {
  color: var(--text);
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 1px;
  margin: 5px auto;
  background: var(--text);
  transition: transform 0.3s ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: flex;
  visibility: hidden;
  flex-direction: column;
  justify-content: center;
  padding: 110px var(--pad) 48px;
  background: var(--bg);
  opacity: 0;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mobile-menu.open {
  visibility: visible;
  opacity: 1;
}

.mobile-menu nav {
  display: grid;
}

.mobile-menu nav a {
  display: flex;
  align-items: baseline;
  gap: 22px;
  padding: 18px 0;
  font-size: clamp(34px, 10vw, 58px);
  font-weight: 500;
  letter-spacing: -0.04em;
  border-bottom: 1px solid var(--line);
}

.mobile-menu nav a span {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.mobile-menu p {
  margin-top: auto;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.24em;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 72px);
  min-height: 100svh;
  padding: 132px var(--pad) 70px;
  overflow: hidden;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-top: 2vh;
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: 1.6;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(52px, 6.6vw, 112px);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 1.04;
}

.hero-en {
  margin: 26px 0 0;
  color: var(--accent);
  font-size: clamp(11px, 1vw, 14px);
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1.5;
}

.hero-description {
  max-width: 350px;
  margin: 32px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.9;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  margin-top: 42px;
  padding-bottom: 9px;
  font-size: 12px;
  letter-spacing: 0.12em;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s ease, color 0.3s ease;
}

.text-link span {
  color: var(--accent);
  font-size: 17px;
  transition: transform 0.3s var(--ease);
}

.text-link:hover {
  border-color: var(--accent);
}

.text-link:hover span {
  transform: translate(3px, 3px);
}

.hero-visual {
  position: relative;
  min-width: 0;
  margin: 0;
  padding-right: 22px;
}

.hero-image-wrap {
  position: relative;
  height: calc(100svh - 202px);
  min-height: 500px;
  overflow: hidden;
  background: var(--surface);
}

.hero-image-wrap img {
  height: 115%;
  object-fit: cover;
  object-position: center 42%;
  transform: translateY(-4%);
  will-change: transform;
}

.hero-image-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.66));
}

.hero-image-wrap figcaption {
  position: absolute;
  right: 24px;
  bottom: 22px;
  left: 24px;
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.78);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.hero-index {
  position: absolute;
  top: 0;
  right: 0;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.16em;
  writing-mode: vertical-rl;
}

.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: var(--pad);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.24em;
}

.scroll-cue i {
  position: relative;
  display: block;
  width: 1px;
  height: 34px;
  overflow: hidden;
  background: var(--line);
}

.scroll-cue i::after {
  position: absolute;
  top: -100%;
  left: 0;
  width: 1px;
  height: 100%;
  content: "";
  background: var(--accent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: translateY(0); }
  70%, 100% { transform: translateY(200%); }
}

.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  padding: 18px 0;
  animation: tickerMove 24s linear infinite;
}

.ticker-track span {
  padding: 0 38px;
  color: rgba(243, 241, 233, 0.46);
  font-size: 11px;
  letter-spacing: 0.28em;
}

.ticker-track i {
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

@keyframes tickerMove {
  to { transform: translateX(-50%); }
}

.section-pad {
  padding: clamp(88px, 11vw, 168px) var(--pad);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 52px;
}

.section-heading h2,
.about-copy h2,
.contact h2 {
  margin: 0;
  font-size: clamp(42px, 5.6vw, 88px);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 1.08;
}

.section-intro {
  max-width: 390px;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.9;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 17px;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.filter-btn span {
  font-size: 8px;
  opacity: 0.65;
}

.filter-btn:hover {
  color: var(--text);
  border-color: rgba(243, 241, 233, 0.4);
}

.filter-btn.active {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 26px);
}

.work-card {
  position: relative;
  display: block;
  min-width: 0;
  padding: 0;
  cursor: zoom-in;
  background: var(--surface);
  border: 0;
  overflow: hidden;
  text-align: left;
}

.work-card.hidden {
  display: none;
}

.work-card img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease), filter 0.6s ease;
}

.work-card:hover img {
  transform: scale(1.045);
  filter: brightness(0.78);
}

.card-wide { grid-column: span 7; aspect-ratio: 4 / 3; }
.card-tall { grid-column: span 5; aspect-ratio: 4 / 5; }
.card-portrait { grid-column: span 4; aspect-ratio: 3 / 4; }
.card-panorama { grid-column: span 8; aspect-ratio: 16 / 9; }
.card-square { grid-column: span 6; aspect-ratio: 1 / 1; }
.card-full { grid-column: span 12; aspect-ratio: 21 / 9; }

.work-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: end;
  gap: 10px;
  padding: clamp(18px, 2vw, 30px);
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.72));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.work-card:hover .work-overlay,
.work-card:focus-visible .work-overlay {
  opacity: 1;
}

.work-number {
  position: absolute;
  top: clamp(18px, 2vw, 30px);
  left: clamp(18px, 2vw, 30px);
  color: rgba(255, 255, 255, 0.72);
  font-size: 9px;
  letter-spacing: 0.16em;
}

.work-info {
  display: grid;
  gap: 7px;
}

.work-info strong {
  font-size: clamp(16px, 1.5vw, 22px);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.work-info small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 8px;
  letter-spacing: 0.18em;
}

.work-open {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--bg);
  background: var(--accent);
  border-radius: 50%;
  font-size: 17px;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: center;
  background: var(--surface);
}

.about-visual {
  position: relative;
  height: clamp(440px, 48vw, 720px);
  overflow: hidden;
}

.about-visual img {
  height: 100%;
  object-fit: cover;
}

.about-image-label {
  position: absolute;
  bottom: 18px;
  left: 20px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 9px;
  letter-spacing: 0.22em;
  writing-mode: vertical-rl;
}

.about-copy h2 {
  font-size: clamp(38px, 4.4vw, 70px);
}

.about-copy > p:not(.eyebrow) {
  max-width: 520px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 300;
  line-height: 2;
}

.about-meta {
  display: grid;
  gap: 0;
  margin-top: 42px;
  border-top: 1px solid var(--line);
}

.about-meta div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.about-meta span {
  color: var(--muted);
  font-size: 11px;
}

.about-meta strong {
  font-size: 11px;
  font-weight: 400;
}

.contact {
  position: relative;
  min-height: 76vh;
  background: var(--bg);
}

.contact h2 {
  font-size: clamp(58px, 9vw, 146px);
  line-height: 0.98;
}

.contact-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-top: clamp(60px, 9vw, 130px);
}

.contact-bottom p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.9;
}

.contact-mail {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding-bottom: 12px;
  font-size: clamp(18px, 2.3vw, 34px);
  letter-spacing: -0.03em;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s ease;
}

.contact-mail span {
  color: var(--accent);
  transition: transform 0.3s var(--ease);
}

.contact-mail:hover {
  border-color: var(--accent);
}

.contact-mail:hover span {
  transform: translate(4px, -4px);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px var(--pad);
  border-top: 1px solid var(--line);
}

.site-footer p,
.back-top {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.back-top {
  transition: color 0.25s ease;
}

.back-top:hover {
  color: var(--text);
}

.lightbox {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  visibility: hidden;
  grid-template-columns: 70px minmax(0, 1fr) 70px;
  align-items: center;
  padding: 54px 24px 34px;
  background: rgba(5, 5, 5, 0.96);
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.open {
  visibility: visible;
  opacity: 1;
}

.lightbox figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  max-width: 1280px;
  max-height: 100%;
  margin: 0 auto;
}

.lightbox figure img {
  width: auto;
  max-width: 100%;
  max-height: calc(100svh - 150px);
  object-fit: contain;
}

.lightbox figcaption {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  width: 100%;
  margin-top: 18px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.lightbox-close,
.lightbox-nav {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  place-items: center;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 24px;
  font-size: 25px;
  font-weight: 300;
}

.lightbox-prev { justify-self: start; }
.lightbox-next { justify-self: end; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.work-card.reveal:nth-child(2),
.work-card.reveal:nth-child(4),
.work-card.reveal:nth-child(6),
.work-card.reveal:nth-child(8) {
  transition-delay: 0.08s;
}

/* ---------- 多页结构 ---------- */

.desktop-nav a.current {
  color: var(--text);
}

.desktop-nav a.current::after {
  transform: scaleX(1);
  transform-origin: left;
}

.page-head {
  padding-top: clamp(150px, 17vw, 240px);
  padding-bottom: clamp(36px, 5vw, 70px);
}

.page-head h1 {
  margin: 0;
  font-size: clamp(64px, 10vw, 150px);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.98;
}

.page-head-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-top: 44px;
}

.page-head-bottom p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.9;
}

.page-head-bottom .text-link {
  flex-shrink: 0;
  margin-top: 0;
}

.works-list {
  padding-top: 0;
}

.works-list .filter-bar {
  margin-bottom: 30px;
}

.page-next {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-top: clamp(50px, 7vw, 90px);
  padding-bottom: clamp(50px, 7vw, 90px);
  border-top: 1px solid var(--line);
}

.page-next > div > a {
  display: inline-block;
  margin-top: 12px;
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.page-next > div > a span {
  display: inline-block;
  color: var(--accent);
  transition: transform 0.3s var(--ease);
}

.page-next > div > a:hover span {
  transform: translate(4px, -4px);
}

.page-next .text-link {
  margin-top: 0;
}

.page-about .about {
  padding-top: clamp(150px, 17vw, 240px);
}

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-top: 120px;
  }

  .hero-copy {
    padding-top: 0;
  }

  .hero h1 {
    font-size: clamp(54px, 11vw, 96px);
  }

  .hero-image-wrap {
    height: 64svh;
    min-height: 420px;
  }

  .scroll-cue {
    display: none;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .card-wide,
  .card-tall,
  .card-portrait,
  .card-panorama,
  .card-square {
    grid-column: span 6;
    aspect-ratio: 4 / 5;
  }

  .card-panorama,
  .card-full {
    grid-column: span 12;
    aspect-ratio: 16 / 9;
  }

  .about {
    grid-template-columns: 1fr;
  }

  .about-visual {
    height: 62vw;
    min-height: 380px;
  }

  .contact-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-head-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-next {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-about .about {
    padding-top: 120px;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .brand-en {
    display: none;
  }

  .hero {
    padding-top: 104px;
    padding-bottom: 40px;
  }

  .hero h1 {
    font-size: clamp(48px, 15vw, 72px);
  }

  .hero-description {
    margin-top: 24px;
    font-size: 13px;
  }

  .hero-en {
    margin-top: 20px;
  }

  .text-link {
    margin-top: 30px;
  }

  .hero-visual {
    padding-right: 14px;
  }

  .hero-image-wrap {
    height: 58svh;
    min-height: 380px;
  }

  .section-pad {
    padding-top: 82px;
    padding-bottom: 82px;
  }

  .page-head {
    padding-top: 110px;
  }

  .page-head h1 {
    font-size: clamp(54px, 16vw, 82px);
  }

  .page-head-bottom .text-link {
    margin-top: 10px;
  }

  .page-about .about {
    padding-top: 100px;
  }

  .section-heading {
    margin-bottom: 36px;
  }

  .filter-bar {
    gap: 8px;
  }

  .filter-btn {
    padding: 9px 14px;
  }

  .works-grid {
    gap: 12px;
  }

  .card-wide,
  .card-tall,
  .card-portrait,
  .card-panorama,
  .card-square,
  .card-full {
    grid-column: span 12;
    aspect-ratio: 4 / 3;
  }

  .card-tall,
  .card-portrait {
    aspect-ratio: 4 / 5;
  }

  .work-overlay {
    opacity: 1;
  }

  .work-open {
    width: 32px;
    height: 32px;
  }

  .about-visual {
    height: 78vw;
    min-height: 320px;
  }

  .about-meta div {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .contact {
    min-height: 68vh;
  }

  .contact h2 {
    font-size: clamp(50px, 16vw, 82px);
  }

  .contact-mail {
    gap: 14px;
    font-size: 17px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .lightbox {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    padding: 70px 10px 28px;
  }

  .lightbox-nav {
    width: 36px;
    height: 36px;
  }

  .lightbox figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
