:root {
  --paper: #fff8ee;
  --paper-deep: #f4eadb;
  --white: #ffffff;
  --ink: #292421;
  --muted: #6f655f;
  --line: #d9cbbd;
  --orange: #e5532d;
  --orange-dark: #bd371b;
  --yellow: #f6bf3b;
  --teal: #26796e;
  --teal-light: #dcefea;
  --shadow: 6px 6px 0 #292421;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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

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

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 100;
  padding: 9px 14px;
  color: var(--white);
  background: var(--ink);
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 2px solid var(--ink);
  background: rgba(255, 248, 238, 0.96);
  backdrop-filter: blur(12px);
}

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

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

.brand img {
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink);
  border-radius: 7px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 8px 13px;
  border-bottom: 3px solid transparent;
  font-size: 15px;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--orange-dark);
  border-color: var(--orange);
}

.nav-download,
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 20px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  color: var(--white);
  background: var(--orange);
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.nav-download::before,
.button.download::before {
  content: "↓";
  font-size: 19px;
  line-height: 1;
}

.nav-download:hover,
.button:hover {
  background: var(--orange-dark);
  box-shadow: 1px 1px 0 var(--ink);
  transform: translate(2px, 2px);
}

.button.secondary {
  color: var(--ink);
  background: var(--white);
}

.button.secondary::before {
  content: "→";
}

.button.secondary:hover {
  color: var(--white);
  background: var(--teal);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  color: var(--ink);
  background: var(--white);
  font-size: 25px;
  cursor: pointer;
}

.hero {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: center;
  gap: 64px;
  padding-block: 42px 52px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 4px 10px;
  border: 2px solid var(--ink);
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 14px;
  font-weight: 900;
}

h1,
h2,
h3 {
  margin-top: 0;
  letter-spacing: 0;
  line-height: 1.25;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: 58px;
  font-weight: 950;
}

h2 {
  margin-bottom: 26px;
  font-size: 34px;
  font-weight: 950;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  font-weight: 900;
}

.hero-lead {
  max-width: 670px;
  margin: 0 0 28px;
  color: #514943;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.quick-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.quick-facts li::before {
  margin-right: 7px;
  color: var(--teal);
  content: "●";
}

.hero-visual {
  position: relative;
  min-height: 530px;
  display: grid;
  place-items: center;
}

.phone-shell {
  position: relative;
  z-index: 2;
  width: 302px;
  padding: 14px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  box-shadow: 14px 14px 0 var(--yellow);
  transform: rotate(1.5deg);
}

.phone-shell::before {
  position: absolute;
  top: 5px;
  left: 50%;
  width: 62px;
  height: 5px;
  border-radius: 5px;
  background: #6d625c;
  content: "";
  transform: translateX(-50%);
}

.phone-shell img {
  width: 100%;
  max-width: 400px;
  border-radius: 4px;
}

.comic-note {
  position: absolute;
  z-index: 3;
  padding: 10px 14px;
  border: 2px solid var(--ink);
  background: var(--white);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.note-top {
  top: 52px;
  right: 2px;
  transform: rotate(3deg);
}

.note-bottom {
  bottom: 74px;
  left: 0;
  color: var(--white);
  background: var(--teal);
  transform: rotate(-3deg);
}

.section {
  padding-block: 88px;
}

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

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

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

.section-heading h2,
.section-heading p {
  margin-bottom: 0;
}

.section-heading p {
  max-width: 540px;
  color: var(--muted);
}

.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: 260px;
  padding: 28px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--paper);
}

.feature-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 30px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  color: var(--white);
  background: var(--teal);
  font-weight: 900;
}

.feature-item p,
.guide-card p,
.content-card p,
.article-copy p,
.article-copy li,
.faq-answer p {
  color: var(--muted);
}

.preview-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.preview-stage {
  position: relative;
  width: 300px;
  padding: 12px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  box-shadow: 10px 10px 0 var(--orange);
}

.preview-stage img {
  width: 100%;
  max-width: 400px;
  border-radius: 4px;
}

.preview-copy h2 {
  margin-bottom: 16px;
}

.preview-copy > p {
  color: var(--muted);
}

.preview-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 28px;
}

.preview-tab {
  min-height: 74px;
  padding: 8px;
  border: 2px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  background: var(--white);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.preview-tab:hover,
.preview-tab.active {
  color: var(--white);
  border-color: var(--ink);
  background: var(--teal);
}

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

.guide-card,
.content-card {
  padding: 28px;
  border: 2px solid var(--ink);
  border-radius: 7px;
  background: var(--white);
  box-shadow: 5px 5px 0 var(--ink);
}

.guide-card .tag,
.content-card .tag {
  display: inline-block;
  margin-bottom: 22px;
  padding: 3px 9px;
  color: var(--white);
  background: var(--orange);
  font-size: 13px;
  font-weight: 900;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange-dark);
  font-weight: 900;
}

.text-link::after {
  content: "→";
}

.text-link:hover {
  color: var(--teal);
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 54px;
  border: 2px solid var(--ink);
  background: var(--yellow);
  box-shadow: 7px 7px 0 var(--ink);
}

.stat {
  padding: 22px;
  border-right: 2px solid var(--ink);
  text-align: center;
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  font-size: 26px;
  font-weight: 950;
}

.stat span {
  font-size: 13px;
  font-weight: 800;
}

.review-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 18px;
}

.review {
  margin: 0;
  padding: 28px;
  border: 2px solid #594e48;
  border-radius: 6px;
  background: #342e2a;
}

.review:first-child {
  background: var(--teal);
}

.review blockquote {
  margin: 0 0 20px;
  font-size: 17px;
}

.review cite {
  color: #f2d8c9;
  font-size: 14px;
  font-style: normal;
}

.mini-faq {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.mini-faq article {
  padding: 22px;
  border-left: 5px solid var(--orange);
  background: var(--white);
}

.download-band {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
  padding: 38px 42px;
  border: 3px solid var(--ink);
  color: var(--ink);
  background: var(--yellow);
  box-shadow: var(--shadow);
}

.download-band h2 {
  margin-bottom: 8px;
}

.download-band p {
  margin: 0;
}

.page-hero {
  padding-block: 72px 54px;
  border-bottom: 2px solid var(--ink);
  background: var(--white);
}

.page-hero .container {
  display: grid;
  grid-template-columns: 1fr 270px;
  align-items: center;
  gap: 56px;
}

.page-hero h1 {
  margin-bottom: 18px;
  font-size: 46px;
}

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

.page-hero img {
  width: 230px;
  max-width: 400px;
  margin-inline: auto;
  border: 3px solid var(--ink);
  border-radius: 7px;
  box-shadow: 9px 9px 0 var(--teal);
}

.breadcrumb {
  margin-bottom: 18px;
  color: var(--orange-dark);
  font-size: 14px;
  font-weight: 800;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.article-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 100px;
  padding: 20px;
  border: 2px solid var(--ink);
  background: var(--white);
  box-shadow: 4px 4px 0 var(--ink);
}

.toc strong {
  display: block;
  margin-bottom: 10px;
}

.toc a {
  display: block;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.toc a:hover {
  color: var(--orange-dark);
}

.article-copy section {
  margin-bottom: 64px;
  scroll-margin-top: 100px;
}

.article-copy h2 {
  padding-bottom: 14px;
  border-bottom: 3px solid var(--ink);
}

.step-list {
  display: grid;
  gap: 20px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.step {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 20px;
  padding: 24px;
  border: 2px solid var(--ink);
  border-radius: 7px;
  background: var(--white);
}

.step-number {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  color: var(--white);
  background: var(--orange);
  font-size: 20px;
  font-weight: 950;
}

.step h3 {
  margin-bottom: 7px;
}

.step p {
  margin: 0;
}

.tip-box,
.warning-box {
  margin-block: 24px;
  padding: 20px 22px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--teal-light);
}

.warning-box {
  background: #fff0bd;
}

.tip-box strong,
.warning-box strong {
  display: block;
  margin-bottom: 5px;
}

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

.setting-grid article {
  padding: 22px;
  border: 2px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--white);
  overflow: hidden;
}

.faq-question {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr 28px;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 0;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.faq-question span:last-child {
  font-size: 24px;
  text-align: center;
  transition: transform 160ms ease;
}

.faq-item.open .faq-question {
  background: var(--yellow);
}

.faq-item.open .faq-question span:last-child {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 20px 20px;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-answer p {
  margin: 0;
}

.related-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.related-links a {
  padding: 20px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--white);
  font-weight: 900;
}

.related-links a:hover {
  color: var(--white);
  background: var(--teal);
}

.site-footer {
  padding-block: 48px 30px;
  border-top: 2px solid var(--ink);
  color: #e8ddd3;
  background: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 52px;
  margin-bottom: 34px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
  color: var(--white);
  font-size: 20px;
  font-weight: 900;
}

.footer-brand img {
  width: 44px;
  height: 44px;
  border: 2px solid var(--white);
  border-radius: 7px;
}

.site-footer h3 {
  color: var(--white);
  font-size: 16px;
}

.site-footer p,
.site-footer a {
  color: #cfc1b7;
  font-size: 14px;
}

.site-footer a {
  display: block;
  margin-block: 7px;
}

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid #554c47;
  font-size: 13px;
}

.footer-bottom p {
  margin: 4px 0;
}

@media (max-width: 980px) {
  h1 {
    font-size: 48px;
  }

  .hero {
    gap: 32px;
  }

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

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

  .review:first-child {
    grid-column: 1 / -1;
  }

  .footer-grid {
    gap: 28px;
  }
}

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

  .nav-wrap {
    min-height: 66px;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    top: 66px;
    right: 14px;
    left: 14px;
    display: none;
    padding: 10px;
    border: 2px solid var(--ink);
    background: var(--paper);
    box-shadow: 5px 5px 0 var(--ink);
  }

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

  .site-nav a {
    padding: 11px 12px;
    border-bottom: 1px solid var(--line);
  }

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

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 38px;
    padding-block: 48px 70px;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 29px;
  }

  .hero-visual {
    min-height: 540px;
  }

  .section {
    padding-block: 68px;
  }

  .section-heading {
    display: block;
  }

  .section-heading h2 {
    margin-bottom: 12px;
  }

  .preview-layout,
  .page-hero .container,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .preview-stage {
    margin-inline: auto;
  }

  .journey-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .stat:nth-child(2) {
    border-right: 0;
  }

  .stat:nth-child(-n + 2) {
    border-bottom: 2px solid var(--ink);
  }

  .download-band {
    grid-template-columns: 1fr;
    padding: 30px;
  }

  .page-hero {
    padding-block: 50px;
  }

  .page-hero .container {
    gap: 34px;
  }

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

  .page-hero img {
    width: 210px;
  }

  .toc {
    position: static;
  }
}

@media (max-width: 520px) {
  .brand {
    font-size: 18px;
  }

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

  h1 {
    font-size: 36px;
  }

  .hero {
    gap: 18px;
    padding-bottom: 28px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .feature-grid,
  .mini-faq,
  .review-grid,
  .setting-grid,
  .related-links {
    grid-template-columns: 1fr;
  }

  .review:first-child {
    grid-column: auto;
  }

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

  .hero-visual {
    min-height: 96px;
    height: 96px;
    align-items: start;
    overflow: hidden;
    padding-top: 4px;
  }

  .hero-visual .phone-shell {
    width: 104px;
    box-shadow: 7px 7px 0 var(--yellow);
  }

  .hero-visual .note-top {
    top: 4px;
    right: 24px;
  }

  .hero-visual .note-bottom {
    display: none;
  }

  .preview-stage {
    width: min(280px, calc(100vw - 58px));
  }

  .comic-note {
    font-size: 12px;
  }

  .note-top {
    right: 0;
  }

  .note-bottom {
    left: 0;
  }

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

  .download-band {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
