:root {
  --ink: #25212b;
  --paper: #fffdfb;
  --soft: #fff1f4;
  --pink: #df5f83;
  --pink-dark: #bd3f68;
  --mint: #4f9f8b;
  --yellow: #f2c14e;
  --line: #ded9dc;
  --muted: #6d6871;
  --max: 1160px;
}

* {
  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;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background-image: radial-gradient(#df5f8328 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, #000, transparent 36%);
}

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

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

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 12px;
  color: #fff;
  background: 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: 50;
  border-bottom: 1px solid #ffffffb8;
  background: #fffdfbe8;
  backdrop-filter: blur(14px);
}

.nav-wrap {
  display: flex;
  min-height: 74px;
  align-items: center;
  gap: 30px;
}

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

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

.site-nav {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: 26px;
}

.site-nav a:not(.download-button) {
  position: relative;
  font-size: 15px;
  font-weight: 650;
}

.site-nav a:not(.download-button)::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--pink);
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.site-nav a[aria-current="page"]::after,
.site-nav a:not(.download-button):hover::after {
  transform: scaleX(1);
}

.download-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 21px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  color: #fff;
  background: var(--pink);
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

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

.download-button:focus-visible,
.menu-toggle:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.download-button.secondary {
  color: var(--ink);
  background: #fff;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 54px;
  border-bottom: 2px solid var(--ink);
  background: linear-gradient(112deg, #fffdfb 0 58%, #fff0f4 58% 100%);
}

.hero::after {
  position: absolute;
  top: 32px;
  right: -38px;
  width: 180px;
  height: 54px;
  content: "NEW CHAPTER";
  color: var(--ink);
  background: var(--yellow);
  font: 800 13px/54px Arial, sans-serif;
  letter-spacing: 0;
  text-align: center;
  transform: rotate(32deg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 60px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--pink-dark);
  font-size: 13px;
  font-weight: 800;
}

.eyebrow::before {
  width: 28px;
  height: 5px;
  content: "";
  background: var(--yellow);
}

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

h1 {
  max-width: 660px;
  margin-bottom: 22px;
  font-size: clamp(38px, 5.2vw, 68px);
  font-weight: 900;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 630px;
  margin: 0 0 30px;
  color: #514b56;
  font-size: 18px;
}

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

.quick-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 32px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.quick-facts strong,
.quick-facts span {
  display: block;
}

.quick-facts strong {
  font-size: 20px;
}

.quick-facts span {
  color: var(--muted);
  font-size: 12px;
}

.hero-visual {
  position: relative;
  min-height: 500px;
}

.phone-frame {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(270px, 72%);
  padding: 10px;
  border: 3px solid var(--ink);
  border-radius: 26px;
  background: #fff;
  box-shadow: 14px 14px 0 var(--mint);
  transform: translateX(-50%) rotate(2deg);
}

.phone-frame img,
.preview-card img,
.guide-shot img {
  width: 100%;
  max-width: 400px;
  height: auto;
  margin-inline: auto;
}

.phone-frame img {
  border-radius: 17px;
}

.sticker {
  position: absolute;
  z-index: 2;
  padding: 8px 13px;
  border: 2px solid var(--ink);
  background: #fff;
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 800;
}

.sticker.one {
  top: 42px;
  left: 0;
  color: #fff;
  background: var(--pink);
  transform: rotate(-7deg);
}

.sticker.two {
  right: 0;
  bottom: 52px;
  background: var(--yellow);
  transform: rotate(5deg);
}

.section {
  padding: 86px 0;
}

.section.soft {
  background: var(--soft);
}

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

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

.section-heading h2,
.content-section h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 46px);
}

.chapter-mark {
  color: var(--pink);
  font: 900 14px/1 Arial, sans-serif;
}

.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;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: #fff;
}

.feature-item:nth-child(2) {
  background: #fff5d9;
}

.feature-item:nth-child(3) {
  color: #fff;
  background: var(--mint);
}

.feature-number {
  display: block;
  margin-bottom: 36px;
  font: 900 13px/1 Arial, sans-serif;
}

.feature-item h3 {
  margin-bottom: 11px;
  font-size: 21px;
}

.feature-item p {
  margin: 0;
  color: inherit;
  font-size: 14px;
}

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

.preview-card {
  margin: 0;
}

.preview-card img {
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: 7px 7px 0 #d8d1d5;
}

.preview-card figcaption {
  padding: 15px 3px 0;
  font-size: 14px;
}

.preview-card strong {
  display: block;
  font-size: 17px;
}

.path-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 2px solid var(--ink);
}

.path-panel {
  min-height: 330px;
  padding: 42px;
  background: #fff;
}

.path-panel + .path-panel {
  border-left: 2px solid var(--ink);
  color: #fff;
  background: var(--pink-dark);
}

.path-panel h3 {
  max-width: 360px;
  margin-bottom: 18px;
  font-size: 32px;
}

.path-panel p {
  max-width: 480px;
  margin: 0 0 28px;
}

.text-link {
  display: inline-block;
  padding-bottom: 3px;
  border-bottom: 2px solid currentColor;
  font-weight: 800;
}

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

.step {
  position: relative;
  padding: 28px 28px 28px 78px;
  border-top: 1px solid #ffffff4d;
  counter-increment: steps;
}

.step::before {
  position: absolute;
  top: 25px;
  left: 18px;
  width: 44px;
  height: 44px;
  border: 2px solid var(--yellow);
  border-radius: 50%;
  content: counter(steps, decimal-leading-zero);
  color: var(--yellow);
  font: 900 13px/40px Arial, sans-serif;
  text-align: center;
}

.step h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.step p {
  margin: 0;
  color: #d6d1d8;
  font-size: 14px;
}

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

.quote {
  margin: 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

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

.quote figcaption {
  color: var(--muted);
  font-size: 13px;
}

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

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

.faq-list summary {
  position: relative;
  padding: 20px 48px 20px 0;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

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

.faq-list summary::after {
  position: absolute;
  top: 19px;
  right: 8px;
  content: "+";
  color: var(--pink-dark);
  font: 700 28px/1 Arial, sans-serif;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details > div {
  max-width: 850px;
  padding: 0 0 22px;
  color: #514b56;
}

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

.cta-strip {
  padding: 56px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--yellow);
}

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

.cta-inner h2 {
  margin-bottom: 6px;
  font-size: clamp(28px, 4vw, 44px);
}

.cta-inner p {
  margin: 0;
}

.page-hero {
  padding: 72px 0 58px;
  border-bottom: 2px solid var(--ink);
  background: linear-gradient(90deg, var(--soft) 0 68%, #fff5d9 68% 100%);
}

.page-hero h1 {
  font-size: clamp(38px, 6vw, 68px);
}

.page-hero p {
  max-width: 720px;
  margin: 0;
  color: #514b56;
  font-size: 18px;
}

.breadcrumbs {
  display: flex;
  margin: 0 0 20px;
  padding: 0;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  list-style: none;
}

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

.article-body {
  min-width: 0;
}

.content-section {
  padding: 0 0 58px;
  scroll-margin-top: 100px;
}

.content-section + .content-section {
  padding-top: 54px;
  border-top: 1px solid var(--line);
}

.content-section h2 {
  margin-bottom: 26px;
}

.content-section h3 {
  margin: 28px 0 9px;
  font-size: 21px;
}

.content-section p {
  margin: 0 0 16px;
}

.article-aside {
  position: sticky;
  top: 102px;
  padding: 22px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: #fff;
  box-shadow: 6px 6px 0 var(--pink);
}

.article-aside strong {
  display: block;
  margin-bottom: 13px;
}

.article-aside a {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.article-aside .download-button {
  margin-top: 18px;
  color: #fff;
}

.instruction-list {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 18px;
  list-style: none;
  counter-reset: instruction;
}

.instruction-list li {
  position: relative;
  min-height: 92px;
  padding: 22px 24px 22px 82px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  counter-increment: instruction;
}

.instruction-list li::before {
  position: absolute;
  top: 21px;
  left: 22px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  content: counter(instruction);
  color: #fff;
  background: var(--pink);
  font-weight: 900;
  line-height: 42px;
  text-align: center;
}

.instruction-list strong {
  display: block;
  margin-bottom: 4px;
}

.guide-shot {
  display: grid;
  grid-template-columns: 260px 1fr;
  margin: 30px 0;
  align-items: center;
  gap: 30px;
}

.guide-shot img {
  border: 2px solid var(--ink);
  border-radius: 6px;
}

.notice {
  margin: 26px 0;
  padding: 20px 22px;
  border-left: 5px solid var(--yellow);
  background: #fff8e5;
}

.checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
  padding: 0;
  gap: 12px;
  list-style: none;
}

.checklist li {
  padding: 13px 15px 13px 42px;
  border: 1px solid var(--line);
  background: #fff;
}

.checklist li::before {
  margin-left: -26px;
  margin-right: 10px;
  content: "✓";
  color: var(--mint);
  font-weight: 900;
}

.feature-table {
  width: 100%;
  border-collapse: collapse;
}

.feature-table th,
.feature-table td {
  padding: 15px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.feature-table th {
  background: var(--soft);
}

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

.related-links a {
  padding: 22px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: #fff;
  font-weight: 800;
}

.related-links a:hover {
  color: #fff;
  background: var(--ink);
}

.site-footer {
  padding: 48px 0 24px;
  color: #e7e2e8;
  background: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  padding-bottom: 34px;
  gap: 40px;
}

.footer-grid .brand {
  margin-bottom: 14px;
  color: #fff;
}

.footer-grid p {
  max-width: 480px;
  margin: 0;
  color: #bdb6c0;
  font-size: 13px;
}

.footer-grid strong {
  display: block;
  margin-bottom: 12px;
  color: #fff;
}

.footer-grid nav a {
  display: block;
  padding: 4px 0;
  color: #d7d1d9;
  font-size: 14px;
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid #ffffff20;
  color: #9f98a2;
  font-size: 12px;
}

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

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 74px;
    right: 0;
    left: 0;
    display: none;
    padding: 18px 20px 24px;
    border-bottom: 2px solid var(--ink);
    background: #fff;
  }

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

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

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

  .hero-copy {
    order: 1;
  }

  .hero-visual {
    min-height: 480px;
    order: 2;
  }

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

  .article-aside {
    position: static;
  }

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

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
}

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

  .brand {
    font-size: 17px;
  }

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

  .hero,
  .page-hero {
    padding-top: 52px;
  }

  .hero {
    background: linear-gradient(180deg, #fffdfb 0 55%, #fff0f4 55% 100%);
  }

  h1 {
    font-size: 42px;
  }

  .hero-copy > p:not(.eyebrow),
  .page-hero p {
    font-size: 16px;
  }

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

  .phone-frame {
    width: 238px;
  }

  .section {
    padding: 62px 0;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .feature-grid,
  .preview-grid,
  .path-grid,
  .steps,
  .quotes,
  .checklist,
  .related-links,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .path-panel + .path-panel {
    border-top: 2px solid var(--ink);
    border-left: 0;
  }

  .preview-grid {
    width: min(100%, 330px);
    margin-inline: auto;
  }

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

  .guide-shot {
    grid-template-columns: 1fr;
  }

  .guide-shot img {
    width: min(100%, 280px);
  }

  .footer-grid > div:first-child {
    grid-column: auto;
  }
}

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

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