@charset "utf-8";
/* CSS Document */

* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

html {
  width: 100%;
  height: 100%;
  font-family: Arial, Helvetica, "微軟正黑體", sans-serif;
  text-size-adjust: none;
  font-size: 15px;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

body {
  background: #FFEB8A !important;
}

/*置頂按鈕*/
.gotop {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 50px;
  height: 50px;
  background-color: #FFFFFF;
  padding: 15px 10px;
  opacity: 0;
  transition: all 0.4s ease-in-out 0s;
  z-index: 999;
  border-radius: 50%;
}

.gotop a {
  text-align: center;
  color: #262625;
  text-decoration: none;
}

.gotop:active {
  box-shadow: 1px 1px 3px 2px rgba(20%, 20%, 40%, 0.5) inset;
  transition: all 0s;
}

.wap {
  margin: 0;
  width: 100%;
  height: auto;
}

header {
  overflow: hidden;
}

header img {
  object-fit: cover;
  width: 100%;
}

.b {
  width: 100%;
  padding: 1% 0;
  text-align: center;
  background-color: #b27bb3;
  overflow: hidden;
}

.content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  text-align: center;
}

.content2 {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0;
  text-align: center;
}

.h1 {
  margin: 10px auto;
  padding: 1%;
  font-size: 3rem;
  font-weight: bold;
  line-height: 1;
  text-align: center;
  color: #0031FF;
}

/*圖片切換*/
.pic {
  width: 100%;
  margin: 0 auto;
  padding: 0;
  text-align: center;
}

.pic img {
  max-width: 1920px;
}

.pic-m {
  width: 0;
  height: 0;
  overflow: hidden;
}

main {
  padding: 0px calc((100% - 1200px) / 2) 80px;
}

main .head {
  position: relative;
  width: 100%;
}

main .head img {
  max-width: 100%;
}

main .head .firework {
  text-align: center;
}

main .head .firework img {
  animation: fireworkImg 1s linear;
  animation-fill-mode: both;
  animation-delay: 1s;
}

main .head .firework::after {
  content: "";
  display: block;
  width: 2px;
  background: #F8B62D;
  margin: 0 auto;
  animation: fireworkAf 0.8s linear;
  animation-fill-mode: both;
  height: 60px;
}

main .head .firework-1 {
  position: absolute;
  left: 10%;
  bottom: 30%;
}

main .head .firework-1 img {
  transform: scale(0);
  opacity: 1;
}

main .head .firework-1::after {
  clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
}

main .head .firework-2 {
  position: absolute;
  right: 10%;
  bottom: 50%;
}

main .head .firework-2 img {
  transform: scale(0);
  opacity: 1;
}

main .head .firework-2::after {
  clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
}

main .head .firework-3 {
  position: absolute;
  right: 50%;
  bottom: 10%;
}

main .head .firework-3 img {
  transform: scale(0);
  opacity: 1;
}

main .head .firework-3::after {
  clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
}

@keyframes fireworkImg {
  0% {
    transform: scale(0);
    opacity: 1;
  }

  90% {
    transform: scale(0.9);
    opacity: 1;
  }

  100% {
    transform: scale(1.1);
    opacity: 0;
  }
}

@keyframes fireworkAf {
  0% {
    clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
  }

  40% {
    clip-path: polygon(0% 40%, 100% 40%, 100% 90%, 0% 90%);
  }

  80% {
    clip-path: polygon(0% 20%, 100% 10%, 100% 20%, 0% 20%);
  }

  100% {
    clip-path: polygon(0% 0%, 100% 0%, 100% 0%, 0% 0%);
  }
}

main .mainTop {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: space-between;
  background: #ff4500;
}

main .mainTop::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  background: url(../images/corner.png) no-repeat;
  width: 132px;
  height: 130px;
  transform: rotateZ(180deg);
}

main .mainTop::after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  background: url(../images/corner.png) no-repeat;
  width: 132px;
  height: 130px;
  transform: rotateZ(270deg);
}

/* 考經輪播 */
.wrapper {
  padding: 0 20px;
}

.slideC .slick-slide {
  margin: 0 5px;
}

.slideC .slick-list {
  margin: 0 -5px;
}

.slideC img {
  width: 100%;
  height: auto;
  object-fit: cover;
}


/* 歷年狀元*/
main .bo01 {
  width: 1200px;
  margin: 20px auto 40px;
  padding: 5px;
  float: left;
  overflow: hidden;
}

main .bo01 ul {
  margin: 0;
  padding: 0;
  list-style: none;
  /* 移除 li 前面的點點或數字 */
}

main .bo02 {
  margin: 1%;
  width: 23%;
  /* 25% 減去 padding 的空間 */
  padding: 5px;
  /* 1% + 1% = 2% */
  float: left;
  /* 讓元素向左浮動 */
  background: #fff;
  text-align: center;
  box-sizing: border-box;
  /* 同樣建議使用 */
}

main .bo03 {
  width: 100%;
  margin: 0 auto;
  padding: 5px;
  background: #E60312;
  font-size: 2rem;
  color: #ffdb3b;
  font-weight: bold;
}

main .bo04 {
  width: 100%;
  margin: 0 auto;
  padding: 10px;
  background: #fff3e7;
  font-size: 1.2rem;
  color: #231815;
}

main .bo05 {
  font-size: 1.6em;
  font-weight: bold;
}

/* 榜單區 */
main .top01 {
  margin: 0px 0px 30px;
  text-align: center;
}

main .top01 img,
main .top02 img,
main .alllist img {
  max-width: 90%;
}

main .top01 h2 {
  font-size: 3.6em;
  color: #fff;
}

main .top01 h2 span {
  color: #ffda00;
  font-size: 1.2em;
}

main .top01>div,
main .top02>div {
  margin: 15px 0px 0px 0px;
  padding: 50px;
  border-radius: 20px;
  border: 5px solid #e0e0e0;
  background-color: #fff;
}

main .alllist>div {
  margin: 15px 0px 0px 0px;
  padding: 50px;
  border-radius: 20px;
  border: 5px solid #008cd6;
  background-color: #fff;
}

main .top01>div table {
  width: 100%;
  text-align: left;
}

main .top01>div table tr:nth-child(odd),
main .top02>div table tr:nth-child(odd) {
  background-color: #ffe9a9;
  /*background-image: linear-gradient(-20deg, #2b2548 0%, #69618e 50%, #2b2548 100%);*/
}

main .alllist>div table tr:nth-child(odd) {
  background-color: #bae3f9;
}

main .top01>div table tr:nth-child(even) td,
main .top02>div table tr:nth-child(even) td,
main .alllist>div table tr:nth-child(even) td {
  color: #231815;
}

main .top01>div table tr:nth-child(even) td:nth-child(2) {
  width: 22%;
  color: #dd2719;
}

main .top01>div table tr:nth-child(even) td:nth-child(3),
main .top02>div table tr:nth-child(even) td:nth-child(3),
main .alllist>div table tr:nth-child(even) td:nth-child(3) {
  width: 22%;
  color: #2132cc;
}

main .top01>div table td {
  font-size: 2.3em;
  line-height: 2;
  color: #231815;
  font-weight: 700;
}

main .top01>div table td:nth-child(1) {
  width: 50%;
  padding: 0px 0px 0px 10px;
}

main .top01>div table td:nth-child(2) {
  width: 28%;
  color: #dd2719;
}

main .top01>div table td:nth-child(3) {
  width: 18%;
  color: #2132cc;
  text-align: center;
}



main .top02 {
  margin: 60px 0;
  text-align: center;
}

/* main .top02 > div {
  margin: 15px 0px 0px 0px;
    padding: 50px;
    border-radius: 20px;
    border: 8px solid #8c1b1b;
    background-color: #bd2026;
} */
main .top02>div table {
  width: 100%;
  text-align: left;
}

main .top02>div table td {
  font-size: 2.3em;
  line-height: 2;
  color: #fff;
  font-weight: 700;
}

main .top02>div table td:nth-child(1) {
  width: 23%;
  padding: 0px 0px 0px 10px;
}

main .top02>div table td:nth-child(2) {
  width: 60%;
}

main .top02>div table td:nth-child(3) {
  width: 17%;
  color: #f5a61e;
}


main .alllist {
  margin: 60px 0 20px;
  text-align: center;
}

/* main .alllist > div {
  margin: 15px 0px 0px 0px;
  padding: 50px;
  border-radius: 12px;
  border-image: linear-gradient(to right, #FAB947 16%, #fbfbe8 30%, #ddb32e 60%, #f5e467 74%, #FAB947 89%) 5;
  mask: linear-gradient(black, black);
  border-width: 5px;
  border-style: solid;
  background-color: #fff;
} */
main .alllist>div table {
  width: 100%;
  text-align: left;
}

main .alllist>div table td {
  font-size: 2.3em;
  line-height: 2;
  color: #231815;
  font-weight: 700;
}

main .alllist>div table td:nth-child(1) {
  width: 18%;
  padding: 0px 0px 0px 10px;
}

main .alllist>div table td:nth-child(2) {
  width: 55%;
}

main .alllist>div table td:nth-child(3) {
  width: 22%;
  color: #26439a;
}




main .mainBottom {
  position: relative;
  width: 100%;
  height: 130px;
  display: flex;
  justify-content: space-between;
  background: #ff4500;
}

main .mainBottom::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  background: url(../images/corner.png) no-repeat;
  width: 132px;
  height: 130px;
  transform: rotateZ(90deg);
}

main .mainBottom::after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  background: url(../images/corner.png) no-repeat;
  width: 132px;
  height: 130px;
  transform: rotateZ(0deg);
}

.top {
  width: 100%;
  margin: 0 auto;
  text-align: center;
  max-width: 1200px;
}

.updata {
  text-align: center;
  font-size: 1.3rem;
  color: #0d0097;
}

/* 留單 */

.customer {
  text-align: center;
  width: 1200px;
  margin: 0 auto;
  padding: 20px;
  border-radius: 20px;
  background-color: #fff;
  border: 6px solid #dab57c;
}

footer {
  margin: 0;
  padding: 20px 5%;
  width: 100%;
  text-align: center;
  overflow: hidden;
}

footer ul {
  margin: 0;
  padding: 10px 5% 10px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

footer ul li {
  border-left: 1px solid #dab57c;
  line-height: 1.2;
  padding: 0 10px;
  margin-bottom: 5px;
}

footer ul li:first-child {
  border-left: 0px;
}

footer ul li a {
  text-decoration: none;
  color: #FFF;
  font-size: 1rem;
}

footer p {
  color: #FFF;
  line-height: 1.6;
}







/* ===== moblie ===== */
@media (max-width: 600px) {
  main {
    padding: 0px 3% 40px;
  }

  main .mainTop::before {
    width: 80px;
    height: 80px;
    background-size: cover;
  }

  main .mainTop::after {
    width: 80px;
    height: 80px;
    background-size: cover;
  }

  .h1 {
    margin: 5px auto;
    padding: 1%;
    font-size: 1.5rem;
  }

  /*圖片切換*/

  .content {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    text-align: center;
  }

  .content2 {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    text-align: center;
  }

  .pic {
    width: 0;
    height: 0;
    overflow: hidden;
  }

  .pic-m {
    overflow: visible;
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
  }


  /* 歷年狀元*/
  main .bo01 {
    width: 100%;
    margin: 5px auto 10px;
    padding: 5px;
    float: left;
    overflow: hidden;
  }

  main .bo01 ul {
    margin: 0;
    padding: 0;
    list-style: none;
    /* 移除 li 前面的點點或數字 */
  }

  main .bo02 {
    margin: 1%;
    width: 48%;
    /* 25% 減去 padding 的空間 */
    padding: 5px;
    /* 1% + 1% = 2% */
    float: left;
    /* 讓元素向左浮動 */
    box-sizing: border-box;
    /* 同樣建議使用 */
  }

  main .bo03 {
    width: 100%;
    height: 20%;
    padding: 5px;
    font-size: 1.3rem;

  }

  main .bo04 {
    height: 90px;
    width: 100%;
    padding: 10px;
    font-size: 1rem;
  }

  main .bo05 {
    font-size: 1.3em;
  }

  /* 榜單區 */
  main .top01 {
    margin: 0px 0px 5px;
  }

  main .top01 img,
  main .top02 img,
  main .alllist img {
    max-width: 100%;
  }


  main .top01>div,
  main .top02>div {
    padding: 10px 5px;
    border-radius: 8px;
    border: 4px solid #e0e0e0;
  }

  main .alllist>div {
    padding: 10px 5px;
    border-radius: 8px;
    border: 4px solid #008cd6;
  }

  main .top01>div table td,
  main .top02>div table td {
    font-size: 1.1em;
  }

  main .top02 {
    margin: 30px 0;
    text-align: center;
  }

  main .alllist {
    margin: 10px 0px 5px;
  }

  main .alllist>div table td {
    font-size: 1.1em;
  }

  .b img {
    max-width: 340px;
  }




  .updata {
    margin: 20px auto 50px;
    font-size: 1rem;
  }

  main .mainBottom {
    height: 80px;
  }

  main .mainBottom::before {
    width: 80px;
    height: 80px;
    background-size: cover;
  }

  main .mainBottom::after {
    width: 80px;
    height: 80px;
    background-size: cover;
  }

  /* 留單 */
  .customer {
    width: 95%;
    border: 1px solid #dab57c;
  }

  footer {
    margin: 0;
    padding: 10px 3%;
  }

  footer ul {
    padding: 10px 8%;
  }
}

.top img {
  width: 85%;
}