/* 往期内容页 */
.archives-page.container {
  max-width: 1016px;
  margin: 0 auto;
  padding: 0 16px 80px;
  box-sizing: border-box;
}

.archives-page#archives {
  padding-top: 0;
  padding-bottom: 0;
}

.archives-page__header {
  text-align: center;
}

.archives-page#archives .archives-page__title,
.archives-page#archives #archives-title {
  margin: 68px 0 0;
  padding: 0;
  font-family: "PingFang SC", "Open Sans", sans-serif;
  font-size: 46px;
  font-weight: 400;
  line-height: 52px;
  color: #fff;
  text-align: center;
}

/* 标签云（覆盖主题 #archives #archives-tags 默认样式） */
#archives.archives-page .archives-page__tags,
#archives.archives-page #archives-tags {
  margin-top: 40px;
  float: none;
}

.archives-page__tags-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 16px;
}

.archives-page__tags-title {
  margin: 0;
  font-family: "PingFang SC", "Open Sans", sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 20px;
  color: #fff;
}

.archives-page__tags-more {
  font-family: "PingFang SC", "Open Sans", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 20px;
  color: #fff;
  text-decoration: none;
}

.archives-page__tags-more:hover,
.archives-page__tags-more:focus {
  color: #1eb697;
}

.archives-page__tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

#archives.archives-page #archives-tags a.archives-tag-item,
.archives-tag-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px ;
  border-radius: 999px !important; 
  font-family: "PingFang SC", "Open Sans", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  background-color: #403E3E !important;
  color: #fff !important;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  transition: color 0.2s, background-color 0.2s;
}

#archives.archives-page #archives-tags a.archives-tag-item:hover,
#archives.archives-page #archives-tags a.archives-tag-item:focus,
.archives-tag-item:hover,
.archives-tag-item:focus {
  color: #1eb697 !important;
  background: #3d3d3d !important;
}

/* 归档列表 */
.archives-page__content {
  margin-top: 40px;
}

#archives.archives-page #archives-content,
.archives-page #archives-content {
  padding-top: 0;
}

.archives-page .archive-title {
  margin-top: 0;
  text-align: left;
}

.archives-page#archives .archives h3,
body.theme-dark .archives-page#archives .archives h3,
body.theme-dark.dark-mode .archives-page#archives .archives h3 {
  margin: 0 0 40px;
  padding: 0;
  font-family: "PingFang SC", "Open Sans", sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 20px;
  color: #fff !important;
}

.archives-page#archives .brick {
  margin-bottom: 40px;
}

.archives-page#archives .brick:last-child {
  margin-bottom: 0;
}

.archives-page#archives .brick.is-page-hidden,
.archives-page#archives .archive-title.is-page-hidden {
  display: none !important;
}

.archives-page#archives .archives a,
body.theme-dark .archives-page#archives .archives a,
body.theme-dark.dark-mode .archives-page#archives .archives a {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 0;
  border-radius: 0;
  font-family: "PingFang SC", "Open Sans", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  color: #c5c5c5;
  text-decoration: none;
  background: transparent !important;
}

.archives-page .archives a:hover,
.archives-page .archives a:focus {
  color: #1eb697;
}

.archives-page#archives .brick .time,
body.theme-dark .archives-page#archives .brick .time,
body.theme-dark.dark-mode .archives-page#archives .brick .time {
  flex: 0 0 55px;
  padding: 0;
  color: #c5c5c5;
  font-size: 18px;
  line-height: 24px;
}

.archives-page__pagination.tags-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 60px;
  flex-wrap: wrap;
}

.archives-page__pagination .tags-pagination__center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex: 0 0 auto;
}

/* 移动端（设计稿 750px，CSS = 标注 ÷ 2） */
@media screen and (max-width: 767px) {
  .archives-page.container {
    max-width: none;
    padding: 0 15px 30px;
  }

  .archives-page#archives .archives-page__title,
  .archives-page#archives #archives-title {
    margin-top: 30px;
    font-size: 24px;
    line-height: 24px;
    letter-spacing: 0.925px;
  }

  #archives.archives-page .archives-page__tags,
  #archives.archives-page #archives-tags {
    margin-top: 20px;
  }

  .archives-page__tags-head {
    margin-bottom: 15px;
    padding:  0;
  }

  .archives-page__tags-title {
    font-size: 18px; 
    color: #fff;
  }

  .archives-page__tags-more {
    font-size: 14px;
    line-height: 24px;
    color: #fff;
  }

  .archives-page__tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 11px;
  }

  #archives.archives-page #archives-tags a.archives-tag-item,
  .archives-page__tags-grid .archives-tag-item {
    /* width: 100%; */
    min-height: 25px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #403E3E !important;
    font-size: 14px;
    line-height: 17px;
    letter-spacing: 0;
    color: #fff !important;
  }

  .archives-page__content {
    margin-top: 31px;
  }

  .archives-page#archives .archives h3,
  body.theme-dark .archives-page#archives .archives h3,
  body.theme-dark.dark-mode .archives-page#archives .archives h3 {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
    color: #fff !important;
  }

  .archives-page#archives .brick {
    margin-bottom: 15px;
  }

  .archives-page#archives .archives a,
  body.theme-dark .archives-page#archives .archives a,
  body.theme-dark.dark-mode .archives-page#archives .archives a {
    gap: 7px;
    font-size: 14px;
    line-height: 24px;
    color: #fff;
  }

  .archives-page#archives .brick .time,
  body.theme-dark .archives-page#archives .brick .time,
  body.theme-dark.dark-mode .archives-page#archives .brick .time {
    flex: 0 0 36px;
    font-size: 12px;
    line-height: 24px;
    color: #c5c5c5;
  }

  .archives-page__pagination.tags-pagination {
    margin-top: 30px;
    gap: 6px;
    justify-content: space-between;
  }

  .archives-page__pagination .tags-pagination__center {
    gap: 6px;
  }

  .archives-page__pagination .tags-pagination__btn,
  .archives-page__pagination .tags-pagination__info,
  .archives-page__pagination .tags-pagination__input {
    font-size: 13px;
    border-radius: 8px;
  }

  .archives-page__pagination .tags-pagination__btn {
    padding: 8px 10px;
  }

  .archives-page__pagination .tags-pagination__input {
    width: 40px;
    padding: 5px 4px;
  }
}
