.pages a {
  color: #666;
  font-size: 12px;
  -webkit-transition: all 0.3s;
  -o-transition: all 0.3s;
  -moz-transition: all 0.3s;
  transition: all 0.3s;
}
.pages {
  /*height:28px;*/
  font-size: 0px;
  padding: 30px 0 20px;
  text-align: center;
}
.pages a:hover,
.pages a.page-num-current {
  color: #fff;
  border-color: #2f63a4;
  background: #2f63a4;
}
.pages a,
.pages label {
  padding: 5px 12px;
  color: #666;
  background: #f4f4f4;
  display: inline-block;
  min-width: 6px;
  line-height: 20px;
  text-align: center;
  margin-right: 8px;
  border: 1px solid #ccc;
}
.pages a.absolutepage {
  font-weight: bold;
  color: #fff;
  background: #2f63a4;
  border-color: #2f63a4;
}
.pages .topage {
  border: 1px solid #ccc;
  border-radius: 1px;
  min-width: 6px;
  height: 28px;
  line-height: 26px;
  margin-left: 5px;
}
.pages span {
  margin-right: 8px;
  color: #666;
}

@media screen and (max-width: 480px) {
  .pages a,
  .pages label{
    padding: 5px 8px;
    margin-right: 5px;
  }
}