@font-face {
  font-family: "sn-pro";
  src: url(./sn-pro-latin-400-normal.GlGs0M.woff2);
}
body {
  font-family: "sn-pro";
}

.toc {
  overflow-y: auto;
}

.toc > .toc-list {
  overflow: hidden;
  position: relative;
}

.toc > .toc-list li {
  list-style: none;
}

.toc-list {
  margin: 0;
  padding-left: 10px;
}

#toc-wrapper ul li a {
  display: block;
  color: currentColor;
  height: 100%;
}

.highlight {
  padding: 10px 15px;
  border-radius: 6px;
  margin: 1em 0;
  border: 1px solid #ccc;
}

.highlight pre {
  margin: 0;
}

.aside-list {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.aside-list a {
  margin-right: 20px;
  margin-bottom: 10px;
}

#sidebar {
  z-index: 999;
}

iframe {
  margin: 1em 0;
}

figure {
  text-align: center;
}

figure img {
  box-shadow: 1px 2px 5px rgba(0, 0, 0, 0.2);
  background: radial-gradient(circle, white 0%, #efefef 100%);
}

.is-collapsible {
  max-height: 1000px;
  overflow: hidden;
  transition: all 300ms ease-in-out;
}

.is-collapsed {
  max-height: 0;
}

.is-position-fixed {
  position: fixed !important;
  top: 0;
}

.is-active-link {
  font-weight: 700;
}

.toc-link::before {
  background-color: #eee;
  content: " ";
  display: inline-block;
  height: inherit;
  left: 0;
  margin-top: -1px;
  position: absolute;
  width: 2px;
}

#toc-wrapper ul li a.active::before {
  background-color: #54bc4b;
}

/* style.css */
#TableOfContents ul {
  list-style: none;
  padding-left: 1em;
}

#TableOfContents a {
  display: block;
  padding: 4px 10px;
  color: #555;
  text-decoration: none;
  border-left: 2px solid transparent; /* 预留高亮边框位置 */
  transition: all 0.2s ease-in-out;
}

#TableOfContents a:hover {
  background-color: #f0f0f0;
  color: #333;
}

/* --- 核心高亮样式 --- */
#TableOfContents a.active {
  color: #007bff; /* 高亮文字颜色 */
  font-weight: 600; /* 加粗 */
  background-color: #e7f3ff; /* 高亮背景色 */
  border-left-color: #007bff; /* 左边框高亮 */
}
