:root {
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f1f5f9;
  --page: #ffffff;
  --primary: #1a73e8;
  --primary-dark: #1557b0;
  --primary-soft: #e8f0fe;
  --violet: #6d4aff;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 16px/1.7 Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

a {
  color: var(--primary-dark);
}

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

h1,
h2,
h3,
h4 {
  color: var(--ink);
  line-height: 1.25;
  scroll-margin-top: 80px;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 5vw, 46px);
  letter-spacing: -0.02em;
}

h2 {
  margin: 44px 0 14px;
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: -0.01em;
}

h3 {
  margin: 28px 0 10px;
  font-size: 19px;
}

code {
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--soft);
  color: var(--ink);
  font: 0.88em ui-monospace, SFMono-Regular, Menlo, monospace;
}

pre {
  overflow-x: auto;
  padding: 16px;
  border-radius: 12px;
  background: #0f172a;
  color: #e2e8f0;
}

pre code {
  padding: 0;
  background: none;
  color: inherit;
}

.seo-wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.seo-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
}

.seo-header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.seo-brand {
  display: inline-flex;
  color: var(--ink);
}

.seo-logo {
  width: 112px;
  height: 28px;
}

.seo-nav {
  display: flex;
  flex: 1;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.seo-nav a {
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.seo-nav a:hover {
  background: var(--soft);
  color: var(--ink);
}

.seo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--primary);
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(26, 115, 232, 0.22);
  transition:
    background 0.15s,
    transform 0.15s;
}

.seo-button:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.seo-button-small {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 14px;
  box-shadow: none;
}

.seo-button-ghost {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
  box-shadow: none;
}

.seo-button-ghost:hover {
  background: var(--soft);
}

.seo-hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(109, 74, 255, 0.12), transparent 60%),
    radial-gradient(700px 360px at 0% 0%, rgba(26, 115, 232, 0.1), transparent 60%),
    #fbfcff;
}

.seo-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 48px;
}

.seo-lead {
  margin: 0 0 26px;
  color: var(--text);
  font-size: 19px;
}

.seo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.seo-shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
}

.seo-shot img {
  display: block;
}

.seo-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
}

.seo-crumbs a {
  color: var(--muted);
  text-decoration: none;
}

.seo-crumbs a:hover {
  color: var(--primary);
}

.seo-article {
  max-width: 820px;
  padding-top: 8px;
  padding-bottom: 64px;
}

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

.seo-article li,
.seo-doc li {
  margin: 6px 0;
}

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

.seo-steps li {
  position: relative;
  margin: 0 0 10px;
  padding: 14px 16px 14px 58px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  counter-increment: step;
}

.seo-steps li::before {
  content: counter(step);
  position: absolute;
  top: 12px;
  left: 14px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 800;
}

.seo-table {
  overflow-x: auto;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.seo-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

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

.seo-table thead th {
  background: var(--soft);
  color: var(--ink);
}

.seo-table tr:last-child th,
.seo-table tr:last-child td {
  border-bottom: none;
}

.seo-parts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
  padding: 0 !important;
  list-style: none;
}

.seo-parts li {
  display: flex;
  flex-direction: column;
  margin: 0 !important;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.seo-parts strong {
  color: var(--ink);
  font-size: 15px;
}

.seo-parts span {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.seo-faq {
  margin: 0 0 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.seo-faq summary {
  padding: 14px 18px;
  color: var(--ink);
  font-weight: 650;
  cursor: pointer;
}

.seo-faq p {
  margin: 0;
  padding: 0 18px 16px;
}

.seo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}

.seo-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.seo-card:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.seo-card strong {
  color: var(--ink);
}

.seo-card span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.seo-cta {
  margin-top: 48px;
  padding: 32px;
  border-radius: 20px;
  background: linear-gradient(135deg, #1a73e8, #6d4aff);
  color: #e8efff;
  text-align: center;
}

.seo-cta h2 {
  margin: 0 0 8px;
  color: #fff;
}

.seo-cta p {
  max-width: 560px;
  margin: 0 auto 20px;
}

.seo-cta .seo-button {
  border-color: #fff;
  background: #fff;
  color: var(--primary);
}

.seo-board {
  margin: 14px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  border-radius: 10px;
  background: #fff;
}

.seo-board strong {
  color: var(--ink);
}

.seo-board span {
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
}

.seo-board p {
  margin: 4px 0 0;
}

.seo-callout {
  margin: 18px 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  border-radius: 10px;
  background: var(--primary-soft);
}

.seo-callout > :first-child {
  margin-top: 0;
}

.seo-callout > :last-child {
  margin-bottom: 0;
}

.seo-callout-tip {
  border-left-color: #16a34a;
  background: #ecfdf3;
}

.seo-callout-warning {
  border-left-color: #f59f00;
  background: #fff8e6;
}

.seo-docs {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 200px;
  align-items: start;
  gap: 40px;
  padding-top: 32px;
  padding-bottom: 64px;
}

.seo-docs-index {
  grid-template-columns: minmax(0, 1fr);
}

.seo-sidebar,
.seo-toc {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  font-size: 14px;
}

.seo-sidebar div,
.seo-toc {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.seo-sidebar strong,
.seo-toc strong {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.seo-sidebar a,
.seo-toc a {
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--text);
  line-height: 1.45;
  text-decoration: none;
}

.seo-sidebar a:hover,
.seo-toc a:hover {
  background: var(--soft);
}

.seo-sidebar a[aria-current='page'] {
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 650;
}

.seo-doc {
  min-width: 0;
}

.seo-doc h1 {
  font-size: clamp(28px, 4vw, 38px);
}

.seo-doc-wide {
  max-width: 980px;
}

.seo-doc-groups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 8px 32px;
}

.seo-doc-groups h2 {
  margin-top: 24px;
  font-size: 19px;
}

.seo-pager {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
}

.seo-pager a {
  display: flex;
  flex-direction: column;
  max-width: 48%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.seo-pager a:last-child {
  margin-left: auto;
  text-align: right;
}

.seo-pager small {
  color: var(--muted);
}

.seo-footer {
  border-top: 1px solid var(--line);
  background: #fbfcff;
  font-size: 14px;
}

.seo-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 0.8fr;
  gap: 32px;
  padding-top: 40px;
  padding-bottom: 24px;
}

.seo-footer-grid div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.seo-footer-grid strong {
  color: var(--ink);
}

.seo-footer-grid a {
  color: var(--text);
  text-decoration: none;
}

.seo-footer-grid a:hover {
  color: var(--primary);
}

.seo-footer p {
  margin: 8px 0 0;
}

.seo-fine {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.seo-copy {
  padding-bottom: 28px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 1100px) {
  .seo-docs {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .seo-toc {
    display: none;
  }
}

@media (max-width: 860px) {
  .seo-hero-grid,
  .seo-docs {
    grid-template-columns: minmax(0, 1fr);
  }

  .seo-hero {
    padding-top: 36px;
  }

  .seo-sidebar {
    position: static;
    order: 2;
    max-height: none;
    padding-top: 24px;
    border-top: 1px solid var(--line);
  }

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

  .seo-nav {
    display: none;
  }

  .seo-header-inner {
    justify-content: space-between;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 15.5px;
  }

  .seo-wrap {
    padding: 0 16px;
  }

  .seo-lead {
    font-size: 17px;
  }

  .seo-actions .seo-button {
    flex: 1 1 100%;
  }

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

  .seo-cta {
    padding: 24px 18px;
  }

  .seo-pager {
    flex-direction: column;
  }

  .seo-pager a {
    max-width: none;
  }
}
