@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
* {
  box-sizing: border-box;
}

body {
  background-color: #f4f1e9;
  background-image: url("/images/bg-pattern.png");
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "Microsoft YaHei", "SimSun", serif;
  color: #5c544b;
  line-height: 1.8;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

a {
  color: #e57373;
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: rgb(221.0120481928, 71.9879518072, 71.9879518072);
}

.site-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  animation: fadeIn 0.8s ease-out;
}

.site-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px dashed #e0ddd5;
}
.site-header .site-title a {
  font-family: '"Zhi Mang Xing"', cursive;
  font-size: 3rem;
  color: #2c4a6a;
  font-weight: normal;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
}
.site-header .site-description {
  font-size: 1rem;
  color: #a99a86;
  margin-top: 0.5rem;
}

.main-navigation {
  margin-top: 1.5rem;
}
.main-navigation .nav-link {
  font-family: "Noto Serif SC", "Source Han Serif SC", "Microsoft YaHei", serif;
  color: #5c544b;
  margin: 0 1rem;
  padding-bottom: 5px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
  display: inline-block;
}
.main-navigation .nav-link:hover {
  border-bottom-color: #e57373;
}

.site-footer {
  text-align: center;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 2px dashed #e0ddd5;
  font-size: 0.9rem;
  color: #a99a86;
}
.site-footer .social-links a {
  margin: 0 0.75rem;
}
.site-footer .copyright {
  margin-top: 1rem;
}

.post-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #e0ddd5;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeIn 0.8s ease-out forwards;
  opacity: 0;
}
.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}
.post-card .post-title a {
  color: #2c4a6a;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Microsoft YaHei", serif;
}
.post-card .post-meta {
  color: #a99a86;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.post-card .read-more {
  display: inline-block;
  margin-top: 1rem;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Microsoft YaHei", serif;
  font-size: 0.9rem;
  font-weight: bold;
}

.pagination {
  text-align: center;
  margin: 3rem 0 1rem;
}
.pagination .page-number,
.pagination .prev,
.pagination .next {
  font-family: "Noto Serif SC", "Source Han Serif SC", "Microsoft YaHei", serif;
  font-weight: bold;
  color: #a99a86;
  margin: 0.3rem 0.6rem;
  padding: 0.6em 1.2em;
  border-radius: 50px;
  background: transparent;
  border: 2px solid #e0ddd5;
  display: inline-block;
  transition: all 0.3s ease;
}
.pagination .page-number:hover,
.pagination .prev:hover,
.pagination .next:hover {
  background-color: rgb(235.5, 230.1818181818, 216);
  color: #5c544b;
  border-color: #a99a86;
  transform: translateY(-2px);
}
.pagination .current {
  background: #e57373;
  color: #fff;
  border-color: #e57373;
  box-shadow: 0 2px 8px rgba(229, 115, 115, 0.5);
  transform: translateY(-2px);
}
.pagination .current:hover {
  color: #fff;
  transform: translateY(-2px);
}
.pagination .space {
  color: #a99a86;
}

.post-full {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  padding: 2rem 2.5rem;
  animation: fadeIn 0.8s ease-out;
}
.post-full .post-full-header {
  text-align: center;
  margin-bottom: 2rem;
}
.post-full .post-full-title {
  font-family: "Noto Serif SC", "Source Han Serif SC", "Microsoft YaHei", serif;
  font-size: 2.2rem;
  color: #2c4a6a;
  margin: 0;
}
.post-full .post-full-meta {
  color: #a99a86;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}
.post-full .post-full-content h2,
.post-full .post-full-content h3,
.post-full .post-full-content h4 {
  font-family: "Noto Serif SC", "Source Han Serif SC", "Microsoft YaHei", serif;
  color: #2c4a6a;
}
.post-full .post-full-content blockquote {
  border-left: 4px solid #e57373;
  padding-left: 1rem;
  margin-left: 0;
  color: #a99a86;
  background-color: rgb(240.6, 236.6727272727, 226.2);
  border-radius: 0 8px 8px 0;
}
.post-full .post-full-content code {
  background: #f4f1e9;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.9em;
}
.post-full .post-full-content pre {
  background: #2d2d2d;
  color: #f4f4f4;
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
}
.post-full .post-tags {
  margin-top: 2rem;
  font-family: '"Zhi Mang Xing"', cursive;
  font-size: 1.2rem;
  color: #a99a86;
}
.post-full .post-tags a {
  color: #a99a86;
}
.post-full .post-tags a:hover {
  color: #e57373;
}

.page-container {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  padding: 2rem 2.5rem;
  animation: fadeIn 0.8s ease-out;
}
.page-container .page-title {
  text-align: center;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Microsoft YaHei", serif;
  color: #2c4a6a;
  font-size: 2.2rem;
  margin-bottom: 2.5rem;
}

.tag-cloud {
  text-align: center;
  line-height: 2.5;
}
.tag-cloud a {
  margin: 0 0.75rem;
  border-bottom: 1px dashed;
  transition: all 0.3s ease;
}
.tag-cloud a:hover {
  border-bottom-style: solid;
  color: #e57373;
}

.category-list {
  list-style-type: none;
  padding-left: 0;
}
.category-list .category-list-item {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  background: rgb(238.9, 234.5090909091, 222.8);
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  transition: transform 0.2s ease;
}
.category-list .category-list-item:hover {
  transform: translateX(5px);
}
.category-list .category-list-link {
  color: #5c544b;
}
.category-list .category-list-link:hover {
  color: #e57373;
}
.category-list .category-list-count {
  color: #a99a86;
  font-size: 0.9em;
  margin-left: 0.5rem;
}
.category-list .category-list-count::before {
  content: "(";
}
.category-list .category-list-count::after {
  content: ")";
}

.archive-page .archive-list .archive-list-item {
  position: relative;
  padding-bottom: 1rem;
  padding-left: 20px;
  border-left: 2px solid #e0ddd5;
}
.archive-page .archive-list .archive-list-item:last-child {
  border-left: 2px solid transparent;
}
.archive-page .archive-list .archive-list-link {
  display: block;
  color: #5c544b;
  font-size: 1.05rem;
  transition: color 0.2s ease;
}
.archive-page .archive-list .archive-list-link:hover {
  color: #e57373;
}
.archive-page .archive-list .archive-list-date {
  color: #a99a86;
  font-size: 0.9rem;
  margin-right: 1rem;
}
.archive-page .archive-list .archive-list-year {
  font-family: "Noto Serif SC", "Source Han Serif SC", "Microsoft YaHei", serif;
  color: #2c4a6a;
  font-size: 1.8rem;
  margin: 2rem 0 1.5rem;
  position: relative;
  left: -28px;
}
.archive-page .archive-list .archive-list-item::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 8px;
  width: 10px;
  height: 10px;
  background-color: #a99a86;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}
.archive-page .archive-list .archive-list-item:hover::before {
  background-color: #e57373;
}

@media (max-width: 768px) {
  .site-container {
    padding: 1.5rem 1rem;
  }
  .site-header .site-title a {
    font-size: 2.5rem;
  }
  .main-navigation .nav-link {
    margin: 0.5rem;
    display: block;
  }
  .post-card,
  .post-full,
  .page-container {
    padding: 1.5rem;
  }
  .post-full-title,
  .page-title {
    font-size: 1.8rem;
  }
  .archive-page .archive-list .archive-list-year {
    left: -20px;
    font-size: 1.6rem;
  }
}