:root {
  /* 全局颜色变量 */
  --primary-color: #007BFF; /* 主色调 */
  --secondary-color: #444; /* 次要颜色 */
  --background-color: #f9f9f9; /* 背景颜色 */
  --text-color: #000000; /* 文字颜色 */
  --muted-text-color: #3d3d3d; /* 次要文字颜色 */
  --border-color: #ccc; /* 边框颜色 */
  --hover-color: #3354AA; /* 悬停颜色 */
  --highlight-color: #e74c3c; /* 高亮颜色 */

  /* 全局间距变量 */
  --spacing-small: 5px;
  --spacing-medium: 10px;
  --spacing-large: 20px;

  /* 全局字体变量 */
  --font-size-small: 0.9em;
  --font-size-medium: 1em;
  --font-size-large: 1.4em;

  /* 全局边框变量 */
  --border-radius: 4px;
  --border-width: 1px;
  --border: 1px;

  /* 全局阴影变量 */
  --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  font-size: 87.5%;
  font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
}

a {
  text-decoration: none;
  color: var(--hover-color);
  font-weight: bold;
}

a:hover, a:active {
  color: var(--secondary-color);
}

::-webkit-scrollbar {
  width: 4px;
  height: 4px
}

::-webkit-scrollbar-track {
  background-color: transparent;
  -webkit-border-radius: 2em;
  -moz-border-radius: 2em;
  border-radius: 2em
}

::-webkit-scrollbar-thumb {
  background-color: #818181;
  background-image: -webkit-linear-gradient(45deg,rgba(255,255,255,.4) 100%,transparent 100%,transparent 50%,rgba(255,255,255,.4) 50%,rgba(255,255,255,.4) 75%,transparent 75%,transparent);
  -webkit-border-radius: 2em;
  -moz-border-radius: 2em;
  border-radius: 2em
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
}

/* 输入框和文本域样式 */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
textarea {
  padding: var(--spacing-small);
  border: var(--border-width) solid var(--border-color);
  width: 100%;
  box-sizing: border-box;
  border-radius: var(--border-radius);
}

textarea {
  resize: vertical;
}

/*图片懒加载*//*给图片过渡效果*/
img{transition: all 0.5s;-moz-transition: all 0.5s;	/* Firefox 4 */-webkit-transition: all 0.5s;	/* Safari 和 Chrome */-o-transition: all 0.5s;	/* Opera */;}
.index{width: 400px;margin: 0 auto;padding-bottom: 100px;}
.index-img{width: 100%;height:210px;margin-top:100px;}
/*object-fit: cover;解决图片指定大小被压缩问题*/
.index-img>img{height: 100%;object-fit: cover;}

/* Special link style */
.post-meta a,
.post-content a,
.widget a,
.comment-content a {
  text-decoration: none;
}

.post-meta a:hover,
.post-content a:hover,
.widget a:hover,
.comment-content a:hover {
  border-bottom-color: transparent;
}

/* 导航栏 */
#header {
  padding-top: 25px;
}

#logo {
  color: #333;
  font-size: 2.0em;
  display: inline-block;
  text-decoration: none;
  transition: color 0.3s ease;
  font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
}

#logo:hover {
  color: #007BFF; /* 鼠标悬停时的颜色 */
}

#search {
  position: relative;
}

#search input[type="text"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

#search label {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  color: #999;
  pointer-events: none;
  transition: all 0.3s ease;
}

#search input[type="text"]:focus + label,
#search input[type="text"]:not(:placeholder-shown) + label {
  top: 0;
  font-size: 12px;
  color: #007BFF;
}

/* 导航菜单样式 */
#nav-menu {
  margin: 10px 0 0;
  padding: 0;
}

#nav-menu a {
  display: block;
  margin-right: var(--spacing-small);
  padding: 0 var(--spacing-large);
  border: var(--border-width) solid var(--border-color);
  height: 32px;
  line-height: 32px;
  color: var(--secondary-color);
  float: left;
  border-radius: var(--border-radius);
}

#nav-menu a:hover,
#nav-menu .current {
  background: var(--primary-color);
  color: #FFF;
}

/* ------------------
 * Main
 * --------------- */
.post {
  padding: var(--spacing-medium) 0 var(--spacing-large);
  border-bottom: var(--border-width) solid var(--border-color);
}

.post-title {
  margin: 0.83em 0;
  font-size: var(--font-size-large);
  color: var(--hover-color);
}

.post-meta {
  margin-top: -0.5em;
  padding: 0;
  color: var(--muted-text-color);
  font-size: var(--font-size-small);
}

.post-meta li {
  display: inline-block;
  margin: 0 var(--spacing-small) 0 0;
  padding-left: var(--spacing-medium);
  border-left: var(--border-width) solid var(--border-color);
}

.post-meta li:first-child {
  margin-left: 0;
  padding-left: 0;
  border: none;
}

.post-content {
  line-height: 1.5;
}

.post .tags {
  clear: both;
}

/* 文章密码保护样式 */
.post-pwp {
  margin: 20px 0;
  padding: 20px;
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--border-radius);
  background-color: var(--background-color);
}

.post-pwp label {
  display: block;
  margin-bottom: var(--spacing-medium);
  font-size: var(--font-size-medium);
  font-weight: bold;
  color: var(--text-color);
}

.post-pwp .post-form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-small);
}

.post-pwp .post-input {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--spacing-small);
}

.post-pwp .post-input input[type="password"] {
  flex: 1;
  padding: var(--spacing-small);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: var(--font-size-medium);
  box-sizing: border-box;
}

.post-pwp .post-input input[type="password"]:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 5px var(--primary-color);
}

.post-pwp .post-input .btn {
  padding: var(--spacing-small) var(--spacing-medium);
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: var(--border-radius);
  font-size: var(--font-size-medium);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.post-pwp .post-input .btn:hover {
  background-color: var(--hover-color);
}

.post-pwp .post-input .btn:active {
  transform: scale(0.95);
}

.post-pwp .post-input .btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.archive-title {
  margin: 1em 0 -1em;
  padding-top: 20px;
  color: var(--muted-text-color);
  font-size: 1em;
}

.more {
  text-align: center;
}

.more a {
  border: none;
}

.protected .text {
  width: 50%;
}

/* 底部分页按钮样式 */
/* 分页按钮容器样式 */
.pagination-container {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
}

/* 上一页按钮样式 */
.prev {
  display: inline-block;
  padding: 8px 16px;
  background-color: #ffffff;
  color: #000000;
  border: var(--border-width) solid var(--border-color);
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.prev:hover {
  background-color: #d0d0d0;
}

/* 下一页按钮样式 */
.next {
  display: inline-block;
  padding: 8px 16px;
  background-color: #ffffff;
  color: #000000;
  border: var(--border-width) solid var(--border-color);
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.next:hover {
  background-color: #d0d0d0;
}

/* 返回顶部按钮样式 */
#backToTop {
  position: fixed;
  bottom: var(--spacing-large);
  right: var(--spacing-large);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: var(--spacing-medium);
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
}

#backToTop.visible {
  opacity: 1;
  visibility: visible;
}

/* 文章版权信息区域样式 */
.buyu_detail__copyright {
  border-radius: 8px;
  margin: 24px 0;
  border: var(--border-width) solid var(--border-color);
}

.buyu_detail__copyright .content {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 6px;
  border-left: 3px solid #165DFF;
}

.buyu_detail__copyright .content .item {
  /* 基础文本样式 */
  color: #6c757d;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
  
  /* 布局与对齐 */
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  
  /* 文本溢出处理 - 单行显示省略号 */
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  
  /* 可选：多行溢出处理（取消注释并调整行数）
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  */
}

/* 优化图标与文本间距 */
.buyu_detail__copyright .content .item svg {
  margin-right: 8px;
}

/* 为文本内容单独设置溢出规则（更精准控制） */
.buyu_detail__copyright .content .item .text {
  flex: 1; /* 文本自动填充剩余空间 */
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  
  /* 多行溢出时取消注释以下代码 */
  /* display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal; */
}

.buyu_detail__copyright .content .item:last-child {
  margin-bottom: 0;
}

.buyu_detail__copyright .content .item .icon {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  color: #165DFF;
  flex-shrink: 0;
}

.buyu_detail__copyright .content .item .link {
  color: #6c757d;
  transition: color 0.2s ease;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.buyu_detail__copyright .content .item .link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #165DFF;
  transition: width 0.3s ease;
}

.buyu_detail__copyright .content .item .link:hover {
  color: #165DFF;
}

.buyu_detail__copyright .content .item .link:hover::after {
  width: 100%;
}

.buyu_detail__copyright .content .item {
  color: #6c757d;
  margin-bottom: 8px;
  word-break: break-word;
  line-height: 1.5;
  display: flex;
  align-items: center;
  font-size: 14px;
}

.buyu_detail__copyright .content .item i {
  margin-right: 8px;
  font-size: 16px; /* 图标大小略大于文本 */
}

.buyu_detail__copyright .content .item .text {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ----------- */
/* 整体评论容器 */
/* ----------- */
#comments {
  padding-top: 15px;
}

/* 评论列表和有序列表样式 */
.comment-list,
.comment-list ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* 单个评论项样式 */
.comment-list li {
  padding: var(--spacing-medium);
  margin-top: var(--spacing-small);
  border: var(--border-width) solid var(--border-color);
  background-color: #ffffff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: all 0.3s ease;
}

/* 奇数层级评论的背景色 */
.comment-list li.comment-level-odd {
  background: #F6F6F3;
}

/* 偶数层级评论的背景色 */
.comment-list li.comment-level-even {
  background: #FFF;
}

/* 作者评论的背景色 */
/* 评论层级样式 */
.comment-list li.comment-level-odd {
  background: #f9fafb;
}

.comment-list li.comment-level-even {
  background: #ffffff;
}

.comment-list li.comment-by-author {
  background: #fff8e1;
  border-left: 3px solid #ffb74d;
}

/* 评论回复按钮样式 */
.comment-list li .comment-reply {
  text-align: right;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* 评论元信息链接样式 */
.comment-meta a {
  color: #000000;
  font-size: 0.92857em;
  text-decoration: none; /* 去除下划线 */
  transition: color 0.3s ease; /* 链接颜色过渡效果 */
}

/* 评论作者信息样式 */
.comment-author {
  display: block;
  margin-bottom: 3px;
  color: #000000;
}

/* 评论作者标志 */
.comment-badge {
  background-color: #3354AA;
  color: white;
  font-size: 12px;
  padding: 2px 5px;
  border-radius: 4px;
  margin-left: 5px;
  vertical-align: middle;
}

/* 作者头像样式 */
.comment-author .avatar {
  float: left;
  margin-right: 10px;
  border-radius: 4px;
  border: 1px solid #ccc;
  width: 30px;
  height: 30px;
  object-fit: cover; /* 使头像图片保持比例填充 */
}

/* 评论内容样式 */
.comment-content {
  margin-top: 10px;
  line-height: 1.6; /* 调整行高 */
}

/* 评论提交按钮样式 */
.comment-submit-button {
  float: right;
  width: 100%;
  border: var(--border-width) solid var(--border-color);
  background: #ffffff;
  border-radius: var(--border-radius);
  color: var(--text-color);
  font-size: var(--font-size-medium);
  line-height: 30px;
  transition: all 0.2s;
  cursor: pointer;
}

/* 评论提交按钮激活时的样式 */
.comment-submit-button:active {
  transform: scale(0.95);
  background-color: #e0e0e0;
}

/* 评论提交按钮容器样式 */
.comment-submit-button-container {
  margin-top: 0.5em;
}

/* 评论回复部分样式 */
.comment-list .respond {
  margin-top: 15px;
  border-top: 1px solid #EEE;
  padding-top: 15px;
}

/* 取消评论回复按钮样式 */
.respond .cancel-comment-reply {
  float: right;
  margin-top: 15px;
  font-size: 0.92857em;
  cursor: pointer; /* 鼠标悬停显示指针 */
  color: #666; /* 调整颜色 */
  transition: color 0.3s ease; /* 颜色过渡效果 */
}

/* 评论表单标签样式 */
#comment-form label {
  display: block;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  font-weight: bold;
}

/* 表单必填项后的星号样式 */
#comment-form .required:after {
  content: " *";
  color: #C00;
}

/* ------------------
 * secondary
 * --------------- */
#secondary {
  padding-top: 15px;
  word-wrap: break-word;
}

.widget {
  margin-bottom: 30px;
}

.widget-list {
  list-style: none;
  padding: 0;
}

.widget-list li {
  margin: 5px 0;
  line-height: 1.6;
}

.widget-list li ul {
  margin-left: 15px;
}

/* ------------------
 * Footer 
 * --------------- */
#footer {
  padding: 3em 0;
  line-height: 1.5;
  text-align: center;
  color: #000000;
}

/* -----------------
 * Error page
 * -------------- */
.error-page {
  margin-top: 100px;
  margin-bottom: 100px;
}

/* 文章底部按钮 */
.post-button {
  text-align: center;
  margin-top: 20px;
}

.post-bth {
  display: inline-block;
  padding: 8px 20px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  color: #6c757d;
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
  margin: 0 1px;
}

.post-bth:hover {
  background-color: #f1f1f1;
  border-color: #ccc;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.post-bth:active {
  background-color: #e9ecef;
  border-color: #bbb;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  transform: translateY(1px);
}

/* 点赞按钮与分享按钮风格统一 */
#like, #share {
  color: #6c757d;
  border-color: #ddd;
}

#like:hover, #share:hover {
  background-color: #f1f1f1;
}

#like:active, #share:active {
  background-color: #e9ecef;
}

/* 任务列表样式 */
.task-list-item {
  display: flex;
  align-items: flex-start; /* 与普通段落顶部对齐 */
  gap: 0.5em;
  list-style: none;
  padding-left: 0;
  margin-left: -1.5em; /* 与普通ul对齐 */
}

.task-list-item .fa {
  font-size: 1.1em;
  margin-top: 0.15em; /* 微调图标与文字对齐 */
}

.task-done {
  text-decoration: line-through;
  color: #888;
}

.post-content {
  line-height: 1.7; /* 微调行高 */
  font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
  letter-spacing: 0.8px; /* 减小字母间距 */
  background-size: 16px 16px; /* 减小背景尺寸 */
  background-position: center center;
  word-break: break-word;
  font-weight: 400;
  font-size: 13px; /* 减小字体大小 */
  overflow-x: hidden;
}

.post-content h1 {
  font-size: 22px; /* 减小字号 */
  margin-bottom: 6px; /* 减小底部边距 */
  font-weight: 700;
  padding-left: 10px; /* 减小左边距 */
  border-radius: 4px;
  border-left: 4px solid #5c5c5c; /* 设置左边框样式 */
}

.post-content h2 {
  font-size: 18px;
  font-weight: 700;
  padding-left: 10px;
  border-radius: 4px;
  border-left: 4px solid #5c5c5c; /* 设置左边框样式 */
}

.post-content h3 {
  font-size: 16px;
  font-weight: 700;
  padding-left: 10px;
  border-radius: 4px;
  border-left: 4px solid #5c5c5c; /* 设置左边框样式 */
}

.post-content h4 {
  font-size: 14px;
  font-weight: 700;
  padding-left: 10px;
  border-radius: 4px;
  border-left: 4px solid #5c5c5c; /* 设置左边框样式 */
}

.post-content h5 {
  font-size: 13px;
  font-weight: 700;
  padding-left: 10px;
  border-radius: 4px;
  border-left: 4px solid #5c5c5c; /* 设置左边框样式 */
}

.post-content h6 {
  font-size: 12px;
  margin-top: 4px; /* 减小顶部边距 */
  font-weight: 700;
  padding-left: 10px;
  border-radius: 4px;
  border-left: 4px solid #5c5c5c; /* 设置左边框样式 */
}

.post-content p {
  line-height: inherit;
  margin-bottom: 6px; /* 减小底部边距 */
}

.post-content img {
  border-radius: 4px; /* 减小圆角半径 */
  /* margin: 6px 0; */ /* 减小边距 */
  max-width: 100%;
  height: auto;
}

.post-content img:hover  {
  filter: blur(0) brightness(0.75);
  -webkit-filter: blur(0) brightness(0.75);
}

.post-content hr {
  background-color: #eee; /* 调整背景颜色更淡 */
  border-top: 1.5px dashed #333; /* 减小边框宽度，调整颜色 */
  border-bottom: none;
  border-left: none;
  border-right: none;
  margin-top: 25px; /* 减小顶部边距 */
  margin-bottom: 25px;
}

.post-content code {
  padding: 1.5px 3px; /* 减小内边距 */
  background: #eee; /* 调整背景颜色更淡 */
  font-size: 13px; /* 减小字号 */
  font-weight: 600; /* 减小字体粗细 */
  font-family: 'SF Mono', Menlo, Monaco, Consolas, 'Courier New', -apple-system, system-ui, monospace;
  color: #c13;
  word-break: break-word;
  overflow-x: auto;
  background-color: transparent; /* 修改为透明背景 */
  border: 1px solid #dedede;
  border-radius: 4px;
}

.post-content pre {
  overflow: auto;
  position: relative;
  line-height: 1.6; /* 微调行高 */
}

.post-content pre>code {
  display: block;
  font-family: 'SF Mono', Menlo, Monaco, Consolas, 'Courier New', -apple-system, system-ui, monospace;
  font-weight: normal;
  font-size: 1em; /* 减小字号 */
  padding: 14px 10px; /* 减小内边距 */
  margin: 0;
  color: #333;
  word-break: normal;
  overflow-x: auto;
  background: #eee; /* 调整背景颜色更淡 */
  scroll-behavior: smooth;
  border: 1px solid #dedede;
  border-radius: 4px;
}

.post-content a {
  text-decoration: none;
  color: rgb(100, 135, 173); /* 调整链接颜色 */
  font-weight: 600; /* 减小字体粗细 */
}

.post-content a:hover,
.post-content a:active {
  color: #773098;
}

.post-content table {
  border: 1px solid #999; /* 调整边框颜色稍淡 */
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 6px; /* 减小底部边距 */
  border-radius: 4px;
}

.post-content thead {
  background-color: #ccc; /* 调整背景颜色稍淡 */
  color: #333;
  text-align: left;
}

.post-content th,
.post-content td {
  border: 1px solid #999; /* 调整边框颜色稍淡 */
  padding: 6px; /* 减小内边距 */
  text-align: left;
}

.post-content blockquote {
  color: #555; /* 调整颜色稍淡 */
  padding: 8px 18px; /* 减小内边距 */
  margin: 18px 0;
  border-radius: 4px;
  border-left: 4px solid #5c5c5c;
  background-color: #e4e4e4; /* 调整背景颜色 */
}

.post-content blockquote::after {
  display: block;
  content: "";
}

.post-content blockquote>p {
  margin: 8px 0;
  line-height: 22px; /* 减小行高 */
}

.post-content ol,
.post-content ul {
  padding-left: 20px; /* 减小左侧内边距 */
}

.post-content ol li,
.post-content ul li {
  margin-bottom: 0;
  list-style: inherit;
}

.post-content ol li.task-list-item,
.post-content ul li.task-list-item {
  list-style: none;
}

.post-content ol li.task-list-item ul,
.post-content ol li.task-list-item ol,
.post-content ul li.task-list-item ul,
.post-content ul li.task-list-item ol {
  margin-top: 0;
}

.post-content ol ul,
.post-content ol ol,
.post-content ul ul,
.post-content ul ol {
  margin-top: 2px; /* 减小顶部边距 */
}

.post-content ol li {
  padding-left: 4px; /* 减小左侧内边距 */
}

.post-content b,
.post-content strong,
.post-content i,
.post-content em {
    color: var(--text-color);
}

.post-content b,
.post-content strong {
    font-weight: 600;
}   
.post-content mark {
  background-color: #ffd9b3;
  padding: 2px 4px;
  border-radius: 4px;
}

.post-content del {
  color: #999;
  text-decoration: line-through;
}

.post-content kbd {
  display: inline-block;
  padding: 2px 4px;
  background-color: #eee;
  border: var(--border) solid var(--muted-text-color);
  border-radius: 4px;
  font-family: 'SF Mono', Menlo, Monaco, Consolas, 'Courier New', -apple-system, system-ui, monospace;
}

.post-content sub, .post-content sup {
  font-size: 10px;
}

.post-content sub {
  vertical-align: sub;
}

.post-content sup {
  vertical-align: super;
}

.post-content details {
  background-color: var(--background-color);
  padding: 8px 12px;
  border: var(--border) solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
  max-height: 40px; /* 初始最大高度，可根据 summary 的高度调整 */
}

.post-content details[open] {
  max-height: 1000px; /* 展开时的最大高度，可根据内容调整 */
}

.post-content details summary {
  padding: 4px;
  cursor: pointer;
  list-style: none;
  position: relative;
  font-weight: 600;
}

.post-content summary::-webkit-details-marker {
  display: none;
}

.post-content summary::after {
  content: '\f078';  /* Unicode 不变，但需通过 content 直接引用 */
  font-family: 'FontAwesome';  /* 4.7.0 版本的字体名称 */
  font-weight: normal;  /* Font Awesome 4 无需指定 font-weight */
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

.post-content details[open] summary::after {
  transform: translateY(-50%) rotate(180deg);
}

.post-content details .year-content {
  will-change: transform, opacity;
  overflow: hidden;
}

.post-content details[open] .year-content {
  animation: slide-down 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.post-content details:not([open]) .year-content {
  animation: slide-up 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

@keyframes slide-down {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-up {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}   

.post-content figure {
  margin: 6px 0;
}

.post-content figcaption {
  font-size: 12px;
  color: #555;
  text-align: center;
}

@media (max-width: 720px) {
  .post-content h1 {
    font-size: 20px;
  }

  .post-content h2 {
    font-size: 16px;
  }

  .post-content h3 {
    font-size: 14px;
  }
}

.aligncenter, div.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.alignleft {
  float: left;
}
.alignright {
  float: right;
}
img.alignleft {
  margin: 0 15px 0 0;
}
img.alignright {
  margin: 0 0 0 15px;
}

@media (max-width: 767px) {
  body {
    font-size: 81.25%;
  }
  #nav-menu a {
    float: none;
    display: inline-block;
  }
}

@media (max-width: 768px) {
  #header,
  .post-title,
  .post-meta {
    text-align: center;
  }

  .buyu_detail__copyright .content .item i {
    font-size: 14px; /* 小屏幕图标大小 */
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 952px;
  }
}

.hidden {
  display: none !important;
  visibility: hidden; 
}

.sr-only {
  border: 0;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px; 
}

.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  width: auto; 
}

.invisible {
  visibility: hidden; 
}

/* 友链卡片样式开始 */
.friend-container {
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px; /* 卡片间距 */
}

.friend-container .friend-card {
  display: flex;
  align-items: center;
  border: var(--border) solid var(--border-color);
  background-color: var(--background-color);
  padding: 0.8em;
  text-decoration: none;
  border-radius: 4px;
  color: inherit;
}

.friend-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  -webkit-line-clamp: 1; /* 限制为 1 行 */
  line-clamp: 1; /* 标准属性，增加兼容性 */
  max-height: 1.4em; /* 根据字体大小调整 */
}

.friend-container .friend-card:hover {
  border-bottom-color: #EEE;
}

.friend-container .friend-card .friend-avatar {
  width: 3.2em;
  height: 3.2em;
  bottom: 0;
  margin: 0 0.6em 0 0;
  box-shadow: none;
}

.friend-container .friend-card .friend-info {
  display: flex;
  flex-direction: column;
}

.friend-container .friend-card .friend-name {
  font-size: 1em;
  font-weight: bold;
  margin: 0;
}

.friend-container .friend-card .friend-description {
  font-size: 0.9em;
  color: var(--muted-text-color);
  margin: 1px 0 0 0;
}
/* 友链卡片样式结束 */

/*404页面开始*/
.error-page-404 {
  padding: var(--spacing-large);
  text-align: center;
}

.error-page h2 {
  font-size: 36px;
  color: var(--highlight-color);
  margin-bottom: var(--spacing-medium);
  animation: fadeIn 1s ease;
}

.error-page p {
  font-size: var(--font-size-medium);
  margin-bottom: var(--spacing-large);
  animation: fadeIn 1s ease;
}

.error-page form#search {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.error-page form#search input[type="text"] {
  width: 100%;
  padding: 15px;
  border: var(--border) solid var(--border-color);
  border-radius: 4px;
  font-size: 16px;
}

.error-page form#search label {
  display: none;
}

@keyframes fadeIn {
  from {
      opacity: 0;
  }

  to {
      opacity: 1;
  }
}
/*404页面结束*/

/* ------------------
 * 短代码解析样式
 * --------------- */
.custom-video-container {
  display: flex;
  justify-content: center;
  margin: 20px 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  overflow: hidden;
}
.custom-video-container video {
  width: 100%;
  height: auto;
  display: block;
}
.custom-audio-container {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}
.custom-audio-container audio {
  width: 80%;
  max-width: 600px;
}
/*短代码解析样式结束*/

/* ------------------
 * 全局消息提示开始
 * --------------- */
.qmsg.qmsg-wrapper{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  color: rgba(0, 0, 0, .55);
  font-size: 13px;
  font-variant: tabular-nums;
  line-height: 1;
  list-style: none;
  font-feature-settings: "tnum";
  position: fixed;
  top: 16px;
  left: 0;
  z-index: 1010;
  width: 100%;
  pointer-events: none;
}
.qmsg .qmsg-item{
  padding: 8px;
  text-align: center;
  -webkit-animation-duration: .3s;
  animation-duration: .3s;
  position: relative;
}
.qmsg .qmsg-item .qmsg-count{
  text-align: center;
  position: absolute;
  left: -4px;
  top: -4px;
  background-color: red;
  color: #fff;
  font-size: 12px;
  line-height: 16px;
  border-radius: 2px;
  display: inline-block;
  min-width: 16px;
  height: 16px;
  -webkit-animation-duration: .3s;
  animation-duration: .3s;
}
.qmsg .qmsg-item:first-child{
  margin-top: -8px;
}
.qmsg .qmsg-content{
  text-align: left;
  position: relative;
  display: inline-block;
  padding: 10px 16px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
  pointer-events: all;
  /* min-width: 175px; */
  max-width: 80%;
  min-width: 80px;
}
.qmsg .qmsg-content [class^="qmsg-content-"]{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qmsg .qmsg-content .qmsg-content-with-close{
  padding-right: 20px;
}
.qmsg .qmsg-icon{
  display: inline-block;
  color: inherit;
  font-style: normal;
  line-height: 0;
  text-align: center;
  text-transform: none;
  vertical-align: -.125em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  top: 1px;
  margin-right: 8px;
  font-size: 16px;
}
.qmsg .qmsg-icon svg{
  display: inline-block;
}

.qmsg .qmsg-content-info .qmsg-icon{
  color: #1890ff;
  user-select: none;
}
.qmsg .qmsg-icon-close{
  position: absolute;
  top: 11px;
  right: 5px;
  padding: 0;
  overflow: hidden;
  font-size: 12px;
  line-height: 22px;
  background-color: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  color: rgba(0, 0, 0, .45);
  transition: color .3s
}
.qmsg .qmsg-icon-close:hover>svg path{
  stroke: #555;
}
.qmsg .animate-turn{
  animation:MessageTurn 1s linear infinite;  
  -webkit-animation: MessageTurn 1s linear infinite;
}
@keyframes MessageTurn{
  0%{-webkit-transform:rotate(0deg);}
  25%{-webkit-transform:rotate(90deg);}
  50%{-webkit-transform:rotate(180deg);}
  75%{-webkit-transform:rotate(270deg);}
  100%{-webkit-transform:rotate(360deg);}
}
@-webkit-keyframes MessageTurn{
  0%{-webkit-transform:rotate(0deg);}
  25%{-webkit-transform:rotate(90deg);}
  50%{-webkit-transform:rotate(180deg);}
  75%{-webkit-transform:rotate(270deg);}
  100%{-webkit-transform:rotate(360deg);}
}

@-webkit-keyframes MessageMoveOut {
  0% {
    max-height: 150px;
    padding: 8px;
    opacity: 1
  }

  to {
    max-height: 0;
    padding: 0;
    opacity: 0
  }
}

@keyframes MessageMoveOut {
  0% {
    max-height: 150px;
    padding: 8px;
    opacity: 1
  }

  to {
    max-height: 0;
    padding: 0;
    opacity: 0
  }
}


@-webkit-keyframes MessageMoveIn {
    
  0% {
    transform: translateY(-100%);
    transform-origin: 0 0;
    opacity: 0
  }

  to {
    transform: translateY(0);
    transform-origin: 0 0;
    opacity: 1
  }
}

@keyframes MessageMoveIn {
  0% {
    transform: translateY(-100%);
    transform-origin: 0 0;
    opacity: 0
  }

  to {
    transform: translateY(0);
    transform-origin: 0 0;
    opacity: 1
  }
}
@-webkit-keyframes MessageShake {
  0%,
  100% {
    transform: translateX(0px);
    opacity: 1;
  }
  
  25%,
  75% {
    transform: translateX(-4px);
    opacity: 0.75;
  }
  
  50% {
    transform: translateX(4px);
    opacity: 0.25;
  }
}
@keyframes MessageShake {
  0%,
  100% {
    transform: translateX(0px);
    opacity: 1;
  }
  
  25%,
  75% {
    transform: translateX(-4px);
    opacity: 0.75;
  }
  
  50% {
    transform: translateX(4px);
    opacity: 0.25;
  }
}