header {
  padding-top: 1.5rem; /* 或 30px、40px，按需要调 */
}


a {
  position: relative;
  color: inherit;
  text-decoration: none; /* ← 移除默认下划线 */
}

a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2.2px; /* ← 设置更细的线条 */
  background-color: var(--maincolor); /* 或你喜欢的颜色 */
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 0.5s ease;
  bottom: -3px;
}

a:hover::after {
  transform: scaleX(0); /* 悬停时收起线条 */
}

hr {
  border: 0;
  border-top: 1px dotted #999;  /* 灰色小点点 */
  margin: 1.5em 0;
}

body {
  background-color: #F5F5F5;
}


.post-content {
  font-family: 'LXGW WenKai Lite', sans-serif !important;
}

h2 {
  font-size: 1.2rem;
  margin: calc(1ex / 0.42) 0;
  text-decoration: underline;
  text-decoration-color: #d3d3d3;     /* 浅灰色下划线 */
  text-decoration-thickness: 3px;    /* 下划线粗细 */
  text-underline-offset: 7px;        /* 下划线距离文字的距离 */
  color: black;                      /* 黑色字体 */
  font-weight: normal;               /* 字重正常 */
}


h2::before {
  content: none !important;
}

