:root {
  color-scheme: light;
  --bg: #f7f7f2;
  --panel: #ffffff;
  --panel-soft: #f0f2ed;
  --text: #111418;
  --muted: #5d6670;
  --border: #d9ded6;
  --accent: #256fbd;
  --accent-strong: #15538f;
  --ok: #2f7d4f;
  --warn: #9c5f12;
  --danger: #b33a33;
  --code-bg: #101418;
  --code-text: #edf3ef;
  --shadow: 0 12px 30px rgba(28, 34, 32, 0.08);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Noto Sans CJK SC", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

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

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

.nav {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 750;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border: 2px solid var(--text);
  border-radius: 7px;
  display: inline-grid;
  place-items: center;
  font-size: 13px;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
}

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

.nav-links a[aria-current="page"],
.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
}

.language-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.language-switch a[aria-current="true"] {
  background: var(--text);
  color: #fff;
}

.language-switch a:hover {
  color: var(--text);
  text-decoration: none;
}

.language-switch a[aria-current="true"]:hover {
  color: #fff;
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  padding: 72px 0 44px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 42px;
  align-items: center;
}

.eyebrow {
  color: var(--muted);
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3 {
  line-height: 1.18;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(44px, 8vw, 88px);
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 44px);
}

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

.lead {
  margin: 20px 0 0;
  color: #333a42;
  font-size: clamp(18px, 2.2vw, 24px);
  max-width: 720px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font-weight: 700;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

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

.button:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.screenshot-stack {
  display: grid;
  gap: 14px;
}

.shot,
.figure {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.shot img,
.figure img {
  width: 100%;
  height: auto;
}

.caption,
figcaption {
  color: var(--muted);
  font-size: 14px;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  background: var(--panel);
}

section {
  padding: 52px 0;
  border-top: 1px solid var(--border);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1.2fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 24px;
}

.section-head p {
  color: var(--muted);
  margin: 0;
}

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

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

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
}

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

.card ul,
.doc-body ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.card li,
.doc-body li {
  margin: 5px 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 9px;
  background: var(--panel-soft);
  color: #2c333a;
  font-size: 13px;
}

.install-box {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 18px;
}

pre {
  margin: 0;
  padding: 16px;
  overflow: auto;
  border-radius: 8px;
  background: var(--code-bg);
  color: var(--code-text);
  font-size: 14px;
  line-height: 1.55;
}

code {
  font-family:
    "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono",
    "Noto Sans Mono CJK SC", monospace;
}

:not(pre) > code {
  background: var(--panel-soft);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 5px;
  color: #20252b;
}

.notice {
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: var(--panel);
  padding: 14px 16px;
  color: var(--muted);
}

.notice strong {
  color: var(--text);
}

.doc-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 34px;
  padding: 44px 0 72px;
}

.doc-nav {
  position: sticky;
  top: 88px;
  align-self: start;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  padding: 12px;
}

.doc-nav a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
}

.doc-nav a[aria-current="page"],
.doc-nav a:hover {
  background: var(--panel-soft);
  color: var(--text);
  text-decoration: none;
}

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

.doc-body > p {
  color: #333a42;
}

.doc-body h1 {
  font-size: clamp(36px, 6vw, 64px);
  margin-bottom: 16px;
}

.doc-body h2 {
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.doc-body h3 {
  margin-top: 26px;
}

.doc-body figure {
  margin: 22px 0;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--panel-soft);
}

tr:last-child td {
  border-bottom: 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .hero,
  .section-head,
  .install-box,
  .doc-layout {
    grid-template-columns: 1fr;
  }

  .doc-nav {
    position: static;
  }

  .grid,
  .grid.two {
    grid-template-columns: 1fr;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

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

@media (max-width: 520px) {
  .wrap,
  .nav {
    width: min(100% - 22px, 1120px);
  }

  .hero {
    padding-top: 40px;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
