.news-page-wrapper {
  font-size: 14px;
}

.news-wrapper .cat-btn {
  background-color: #999;
  padding: 8px 16px;
  color: #fff;
  width: 120px;
  position: sticky;
  margin-top: 30px;
  top: 115px;
  z-index: 1;
}

.cat-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 9999;
  height: 100vh;
  display: flex;
  transform: translateX(100%);
  transition: all 0.3s linear;
}

.cat-drawer .cat-drawer-header {
  height: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #0d47a1;
  color: #fff;
  font-size: 14px;
  padding: 0 15px;
  font-weight: bold;
}

.cat-drawer .cat-drawer-content {
  width: 90vw;
  height: 100%;
  background-color: #fff;
}

.cat-drawer .cat-drawer-body {
  height: calc(100% - 40px);
  overflow: auto;
}

.cat-drawer .cat-drawer-mask {
  width: 10vw;
  flex-shrink: 0;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: all 0.1s linear;
}

.cat-drawer.active {
  opacity: 1;
  transform: translateX(0);
}

.cat-drawer.active .cat-drawer-mask {
  opacity: 1;
  transition: all 1s linear;
}

.cat-drawer-content .cat-list .cat-item {
  padding: 15px;
  font-size: 14px;
}

.cat-drawer-content .cat-list .cat-item.active {
  color: #0d47a1;
}

.new-card-list {
  display: grid;
  padding: 8px;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.new-card-list .new-card {
  color: #999;
  line-height: 1.2;
  border: 1px solid #eee;
}

.new-card .text {
  position: relative;
  padding: 20px 10px 10px 10px;
}

.new-card .title {
  font-size: 12px;
  color: #666;
  margin-bottom: 12px;
}

.new-card .sub-title {
  font-size: 12px;
  margin-bottom: 8px;
  line-height: 1.4;
}

.new-card .date {
  text-align: right;
  font-size: 12px;
}

.new-card .text .avatar {
  position: absolute;
  right: 8px;
  top: 0;
  transform: translateY(-65%);
  width: 38px;
  height: 38px;
  border-radius: 5px;
  background-color: #fff;
}

.pc-cat-box {
  display: none;
  margin-top: 10px;
  border: 1px solid #eee;
  text-align: center;
  flex-shrink: 0;
  max-width: 200px;
}

.pagination-wrapper {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

@media(min-width: 768px) {
  .new-card-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .new-card .title {
    font-size: 14px;
  }

  .new-card .text .avatar {
    width: 45px;
    height: 45px;
  }

}

@media (min-width: 1024px) {
  .news-wrapper {
    display: flex;
  }

  .new-card-list {
    flex-grow: 1;
    min-height: 570px;
  }

  .cat-btn {
    display: none;
  }

  .pc-cat-box {
    display: block;
  }

  .pc-cat-box .header {
    background-color: #0d47a1;
    color: #fff;
    padding: 8px 15px;
  }

  .pc-cat-box .cat-item {
    padding: 12px 16px;
  }

  .pc-cat-box .cat-item.active {
    color: #0d47a1;
    font-weight: bold;
  }
}