.site-title.article-page {
  font-size: 3rem;
}

.profile-header {
  text-align: center; /* 居中内容 */
  margin-bottom: 50px; /* 增加与下方内容的间距 */
  position: relative;
  z-index: 10;
}

/* 居中的单个头像 */
.profile-avatar {
  width: 150px; /* 调整头像大小 */
  height: 150px;
  border-radius: 50%;
  border: 4px solid white; /* 调整边框 */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  object-fit: cover;
  /* 移除定位，让其自然居中 */
}

/* 页面标题样式 */
.profile-title {
  margin-top: 15px;
  font-size: 3em;
  color: #ffa4a4; /* 假设标题颜色为白色，与背景搭配 */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .profile-header {
    margin-bottom: 30px; 
  }

  .profile-avatar {
    width: 100px; 
    height: 100px;
  }

  .profile-title {
    font-size: 2em;
  }
}

#article .article-thumbnail {
  margin: 0 auto;
  width: 70%;
  max-width: 800px;
  position: relative;
  padding: 1rem; /* 减小留白 */
  border-radius: var(--border-radius);
  /* 关键：调整 Flex 布局和高度 */
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* 将内容对齐到顶部 */
  align-items: flex-start;
  margin-top: 15px;
  
  /* 终极解决：让高度根据内容自适应 */
  height: auto;
  min-height: 0;
  
  /* 确保 flex 属性不会导致拉伸 */
  flex-grow: 0;
  flex-shrink: 1;
}

#article .article-date {
  font-size: 1.2rem !important;
  color: #fff;
  text-shadow: 0px 0px 3px rgba(117, 113, 113, 0.5);
  line-height: 100%;
  padding: 4px 5px;
  text-shadow:  0px 0px 3px rgba(117, 113, 113, 0.5);
} 
#article .article-category {
  font-size: 1.1rem !important;
  color: #fff;
  text-shadow: 0px 0px 3px rgba(117, 113, 113, 0.5);
  line-height: 120%;
  padding-bottom: 1.5rem;
  text-shadow:  0px 0px 3px rgba(117, 113, 113, 0.5);
} 

#article .article-content {
  margin-top: 3rem;
  font-size: 1.2rem;
  width: 80%; /* 例如，设置为父元素宽度的75% */
  max-width: 800px; /* 或者，设置一个最大宽度，防止在大屏幕上过宽 */
  margin-left: auto; /* 配合 auto，居中显示 */
  margin-right: auto;

  /* 新增：设置背景和字体颜色 */
  background: rgba(255, 255, 255, 0.6); /* 白色半透明背景 */
  color: #000; /* 字体颜色改为黑色 */
  padding: 3rem; /* 可选：增加内边距，让内容和背景边缘有空间 */
  border-radius: 30px; /* 可选：增加圆角 */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* 可选：增加阴影效果 */
}


#article .article-content * {
  font-weight: 400;
}

/* markdown content */

.article-content * {
  line-height: 200%;
}
.article-content p {
  margin: 0 0 1.75rem 0;
  padding: 0;
}
.article-content a {
  color: #954343;
  text-shadow: 0px 0px 3px rgba(23, 22, 22, 0.5);
}
.article-content h1 {
  font-size: 2rem;
}
.article-content h2 {
  font-size: 1.8rem;
}
.article-content h3 {
  font-size: 1.6rem;
}
.article-content h4 {
  font-size: 1.4rem;
}
.article-content h5 {
  font-size: 1.2rem;
}
.article-content h6 {
  font-size: 1rem;
}
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  margin: 1.75rem 0;
  font-weight: bolder !important;
}

.article-content blockquote {
  padding-left: 1.42188rem;
  margin-bottom: 1.75rem;
  font-style: italic;
  font-weight: 100;
  border-left: 0.3rem solid var(--dm-contrast);
  font-size: 1.2rem;
}
.article-content strong {
  font-weight: bold;
  color: #020bb7;
}
.article-content ul {
  margin-left: 1rem;
  margin-bottom: 1.75rem;
}
.article-content ol {
  margin-left: 1.75rem;
  margin-bottom: 1.75rem;
}
.article-content ol * ol,
.article-content ul * ul {
  margin-left: 1rem;
  margin-bottom: 0;
}
.article-content table {
  width: 100%;
  max-width: 100%;
  margin: 1rem 0;
  border-collapse: collapse;
}
.article-content table th {
  background-color: transparent;
  color: #000;
  border: 2px solid #000;
}
.article-content table td {
  border: 2px solid #000;
  padding: 0.2rem;
}
.article-content img {
  max-width: 100%;
  margin: 1rem 0;
  vertical-align: bottom;
}

/* pre , code */
.article-content,
.article-content div,
.article-content div pre,
.article-content div pre code {
  overflow-x: auto !important;
}

.article-content pre {
  padding: 1rem 2rem;
  margin-bottom: 1.75rem;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 3ch;
  line-height: 120%;
}

.article-content code {
  padding: 3px 5px;
  white-space: pre;
}

/* lbox */

#article .article-content img {
  cursor: zoom-in;
  transition: transform 0.3s ease;

}

#lightbox {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: transparent;
  display: none;
}

#lightbox.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

#lightbox img {
  max-width: 90%;
  max-height: 80%;
  padding: 4px;
  background-color: rgb(33, 105, 198);
  border: 2px dashed var(--dm-contrast);
}

.v[data-class=v] {
font-size: 1rem !important;
text-align: left;
}

.v[data-class=v] .vwrap {
border: 2px solid rgba(0, 0, 0, 0.5) !important;
border-radius: 16px !important;
margin-bottom: 10px;
overflow: hidden;
position: relative;
padding: 10px;
}

.v[data-class=v] .vinput {
border: none;
resize: none;
outline: none;
padding: 10px 5px;
max-width: 100%;
font-size: 1rem !important;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}

/* 修改 Valine 输入框 placeholder 的样式 */
.v[data-class=v] .vinput::placeholder {
  color: #000 !important; /* 将颜色改为黑色 */
  opacity: 0.7 !important; /* 可选：设置透明度，让提示词不那么突兀 */
}

.v[data-class=v] .vcol.vcol-70 .vsubmit.vbtn {
  border: 1.5px solid rgba(0, 0, 0, 0.7) !important;
  color: rgba(0, 0, 0, 0.8)!important;
  background-color: transparent;
  padding: 8px 16px;
  border-radius: 8px;

}

/* 悬停时的样式 */
.v[data-class=v] .vcol.vcol-70 .vsubmit.vbtn:hover {
  background-color: rgba(0, 0, 0, 0.3) !important;
  color: #fff;
}

.vcards .vcard,
.vcards .vcard * {
  color: rgba(0, 0, 0, 0.8) !important;
}


/* 相关文章推荐模块 */
.related-posts {
  margin-top: 10px;
  padding-top: 10px;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding-left: 50px;
  padding-right: 50px;
}


.related-posts h2 {
  font-size: 1.5em;
  margin-bottom: 20px;
}

.related-posts ul {
  list-style: none;
  padding-left: 0;
}

.related-posts li {
  margin-bottom: 15px;
}

.related-posts li a {
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  line-height: 120%;
}

.related-posts li small {
  display: block;
  color: #000;
  
}

@media (max-width: 768px) {
  #article .article-thumbnail {
    width: 95%; 
    max-width: 100%;  
    padding: 0.5rem;  
  }

  #article .article-date {
    font-size: 1rem !important; /* 减小字体 */
    padding-bottom: 0.5rem;
  }

  #article .article-category {
    font-size: 1rem !important; /* 减小字体 */
    padding-bottom: 1rem;
  }
}

@media (max-width: 768px) {
  #article .article-content {
    width: 95%;  
    padding: 1.5rem; 
    margin-top: 2rem;
  }

  .article-content * {
    font-size: 1rem;
    line-height: 160%;  
  }
  
  .article-content h1 { font-size: 1.6rem; }
  .article-content h2 { font-size: 1.4rem; }
  .article-content h3 { font-size: 1.2rem; }
  .article-content pre {
    padding: 1rem;
  }
}

@media (max-width: 768px) {
  .related-posts {
    padding-left: 20px; 
    padding-right: 20px;
  }

  .related-posts h2 {
    font-size: 1.2em;  
  }

  .related-posts li a {
    font-size: 1em; 
  }
}

@media (max-width: 768px) {
  .v[data-class=v] {
    font-size: 0.9rem !important;  
  }

  .v[data-class=v] .vwrap {
    padding: 8px; 
  }
  
  .v[data-class=v] .vinput {
    font-size: 0.9rem !important;
  }

  .v[data-class=v] .vcol.vcol-70 .vsubmit.vbtn {
    padding: 6px 12px;
  }
}

@media (max-width: 768px) {
  #article .article-content {
    width: 100%; /* 使用100%宽度 */
    box-sizing: border-box; /* 关键：确保 padding 不会使容器变宽 */
    padding: 1.5rem; /* 调整内边距 */
    margin-top: 2rem;
  }

  .article-content * {
    font-size: 1rem;
    line-height: 160%;
  }
  
  .article-content h1 { font-size: 1.6rem; }
  .article-content h2 { font-size: 1.4rem; }
  .article-content h3 { font-size: 1.2rem; }
  
  .article-content pre {
    padding: 1rem;
  }
}