* {
  box-sizing: border-box;
}

:root {
  --accent: #e43d59;
  --accent-2: #00a8b5;
  --marker: #b7e34b;
  --ink: #202020;
  --paper: #f2efe7;
  --surface: #292a2d;
  --max: 1180px;
}

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.72;
  letter-spacing: 0;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 2px solid var(--ink);
}

.header-inner,
.hero-inner,
.section-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border: 2px solid var(--ink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--accent);
}

.site-nav .nav-download,
.primary-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 9px 22px;
  color: #fff;
  background: var(--accent);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink);
  background: var(--marker);
  color: var(--ink);
  font-size: 21px;
}

.hero {
  overflow: hidden;
  border-bottom: 2px solid var(--ink);
}

.hero-inner {
  min-height: 590px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(460px, 1.08fr);
  align-items: center;
  gap: 56px;
  padding: 42px 0;
}

.eyebrow,
.mini-label {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
  max-width: 10em;
  margin-bottom: 18px;
  font-size: 50px;
  line-height: 1.14;
}

.hero-copy > p {
  max-width: 560px;
  font-size: 17px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 26px 0 24px;
}

.secondary-link,
.text-link {
  color: var(--accent-2);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.hero-facts {
  display: flex;
  gap: 28px;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--ink);
}

.hero-facts div {
  min-width: 120px;
}

.hero-facts dt {
  font-size: 12px;
  color: var(--accent-2);
}

.hero-facts dd {
  margin: 0;
  font-weight: 800;
}

.hero-media {
  position: relative;
  min-height: 500px;
  display: grid;
  align-items: center;
  justify-content: center;
}

.hero-media .shot {
  position: absolute;
  width: 190px;
  margin: 0;
  background: var(--surface);
  border: 2px solid var(--ink);
  box-shadow: 9px 9px 0 var(--ink);
}

.hero-media .shot img {
  width: 100%;
  max-width: 400px;
  height: auto;
}

.hero-media figcaption {
  padding: 5px 9px;
  color: var(--ink);
  background: var(--marker);
  border-top: 2px solid var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.media-rail {
  position: absolute;
  inset: 26px 8px;
  border: 2px solid var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px;
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 900;
}

.hero-media-dossier .shot-a { left: 5%; top: 60px; transform: rotate(-3deg); }
.hero-media-dossier .shot-b { left: 34%; top: 18px; z-index: 3; }
.hero-media-dossier .shot-c { right: 2%; top: 76px; transform: rotate(3deg); }

.hero-media-ribbon .media-rail { transform: skewY(-5deg); background: var(--marker); }
.hero-media-ribbon .shot-a { left: 3%; top: 100px; }
.hero-media-ribbon .shot-b { left: 34%; top: 36px; z-index: 3; transform: rotate(-4deg); }
.hero-media-ribbon .shot-c { right: 1%; top: 88px; transform: rotate(5deg); }

.hero-media-compass .media-rail { border-radius: 50%; inset: 35px; }
.hero-media-compass .shot-a { left: 3%; top: 72px; transform: rotate(-6deg); }
.hero-media-compass .shot-b { left: 36%; top: 24px; z-index: 3; }
.hero-media-compass .shot-c { right: 0; top: 110px; transform: rotate(6deg); }

.hero-media-tower .media-rail { inset: 15px 70px; background: var(--marker); }
.hero-media-tower .shot-a { left: 8%; top: 125px; }
.hero-media-tower .shot-b { left: 37%; top: 18px; z-index: 3; }
.hero-media-tower .shot-c { right: 4%; top: 80px; }

.hero-media-map .media-rail { inset: 55px 0; border-style: dashed; }
.hero-media-map .shot-a { left: 2%; top: 45px; transform: rotate(4deg); }
.hero-media-map .shot-b { left: 35%; top: 98px; z-index: 3; }
.hero-media-map .shot-c { right: 1%; top: 30px; transform: rotate(-4deg); }

.band {
  padding: 68px 0;
  border-bottom: 2px solid var(--ink);
}

.band:nth-of-type(even) {
  background: var(--surface);
}

.section-heading {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 30px;
}

.section-heading h2,
.bottom-action h2,
.split-links h2 {
  margin-bottom: 0;
  font-size: 32px;
  line-height: 1.2;
}

.section-index {
  color: var(--accent);
  font-weight: 900;
}

.category-line {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 2px solid var(--ink);
}

.category-line span {
  padding: 24px 12px;
  border-right: 1px solid var(--ink);
  text-align: center;
  font-weight: 800;
}

.category-line span:last-child {
  border-right: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 2px solid var(--ink);
}

.feature-grid article {
  min-height: 210px;
  padding: 26px;
  border-right: 1px solid var(--ink);
}

.feature-grid article:last-child {
  border-right: 0;
}

.feature-grid strong {
  display: block;
  margin-bottom: 14px;
  font-size: 20px;
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.gallery-strip figure {
  margin: 0;
  padding: 18px;
  background: var(--surface);
  border: 2px solid var(--ink);
}

.gallery-strip img {
  width: auto;
  max-width: min(100%, 400px);
  height: 400px;
  margin: 0 auto;
  object-fit: contain;
}

.gallery-strip figcaption {
  padding-top: 14px;
  text-align: center;
}

.step-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 2px solid var(--ink);
}

.step-track li {
  min-height: 150px;
  padding: 22px;
  border-right: 1px solid var(--ink);
  font-weight: 700;
}

.step-track li:last-child { border-right: 0; }
.step-track b { display: block; color: var(--accent); font-size: 28px; }

.split-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 2px solid var(--ink);
}

.split-links > div {
  padding: 34px;
}

.split-links > div + div {
  border-left: 2px solid var(--ink);
  background: var(--marker);
}

.faq-short {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

details {
  background: var(--surface);
  border: 2px solid var(--ink);
}

summary {
  cursor: pointer;
  padding: 18px;
  font-weight: 800;
}

details p {
  padding: 0 18px 18px;
}

.bottom-action {
  padding: 70px 0;
  color: #fff;
  background: var(--ink);
  text-align: center;
}

.bottom-action span { color: var(--marker); font-weight: 900; }
.bottom-action h2 { margin: 10px 0 25px; }
.bottom-action .primary-button { border-color: #fff; box-shadow: 4px 4px 0 #fff; }

.subhero {
  padding: 70px 0 54px;
  border-bottom: 2px solid var(--ink);
  background: var(--marker);
}

.subhero h1 {
  max-width: 820px;
  margin-bottom: 16px;
  font-size: 44px;
  line-height: 1.2;
}

.subhero p {
  max-width: 760px;
  font-size: 17px;
}

.article-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 54px;
  padding-top: 60px;
  padding-bottom: 80px;
}

.article-index {
  position: sticky;
  top: 100px;
  align-self: start;
  display: grid;
  border-top: 4px solid var(--accent);
}

.article-index strong,
.article-index a {
  padding: 10px 0;
  border-bottom: 1px solid var(--ink);
  text-decoration: none;
}

.prose {
  max-width: 780px;
}

.prose section {
  margin-bottom: 46px;
  scroll-margin-top: 100px;
}

.prose h2,
.faq-intro h2,
.support-band h2 {
  margin-bottom: 16px;
  font-size: 28px;
}

.prose p,
.faq-page p {
  font-size: 16px;
}

.faq-page {
  padding-top: 58px;
  padding-bottom: 80px;
}

.faq-intro {
  max-width: 800px;
  margin-bottom: 30px;
}

.faq-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

.faq-item div {
  border-top: 1px solid var(--ink);
}

.support-band {
  margin-top: 46px;
  padding: 34px;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-left: 10px solid var(--accent);
}

.site-footer {
  padding: 42px 20px;
  color: #fff;
  background: var(--ink);
  text-align: center;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  color: var(--marker);
  font-weight: 900;
}

.site-footer p {
  margin: 12px auto;
}

.theme-ribbon .hero { background: var(--paper); }
.theme-ribbon .feature-band { background: var(--marker); }
.theme-compass { color: #f6f2e7; background: var(--surface); }
.theme-compass .site-header,
.theme-compass .band:nth-of-type(even),
.theme-compass .gallery-strip figure,
.theme-compass details,
.theme-compass .support-band { color: var(--ink); background: var(--paper); }
.theme-compass .hero { background: var(--surface); }
.theme-compass .category-band,
.theme-compass .feature-band { color: #f6f2e7; }
.theme-tower .gallery-band { background: var(--marker); }
.theme-map .steps-band { background: var(--marker); }

@media (max-width: 900px) {
  .menu-button { display: inline-grid; place-items: center; }
  .site-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 20px;
    right: 20px;
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border: 2px solid var(--ink);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 8px; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 32px 0 20px;
  }
  .hero-copy { order: 1; }
  .hero-media { order: 2; min-height: 360px; }
  .hero h1 { font-size: 38px; }
  .hero-media .shot { width: 132px; box-shadow: 5px 5px 0 var(--ink); }
  .hero-media-dossier .shot-a,
  .hero-media-ribbon .shot-a,
  .hero-media-compass .shot-a,
  .hero-media-tower .shot-a,
  .hero-media-map .shot-a { left: 2%; top: 55px; }
  .hero-media-dossier .shot-b,
  .hero-media-ribbon .shot-b,
  .hero-media-compass .shot-b,
  .hero-media-tower .shot-b,
  .hero-media-map .shot-b { left: calc(50% - 66px); top: 15px; }
  .hero-media-dossier .shot-c,
  .hero-media-ribbon .shot-c,
  .hero-media-compass .shot-c,
  .hero-media-tower .shot-c,
  .hero-media-map .shot-c { right: 2%; top: 70px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid article:nth-child(2) { border-right: 0; }
  .feature-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--ink); }
  .category-line { grid-template-columns: 1fr 1fr; }
  .category-line span { border-bottom: 1px solid var(--ink); }
  .gallery-strip { grid-template-columns: 1fr; }
  .step-track { grid-template-columns: 1fr 1fr; }
  .step-track li:nth-child(2) { border-right: 0; }
  .step-track li:nth-child(-n+2) { border-bottom: 1px solid var(--ink); }
  .article-layout { grid-template-columns: 1fr; gap: 30px; }
  .article-index { position: static; }
}

@media (max-width: 560px) {
  .header-inner,
  .hero-inner,
  .section-inner { width: min(100% - 28px, var(--max)); }
  .brand img { width: 38px; height: 38px; }
  .hero-inner { min-height: 0; }
  .hero h1 { max-width: 100%; font-size: 33px; }
  .hero-copy > p { font-size: 15px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 14px; margin: 20px 0; }
  .hero-facts { gap: 14px; }
  .hero-facts div { min-width: 0; }
  .hero-media { min-height: 250px; overflow: hidden; }
  .hero-media .shot { width: 98px; }
  .hero-media-dossier .shot-a,
  .hero-media-ribbon .shot-a,
  .hero-media-compass .shot-a,
  .hero-media-tower .shot-a,
  .hero-media-map .shot-a { top: 35px; }
  .hero-media-dossier .shot-b,
  .hero-media-ribbon .shot-b,
  .hero-media-compass .shot-b,
  .hero-media-tower .shot-b,
  .hero-media-map .shot-b { left: calc(50% - 49px); top: 5px; }
  .hero-media-dossier .shot-c,
  .hero-media-ribbon .shot-c,
  .hero-media-compass .shot-c,
  .hero-media-tower .shot-c,
  .hero-media-map .shot-c { top: 40px; }
  .media-rail { inset: 25px 0; }
  .band { padding: 48px 0; }
  .section-heading h2,
  .bottom-action h2,
  .split-links h2 { font-size: 27px; }
  .feature-grid,
  .category-line,
  .step-track,
  .split-links,
  .faq-short,
  .faq-list { grid-template-columns: 1fr; }
  .feature-grid article,
  .category-line span,
  .step-track li { border-right: 0; border-bottom: 1px solid var(--ink); }
  .feature-grid article:last-child,
  .category-line span:last-child,
  .step-track li:last-child { border-bottom: 0; }
  .split-links > div + div { border-top: 2px solid var(--ink); border-left: 0; }
  .gallery-strip img { height: 340px; }
  .subhero { padding: 48px 0 36px; }
  .subhero h1 { font-size: 34px; }
  .article-layout,
  .faq-page { padding-top: 40px; padding-bottom: 55px; }
}
