@media screen and (min-width: 981px) {
  ul.pages {
    text-align: center;
    margin-top: 20px;
    overflow: hidden;
    display: inline-block; }
    ul.pages li {
      float: left;
      padding: 10px 20px;
      border: 1px solid #ccc;
      margin-left: -1px; }
      ul.pages li a {
        cursor: pointer;
        text-decoration: none;
        display: block;
        color: #999;
        line-height: 22px;
        font-size: 14px; }
      ul.pages li.active a {
        color: #fff; }
      ul.pages li.page-active {
        border: 1px solid #24478d;
        background: #24478d;
        line-height: 22px;
        color: #fff; }
        ul.pages li.page-active a {
          color: #fff; }
      ul.pages li.page-previous {
        margin-left: 0; } }

@media screen and (max-width: 980px) {
  ul.pages {
    text-align: center;
    overflow: hidden;
    display: inline-block;
    width: 7.5rem;
    box-sizing: border-box;
    margin-bottom: 0.2rem; }
    ul.pages li {
      float: left;
      width: 3.37rem;
      height: 0.8rem;
      line-height: 0.8rem;
      background-color: #eee;
      margin-left: 0.25rem; }
      ul.pages li.page {
        display: none; }
      ul.pages li a {
        text-decoration: none;
        display: block;
        color: #999;
        font-size: .28rem; } }
