:root {
  --ink: #111114;
  --muted: #6f7278;
  --line: rgba(17, 17, 20, 0.12);
  --paper: #f7f6f2;
  --soft: #ece7df;
  --night: #0d1015;
  --cinnabar: #a83a2a;
  --jade: #5b7d76;
  --gold: #c7a45a;
  --blue: #3f6e9f;
  --radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 clamp(18px, 4vw, 54px);
  color: rgba(255, 255, 255, 0.92);
  background: rgba(12, 12, 14, 0.42);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(22px) saturate(140%);
}

.brand,
.top-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 9px;
  font-size: 14px;
  font-weight: 650;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: conic-gradient(from 160deg, var(--cinnabar), var(--gold), var(--jade), var(--cinnabar));
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.2);
}

.top-nav {
  gap: clamp(16px, 3vw, 34px);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.76);
}

.top-nav a {
  transition: color 180ms ease;
}

.top-nav a:hover {
  color: white;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: white;
  background: var(--night);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media img {
  filter: saturate(1.05) contrast(1.02);
  transform: scale(1.02);
}

.hero-shade {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.28) 45%, rgba(0, 0, 0, 0.68) 100%),
    radial-gradient(circle at 74% 28%, rgba(199, 164, 90, 0.25), transparent 34%);
}

.hero-content {
  position: relative;
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
  padding: 124px 0 86px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(74px, 16vw, 176px);
  font-weight: 760;
  line-height: 0.9;
}

.hero-copy {
  max-width: 760px;
  margin: 26px auto 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(18px, 2.5vw, 28px);
  line-height: 1.42;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 650;
}

.primary-link {
  color: var(--ink);
  background: white;
}

.secondary-link {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.metric {
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: clamp(28px, 5vw, 52px) 16px;
  background: rgba(255, 255, 255, 0.56);
  text-align: center;
}

.metric strong {
  font-size: clamp(24px, 4vw, 44px);
  line-height: 1;
}

.metric span {
  color: var(--muted);
  font-size: 14px;
}

.gallery-section,
.landmark-section,
.route-section {
  padding: clamp(76px, 10vw, 132px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 1120px;
  margin: 0 auto 34px;
}

.section-heading.compact {
  margin-bottom: 26px;
}

.section-heading h2,
.route-copy h2 {
  margin: 0;
  font-size: clamp(42px, 7vw, 92px);
  line-height: 1;
}

.photo-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(210px, 24vw);
  gap: 14px;
}

.photo-tile {
  position: relative;
  margin: 0;
  min-height: 220px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #d8d5cf;
  box-shadow: 0 20px 50px rgba(17, 17, 20, 0.12);
}

.photo-tile.large {
  grid-column: span 2;
  grid-row: span 2;
}

.photo-tile.tall {
  grid-row: span 2;
}

.photo-tile.wide {
  grid-column: span 2;
}

.photo-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.62));
}

.photo-tile img {
  transition: transform 700ms ease;
}

.photo-tile:hover img {
  transform: scale(1.045);
}

.photo-tile figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 17px;
  z-index: 1;
  display: grid;
  gap: 4px;
  color: white;
}

.photo-tile span {
  font-size: 20px;
  font-weight: 720;
}

.photo-tile small {
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
}

.landmark-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(236, 231, 223, 0.92)),
    var(--soft);
}

.landmark-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: clamp(18px, 4vw, 42px);
  align-items: start;
}

.landmark-menu {
  position: sticky;
  top: 76px;
  display: grid;
  gap: 10px;
}

.landmark-button {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  color: rgba(17, 17, 20, 0.72);
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  text-align: left;
  border: 1px solid rgba(17, 17, 20, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.landmark-button:hover {
  transform: translateX(4px);
  color: var(--ink);
  border-color: rgba(17, 17, 20, 0.2);
  background: white;
}

.landmark-button.is-active {
  color: white;
  border-color: transparent;
  background: var(--ink);
}

.landmark-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(300px, 1fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: center;
  min-height: 520px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(17, 17, 20, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 24px 70px rgba(17, 17, 20, 0.11);
}

.landmark-image {
  min-height: 464px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #d8d2c8;
}

.landmark-image img {
  transition: opacity 260ms ease, transform 700ms ease;
}

.landmark-panel.is-changing .landmark-image img,
.landmark-panel.is-changing .landmark-content {
  opacity: 0;
}

.landmark-content {
  transition: opacity 220ms ease;
}

.place-kicker {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 780;
  text-transform: uppercase;
}

.landmark-content h3 {
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
}

.landmark-content p:not(.place-kicker) {
  margin: 22px 0 0;
  color: #3f4249;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.72;
}

.place-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 34px 0 0;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 20, 0.1);
  border-radius: var(--radius);
  background: rgba(17, 17, 20, 0.1);
}

.place-facts div {
  min-width: 0;
  padding: 17px 14px;
  background: rgba(255, 255, 255, 0.68);
}

.place-facts dt {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
}

.place-facts dd {
  margin: 0;
  font-size: 15px;
  font-weight: 680;
  line-height: 1.35;
}

.route-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: start;
  color: white;
  background:
    linear-gradient(125deg, rgba(13, 16, 21, 0.95), rgba(38, 48, 54, 0.84)),
    url("https://commons.wikimedia.org/wiki/Special:FilePath/Beijing_Shichahai.jpg?width=1800") center/cover;
}

.route-copy p:not(.eyebrow) {
  max-width: 640px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
}

.route-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.route-list li {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 86px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.route-list span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 760;
}

.route-list strong {
  font-size: clamp(17px, 2vw, 24px);
  line-height: 1.35;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.62);
  background: #0d1015;
  font-size: 12px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  margin-left: 10px;
  color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 900px) {
  .hero {
    min-height: 88vh;
  }

  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(190px, 42vw);
  }

  .landmark-shell,
  .landmark-panel,
  .route-section {
    grid-template-columns: 1fr;
  }

  .landmark-menu {
    position: static;
    grid-template-columns: repeat(5, minmax(160px, 1fr));
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .landmark-button {
    text-align: center;
    white-space: nowrap;
  }

  .landmark-button:hover {
    transform: translateY(-2px);
  }

  .landmark-panel {
    min-height: unset;
  }

  .landmark-image {
    min-height: 360px;
  }

  .site-footer {
    display: grid;
  }
}

@media (max-width: 640px) {
  .site-header {
    height: 48px;
  }

  .top-nav {
    gap: 14px;
  }

  .hero-content {
    width: min(100% - 28px, 720px);
    padding-bottom: 60px;
  }

  .hero-actions {
    align-items: stretch;
  }

  .primary-link,
  .secondary-link {
    width: 100%;
  }

  .intro-band,
  .place-facts {
    grid-template-columns: 1fr;
  }

  .photo-grid {
    grid-template-columns: 1fr;
  }

  .photo-tile.large,
  .photo-tile.tall,
  .photo-tile.wide {
    grid-column: span 1;
    grid-row: span 1;
  }

  .landmark-menu {
    grid-template-columns: repeat(5, minmax(138px, 1fr));
  }

  .landmark-panel {
    padding: 14px;
  }

  .landmark-image {
    min-height: 280px;
  }

  .route-list li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
