:root {
  --bg: #fbfaf8;
  --bg-alt: #f2efea;
  --text: #23211e;
  --text-soft: #6f6a63;
  --line: #e5e0d8;
  --accent: #a3764f;
  --radius: 10px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 {
  font-family: Georgia, "Songti SC", "Noto Serif SC", serif;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 248, 0.88);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(35, 33, 30, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand { display: flex; align-items: center; gap: 10px; }

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  font-size: 12px;
  letter-spacing: 1px;
}

.brand-text {
  font-family: Georgia, "Songti SC", serif;
  font-size: 17px;
  letter-spacing: .5px;
}

.nav { display: flex; gap: 28px; font-size: 15px; color: var(--text-soft); }
.nav a { transition: color .2s ease; }
.nav a:hover { color: var(--text); }

/* ---------- hero ---------- */
.hero {
  padding: 96px 0 88px;
  background:
    radial-gradient(900px 380px at 82% 8%, rgba(163, 118, 79, 0.13), transparent 65%),
    radial-gradient(700px 340px at 10% 92%, rgba(120, 140, 150, 0.14), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}

.hero-eyebrow {
  margin: 0 0 18px;
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--accent);
}

.hero h1 {
  font-size: clamp(30px, 5vw, 48px);
  max-width: 15em;
  margin-bottom: 20px;
}

.hero-sub {
  margin: 0 0 34px;
  max-width: 34em;
  color: var(--text-soft);
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 15px;
  transition: transform .2s ease, opacity .2s ease;
}

.btn:hover { transform: translateY(-2px); opacity: .9; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

/* ---------- sections ---------- */
.section { padding: 78px 0; }

.section-alt { background: var(--bg-alt); }

.section-head { margin-bottom: 30px; }

.section-head h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 10px; }

.section-desc { margin: 0; color: var(--text-soft); font-size: 15px; }

/* ---------- filters ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.filter {
  padding: 8px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: all .2s ease;
}

.filter:hover { color: var(--text); border-color: #cfc7bb; }

.filter.is-active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* ---------- gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  transition: transform .3s ease, box-shadow .3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(35, 33, 30, 0.1);
}

.card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--bg-alt);
  transition: transform .5s ease;
}

.card:hover img { transform: scale(1.04); }

.card figcaption {
  padding: 14px 16px 16px;
}

.card figcaption h3 { font-size: 16px; font-weight: 600; }

.card figcaption span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--text-soft);
}

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

/* ---------- about ---------- */
.about {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: center;
}

.about-photo img {
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about-text h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 16px; }
.about-text p { color: var(--text-soft); margin: 0 0 14px; }

.stats {
  display: flex;
  gap: 40px;
  list-style: none;
  padding: 22px 0 0;
  margin: 22px 0 0;
  border-top: 1px solid var(--line);
}

.stats li { display: flex; flex-direction: column; }

.stats strong {
  font-family: Georgia, "Songti SC", serif;
  font-size: 24px;
  color: var(--text);
}

.stats span { font-size: 13px; color: var(--text-soft); }

/* ---------- contact ---------- */
.contact { text-align: center; }
.contact h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 12px; }
.contact p { color: var(--text-soft); margin: 0 0 26px; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px 0;
  background: var(--bg);
}

.footer-inner { text-align: center; }

.footer-brand {
  font-family: Georgia, "Songti SC", serif;
  font-size: 16px;
  margin: 0 0 6px;
}

.footer-meta { margin: 0 0 12px; font-size: 14px; color: var(--text-soft); }

.footer-icp { margin: 0; font-size: 13px; color: var(--text-soft); }
.footer-icp a { border-bottom: 1px solid var(--line); }
.icp-tip { color: #b0a99f; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px 24px;
  background: rgba(20, 19, 17, 0.92);
}

.lightbox.is-open { display: flex; }

.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 78vh;
  border-radius: 6px;
}

.lightbox-caption { color: #d9d4cc; font-size: 14px; margin: 0; }

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 26px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease;
}

.lightbox-close:hover { background: rgba(255, 255, 255, 0.24); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .about-photo { max-width: 320px; }
}

@media (max-width: 620px) {
  .header-inner { height: 60px; }
  .nav { gap: 18px; font-size: 14px; }
  .brand-text { font-size: 15px; }
  .hero { padding: 68px 0 60px; }
  .section { padding: 56px 0; }
  .gallery { grid-template-columns: 1fr; gap: 18px; }
  .stats { gap: 26px; }
}
