* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #cc785c;
  --primary-active: #a9583e;
  --primary-disabled: #e6dfd8;
  --ink: #141413;
  --body: #3d3d3a;
  --body-strong: #252523;
  --muted: #6c6a64;
  --muted-soft: #8e8b82;
  --hairline: #e6dfd8;
  --hairline-soft: #ebe6df;
  --canvas: #faf9f5;
  --surface-soft: #f5f0e8;
  --surface-card: #efe9de;
  --surface-cream-strong: #e8e0d2;
  --surface-dark: #181715;
  --surface-dark-elevated: #252320;
  --surface-dark-soft: #1f1e1b;
  --on-primary: #ffffff;
  --on-dark: #faf9f5;
  --on-dark-soft: #a09d96;
  --accent-teal: #5db8a6;

  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-pill: 9999px;

  --s-xxs: 4px;
  --s-xs: 8px;
  --s-sm: 12px;
  --s-md: 16px;
  --s-lg: 24px;
  --s-xl: 32px;
  --s-xxl: 48px;

  --sidebar-width: 280px;
  --transition: 0.25s ease;
  --content-max-width: 820px;
  --toc-offset: 0px;

  --font-display: "Cormorant Garamond", "Tiempos Headline", "Garamond", "Times New Roman", serif;
  --font-body: "Microsoft YaHei", "微软雅黑", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-code: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
}

html, body {
  height: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--body);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  display: flex;
  overflow: hidden;
}

/* ===== 侧边栏 ===== */
.sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  height: 100vh;
  background: var(--surface-dark);
  color: var(--on-dark);
  display: flex;
  flex-direction: column;
  transition: margin-left var(--transition), opacity var(--transition);
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar.collapsed {
  margin-left: calc(-1 * var(--sidebar-width));
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-lg) var(--s-lg) var(--s-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: var(--s-sm);
}

.spike-mark {
  color: var(--primary);
  flex-shrink: 0;
}

.sidebar-title {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
}

.sidebar-actions {
  display: flex;
  align-items: center;
  gap: var(--s-xxs);
}

.sidebar-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--on-dark-soft);
  cursor: pointer;
  padding: var(--s-xxs);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}

.sidebar-btn:hover {
  background: var(--surface-dark-elevated);
  color: var(--on-dark);
}

/* ===== 树形导航 ===== */
.tree-nav {
  flex: 1;
  overflow-y: auto;
  padding: var(--s-xs) 0;
}

.tree-nav::-webkit-scrollbar {
  width: 3px;
}

.tree-nav::-webkit-scrollbar-track {
  background: transparent;
}

.tree-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--r-pill);
}

.tree-loading {
  padding: var(--s-xl) var(--s-lg);
  color: var(--on-dark-soft);
  font-size: 14px;
  font-weight: 400;
}

.tree-item {
  user-select: none;
}

.tree-item-header {
  display: flex;
  align-items: center;
  padding: var(--s-xs) var(--s-lg);
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--on-dark-soft);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  gap: 2px;
}

.tree-item-header:hover {
  background: var(--surface-dark-elevated);
  color: var(--on-dark);
}

.tree-item-header.active {
  background: var(--surface-dark-elevated);
  color: var(--on-dark);
}

.tree-item-header.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: var(--primary);
  border-radius: 0 var(--r-xs) var(--r-xs) 0;
}

.tree-item-header {
  position: relative;
}

.tree-item-arrow {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.tree-item-arrow svg {
  width: 12px;
  height: 12px;
}

.tree-item-arrow.expanded {
  transform: rotate(90deg);
}

.tree-item-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tree-item-icon svg {
  width: 15px;
  height: 15px;
}

.tree-item-icon.folder {
  color: var(--muted-soft);
}

.tree-item-icon.file {
  color: var(--muted-soft);
}

.tree-item-header.active .tree-item-icon.file {
  color: var(--primary);
}

.tree-item-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tree-children {
  display: none;
}

.tree-children.expanded {
  display: block;
}

.tree-children .tree-item-header {
  padding-left: calc(var(--s-lg) + 18px);
}

.tree-children .tree-children .tree-item-header {
  padding-left: calc(var(--s-lg) + 36px);
}

.tree-children .tree-children .tree-children .tree-item-header {
  padding-left: calc(var(--s-lg) + 54px);
}

/* ===== 侧边栏展开按钮 ===== */
.sidebar-open-btn {
  position: fixed;
  top: var(--s-md);
  left: var(--s-md);
  z-index: 100;
  background: var(--surface-dark);
  color: var(--on-dark-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  padding: var(--s-xs);
  border-radius: var(--r-md);
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  transition: background 0.15s, color 0.15s;
}

.sidebar-open-btn:hover {
  background: var(--surface-dark-elevated);
  color: var(--on-dark);
}

.sidebar.collapsed ~ .sidebar-open-btn {
  display: flex;
}

/* ===== 内容区 ===== */
.content {
  flex: 1;
  height: 100vh;
  overflow-y: auto;
  background: var(--canvas);
}

.content-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: var(--s-xxl) var(--s-xl) var(--s-xxl) var(--s-xl);
  padding-right: calc(var(--s-xl) + var(--toc-offset));
}

/* ===== 欢迎页 ===== */
.welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 65vh;
  text-align: center;
  gap: var(--s-lg);
}

.welcome-mark {
  opacity: 0.7;
}

.welcome-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--ink);
}

.welcome-desc {
  font-size: 16px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.55;
}

/* ===== Markdown 渲染样式 ===== */
.markdown-body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--body);
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  margin-top: 1.6em;
  margin-bottom: 0.5em;
}

.markdown-body h1 {
  font-size: 36px;
  letter-spacing: -0.5px;
  padding-bottom: 0.35em;
  border-bottom: 1px solid var(--hairline);
}

.markdown-body h2 {
  font-size: 28px;
  letter-spacing: -0.3px;
  padding-bottom: 0.3em;
  border-bottom: 1px solid var(--hairline-soft);
}

.markdown-body h3 {
  font-size: 22px;
  letter-spacing: -0.15px;
}

.markdown-body h4 {
  font-size: 18px;
}

.markdown-body h5,
.markdown-body h6 {
  font-size: 16px;
  font-family: var(--font-body);
  font-weight: 500;
}

.markdown-body p {
  margin-bottom: 1em;
}

.markdown-body a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s;
}

.markdown-body a:hover {
  color: var(--primary-active);
  text-decoration: underline;
}

.markdown-body strong {
  font-weight: 600;
  color: var(--body-strong);
}

.markdown-body code {
  font-family: var(--font-code);
  font-size: 0.88em;
  background: var(--surface-soft);
  padding: 2px 6px;
  border-radius: var(--r-xs);
  color: var(--ink);
}

.markdown-body pre {
  background: var(--surface-dark);
  border-radius: var(--r-lg);
  padding: var(--s-lg);
  overflow-x: auto;
  margin-bottom: 1em;
  margin-top: 0.5em;
}

.markdown-body pre code {
  background: none;
  padding: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--on-dark);
  border-radius: 0;
}

.markdown-body blockquote {
  border-left: 3px solid var(--primary);
  padding: var(--s-sm) var(--s-lg);
  margin-bottom: 1em;
  margin-left: 0;
  color: var(--muted);
  background: var(--surface-soft);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

.markdown-body blockquote p {
  margin-bottom: 0;
}

.markdown-body ul,
.markdown-body ol {
  padding-left: 1.5em;
  margin-bottom: 1em;
}

.markdown-body li {
  margin-bottom: 0.35em;
}

.markdown-body li::marker {
  color: var(--muted-soft);
}

.markdown-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1em;
  font-size: 14px;
}

.markdown-body th,
.markdown-body td {
  border: 1px solid var(--hairline);
  padding: var(--s-sm) var(--s-md);
  text-align: left;
}

.markdown-body th {
  background: var(--surface-soft);
  font-weight: 500;
  color: var(--ink);
}

.markdown-body img {
  max-width: 100%;
  border-radius: var(--r-md);
}

.markdown-body hr {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 1.5em 0;
}

/* ===== 代码高亮暗色覆盖 ===== */
.markdown-body pre code.hljs {
  background: transparent;
  color: var(--on-dark);
}

/* ===== Mermaid 图表 ===== */
.mermaid-wrapper {
  margin-bottom: 1em;
  padding: var(--s-lg);
  background: var(--surface-soft);
  border-radius: var(--r-lg);
  border: 1px solid var(--hairline);
  overflow-x: auto;
  text-align: center;
}

.mermaid-diagram {
  display: flex;
  justify-content: center;
}

.mermaid-diagram svg {
  max-width: 100%;
  height: auto;
}

.mermaid-error {
  color: var(--muted-soft);
  font-size: 14px;
  font-style: italic;
  padding: var(--s-sm) 0;
}

/* ===== 右侧 TOC 目录面板 ===== */
.toc-panel {
  position: fixed;
  top: var(--s-lg);
  right: var(--s-lg);
  width: 220px;
  max-height: calc(100vh - 48px);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  z-index: 90;
  transition: opacity var(--transition), transform var(--transition);
  box-shadow: 0 1px 3px rgba(20, 20, 19, 0.06);
}

.toc-panel.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(16px);
}

.toc-panel.collapsed .toc-nav {
  display: none;
}

.toc-panel.collapsed .toc-header {
  border-bottom: none;
}

.toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-sm) var(--s-md);
  border-bottom: 1px solid var(--hairline-soft);
}

.toc-title {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}

.toc-toggle {
  background: transparent;
  border: none;
  color: var(--muted-soft);
  cursor: pointer;
  padding: 2px;
  border-radius: var(--r-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}

.toc-toggle:hover {
  color: var(--ink);
}

.toc-panel.collapsed .toc-toggle svg {
  transform: rotate(180deg);
}

.toc-nav {
  flex: 1;
  overflow-y: auto;
  padding: var(--s-sm) 0;
  max-height: calc(100vh - 120px);
}

.toc-nav::-webkit-scrollbar {
  width: 3px;
}

.toc-nav::-webkit-scrollbar-track {
  background: transparent;
}

.toc-nav::-webkit-scrollbar-thumb {
  background: var(--hairline);
  border-radius: var(--r-pill);
}

.toc-item {
  display: block;
  padding: 3px var(--s-md) 3px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-left: 2px solid transparent;
}

.toc-item:hover {
  color: var(--ink);
}

.toc-item.active {
  color: var(--ink);
  border-left-color: var(--primary);
  font-weight: 500;
}

.toc-item[data-level="1"] { padding-left: var(--s-md); }
.toc-item[data-level="2"] { padding-left: calc(var(--s-md) + 12px); }
.toc-item[data-level="3"] { padding-left: calc(var(--s-md) + 24px); }
.toc-item[data-level="4"] { padding-left: calc(var(--s-md) + 36px); }
.toc-item[data-level="5"] { padding-left: calc(var(--s-md) + 48px); }
.toc-item[data-level="6"] { padding-left: calc(var(--s-md) + 60px); }

.toc-empty {
  padding: var(--s-md);
  font-size: 13px;
  color: var(--muted-soft);
}

/* TOC 展开按钮 */
.toc-open-btn {
  position: fixed;
  top: var(--s-lg);
  right: var(--s-lg);
  z-index: 89;
  background: var(--canvas);
  color: var(--muted-soft);
  border: 1px solid var(--hairline);
  cursor: pointer;
  padding: var(--s-xs);
  border-radius: var(--r-md);
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(20, 20, 19, 0.06);
  transition: color 0.15s, background 0.15s;
}

.toc-open-btn:hover {
  color: var(--ink);
  background: var(--surface-soft);
}

.toc-panel.hidden ~ .toc-open-btn {
  display: flex;
}

/* ===== 侧边栏遮罩层（移动端） ===== */
.sidebar-mask {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 199;
  background: rgba(20, 20, 19, 0.45);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

/* ===== 移动端 TOC 浮动按钮 ===== */
.toc-mobile-btn {
  display: none;
  position: fixed;
  bottom: var(--s-lg);
  right: var(--s-lg);
  z-index: 89;
  background: var(--surface-dark);
  color: var(--on-dark);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(20, 20, 19, 0.25);
  transition: transform 0.15s, background 0.15s;
}

.toc-mobile-btn:hover {
  background: var(--surface-dark-elevated);
  transform: scale(1.05);
}

/* ===== 设置弹窗 ===== */
.settings-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(20, 20, 19, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.settings-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.settings-modal {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  width: 420px;
  max-width: calc(100vw - 48px);
  box-shadow: 0 8px 40px rgba(20, 20, 19, 0.15);
  overflow: hidden;
}

.settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-lg) var(--s-xl);
  border-bottom: 1px solid var(--hairline-soft);
}

.settings-title {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}

.settings-close {
  background: transparent;
  border: none;
  color: var(--muted-soft);
  cursor: pointer;
  padding: var(--s-xxs);
  border-radius: var(--r-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}

.settings-close:hover {
  color: var(--ink);
}

.settings-body {
  padding: var(--s-lg) var(--s-xl);
  display: flex;
  flex-direction: column;
  gap: var(--s-lg);
}

.settings-item {
  display: flex;
  flex-direction: column;
  gap: var(--s-sm);
}

.settings-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.settings-control-row {
  display: flex;
  align-items: center;
  gap: var(--s-sm);
}

.settings-range {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: var(--hairline);
  border-radius: var(--r-pill);
  outline: none;
}

.settings-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 2px solid var(--canvas);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.settings-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 2px solid var(--canvas);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.settings-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--body);
  min-width: 48px;
  text-align: right;
  font-family: var(--font-code);
}

.settings-mode-btn {
  display: flex;
  align-items: center;
  gap: var(--s-xs);
  padding: var(--s-xs) var(--s-md);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background: var(--canvas);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.settings-mode-btn:hover {
  border-color: var(--primary);
  color: var(--body);
}

.settings-mode-btn.active {
  background: var(--surface-card);
  border-color: var(--primary);
  color: var(--ink);
}

.settings-select {
  flex: 1;
  padding: var(--s-xs) var(--s-md);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%236c6a64' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.settings-select:focus {
  border-color: var(--primary);
}

/* ===== 暗色主题 ===== */
body.dark-mode {
  --canvas: #181715;
  --surface-soft: #1f1e1b;
  --surface-card: #252320;
  --surface-cream-strong: #2a2825;
  --ink: #faf9f5;
  --body: #c8c5bd;
  --body-strong: #e0ddd5;
  --muted: #8e8b82;
  --muted-soft: #6c6a64;
  --hairline: #333130;
  --hairline-soft: #2a2825;
  --primary-disabled: #333130;
}

body.dark-mode .toc-panel {
  border-color: var(--hairline);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .toc-open-btn {
  background: var(--canvas);
  border-color: var(--hairline);
}

body.dark-mode .settings-modal {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

body.dark-mode .settings-range {
  background: var(--hairline);
}

body.dark-mode .settings-mode-btn {
  background: var(--canvas);
  border-color: var(--hairline);
  color: var(--muted);
}

body.dark-mode .settings-mode-btn.active {
  background: var(--surface-card);
  border-color: var(--primary);
  color: var(--ink);
}

body.dark-mode .settings-select {
  background-color: var(--canvas);
  border-color: var(--hairline);
  color: var(--ink);
}

body.dark-mode .markdown-body code {
  background: var(--surface-card);
}

body.dark-mode .markdown-body blockquote {
  background: var(--surface-soft);
}

body.dark-mode .markdown-body th {
  background: var(--surface-soft);
}

body.dark-mode .mermaid-wrapper {
  background: var(--surface-soft);
  border-color: var(--hairline);
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  :root {
    --sidebar-width: 280px;
    --toc-offset: 0px !important;
  }

  .content-inner {
    padding: var(--s-lg) var(--s-md);
  }

  .sidebar {
    position: fixed;
    z-index: 200;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
  }

  .sidebar.collapsed {
    margin-left: calc(-1 * var(--sidebar-width));
  }

  .sidebar.collapsed ~ .sidebar-mask {
    display: none;
  }

  .sidebar-mask {
    display: block;
  }

  .sidebar-open-btn {
    display: flex;
  }

  .sidebar:not(.collapsed) ~ .sidebar-open-btn {
    display: none;
  }

  .welcome-title {
    font-size: 28px;
  }

  .markdown-body h1 {
    font-size: 28px;
  }

  .markdown-body h2 {
    font-size: 22px;
  }

  .markdown-body h3 {
    font-size: 18px;
  }

  .toc-panel {
    position: fixed;
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    max-height: 55vh;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    box-shadow: 0 -4px 24px rgba(20, 20, 19, 0.12);
    transform: translateY(100%);
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .toc-panel:not(.hidden):not(.collapsed) {
    transform: translateY(0);
  }

  .toc-panel.collapsed {
    transform: translateY(100%);
  }

  .toc-panel.hidden {
    transform: translateY(100%);
  }

  .toc-nav {
    max-height: calc(55vh - 50px);
  }

  .toc-open-btn {
    display: none !important;
  }

  .toc-mobile-btn {
    display: flex;
  }
}

@media (max-width: 480px) {
  .content-inner {
    padding: var(--s-md) var(--s-sm);
  }

  .markdown-body h1 {
    font-size: 24px;
  }

  .markdown-body h2 {
    font-size: 20px;
  }

  .markdown-body h3 {
    font-size: 17px;
  }

  .markdown-body pre {
    padding: var(--s-md);
    border-radius: var(--r-md);
    font-size: 13px;
  }
}
