@charset "UTF-8";
@font-face {
  font-family: "iconfont";
  src: url("font_share_agree/iconfont.ttf?t=1751124309002") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
/* 图标 */
[class*=" icon-"], [class^=icon-] {
  font-family: "iconfont" !important;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 点赞大拇指 */
.icon-thumbs-up::before {
  content: "\e64d";
}

/* 社交分享 */
.icon-share::before {
  content: "\e68d";
}

/* 按钮通用样式 */
.btn {
  border-width: 1px;
  border-style: solid;
  border-radius: 0.2em;
  padding: 0.3em 1em;
  cursor: pointer;
}

/* 小按钮 */
.btn-sm {
  font-size: 0.8em;
}

/* 绿色按钮 */
.btn-green {
  border-color: #007241;
  color: #007241;
  background-color: white;
}
.btn-green:not(:disabled):hover, .btn-green:not(:disabled):focus, .btn-green:not(:disabled):active, .btn-green:disabled {
  background-color: #007241;
  color: white;
}
.btn-green:not(:disabled):focus, .btn-green:not(:disabled):active {
  outline: 3px solid rgba(0, 114, 65, 0.3);
}

/* 红色按钮 */
.btn-red {
  border-color: #d9230f;
  color: #d9230f;
  background-color: #fefefe;
}
.btn-red:not(:disabled):hover, .btn-red:not(:disabled):focus, .btn-red:not(:disabled):active, .btn-red:disabled {
  background-color: #d9230f;
  color: #fefefe;
}
.btn-red:not(:disabled):focus, .btn-red:not(:disabled):active {
  outline: 3px solid rgba(217, 35, 15, 0.3);
}

@keyframes mymove {
  from {
    top: -10px;
    opacity: 50;
  }
  to {
    top: -100px;
    opacity: 1;
  }
}
.disable-tip, .enable-tip {
  display: none;
  position: absolute;
  width: 100%;
  left: 0;
  top: 130%;
  font-size: 80%;
  background-color: #333;
  color: #fff;
  padding: 0.3em;
  border-radius: 5px;
  font-style: normal;
  opacity: 1;
}
.disable-tip::after, .enable-tip::after {
  content: " ";
  position: absolute;
  bottom: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent #333 transparent;
}

button:not([disabled]):hover .enable-tip, button.btn-green:not([disabled]):not(:disabled):focus .enable-tip, button.btn-green:not([disabled]):not(:disabled):active .enable-tip, button.btn-red:not([disabled]):not(:disabled):focus .enable-tip, button.btn-red:not([disabled]):not(:disabled):active .enable-tip {
  display: inline-block;
}

button[disabled]:hover .disable-tip, button[disabled].btn-green:not(:disabled):focus .disable-tip, button[disabled].btn-green:not(:disabled):active .disable-tip, button[disabled].btn-red:not(:disabled):focus .disable-tip, button[disabled].btn-red:not(:disabled):active .disable-tip {
  display: inline-block;
}

html, body {
  font-family: "-apple-system", "BlinkMacSystemFont", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", "WenQuanYi Micro Hei", sans-serif;
}

small, #page-post .the-end .inner, #page-post .license, .tags a, #footer, pre, code {
  font-size: 0.8em;
}

a {
  color: inherit;
  text-decoration: none;
}
a:hover, a:active {
  color: #116AF7;
  text-decoration: underline solid #116AF7;
}

pre {
  padding: 8px;
  overflow: auto;
  max-height: 800px;
}

pre, code {
  background-color: #F3F3F3;
  font-family: Menlo, Monaco, Consolas, "Lucida Console", "Courier New", monospace;
}

/** 单独<code>标签样式,markdown用``标记  */
code:not([class]) {
  padding: 2px 0.5em;
  color: red;
  margin: auto 0.2em;
  border-radius: 0.3em;
  font-family: "-apple-system", "BlinkMacSystemFont", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", "WenQuanYi Micro Hei", sans-serif;
}

pre code {
  margin: 0;
  padding: 3px;
  color: #444;
  border: none;
}

input[type=text],
input[type=email],
input[type=url],
input[type=password],
textarea {
  padding: 5px;
  border: 1px solid #E9E9E9;
  width: 100%;
  border-radius: 2px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

table {
  border: 1px solid #ddd;
  width: 100%;
}

table th,
table td {
  padding: 5px 10px;
  border: 1px solid #eee;
}

table th {
  background-color: #f3f3f3;
}

/* 标题中首字母要大写 */
a.title {
  text-transform: capitalize;
}

h1 {
  font-size: 1.2em;
}

h2 {
  font-size: 1.14em;
}

h3 {
  font-size: 1.1em;
}

h4 {
  font-size: 1.06em;
}

h5 {
  font-size: 1.03em;
}

h6 {
  font-size: 1.01em;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 200%;
  margin: 0.5em 0 0.3em 0;
  text-transform: capitalize;
}

/** 卡片样式 */
.card {
  border-radius: 5px;
  margin: 10px 5px;
  background-color: white;
}
.card.card-padding, .card .card-padding {
  padding: 1em;
}
.card .card-header {
  padding: 1em 1em 0px 1em;
  border-bottom: 1px solid #E9E9E9;
}
.card .card-body {
  padding: 0px 1em;
}
.card .card-footer {
  padding: 0px 1em 1em 1em;
}
@media screen and (max-width: 768px) {
  .card { /* 手机上缩小卡片左右内间距 */
    margin-left: 6px;
    margin-right: 6px;
  }
  .card.card-padding,
  .card .card-padding,
  .card .card-header,
  .card .card-body,
  .card .card-footer {
    padding-left: 0.5em;
    padding-right: 0.5em;
  }
}

/* 定义页面宽度 */
.container {
  margin: 0 auto;
}
@media screen and (min-width: 1200px) {
  .container { /* 宽屏显示 */
    max-width: 968px;
  }
}

#body {
  background-color: rgb(247, 248, 250);
  padding: 10px 0;
}
#body .body-main {
  display: grid;
  grid-template-columns: 70% 30%;
}
@media screen and (max-width: 768px) {
  #body .body-main { /* 窄屏幕上行显示 */
    grid-template-columns: 100%;
  }
}

/* 导航栏 */
nav {
  display: flex;
  justify-content: space-between;
  padding: 20px 20px 8px 20px;
  flex-wrap: wrap;
  row-gap: 1em;
}
nav .right {
  /* 右侧导航栏 */
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  align-content: flex-end;
  gap: 1rem;
}
@media screen and (max-width: 768px) {
  nav .right { /* 隐藏菜单项目 */
    display: none;
    margin-top: 1em;
    width: 100%;
    row-gap: 2rem;
  }
}
nav.active { /* 菜单激活显示时 */
  gap: 0.5em; /* 调小行间距 */
}
nav.active .right {
  display: flex;
  flex-direction: column;
  width: 100%;
  justify-content: center;
  align-content: center;
  padding-bottom: 1em;
}
nav .menu {
  /* 导航菜单 */
  display: flex;
  gap: 0.5rem;
  list-style: none;
  transition: 0.3s;
  padding: 0;
}
nav .menu:where(ul) {
  margin: 0px;
  padding: 0px;
}
nav .menu a {
  display: inline-block;
  padding: 0.3em 0.6em;
}
nav .menu a:hover, nav .menu a:active, nav .menu a.current {
  text-decoration: none;
  background: linear-gradient(to bottom, #4CAF50, #43A047);
  /*border-radius: 0.3em;*/
  color: white;
}
nav .hamburger {
  /* 右侧小屏显示菜单按钮 */
  display: none;
  color: black;
  font-size: 1.5rem;
  cursor: pointer;
}
@media screen and (max-width: 768px) {
  nav .hamburger {
    display: block;
  }
}
nav .logo .site-name {
  color: black;
  font-size: 1.8em;
}
@media screen and (max-width: 768px) {
  nav .logo .site-name {
    font-size: 1em; /*字号调小*/
    font-weight: bold;
  }
}
nav .logo a {
  color: inherit;
  text-decoration: none;
  outline: none;
}
nav .logo a:hover, nav .logo a:active {
  color: inherit;
  text-decoration: underline solid transparent;
}
nav .logo img {
  max-height: 64px;
}

/* Search */
#search {
  position: relative;
  /*
   * Hide only visually, but have it available for screenreaders: h5bp.com/v
   */
}
#search input {
  padding-right: 30px;
}
#search input:focus {
  outline: 3px solid #39E639;
  border: 1px solid black;
  color: #333333;
  background-color: lightyellow;
}
#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; /* fix RTL language */
  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;
  }
}
#search .sr-only {
  border: 0;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  /*
  * Extends the .sr-only class to allow the element to be focusable
  * when navigated to via the keyboard: h5bp.com/p
  */
}
#search .sr-only.focusable:active, #search .sr-only .focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  width: auto;
}

main {
  padding: 0;
}
main .post-meta {
  /* 文章标题下面的信息 */
  margin-top: 0;
  padding: 0;
  color: #444;
  font-size: 0.92857em;
}
main .post-meta li {
  display: inline-block;
  margin: 0 8px 0 0;
  padding-left: 12px;
  border-left: 1px solid #EEE;
}
main .post-meta li:first-child {
  margin-left: 0;
  padding-left: 0;
  border: none;
}
@media screen and (max-width: 768px) {
  main .post-meta { /* 小屏（手机）上居中 */
    text-align: center;
  }
}
main .post { /* 文章内容 */
  padding: 1px 0;
  border: none;
}

/* Page nav */
.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, .page-navigator a :active {
  background-color: #EEE;
  text-decoration: none;
  border-bottom: none;
}
.page-navigator .current a {
  color: #666;
  background-color: #EEE;
}

/* ------------------
 * secondary
 * --------------- */
#secondary {
  word-wrap: break-word;
}
#secondary li {
  font-size: 92%;
}
#secondary .widget-list {
  padding: 0;
  margin: 0px;
  display: flex;
  row-gap: 1em;
  column-gap: 1em;
  flex-wrap: wrap;
  justify-content: start;
}
#secondary .widget-list li {
  list-style-type: none;
  color: #444;
}
#secondary .widget-title {
  color: black;
  font-weight: bold;
  font-size: 1em;
}
#secondary .widget-title::before {
  content: "Ξ "; /* 开始引号*/
  color: #009964;
  font-style: normal;
}
#secondary .card {
  padding-top: 0.1em;
}

/* ------------------
 * Footer 
 * --------------- */
#footer {
  padding: 2em 0 1em 0;
  line-height: 2;
  text-align: center;
  font-style: normal;
}
#footer address {
  font-style: normal;
}

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

/* -----------------
 * Content format
 *--------------- */
.post-content {
  word-wrap: break-word;
  /* 清除标题后块元素的上边距 */
}
.post-content img, .post-content video {
  max-width: 100%;
}
.post-content a img {
  background-color: #FFF;
  position: relative;
  bottom: -4px; /* hidden img parent link border  */
}
.post-content a {
  color: #116AF7;
  text-decoration: none;
}
.post-content a:hover, .post-content a:active {
  color: #116AF7;
  text-decoration: underline solid #116AF7;
}
.post-content hr {
  margin: 2em auto;
  border: 1px solid #E9E9E9;
  border-width: 1px 0 0 0;
}
.post-content p, .post-content li, .post-content div, .post-content td, .post-content th, .post-content blockquote {
  line-height: 200%;
}
.post-content p ~ p {
  margin-bottom: 0px;
}
.post-content p + ul, .post-content p + ol {
  padding-top: 0em;
  margin-top: 0px;
}
.post-content ul, .post-content ol, .post-content dl {
  padding-left: 1.2em;
}
.post-content h1 {
  font-size: 1.05em;
}
.post-content h2 {
  font-size: 1.04em;
}
.post-content h3 {
  font-size: 1.03em;
}
.post-content h4 {
  font-size: 1.02em;
}
.post-content h5 {
  font-size: 1.01em;
}
.post-content h6 {
  font-size: 1em;
}
.post-content h1, .post-content h2, .post-content h3, .post-content h4, .post-content h5 {
  padding: 0;
}
.post-content h1 + p, .post-content h1 + ul, .post-content h1 + ol, .post-content h1 + blockquote, .post-content h1 + h2, .post-content h1 + h3, .post-content h1 + h4, .post-content h1 + h5, .post-content h1 + h6, .post-content h2 + p, .post-content h2 + ul, .post-content h2 + ol, .post-content h2 + blockquote, .post-content h2 + h2, .post-content h2 + h3, .post-content h2 + h4, .post-content h2 + h5, .post-content h2 + h6, .post-content h3 + p, .post-content h3 + ul, .post-content h3 + ol, .post-content h3 + blockquote, .post-content h3 + h2, .post-content h3 + h3, .post-content h3 + h4, .post-content h3 + h5, .post-content h3 + h6, .post-content h4 + p, .post-content h4 + ul, .post-content h4 + ol, .post-content h4 + blockquote, .post-content h4 + h2, .post-content h4 + h3, .post-content h4 + h4, .post-content h4 + h5, .post-content h4 + h6, .post-content h5 + p, .post-content h5 + ul, .post-content h5 + ol, .post-content h5 + blockquote, .post-content h5 + h2, .post-content h5 + h3, .post-content h5 + h4, .post-content h5 + h5, .post-content h5 + h6 {
  margin-top: 0px;
  padding-top: 0px;
}
.post-content blockquote {
  padding: 0.5em 0.5em 0.5em 1em;
  margin: 1em 0;
  background-color: #f9f9f9;
  border-left: 4px solid #080;
  color: #555;
  font-size: 90%;
}
.post-content blockquote > ol, .post-content blockquote > ul, .post-content blockquote > dl {
  margin: 0;
  padding: 0;
}

/* 单行标题和日期列表 */
.post-list {
  color: inherit;
}
.post-list:where(ul, ol) {
  padding-left: 0;
  list-style-type: none;
  margin-top: 0;
  margin-bottom: 0;
}
.post-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.45em 2px;
  line-height: 1.7;
  border-bottom: 1px dashed lightgray;
}
.post-list li time {
  color: #666;
}
.post-list li time:last-child {
  margin-left: 0.5em;
}
.post-list li time:first-child {
  margin-right: 0.5em;
}
.post-list li a {
  color: inherit;
  text-decoration: none;
}
.post-list li a:hover, .post-list li a:active {
  color: #116AF7;
  text-decoration: underline solid transparent;
}
.post-list li:hover {
  background-color: #E9E9E9;
}

/** 文字不换行，结尾省略号 */
.nowrap {
  white-space: nowrap; /* 禁止文本换行 */
  overflow: hidden; /* 隐藏超出范围的内容 */
  text-overflow: ellipsis; /* 使用省略号 */
}

.tags {
  color: #666;
}
.tags a {
  display: inline-block;
  background-color: #E9E9E9;
  padding: 0.5em;
  margin: 0.1em auto;
  border-bottom: none;
  border-radius: 0.2em;
  color: initial;
}
.tags a::before {
  content: "#";
  font-size: 80%;
  font-style: italic;
  display: inline-block;
  margin-right: 0.3em;
}

/* 归档页面 */
#page-archives .year {
  justify-content: left;
}
#page-archives .month {
  padding-left: 0.5em;
  color: #444;
}
#page-archives .post-list {
  padding-left: 0.5em;
}
#page-archives .post-list li {
  justify-content: left;
}

/* archive.php 页面 */
#page-archive .archive-title {
  color: #666;
}

#page-post {
  /** 文章主页 */
  color: inherit;
}
#page-post .license {
  color: #666;
  line-height: 180%;
}
#page-post .post-near {
  /* 上一篇和下一篇 */
  list-style: none;
}
#page-post .post-near li {
  line-height: 2.2em;
}
#page-post .post-title { /* 文章标题h1 */
  margin: 1em 0;
}
#page-post .the-end { /* THE END 分割线 */
  font-size: 14px;
  color: #999;
  border: 0;
  border-top: 1px solid #ccc;
  padding: 0;
  margin: 0.5em auto;
}
#page-post .the-end .inner {
  margin: 0 auto;
  padding: 0 10px;
}
#page-post .line-wrap { /* 斜向条纹双色分割线 */
  border: none;
  height: 4px;
  background: repeating-linear-gradient(45deg, #ff9a9e, #ff9a9e 10px, #fad0c4 10px, #fad0c4 20px); /* 斜向条纹效果 */
}

@media screen and (max-width: 768px) { /* 手机上行显示 */
  .post-title {
    text-align: center;
  }
}
/* 作者头像 */
#about-author {
  background-image: url(https://www.xuechun.vip/usr/uploads/bg-author-light.jpg);
  background-repeat: no-repeat;
  background-size: 100% 120px;
  background-origin: border-box;
  background-position: top;
}
#about-author .picture {
  margin-top: 50px !important;
}
#about-author .picture > img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid #ddd;
  box-shadow: 0 0px 10px rgba(0, 0, 0, 0.6);
}
#about-author .author {
  text-align: center;
}
#about-author .author .name {
  font-weight: bold;
  margin: 0px;
}
#about-author .author .description {
  margin: 0;
  color: #666;
  font-style: normal;
  padding: 0;
}
#about-author hr {
  margin: 1em 0;
  border: 1px solid #E9E9E9;
  border-width: 1px 0 0 0;
}
#about-author .statistics { /*文章统计*/
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-around;
  align-items: flex-start;
  list-style: none;
  text-align: center;
  padding: 0;
  margin: 0;
}
#about-author .statistics li {
  list-style-type: none;
  color: #444;
}
#about-author .statistics li i {
  display: block;
  margin-top: 0.5em;
  font-size: 90%;
  font-style: normal;
  color: #666;
}

/*点赞和分享按钮组*/
.share-thumbs-up {
  text-align: center;
  padding-top: 1.5em;
  padding-bottom: 1.5em;
}
.share-thumbs-up .agree-btn {
  position: relative;
  margin-right: 2em;
}

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

.invisible {
  visibility: hidden;
}

/* 为外部链接添加图标指示 */
a[href^="http://"]:not([href*="xuechun.vip"]):after,
a[href^="https://"]:not([href*="xuechun.vip"]):after {
  content: "⤤";
  display: inline-block;
  color: #116AF7;
  font-weight: bold;
}