pre {
    background-color: #282c34;
    color: #abb2bf; 
    padding: 16px;
    border-radius: 8px; 
    overflow-x: auto; 
    font-family: 'Fira Code', 'Consolas', Monaco, monospace; 
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); 
    margin: 1em 0;
}


code {
    font-family: 'Fira Code', 'Consolas', monospace;
    background-color: rgba(27, 31, 35, 0.05);
    padding: 0.2em 0.4em;
    border-radius: 3px;
}


pre ::selection {
    background: rgba(171, 178, 191, 0.2);
}

/* 滚动条样式美化 (Webkit) */
pre::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}
pre::-webkit-scrollbar-thumb {
    background: #4b5263;
    border-radius: 4px;
}




/* --- 列表项 <li> 深度优化 --- */
ul, ol {
  padding-left: 0;
  margin: 1.5em 0;
}

li {
  position: relative;
  margin-bottom: 0.8em;
  padding-left: 1.5em; /* 为自定义符号留出空间 */
  list-style: none; /* 彻底移除原生样式 */
}

/* 无序列表：精致小方块/圆点 */
ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  background-color: #3b82f6; /* 现代蓝色 */
  transform: rotate(45deg); /* 旋转成菱形，更有设计感 */
  border-radius: 1px;
}

/* 有序列表：数字样式优化 */
ol {
  counter-reset: custom-counter;
}

ol li {
  counter-increment: custom-counter;
}

ol li::before {
  content: counter(custom-counter) ".";
  position: absolute;
  left: 0;
  color: #3b82f6;
  font-weight: bold;
  font-variant-numeric: tabular-nums;
}

/* --- 分割线 <hr> 深度优化 --- */
hr {
  border: none;
  height: 1px;
  margin: 4em 0;
  /* 渐变线条，两头淡出 */
  background-image: linear-gradient(to right, transparent, #e5e7eb, #e5e7eb, transparent);
  position: relative;
  overflow: visible;
}

/* 在分割线中央增加极简装饰 */
hr::after {
  content: "✦"; /* 菱形星星符号 */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0 15px;
  background-color: #fff; /* 遮挡线条背景 */
  color: #9ca3af;
  font-size: 12px;
}

/* 补充：标题与段落基础优化 */
h1, h2, h3 { color: #111; margin-top: 2em; }
p { margin-bottom: 1.5em; }