* {
  box-sizing: border-box;
}

:root {
  --ink: #20252c;
  --muted: #68717b;
  --line: #d9dee3;
  --paper: #f7f8f6;
  --surface: #ffffff;
  --accent: #a84e3b;
  --accent-soft: #f1dfda;
  --secondary: #4e8882;
  --max: 1160px;
  --radius: 8px;
}

.theme-folio { --accent: #4053a8; --accent-soft: #e5e8f7; --secondary: #c07d49; --paper: #f6f8fb; }
.theme-atlas { --accent: #2e6c4d; --accent-soft: #e0eee7; --secondary: #c3964f; --paper: #f8f7f4; }
.theme-veranda { --accent: #7e3042; --accent-soft: #f0e0e4; --secondary: #75a9a7; --paper: #fbfaf8; }
.theme-indexwall { --accent: #6d7c38; --accent-soft: #e9edda; --secondary: #a45d4c; --paper: #f7f8f5; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, Helvetica, sans-serif;
  line-height: 1.75;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner,
.container {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0;
}

.brand img {
  width: 34px;
  height: 34px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.nav a,
.menu-toggle {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  border: 0;
  background: none;
  cursor: pointer;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.hero {
  padding: 72px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.88fr);
  align-items: center;
  gap: 72px;
}

.hero-copy {
  max-width: 620px;
}

.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.eyebrow::before,
.kicker::before {
  width: 26px;
  height: 1px;
  background: currentColor;
  content: "";
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.25;
  letter-spacing: 0;
}

h1 {
  max-width: 620px;
  margin-top: 18px;
  font-size: clamp(36px, 4vw, 62px);
  font-weight: 700;
}

.hero-copy > p {
  max-width: 600px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.button.secondary {
  background: transparent;
  color: var(--accent);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.meta-chip {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.hero-media {
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 40px rgba(27, 38, 47, 0.08);
}

.media-stack {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 18px;
}

.media-stack img {
  width: auto;
  height: min(440px, 52vh);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(28, 38, 46, 0.16);
}

.media-stack img:nth-child(1) { transform: translateY(-14px); }
.media-stack img:nth-child(2) { transform: translateY(10px); }
.media-stack img:nth-child(3) { transform: translateY(-2px); }

.ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.ribbon span {
  padding: 6px 10px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 12px;
}

.section {
  padding: 72px 0;
}

.section.alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.section-heading p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.section-note {
  max-width: 680px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.feature-grid,
.route-grid,
.gallery-grid,
.faq-grid {
  display: grid;
  gap: 16px;
}

.feature-grid,
.route-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card,
.route-card,
.faq-item {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.feature-card strong,
.route-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 15px;
}

.feature-card p,
.route-card p,
.faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.route-card .route-number {
  display: block;
  margin-bottom: 18px;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.gallery-card {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.gallery-card img {
  width: auto;
  height: 340px;
  margin: 0 auto 14px;
  object-fit: contain;
}

.gallery-card figcaption {
  color: var(--muted);
  font-size: 13px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
}

.faq-item p {
  margin-top: 12px;
}

.download-band {
  padding: 42px;
  border-radius: var(--radius);
  background: var(--accent-soft);
}

.download-band h2 {
  max-width: 620px;
  font-size: clamp(24px, 3vw, 36px);
}

.download-band p {
  max-width: 680px;
  margin: 14px 0 22px;
  color: var(--muted);
}

.article {
  max-width: 840px;
  padding: 72px 0;
}

.article h1 {
  max-width: 760px;
  font-size: clamp(34px, 5vw, 56px);
}

.article-lead {
  margin: 20px 0 42px;
  color: var(--muted);
  font-size: 18px;
}

.article h2 {
  margin-top: 42px;
  font-size: 28px;
}

.article h3 {
  margin-top: 28px;
  font-size: 20px;
}

.article p,
.article li {
  color: #4e5760;
  font-size: 16px;
}

.article ul,
.article ol {
  padding-left: 22px;
}

.callout {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  background: var(--surface);
  color: #4e5760;
}

.site-footer {
  padding: 32px 0 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.footer-inner {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.footer-inner p {
  margin: 0;
}

@media (max-width: 820px) {
  .header-inner,
  .container {
    width: min(var(--max), calc(100% - 32px));
  }

  .header-inner {
    min-height: 64px;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav {
    position: absolute;
    top: 64px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 14px 30px rgba(30, 40, 48, 0.12);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 10px 12px;
  }

  .hero {
    padding: 28px 0 24px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .hero-media {
    min-height: 208px;
    padding: 12px;
  }

  .media-stack {
    gap: 8px;
  }

  .media-stack img {
    height: min(215px, 52vw);
  }

  .ribbon {
    margin-top: 12px;
  }

  .section {
    padding: 52px 0;
  }

  .section-heading {
    display: block;
  }

  .section-heading p {
    margin-top: 10px;
  }

  .feature-grid,
  .route-grid,
  .gallery-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .gallery-card img {
    height: min(390px, 88vw);
  }

  .download-band {
    padding: 26px;
  }

  .article {
    padding: 48px 0;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 34px;
  }

  .hero-copy > p {
    font-size: 16px;
  }

  .hero-actions .button {
    min-width: 132px;
  }
}
