/* ====================================
   Nayo — Typecho Port
   Original: hexo-theme-nayo by Lemonreds
   ==================================== */

/* Iconfont */
@font-face {
  font-family: iconfont;
  src: url(fonts/iconfont.80.eot);
  src: url(fonts/iconfont.80.eot?#iefix) format("embedded-opentype"),
       url(fonts/iconfont.b8.ttf) format("truetype"),
       url(fonts/iconfont.12.svg#iconfont) format("svg");
}
.iconfont { font-family: iconfont !important; font-size: 16px; font-style: normal; }
.icon-home:before { content: "\e7a5"; }
.icon-archives:before { content: "\eb4d"; }
.icon-about:before { content: "\e610"; }
.icon-tags:before { content: "\e64d"; }
.icon-category:before { content: "\ee77"; }
.icon-backtotop:before { content: "\e697"; }
.icon-search:before { content: "\e60f"; }
.icon-words:before { content: "\e696"; }
.icon-nofound:before { content: "\e67a"; }
.icon-Github:before { content: "\e667"; }
.icon-Weibo:before { content: "\e74c"; }
.icon-menu:before { content: "\e6ab"; }
.icon-cancel:before { content: "\e7a3"; }
.icon-right:before { content: "\e65f"; }
.icon-left:before { content: "\e660"; }

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  color: #555;
  overflow-x: hidden;
  background: #fff;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
ul, ol { list-style: none; }

/* Selection */
::-moz-selection { background: #ebebeb; }
::selection { background: #ebebeb; }

/* ====================================
   Header — 融合 bai + nayo
   ==================================== */
.header-wrapper {
  width: 100%;
  padding: 30px 0 0;
  border-bottom: 1px solid #f5f5f5;
  background: #fff;
}
.header-wrapper .inner {
  width: 980px;
  margin: 0 auto;
  text-align: center;
}
.header-wrapper .site-title a {
  display: inline-block;
  color: #333;
  font-size: 2.4em;
  font-weight: 300;
  letter-spacing: 4px;
  font-family: "Droid Serif", Georgia, "PingFang SC", "Microsoft YaHei", serif;
  transition: color .2s;
}
.header-wrapper .site-title a:hover { color: #e26d6d; }
.header-wrapper .site-desc {
  margin: 6px 0 0;
  color: #999;
  font-style: italic;
  font-size: .95em;
  letter-spacing: 1px;
}
.header-wrapper .header-nav {
  margin: 20px 0 0;
  padding: 0;
  text-align: center;
}
.header-wrapper .header-nav a {
  display: inline-block;
  margin: 0 4px;
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 50%;
  color: #888;
  font-size: 1.2rem;
  transition: all .25s;
}
.header-wrapper .header-nav a:hover,
.header-wrapper .header-nav .current {
  background: rgba(226,109,109,0.08);
  color: #e26d6d;
}
.header-wrapper .header-nav a .iconfont {
  font-size: 1.25rem;
}

/* ====================================
   Container
   ==================================== */
.container {
  width: 980px;
  min-height: 60vh;
  margin: 2.5rem auto;
  color: #555;
  overflow: hidden;
}
.container-inner { width: 100%; }



/* ====================================
   Article List
   ==================================== */
.article {
  margin-bottom: 48px;
  padding: 1.5rem;
  border-bottom: 1px solid #f5f5f5;
}
.article .article-header .title {
  display: block;
  font-size: 23px;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 1rem;
  color: #333;
  transition: color .2s;
}
.article .article-header .title:hover { color: #e26d6d; }
.article .article-header .meta {
  display: flex; gap: 12px;
  margin: 10px 0 0;
  font-size: .85rem;
  color: #666;
}
.article .article-excerpt { margin: 2rem 0 1.5rem; }
.article .article-categories,
.article .article-tags {
  display: inline-block;
  margin-right: 8px;
}
.article .article-categories .link,
.article .article-tags .link {
  color: #e26d6d;
  font-size: .85rem;
  margin-right: 6px;
  text-decoration: underline;
  transition: color .2s;
}
.article .article-categories .link:hover,
.article .article-tags .link:hover { color: #555; }
.article .article-categories .iconfont,
.article .article-tags .iconfont { color: #000; }

/* ====================================
   Post (Single)
   ==================================== */
.post .header {
  padding-bottom: 12px;
  border-bottom: 1px solid #f5f5f5;
}
.post .header .title {
  margin: 10px 0;
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1.4;
  color: #333;
}
.post .header .info { margin-top: 10px; }
.post .header .info span,
.post .header .info time {
  color: #666;
  margin-right: 12px;
  font-size: .9rem;
}
.post .post-content { margin: 2.5rem 0; }
.post .bottom .other {
  display: flex;
  padding: 2rem 0;
  border-top: 1px solid #f5f5f5;
  border-bottom: 1px solid #f5f5f5;
}
.post .bottom .other .meta .tag-link {
  color: #e26d6d;
  font-size: .95rem;
  margin-right: 4px;
  text-decoration: underline;
  transition: color .2s;
}
.post .bottom .other .meta .tag-link:hover { color: #555; }

/* ====================================
   Typography (Content)
   ==================================== */
.typo {
  font-size: 15px;
  line-height: 2;
  color: #0d0d0d;
}
.typo h1, .typo h2, .typo h3, .typo h4, .typo h5, .typo h6 {
  margin: 2rem 0 1.8rem;
  font-weight: 500;
  color: #101010;
}
.typo h1 { font-size: 36px; }
.typo h2 { font-size: 32px; }
.typo h3 { font-size: 26px; }
.typo h4 { font-size: 19px; }
.typo h5, .typo h6 { font-size: 16px; }
.typo p { line-height: 30px; margin-bottom: 14px; color: #232323; }
.typo a { color: #e26d6d; text-decoration: underline; transition: color .2s; }
.typo a:hover { color: #555; }
.typo img { box-sizing: border-box; margin: 1rem 0; border: 1px solid #eee; border-radius: 4px; padding: 4px; }
.typo blockquote {
  padding: 0 12px;
  margin: 2rem 0;
  letter-spacing: .4px;
}
.typo blockquote p {
  margin: 0;
  padding-left: 10px;
  border-left: 3px solid #eee;
}
.typo ul, .typo ol { margin: 12px 0; padding-left: 22px; }
.typo ul li { list-style: none; position: relative; margin: 4px 0; padding-left: 8px; }
.typo ul li:before {
  position: absolute; content: "•"; top: 0; left: -16px;
  font-size: 17px; color: #333;
}
.typo ol li { list-style: decimal; margin: 4px 0; padding-left: 8px; }
.typo table { margin: 16px 0; width: 100%; border-collapse: collapse; }
.typo table th, .typo table td {
  border: 1px solid #f1f1f1;
  padding: .4rem 1rem;
}
.typo table th { font-weight: 500; background: #fafafa; }
.typo table tr:nth-child(2n) { background: #fafafa; }
.typo hr {
  margin: 2em auto;
  width: 100px;
  border: none;
  border-top: 1px solid rgba(102,130,153,.1);
}
.typo code {
  padding: 4px 6px;
  font-family: Consolas, monospace;
  font-size: 13.5px;
  background: #fcfcfc;
  border-radius: 2px;
  color: #262626;
}
.typo pre {
  overflow: auto;
  margin: 20px 0;
  padding: 10px;
  font-size: 13.5px;
  color: #262626;
  background: #fcfcfc;
  line-height: 1.75;
  border-radius: 4px;
}
.typo pre code { padding: 0; background: none; }

/* ====================================
   Comments
   ==================================== */
#comments { margin-top: 2rem; }
#comments h3 { font-size: 1rem; color: #555; margin-bottom: 1rem; }
.comment-list { list-style: none; }
.comment-list li {
  padding: 14px;
  margin-top: 10px;
  border: 1px solid #f5f5f5;
  border-radius: 4px;
}
.comment-author .avatar {
  float: left;
  margin-right: 10px;
  border-radius: 50%;
}
.comment-author cite { font-weight: bold; font-style: normal; }
.comment-meta { color: #999; font-size: .85rem; }
.comment-content { margin-top: 8px; }
.respond { margin-top: 20px; }
.respond input, .respond textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #f1f1f1;
  border-radius: 4px;
  font-size: .9rem;
  outline: none;
}
.respond input:focus, .respond textarea:focus { border-color: #e26d6d; }
.respond button {
  padding: 8px 20px;
  background: #fff;
  border: 1px solid #f1f1f1;
  border-radius: 4px;
  cursor: pointer;
  color: #555;
  transition: all .2s;
}
.respond button:hover { border-color: #e26d6d; color: #e26d6d; }

/* ====================================
   Archive
   ==================================== */
.archive { text-align: center; }
.archive .page-name { margin-bottom: 2rem; }
.archive .page-name .name { font-size: 1rem; }
.archive .archive-post { margin-top: 1rem; }
.archive .archive-item {
  display: flex;
  align-items: center;
  padding: 1.3rem 0;
  border-bottom: 1px solid #f5f5f5;
}
.archive .archive-item .time {
  width: 30%;
  font-size: .85rem;
  color: rgba(0,0,0,.65);
  text-align: center;
}
.archive .archive-item .title {
  width: 70%;
  font-size: 1rem;
  text-align: left;
  color: #555;
  transition: color .2s;
}
.archive .archive-item .title:hover { color: #e26d6d; }

/* ====================================
   Paginator
   ==================================== */
.page-navigator {
  margin: 4rem 0;
  text-align: center;
  font-size: .825rem;
}
.page-navigator li {
  display: inline-block;
  margin: 0 3px;
}
.page-navigator a {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid #f5f5f5;
  border-radius: 4px;
  color: #727272;
  transition: all .2s;
}
.page-navigator a:hover { color: #e26d6d; border-color: #e26d6d; }
.page-navigator .current a {
  color: #e26d6d;
  border-color: #e26d6d;
}

/* ====================================
   Footer
   ==================================== */
.footer {
  padding: 3em 0;
  text-align: center;
  color: #999;
  font-size: .85em;
  line-height: 1.8;
}
.footer a { color: #e26d6d; transition: color .2s; }
.footer a:hover { color: #555; }

/* ====================================
   To Top
   ==================================== */
#toTop {
  position: fixed;
  bottom: 10%;
  right: 2%;
  font-size: 2.5rem;
  cursor: pointer;
  color: #555;
  opacity: 0;
  transition: opacity .3s, color .2s;
  z-index: 101;
}
#toTop:hover { color: #e26d6d; }

/* ====================================
   Animations
   ==================================== */
@keyframes slideDownMin {
  0% { transform: translateY(-10px); opacity: .1; }
  100% { transform: translateY(0); opacity: 1; }
}
.slideDownMin { animation: slideDownMin .5s ease-in-out forwards; }

/* ====================================
   Responsive
   ==================================== */
@media screen and (max-width: 768px) {
  .container { width: 100%; margin: 1rem 0; padding: 0 16px; }
  .header-wrapper .inner { width: 100%; }
  .header-wrapper .site-title a { font-size: 1.7em; }
  .header-wrapper .header-nav a { width: 36px; height: 36px; line-height: 36px; font-size: 1rem; }
  .article { padding: 1rem 0; }
  .article .article-header .title { font-size: 18px; }
  .post .header .title { font-size: 1.2rem; }
  .typo { font-size: 14px; }
  .typo h1 { font-size: 24px; }
  .typo h2 { font-size: 20px; }
  .typo h3 { font-size: 18px; }
  .archive .archive-item .time { font-size: .75rem; padding-left: 4px; }
  .archive .archive-item .title { font-size: .85rem; }
}
