:root {
  --bg: #ffffff;
  --sidebar: #f6f7fb;
  --line: #e5e7ef;
  --text: #2f313b;
  --muted: #666b7a;
  --link: #6759ff;
  --button-bg: #f5f5fb;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Roboto", sans-serif;
  color: var(--text);
  background: var(--bg);
}

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

a:hover {
  text-decoration: underline;
}

.layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 255px minmax(0, 1fr);
}

.sidebar {
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  padding: 22px 22px 28px;
}

.brand {
  display: inline-block;
  margin-bottom: 28px;
  font-size: 1.9rem;
  font-weight: 400;
  color: var(--text);
}

.sidebar-nav {
  display: grid;
  gap: 14px;
}

.sidebar-nav a {
  line-height: 1.35;
}

.sidebar-footer {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.page {
  min-width: 0;
}

.topbar {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
}

.top-link {
  font-size: 0.95rem;
  text-align: right;
}

.content {
  max-width: 920px;
  padding: 44px 32px 60px;
}

h1 {
  margin: 0 0 44px;
  font-size: 3rem;
  font-weight: 300;
  line-height: 1.1;
}

h2 {
  margin: 0 0 18px;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
}

section {
  margin-bottom: 54px;
}

p,
li {
  font-size: 1.02rem;
  line-height: 1.7;
}

ul,
ol {
  padding-left: 24px;
}

li + li {
  margin-top: 8px;
}

li p {
  margin: 2px 0 0;
  color: var(--muted);
}

.download-button {
  display: inline-block;
  margin-top: 10px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--button-bg);
  font-weight: 500;
  box-shadow: 0 1px 4px rgba(28, 30, 38, 0.08);
}

.code-block {
  position: relative;
}

.copy-button {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--muted);
  padding: 6px 10px;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.copy-button:hover {
  color: var(--text);
}

pre {
  overflow-x: auto;
  margin: 14px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fafbfe;
}

.code-block pre {
  padding-top: 46px;
}

code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.95rem;
}

hr {
  margin: 28px 0 22px;
  border: 0;
  border-top: 1px solid var(--line);
}

.footer-note {
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .topbar {
    padding: 14px 20px;
    justify-content: flex-start;
  }

  .content {
    padding: 30px 20px 48px;
  }

  h1 {
    margin-bottom: 32px;
    font-size: 2.35rem;
  }

  h2 {
    font-size: 1.7rem;
  }
}
