:root {
  --ink: #1e2024;
  --paper: #fffaf6;
  --white: #ffffff;
  --coral: #ef6f6c;
  --pink: #f7b2ad;
  --teal: #1f8a86;
  --yellow: #f2c14e;
  --mist: #eaf5f3;
  --muted: #6c6663;
  --line: #d9d1cb;
  --max: 1180px;
  --shadow: 6px 6px 0 var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

body.nav-open,
body.modal-open {
  overflow: hidden;
}

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

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

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

button,
input {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 8px 12px;
  background: var(--white);
  border: 2px solid var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 250, 246, 0.96);
  border-bottom: 2px solid var(--ink);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-size: 21px;
  font-weight: 900;
}

.brand img {
  width: 42px;
  height: 42px;
}

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

.site-nav > a:not(.button) {
  position: relative;
  padding-block: 8px;
}

.site-nav > a[aria-current="page"]::after,
.site-nav > a:not(.button):hover::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 3px;
  background: var(--coral);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 4px;
}

.menu-lines,
.menu-lines::before,
.menu-lines::after {
  width: 20px;
  height: 2px;
  display: block;
  background: currentColor;
}

.menu-lines {
  position: relative;
}

.menu-lines::before,
.menu-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-lines::before {
  top: -6px;
}

.menu-lines::after {
  top: 6px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  color: var(--white);
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: 4px 4px 0 var(--coral);
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--coral);
}

.button-coral {
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
}

.button-coral:hover {
  box-shadow: 2px 2px 0 var(--ink);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 2px solid currentColor;
  font-weight: 900;
}

.hero {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: var(--coral);
  border-bottom: 2px solid var(--ink);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 710px;
  padding-block: 54px 64px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 4px 10px;
  color: var(--ink);
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 3px;
  font-size: 14px;
  font-weight: 900;
}

.hero h1 {
  max-width: 650px;
  margin: 0 0 18px;
  font-size: 64px;
  line-height: 1.12;
  letter-spacing: 0;
}

.hero h1 + p {
  max-width: 680px;
  margin: 0;
  font-size: 19px;
  line-height: 1.9;
  font-weight: 600;
}

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

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 800;
}

.hero-notes li::before {
  content: "✓";
  margin-right: 7px;
  font-weight: 900;
}

.hero-shot {
  position: absolute;
  z-index: 1;
  right: max(4%, calc((100vw - var(--max)) / 2));
  bottom: 24px;
  width: 250px;
  height: auto;
  max-width: 25vw;
  border: 3px solid var(--ink);
  box-shadow: 12px 12px 0 var(--yellow);
  transform: rotate(3deg);
}

.section {
  padding-block: 84px;
}

.section-compact {
  padding-block: 58px;
}

.section-dark {
  color: var(--white);
  background: var(--ink);
}

.section-teal {
  background: var(--mist);
  border-block: 2px solid var(--ink);
}

.section-coral {
  background: var(--pink);
  border-block: 2px solid var(--ink);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.section-heading h2,
.section > .container > h2 {
  margin: 0;
  font-size: 38px;
  line-height: 1.25;
  letter-spacing: 0;
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

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

.feature-item {
  min-height: 240px;
  padding: 26px 22px;
  background: var(--white);
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.feature-item:nth-child(2),
.feature-item:nth-child(7) {
  background: var(--mist);
}

.feature-item:nth-child(3),
.feature-item:nth-child(5) {
  background: #fff2cf;
}

.feature-number {
  display: block;
  margin-bottom: 26px;
  color: var(--coral);
  font-size: 14px;
  font-weight: 900;
}

.feature-item h3 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.35;
}

.feature-item p {
  margin: 0;
  color: var(--muted);
}

.screen-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.screen-card {
  margin: 0;
}

.screen-button {
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: zoom-in;
}

.screen-button img {
  width: 100%;
  max-width: 292px;
  height: auto;
  margin-inline: auto;
  border: 2px solid var(--ink);
  box-shadow: 7px 7px 0 var(--coral);
  transition: transform 180ms ease;
}

.screen-button:hover img {
  transform: translateY(-5px);
}

.screen-card figcaption {
  max-width: 292px;
  margin: 18px auto 0;
  font-weight: 800;
}

.screen-card figcaption span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.route-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.route-card {
  position: relative;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 34px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.route-card:nth-child(2) {
  background: var(--yellow);
}

.route-card .route-index {
  margin-bottom: auto;
  color: var(--teal);
  font-size: 14px;
  font-weight: 900;
}

.route-card h3 {
  margin: 26px 0 10px;
  font-size: 29px;
  line-height: 1.3;
}

.route-card p {
  margin: 0 0 20px;
  color: #494440;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.review {
  margin: 0;
  padding: 24px;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--white);
  border-radius: 6px;
}

.review:nth-child(2) {
  background: var(--yellow);
}

.review-stars {
  color: #a45000;
  font-weight: 900;
}

.review p {
  margin: 12px 0 20px;
}

.review footer {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

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

.faq-list details {
  border-bottom: 2px solid var(--ink);
}

.faq-list summary {
  position: relative;
  padding: 20px 52px 20px 0;
  cursor: pointer;
  list-style: none;
  font-size: 18px;
  font-weight: 900;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 17px;
  right: 6px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "−";
  background: var(--yellow);
}

.faq-answer {
  max-width: 880px;
  padding: 0 0 22px;
  color: #4e4946;
}

.faq-answer p {
  margin: 0 0 10px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.bottom-cta {
  padding-block: 68px;
  color: var(--ink);
  background: var(--yellow);
  border-top: 2px solid var(--ink);
}

.cta-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.cta-layout h2 {
  margin: 0 0 8px;
  font-size: 36px;
  line-height: 1.3;
}

.cta-layout p {
  margin: 0;
}

.site-footer {
  color: #ddd6d0;
  background: var(--ink);
  padding-block: 44px 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 42px;
}

.site-footer .brand {
  color: var(--white);
  margin-bottom: 14px;
}

.footer-title {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 15px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--yellow);
}

.disclaimer {
  margin: 34px 0 0;
  padding-top: 22px;
  border-top: 1px solid #4d4f53;
  color: #aaa39e;
  font-size: 13px;
}

.sub-hero {
  padding-block: 76px 64px;
  background: var(--pink);
  border-bottom: 2px solid var(--ink);
}

.sub-hero.teal {
  background: var(--mist);
}

.sub-hero h1 {
  max-width: 900px;
  margin: 0 0 20px;
  font-size: 52px;
  line-height: 1.2;
  letter-spacing: 0;
}

.sub-hero p {
  max-width: 800px;
  margin: 0;
  font-size: 18px;
}

.sub-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 26px;
}

.guide-steps {
  counter-reset: guide;
  display: grid;
  gap: 0;
  border-top: 2px solid var(--ink);
}

.guide-step {
  counter-increment: guide;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 26px;
  padding-block: 34px;
  border-bottom: 2px solid var(--ink);
}

.guide-step::before {
  content: "0" counter(guide);
  color: var(--coral);
  font-size: 32px;
  font-weight: 900;
}

.guide-step h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.guide-step p {
  margin: 0 0 10px;
}

.guide-step p:last-child {
  margin-bottom: 0;
}

.callout {
  margin-block: 34px;
  padding: 24px 26px;
  background: #fff2cf;
  border: 2px solid var(--ink);
  border-left-width: 10px;
}

.callout strong {
  display: block;
  margin-bottom: 6px;
}

.setting-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.setting-item {
  padding: 24px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 6px;
}

.setting-item h3 {
  margin: 0 0 10px;
}

.setting-item p {
  margin: 0;
  color: var(--muted);
}

.topic-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.topic-nav a {
  padding: 7px 12px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 4px;
  font-weight: 800;
}

.topic-nav a:hover {
  background: var(--yellow);
}

.function-row {
  display: grid;
  grid-template-columns: 0.8fr 1.6fr;
  gap: 32px;
  padding-block: 30px;
  border-top: 2px solid var(--ink);
}

.function-row:last-child {
  border-bottom: 2px solid var(--ink);
}

.function-row h3 {
  margin: 0;
  font-size: 24px;
}

.function-row p {
  margin: 0;
}

.lightbox {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(30, 32, 36, 0.9);
}

.lightbox.is-open {
  display: grid;
}

.lightbox img {
  width: auto;
  max-width: min(400px, calc(100vw - 48px));
  max-height: calc(100vh - 90px);
  border: 3px solid var(--white);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  color: var(--ink);
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 50%;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

@media (max-width: 980px) {
  .site-nav {
    position: fixed;
    top: 72px;
    right: 0;
    bottom: 0;
    width: min(340px, 88vw);
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 24px;
    background: var(--paper);
    border-left: 2px solid var(--ink);
  }

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

  .site-nav > a {
    padding: 15px 4px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav .button {
    margin-top: 18px;
  }

  .menu-button {
    display: inline-flex;
  }

  .hero-content {
    max-width: 650px;
  }

  .hero-shot {
    right: 24px;
    bottom: 22px;
    width: 190px;
    max-width: 190px;
    opacity: 0.2;
  }

  .feature-grid,
  .screen-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 700px) {
  .container {
    width: min(calc(100% - 28px), var(--max));
  }

  .brand {
    font-size: 18px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .hero {
    min-height: 500px;
  }

  .hero-content {
    padding-block: 42px 54px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero h1 + p {
    font-size: 16px;
    line-height: 1.8;
  }

  .hero-shot {
    right: 14px;
    bottom: 18px;
    width: 128px;
    max-width: 128px;
  }

  .section {
    padding-block: 58px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-heading h2,
  .section > .container > h2 {
    font-size: 31px;
  }

  .feature-grid,
  .screen-grid,
  .route-grid,
  .review-grid,
  .setting-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .screen-grid {
    gap: 34px;
  }

  .route-card {
    min-height: 260px;
  }

  .cta-layout {
    align-items: flex-start;
    flex-direction: column;
  }

  .cta-layout h2 {
    font-size: 30px;
  }

  .sub-hero {
    padding-block: 54px 48px;
  }

  .sub-hero h1 {
    font-size: 38px;
  }

  .guide-step,
  .function-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .guide-step::before {
    font-size: 22px;
  }
}

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

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