:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #5f6368;
  --line: #dedede;
  --paper: #ffffff;
  --soft: #f5f6f7;
  --accent: #d9480f;
  --accent-dark: #a93408;
  --positive: #147d64;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0;
}

a {
  color: var(--accent-dark);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.header-inner,
.page-shell,
.footer-inner {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 44px;
  height: 32px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
}

.site-nav a {
  color: #353535;
  text-decoration: none;
}

.site-nav .platform-link {
  border: 1px solid var(--ink);
  border-radius: 6px;
  padding: 7px 12px;
  color: var(--ink);
  font-weight: 650;
}

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

.page-shell {
  padding: 72px 0 80px;
}

.breadcrumb {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 700;
}

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

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

h2 {
  margin-bottom: 18px;
  font-size: 28px;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.lead {
  max-width: 820px;
  margin: 0;
  color: #454545;
  font-size: 19px;
}

.no-break {
  white-space: nowrap;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.command-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 6px;
  padding: 8px 16px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.command-link.secondary {
  background: var(--paper);
  color: var(--ink);
}

.command-link:hover {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  color: #ffffff;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 64px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.summary-item {
  min-width: 0;
  padding: 24px 26px;
  border-right: 1px solid var(--line);
}

.summary-item:first-child {
  padding-left: 0;
}

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

.summary-item p {
  margin: 0;
  color: var(--muted);
}

.content-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.7fr);
  gap: 64px;
  padding: 70px 0;
  border-bottom: 1px solid var(--line);
}

.content-section:last-of-type {
  border-bottom: 0;
}

.section-body > :first-child {
  margin-top: 0;
}

.section-body > :last-child {
  margin-bottom: 0;
}

.section-body p,
.section-body li {
  color: #3e4145;
}

.section-body ul,
.section-body ol {
  margin: 18px 0;
  padding-left: 24px;
}

.section-body li + li {
  margin-top: 10px;
}

.note {
  margin: 24px 0;
  border-left: 3px solid var(--positive);
  padding: 12px 0 12px 18px;
  color: #33433f;
}

.faq-item {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.faq-item p {
  margin: 0;
}

pre {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid #2d2f31;
  border-radius: 6px;
  padding: 20px;
  background: #181a1b;
  color: #f3f3f3;
  font: 14px/1.65 Consolas, "SFMono-Regular", monospace;
  white-space: pre;
}

code {
  font-family: Consolas, "SFMono-Regular", monospace;
}

p code,
li code {
  border-radius: 4px;
  padding: 2px 5px;
  background: var(--soft);
  color: #8f2d0b;
  font-size: 0.92em;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--soft);
}

.footer-inner {
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner p {
  margin: 0;
}

@media (max-width: 780px) {
  .site-header {
    position: static;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 14px 0;
  }

  .site-nav {
    width: 100%;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .site-nav a {
    white-space: nowrap;
  }

  .page-shell {
    padding: 48px 0 60px;
  }

  h1 {
    font-size: 36px;
  }

  .lead {
    font-size: 17px;
  }

  .summary-grid,
  .content-section {
    grid-template-columns: 1fr;
  }

  .summary-item,
  .summary-item:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 20px 0;
  }

  .summary-item:last-child {
    border-bottom: 0;
  }

  .content-section {
    gap: 18px;
    padding: 52px 0;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 22px 0;
  }
}

@media (max-width: 440px) {
  .header-inner,
  .page-shell,
  .footer-inner {
    width: min(100% - 28px, 1080px);
  }

  .brand span {
    font-size: 15px;
  }

  h1 {
    font-size: 31px;
  }

  h2 {
    font-size: 24px;
  }
}
