.navbar-custom .nav li a {
    font-size: 16px;
    text-transform: none;
}
.site-heading h1 {
  /* Animate.css 控制动画参数 */
  --animate-duration: 1.5s;     /* 动画时长 */
  --animate-delay: 0.2s;        /* 延迟时间 */
}
p {
  margin-top: 20px;   /* 段落顶部间距 */
  margin-bottom: 20px;/* 段落底部间距 */
  line-height: 30px;
}

mark {
  /*  #ffeb3b*/
  background-color:#add8fa; /* 你喜欢的颜色 */
  color: black;             /* 高亮时的文字颜色 */
  padding: 0 2px;           /* 加点内边距好看 */
  border-radius: 3px;       /* 圆角效果 */
}

pre code {
  line-height: 1.8;          /* 比 2.0 更均衡，不松散 */
  font-size: 1.0em;         /* 略微收紧，抵消行距增大带来的“臃肿感” */
  letter-spacing: 0.3px;     /* 提升等宽字体的辨识度 */
  tab-size: 4;               /* 保证缩进美观 */
  -moz-tab-size: 4;
  -o-tab-size: 4;
}

/* 代码块外框（Mac 风格） */
pre {
  position: relative;
  background: #1e1e1e;     /* 背景色，类似 VSCode 黑色 */
  color: #dcdcdc;          /* 默认字体颜色 */
  padding: 2.5em 1em 1em 1em;
  border-radius: 10px;
  overflow-x: auto;
  margin: 1.2em 0;
  /* box-shadow: 0 10px 15px rgba(0,0,0,0.3); */
  font-family: "Fira Code", "JetBrains Mono", "Cascadia Code", monospace;
    /* 阴影：多层叠加制造深度 */
  box-shadow:
    0 2px 4px rgba(0,0,0,0.12),     /* 近层 */
    0 6px 12px rgba(0,0,0,0.10),    /* 中层 */
    0 12px 24px rgba(0,0,0,0.08);   /* 远层 */
  border: none !important;
}
/* 悬停时浮起 */
pre:hover {
  transform: translateY(-4px) scale(1.01);  /* 微微上移 + 放大一点 */
  box-shadow: 
    0 8px 12px rgba(0,0,0,0.35),
    0 20px 25px rgba(0,0,0,0.3),
    0 30px 50px rgba(0,0,0,0.25); /* 阴影更深更远 */
}
/* 上方的 Mac 三个圆点 */
pre::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 11px;
  height: 11px;
  width: 11px;
  border-radius: 50%;
  background: #ff5f56; /* 红 */
  box-shadow: 20px 0 #ffbd2e, 40px 0 #27c93f; /* 黄 & 绿 */
}

/* 复制按钮样式 */
.copy-button {
  position: absolute;
  top: 8px;
  right: 10px;
  padding: 3px 8px;
  font-size: 12px;
  background: #444;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.copy-button:hover {
  opacity: 1;
  background: #666;
}

.katex-display {
    margin: 1em 0; /* 块公式上下间距 */
}

.katex {
    vertical-align: middle; /* 行内公式稍微居中 */
}


/* 链接、列表等的间距可微调 */
ul, ol {
  margin-top: 1em;
  margin-bottom: 1em;
  line-height: 1.6;
}
/* #989898 */
blockquote {
  color: #435060;
  border-left: 5px solid #4D82F7;
  font-style: normal;
  background-color: #F2F4F7;
  padding: 0.75em 1em;
  margin: 1em 0;
  border-radius: 4px;          /* 轻微圆角 */
}

.post-content-preview {
  /* font-style: normal; */
  padding: 1px 0px;   /* 上下 8px，左右 12px */
}

/* 侧边栏个人简介 hr：收紧间距 + 加深颜色 */
.short-about hr {
  margin-top: 7px;              /* 原来通常 ≥ 8px，缩小上下间距 */
  margin-bottom: 7px; 
  height: 1.0px;               /* 保持细线 */
  /* border: none; 
  background-color: #808080;   线的颜色，可以改成你想要的深色 */
}
.sidebar-container .short-about p {
    margin-top: 0;
    margin-bottom: 0px;
    font-size: 16px;        /* 字体大小，可根据需要调节 */
    font-weight: 350;       /* 加粗 */
    color: #808080;         /* 黑色 */
}