/* general */
:root {
  --bg-color: #fafafa;
  --code-bg-color: #f4f4f4;
  --text-color: #212121;
  --secondary-color: #808080;
  --tertiary-color: #b0b0b0;
  --link-color: #b5c8cf;
  --link-hover-color: #618794;
  --link-bg-color: #dae4e7;
  --selection-color: #dae4e7;
  --body-stack: "Lora", "Georgia", "Times New Roman", serif;
  --secondary-stack: "Lato", "Lucida Grande", "Lucida Sans Unicode",
    "Lucida Sans", "Verdana", sans-serif;
  --title-stack: "Playfair Display SC", "Georgia", serif;
}

html {
  height: 100%;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
  font-family: var(--body-stack);
  font-size: 16px;
  font-size: clamp(16px, 2.4vw, 21px);
  margin: auto;
  position: relative;
  width: 100%;
  user-select: none;
}

/* wrapper */
#wrapper {
  background: none;
  border: none;
  box-sizing: border-box;
  display: block;
  margin: 2rem auto auto auto;
  max-width: 100%;
  /* padding: 1em; */
  width: 50em;
}



/* wrapper */
#new-wrapper {
  background: none;
  border: none;
  box-sizing: border-box;
  display: block;
  margin: 2rem auto auto auto;
  max-width: 100%;
  /* padding: 1em; */
  width: 100%;
  display: flex;
  flex-direction: row;
}


#sider{
  height: 100vh;
  width: 40vw;
}


@media all and (max-width: 760px) {
  #wrapper {
    margin-top: 3rem;
  }
}
@media all and (max-width: 520px) {
  #wrapper {
    margin-top: 1rem;
  }
}

/* header */
#header {
  /* border-bottom: solid 1px var(--secondary-color); */
  line-height: 0.6em;
  padding: 0.25em 0;
}

#title {
  font-family: var(--title-stack);
  font-size: 2em;
  font-weight: 900;
  letter-spacing: 0.05em;
  margin: 1em 0;
  text-align: center;
}

#header nav {
  /* margin: 1.5em 0; */
  text-align: left;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: row-reverse;
  padding: 20px 0 100px;
}

.header-nav-links {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
}

.nav-link-first{
  font-size: 1.5em;
  min-width: 240px;
}

.nav-link,
.nav-spacer,
.article-more-link {
  font-size: .8em;
  width: 1rem;
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: 0.2em;
  font-family: var(--secondary-stack);
  color: var(--secondary-color);
}

.nav-spacer {
  margin: 0 0.5em;
}

@media (max-width: 760px) {
  #header {
    line-height: normal;
  }

  #header nav {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
  }

  .header-nav-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 0.5rem 1rem;
  }

  #header .nav-link,
  #header .nav-link-first {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    width: auto;
    letter-spacing: 0.05em;
  }

  #header .nav-spacer {
    display: none;
  }
}

/* posts */
.article {
  border-bottom: solid 1px var(--secondary-color);
  margin: 2em 0;
  padding-bottom: 1em;
}

.article-header {
  margin-bottom: 1.75em;
  text-align: center;
}

.article-title {
  font-family: var(--title-stack);
  font-size: 1.25em;
  font-weight: normal;
  letter-spacing: 0.05em;
  margin-bottom: 0.25em;
}

.article-entry {
  line-height: 1.5;
  margin-bottom: 1em;
  overflow: visible;
  font-size: .8em;
}


@media (max-width: 760px) {
  .article-entry p,code,figure{
    font-size: 1em;
  }
}

.article-category {
  line-height: 1.5;
  text-align: right;
}

.article-meta,
.archive-article-date,
.article-nav,
.page-nav,
.article-footer,
.archive-article-word-count {
  color: var(--secondary-color);
  font-family: var(--secondary-stack);
  font-size: 0.8em;
  height: auto;
  line-height: inherit;
  margin: 0;
  padding: 0;
}

@media all and (max-width: 760px) {
  .article-meta,
  .archive-article-date,
  .article-nav,
  .page-nav,
  .article-footer,
  .archive-article-word-count {
    font-size: 1em;
  }
}

/* archive */
.archives-wrap {
  margin: 0.25rem 0;
  position: relative;
  top: 0.5rem;
}

@media all and (max-width: 620px) {
  .archives-wrap {
    margin-left: 1rem;
  }
}

.month {
  color: var(--text-color);
  cursor: pointer;
  font-family: var(--secondary-stack);
}

.hidden,
.hidden-input {
  display: none;
  margin-bottom: 1em;
}

.hidden-input ~ .month::before {
  content: "+ ";
  position: absolute;
  left: -1em;
}

.hidden-input:checked ~ .month::before {
  content: "– ";
}

.hidden-input:checked ~ .hidden {
  display: block;
}

.archive-article {
  margin: 0.25em 0;
  position: relative;
}

.archive-article-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.archive-article-date {
  /* position: absolute;
  right: calc(100% - 6em); */
  /* width: 12rem; */
  font-size: 0.8rem;
  margin-left: 1rem;
  /* margin-right: 1rem; */
  width: 100%;
}

.archive-article-title {
  font: inherit;
  letter-spacing: 0;
  margin: 0;
  position: relative;
  text-align: left;
  text-decoration: none;
  font-size: 1.2rem;
  text-transform: none;
  /* font-family: var(--title-stack); */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-left: 1rem;
  width: 100%;
}

.article-nav {
  display: flex;
  margin: 2em 0;
}

#article-nav-older,
#article-nav-newer {
  flex-basis: 50%;
}

#article-nav-newer {
  order: 1;
  text-align: right;
}

/* pagination */
.page-nav {
  text-align: right;
}

.page-number,
.space,
.extend {
  font-size: 1.3em;
  margin: 0 0.4em;
}

.current {
  color: var(--text-color);
}

/* typography */
a {
  color: inherit;
  text-decoration: none;
}

p,
ul,
ol,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 1rem 0;
}

ul{
  list-style-type: square;
  padding-left: 2em;
}


ul  ul {
  list-style-type: circle;
  padding-left: 1em;
}

ol{
  list-style-type: decimal;
  padding-left: 2em;
}


ol  ol {
  list-style-type: lower-alpha;
  padding-left: 1em;
}


h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: normal;
  letter-spacing: 0.1em;
  /* text-align: center; */
  text-decoration: none;
}

h1,
h2 {
  font-size: 2em;
  letter-spacing: 0;
  margin-top: 2rem;
}

h2 {
  font-size: 1.5em;
}

h3,
h4,
h5,
h6 {
  font-size: 1em;
  font-weight: bold;
  margin-top: 1.5rem;
  text-transform: uppercase;
}

h4,
h5,
h6 {
  font-size: 0.9em;
  margin-top: 1rem;
}

blockquote {
  display: block;
  margin: 0 0 1em;
  padding-left: 0.75rem;
  /* border-left: 1px solid var(--tertiary-color); */
}



.article .article-entry blockquote footer,
.caption {
  color: var(--secondary-color);
  display: block;
  text-align: center;
}

.article .article-entry blockquote footer cite:before {
  content: " — ";
}

.pullquote {
  border: 0;
  color: var(--secondary-color);
  font-size: 1.2em;
  font-family: var(--secondary-stack);
  margin: 0;
  width: 40%;
}

.pullquote p {
  margin: 0;
}

.pullquote.left {
  float: left;
  padding: 1em 1em 1em 0;
  text-align: left;
}

.pullquote.right {
  float: right;
  padding: 0 1em 1em 1em;
  text-align: right;
}

.caption {
  color: #aeb4b9;
  display: block;
  font-size: 0.8em;
  text-align: center;
}

.katex {
  font-size: 1.1em;
}

.article-entry a {
  -webkit-transition-duration: 0.3s;
  -webkit-transition-property: border-bottom;
  border-bottom: 3px solid var(--link-color);
  transition-duration: 0.3s;
  transition-property: border-bottom;
}

.article-entry a:hover {
  -webkit-transition-duration: 0.3s;
  -webkit-transition-property: border-bottom;
  border-bottom: 3px solid var(--link-hover-color);
  transition-duration: 0.3s;
  transition-property: border-bottom;
}

#title a,
.article-title a,
a.nav-link,
.archive-article-title a,
.article-nav a,
a.page-number,
a.extend,
.month,
.article-footer a,
.article-category a,
.article-tag a,
.article-more-link a {
  -webkit-transition-duration: 0.3s;
  -webkit-transition-property: background;
  transition-duration: 0.3s;
  transition-property: background;
}

#title a:hover,
.article-title a:hover,
a.nav-link:hover,
.archive-article-title a:hover,
.article-nav a:hover,
a.page-number:hover,
a.extend:hover,
.month:hover,
.article-footer a:hover,
.article-category a:hover,
.article-tag a:hover,
.article-more-link a:hover {
  -webkit-transition-duration: 0.3s;
  -webkit-transition-property: background;
  /* background: var(--link-bg-color) !important; */
  border-bottom: 1px so var(--link-hover-color);
  transition-duration: 0.3s;
  transition-property: background;
}

.article-category,
.article-tag {
  color: var(--secondary-color);
  font-family: var(--secondary-stack);
  margin-top: 2em;
  font-size: 0.8em;
}

.article-more-link {
  font-size: 0.9em;
  letter-spacing: 0.1em;
  margin-bottom: 1.1em;
  text-align: center;
  text-transform: uppercase;
}

/* miscellaneous */
img {
  box-sizing: border-box;
  display: block;
  /* margin: 0 auto; */
  max-width: 100%;
}

a img {
  -webkit-transition-duration: 0.3s;
  -webkit-transition-property: border;
  border: 3px solid var(--bg-color);
  transition-duration: 0.3s;
  transition-property: border;
}

a img:hover {
  -webkit-transition-duration: 0.3s;
  -webkit-transition-property: border;
  border: 3px solid var(--secondary-color);
  transition-duration: 0.3s;
  transition-property: border;
}

.article-gallery img,
table {
  margin: 1em auto;
  border: 1px solid var(--tertiary-color);
  /* border-bottom: 1px solid var(--tertiary-color); */
  border-collapse: collapse;
  min-width: 25em;
  text-align: left;
  width: 100%;
}

td,
th {
  border: 1px solid var(--tertiary-color);
  padding: 0.25em;
  margin: 0.25em;
}

.video-container {
  position: relative;
  padding-top: 56.25%;
  margin-bottom: 1em;
  height: 0;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin-top: 0;
}

::selection {
  background-color: var(--selection-color);
}

#settings-container {
  /* background: var(--tertiary-color); */
  bottom: 0;
  position: fixed;
  right: 0;
}

#sans-font,
#dark-mode {
  cursor: pointer;
  float: right;
  padding: 0.5em;
}

.article-nav-title {
  /* font-size: 0.8em; */
  color: var(--text-color);
  font-family: var(--body-stack);
  overflow: hidden; /*超过部分不显示*/
  　text-overflow: ellipsis; /*超过部分用点点表示*/
  　white-space: nowrap; /*不换行*/
}

.article-category-link {
  color: var(--text-color);
  font-family: var(--body-stack);
}
.article-tag-link {
  color: var(--text-color);
  font-family: var(--body-stack);
}

blockquote {
  position: relative;
  padding: 1.5em 1.5em 1.5em 2em;
  box-sizing: border-box;
  font-style: italic;
  /* background: var(--bg-color); */
  color: var(--secondary-color);
  /* border-left: 4px solid;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.14); */
}


blockquote:before {
  display: inline-block;
  color: var(--text-color);
  content: "\201C";
  font-size: 3rem;
  position:absolute;
  left:-10px;
  top: 50px;
  line-height: 0.1em;
  font-family: FontAwesome;
}

/* blockquote:after {
  display: inline-block;
  color: var(--text-color);
  content: "\201D";
  font-size: 3rem;
  position:absolute;
  right:30px;
  bottom: 0em;
  line-height: 0.1em;
  font-family: FontAwesome;
} */


blockquote p {
  padding: 0;
  margin: 7px 0;
  line-height: 1.7;
}

blockquote cite {
  display: block;
  text-align: right;
  color: #888888;
  font-size: 0.9em;
}

.mermaid {
  text-align: center;
  background-color: transparent;
}

#toc {
  float: right;
  font-size: 0.8em;
  color: color-link;
  margin: 5px;
  position: fixed;
  right: 10px;
  max-width: 20rem;
  z-index: 999;
  top: 30%;
}
#toc .toc {
  list-style: none;
  padding: 10px;
}
#toc .toc-item,
#toc .toc-link {
  list-style: none;
}
#toc ol {
  margin: 0;
}

@media screen and (max-width: 768px) {
  #toc {
    display: none;
  }
}

/*诗*/
.poem-wrap {
  position: relative;
  width: 730px;
  max-width: 80%;
  /* border: 1px solid var(--text-color); */
  border-top: none;
  text-align: left;
  margin:auto;
}

.poem-wrap h1 {
  position: relative;
  margin-top: -20px;
  display: inline-block;
  letter-spacing: 4px;
  color: var(--text-color);
  font-family: var(--title-stack);
  font-size: 1.5em;
  font-weight: 900;
  /* letter-spacing: 0.05em; */
  text-align: right;
}

.poem-wrap p {
  margin: auto;
  line-height: 30px;
  color: var(--text-color);
  font-family: var(--title-stack);
}

.poem-wrap p#poem {
  font-size: 15px;
}

.poem-wrap p#info {
  font-size: 13px;
}

.poem-border {
  position: absolute;
  height: 1px;
  width: 27%;
  /* background-color: var(--text-color); */
}

.poem-right {
  right: 0;
}

.poem-left {
  left: 0;
}

@media (max-width: 760px) {
  .poem-wrap {
    width: 100%;
    max-width: 100%;
    margin: 0;
    text-align: center;
    box-sizing: border-box;
  }

  .poem-wrap p#poem {
    font-size: 20px;
  }

  .poem-wrap p#info {
    font-size: 14px;
  }

  .poem-border {
    width: 18%;
  }
}

.list-group{
}

.list-group h3 {
  color: var(--text-color);
}
.list-group h3:not(:first-child) {
  /* margin-top: 2rem; */
}
.list-group .list-group-item {
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
  border: none;
  margin-left: 10px;
  align-items: center;
  margin: 0.25em 0;
}
.list-group .list-group-item a {
  color: var(--text-color);
}
.list-group .list-group-item a:hover {
  color: var(--link-hover-color);
}
.list-group .list-group-item .post-date {
  float: right;
  color: var(--text-color);
}

.list-group .category-group-item{
  display: flex;
  justify-content: space-between;
  border: none;
  margin-left: 10px;
  align-items: center;
  margin: 0.25em 0;
}


.list-group .category-group-item .category{
  margin-left: 1rem;
}





.tags-wrapper {
  display: flex;
  flex-direction: column;
}
.tags-wrapper .tagcloud {
  display: flex;
  flex-wrap: wrap;
  border-radius: 100%;
  shape-outside:circle();
}


.tagcloud{

  margin: 30px 30px 30px 30px;
}

.tags-wrapper a {
  padding: 10px;
}

.tags-wrapper a:hover {
  background-color: var(--link-hover-color);
  color: #fff !important;
  border-radius: 10px;
  -webkit-box-shadow: 10px 10px 99px 6px var(--link-hover-color);
  -moz-box-shadow: 10px 10px 99px 6px var(--link-hover-color);
  box-shadow: 10px 10px 99px 6px var(--link-hover-color);
  transition: background-color 0.3s ease;
}


.tag-hover {
  background-color: var(--link-hover-color);
  color: #fff !important;
  border-radius: 5px;
  -webkit-box-shadow: 10px 10px 99px 6px var(--link-hover-color);
  -moz-box-shadow: 10px 10px 99px 6px var(--link-hover-color);
  box-shadow: 10px 10px 99px 6px var(--link-hover-color);
  transition: background-color 0.3s ease;
}

.deg_90 {
  transform: rotate(90deg);
}

@keyframes shutters {
  0% {
    clip-path: polygon(0% 0%, 20% 0%, 20% 100%, 20% 100%, 20% 0%, 40% 0%, 40% 100%, 40% 100%, 40% 0%, 60% 0%, 60% 100%, 60% 100%, 60% 0%, 80% 0%, 80% 100%, 80% 100%, 80% 0%, 100% 0%, 100% 100%, 0% 100%);
  }
  100% {
    clip-path: polygon(20% 0%, 20% 0%, 20% 100%, 40% 100%, 40% 0%, 40% 0%, 40% 100%, 60% 100%, 60% 0%, 60% 0%, 60% 100%, 80% 100%, 80% 0%, 80% 0%, 80% 100%, 100% 100%, 100% 0%, 100% 0%, 100% 100%, 20% 100%);
  }
}



.image-wrapper {
  margin: 0 auto;
}



.archive-body{
  /* padding-left: 2em; */

}

.bg-img{
  position: fixed;
  right: 0;
  bottom: 0;
  width: 150px;
}




#content{
  padding: 10px;
}

#content .post{
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 1em;
  font-family: var(--body-stack);
}


#content .post .post-date{
  margin-right: 1.5em;
  color: var(--secondary-color);
}


#content .post .post-title{
  margin-right: 1.5rem;
  color: var(--secondary-color);
  overflow:hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  width: 30rem;
}

#content .post .post-word{
  color: var(--secondary-color);
  font-size: 1rem;
}



.post-count{
  position: fixed;
  bottom: 10px;
  right: 10px;
}

@media screen and (max-width: 768px) {

.post-count{
  bottom: 10px;
}
}


.article-entry .tips {
  padding-left: 10px;
  background-color: rgba(52,152,219,.6);
  border-left: 4px solid rgb(52,152,219);
  color: var(--text-color);
}
.article-entry .success {
  padding-left: 10px;
  background-color: rgba(46,204,113,.6);
  border-left: 4px solid rgb(46,204,113);
  color: var(--text-color);
}
.article-entry .warning {
  padding-left: 10px;
  background-color: rgba(241,196,15,.6);
  border-left: 4px solid rgb(241,196,15);
  color: var(--text-color);
}
.article-entry .danger {
  padding-left: 10px;
  background-color: rgba(231,76,60,.6);
  border-left: 4px solid rgb(231,76,60);
  color: var(--text-color);
}

.article-entry details{
  background-color: var(--code-bg-color);
}



input[type="checkbox" i]{
  margin-left: 1em;
}


.article-entry details{
  padding: .5em 1em;
}

/*

@media screen and (min-width: 1024px) {
  .archive-body{
    padding-left: 1em;
    border-left: 1px solid var(--text-color);
  }

  .archive-body h3{
    position: relative;
  }

  .archive-body h3:before{
    content: ' ';
    width: 15px;
    height: 15px;
    background-color:  var(--text-color);
    border-radius: 50%;
    position: absolute;
    left: -1.45em;
    top: .3em
  }


  .archive-body article:before{
    content: ' ';
    width: 10px;
    height: 10px;
    background-color: var(--text-color);
    border-radius: 50%;
    position: absolute;
    left: -1.3em;
    top: .8em
  }

}
 */
