:root {
  --bg: #faf8f4;
  --bg-alt: #f2eee6;
  --ink: #23272b;
  --muted: #6b7280;
  --accent: #1f5e4a;
  --line: #e5dfd3;
  --wrap: 1080px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* 顶栏 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 248, 244, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
  color: var(--ink);
}

.brand:hover { text-decoration: none; }

.site-nav a {
  color: var(--muted);
  font-size: 15px;
  margin-left: 28px;
}

.site-nav a:hover { color: var(--accent); }

/* 首屏 */
.hero {
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 13px;
  letter-spacing: .3em;
  color: var(--accent);
}

.hero h1 {
  margin: 0;
  font-size: 56px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: .02em;
}

.lede {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 17px;
}

/* 区块 */
.section { padding: 80px 0; }

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head { margin-bottom: 40px; }

.section-head h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: .06em;
}

.section-head h2::after {
  content: "";
  display: block;
  width: 36px;
  height: 2px;
  margin-top: 14px;
  background: var(--accent);
}

.section-sub {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
}

/* 相册 */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.photo {
  margin: 0;
  cursor: zoom-in;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: box-shadow .25s ease, transform .25s ease;
}

.photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e9e4da;
  transition: transform .4s ease;
}

.photo:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(35, 39, 43, .1);
}

.photo:hover img { transform: scale(1.03); }

.photo figcaption {
  padding: 14px 16px 16px;
  border-top: 1px solid var(--line);
}

.cap-title {
  display: block;
  font-size: 16px;
  font-weight: 600;
}

.cap-meta {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
}

/* 时间线 */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--line);
}

.timeline li {
  position: relative;
  padding: 0 0 36px 32px;
}

.timeline li:last-child { padding-bottom: 0; }

.timeline li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 10px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline .year {
  display: inline-block;
  font-size: 13px;
  letter-spacing: .18em;
  color: var(--accent);
  margin-bottom: 4px;
}

.tl-body h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 600;
}

.tl-body p {
  margin: 0;
  color: var(--muted);
  max-width: 640px;
}

/* 关于 */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.about-grid p {
  margin: 0 0 18px;
  color: #3f4549;
}

/* 页脚 */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 36px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

.site-footer p { margin: 0 0 10px; }

.footer-links a { color: var(--muted); }

.footer-links .sep { margin: 0 10px; color: var(--line); }

.footer-icp {
  margin-top: 22px;
  font-size: 15px;
}

.footer-icp a {
  color: var(--ink);
  letter-spacing: .02em;
}

.footer-note,
.footer-copy {
  font-size: 13px;
  color: #8a8f95;
}

.footer-copy { margin-top: 4px; }

/* 灯箱 */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background: rgba(18, 20, 22, .93);
}

.lightbox.open { display: flex; }

.lb-img {
  max-width: 92vw;
  max-height: 78vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
}

.lb-caption {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  color: #d9dbdd;
  font-size: 14px;
  letter-spacing: .04em;
}

.lightbox button {
  position: absolute;
  background: none;
  border: 0;
  color: #e8eaec;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  padding: 10px 16px;
  opacity: .75;
  transition: opacity .2s;
}

.lightbox button:hover { opacity: 1; }

.lb-close { top: 12px; right: 16px; font-size: 30px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

body.lb-open { overflow: hidden; }

/* 响应式 */
@media (max-width: 860px) {
  .hero { padding: 64px 0 56px; }
  .hero h1 { font-size: 40px; }
  .section { padding: 60px 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .about-grid { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 540px) {
  .hero h1 { font-size: 32px; }
  .lede { font-size: 16px; }
  .gallery { grid-template-columns: 1fr; }
  .brand { font-size: 15px; }
  .site-nav a { margin-left: 12px; font-size: 13px; }
  .lightbox { padding: 16px; }
  .lb-prev, .lb-next { display: none; }
}
