:root {
  --ink: #171529;
  --paper: #fffdf9;
  --surface: #ffffff;
  --muted: #676477;
  --line: #dedbe7;
  --purple: #6f3df4;
  --teal: #14b8a6;
  --coral: #ff6b6b;
  --yellow: #f5c451;
  --shadow: 8px 8px 0 rgba(23, 21, 41, 0.12);
  --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;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image: radial-gradient(rgba(23, 21, 41, 0.08) 0.7px, transparent 0.7px);
  background-size: 18px 18px;
}

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

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

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

button {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 8px 14px;
  color: #ffffff;
  background: var(--ink);
  transform: translateY(-150%);
}

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

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

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 1.35rem;
  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: 26px;
}

.site-nav a:not(.download-button) {
  position: relative;
  padding-block: 9px;
  font-size: 0.95rem;
  font-weight: 700;
}

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

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

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 2px solid var(--ink);
  border-radius: 5px;
  background: #ffffff;
  cursor: pointer;
}

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

.download-button,
.text-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.download-button {
  padding: 10px 22px;
  border-radius: 5px;
  color: #ffffff;
  background: var(--purple);
  box-shadow: 4px 4px 0 var(--ink);
}

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

.download-button.light {
  color: var(--ink);
  background: #ffffff;
}

.hero {
  overflow: hidden;
  border-bottom: 2px solid var(--ink);
}

.hero-grid {
  display: grid;
  min-height: 670px;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
  align-items: center;
  gap: 58px;
  padding-block: 70px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 22px;
  padding: 5px 12px;
  border: 2px solid var(--ink);
  background: var(--yellow);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
}

.hero h1,
.page-hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.7rem, 6vw, 5.2rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin: 26px 0 30px;
  color: #494657;
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.hero-note {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.hero-tags li,
.tag-list span {
  padding: 6px 12px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: #ffffff;
  font-size: 0.84rem;
  font-weight: 700;
}

.phone-stage {
  position: relative;
  min-height: 530px;
}

.phone-frame {
  position: absolute;
  width: min(66%, 290px);
  padding: 10px;
  border: 3px solid var(--ink);
  border-radius: 28px;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.phone-frame img,
.preview-card img,
.step-media img,
.mini-preview img {
  width: 100%;
  max-width: 400px;
  height: auto;
}

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

.phone-frame.primary {
  top: 0;
  right: 17%;
  z-index: 3;
  transform: rotate(2deg);
}

.phone-frame.secondary {
  top: 74px;
  right: 55%;
  z-index: 2;
  transform: rotate(-7deg);
}

.phone-frame.tertiary {
  top: 130px;
  right: -4%;
  z-index: 1;
  transform: rotate(7deg);
}

.scribble-label {
  position: absolute;
  right: 0;
  bottom: 5px;
  z-index: 4;
  padding: 8px 13px;
  border: 2px solid var(--ink);
  background: var(--coral);
  color: var(--ink);
  font-weight: 900;
  transform: rotate(-3deg);
}

.stats-strip {
  color: #ffffff;
  background: var(--ink);
}

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

.stat {
  padding: 24px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
  text-align: center;
}

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

.stat strong {
  display: block;
  color: var(--yellow);
  font-size: 1.5rem;
  line-height: 1.2;
}

.stat span {
  font-size: 0.82rem;
}

.section {
  padding-block: 92px;
}

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

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

.section.tint-purple {
  border-block: 2px solid var(--ink);
  background: #eee8ff;
}

.section.tint-yellow {
  border-block: 2px solid var(--ink);
  background: #fff3c4;
}

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

.section h2,
.content-section h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: 0;
}

.kicker {
  display: block;
  margin-bottom: 9px;
  color: var(--purple);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.section-count {
  flex: 0 0 auto;
  color: var(--coral);
  font-size: 2rem;
  font-weight: 900;
}

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

.feature-card {
  min-height: 245px;
  padding: 27px;
  border: 2px solid var(--ink);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: 5px 5px 0 rgba(23, 21, 41, 0.1);
}

.feature-card:nth-child(2),
.feature-card:nth-child(5) {
  background: #fff8dc;
}

.feature-card:nth-child(3),
.feature-card:nth-child(6) {
  background: #edf9f7;
}

.feature-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 24px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--coral);
  font-size: 1.2rem;
  font-weight: 900;
}

.feature-card h3,
.path-card h3,
.step-card h3,
.deep-card h3 {
  margin: 0 0 10px;
  font-size: 1.22rem;
  line-height: 1.35;
}

.feature-card p,
.path-card p,
.step-card p,
.deep-card p {
  margin: 0;
  color: var(--muted);
}

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

.preview-card {
  margin: 0;
  padding: 18px;
  border: 2px solid var(--ink);
  border-radius: 7px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

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

.preview-card img {
  aspect-ratio: 0.6;
  margin-inline: auto;
  object-fit: cover;
  object-position: top;
}

.preview-card figcaption {
  padding-top: 14px;
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.tag-list span:nth-child(3n+1) {
  background: #eee8ff;
}

.tag-list span:nth-child(3n+2) {
  background: #dff7f3;
}

.tag-list span:nth-child(3n) {
  background: #ffe4e4;
}

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

.path-card {
  display: flex;
  min-height: 270px;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px;
  border: 2px solid var(--ink);
  border-radius: 7px;
  background: #ffffff;
}

.path-card .path-number {
  margin-bottom: auto;
  color: var(--purple);
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
}

.path-card p {
  margin-bottom: 22px;
}

.text-link {
  min-height: 42px;
  padding: 6px 14px;
  border-radius: 4px;
  background: var(--yellow);
}

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

.quote-card {
  margin: 0;
  padding: 26px;
  border-left: 5px solid var(--teal);
  background: #ffffff;
}

.quote-card p {
  margin: 0 0 16px;
  font-size: 1rem;
}

.quote-card cite {
  color: var(--muted);
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 700;
}

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

.faq-list details {
  border: 2px solid var(--ink);
  border-radius: 5px;
  background: #ffffff;
}

.faq-list summary {
  padding: 18px 54px 18px 20px;
  cursor: pointer;
  font-weight: 900;
}

.faq-list details p,
.faq-list details ul {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
}

.faq-list details ul {
  padding-left: 40px;
}

.faq-list details[open] {
  box-shadow: 4px 4px 0 rgba(23, 21, 41, 0.1);
}

.download-band {
  border-block: 2px solid var(--ink);
  color: #ffffff;
  background: var(--purple);
}

.download-band-inner {
  display: flex;
  min-height: 220px;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding-block: 42px;
}

.download-band h2 {
  max-width: 700px;
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.15;
}

.download-band p {
  margin: 0;
  color: #e8e2ff;
}

.site-footer {
  padding-block: 42px;
  color: #d8d4e4;
  background: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
}

.footer-brand {
  color: #ffffff;
}

.footer-brand img {
  border-color: #ffffff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

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

.disclaimer {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.82rem;
}

.copyright {
  grid-column: 1 / -1;
  margin: -20px 0 0;
  font-size: 0.82rem;
}

.page-hero {
  border-bottom: 2px solid var(--ink);
  background: #eee8ff;
}

.page-hero.guide-hero {
  background: #dff7f3;
}

.page-hero.faq-hero {
  background: #fff3c4;
}

.page-hero-inner {
  display: grid;
  min-height: 470px;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.55fr);
  align-items: center;
  gap: 60px;
  padding-block: 70px;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
}

.page-lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: #4f4b5e;
  font-size: 1.05rem;
}

.page-hero-panel {
  padding: 26px;
  border: 2px solid var(--ink);
  border-radius: 7px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.page-hero-panel strong {
  display: block;
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 7px 0 7px 26px;
}

.check-list li::before {
  position: absolute;
  top: 8px;
  left: 0;
  color: var(--teal);
  content: "✓";
  font-weight: 900;
}

.content-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  align-items: start;
  gap: 48px;
  padding-block: 76px;
}

.side-index {
  position: sticky;
  top: 104px;
  padding: 20px;
  border: 2px solid var(--ink);
  border-radius: 5px;
  background: #ffffff;
}

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

.side-index a {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.side-index a:hover {
  color: var(--purple);
}

.content-main {
  min-width: 0;
}

.content-section {
  scroll-margin-top: 110px;
  margin-bottom: 78px;
}

.content-section > h2 {
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 3px solid var(--ink);
}

.steps {
  display: grid;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: guide-step;
}

.step-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) minmax(190px, 0.5fr);
  align-items: start;
  gap: 24px;
  padding: 28px;
  border: 2px solid var(--ink);
  border-radius: 7px;
  background: #ffffff;
  counter-increment: guide-step;
}

.step-card::before {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  content: counter(guide-step, decimal-leading-zero);
  font-weight: 900;
}

.step-card p + p {
  margin-top: 12px;
}

.step-media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.step-media img {
  aspect-ratio: 0.62;
  object-fit: cover;
  object-position: top;
}

.notice-box {
  padding: 24px;
  border: 2px solid var(--ink);
  border-left-width: 8px;
  background: #fff3c4;
}

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

.plain-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-left: 22px;
}

.plain-list li::marker {
  color: var(--coral);
  font-weight: 900;
}

.settings-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

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

.settings-table th {
  background: var(--ink);
  color: #ffffff;
}

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

.deep-card {
  padding: 26px;
  border: 2px solid var(--ink);
  border-radius: 7px;
  background: #ffffff;
}

.deep-card:nth-child(2n) {
  background: #edf9f7;
}

.deep-card ul {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.inline-link {
  color: var(--purple);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

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

.related-grid a {
  padding: 22px;
  border: 2px solid var(--ink);
  background: #ffffff;
  font-weight: 900;
}

.related-grid a:hover {
  background: var(--yellow);
}

.image-dialog {
  width: min(92vw, 470px);
  max-height: 92vh;
  padding: 48px 22px 22px;
  border: 3px solid var(--ink);
  border-radius: 7px;
  background: #ffffff;
}

.image-dialog::backdrop {
  background: rgba(23, 21, 41, 0.82);
}

.image-dialog img {
  width: auto;
  max-width: 400px;
  max-height: 75vh;
  margin-inline: auto;
}

.dialog-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--coral);
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 900;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

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

  .reveal,
  .download-button,
  .text-link {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

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

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

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

  .site-nav .download-button {
    width: 100%;
  }

  .hero-grid,
  .page-hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 28px;
    padding-top: 54px;
  }

  .phone-stage {
    min-height: 480px;
  }

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

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

  .content-shell {
    grid-template-columns: 1fr;
  }

  .side-index {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
  }

  .side-index strong {
    width: 100%;
  }

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

  .step-media {
    grid-column: 2;
    max-width: 260px;
  }
}

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

  .hero-grid {
    min-height: auto;
    padding-block: 44px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 2.55rem;
    overflow-wrap: anywhere;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .phone-stage {
    min-height: 390px;
  }

  .phone-frame {
    width: 54%;
    padding: 7px;
    border-radius: 20px;
  }

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

  .phone-frame.primary {
    right: 23%;
  }

  .phone-frame.secondary {
    top: 58px;
    right: 49%;
  }

  .phone-frame.tertiary {
    top: 90px;
    right: 0;
  }

  .stats-grid,
  .feature-grid,
  .preview-grid,
  .path-grid,
  .quote-grid,
  .deep-grid,
  .related-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .stat:nth-child(-n+2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  }

  .section {
    padding-block: 64px;
  }

  .section-head {
    align-items: flex-start;
  }

  .preview-card img {
    aspect-ratio: auto;
  }

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

  .footer-links {
    justify-content: flex-start;
  }

  .disclaimer,
  .copyright {
    grid-column: auto;
  }

  .page-hero-inner {
    min-height: auto;
    gap: 32px;
    padding-block: 50px;
  }

  .content-shell {
    gap: 36px;
    padding-block: 54px;
  }

  .step-card {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .step-card::before,
  .step-media {
    grid-column: auto;
  }

  .step-media {
    max-width: 100%;
  }

  .settings-table {
    display: block;
    overflow-x: auto;
  }
}
