/* 标题优化 */
h1, h2, h3 {
  margin-bottom: 0.8em;
  font-weight: 600;
  color: #2c3e50;
}

h1 {
  font-size: 2.2em;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.4em;
}

h2 {
  font-size: 1.6em;
  color: #3498db;
}

h3 {
  font-size: 1.3em;
  color: #7f8c8d;
}

/* 段落间距 */
p {
  margin: 1em 0;
}

/* 链接样式 */
a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #1a5276;
  text-decoration: underline;
}

/* 引用块美化 */
blockquote {
  margin: 1.2em 0;
  padding: 14px 20px;
  background-color: #f8f9fa;
  border-left: 4px solid #3498db;
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: #555;
}

blockquote p {
  margin: 0;
}

/* 列表样式 */
ul {
  padding-left: 24px;
  margin: 1em 0;
}

ul li {
  margin-bottom: 6px;
  list-style-type: circle;
}

/* 代码块高亮区域 */
.highlight {
  margin: 1.2em 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.highlight pre {
  margin: 0;
  padding: 16px;
  background-color: #2d2d2d !important;
  color: #f8f8f2;
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 14px;
  line-height: 1.5;
  overflow-x: auto; /* 允许横向滚动 */
}

/* 美化代码块滚动条（仅该区域）*/
.highlight pre::-webkit-scrollbar {
  height: 8px;
}
.highlight pre::-webkit-scrollbar-track {
  background: #1e1e1e;
  border-radius: 4px;
}
.highlight pre::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 4px;
}
.highlight pre::-webkit-scrollbar-thumb:hover {
  background: #777;
}

/* 图片居中 & 最大宽度限制 */
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1em auto;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
    ul, ol {
      padding-left: 20px;
    }
    li {
      margin: 8px 0;
    }
/* headerlink 样式微调（锚点符号）*/
.headerlink {
  opacity: 0;
  margin-left: 8px;
  color: #aaa;
  text-decoration: none;
  font-weight: normal;
  font-size: 0.9em;
}

h1:hover .headerlink,
h2:hover .headerlink,
h3:hover .headerlink {
  opacity: 1;
}

.headerlink:hover {
  color: #3498db;
}

/* 响应式适配 */
@media (max-width: 768px) {
  .md-content {
    padding: 16px;
  }
  h1 { font-size: 1.8em; }
  h2 { font-size: 1.4em; }
}