:root {
  --chestnut: #8b3f2c;
  --chestnut-dark: #5f291e;
  --amber: #f4b942;
  --amber-soft: #ffe4a3;
  --forest: #2f6756;
  --forest-dark: #21493e;
  --cream: #fff8e8;
  --paper: #fffdf7;
  --ink: #2b2522;
  --muted: #6f6862;
  --line: #e8ddd2;
  --white: #ffffff;
  --shadow: 0 18px 48px rgba(71, 42, 31, 0.12);
  --content: 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;
  line-height: 1.75;
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 14px;
  color: var(--white);
  background: var(--forest-dark);
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(95, 41, 30, 0.12);
  background: rgba(255, 253, 247, 0.96);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  width: min(calc(100% - 40px), var(--content));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

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

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

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

.site-nav a:not(.button) {
  min-height: 42px;
  padding: 8px 15px;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  color: #4f4843;
  font-size: 15px;
  font-weight: 700;
}

.site-nav a:not(.button):hover,
.site-nav a[aria-current="page"] {
  color: var(--chestnut);
  border-bottom-color: var(--amber);
}

.button {
  min-height: 46px;
  padding: 11px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--chestnut);
  border-radius: 6px;
  color: var(--white);
  background: var(--chestnut);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  background: var(--chestnut-dark);
  box-shadow: 0 10px 24px rgba(95, 41, 30, 0.2);
  transform: translateY(-2px);
}

.button-light {
  border-color: var(--white);
  color: var(--chestnut-dark);
  background: var(--white);
}

.button-light:hover {
  color: var(--white);
}

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

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--chestnut-dark);
}

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

.hero {
  min-height: 610px;
  overflow: hidden;
  position: relative;
  color: var(--white);
  background: var(--chestnut-dark);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: linear-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.13) 1px, transparent 1px);
  background-size: 42px 42px;
}

.hero-shell {
  min-height: 610px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 510px;
  align-items: center;
  gap: 60px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 620px;
  padding: 82px 0 76px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 650px;
  margin: 0 0 18px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero h1 + p {
  max-width: 630px;
  margin: 0 0 28px;
  color: #f7eadd;
  font-size: 18px;
  line-height: 1.85;
}

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

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

.hero-visual {
  height: 610px;
  position: relative;
  align-self: end;
}

.phone-shot {
  position: absolute;
  overflow: hidden;
  border: 9px solid #241b18;
  border-radius: 30px;
  background: #ffffff;
  box-shadow: 0 28px 65px rgba(20, 11, 8, 0.4);
}

.phone-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-shot-main {
  width: 278px;
  height: 494px;
  right: 20px;
  bottom: 20px;
  transform: rotate(3deg);
}

.phone-shot-side {
  width: 215px;
  height: 382px;
  left: 0;
  bottom: 0;
  transform: rotate(-6deg);
}

.stats-strip {
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}

.stats-grid {
  min-height: 104px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
}

.stat {
  padding: 16px 28px;
  border-right: 1px solid var(--line);
}

.stat:first-child {
  padding-left: 0;
}

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

.stat strong {
  display: block;
  color: var(--chestnut-dark);
  font-size: 21px;
  line-height: 1.2;
}

.stat span {
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 92px 0;
}

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

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

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-heading h2,
.content-header h1 {
  margin: 0;
  color: var(--chestnut-dark);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.2;
  letter-spacing: 0;
}

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

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

.feature-item {
  min-height: 248px;
  padding: 30px;
  border-top: 5px solid var(--amber);
  border-radius: 6px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.feature-number {
  width: 44px;
  height: 44px;
  margin-bottom: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--forest);
  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);
}

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

.screenshot-item {
  margin: 0;
}

.screenshot-item img {
  width: 100%;
  max-width: 400px;
  height: auto;
  aspect-ratio: 430 / 765;
  border: 8px solid #29211e;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.screenshot-item figcaption {
  padding: 15px 4px 0;
  color: var(--muted);
  font-size: 14px;
}

.screenshot-item strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 17px;
}

.route-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.route-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: route;
}

.route-list li {
  min-height: 94px;
  padding: 8px 0 24px 70px;
  position: relative;
  counter-increment: route;
  border-bottom: 1px solid rgba(255, 255, 255, 0.17);
}

.route-list li + li {
  padding-top: 24px;
}

.route-list li::before {
  content: counter(route);
  width: 44px;
  height: 44px;
  position: absolute;
  top: 10px;
  left: 0;
  display: grid;
  place-items: center;
  border: 2px solid var(--amber);
  border-radius: 50%;
  color: var(--amber);
  font-weight: 900;
}

.route-list li + li::before {
  top: 26px;
}

.route-list strong {
  display: block;
  font-size: 19px;
}

.route-list span {
  color: #d7e6e0;
}

.route-copy h2 {
  margin: 0 0 26px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.2;
}

.route-copy p {
  color: #d7e6e0;
}

.route-copy .text-link {
  color: var(--amber);
}

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

.deep-card {
  min-height: 260px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.deep-card:nth-child(2) {
  border-top: 5px solid var(--forest);
}

.deep-card:nth-child(1),
.deep-card:nth-child(3) {
  border-top: 5px solid var(--chestnut);
}

.deep-card small {
  color: var(--forest);
  font-weight: 900;
}

.deep-card h3 {
  margin: 16px 0 10px;
  font-size: 23px;
}

.deep-card p {
  margin: 0 0 24px;
  color: var(--muted);
}

.text-link {
  margin-top: auto;
  color: var(--chestnut);
  font-weight: 900;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

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

.quote-card {
  margin: 0;
  padding: 26px;
  border-left: 4px solid var(--amber);
  background: rgba(255, 255, 255, 0.08);
}

.quote-card p {
  margin: 0 0 18px;
  color: #eef5f2;
}

.quote-card cite {
  color: var(--amber-soft);
  font-style: normal;
  font-size: 14px;
}

.faq-preview {
  max-width: 900px;
}

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

.faq-item summary {
  padding: 21px 48px 21px 0;
  position: relative;
  cursor: pointer;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  list-style: none;
}

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

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 10px;
  color: var(--chestnut);
  font-size: 28px;
  font-weight: 400;
}

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

.faq-item p,
.faq-item ul {
  margin: -5px 48px 22px 0;
  color: var(--muted);
}

.download-band {
  padding: 58px 0;
  color: var(--white);
  background: var(--chestnut);
}

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

.download-band h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
}

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

.site-footer {
  padding: 52px 0 26px;
  color: #d9d0ca;
  background: #211b18;
}

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

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

.footer-brand p {
  max-width: 480px;
  margin: 18px 0 0;
  font-size: 14px;
}

.footer-links strong {
  display: block;
  margin-bottom: 14px;
  color: var(--white);
}

.footer-links a {
  display: block;
  margin: 8px 0;
  font-size: 14px;
}

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

.footer-bottom {
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
}

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

.content-hero {
  padding: 74px 0 64px;
  color: var(--white);
  background: var(--forest-dark);
}

.breadcrumbs {
  margin: 0 0 22px;
  color: #bfd2ca;
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: var(--amber);
}

.content-header {
  max-width: 850px;
}

.content-header h1 {
  color: var(--white);
}

.content-header h1 + p {
  margin: 18px 0 0;
  color: #d7e6e0;
  font-size: 18px;
}

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

.article h2 {
  margin: 62px 0 20px;
  color: var(--chestnut-dark);
  font-size: 30px;
  line-height: 1.25;
}

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

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

.article p {
  margin: 0 0 18px;
}

.article ul,
.article ol {
  padding-left: 22px;
}

.article li {
  margin: 8px 0;
}

.step-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.step-card {
  margin-bottom: 26px;
  padding: 28px 30px 28px 88px;
  position: relative;
  counter-increment: steps;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.step-card::before {
  content: counter(steps, decimal-leading-zero);
  width: 48px;
  height: 48px;
  position: absolute;
  top: 28px;
  left: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--chestnut);
  font-size: 14px;
  font-weight: 900;
}

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

.notice {
  margin: 28px 0;
  padding: 22px 24px;
  border-left: 5px solid var(--amber);
  background: var(--cream);
}

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

.article-aside {
  position: sticky;
  top: 96px;
}

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

.aside-block + .aside-block {
  margin-top: 20px;
}

.aside-block strong {
  display: block;
  margin-bottom: 12px;
  color: var(--chestnut-dark);
}

.aside-block a:not(.button) {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  font-size: 14px;
}

.aside-block a:not(.button):hover {
  color: var(--chestnut);
}

.aside-block .button {
  width: 100%;
}

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

.function-box {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.function-box p {
  margin-bottom: 0;
  color: var(--muted);
}

.settings-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

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

.settings-table th {
  color: var(--chestnut-dark);
  background: var(--cream);
}

.back-to-top {
  width: 44px;
  height: 44px;
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: var(--forest);
  box-shadow: 0 10px 24px rgba(33, 73, 62, 0.3);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

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

  .site-nav {
    position: fixed;
    top: 72px;
    right: 0;
    left: 0;
    padding: 18px 20px 24px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: var(--shadow);
  }

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

  .site-nav a:not(.button) {
    justify-content: center;
  }

  .hero,
  .hero-shell {
    min-height: 660px;
  }

  .hero-shell {
    grid-template-columns: 1fr 360px;
    gap: 20px;
  }

  .phone-shot-main {
    width: 250px;
    height: 445px;
    right: 0;
  }

  .phone-shot-side {
    width: 180px;
    height: 320px;
  }

  .feature-grid,
  .deep-grid,
  .quote-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .article-aside {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .aside-block + .aside-block {
    margin-top: 0;
  }
}

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

  .nav-wrap {
    height: 64px;
  }

  .site-nav {
    top: 64px;
  }

  .brand {
    font-size: 18px;
  }

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

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

  .hero-shell {
    padding-top: 0;
    display: block;
  }

  .hero-copy {
    padding: 54px 0 24px;
  }

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

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

  .hero-visual {
    width: 100%;
    height: 270px;
  }

  .phone-shot-main {
    width: 180px;
    height: 320px;
    right: 12%;
    bottom: -88px;
  }

  .phone-shot-side {
    width: 142px;
    height: 252px;
    left: 12%;
    bottom: -96px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    padding-top: 60px;
  }

  .stat {
    padding: 18px 12px;
    border-bottom: 1px solid var(--line);
  }

  .stat:first-child {
    padding-left: 12px;
  }

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

  .section {
    padding: 66px 0;
  }

  .feature-grid,
  .deep-grid,
  .quote-grid,
  .route-grid,
  .function-grid,
  .footer-grid,
  .article-aside {
    grid-template-columns: 1fr;
  }

  .screenshot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .screenshot-item img {
    border-width: 5px;
    border-radius: 16px;
  }

  .screenshot-item figcaption {
    font-size: 12px;
  }

  .screenshot-item strong {
    font-size: 15px;
  }

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

  .footer-grid {
    gap: 30px;
  }

  .content-hero {
    padding: 52px 0 48px;
  }

  .article h2 {
    margin-top: 48px;
    font-size: 27px;
  }

  .step-card {
    padding: 78px 22px 24px;
  }

  .step-card::before {
    top: 20px;
    left: 22px;
  }

  .settings-table,
  .settings-table tbody,
  .settings-table tr,
  .settings-table th,
  .settings-table td {
    display: block;
  }

  .settings-table thead {
    display: none;
  }

  .settings-table tr {
    margin-bottom: 14px;
    border: 1px solid var(--line);
  }

  .settings-table td {
    border: 0;
    border-bottom: 1px solid var(--line);
  }

  .settings-table td:last-child {
    border-bottom: 0;
  }
}

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

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