.em09 {
  font-size: 1em
}

.pay-box .but-download {
  padding: 10px 10px 5px 10px;
  min-width: 33.33%
}

.posts-item .item-tags a {
  font-size: 14px;
  padding: 5px 8px;
  margin-right: 5px
}

.cat {
  margin: 0;
  width: 100%;
  max-width: 100%;
}

/*分类侧栏目录*/
.page-template-newposts .content-wrap {
  float: none !important;
}

.page-template-newposts .d-flex {
  display: flex !important;
  justify-content: center;
}

.page-template-newposts .sidebar {
  width: calc(311px + 15px);
}

.page-template-newposts.site-layout-3 .content-layout {
  order: 2;
  margin-left: unset !important;
}

.page-template-newposts.site-layout-3 .sidebar {
  margin-left: 0 !important;
  float: none;
}

.page-template-newposts .but-average button {
  white-space: nowrap;
}

.page-template-newposts .col-lg-3 {
  width: 30%;
}

/*不同分辨率文章卡片列表的显示个数*/
@media (max-width:2800px) {
  body.search .posts-item.card {
    width: calc(32.6% - 10px);
    margin: 5px;
  }

  body:not(.search) .posts-item.card {
    width: calc(24.6% - 10px);
    margin: 5px;
  }
}

@media (max-width:2200px) {
  body.search .posts-item.card {
    width: calc(32.6% - 10px);
    margin: 5px
  }

  body:not(.search) .posts-item.card {
    width: calc(32.6% - 10px);
    margin: 5px
  }
}

@media (max-width:1600px) {
  body.search .posts-item.card {
    width: calc(49% - 10px);
    margin: 5px
  }

  body:not(.search) .posts-item.card {
    width: calc(49% - 10px);
    margin: 5px
  }
}

@media (max-width:996px) {
  body.search .posts-item.card {
    width: calc(100% - 10px);
    margin: 5px
  }

  body:not(.search) .posts-item.card {
    width: calc(100% - 10px);
    margin: 5px
  }
}

/*前台文章发布页年款的样式*/
.year-select {
  align-items: center;
  margin-top: 5px;
  margin-bottom: 5px;
  /* 添加下边距，与下面的元素保持距离 */
  background-color: rgba(0, 0, 0, .05);
  /* 设置背景颜色为浅灰色 */
  border-radius: 4px;
  /* 设置圆角的大小 */
  padding: 6px;
}

.year-select-box {
  border-top: 5px;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.year-select-p {
  margin-left: 10px;
  margin-top: 10px;
}

.year-select-p .form-control {
  padding: 6px;
}

.year-select-s {
  width: 70px;
  height: 30px;
}

.year-select-text {
  color: #999;
  margin-top: 8px;
}

.focus-color {
  margin-left: 15px;
}

.newpost-difference {
  background-color: rgba(0, 0, 0, .05);
  /* 设置背景色为灰色 */
  border-radius: 5px;
  /* 添加圆角，半径为5px */
  padding-top: 5px;
  padding-bottom: 5px;
  margin-top: 8px;
  margin-bottom: 8px;
}

.newpost-difference input[type="text"] {
  border: 1px solid #e5e5e5;
  /* 设置边框为1像素实线，颜色为灰色 */
  background-color: #fff;
  /* 输入框背景 */
  width: 45%;
}

.newpost-difference p {
  display: flex;
  justify-content: space-between;
  margin: 10px;
}

.avatar,
.fit-cover,
.radius-cover {
  height: auto;
}

.hp_cat .one.down>a+ul {
  padding-left: 1.5em;
}

.newpost-difference input:nth-of-type(1) {
  width: 20% !important;
}

.newpost-difference input:nth-of-type(2) {
  border-radius: 4px;
}

/* 年份选择框样式 */
.year-select-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  text-wrap: auto;
}

.year-select-p {
  margin: 0;
  font-weight: 500;
  color: #333;
  white-space: nowrap;
}

.year-select-s {
  padding: 2px 5px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
  font-size: 14px;
  color: #333;
  min-width: 70px;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.year-select-s:hover {
  border-color: #007cba;
}

.year-select-s:focus {
  outline: none;
  border-color: #007cba;
  box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

@media (max-width: 768px) {
  .page-template-newposts .newposts-wrap {
    width: 100%;
    overflow: hidden;
    flex-wrap: wrap
  }

  .page-template-newposts .content-layout {
    width:100%;
  }

  .year-select-box {
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
  }

  .year-select-s {
    width: 100%;
    max-width: 150px;
  }
}

@media (max-width: 425px) {
  body .sidebar.show-sidebar {
    padding: 0;
  }
}

@media (max-width: 320px) {
  .year-select-box {
    gap: 3px;
  }
}

/* 只读输入框样式 */
input[readonly] {
  background-color: #f5f5f5 !important;
  color: #666 !important;
  cursor: not-allowed !important;
  border-color: #ddd !important;
}

input[readonly]:focus {
  box-shadow: none !important;
  border-color: #ddd !important;
}