:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: #0a0a0a;
}

body {
  background: #0a0a0a;
  color: #e8e8e8;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  letter-spacing: 0.05em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
}

/* Lenis 基础样式 */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 48px;
  background: transparent;
  transition: background-color 0.3s ease;
}

.nav-scrolled {
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.brand {
  color: #e8e8e8;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: #e8e8e8;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 0.25s ease;
}

.nav-links a:hover {
  opacity: 1;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100svh;
  overflow: hidden;
}

.hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: #141414;
  background-size: cover;
  background-position: center;
  animation: kenburns 20s ease-out forwards;
  will-change: transform;
}

@keyframes kenburns {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.06);
  }
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 10, 0.6) 0%,
    rgba(10, 10, 10, 0) 45%
  );
  pointer-events: none;
}

.hero-title {
  position: absolute;
  left: 48px;
  bottom: 64px;
  font-size: clamp(40px, 8vw, 104px);
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 1.05;
  color: #e8e8e8;
}

/* ---------- 内容区 ---------- */
.content {
  max-width: 1440px;
  margin: 0 auto;
  padding: 140px 48px 120px;
}

.album {
  margin-bottom: 160px;
}

.album:last-child {
  margin-bottom: 0;
}

.album-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 48px;
}

.album-head h2 {
  font-size: 14px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: #cfcfcf;
}

.album-count {
  font-size: 11px;
  color: #555;
  letter-spacing: 0.15em;
}

/* ---------- 网格：12 列，竖 4 / 横 6，混排自然留白 ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 56px 24px;
  align-items: start;
}

.photo {
  cursor: pointer;
  overflow: hidden;
}

.photo--portrait {
  grid-column: span 4;
}

.photo--landscape {
  grid-column: span 6;
}

.photo img {
  display: block;
  width: 100%;
  height: auto;
  background-color: #141414;
  background-size: cover;
  background-position: center;
  transition: opacity 0.25s ease;
}

.photo:hover img {
  opacity: 0.92;
}

/* ---------- 相册入口 ---------- */
.album-head .album-link,
.album-more {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #888;
  text-decoration: none;
  transition: color 0.25s ease;
}

.album-head .album-link {
  margin-left: auto;
}

.album-head .album-link:hover,
.album-more:hover {
  color: #fff;
}

.album-more {
  display: inline-block;
  margin-top: 40px;
}

/* 相册独立页 */
.album-head--page h1 {
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #e8e8e8;
}

.album-head--page {
  margin-bottom: 64px;
}

.album-next {
  margin-top: 120px;
  padding-top: 48px;
  border-top: 1px solid #161616;
}

.album-next-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #555;
  margin-bottom: 12px;
}

.album-next a {
  font-size: 18px;
  color: #e8e8e8;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: opacity 0.25s ease;
}

.album-next a:hover {
  opacity: 0.7;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 64px;
  align-items: start;
}

.about-text {
  white-space: pre-line;
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: #bbb;
}

.about-photo img {
  display: block;
  width: 100%;
  height: auto;
  background-color: #141414;
  background-size: cover;
  background-position: center;
}

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid #161616;
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.copyright {
  font-size: 11px;
  color: #666;
  letter-spacing: 0.12em;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: #fff;
}

/* ---------- PhotoSwipe 定制 ---------- */
.pswp__counter {
  font-size: 11px;
  color: #888;
  letter-spacing: 0.15em;
  font-weight: 300;
}

.pswp__exif {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #888;
  font-weight: 300;
  pointer-events: none;
}

.pswp__view-full {
  width: auto !important;
  height: 44px;
  padding: 0 16px;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: #888;
  transition: color 0.25s ease;
}

.pswp__view-full:hover {
  color: #fff;
}

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  .nav {
    padding: 16px 20px;
  }

  .nav-links {
    gap: 20px;
  }

  .content {
    padding: 96px 20px 80px;
  }

  .album {
    margin-bottom: 96px;
  }

  .album-head {
    margin-bottom: 32px;
  }

  .grid {
    gap: 32px;
  }

  .photo--portrait,
  .photo--landscape {
    grid-column: 1 / -1;
  }

  .hero-title {
    left: 20px;
    bottom: 40px;
  }

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

  .footer-inner {
    flex-direction: column;
    gap: 16px;
  }
}
