:root {
  --bg: #eef1f3;
  --surface: #ffffff;
  --ink: #1f2328;
  --muted: #687076;
  --line: #dcdfe3;
  --soft-line: #eceff2;
  --blue: #2761ad;
  --red: #d84d4d;
  --green: #3d7f5f;
  --yellow: #a87926;
  --shadow: 0 18px 45px rgba(31, 35, 40, 0.1);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    "LXGW WenKai Screen",
    "PingFang SC",
    "Microsoft YaHei",
    system-ui,
    sans-serif;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 58px;
  padding: 10px clamp(16px, 4vw, 44px);
  border-bottom: 1px solid var(--soft-line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
}

.site-name {
  font-weight: 800;
}

.page-nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  white-space: nowrap;
}

.page-nav a {
  min-height: 34px;
  padding: 7px 11px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
}

.page-nav a:hover {
  background: var(--surface);
  color: var(--blue);
}

.page-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(28px, 5vw, 52px) 0 20px;
}

.kicker {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p,
dl,
dd {
  margin: 0;
}

h1 {
  font-size: clamp(38px, 4.4vw, 58px);
  line-height: 1.08;
}

h2 {
  font-size: 24px;
  line-height: 1.22;
}

.quote {
  margin-top: 12px;
  color: var(--muted);
  font-size: 17px;
}

.summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(86px, 1fr));
  gap: 10px;
  min-width: min(430px, 100%);
}

.summary div {
  min-height: 76px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 22px rgba(31, 35, 40, 0.05);
}

.summary dt {
  color: var(--blue);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.summary dd {
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
}

.map-panel,
.gallery-section {
  margin: 18px 0;
  border: 1px solid rgba(31, 35, 40, 0.1);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border-bottom: 1px solid var(--soft-line);
}

.section-count {
  color: var(--muted);
  font-size: 14px;
}

.map-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  height: clamp(560px, 72vh, 780px);
  min-height: 0;
  overflow: hidden;
}

.footprint-map {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 20%, rgba(39, 97, 173, 0.12), transparent 30%),
    radial-gradient(circle at 78% 68%, rgba(61, 127, 95, 0.1), transparent 32%),
    linear-gradient(180deg, #fbfcfd, #f3f6f8);
}

.photo-bubbles {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.photo-bubble {
  position: absolute;
  display: block;
  width: 62px;
  height: 62px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-50%, -112%);
}

.photo-bubble::after {
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 10px;
  height: 10px;
  border-right: 1px solid rgba(31, 35, 40, 0.18);
  border-bottom: 1px solid rgba(31, 35, 40, 0.18);
  background: #fff;
  content: "";
  transform: translateX(-50%) rotate(45deg);
}

.photo-bubble-stack {
  display: block;
  position: relative;
  width: 62px;
  height: 62px;
}

.photo-bubble-frame {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 7px;
  background: #f7f8fa;
  box-shadow: 0 10px 24px rgba(31, 35, 40, 0.22);
  overflow: hidden;
}

.photo-bubble-frame:nth-child(1) {
  z-index: 3;
}

.photo-bubble-frame:nth-child(2) {
  z-index: 2;
  transform: translate(5px, 4px) rotate(5deg);
}

.photo-bubble-frame:nth-child(3) {
  z-index: 1;
  transform: translate(-5px, 5px) rotate(-6deg);
}

.photo-bubble-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-bubble-empty {
  padding: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.photo-bubble-count {
  position: absolute;
  right: -7px;
  bottom: -7px;
  z-index: 4;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 16px;
  text-align: center;
}

.photo-bubble.is-hidden {
  display: none;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--soft-line);
}

.gallery-card {
  min-height: 226px;
  border: 0;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.gallery-card.has-photo {
  position: relative;
  overflow: hidden;
  color: #fff;
  outline: 0 solid transparent;
  transition:
    outline-color 160ms ease,
    outline-width 160ms ease;
}

.gallery-card.has-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-card.has-photo::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.68));
}

.gallery-card.is-highlighted {
  outline: 4px solid var(--blue);
  outline-offset: -4px;
}

.gallery-info {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100%;
  min-height: 226px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
}

.gallery-card:not(.has-photo) .gallery-info {
  justify-content: space-between;
  color: var(--ink);
}

.gallery-card:not(.has-photo) .gallery-info::before {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  content: "相";
  font-weight: 800;
}

.gallery-info strong {
  display: block;
  font-size: 18px;
  line-height: 1.35;
}

.gallery-info span {
  display: block;
  margin-top: 7px;
  color: inherit;
  font-size: 13px;
  opacity: 0.78;
}

.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 38px;
  color: var(--muted);
  font-size: 14px;
}

.page-footer a {
  color: var(--blue);
}

.lightbox {
  width: min(980px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: #111;
  color: #fff;
  overflow: hidden;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.lightbox figure {
  margin: 0;
}

.lightbox img {
  display: block;
  width: 100%;
  max-height: min(72vh, 760px);
  object-fit: contain;
  background: #111;
}

.lightbox figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.lightbox figcaption span {
  color: rgba(255, 255, 255, 0.72);
}

.lightbox-close,
.lightbox-step {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.56);
  color: #fff;
}

.lightbox-close {
  top: 12px;
  right: 12px;
}

.lightbox-step {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-step.prev {
  left: 12px;
}

.lightbox-step.next {
  right: 12px;
}

@media (max-width: 980px) {
  .intro {
    display: block;
  }

  .summary {
    margin-top: 18px;
  }

  .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .page-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-nav {
    width: 100%;
  }

  .summary,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .footprint-map {
    height: 460px;
  }

  .lightbox figcaption {
    display: block;
  }
}
