:root {
  --primary-color: #007bff;
  --primary-dark: #0056b3;
  --ink: #222;
  --ink-light: #555;
  --border: #e1e1e1;
  --bg-sidebar: #f7f8fa;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
}

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

a:hover {
  text-decoration: underline;
}

.help-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: #14161a;
}

.help-header .brand {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
}

.help-header .brand span {
  color: var(--primary-color);
}

.help-header .home-link {
  color: #ccc;
  font-size: 14px;
}

.help-header .home-link:hover {
  color: #fff;
}

.help-layout {
  display: flex;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
}

.help-sidebar {
  width: 280px;
  flex: 0 0 280px;
  padding: 24px 16px;
  border-right: 1px solid var(--border);
  background: var(--bg-sidebar);
  min-height: calc(100vh - 65px);
}

.help-filter {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 18px;
}

.help-nav-category {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-light);
  margin: 18px 0 6px;
}

.help-nav-category:first-child {
  margin-top: 0;
}

.help-nav-list {
  list-style: none;
  margin: 0 0 4px;
  padding: 0;
}

.help-nav-list li a {
  display: block;
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--ink);
  font-size: 14px;
}

.help-nav-list li a:hover {
  background: #ecedf0;
  text-decoration: none;
}

.help-nav-list li a.active {
  background: var(--primary-color);
  color: #fff;
}

.help-content {
  flex: 1;
  padding: 32px 40px 80px;
  min-width: 0;
}

.help-content h1 {
  margin-top: 0;
  font-weight: 600;
}

.help-content h2 {
  margin-top: 36px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
}

.help-content code {
  background: #f2f2f4;
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 13px;
}

.help-content pre {
  background: #f2f2f4;
  padding: 14px;
  border-radius: 8px;
  overflow-x: auto;
}

.help-content pre code {
  background: none;
  padding: 0;
}

.help-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 16px 0;
  font-size: 14px;
}

.help-content th,
.help-content td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.help-content th {
  background: var(--bg-sidebar);
}

.help-content blockquote {
  border-left: 3px solid var(--primary-color);
  margin: 16px 0;
  padding: 4px 16px;
  color: var(--ink-light);
  background: var(--bg-sidebar);
}

.help-empty-state {
  color: var(--ink-light);
}

@media (max-width: 800px) {
  .help-layout {
    flex-direction: column;
  }

  .help-sidebar {
    width: 100%;
    flex: none;
    min-height: 0;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .help-content {
    padding: 24px;
  }
}
