:root {
  --main: #ff7828;
  --C1: #007b37;
  --C2: #5286d6;
  --C3: #ffb400;
  --black: #3a3a3a;
  scroll-padding-top: 3rem;
  scroll-behavior: smooth;
}

body {
  font-size: 18px;
  font-weight: 400;
  line-height: 30px;
  color: var(--black);
  background-color: #f7f7f7;
  font-family: 'Roboto', 'Noto Sans TC', Arial, '微軟正黑體', '新細明體', Helvetica, sans-serif;
}

section {
  position: relative;
  padding: 3rem 1rem;
  z-index: 1;
}

p {
  font-size: 21px;
  line-height: 1.8;
}

a:hover {
  color: var(--main);
  text-decoration: none;
}

.top-title {
  padding: 1rem 0;
  color: var(--main);
  text-align: center;
  margin-bottom: 20px;
}

@media (max-width:576px) {
  .top-title {
    font-size: 2rem;
  }
}

.title {
  position: relative;
  text-align: center;
  margin: 2rem -0.2rem 2rem 0;
  letter-spacing: 0.2rem;
}

.m-btn {
  position: relative;
  display: block;
  margin: 1rem auto;
  padding: 1em;
  width: 280px;
  font-size: 25px;
  text-align: center;
  background-color: var(--main);
  background: linear-gradient(119deg, var(--C3) 50%, var(--main) 50.1%);
  background-size: 300%;
  color: var(--black);
  border: 2px solid var(--black);
  font-weight: bold;
  border-radius: 50px;
  letter-spacing: 0.1rem;
  transition: all .25s ease-in-out;
}

.m-btn:hover {
  color: #fff;
  background-position: 100%;
}

.m-btn:active {
  transform: scale(0.95);
}

.side-btn {
  position: fixed;
  right: 1rem;
  bottom: 5rem;
  display: block;
  -webkit-writing-mode: vertical-lr;
  writing-mode: vertical-lr;
  background: linear-gradient(119deg, #fff 50%, var(--C2) 50.1%);
  background-size: 300%;
  border: 2px solid var(--black);
  color: var(--black);
  font-size: 20px;
  font-weight: 400;
  padding: 20px 15px;
  border-radius: 50px;
  transition: all 0.2s;
  z-index: 99;
  animation: heartbeat 1.5s ease-in-out infinite both;
}

@keyframes heartbeat {
  from {
    transform: scale(1);
    transform-origin: center center;
    animation-timing-function: ease-out;
  }

  10% {
    transform: scale(0.91);
    animation-timing-function: ease-in;
  }

  17% {
    transform: scale(0.98);
    animation-timing-function: ease-out;
  }

  33% {
    transform: scale(0.87);
    animation-timing-function: ease-in;
  }

  45% {
    transform: scale(1);
    animation-timing-function: ease-out;
  }
}



.side-btn:hover {
  color: #fff;
  background-position: 100%;
}

.side-btn:active {
  transform: scale(0.95);
}

/* =======================================
 # 裝飾
========================================= */
.deco {
  position: relative;
}

.deco::before {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 10px;
  content: '';
  background-image: -webkit-repeating-linear-gradient(135deg, #000, #000 1px, transparent 2px, transparent 5px);
  background-image: repeating-linear-gradient(-45deg, #000, #000 1px, transparent 2px, transparent 5px);
  background-size: 7px 7px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.white-box {
  background-color: #fff;
  box-shadow: 0 2px 8px #adadad;
  padding: 1rem;
  border-radius: 20px 20px 0 0;
  position: relative;
}

/* =======================================
  # sec-foreword
========================================= */


.foreword {
  font-size: 20px;
  line-height: 1.6;
  margin: 1.5rem 0;
}

/* =======================================
  # sec-ex
========================================= */
.sec-ex {
  text-align: center;
  padding-top: 0;
}

.sec-ex .ex-box {
  padding: 2rem;
  color: #fff;
}

.sec-ex p {
  margin-bottom: 0;
}

.ex-box .radius {
  border-radius: 10px 10px 0 0;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ex-box-1 {
  padding: 1rem;
  background-color: var(--C1);
}

.ex-box-2 {
  padding: 1rem;
  background-color: var(--C3);
  color: var(--black);
}

.ex-box-3 {
  padding: 1rem;
  background-color: var(--C2);
}

.ex-box-4 {
  padding: 1rem;
  background-color: var(--black);
}

/* =======================================
  # sec-color
========================================= */

.sec-color {
  border-radius: 30px 30px 0 0;
  background-color: var(--black);
  color: #fff;
}

.sec-color .box {
  background-color: var(--main);
  padding: 20px;
  border-radius: 10px 10px 0 0;
  text-align: center;
  margin-bottom: 20px;
}

.sec-color .box:hover h4 {
  transform: scale(1.02);
}

.sec-color .box h3 {
  color: #fff;
  margin-bottom: 15px;
}

.sec-color .box p {
  text-align: left;
}

.sec-color .box h4 {
  color: #303333;
  background-color: #efefef;
  border-radius: 50px;
  padding: 10px 0;
}

.sec-color .white-box {
  color: var(--black);
  box-shadow: 0 2px 8px #141414;
}

.theme-tag {
  list-style: none;
  padding: 0;
  line-height: 1.9;
  text-align: center;
  margin-bottom: 4rem;
}

@media (max-width:768px) {
  .theme-tag {
    text-align: left;
  }
}

.theme-tag li {
  background-color: #fff;
  display: inline-block;
  font-size: 19px;
  font-weight: 500;
  color: var(--C2);
  border: 2px solid var(--black);
border-radius: 10px;
  padding: 0 1rem;
  margin: 10px 5px;
}

.theme-tag li:before {
  content: '#';
  padding-right: 5px;
}

.theme-tag .high {
  color: #fff;
  background-color: var(--main);
}

.theme-tag span {
  display: inline-block;
  font-size: 16px;
  background-color: var(--C2);
  padding: 0 .6rem;
border-radius: 10px;
  color: #fff;
}

.tag-color li {
  background-color: var(--C3);
  color: var(--black);
  border: none;
}

.tag-color span {
  background-color: #fff;
  color: var(--black);
}

.ad-bg {
  border-radius: 10px 10px 0 0;
  margin: 0 1rem 20px;
  padding: 2.5rem 2.5rem 1rem;
  min-height: 300px;
}
@media (max-width:992px) {
  .ad-bg {
    min-height: 0;
  }
}
@media (max-width:768px) {
  .ad-bg {
    margin: 0 0 20px;
  }
}

.ad-1 {
  background-color: var(--C1);
}

.ad-2 {
  background-color: var(--C2);
}

.ad-3 {
  background-color: #a470e6;
}

.ad-bg p {
  border-bottom: 1px dashed #fff;
  padding-bottom: 1rem;
}

.ad-bg p:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ad-bg span::before {
  content: '|';
  padding: 0 1rem;
}

/* =======================================
  # sec-date
========================================= */
.sec-date {
  border-radius: 0 0 30px 30px;
  background-color: var(--C3);
}

.sec-date .date-box {
  text-align: center;
}

.sec-date .date-box p {
  margin-bottom: 0;
}

.sec-date i {
  margin: 2rem 0;
  font-size: 25px;
}

@media (max-width:992px) {
  .sec-date i {
    transform: rotate(90deg);
    font-size: 30px;
  }
}

.sec-date a {
  border-radius: 50px;
  color: #fff;
  padding: .3rem 1rem;
  background-color: var(--black);
  background: linear-gradient(119deg, var(--black) 50%, var(--main) 50.1%);
  background-size: 300%;
  transition: all .25s ease-in-out;
}

.sec-date a:hover {
  background-position: 100%;
  color: #fff;
}

/* =======================================
  # sec-date
========================================= */
.sec-info {
  line-height: 2;
}

.info-txt {
  list-style-type: none;
  padding: 0;
}

.info-txt span {
  font-size: 22px;
  font-weight: 600;
  color: var(--main);
}

.rule-stitle {
  color: #a470e6;
  padding-bottom: 1rem;
  font-size: 24px;
  margin-bottom: 0;
}

.rule-stitle.deco::before {
  background-image: -webkit-repeating-linear-gradient(135deg, #a470e6, #a470e6 1px, transparent 2px, transparent 5px);
  background-image: repeating-linear-gradient(-45deg, #a470e6, #a470e6 1px, transparent 2px, transparent 5px);
}

.rule-box {
  color: var(--black);
  background-color: #fff;
  padding: 1rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.mail-card {
  display: inline-block;
  margin: 0 auto;
  color: #303333;
  background-color: #dfdfdf;
  border-radius: 10px 10px 0 0;
  padding: 6px 10px;
  margin-top: 10px;
}

/* =======================================
  # sec-ag
========================================= */
.sec-ag {
  padding-top: 0;
}

.year-group {
  text-align: center;
  margin: 2rem 0 3rem;
  font-size: 20px;
  font-weight: 500;
}

.year-group a {
  display: inline-block;
  color: #fff;
  padding: 10px 20px;
  border-radius: 50px;
  margin: 15px 10px;
  transition: all 0.3s;
}

.year-group a:hover,
.year-group a:focus {
  opacity: 0.7;
}

.year-1 {
  background-color: var(--C1);
}

.year-2 {
  background-color: var(--C2);
}

.year-3 {
  background-color: var(--C3);
  color: var(--black) !important;
}

.year-4 {
  background-color: var(--main);
}

/* =======================================
  # sec-join
========================================= */
.sec-join {
  color: #fff;
  border-radius: 9999px 9999px 0 0;
  background-color: var(--main);
}

.sec-join .title {
  padding-bottom: 20px;
}

.sec-join .title span {
  display: block;
  font-weight: bolder;
  font-size: 33px;
  color: #fff566;
  line-height: 2;
}

.sec-join .title.deco::before {
  background-image: -webkit-repeating-linear-gradient(135deg, #f7f7f7, #f7f7f7 1px, transparent 2px, transparent 5px);
  background-image: repeating-linear-gradient(-45deg, #f7f7f7, #f7f7f7 1px, transparent 2px, transparent 5px);
}

@media (max-width:768px) {
  .title h2 {
    font-size: 25px;
  }

  .title span {
    font-size: 27px !important;
  }
}
.sec-join .s-title strong{
  font-size: 30px;
}
.sec-join .j-box {
  position: relative;
  display: block;
  margin: 1rem;
  padding: 1rem;
  background-color: var(--black);
  border-radius: 20px;
}

.j-box p {
  font-size: 18px;
  margin-top: .5rem;
  margin-bottom: 0;
}

.j-box p strong {
  font-size: 36px;
}

.sec-join .invite {
  margin: 3rem 0;
  font-size: 30px;
}


/* =======================================
  # footer
========================================= */
.footer {
  position: relative;
  margin: 0;
  padding: 20px 20px;
  width: 100%;
  padding-bottom: 2%;
  background-color: var(--main);
  overflow: hidden;
  width: 100%;
}

.footer * {
  color: #fff;
}

.footer a:hover {
  color: #fff566;
}

.footer ul {
  list-style-type: square;
}

.footer-year {
  margin-bottom: 30px;
}

.footer-bottom {
  font-size: 16px;
  letter-spacing: 2px;
  padding-top: 15px;
  border-top: 1px solid #fd9b53;
}

@media (max-width:768px) {
  .footer {
    padding-bottom: 10rem;
  }

}

#topBtn {
  display: none;
  /* Hidden by default */
  position: fixed;
  /* Fixed/sticky position */
  bottom: 20px;
  /* Place the button at the bottom of the page */
  right: 1.3rem;
  /* Place the button 30px from the right */
  z-index: 99;
  /* Make sure it does not overlap */
  border: 2px solid var(--black);
  /* Remove borders */
  outline: none;
  /* Remove outline */
  background-color: #fff;
  color: var(--black);
  cursor: pointer;
  /* Add a mouse pointer on hover */
  padding: 11px 13px;
  border-radius: 50%;
  font-size: 27px;
  transition: 0.2s;
}

#topBtn:hover {
  opacity: 0.8;
  background-color: #f3f3f3;
}

@media (max-width:768px) {
  #topBtn{
    bottom: 7rem;
  }
}