/* ------------------------------------
 * Typecho默认主题
 *
 * @作者  Typecho团队
 * @链接  http://typecho.org/
 * @更新  2013-10-28
 * --------------------------------- */

/* ------------------
 * 全局样式
 * --------------- */
/* 引入Play字体 */
@font-face {
    font-family: 'Play';
    font-style: normal;
    font-weight: normal;
    src: local('Play'), url('https://fonts.cdnfonts.com/s/15333/Play-Regular.woff') format('woff');
	font-display: swap;
}

/* 定义 iconfont 字体，从阿里 CDN 引入多种格式的字体文件 */
@font-face {
    font-family: 'iconfont';
    src: url('//at.alicdn.com/t/font_1582220_x8ufk3a6y1j.ttf') format('truetype'),
         
}

/* 设置 iconfont 字体的样式 */
.iconfont {
    vertical-align: sub;
    font-style: normal;
    font-size: 24px;
    font-family: iconfont!important;
}

/* 设置不同图标的内容 */
.icon-https:before {
    content: "\e625";
}
.icon-no-https:before {
    content: "\e9ad";
}
.icon-rili:before {
    content: "\e63f";
}
.icon-top:before {
    content: "\e604";
}
.icon-tg:before {
    content: "\e9ac";
}
.icon-email:before {
    content: "\e6a9";
}

/* 设置 https 图标颜色 */
.icon-https {
    color: #46ce4b;
}

/* 设置 https 和无 https 图标的内边距和垂直对齐方式 */
.icon-https, .icon-no-https {
    padding-right: 5px;
    vertical-align: bottom;
    font-size: 18px;
}

/* 设置日历图标的内边距 */
.icon-rili {
    padding-right: 5px;
}

/* 设置 Telegram 和邮箱图标的内边距和垂直对齐方式 */
.icon-tg, .icon-email {
    padding-right: 5px;
    vertical-align: bottom;
    font-size: 18px;
}

/* 设置返回顶部图标的样式 */
.icon-top {
    position: fixed;
    color: #999;
    right: 60px;
    bottom: 30px;
    display: block;
    cursor: pointer;
    font-size: 30px;
    -webkit-transition: all .2s ease-in-out;
}

/* 媒体查询：屏幕宽度小于 880px 时的样式 */
@media (max-width: 880px) {
    /* 隐藏返回顶部图标 */
    .icon-top {
        margin-right: -9999px;
    }
}

body {
  background-color: #fff;
  color: #444;
  font-family: 'Play', "Droid Serif", Georgia, "Times New Roman", "PingFang SC", "Hiragino Sans GB", "Source Han Sans CN", "WenQuanYi Micro Hei","Microsoft Yahei", serif;
  font-size: 87.5%;
}

a {
  color: #2479CC;/* 原#505050   */
  text-decoration: none;
}
a:hover, a:active {
  color: #f88335;/* 原#2479cc   */
}
pre, code { 
  background: #F3F3F3;
  font-family: Menlo, Monaco, Consolas, "Lucida Console", "Courier New", monospace;
  /* 将代码字体大小增大，从原来的.92857em调整为1em */
  font-size: 1em; 
  counter-reset: line;
}
code { padding: 2px 4px; color: #B94A48; }
pre {
  padding: 8px;
  overflow-x: auto; /* 仅保留水平滚动条 */
  white-space: pre; /* 保留原始空白和换行 */
  position: relative;
  padding-left: 40px; /* 为行号预留空间 */
  line-height: 1.5; /* 设置行高 */
  border-radius: 4px; /* 添加圆角，值可根据需要调整 */
  
}
pre code {
  padding: 3px;
  color: #444;
  counter-reset: line;
  display: block; /* 确保代码块作为整体处理 */
}

pre .line::before {
  counter-increment: line;
  content: counter(line);
  position: absolute;
  left: 0;
  text-align: right;
  width: 30px;
  padding-right: 5px;
  border-right: 1px solid #ccc;
  color: #999;
  white-space: nowrap; /* 行号不换行 */
  overflow: hidden; /* 防止行号溢出 */
}

pre .line-numbers {
  position: absolute;
  top: 8px; /* 与 pre 的 padding-top 一致 */
  left: 0;
  height: calc(100% - 16px); /* 减去上下 padding */
  width: 30px;
  text-align: right;
  border-right: 1px solid #ccc;
  padding-right: 5px;
  pointer-events: none;
  overflow: hidden;
  line-height: 1.5; /* 与 pre 行高一致 */
  transition: transform 0.1s ease-out; /* 添加平滑滚动效果 */
}

pre .line-numbers .line {
  display: block; /* 每个行号占一行 */
}
pre:hover .line-numbers {
  transform: translateY(0); /* 悬停时重置位置（修复某些浏览器滚动问题） */
}

/**-----**/

blockquote {
  margin: 1em 0;
  padding-left: 1.5em;
  border-left: 4px solid #eee;
  color: #666;
}

table {
border-collapse:collapse;
border-spacing:0;
font-size:13px;
overflow:auto;
width:100%;
word-break:normal;
word-wrap:normal
}

table th,table td {
border:1px solid #ddd;
padding:6px 13px;
white-space:nowrap
}

table tr {
background-color:#fff;
border-top:1px solid #ccc
}
table th,.directory-content .is-active-link {
font-weight:700
}

table tr:hover,table thead tr {
background-color:#f7f7f7
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Play', "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "WenQuanYi Micro Hei","Microsoft Yahei", sans-serif;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
textarea {
  padding: 5px;
  border: 1px solid #ddd;
  width: 100%;

  border-radius: 3px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
textarea {
  resize: vertical;
}


/* 特殊链接样式 */
.post-meta a,
.post-content a,
.widget a,
.comment-content a {
  /**border-bottom: 1px solid #EEE;**/
}

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

/* ------------------
 * 头部
 * --------------- */

#header {
  padding-top: 10px;
  border-bottom: 1px solid #e97410;
}

#logo {
  color: #333;
  font-size: 2.5em;
}
#logo img {
    max-height: 64px;
}

.description {
  margin:0 0 0 10em;
  color: #999;
  font-style: italic;
}

/* 导航菜单 */
#nav-menu {
  margin: 5px 0 0;
  padding: 0;
}
#nav-menu a {
  display: block;
  margin-right: -1px;
  padding: 0 20px;
  border: 1px solid #EEE;
  border-bottom: none;
  height: 32px;
  line-height: 32px;
  color: #444;
  float: left;
}
#nav-menu a:hover,
#nav-menu .current {
  background: #F6F6F6;
}

/* 搜索 */
#search {
  position: relative;
  margin-top: 35px; /* 修改为 35px */
}
#search input {
  padding-right: 30px;
}
#search button {
  position: absolute;
  right: 4px;
  top: 2px;
  border: none;
  padding: 0;
  width: 24px;
  height: 24px;
  background: transparent url(img/icon-search.png) no-repeat center center;
  direction: ltr; /* 修复RTL语言 */
  text-indent: -9999em;
}

@media 
(-webkit-min-device-pixel-ratio: 2), 
(min-resolution: 192dpi) {
  #search button {
    background-image: url(img/icon-search@2x.png);
    -webkit-background-size: 24px 24px;
    -moz-background-size: 24px 24px;
    -o-background-size: 24px 24px;
    background-size: 24px 24px;
  }
}


/* ------------------
 * 主体
 * --------------- */

.post {
  padding: 15px 0 5px;
  border-bottom: 1px solid #EEE;
}
.post-title {
  margin: .83em 0;
  font-size: 1.3em;
}
.post-meta {
  margin-top: -0.5em;
  padding: 0;
  color: #999;
  font-size: .92857em;
}
.post-meta li {
  display: inline-block;
  margin: 0 8px 0 0;
  padding-left: 12px;
  border-left: 1px solid #EEE;
}
.post-meta li:first-child {
  margin-left: 0;
  padding-left: 0;
  border: none;
}
.post-content {
  line-height: 1.5;
  position: relative;
}
.read-more {
    position: absolute;
    bottom: -3px;
    right: 10px;
}

.post .tags {
  clear: both;
}

.post-near {
  list-style: none;
  margin: 30px 0;
  padding: 0;
  color: #999;
}
.post-near li {
  margin: 10px 0;
}

.archive-title {
  margin: 1em 0 -1em;
  padding-top: 20px;
  color: #999;
  font-size: 1em;
}
.more {
  text-align: center;
}
.more a {
  border: none;
}
.protected .text {
  width: 50%;
}

/* 分页导航 */

.page-navigator {
  list-style: none;
  margin: 25px 0;
  padding: 0;
  text-align: center;
}
.page-navigator li {
  display: inline-block;
  margin: 0 4px;
}
.page-navigator a {
  display: inline-block;
  padding: 0 10px;
  height: 30px;
  line-height: 30px;
}
.page-navigator a:hover {
  background: #EEE;
  text-decoration: none;
}

.page-navigator .current a {
  color: #444;
  background: #EEE;
}

/* ------------------
 * 评论列表
 * --------------- */
#comments {
  padding-top: 15px;
}
.comment-list, .comment-list ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.comment-list li {
  padding: 14px;
  margin-top: 10px;
  border-radius: 3px;
  border: 1px solid #ddd;
}
.comment-list li.comment-level-odd {
  background: #F6F6F3;
}
.comment-list li.comment-level-even {
  background: #FFF;
}
.comment-list li.comment-by-author {
  background: #FFF9E8;
}
.comment-list li .comment-reply {
  text-align: right;
  font-size: .92857em;
}
.comment-meta a {
  color: #999;
  font-size: .92857em;
}
.comment-author {
  display: block;
  margin-bottom: 3px;
  color: #444;
}
.comment-author .avatar {
  float: left;
  margin-right: 10px;
}
.comment-author cite {
  font-weight: bold;
  font-style: normal;
}

/* 评论回复 */
.comment-list .respond {
  margin-top: 15px;
  border-top: 1px solid #EEE;
}
.respond .cancel-comment-reply {
  float: right;
  margin-top: 15px;
  font-size: .92857em;
}
#comment-form label {
  display: block;
  margin-bottom: .3em;
  font-weight: bold;
}
#comment-form .required:after {
  content: " *";
  color: #C00;
}

/* ... 已有样式 ... */

/* 调整评论输入框和按钮的样式 */
#comment-form div {
    position: relative;
}

#comment-form .submit {
    position: absolute;
    bottom: 13px;
    right: 10px;
}

/* ... 已有样式 ... */
/***/
.comment-info-row {
    display: flex;
    justify-content: space-between;
}

.comment-info-row p {
    flex: 1;
    margin-right: 10px;
}

.comment-info-row p:last-child {
    margin-right: 0;
}
/***/
/* 侧边栏样式 */
#secondary {
  padding-top: 15px;
  word-wrap: break-word;
  position: -webkit-sticky; /* Safari */
  position: sticky;
  top: 20px; /* 距离顶部的距离 */
  align-self: flex-start; /* 防止侧边栏被拉伸 */
}
.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 {
  padding: 3em 0;
  line-height: 1.5;
  text-align: center;
  color: #999;
}


/* -----------------
 * 错误页面
 * -------------- */
.error-page {
  margin-top: 100px;
  margin-bottom: 100px;
}


/* -----------------
 * 内容格式
 *--------------- */
.post-content, .comment-content {
  line-height: 1.5;
  word-wrap: break-word;
}
.post-content h2, .comment-content h2 {
  font-size: 1.28571em;
}
.post-content img, .comment-content img,
.post-content video, .comment-content video {
  max-width: 100%;
}
.post-content a img,
.comment-content a img {
  background: #FFF;
  position: relative;
  bottom: -4px;  /* 隐藏图片父链接边框 */
}
.post-content hr, .comment-content hr {
  margin: 2em auto;
  width: 100px;
  border: 1px solid #E9E9E9;
  border-width: 2px 0 0 0;
}


/* -----------------
 * 其他
 *--------------- */
.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;
    margin: 0 -2px;
  }
}

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

@media (min-width: 992px) {

}

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


/*
* 从屏幕阅读器和浏览器中隐藏：h5bp.com/u
*/
.hidden {
  display: none !important;
  visibility: hidden; }

/*
* 仅在视觉上隐藏，但可用于屏幕阅读器：h5bp.com/v
*/
.sr-only {
  border: 0;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px; }

/*
* 扩展.sr-only类，使元素在通过键盘导航时可聚焦：h5bp.com/p
*/
.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  width: auto; }

/*
* 在视觉上和屏幕阅读器中隐藏，但保持布局
*/
.invisible {
  visibility: hidden; }
  
/* 归档页整体样式 */
#archives {
    margin-top: 20px;
    padding: 20px 60px 20px 60px;
	/*
    background-color: #f9f9f9;
    
	border: 1px solid #eee;
	*/
    border-radius: 5px;
}

/* 年份标题样式 */
.archive-year {
    font-size: 1.3em;
    color: #333;
    margin-top: 20px;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

/* 年份列表样式 */
.archive-year-list {
    list-style-type: none;
    padding-left: 0;
}


/* 月份标题样式 */
.archive-month {
    font-size: 1.1em;
    color: #666;
    display: inline-block;
    width: 80px;
    /* 添加左边距以增加层次感 */
    padding-left: 30px; 
}

/* 文章项样式 */
.archive-post {
    margin-bottom: 5px;
	list-style-type: none; /* 去掉列表项目符号 */
}

/* 文章日期样式 */
.archive-date {
    color: #999;
    margin-right: 10px;
    /* 添加左边距以增加层次感 */
    padding-left: 20px; 
}

/* 归档文章列表折叠样式 */
.archive-year-list {
    list-style-type: none;
    padding-left: 0;
    display: none;
}
.archive-year-list.expanded {
    display: block;
}
.archive-year:not(.expanded) {
    cursor: pointer;
}
/*---*/

/**反回顶部**/
#back-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    /* 减少 right 值，让按钮往左移动 */
    right: 100px; 
    background-color: #333;
    color: #fff;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    z-index: 999;
}

#back-to-top:hover {
    background-color: #555;
}

/* 标签云样式 */
.widget-tag-cloud {
    padding: 1px 1px;
    line-height: 1.5;
}

.widget-tag-cloud a {
    display: inline-block;
    margin: 0 4px 8px 0;
    padding: 2px 5px;
    border-radius: 4px;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    font-size: 14px !important;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.widget-tag-cloud a:hover {
    background-color: #428bca;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

/* 根据标签频率设置不同颜色 */
.widget-tag-cloud a:nth-child(5n+1):hover { background-color: #428bca; }
.widget-tag-cloud a:nth-child(5n+2):hover { background-color: #5cb85c; }
.widget-tag-cloud a:nth-child(5n+3):hover { background-color: #f0ad4e; }
.widget-tag-cloud a:nth-child(5n+4):hover { background-color: #d9534f; }
.widget-tag-cloud a:nth-child(5n+5):hover { background-color: #8e44ad; }


/* 文章标签样式 */
.post-tags {
    margin: 0;
    padding: 20px 0px 1px;
	display: inherit;
	border-bottom: none;

}


.post-content .post-tags a,
.post-tags a {
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
    margin: 0 3px 0 0;
    padding: 2px 4px 1px;
    -webkit-transition-duration: 400ms;
    transition-duration: 400ms;
    letter-spacing: 0;
    color: #5f5f5f;
    border: 1px solid #5f5f5f;
    border-radius: 20px;
    outline-style: none;
    background: #fff;
}
.post-tags a::before {
    content: '# ';
}
.post-tags a{letter-spacing:0;font-size:9pt;transition-duration:.4s} /* 标签链接样式：右浮动、左外边距、内边距、无字符间距、字体大小、过渡效果 */
.post-tags a:nth-child(1n){border:1px solid #6fa3ef;border-radius:5px;background:#6fa3ef;color:#fff} /* 第1、6、11...个标签链接：边框、圆角、背景色、文字色 */
.post-tags a:nth-child(2n){border:1px solid #ff9800;border-radius:5px;background:#ff9800;color:#fff} /* 第2、7、12...个标签链接：边框、圆角、背景色、文字色 */
.post-tags a:nth-child(3n){border:1px solid #336;border-radius:5px;background:#336;color:#fff} /* 第3、8、13...个标签链接：边框、圆角、背景色、文字色 */
.post-tags a:nth-child(4n){border:1px solid #c03;border-radius:5px;background:#c03;color:#fff} /* 第4、9、14...个标签链接：边框、圆角、背景色、文字色 */
.post-tags a:nth-child(5n){border:1px solid #bc99c4;border-radius:5px;background:#bc99c4;color:#fff} /* 第5、10、15...个标签链接：边框、圆角、背景色、文字色 */
.post-tags a:nth-child(6n){border:1px solid #e8583d;border-radius:5px;background:#e8583d;color:#fff} /* 第6、11、16...个标签链接：边框、圆角、背景色、文字色 */
.post-content .post-tags a:hover{text-decoration:none;outline-style:none;background:#f7f7f7;color:#505050} /* 标签链接 hover 状态：无轮廓、背景色、文字色 */

#response-1 {
    color: #333;
    font-size: 15px;
    margin-bottom: 0px;
}


