:root {
  --theme-color: #70e1c1;
  --accent-secondary: #8b7cf6;
  --base-background-color: #10131a;
  --surface: #171c27;
  --surface-raised: #1d2431;
  --border: #2a3344;
  --text: #d9e0eb;
  --text-muted: #96a2b5;
  --code: #0c0f15;
  --sidebar-width: 300px;
}

* {
  scrollbar-color: #46546c #10131a;
}

body {
  background: var(--base-background-color);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  letter-spacing: 0.005em;
}

a,
.markdown-section a {
  color: var(--theme-color);
  text-decoration-color: rgba(112, 225, 193, 0.45);
  text-underline-offset: 0.18em;
}

.markdown-section {
  max-width: 920px;
  padding: 48px 54px 80px;
}

.markdown-section h1,
.markdown-section h2,
.markdown-section h3,
.markdown-section h4 {
  color: #f4f7fb;
  font-weight: 650;
  letter-spacing: -0.02em;
}

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

.markdown-section h2 {
  border-bottom: 1px solid var(--border);
  margin-top: 2.5rem;
  padding-bottom: 0.45rem;
}

.markdown-section p,
.markdown-section li {
  line-height: 1.72;
}

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

.sidebar {
  background: #0c0f15;
  border-right: 1px solid var(--border);
  padding: 20px 0 28px;
}

.sidebar > h1 {
  margin: 0 24px 20px;
  text-align: left;
}

.app-name-link {
  color: #f4f7fb !important;
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.sidebar-nav > ul > li > p {
  color: #718096;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  margin: 1.55rem 24px 0.45rem;
  text-transform: uppercase;
}

.sidebar ul li a {
  border-left: 2px solid transparent;
  color: #aeb8c7;
  font-size: 0.94rem;
  padding: 5px 24px;
}

.sidebar ul li.active > a {
  background: linear-gradient(90deg, rgba(112, 225, 193, 0.1), transparent);
  border-left-color: var(--theme-color);
  color: var(--theme-color);
  font-weight: 650;
}

.sidebar ul li ul {
  padding-left: 10px;
}

.search {
  border-bottom: 1px solid var(--border) !important;
  margin-bottom: 8px;
  padding: 8px 20px 16px !important;
}

.search input {
  background: var(--surface);
  border: 1px solid var(--border) !important;
  border-radius: 8px;
  color: var(--text);
  padding: 9px 12px;
}

.search .matching-post {
  border-bottom-color: var(--border) !important;
}

.markdown-section code {
  background: rgba(112, 225, 193, 0.1);
  border-radius: 4px;
  color: #9aebd5;
  font-size: 0.88em;
  padding: 0.14em 0.38em;
}

.markdown-section pre {
  background: var(--code);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.markdown-section pre > code {
  background: transparent;
  color: #d8dee9;
  padding: 1.35rem 1.45rem;
}

.docsify-copy-code-button {
  background: var(--surface-raised) !important;
  border-radius: 0 9px 0 8px !important;
  color: var(--text-muted) !important;
  font-size: 0.72rem !important;
}

.markdown-section table {
  display: table;
  font-size: 0.92rem;
  margin: 1.4rem 0;
  width: 100%;
}

.markdown-section th {
  background: var(--surface-raised);
  color: #f1f4f8;
  font-weight: 650;
}

.markdown-section td,
.markdown-section th {
  border-color: var(--border);
  padding: 10px 12px;
}

.markdown-section tr:nth-child(2n) {
  background: rgba(255, 255, 255, 0.018);
}

.markdown-section blockquote {
  background: var(--surface);
  border-left: 4px solid var(--theme-color);
  border-radius: 0 8px 8px 0;
  color: var(--text);
  margin: 1.5rem 0;
  padding: 0.9rem 1.1rem;
}

.markdown-section blockquote p {
  margin: 0;
}

.markdown-section .tip,
.markdown-section .warn {
  border-radius: 8px;
}

.markdown-section p.tip code,
.markdown-section p.warn code {
  background: #0d151b;
  border: 1px solid rgba(112, 225, 193, 0.28);
  color: #a7f3dd;
}

body section.cover {
  background:
    radial-gradient(circle at 22% 18%, rgba(112, 225, 193, 0.18), transparent 33%),
    radial-gradient(circle at 82% 74%, rgba(139, 124, 246, 0.19), transparent 36%),
    linear-gradient(145deg, #0b0e14 0%, #151b28 100%) !important;
}

.cover-main {
  color: var(--text);
}

body section.cover .cover-main h1 {
  color: #f7f9fc;
  font-size: clamp(3.2rem, 9vw, 5.6rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  margin-bottom: 0.4rem;
}

body section.cover .cover-main h1 small {
  color: var(--theme-color);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  vertical-align: middle;
}

body section.cover .cover-main blockquote {
  color: #b7c1d0;
  font-size: 1.16rem;
  margin: 1rem auto;
  max-width: 620px;
  padding: 0;
}

body section.cover .cover-main > p:last-child a {
  border-color: var(--theme-color);
  border-radius: 8px;
  font-weight: 650;
}

body section.cover .cover-main > p:last-child a:last-child {
  background: var(--theme-color);
  color: #0b1715;
}

.pagination-item a {
  color: var(--text-muted);
}

.pagination-item-title {
  color: var(--theme-color) !important;
}

@media screen and (max-width: 768px) {
  .markdown-section {
    padding: 34px 22px 64px;
  }

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

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

  body section.cover .cover-main {
    box-sizing: border-box;
    margin: -20px 0 0;
    padding: 0 18px;
    width: 100%;
  }

  body section.cover .cover-main blockquote {
    font-size: 1rem;
    line-height: 1.5;
    max-width: 100%;
  }

  .cover-main > p:last-of-type {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .cover-main > p:last-of-type a {
    box-sizing: border-box;
    margin: 0;
    min-width: 180px;
  }
}
