:root {
  --ink: #142a23;
  --paper: #f4f0e7;
  --paper-deep: #e8dfcf;
  --orange: #e35d35;
  --moss: #6d8064;
  --line: rgba(20, 42, 35, .18);
  --shadow: 0 24px 60px rgba(28, 37, 30, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}
button, input, select { font: inherit; }
button { color: inherit; }
.hero {
  min-height: 78vh;
  padding: 24px clamp(22px, 5vw, 80px) 70px;
  color: #f9f5ec;
  background:
    radial-gradient(circle at 78% 22%, rgba(227, 93, 53, .56), transparent 25%),
    linear-gradient(135deg, rgba(14, 47, 38, .94), rgba(16, 30, 26, .72)),
    var(--hero-image, linear-gradient(135deg, #173c30, #111f1b)) center/cover;
  display: flex;
  flex-direction: column;
}
.topbar { display: flex; justify-content: space-between; align-items: center; }
.brand { color: inherit; text-decoration: none; font-weight: 800; letter-spacing: .12em; }
.quiet-button {
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(255,255,255,.08);
  color: inherit;
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
}
.hero-copy { max-width: 920px; margin-top: auto; }
.eyebrow { font-size: 12px; letter-spacing: .22em; font-weight: 800; opacity: .7; }
h1 { font-size: clamp(54px, 9vw, 126px); line-height: .96; margin: 16px 0 30px; letter-spacing: -.07em; }
.lead { max-width: 650px; font-size: clamp(18px, 2vw, 26px); line-height: 1.7; opacity: .9; }
.stats { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 34px; }
.stat strong { display: block; font-size: 30px; }
.stat span { opacity: .68; font-size: 13px; }
.map-section { overflow: hidden; transition: max-height .5s ease; max-height: 680px; background: var(--ink); }
.map-section.is-collapsed { max-height: 0; }
#global-map { height: 600px; }
.map-note { margin: 0; padding: 10px 22px 14px; color: rgba(255,255,255,.7); font-size: 12px; }
.archive { padding: 92px clamp(18px, 5vw, 76px); }
.archive-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 46px; }
h2 { margin: 8px 0 0; font-size: clamp(36px, 5vw, 68px); letter-spacing: -.05em; }
.filters { display: flex; gap: 12px; flex-wrap: wrap; }
.filters label { font-size: 12px; font-weight: 700; display: grid; gap: 7px; }
.filters input, .filters select {
  min-width: 160px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 11px 12px;
  background: rgba(255,255,255,.45);
}
.album-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 20px; }
.album-card {
  display: block;
  padding: 0;
  border: 0;
  text-align: left;
  background: transparent;
  cursor: pointer;
}
.album-card:nth-child(5n+2) { transform: translateY(28px); }
.album-card:nth-child(7n+4) { transform: translateY(-12px); }
.album-cover { aspect-ratio: 16/10; overflow: hidden; background: var(--paper-deep); }
.album-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease, filter .55s ease; }
.album-card:hover img { transform: scale(1.035); filter: saturate(1.08); }
.album-meta { display: flex; justify-content: space-between; gap: 20px; padding-top: 14px; border-top: 2px solid var(--ink); }
.album-meta h3 { margin: 0; font-size: 18px; }
.album-meta p { margin: 4px 0 0; opacity: .68; font-size: 13px; }
.album-count { white-space: nowrap; font-size: 12px; padding-top: 3px; }
footer {
  padding: 34px clamp(18px, 5vw, 76px);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
}
.album-dialog, .lightbox {
  width: min(1180px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  border: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.album-dialog::backdrop, .lightbox::backdrop { background: rgba(8, 20, 16, .82); backdrop-filter: blur(8px); }
.dialog-close {
  position: fixed;
  z-index: 20;
  top: 22px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--paper);
  box-shadow: 0 6px 24px rgba(0,0,0,.18);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}
.album-hero { padding: 68px clamp(22px, 7vw, 88px) 45px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; }
.album-hero h2 { font-size: clamp(34px, 5vw, 65px); }
.album-intro { font-family: "SimSun", serif; font-size: 17px; line-height: 2; }
.album-facts { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 22px; font-size: 12px; opacity: .68; }
.album-map { height: 420px; margin: 0 clamp(22px, 7vw, 88px) 50px; }
.route-disclaimer { margin: -38px clamp(22px, 7vw, 88px) 50px; font-size: 12px; opacity: .62; }
.photo-story { padding: 0 clamp(14px, 3vw, 45px) 60px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.story-photo { border: 0; padding: 0; cursor: zoom-in; background: var(--paper-deep); overflow: hidden; }
.story-photo:nth-child(5n+1) { grid-column: span 2; }
.story-photo img { width: 100%; display: block; transition: transform .4s; }
.story-photo:hover img { transform: scale(1.015); }
.video-section { padding: 10px clamp(22px, 7vw, 88px) 80px; }
.video-section video { width: 100%; max-height: 70vh; margin-top: 18px; background: #000; }
.video-note { padding: 16px; border: 1px dashed var(--line); font-size: 13px; }
.lightbox { width: 100vw; max-width: none; height: 100vh; max-height: none; background: #081410; color: white; }
.lightbox figure { margin: 0; height: 100%; display: grid; place-items: center; padding: 34px 90px 60px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 100px); object-fit: contain; }
.lightbox figcaption { position: absolute; bottom: 18px; opacity: .68; }
.lightbox-nav { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: white; font-size: 64px; cursor: pointer; padding: 20px; }
.lightbox-nav.prev { left: 8px; }
.lightbox-nav.next { right: 8px; }
.leaflet-container { background: #d9d7cb; font-family: inherit; }
.empty { grid-column: 1/-1; padding: 60px 0; opacity: .65; }

@media (max-width: 850px) {
  .hero { min-height: 68vh; }
  .archive-head, .album-hero { display: block; }
  .filters { margin-top: 24px; }
  .album-grid { grid-template-columns: repeat(2, 1fr); }
  .album-card:nth-child(n) { transform: none; }
  .album-intro { margin-top: 26px; }
}
@media (max-width: 560px) {
  .album-grid { grid-template-columns: 1fr; }
  .archive { padding-top: 64px; }
  .filters label, .filters input, .filters select { width: 100%; }
  .photo-story { grid-template-columns: 1fr; }
  .story-photo:nth-child(n) { grid-column: auto; }
  .album-map { height: 330px; margin-inline: 14px; }
  footer { display: grid; }
  .lightbox figure { padding-inline: 15px; }
  .lightbox-nav { top: auto; bottom: 8px; font-size: 46px; }
}
