: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);
}

      a{
      text-underline-offset: 0.3em;
      overflow-wrap: break-word;
   }
   
   
   
h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Serif SC', serif;
  
}

/* 输入框和文本域样式 */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
textarea {
 
  box-sizing: border-box;
   box-shadow: 0px 0px 0px 0px #434343, 0px 0px #434343;
    border-color: #434343;
    background-color: #dfd7c8;
    word-break: break-all;
    border-radius: 0.25rem;
    border-top-left-radius: 250px 10px;
    border-top-right-radius: 15px 204px;
    border-bottom-left-radius: 15px 257px;
    border-bottom-right-radius: 230px 15px;
    border: 2px solid #4d4343;
    position: relative;
    overflow: auto;
    padding: 8px 16px;
  
}

textarea {
  resize: vertical;
}


.middle-column 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: 50px; /* 初始最大高度，可根据 summary 的高度调整 */
}

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



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






.middle-column summary::-webkit-details-marker {
  display: none;
}

.middle-column 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;
}


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











.middle-column {
  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;
}


.middle-column-post a{
    color: #ab3b3a;
    position: relative;
    word-break: break-word;
    cursor: pointer;
    text-underline-offset: 0.3em;
    -webkit-transition: 0.5s;
    transition: 0.5s;
    font-weight: 700;
}


.middle-column h1 {
  font-size: 22px; /* 减小字号 */
  margin-bottom: 6px; /* 减小底部边距 */
  font-weight: 700;
  padding-left: 10px; /* 减小左边距 */
  border-radius: 4px;
 
}

.middle-column h2 {
  font-size: 18px;
  font-weight: 700;
  padding-left: 10px;
  border-radius: 4px;

}

.middle-column h3 {
  font-size: 16px;
  font-weight: 700;
  padding-left: 10px;
  border-radius: 4px;

}

.middle-column h4 {
  font-size: 14px;
  font-weight: 700;
  padding-left: 10px;
  border-radius: 4px;
 
}

.middle-column h5 {
  font-size: 13px;
  font-weight: 700;
  padding-left: 10px;
  border-radius: 4px;

}

.middle-column h6 {
  font-size: 12px;
  margin-top: 4px; /* 减小顶部边距 */
  font-weight: 700;
  padding-left: 10px;
  border-radius: 4px;

}

.middle-column p {
  line-height: inherit;
  margin-bottom: 6px; /* 减小底部边距 */
  font-size: 1rem;
}

.middle-column img {
  max-width: 100%;
  height: auto;
    transition: all 0.2s;
  
 transition: background-color 0.3s ease;
    border-width: 2px;
    box-shadow: 0px 0px 0px 0px #434343, 0px 0px #434343;
    border-color: #434343;
    word-break: break-all;
    border-radius: 0.25rem;
    border-top-left-radius: 250px 10px;
    border-top-right-radius: 15px 204px;
    border-bottom-left-radius: 15px 257px;
    border-bottom-right-radius: 230px 15px;
    border: 2px solid #4d4343;
    position: relative;
    overflow: auto;
}

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

.middle-column 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;
}


















   /* 文章版权css */
  .Article-copyright {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background-color: rgba(236, 240, 241, 0.5);
    border-radius: 8px;
    position: relative;
    border: 1px solid #fff;
}
 .license-link {
            color: #ff9200;
            text-decoration: none;
            font-weight: 600;
            transition: color 0.2s ease;
            align-items: center;
        }

        .license-link:hover {
            color: var(--accent-color);
        }

        .license-link i {
            margin-right: 0.5rem;
        } 




.middle-column 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;
}

.middle-column pre {
  overflow: auto;
  position: relative;
  line-height: 1.6; /* 微调行高 */
  background-color: #c0c0c0;
  border-radius: 5px 5px 5px 5px;
  margin: 0 0 18px;
  padding: 40px 0 0;
}

.middle-column 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: 10px 10px; /* 减小内边距 */
  margin: 0;
  color: #333;
  word-break: normal;
  overflow-x: auto;
  background: #eee; /* 调整背景颜色更淡 */
  scroll-behavior: smooth;

  border-radius: 0px 0px 4px 4px;
}





.middle-column pre::before {
    content: '';
    position: absolute;
    top: 9px;
    left: 15px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fc625d;
    box-shadow: 20px 0 #fdbc40, 40px 0 #35cd4b;
    z-index: 1;
}



      .middle-column a {
  text-decoration: none;
  font-weight: 600; /* 减小字体粗细 */
  
}


.middle-column a:hover,
.middle-column a:active {
  color: #773098;
}

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

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

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

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

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










/* ----------- */
/* 整体评论容器 */
/* ----------- */



#comments {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    gap: 0.8rem;
    width: 100%;
}

#comments .head {
    display: flex;
    align-items: center;
    gap: 1rem;
}




#comments  .head .form-group {
    width: 100%;
}


.card {
    border-width: 2px;
    box-shadow: 0px 0px 0px 0px #434343, 0px 0px #434343;
    border-color: #434343;
    word-break: break-all;
    border-radius: 0.25rem;
    border-top-left-radius: 250px 10px;
    border-top-right-radius: 15px 204px;
    border-bottom-left-radius: 15px 257px;
    border-bottom-right-radius: 230px 15px;
    border: 2px solid #4d4343;
    position: relative;
    overflow: auto;
}




#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);
  background-color: #fff8e1;
  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  {
    display: flex;
    justify-content: space-between;
    align-items: center;
  color: #000000;
  font-size: 0.92857em;
  text-decoration: none; /* 去除下划线 */
  transition: color 0.3s ease; /* 链接颜色过渡效果 */
}



.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;
  width: 30px;
  height: 30px;
  object-fit: cover; /* 使头像图片保持比例填充 */
  
  
  
  
    border-width: 2px;
    box-shadow: 0px 0px 0px 0px #434343, 0px 0px #434343;
    border-color: #434343;
    word-break: break-all;
    border-radius: 0.25rem;
    border-top-left-radius: 250px 10px;
    border-top-right-radius: 15px 204px;
    border-bottom-left-radius: 15px 257px;
    border-bottom-right-radius: 230px 15px;
    border: 2px solid #4d4343;
    position: relative;
    overflow: auto;
  
  
}

/* 评论内容样式 */
.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: #dfd7c8;
  border-radius: var(--border-radius);
  color: var(--text-color);
  font-size: var(--font-size-medium);
  line-height: 30px;
  transition: all 0.2s;
  cursor: pointer;
  
  
  
  
  
  box-shadow: 0px 0px 0px 0px #434343, 0px 0px #434343;
    border-color: #434343;
    word-break: break-all;
    border-radius: 0.25rem;
    border-top-left-radius: 250px 10px;
    border-top-right-radius: 15px 204px;
    border-bottom-left-radius: 15px 257px;
    border-bottom-right-radius: 230px 15px;
    border: 2px solid #4d4343;
    position: relative;
    overflow: auto;
}

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

/* 评论提交按钮容器样式 */
.comment-submit-button-middle-column {
  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;
}













/* ------------------
 * 短代码解析样式
 * --------------- */
.custom-video-middle-column {
  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-middle-column video {
  width: 100%;
  height: auto;
  display: block;
}
.custom-audio-middle-column {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}
.custom-audio-middle-column audio {
  width: 80%;
  max-width: 600px;
}
/*短代码解析样式结束*/




/* 任务列表样式 */
.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;
}


/* 友链卡片样式开始 */
.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;
  background-color: #dfd7c8;;
  padding: 0.8em;
  text-decoration: none;
  border-radius: 4px;
  color: inherit;
  
  border: 2px solid #4d4343;
    box-shadow: 5px 5px 0px -2px #434343, 5px 5px #434343;
}

.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;
}
/* 友链卡片样式结束 */










.post-content details {
  background-color: #dfd7c8;;
  padding: 8px 12px;

  border-radius: 4px;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
  max-height: 50px; /* 初始最大高度，可根据 summary 的高度调整 */
  
  border: 2px solid #4d4343;
    box-shadow: 5px 5px 0px -2px #434343, 5px 5px #434343;
}

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

.post-content details summary {

  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;
}


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

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





/* ------------------
 * 短代码解析样式
 * --------------- */
.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;
}
/*短代码解析样式结束*/




.middle-column-gk h1, .middle-column-gk h2, .middle-column-gk h3, .middle-column-gk h4, .middle-column-gk h5, .middle-column-gk h6 {
    padding-left: 1px;
    margin: 10px 0;
    border-left: 10px solid rgba(0,0,0,.2);
    border-bottom: 0.1rem solid rgba(0,0,0,.2);
}

.middle-column-gk h1:before {
    content: '';
    color: #000000;
    font-family: 'remixicon';

    margin-right: 5px;
    font-weight: bold;
}

.middle-column-gk h2:before {
    content: '';
    color: #000000;
    font-family: 'remixicon';

    margin-right: 5px;
    font-weight: bold;
}

.middle-column-gk h3:before {
    content: '';
    color: #000000;
    font-family: 'remixicon';

    margin-right: 5px;
    font-weight: bold;
}

.middle-column-gk h4:before {
    content: '';
    color: #000000;
    font-family: 'remixicon';

    margin-right: 5px;
    font-weight: bold;
}


.middle-column-gk h5:before {
    content: '';
    color: #000000;
    font-family: 'remixicon';

    margin-right: 5px;
    font-weight: bold;
}


.middle-column-gk h6:before {
    content: '';
    color: #000000;
    font-family: 'remixicon';

    margin-right: 5px;
    font-weight: bold;
}


.middle-column-gk a:before  {
    margin-bottom: 10px;
border-bottom: 2px dashed #000;

}


.b,strong {
    margin-bottom: 10px;
border-bottom: 2px dashed #000;

}


.middle-column-gk p img{
margin: 0;
display: flex;
flex-wrap: wrap;
}



/* 默认缩进（通过 ::before 添加空格） */
.middle-column-gk p {
  text-indent: 0; /* 不用 text-indent，改用 ::before */
}

.middle-column-gk p::before {
  content: "  "; /* 2 个空格 */
  display: inline;
  margin-right: 2ch;
}

/* 如果段落包含 <img> 或 <a>，则移除 ::before */
.middle-column-gk p:has(img)::before,
.middle-column-gk p:has(a)::before {
  content: none;
}









