:root {
  --brand: #8a1538;
  --brand-dark: #621027;
  --ink: #20252b;
  --muted: #66707a;
  --paper: #fffdfc;
  --soft: #f5ebea;
  --line: #e5d9d8;
  --teal: #147d78;
  --gold: #d49a2a;
  --white: #ffffff;
  --shadow: 0 18px 42px rgba(52, 28, 34, 0.12);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  line-height: 1.72;
}

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

button {
  font: inherit;
}

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

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

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 72px;
  border-bottom: 1px solid rgba(138, 21, 56, 0.12);
  background: rgba(255, 253, 252, 0.96);
  backdrop-filter: blur(14px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  color: var(--brand);
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 10px 13px;
  color: #3a4046;
  font-size: 15px;
  font-weight: 650;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  color: var(--brand);
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--brand);
  border-radius: 6px;
  color: var(--white) !important;
  background: var(--brand);
  font-weight: 800;
  box-shadow: 0 9px 22px rgba(138, 21, 56, 0.2);
  transition: transform 180ms ease, background 180ms ease;
}

.download-btn:hover,
.download-btn:focus-visible {
  background: var(--brand-dark);
  transform: translateY(-2px);
}

.download-btn.light {
  color: var(--brand) !important;
  border-color: var(--white);
  background: var(--white);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

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

.hero {
  min-height: 650px;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  align-items: center;
  min-height: 650px;
  gap: 80px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  color: #f3c76b;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 640px;
  margin: 0;
  font-size: 72px;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy > p {
  max-width: 650px;
  margin: 22px 0 0;
  color: #e7e7e4;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 32px;
}

.hero-note {
  color: #c8cecc;
  font-size: 13px;
}

.hero-media {
  position: relative;
  display: grid;
  place-items: center;
  align-self: stretch;
  min-height: 580px;
  padding: 34px 0;
}

.hero-media::before {
  position: absolute;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(243, 199, 107, 0.34);
  border-radius: 50%;
  content: "";
}

.hero-media img {
  position: relative;
  z-index: 1;
  width: min(288px, 92%);
  max-width: 400px;
  margin: auto 0;
  border: 8px solid #11161b;
  border-radius: 26px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.hero-badge {
  position: absolute;
  right: 4%;
  bottom: 13%;
  z-index: 2;
  width: 148px;
  padding: 13px 15px;
  border-left: 4px solid var(--teal);
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 750;
}

.proof-bar {
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 92px;
}

.proof-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  border-right: 1px solid var(--line);
  font-size: 14px;
  font-weight: 750;
  text-align: center;
}

.proof-item:last-child {
  border-right: 0;
}

.proof-mark {
  color: var(--teal);
  font-size: 20px;
}

.section {
  padding: 92px 0;
}

.section.compact {
  padding: 68px 0;
}

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

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

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

.section-heading h2,
.article-heading h1,
.page-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: 48px;
  line-height: 1.16;
  letter-spacing: 0;
}

.section.dark .section-heading h2 {
  color: var(--white);
}

.section-kicker {
  color: var(--brand);
  font-size: 13px;
  font-weight: 850;
}

.section-link {
  color: var(--brand);
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

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

.feature-card {
  min-height: 250px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.feature-card strong {
  display: block;
  margin: 22px 0 10px;
  font-size: 19px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.feature-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--brand);
  font-size: 18px;
  font-weight: 900;
}

.feature-card:nth-child(2) .feature-icon,
.feature-card:nth-child(4) .feature-icon {
  background: var(--teal);
}

.showcase {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  align-items: center;
  gap: 70px;
}

.showcase-copy h2 {
  margin: 0 0 24px;
  font-size: 48px;
  line-height: 1.16;
}

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

.showcase-list li {
  padding: 17px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  color: #d8dddb;
}

.showcase-list strong {
  display: block;
  margin-bottom: 3px;
  color: var(--white);
}

.screen-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 18px;
}

.screen-frame {
  overflow: hidden;
  border: 7px solid #11161b;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.screen-frame:nth-child(2) {
  transform: translateY(-24px);
}

.screen-frame img {
  width: 100%;
  max-width: 400px;
}

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

.path-card {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.path-card::after {
  position: absolute;
  right: -40px;
  bottom: -68px;
  width: 170px;
  height: 170px;
  border: 28px solid var(--soft);
  border-radius: 50%;
  content: "";
}

.path-number {
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.path-card h3 {
  max-width: 420px;
  margin: 40px 0 12px;
  font-size: 28px;
  line-height: 1.25;
}

.path-card p {
  max-width: 500px;
  margin: 0 0 28px;
  color: var(--muted);
}

.text-link {
  position: relative;
  z-index: 1;
  color: var(--brand);
  font-weight: 850;
}

.steps-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  counter-reset: step;
}

.step-mini {
  position: relative;
  padding: 24px 24px 24px 0;
  counter-increment: step;
}

.step-mini::before {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  place-items: center;
  border: 1px solid var(--brand);
  border-radius: 50%;
  color: var(--brand);
  content: counter(step);
  font-weight: 900;
}

.step-mini:not(:last-child)::after {
  position: absolute;
  top: 43px;
  right: 24px;
  left: 54px;
  height: 1px;
  background: var(--line);
  content: "";
}

.step-mini strong {
  display: block;
  margin-bottom: 7px;
}

.step-mini span {
  color: var(--muted);
  font-size: 14px;
}

.quotes {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  gap: 18px;
}

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

.quote:first-child {
  color: var(--white);
  border-color: var(--brand);
  background: var(--brand);
}

.quote p {
  margin: 0 0 24px;
  font-size: 16px;
}

.quote cite {
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

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

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

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-weight: 800;
}

.faq-question::after {
  flex: 0 0 auto;
  margin-left: 20px;
  color: var(--brand);
  content: "+";
  font-size: 24px;
}

.faq-question[aria-expanded="true"]::after {
  content: "−";
}

.faq-answer {
  max-width: 900px;
  padding: 0 0 22px;
  color: var(--muted);
}

.faq-answer[hidden] {
  display: none;
}

.cta-band {
  color: var(--white);
  background: var(--brand);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 220px;
  gap: 40px;
}

.cta-inner h2 {
  max-width: 680px;
  margin: 0 0 10px;
  color: var(--white);
  font-size: 44px;
  line-height: 1.2;
}

.cta-inner p {
  margin: 0;
  color: #f4dfe5;
}

.site-footer {
  padding: 48px 0 28px;
  color: #c8cecc;
  background: #15191d;
}

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

.footer-brand {
  color: var(--white);
}

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

.footer-grid p {
  max-width: 520px;
  color: #aeb5b7;
  font-size: 13px;
}

.footer-title {
  display: block;
  margin-bottom: 14px;
  color: var(--white);
  font-size: 14px;
}

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

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

.footer-bottom {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #8f999c;
  font-size: 12px;
}

.page-hero {
  padding: 84px 0 74px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.page-hero .breadcrumb {
  margin-bottom: 20px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
}

.page-hero h1 {
  max-width: 850px;
}

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

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

.article-main h2 {
  margin: 70px 0 26px;
  font-size: 30px;
  line-height: 1.3;
}

.article-main h2:first-child {
  margin-top: 0;
}

.article-main h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.article-main p {
  margin: 0 0 18px;
  color: #414950;
}

.article-aside {
  position: sticky;
  top: 104px;
  padding: 24px;
  border-left: 3px solid var(--brand);
  background: var(--soft);
}

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

.article-aside a {
  display: block;
  padding: 7px 0;
  color: #4c545b;
  font-size: 14px;
}

.article-aside .download-btn {
  margin-top: 16px;
  color: var(--white);
}

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

.guide-step {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  counter-increment: guide;
}

.guide-step::before {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--brand);
  content: counter(guide);
  font-weight: 900;
}

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

.instruction-figure {
  display: grid;
  grid-template-columns: minmax(240px, 0.56fr) 1fr;
  align-items: center;
  gap: 38px;
  margin: 34px 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.instruction-figure img {
  width: min(100%, 392px);
  max-width: 400px;
  margin: 0 auto;
  border: 1px solid var(--line);
}

.instruction-figure figcaption {
  color: var(--muted);
}

.instruction-figure figcaption strong {
  display: block;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 22px;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
}

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

.note-box {
  margin: 28px 0;
  padding: 22px 24px;
  border-left: 4px solid var(--gold);
  background: #fff8e8;
}

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

.feature-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.detail-block {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.detail-block p:last-child {
  margin-bottom: 0;
}

.syntax-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}

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

.syntax-table th {
  color: var(--white);
  background: var(--ink);
}

.syntax-table code {
  color: var(--brand);
  font-family: Consolas, Monaco, monospace;
  font-weight: 700;
}

.related-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.related-link {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.related-link span {
  display: block;
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

.related-link strong {
  color: var(--brand);
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr 0.78fr;
    gap: 40px;
  }

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

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

  .screen-grid {
    width: min(700px, 100%);
    margin: 0 auto;
  }

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

  .article-aside {
    position: static;
    display: none;
  }
}

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

  .site-header,
  .nav-shell {
    min-height: 64px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    padding: 16px 20px 24px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: var(--shadow);
  }

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

  .nav-links a {
    padding: 12px;
  }

  .hero,
  .hero-grid {
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding: 34px 0 28px;
    gap: 20px;
  }

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

  .hero-copy > p {
    font-size: 16px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .hero-media {
    min-height: 240px;
    padding: 0;
  }

  .hero-media::before {
    width: 210px;
    height: 210px;
  }

  .hero-media img {
    width: 170px;
    max-height: 230px;
    object-fit: cover;
    object-position: top;
  }

  .hero-badge {
    right: 0;
    bottom: 4%;
  }

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

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

  .proof-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .section {
    padding: 66px 0;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 30px;
  }

  .section-heading h2,
  .showcase-copy h2 {
    font-size: 34px;
  }

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

  .cta-inner h2 {
    font-size: 32px;
  }

  .feature-grid,
  .path-grid,
  .quotes,
  .feature-detail,
  .related-band,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .screen-grid {
    grid-template-columns: repeat(3, 78%);
    justify-content: start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 22px 8px 30px;
  }

  .screen-frame,
  .screen-frame:nth-child(2) {
    scroll-snap-align: center;
    transform: none;
  }

  .steps-preview {
    grid-template-columns: 1fr 1fr;
  }

  .step-mini::after {
    display: none;
  }

  .cta-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    min-height: 280px;
  }

  .page-hero {
    padding: 56px 0;
  }

  .instruction-figure {
    grid-template-columns: 1fr;
    padding: 18px;
  }

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

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

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

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

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

  .hero-media img {
    width: 150px;
    max-height: 205px;
  }

  .feature-grid,
  .steps-preview {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: auto;
  }

  .proof-item {
    padding: 14px 8px;
    font-size: 12px;
  }

  .guide-step {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
  }
}

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

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