:root {
  --rc-text: #253142;
  --rc-muted: #64748b;
  --rc-border: #e2e8f0;
  --rc-panel: #f8fafc;
  --rc-soft: #eef7f2;
  --rc-code-bg: #fff7ed;
  --rc-code-text: #9a3412;
  --rc-accent: var(--theme-color, #42b983);
}

body {
  color: var(--rc-text);
  background: #ffffff;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.content {
  padding-top: 34px;
}

.markdown-section {
  max-width: 980px;
  padding: 32px 28px 58px;
}

.markdown-section h1,
.markdown-section h2,
.markdown-section h3,
.markdown-section h4 {
  color: #172033;
  font-weight: 700;
  letter-spacing: 0;
}

.markdown-section h1 {
  margin: 0 0 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--rc-border);
  font-size: 1.72rem;
  line-height: 1.35;
}

.markdown-section h2 {
  margin: 2rem 0 0.85rem;
  padding-top: 0.2rem;
  font-size: 1.34rem;
  line-height: 1.42;
}

.markdown-section h3 {
  margin: 1.55rem 0 0.65rem;
  font-size: 1.12rem;
  line-height: 1.45;
}

.markdown-section h4 {
  margin: 1.2rem 0 0.45rem;
  color: #334155;
  font-size: 1rem;
  line-height: 1.45;
}

.markdown-section p,
.markdown-section li {
  color: var(--rc-text);
  line-height: 1.78;
}

.markdown-section p {
  margin: 0.55rem 0 1rem;
}

.markdown-section ul,
.markdown-section ol {
  margin: 0.45rem 0 1.05rem 1.15rem;
}

.markdown-section li + li {
  margin-top: 0.22rem;
}

.markdown-section a {
  color: #0f8f5f;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.markdown-section blockquote {
  margin: 1.15rem 0;
  padding: 0.9rem 1rem;
  color: #315445;
  background: var(--rc-soft);
  border-left: 4px solid var(--rc-accent);
  border-radius: 6px;
}

.markdown-section blockquote p {
  margin: 0.25rem 0;
  color: inherit;
}

.markdown-section table {
  display: table;
  width: 100%;
  margin: 1rem 0 1.25rem;
  overflow: hidden;
  border: 1px solid var(--rc-border);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 8px;
}

.markdown-section th {
  color: #1f2937;
  background: var(--rc-panel);
  font-weight: 700;
}

.markdown-section th,
.markdown-section td {
  padding: 0.72rem 0.85rem;
  border-color: var(--rc-border);
  vertical-align: top;
}

.markdown-section tr:nth-child(even) td {
  background: #fcfcfd;
}

.markdown-section code {
  margin: 0 0.08em;
  padding: 0.12em 0.36em;
  color: var(--rc-code-text);
  background: var(--rc-code-bg);
  border-radius: 5px;
  font-size: 0.92em;
}

.markdown-section pre {
  margin: 1rem 0 1.3rem;
  padding: 1rem 1.1rem;
  background: #101827;
  border-radius: 8px;
  box-shadow: none;
}

.markdown-section pre > code {
  margin: 0;
  padding: 0;
  color: #e5eefc;
  background: transparent;
  border-radius: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  white-space: pre;
}

.markdown-section hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid var(--rc-border);
}

.markdown-section strong {
  color: #172033;
}

.markdown-section kbd {
  padding: 0.12rem 0.38rem;
  color: #334155;
  background: #f8fafc;
  border: 1px solid var(--rc-border);
  border-bottom-width: 2px;
  border-radius: 5px;
  font-size: 0.86em;
}

.sidebar {
  background: #f8fafc;
  border-right: 1px solid var(--rc-border);
}

.sidebar > h1 {
  margin: 0.9rem 0 0.6rem;
}

.sidebar ul li a {
  border-radius: 6px;
}

.sidebar ul li.active > a {
  color: #0f8f5f;
  background: #e8f5ef;
  border-right: 0;
  font-weight: 700;
}

.search {
  border-bottom: 1px solid var(--rc-border);
}

.search input {
  border-radius: 6px;
}

@media (max-width: 768px) {
  .content {
    padding-top: 18px;
  }

  .markdown-section {
    padding: 24px 18px 44px;
  }

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

  .markdown-section h2 {
    font-size: 1.2rem;
  }

  .markdown-section table {
    display: block;
    overflow-x: auto;
  }
}

.markdown-section img {
  max-width: 100%;
  height: auto;
  margin: 0.75rem 0 1.25rem;
  border: 1px solid var(--rc-border);
  border-radius: 8px;
  background: #ffffff;
}

.markdown-section details {
  margin: 1rem 0 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--rc-border);
  border-radius: 8px;
  background: #ffffff;
}

.markdown-section summary {
  color: #1f2937;
  cursor: pointer;
  font-weight: 700;
}

.markdown-section details[open] summary {
  margin-bottom: 0.7rem;
}
