:root {
  --paper: #f6f7f8;
  --white: #ffffff;
  --ink: #202124;
  --muted: #62676f;
  --line: #c9cdd2;
  --green: #0a8f83;
  --green-dark: #06665f;
  --pink: #d93b89;
  --amber: #f2b705;
  --max: 1180px;
  --header-height: 68px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  border-bottom: 1px solid var(--ink);
  background: rgba(246, 247, 248, 0.96);
}

.header-inner,
.hero-inner,
.section-inner,
.footer-inner,
.page-inner {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 18px;
  font-weight: 800;
}

.brand img {
  border: 1px solid var(--ink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a.is-active {
  border-bottom-color: var(--green);
  color: var(--green-dark);
}

.site-nav .nav-download {
  margin-left: 8px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
}

.site-nav .nav-download:hover {
  border-bottom-color: var(--ink);
  background: var(--green);
  color: var(--white);
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  border: 1px solid var(--ink);
  background: var(--white);
  padding: 11px 9px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: var(--ink);
}

.hero {
  border-bottom: 1px solid var(--ink);
  background-color: var(--paper);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 34px 34px;
}

.hero-inner {
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(500px, 1.1fr);
  gap: 64px;
  align-items: center;
  padding-block: 46px;
}

.hero-copy {
  padding: 24px 0 20px;
}

.eyebrow,
.section-index,
.tile-code,
.route-code {
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.eyebrow span:first-child {
  padding: 5px 7px;
  background: var(--green);
  color: var(--white);
}

.eyebrow span:last-child {
  color: var(--muted);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
  max-width: 650px;
  margin-bottom: 18px;
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1.02;
  font-weight: 900;
}

.hero h1 span:first-child {
  color: var(--green-dark);
}

.hero h1 span {
  display: block;
}

.hero h1 span:last-child {
  margin-left: 0;
}

.hero-lead {
  max-width: 560px;
  margin-bottom: 24px;
  color: #3f444a;
  font-size: 17px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 23px;
  border: 1px solid var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.button-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 5px 5px 0 var(--ink);
}

.button-primary:hover {
  background: var(--green-dark);
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--ink);
}

.text-link,
.section-link {
  font-size: 14px;
  font-weight: 800;
  border-bottom: 1px solid var(--ink);
}

.text-link:hover,
.section-link:hover {
  color: var(--pink);
  border-color: var(--pink);
}

.hero-notes {
  max-width: 560px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  border-top: 1px solid var(--ink);
}

.hero-notes div {
  padding: 13px 12px 0 0;
  border-right: 1px solid var(--line);
}

.hero-notes div + div {
  padding-left: 14px;
}

.hero-notes div:last-child {
  border-right: 0;
}

.hero-notes dt {
  color: var(--pink);
  font-size: 11px;
  font-weight: 900;
}

.hero-notes dd {
  margin: 2px 0 0;
  font-size: 13px;
  font-weight: 700;
}

.hero-media {
  min-height: 454px;
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(180px, 0.9fr);
  gap: 16px;
  align-items: center;
}

.screen-rail {
  display: grid;
  gap: 16px;
}

.screen-tile {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--white);
  box-shadow: 6px 6px 0 rgba(32, 33, 36, 0.18);
}

.screen-tile .tile-code {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  padding: 7px 8px;
  background: var(--ink);
  color: var(--white);
}

.screen-tile img {
  width: 100%;
  max-width: 400px;
  height: 188px;
  margin: 0 auto;
  object-fit: contain;
  background: #eef0f2;
}

.screen-tile-primary img {
  height: 402px;
}

.screen-tile figcaption {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 7px 10px;
  border-top: 1px solid var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.screen-tile-primary figcaption {
  background: var(--amber);
}

.screen-tile-open figcaption {
  background: #f7d9e9;
}

.section {
  padding: 74px 0;
  border-bottom: 1px solid var(--ink);
}

.section:nth-of-type(odd) {
  background: var(--white);
}

.section-heading {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: end;
  gap: 20px;
  margin-bottom: 34px;
  padding-bottom: 13px;
  border-bottom: 3px solid var(--ink);
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: 34px;
  line-height: 1.15;
}

.section-index {
  color: var(--green-dark);
}

.function-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.function-item {
  min-height: 248px;
  padding: 26px 22px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}

.function-item h3 {
  margin-bottom: 12px;
  font-size: 19px;
}

.function-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.signal {
  width: 30px;
  height: 8px;
  display: block;
  margin-bottom: 37px;
}

.signal-green { background: var(--green); }
.signal-pink { background: var(--pink); }
.signal-amber { background: var(--amber); }
.signal-dark { background: var(--ink); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: end;
}

.gallery-grid figure {
  margin: 0;
}

.gallery-grid figure:nth-child(2) {
  transform: translateY(-18px);
}

.gallery-grid img {
  width: auto;
  max-width: 400px;
  height: 390px;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(10px 12px 0 rgba(10, 143, 131, 0.16));
}

.gallery-grid figcaption {
  min-height: 104px;
  display: grid;
  align-content: start;
  gap: 4px;
  margin-top: 18px;
  padding-top: 13px;
  border-top: 3px solid var(--ink);
}

.gallery-grid strong {
  font-size: 17px;
}

.gallery-grid span {
  color: var(--muted);
  font-size: 13px;
}

.section-checklist {
  background: var(--ink) !important;
  color: var(--white);
}

.checklist-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 68px;
  align-items: start;
}

.section-heading-light {
  display: block;
  margin: 0;
  border-bottom-color: var(--white);
}

.section-heading-light .section-index {
  color: var(--amber);
}

.section-heading-light h2 {
  margin-top: 14px;
}

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #777b80;
}

.checklist li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 21px 0;
  border-bottom: 1px solid #777b80;
}

.checklist > li > span {
  color: var(--pink);
  font-size: 13px;
  font-weight: 900;
}

.checklist strong {
  font-size: 18px;
}

.checklist p {
  margin: 5px 0 0;
  color: #c9cdd2;
  font-size: 14px;
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.route-grid > a {
  position: relative;
  min-height: 218px;
  padding: 26px 72px 26px 26px;
  border: 1px solid var(--ink);
  background: var(--white);
}

.route-grid > a:first-child {
  border-top: 8px solid var(--green);
}

.route-grid > a:last-child {
  border-top: 8px solid var(--pink);
}

.route-grid > a:hover {
  box-shadow: 8px 8px 0 var(--ink);
  transform: translate(-2px, -2px);
}

.route-code {
  color: var(--muted);
}

.route-grid strong {
  display: block;
  margin: 26px 0 8px;
  font-size: 21px;
}

.route-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.route-arrow {
  position: absolute;
  right: 25px;
  bottom: 23px;
  font-size: 30px;
  font-weight: 800;
}

.faq-preview-list {
  border-top: 1px solid var(--ink);
}

details {
  border-bottom: 1px solid var(--ink);
}

summary {
  position: relative;
  padding: 20px 46px 20px 4px;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 14px;
  font-size: 24px;
}

details[open] summary::after {
  content: "−";
}

details p {
  max-width: 840px;
  margin: -4px 0 19px 4px;
  color: var(--muted);
  font-size: 14px;
}

.section-link {
  display: inline-block;
  margin-top: 26px;
}

.download-band {
  padding: 45px 0;
  background: var(--green);
  color: var(--white);
  border-bottom: 1px solid var(--ink);
}

.download-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.download-band .section-index {
  color: var(--amber);
}

.download-band h2 {
  margin: 9px 0 0;
  font-size: 29px;
}

.button-light {
  min-width: 132px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
}

.button-light:hover {
  background: var(--amber);
}

.site-footer {
  padding: 34px 0;
  background: var(--paper);
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  font-weight: 900;
}

.footer-brand img {
  border: 1px solid var(--ink);
}

.site-footer p {
  margin: 0 auto;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.copyright {
  margin-top: 7px !important;
}

/* Internal pages */
.page-hero {
  border-bottom: 1px solid var(--ink);
  background: var(--white);
}

.page-hero .page-inner {
  min-height: 315px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 60px;
  align-items: center;
  padding-block: 46px;
}

.page-kicker {
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
}

.page-hero h1 {
  margin: 9px 0 15px;
  font-size: 46px;
  line-height: 1.15;
}

.page-hero h1 span:last-child {
  margin-left: 0.06em;
}

.page-hero p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
}

.page-mark {
  width: 220px;
  height: 168px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--amber);
  box-shadow: 9px 9px 0 var(--green);
  font-size: 52px;
  font-weight: 900;
  white-space: nowrap;
}

.page-body {
  padding: 70px 0 86px;
}

.content-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 66px;
}

.content-nav {
  position: sticky;
  top: 96px;
  align-self: start;
  border-top: 4px solid var(--ink);
}

.content-nav a {
  display: block;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.content-nav a:hover {
  color: var(--green-dark);
}

.prose-section {
  scroll-margin-top: 92px;
  padding-bottom: 48px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--line);
}

.prose-section:last-child {
  margin-bottom: 0;
}

.prose-section h2 {
  margin-bottom: 20px;
  font-size: 30px;
}

.prose-section h3 {
  margin: 25px 0 8px;
  font-size: 19px;
}

.prose-section p,
.prose-section li {
  color: #44494f;
  font-size: 15px;
}

.prose-section ul,
.prose-section ol {
  padding-left: 22px;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.step-item {
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--ink);
  background: var(--white);
}

.step-number {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--pink);
  font-size: 12px;
  font-weight: 900;
}

.step-item h3 {
  margin: 0 0 8px;
}

.notice {
  padding: 20px 22px;
  border-left: 7px solid var(--amber);
  background: #fff9da;
}

.notice strong {
  display: block;
  margin-bottom: 5px;
}

.notice p {
  margin-bottom: 0;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-top: 28px;
}

.faq-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}

.faq-filter {
  min-width: 72px;
  min-height: 40px;
  border: 1px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.faq-filter:hover,
.faq-filter.is-active {
  background: var(--ink);
  color: var(--white);
}

.faq-full-list {
  border-top: 3px solid var(--ink);
}

.faq-full-list details[hidden] {
  display: none;
}

.faq-full-list summary {
  padding-block: 21px;
  font-size: 16px;
}

.faq-full-list details p {
  max-width: 900px;
  padding-right: 38px;
  font-size: 15px;
}

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: minmax(0, 0.9fr) minmax(410px, 1.1fr);
    gap: 34px;
  }

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

  .content-layout {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 38px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 64px;
  }

  .header-inner,
  .hero-inner,
  .section-inner,
  .footer-inner,
  .page-inner {
    width: min(calc(100% - 32px), var(--max));
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    display: none;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    padding: 12px 16px 24px;
    border-bottom: 1px solid var(--ink);
    background: var(--paper);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    min-height: 50px;
    padding: 0 4px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav .nav-download {
    margin: 10px 0 0;
    justify-content: center;
    border: 1px solid var(--ink);
  }

  .hero-inner {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 22px;
    padding-block: 28px 32px;
  }

  .hero-copy {
    padding: 0;
  }

  .eyebrow {
    margin-bottom: 13px;
  }

  .eyebrow span:last-child {
    display: none;
  }

  .hero h1 {
    margin-bottom: 12px;
    font-size: 43px;
    line-height: 1.03;
  }

  .hero h1 span {
    display: block;
  }

  .hero h1 span:last-child {
    margin-left: 0;
  }

  .hero-lead {
    margin-bottom: 18px;
    font-size: 15px;
    line-height: 1.62;
  }

  .hero-actions {
    margin-bottom: 20px;
  }

  .hero-notes {
    display: none;
  }

  .hero-media {
    min-height: 300px;
    display: block;
  }

  .screen-tile-primary {
    width: min(100%, 330px);
    margin-inline: auto;
  }

  .screen-tile-primary img {
    height: 265px;
  }

  .screen-tile-primary figcaption {
    min-height: 38px;
  }

  .screen-rail {
    display: none;
  }

  .section {
    padding: 54px 0;
  }

  .section-heading {
    grid-template-columns: 76px 1fr;
    gap: 10px;
    margin-bottom: 28px;
  }

  .section-heading h2 {
    font-size: 28px;
  }

  .function-grid,
  .gallery-grid,
  .route-grid,
  .checklist-layout,
  .step-grid {
    grid-template-columns: 1fr;
  }

  .function-item {
    min-height: 0;
  }

  .gallery-grid {
    gap: 38px;
  }

  .gallery-grid figure:nth-child(2) {
    transform: none;
  }

  .gallery-grid img {
    height: 340px;
  }

  .checklist-layout {
    gap: 38px;
  }

  .route-grid > a {
    min-height: 190px;
  }

  .download-band-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .download-band h2 {
    font-size: 24px;
  }

  .page-hero .page-inner {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: 38px;
  }

  .page-hero h1 {
    font-size: 37px;
  }

  .page-hero h1 span {
    display: block;
  }

  .page-hero h1 span:last-child {
    margin-left: 0;
  }

  .page-mark {
    width: 150px;
    height: 92px;
    font-size: 38px;
  }

  .page-body {
    padding: 52px 0 66px;
  }

  .content-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .content-nav {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-nav a {
    padding-right: 10px;
  }

  .faq-toolbar {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
  }

  .faq-filter {
    min-width: 0;
    border-right: 0;
  }

  .faq-filter:last-child {
    border-right: 1px solid var(--ink);
  }
}

@media (max-width: 420px) {
  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .button-primary {
    min-width: 132px;
  }

  .hero-media {
    min-height: 280px;
  }

  .screen-tile-primary img {
    height: 245px;
  }

  .gallery-grid img {
    height: 310px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
