:root {
  --paper: #f5f1e9;
  --ink: #1f2722;
  --muted: #778078;
  --line: #d7d8cd;
  --accent: #c9563d;
  --card: #e7e6dc;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: .32;
  background-image: radial-gradient(#b8b9ad .65px, transparent .65px);
  background-size: 12px 12px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

.page-shell { width: min(1320px, calc(100% - 64px)); margin: 0 auto; }

.hero {
  min-height: 350px;
  padding: 58px 0 44px;
  display: grid;
  grid-template-columns: 90px 1fr 150px;
  align-items: end;
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}

.hero-copy { max-width: 720px; }
.eyebrow { margin: 0 0 18px; color: var(--muted); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow span { display: inline-block; width: 36px; height: 1px; margin: 0 12px 3px; background: var(--accent); }
.eyebrow strong { color: var(--ink); font-weight: 500; }
h1 { margin: 0; font-family: "Playfair Display", serif; font-size: clamp(48px, 7vw, 96px); font-weight: 500; letter-spacing: -.04em; line-height: .96; }
.subtitle { max-width: 360px; margin: 24px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.hero-note { align-self: center; justify-self: end; color: var(--muted); font-size: 11px; letter-spacing: .11em; line-height: 1.7; text-align: right; text-transform: uppercase; }

.gallery-section { padding: 42px 0 0; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.photo-card { position: relative; min-width: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--card); animation: reveal .6s both; }
.photo-image { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .7s; }
.photo-image { cursor: zoom-in; }
.photo-card:hover .photo-image { transform: scale(1.04); filter: saturate(1.08); }
.photo-meta { position: absolute; right: 14px; bottom: 12px; left: 14px; display: flex; justify-content: space-between; color: white; font-size: 10px; letter-spacing: .11em; text-shadow: 0 1px 10px rgb(0 0 0 / 40%); text-transform: uppercase; }
.photo-card.is-error::after { position: absolute; inset: auto 14px 12px; color: #fff; content: "图片暂时无法载入"; font-size: 11px; }
.photo-card.is-error .photo-image { opacity: 0; }

.status { min-height: 90px; display: flex; justify-content: center; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.spinner { width: 14px; height: 14px; display: inline-block; border: 1px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
.status.is-done .spinner, .status.is-error .spinner { display: none; }
.status.is-error { color: var(--accent); }
#load-sentinel { height: 1px; }
.footer { margin: 68px 0 28px; padding-top: 18px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; letter-spacing: .12em; }

.lightbox[hidden] { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 32px; background: rgb(22 27 24 / 92%); animation: fade-in .2s ease-out; }
.lightbox-figure { max-width: min(1180px, 94vw); max-height: 92vh; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lightbox-figure img { max-width: 100%; max-height: calc(92vh - 42px); object-fit: contain; box-shadow: 0 20px 70px rgb(0 0 0 / 35%); }
.lightbox-figure figcaption { color: rgb(255 255 255 / 72%); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.lightbox-close { position: absolute; top: 20px; right: 24px; width: 42px; height: 42px; padding: 0; border: 1px solid rgb(255 255 255 / 45%); border-radius: 50%; color: white; background: transparent; cursor: pointer; font-size: 30px; font-weight: 300; line-height: 1; }
.lightbox-close:hover { border-color: white; background: rgb(255 255 255 / 12%); }
.lightbox-open { overflow: hidden; }

@keyframes reveal { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 760px) {
  .page-shell { width: min(100% - 32px, 540px); }
  .hero { min-height: 330px; padding-top: 32px; grid-template-columns: 50px 1fr; align-items: start; }
  .hero-copy { grid-column: 1 / -1; margin-top: 82px; }
  .hero-note { grid-column: 2; grid-row: 1; padding-top: 13px; }
  h1 { font-size: clamp(46px, 15vw, 72px); }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .photo-card { aspect-ratio: 1 / 1; }
  .footer { margin-top: 35px; font-size: 9px; }
  .lightbox { padding: 18px; }
  .lightbox-close { top: 14px; right: 14px; }
}