@media print{
@page{
  size: A4;
  size: landscape;
  margin: 0.5cm;
}
* {
  -webkit-print-color-adjust: exact !important;
  print-color-adjust:exact !important;
  color-adjust: exact;
}
  element
  { display: none; }
  element
  { page-break-inside: avoid; }
}
:root{
  --fs-s: 18px;
  --fs-m: 24px;
  --fs-lg: 28px;
  --fs-xl: 32px;
  --fw-s: 400;
  --fw-m: 600;
  --fw-lg: 800;
  --ts-all: all 0.3s ease;
  --border-radius: 5px;
  --primary-color: #90cbfc;
  --text-color: #333;
  --Neutral-color: #f4f4f4;
  --btn-shadow: 0px 5px 20px rgb(51, 51, 51, .2);
  --btn-hover: 0px 10px 20px rgba(51, 51, 51, 0.3);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
svg,image{ width:100% }
img,[src*="youtube"]{ max-width: 100%; }

body {
  font-family: "Microsoft JhengHei", sans-serif;
  background-color: #fffef7;
  color: #333;
  line-height: 1.6;
  letter-spacing: 2px;
}
img{
  vertical-align: middle;
}
.card{
  background-color: transparent;
  border: none;
}
ul li{
  font-size: var(--fs-s);
}
button{
  font-size: var(--fs-s);
}
/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: #fff;
  border-bottom: 1px solid #ddd;
  position: fixed;
  width: 100%;
  height: 80px;
  z-index: 99;
  margin-top: -80px
}
.header .logo{
  width: min(100%, 500px);
}
.header .logo a{
  display: inline-block;
  max-height: 500px;
}
.header .logo img{
  height: 100%;
}
main{
  margin-top: 80px;      
}
/* 漢堡選單按鈕 */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
}


.menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* 導覽列 */
.nav {
  display: flex;
}

.nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #333;
  font-size: var(--fs-s);
}

.nav a:hover {
  color: #4caf50;
}
/* Footer */
.footer {
  text-align: center;
  padding: 15px;
  margin-top: 30px;
}
@media (max-width: 600px) {  
  .footer {
    font-size: var(--fs-s);
    padding: 10px;
  }
}
/* 手機版樣式 */
@media (max-width: 930px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 80px;
    left: 0;
    background: #f6f6f7;
    width: 100%;
    height: 100vh;
    align-items: center;
    z-index: 1;
    opacity: 0; 
    transition: var(--ts-all);
  }

  .nav a {
    display: inline-block;
    width: 100%;
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
    text-align: center;
    margin: 0;
    transition: var(--ts-all);
  }
  .nav a:hover{
    background-color: #ddd;
    color: #333;
  }

  .nav.active {
    display: flex;
    opacity: 1;
    }
  }
  h2{
  text-align: center;
  z-index: 1;
  margin: 0;
  color: var(--Neutral-color)
  }
  h3{
    font-size: var(--fs-m);
    font-weight: 700;
  }
  /* Banner */
  .banner {
    width: 100%;
  }

  /* Intro */
  .intro {
    width: 100%;
    padding: 20px;
    position: relative;
  }
  .intro p{
    font-size: var(--fs-s);
  }
  .intro .card{
    height: 328px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    margin: 0 auto;
    text-align: center;
    border-radius: var(--border-radius);
    background-image: url('../images/announce.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center top;
    overflow-x: hidden;

  }
  .intro .card-text{
    height: 185px;
  }
  .intro .text{
    max-width: 500px;
    margin: 20px auto 0;
  }
  .btn-primary {
    display: inline-block;
    width: 100%;
    min-width: 240px;
    padding: 12px 0;
    border-radius: 50px;
    border: none;
    color: var(--text-color);
    box-shadow: var(--btn-shadow);
    background-color: #ffffff;
  }
  .btn-primary:hover{
    transform: translateY(-5px);
    transition: var(--ts-all);
    box-shadow: var(--btn-hover);
  }
  .scroll-top{
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    border: none;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
    opacity: 0;
    transform: translateY(100px);
    transition: var(--ts-all);
  }
  .scroll-top .bi-arrow-up-short{
    color: var(--Neutral-color);
    font-size: var(--fs-lg);
  }
  .show-scroll-top{
    opacity: 1;
    transform: translateY(0);
  }
  /* Quick Links */
  .quick-links {
    padding: 30px 20px;
    position: relative;
    display: flex;
    justify-content: center;
    gap: 24px;
  }

  .quick-links .card {
    text-align: center;
    border-radius: 8px;
    position: relative;
    height: 350px;
  }
  
  .quick-links .card img{
    max-width: 365px;
    height: 264px;
    cursor: pointer;
  }
  .quick-links .card .btn{
    position: absolute;
    width: 100%;
    bottom: 105px;
    left: 0;  
  }
  /* Section */
  .wrapper {
    max-width: 1280px;
    margin: 40px auto;
  }
  .wrapper p{
    font-size: var(--fs-s);
  }
  .wrapper .title{
    position: relative;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .wrapper .title:before{
    content: "";
    width: 100%;
    height: 263px;
    position: absolute;
    background-image: url('../images/title-decoration.png');
    background-repeat: no-repeat;
    background-size: auto;
    background-position: center;
  }
  .container {
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
  }
  .method .container{
    background-image: url('../images/bg-2.png');        
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom;
  }
  .method .text{
    display: flex;
    align-items: flex-start;
  }
  .method .info{
    width: 100%;
  }
  .method .text img{
    width: 60px;
  }
  .container .text h3{
    text-align: start;
    color:#333;
    margin: 16px 0;
  }
  .container .text a{
    color: #0695D3;
    font-weight: var(--fw-s);
    text-decoration: none;
  }
  .container .text a:hover{
    color: #065c81
  }
  .text-sec{
    scroll-margin-top: 80px;
  }
  .text-sec p{
    color: #333;
  }
  .text-sec p span{
    color: #ff9800
  }
  /* Steps */
  .steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: space-around;
    margin: 20px 0;
  }
  .text-sec{
    margin-top: 20px;
  }
  .text-sec h3{
    color: var(--primary-color);
    font-size: var(--fs-xl);
  }
  .text-sec p{
    margin: 0;
  }
  .text-sec .step {
    flex: 1;
    margin: 10px;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: var(--ts-all);
  }
  .collection .step p,
  .collection-sec .step p,
  .collection-thi .step p
  {
    display: none;
  }
  .text-sec .step:hover{
    background: #145c52;
    color: #eee;
  }
  /* collection */
  .collection{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 0 20px;
  }
  .process, .process-sec{
    display: flex;
    justify-content: space-around;
    width: 100%;
    height: 43px;
    background-image: url('../images/bg-3.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    margin: 12px 0;
  }
  .process-sec{
    width: 80%;
    background-size: contain;
  }
  .process p, .process-sec p{
    margin: 0;
    line-height: 2.5;
    color: var(--Neutral-color)
  }
  .collection .step img,
  .collection-sec .step img,
  .collection-thi .step img
  {
    border-radius: var(--border-radius);
  }
  .collection .step p,
  .collection-sec .step p,
  .collection-thi .step p{
    text-align: center;
    margin-bottom: 12px;
  }
  .collection p span,
  .collection-thi p span,
  .collection-thi ul li{
    color:#ff9800;
    font-weight: var(--fw-lg);
  }
  .collection-sec {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 0 20px;
    flex-wrap: wrap;
  }
  .collection-sec .card{
    width: 388px;
  }
  .collection-thi{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 0 20px;
  }
  .collection-thi ul{
    padding: 0 20px;
    list-style-type: circle;
  }
  .text-sec .intro .card-text{
    height: 152px;
  }
  .text-thi{
    display: flex;
    align-items: center;
  }
  .text-thi .pic{
    width: 200px;
    margin-right: 20px;
  }
  /* Prizes */
  .award{
    position: relative;
  }
  .award:before{
    content: '';
    position: absolute;
    width: 100%;
    height: 300px;
    top: 0;
    background-image: url('../images/bg-4.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    z-index: -1;
  }
  .award-section {
    margin: 30px;
  }
  .title-des{
    text-align: center;
    margin: 20px 0;
  }
  .award-section .container{
    display: flex;
    border: none;
    justify-content: space-between;
    gap: 16px;
  }
  .award-section .content{
    width: 50%;
  }
  .award-section h2 {
    background-color: var(--primary-color);
    border-radius: var(--border-radius);
    color: var(--Neutral-color);
    padding: 8px 12px;
    margin: 0 0 10px 0;
    font-size: var(--fs-m)
  }
  .award-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 15px;
  }
  .award-section img{
    width: 200px; 
    height: 200px;
    border-radius: var(--border-radius);
  }
  .award-card {
    padding: 12px;
    display: flex;
    align-items: center;
  }
  .award-desc {
    font-size: var(--fs-s);
    line-height: 1.4;
    margin-left: 16px;
  }
  .award-desc p:first-child{
    font-weight: var(--fw-lg);
  }
  .condition{
    display: flex;
    align-items: center;
  }
  .award-section:last-child .condition{
    justify-content: center;
  }
  .condition img{
    width: 40px;
    height: 40px;
  }
  .condition p{
    margin: 0;
  }
  /* 注意事項 */
  .attention .container{
    padding: 35px 70px;
  }
  .attention ul {
    list-style: decimal;
    margin-left: 20px;
    margin-bottom: 12px;
  }
  .attention ul li{
    margin-bottom: 16px
  }
  .attention{
    position: relative;
  }
  .btn-open{
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
  }
  .btn-open .open{
    width: 100px;
    background-color: #fffef7;
    padding: 12px;
    border-top: none;
    border-left: 2px solid var(--primary-color);
    border-right: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    border-radius: 0 0 10px 10px;
  }
  /* Footer */
  .footer {
    color: var(--text-color);
    text-align: center;
    padding: 15px;
    margin-top: 100px;
  }
  .info-sec{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0 0 0 ;
  }
  .info .items,
  .info-sec .items{
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px 10px 0;
  }
  .info-sec .items .icon{
    width: 30px;
    height: 30px;
    margin-right: 16px;
  }
  .info-sec .items .text{
    text-align: left;
    white-space: nowrap;
  }
  .info a{
    text-decoration: none;
    color: #333;
    font-size: var(--fs-s);
    position: relative;
    margin: 0 10px;
  }
  .info a:hover{
    color: #4caf50;
    transition: var(--ts-all)
  }
  .info a + a:before{
    content: '｜';
    position: absolute;
    top: 0;
    left: -20px;
    color: #333;
  }
  .footer p{
    margin: 0;
  }
  .footer .copyright{
    padding: 12px 0 0 0;
    border-top: 1px solid var(--text-color)
  }
  @media (min-width: 320px) and (max-width: 768px) {
    .quick-links {
      flex-direction: column;
      align-items: center;
    }
    .quick-links .card {
      height: auto;
    }
    .intro{
      padding: 20px 0;
    }
    .intro .card{
      background-size: auto;
      background-position: right;
    }
    .process,
    .process-sec{
      display: none;
    }
    .collection .step p,
    .collection-sec .step p,
    .collection-thi .step p
    {
      display: block;
      background-color: var(--primary-color);
      border-radius: var(--border-radius);
      color: var(--Neutral-color);
      padding: 8px;
    }
    .text-sec .intro .card{
      background-size: contain;
    }
    .condition img{
      width: 20px;
      height: 20px;
    }
    .award-section .content{
      width: 100%;
    }
    .award-desc{
      width: 200px;
    }
  }
  @media (min-width: 320px) and (max-width: 767px){
    .text-sec .intro .card-text {
      height: 124px;
    }
  }
  @media(min-width: 768px) and (max-width: 993px){
    .quick-links{
      gap: 0;
    }
    .quick-links .card{
      height: 200px;
    }
  }
  @media (min-width: 320px) and (max-width:993px){  
    /* .module-pagination{
      display: flex;
    } */
    .text .step:not(:last-child){
      height: 82px;
      line-height: 52px;
    }
    .quick-links .card .btn{
      bottom: 0;
    }
    .btn-primary {
      padding: 8px 0;
    }
    .steps{
      grid-template-columns: repeat(2, 1fr);
    }
    .award-card{
      justify-content: center;
    }
    .award-desc {
      width: 200px;
    }        
    .award-section .content{
      width: 100%
    }
    .award-section .container {
      flex-direction: column;
    }
  }

  @media (min-width: 560px) and (max-width: 768px){
    .steps{
      grid-template-columns: repeat(1, 1fr);
    }
    .collection{
      grid-template-columns: repeat(2, 1fr);
    }        
    .steps .btn-primary{
      width: 70%;
    }
  }
  @media (min-width: 320px) and (max-width: 570px){
    .text .step:not(:last-child){
      height: auto;
      line-height: 1;
    }
    .steps{
      grid-template-columns: repeat(1, 1fr);
    }
    .collection{
      grid-template-columns: repeat(1, 1fr);
    }
    .collection .step img, .collection-sec .step img, .collection-thi .step img {
      height: auto;
      border-radius: var(--border-radius);
    }
    .collection .card p{
      text-align: center;
    }
  }
  @media (min-width: 320px) and (max-width: 580px){
    .container{
      border: none;
    }
    .text-sec .intro .card{
      height: 200px;
      background-size: inherit;
      background-position: right;
    }
    .btn-open .open{
      border-top: 2px solid var(--primary-color);
      border-radius: var(--border-radius)
    }
    .btn-open{
      bottom: -30px;
    }
  }
  @media (min-width: 320px) and (max-width: 654px){
    
    .attention .container{
      padding: 30px 12px;
    }
    .header{
      padding: .5rem;
    }
  }
  @media (min-width: 570px) and (max-width: 830px){
    .collection-thi{
      grid-template-columns: repeat(2, 1fr);
    }
  }
  @media (min-width: 320px) and (max-width: 571px){
    .collection-thi{
      grid-template-columns: repeat(1, 1fr);
    }
    .award-section{
      margin: 12px;
    }
    .award-grid{
      place-items: center;
      grid-template-columns: repeat(1, 1fr);
    }
    .award-card{
      justify-content: center;
    }
    .award-section .container{
      flex-wrap: wrap;
    }
    .intro .text{
      margin: 20px 12px;
    }
    .text-thi{
      flex-direction: column;
      gap: 12px;
    }
    .text-thi .pic{
      width: 150px;
    }
  }
  @media (min-width: 320px) and (max-width: 670px){
    .info-sec{
      grid-template-columns: repeat(1,1fr);
      place-items: center;
    }
    .info-sec .text{
      width: 277px;
    }
  }
  @media (min-width: 320px) and (max-width: 470px){
    .award-card{
      flex-direction: column;    
    }
    .award-desc{
      text-align: center;
    }
    .info a + a:before{
      left: -13px;
    }
    .info-sec .text{
      width: auto;
    }
    .info-sec .text p{    
      white-space: normal;
    }
    .info, .info-sec{
      justify-content: flex-start;
    }
    .condition{
      justify-content: center;
    }
  }
  @media (min-width: 320px) and (max-width: 400px){
    
    .method .text{
      flex-direction: column;
    }
    .method .info{
      margin: 0;
    }
  }
  @media (min-width: 670px) and (max-width: 890px){
    .info-sec{
      display: grid;
      grid-template-columns: repeat(2,1fr);
    }
  }

#attentionList li:nth-child(n+6) { display: none; }
#attentionList.show-all li { display: list-item; }