@import url("https://cdn.jsdelivr.net/gh/BNDong/Cnblogs-Theme-SimpleMemory@v2.1.7/dist/simpleMemory.css");

/* 页面整体字体 */
body {
  font-family: "LXGW WenKai", "Microsoft YaHei", sans-serif;
}

/* 文章正文区域 */
#cnblogs_post_body {
  font-size: 16px;
  line-height: 1.9;
}

/* 文章标题 */
.postTitle a,
#cb_post_title_url {
  font-weight: 700;
  text-decoration: none;
}

/* 文章内小标题 */
#cnblogs_post_body h1,
#cnblogs_post_body h2,
#cnblogs_post_body h3 {
  margin-top: 32px;
  font-weight: 700;
}

/* 调整 banner 背景位置 */
#main-header {
  background-position: center 70% !important;
  background-size: cover !important;
}

/* 代码块 */
#cnblogs_post_body pre {
  border-radius: 10px;
  padding: 16px;
  overflow-x: auto;
}

/* 行内代码 */
#cnblogs_post_body code {
  border-radius: 4px;
  padding: 2px 5px;
}

/* 图片圆角 */
#cnblogs_post_body img {
  border-radius: 12px;
}

/* 侧边栏头像圆角 */
.user-pic img,
#menuBlogAvatar img {
  border-radius: 50%;
}

/* 文章引用块 */
#cnblogs_post_body blockquote {
  border-left: 4px solid #409eff;
  padding: 10px 16px;
  background: rgba(64, 158, 255, 0.08);
  border-radius: 8px;
}

/* 去掉链接默认下划线 */
a {
  text-decoration: none;
}

/* 鼠标点击文字粒子特效 */
.click-word {
  position: fixed;
  z-index: 999999;
  pointer-events: none;
  user-select: none;
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
  animation: clickWordFloat 1.2s ease-out forwards;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

@keyframes clickWordFloat {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.8);
  }

  30% {
    opacity: 1;
    transform: translate(-50%, -80%) scale(1.15);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -150%) scale(1);
  }
}

/* 背景折线粒子 canvas */
#particle-line-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.75;
}

/* 让页面背景稍微透明一点，才能看到粒子 */
body {
  background: #ffffff;
}
/* 顶部标题打字机光标 */
.typewriter-cursor::after {
  content: "|";
  margin-left: 4px;
  animation: cursorBlink 0.8s infinite;
}

@keyframes cursorBlink {
  0%, 45% {
    opacity: 1;
  }

  46%, 100% {
    opacity: 0;
  }
}

