/*------------------------------------------------------------------ 
  頁碼 CSS
-------------------------------------------------------------------*/
nav[role="navigation"] {
  text-align: center;
}
.cd-pagination {
  width: 100%;
  text-align: center;
  margin: 0 0 3% 0;
}
.cd-pagination li {
  /* hide numbers on small devices */
  display: none;
  margin: 0 0.2em;
}
.cd-pagination li a {
  color: #000;
  text-decoration: none;
}
.cd-pagination li.button {
  /* make sure prev next buttons are visible */
  display: inline-block;
}
.cd-pagination a,
.cd-pagination span {
  display: inline-block;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  /* use padding and font-size to change buttons size */
  padding: 0.1em 0.5em;
  font-size: 1.1rem;
}
.cd-pagination a {
  border: 1px solid #e6e6e6;
  border-radius: 0.25em;
}
.no-touch .cd-pagination a:hover {
  background-color: #f2f2f2;
}
.cd-pagination a:active {
  /* click effect */
  -webkit-transform: scale(0.9);
  -moz-transform: scale(0.9);
  -ms-transform: scale(0.9);
  -o-transform: scale(0.9);
  transform: scale(0.9);
}
.cd-pagination a.disabled {
  /* button disabled */
  color: rgba(46, 64, 87, 0.4);
  pointer-events: none;
}
.cd-pagination a.disabled::before,
.cd-pagination a.disabled::after {
  opacity: 0.4;
}
.cd-pagination .button:first-of-type a::before {
  content: "\00ab  ";
}
.cd-pagination .button:last-of-type a::after {
  content: " \00bb";
}
.cd-pagination .current {
  /* selected number */
  background-color: #a8a8a8;
  border-color: #a8a8a8;
  color: #ffffff;
  pointer-events: none;
}
@media only screen and (min-width: 768px) {
  .cd-pagination li {
    display: inline-block;
  }
}

/*------------------------------------------------------------------ 
  Back to Top CSS
-------------------------------------------------------------------*/
#backtotop {
  z-index: 999;
  display: inline-block;
  position: fixed;
  visibility: hidden;
  bottom: 80px;
  right: 20px;
  width: 36px;
  height: 36px;
  line-height: 36px;
  font-size: 16px;
  text-align: center;
  opacity: 0.2;
}
#backtotop i {
  display: block;
  width: 100%;
  height: 100%;
  line-height: inherit;
}
#backtotop.visible {
  visibility: visible;
  opacity: 0.5;
}
#backtotop:hover {
  opacity: 1;
}
#backtotop {
  color: #ffffff;
  background-color: #c5c3c3;
}
