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

:root {
  --bg: #0d0d0f;
  --panel: #16161a;
  --line: #2a2a30;
  --ink: #f2f0ea;
  --muted: #8f8c84;
  --accent: #d4a05a;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  padding: 0 5vw;
}

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

/* ── 导航 ───────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  background: rgba(13, 13, 15, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.mark { letter-spacing: 4px; font-weight: 700; }
.mark .dot { color: var(--accent); }
.nav nav a {
  margin-left: 30px;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}
.nav nav a:hover { color: var(--ink); }

/* ── Hero ───────────────────────── */
.hero {
  padding: 16vh 0 12vh;
  max-width: 760px;
}
.kicker {
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 26px;
}
.hero h1 {
  font-family: Georgia, "Songti SC", "Noto Serif SC", serif;
  font-size: clamp(40px, 7vw, 84px);
  font-weight: normal;
  line-height: 1.22;
  letter-spacing: 2px;
}
.intro {
  margin-top: 32px;
  max-width: 32em;
  font-size: 16px;
  line-height: 1.9;
  color: var(--muted);
}
.stats {
  display: flex;
  gap: 56px;
  margin-top: 56px;
}
.stats strong {
  display: block;
  font-size: 34px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.stats span {
  font-size: 13px;
  color: var(--muted);
}

/* ── 通用区块 ───────────────────── */
.series, .gallery, .about { padding: 10vh 0 4vh; }
.sec-title {
  font-size: 13px;
  font-weight: normal;
  letter-spacing: 5px;
  color: var(--muted);
  margin-bottom: 40px;
}

/* ── 系列三卡 ───────────────────── */
.series-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  cursor: zoom-in;
  background: var(--panel);
}
.card img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform .6s ease;
}
.card:hover img { transform: scale(1.06); }
.card-meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 40px 20px 18px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .78));
}
.card-meta h3 {
  font-family: Georgia, "Songti SC", serif;
  font-size: 22px;
  font-weight: normal;
  letter-spacing: 2px;
}
.card-meta p { margin-top: 4px; font-size: 12px; color: rgba(242, 240, 234, .7); }

/* ── 瀑布流 ─────────────────────── */
.masonry {
  columns: 3;
  column-gap: 22px;
}
.masonry figure {
  position: relative;
  break-inside: avoid;
  margin-bottom: 22px;
  border-radius: 6px;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--panel);
}
.masonry img {
  transition: transform .6s ease, filter .6s ease;
}
.masonry figure:hover img {
  transform: scale(1.04);
  filter: brightness(1.08);
}
.masonry figcaption {
  position: absolute;
  left: 16px; bottom: 14px;
  font-size: 13px;
  letter-spacing: 1px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s, transform .3s;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .8);
}
.masonry figure:hover figcaption { opacity: 1; transform: none; }

/* ── 关于 ───────────────────────── */
.about { max-width: 720px; }
.quote {
  font-family: Georgia, "Songti SC", "Noto Serif SC", serif;
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1.7;
  letter-spacing: 1px;
}
.bio {
  margin-top: 28px;
  font-size: 15px;
  line-height: 2;
  color: var(--muted);
}

/* ── 页脚 ───────────────────────── */
.contact {
  padding: 14vh 0 10vh;
  text-align: center;
}
.hint { font-size: 16px; color: var(--muted); margin-bottom: 18px; }
.mail {
  font-family: Georgia, serif;
  font-size: clamp(26px, 4.6vw, 50px);
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  transition: color .2s, border-color .2s;
}
.mail:hover { color: var(--accent); border-color: var(--accent); }
.copy {
  margin-top: 60px;
  font-size: 12px;
  color: #5a5852;
  letter-spacing: 1px;
}

/* ── 灯箱 ───────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 8, 10, .94);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox figure {
  max-width: min(84vw, 1080px);
  transform: scale(.96);
  transition: transform .3s ease;
}
.lightbox.open figure { transform: none; }
.lb-img {
  max-height: 78vh;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 4px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .6);
}
.lb-cap {
  margin-top: 18px;
  text-align: center;
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--muted);
}
.lightbox button {
  position: absolute;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 30px;
  cursor: pointer;
  padding: 14px 18px;
  transition: color .2s;
}
.lightbox button:hover { color: var(--ink); }
.lb-close { top: 4vh; right: 4vw; font-size: 34px; }
.lb-prev { left: 2vw; top: 50%; transform: translateY(-50%); }
.lb-next { right: 2vw; top: 50%; transform: translateY(-50%); }

/* ── 滚动显现 ───────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .card img, .masonry img { transition: none; }
}

/* ── 响应式 ─────────────────────── */
@media (max-width: 860px) {
  .series-row { grid-template-columns: 1fr; }
  .masonry { columns: 2; }
  .stats { gap: 36px; }
}
@media (max-width: 560px) {
  body { padding: 0 6vw; }
  .nav nav a { margin-left: 18px; }
  .masonry { columns: 1; }
  .stats { flex-wrap: wrap; }
  .lb-prev, .lb-next { display: none; }
}
