:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #2563eb;
  --primary-soft: #dbeafe;
  --border: #e5e7eb;
  --success: #065f46;
  --success-soft: #d1fae5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

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

a:hover {
  text-decoration: underline;
}

.topbar {
  background: #111827;
  color: #fff;
  padding: 18px 24px;
}

.topbar-inner,
.layout {
  max-width: 1200px;
  margin: 0 auto;
}

.brand {
  font-size: 22px;
  font-weight: 700;
}

.brand-note {
  color: #cbd5e1;
  font-size: 14px;
  margin-top: 4px;
}

.layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  padding: 24px;
}

.sidebar,
.content-card,
.hero,
.callout,
.command-table,
.step-list,
.faq-list {
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.08);
}

.sidebar {
  padding: 18px;
  align-self: start;
  position: sticky;
  top: 24px;
}

.sidebar h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.sidebar a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
  margin-bottom: 6px;
}

.sidebar a.active,
.sidebar a:hover {
  background: var(--primary-soft);
  color: #1d4ed8;
  text-decoration: none;
}

.content {
  min-width: 0;
}

.hero {
  padding: 28px;
  margin-bottom: 20px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: 34px;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

.btn.secondary {
  background: #e5e7eb;
  color: var(--text);
}

.btn:hover {
  text-decoration: none;
  opacity: 0.95;
}

.content-card,
.callout,
.command-table,
.step-list,
.faq-list {
  padding: 24px;
  margin-bottom: 20px;
}

.section-title {
  margin: 0 0 14px;
  font-size: 24px;
}

.muted {
  color: var(--muted);
}

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

.mini-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}

.mini-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

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

.callout {
  background: var(--success-soft);
  color: var(--success);
}

.callout strong {
  display: block;
  margin-bottom: 8px;
}

.step-list ol,
.faq-list ol,
.faq-list ul {
  margin: 0;
  padding-left: 22px;
}

.step-list li,
.faq-list li {
  margin-bottom: 10px;
}

.step-list code,
.command-table code,
.faq-list code {
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 6px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 14px;
}

.command-table table {
  width: 100%;
  border-collapse: collapse;
}

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

.command-table th {
  color: var(--muted);
  font-size: 14px;
}

.footer {
  color: var(--muted);
  font-size: 13px;
  padding: 0 4px 24px;
}

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

  .sidebar {
    position: static;
  }

  .hero h1 {
    font-size: 28px;
  }
}
