.sec {
  background: url("../images/votebg.jpg") repeat-y;
  background-size: cover;
}
.sec .container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding-top: 90px;
}
@media (max-width: 1440px) {
  .sec .container {
    padding: 90px 20px 100px;
  }
}
@media (max-width: 980px) {
  .sec .container {
    padding: 40px 20px 50px;
  }
}

.list_tab {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 80px;
}
@media (max-width: 980px) {
  .list_tab {
    gap: 20px 15px;
    margin-bottom: 35px;
    flex-wrap: wrap;
  }
}
.list_tab li {
  max-width: 185px;
  width: 100%;
}
@media (max-width: 980px) {
  .list_tab li {
    max-width: 100px;
  }
}
.list_tab li a {
  width: 100%;
  text-align: center;
  display: inline-block;
  border: 2px solid #2a5a1c;
  font-size: 24px;
  font-weight: 400;
  font-family: "Noto Sans TC", sans-serif;
  padding: 7px 10px;
  border-radius: 55px;
  transition: all 0.3s ease-in-out;
  background-color: #2a5a1c;
  color: #fff;
}
@media (max-width: 1440px) {
  .list_tab li a {
    font-size: 22px;
  }
}
.list_tab li a:hover, .list_tab li a.active {
  background-color: #fff;
  color: #2a5a1c;
}
@media (max-width: 980px) {
  .list_tab li a {
    font-size: 16px;
    padding: 6px 10px;
  }
}

.list_content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  justify-content: center;
  gap: 55px;
  margin-bottom: 125px;
}
@media (max-width: 1620px) {
  .list_content {
    gap: 40px;
  }
}
@media (max-width: 980px) {
  .list_content {
    gap: 20px 15px;
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 50px;
  }
}
.list_content li {
  background-color: white;
  box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.11);
}
.list_content li.is-hidden {
  display: none;
}
.list_content li {
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  align-items: center;
  width: 100%;
  height: 100%;
}
.list_content li figure {
  width: 100%;
  padding-bottom: 100%;
  background-size: cover;
  background-position: center;
  transition: all 0.3s ease-in-out;
}
.list_content li figure:has(~ .list_content_txt a:hover) {
  transform: scale(0.9);
}
.list_content li .list_content_txt {
  width: 100%;
  padding: 0 25px 25px;
}
@media (max-width: 980px) {
  .list_content li .list_content_txt {
    padding: 0 10px 10px;
  }
}
.list_content li .list_name {
  padding: 25px 10px;
  color: #14360a;
  font-size: 20px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}
@media (max-width: 980px) {
  .list_content li .list_name {
    font-size: 16px;
    padding: 15px 10px;
    -webkit-line-clamp: unset;
    overflow: visible;
  }
}
.list_content li a {
  background-color: #2a5a1c;
  color: #fff;
  display: block;
  text-align: center;
  font-size: 20px;
  padding: 5px 10px;
  position: relative;
}
@media (max-width: 980px) {
  .list_content li a {
    font-size: 16px;
  }
}
.list_content li a:after {
  content: "";
  position: absolute;
  width: 67px;
  height: 100%;
  background-image: url("../images/go_line.png");
  background-size: cover;
  background-repeat: no-repeat;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}
.list_content .vote_number {
  display: block;
  width: 100%;
  text-align: center;
  color: #14360a;
  padding: 3px 0;
  font-size: 20px;
  border-top: #8cab29 1px solid;
  border-bottom: #8cab29 1px solid;
  margin-bottom: 25px;
  position: relative;
}
@media (max-width: 980px) {
  .list_content .vote_number {
    font-size: 16px;
  }
}
.list_content .vote_number::before, .list_content .vote_number:after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
@media (max-width: 980px) {
  .list_content .vote_number::before, .list_content .vote_number:after {
    transform: translateY(-50%) scale(0.75);
  }
}
.list_content .vote_number:before {
  border-style: solid;
  border-width: 7.5px 0 7.5px 13.5px;
  border-color: transparent transparent transparent #8cab29;
  left: 7px;
}
.list_content .vote_number:after {
  border-style: solid;
  border-width: 7.5px 13.5px 7.5px 0;
  border-color: transparent #8cab29 transparent transparent;
  right: 7px;
}

.page_list {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-bottom: 50px;
  background-color: white;
  border-radius: 30px;
  width: -moz-fit-content;
  width: fit-content;
  margin: 0 auto;
  padding: 8px 10px;
  border: 1px solid #bca557;
}
@media (max-width: 980px) {
  .page_list {
    gap: 5px;
    margin-bottom: 30px;
  }
}
.page_list li a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  text-align: center;
  line-height: 45px;
  border-radius: 50%;
  color: #836e2a;
  font-size: 22px;
  transition: all 0.3s ease;
  position: relative;
}
@media (max-width: 980px) {
  .page_list li a {
    width: 30px;
    height: 30px;
    line-height: 30px;
    font-size: 16px;
  }
}
@media (max-width: 450px) {
  .page_list li a {
    width: 25px;
    height: 25px;
    line-height: 25px;
    font-size: 15px;
  }
}
.page_list li a:not(.num) {
  background-color: #bca557;
}
.page_list li a.num {
  margin: 0 11px;
}
@media (max-width: 980px) {
  .page_list li a.num {
    margin: unset;
  }
}
.page_list li a.num:hover, .page_list li a.num.active {
  background-color: #fff;
  border: #bca557 solid 1px;
}
.page_list li a.first:after, .page_list li a.last:after {
  content: "";
  position: absolute;
  width: 22px;
  height: 19px;
  background-image: url("../images/first_arr.png");
  background-size: contain;
  background-repeat: no-repeat;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
@media (max-width: 980px) {
  .page_list li a.first:after, .page_list li a.last:after {
    width: 16.5px;
    height: 14.25px;
  }
}
@media (max-width: 450px) {
  .page_list li a.first:after, .page_list li a.last:after {
    width: 13.2px;
    height: 11.4px;
  }
}
.page_list li a.prev:after, .page_list li a.next:after {
  content: "";
  position: absolute;
  width: 12px;
  height: 19px;
  background-image: url("../images/arr.png");
  background-size: contain;
  background-repeat: no-repeat;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
@media (max-width: 980px) {
  .page_list li a.prev:after, .page_list li a.next:after {
    width: 9px;
    height: 14.25px;
  }
}
@media (max-width: 450px) {
  .page_list li a.prev:after, .page_list li a.next:after {
    width: 7.2px;
    height: 11.4px;
  }
}
.page_list li a.last:after, .page_list li a.next:after {
  transform: translate(-50%, -50%) scaleX(-1);
  left: 54%;
}