:root {
  --help-nav-height: 56px;
  --help-bg: #f4f8ff;
  --help-surface: #ffffff;
  --help-surface-2: #f7fbff;
  --help-text: #0f172a;
  --help-muted: #475569;
  --help-accent: #0f766e;
  --help-accent-2: #0369a1;
  --help-border: #dbe7f4;
  --help-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  --help-radius: 14px;
}

html,
body {
  background: radial-gradient(1200px 800px at 0% 0%, #e8f5ff 0%, transparent 60%),
    radial-gradient(1000px 650px at 100% 0%, #e8fff5 0%, transparent 62%), var(--help-bg);
  color: var(--help-text);
  font-family: "Segoe UI", "Noto Sans", "Helvetica Neue", sans-serif;
}

body {
  line-height: 1.55;
}

.app-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--help-nav-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--help-border);
}

.app-nav ul {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  list-style: none;
  flex-wrap: wrap;
  margin-left: auto;
  margin-right: auto;
}

.app-nav ul li {
  float: none !important;
}

.app-nav li {
  margin: 0;
}

.app-nav a {
  color: var(--help-accent-2);
  font-weight: 600;
}

.sidebar {
  width: 320px;
  padding: calc(var(--help-nav-height) + 18px) 14px 28px;
  border-right: 1px solid var(--help-border);
  background: linear-gradient(180deg, #f8fbff 0%, #f4f9ff 100%);
}

.sidebar::-webkit-scrollbar {
  width: 8px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: #c6d7ea;
  border-radius: 999px;
}

.sidebar ul li a {
  border-radius: 10px;
  color: var(--help-text);
}

.sidebar ul li.active > a {
  color: #ffffff;
  background: linear-gradient(90deg, var(--help-accent) 0%, var(--help-accent-2) 100%);
}

.sidebar-toggle {
  background: var(--help-accent-2);
}

.sidebar .search input {
  border-radius: 10px;
  border: 1px solid var(--help-border);
  padding: 8px 10px;
}

.content {
  padding-top: calc(var(--help-nav-height) + 22px);
}

.markdown-section {
  max-width: 1080px;
  margin: 0 auto 40px;
  background: var(--help-surface);
  border: 1px solid var(--help-border);
  border-radius: var(--help-radius);
  box-shadow: var(--help-shadow);
  padding: 26px 28px 34px;
}

.markdown-section h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 0.85rem;
  color: #0b1324;
}

.markdown-section h2,
.markdown-section h3 {
  border-left: 4px solid var(--help-accent);
  padding-left: 10px;
  margin-top: 1.4rem;
  color: #12263a;
}

.markdown-section p,
.markdown-section li {
  color: var(--help-text);
}

.markdown-section blockquote {
  border-left: 4px solid var(--help-accent-2);
  background: var(--help-surface-2);
  color: var(--help-muted);
  border-radius: 10px;
  padding: 10px 14px;
}

.markdown-section code {
  background: #eef4fb;
  color: #0b4d77;
  border-radius: 6px;
  padding: 2px 6px;
}

.markdown-section pre > code {
  background: #0f172a;
  color: #e2e8f0;
}

.markdown-section a {
  color: var(--help-accent-2);
  font-weight: 600;
}

.help-shot-item {
  list-style: none;
  margin-left: 0;
}

.help-shot {
  margin: 12px 0 18px;
  padding: 14px;
  border: 1px solid var(--help-border);
  border-radius: 12px;
  background: #fbfdff;
}

.help-shot-caption {
  font-weight: 700;
  margin-bottom: 8px;
  color: #0f172a;
}

.help-shot-link {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #d7e2ef;
  background: #ffffff;
}

.help-shot-link:hover {
  border-color: #9ec5e8;
  box-shadow: 0 8px 22px rgba(3, 105, 161, 0.18);
}

.help-shot-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.help-shot-path {
  display: block;
  margin-top: 8px;
  font-size: 0.82rem;
  color: #0b4d77;
  word-break: break-all;
}

@media (max-width: 1120px) {
  .sidebar {
    width: 290px;
  }

  .markdown-section {
    border-radius: 0;
    border-left: none;
    border-right: none;
    margin: 0 0 24px;
    max-width: none;
  }
}

@media (max-width: 768px) {
  :root {
    --help-nav-height: 52px;
  }

  .app-nav {
    padding: 8px 12px;
  }

  .app-nav ul {
    gap: 14px;
  }

  .markdown-section {
    padding: 20px 14px 28px;
  }

  .markdown-section h1 {
    font-size: 1.65rem;
  }
}
