/* reset & default & all-set --------------------------------------- */
* { margin: 0; padding: 0; }
body { background-color: #fff; color: #000; font-size: 16px; 
  font-family: Helvetica, Arial, STHeiti, "Microsoft JhengHei", 微軟正黑體, sans-serif; }
a { text-decoration: none; }
h1, h2, h3 { font-family: Helvetica, Arial, STHeiti, "Microsoft JhengHei", 微軟正黑體, sans-serif; font-weight: bold; }
p { letter-spacing: 1px; line-height: 1.4em; padding-bottom: 10px; text-align: justify; }

.TSbgc-light-blue { background-color: #69f; }
.TSc-light-blue { color: #69f; }
.TSc-light-red { color: #f00; }
.TScontainer { max-width: 1300px; margin: 0 auto; padding: 0 20px; }


#sec1,#sec2,#sec3,#sec4,#sec5 { position: relative; }
#sec2,#sec3,#sec4,#sec5 { background-image: url(../images/shadow1.png);
  background-repeat: no-repeat; background-position: center top; 
  border-top: 1px solid rgba(200, 200, 200, 0.6); padding-bottom: 50px; }


/* header & nav & sidebar ------------------------------------------- */
header { background-image: url(../images/nav_bg.png); 
  box-shadow: 0 5px 5px rgba(153, 153, 153, 0.5); }

a#logo { display: inline-block; padding: 5px 0;  }
a#logo img { height: 60px; width: auto; }
a#logo h1 { display: inline-block; font-size: 30px; margin: 0; padding: 0; 
  transform: translate(10px,10px); }

.w3-bar a.w3-bar-item { display: flex; justify-content: center; align-items: center; height: 70px; padding: 8px 12px; }

.w3-bar a.w3-bar-item:hover, .w3-bar a.w3-bar-item.active { font-weight: bold; }
.w3-bar a.w3-bar-item:hover { background-image: url(../images/nav_btn_hover.png); }
.w3-bar a.w3-bar-item.active, .w3-bar a.w3-bar-item.active:hover { 
  background-image: url(../images/nav_btn_border.png), url(../images/nav_btn_border.png), url(../images/nav_btn_active.png); 
  background-repeat: no-repeat, no-repeat, repeat; 
  background-position: left top, right top, center center;
  box-shadow: 0 4px 4px rgba(153, 153, 153, 0.5); }

.showMenu { width: 40px; height: 40px; display: flex; justify-content: center; align-items: center; margin: 15px 15px 0 0; }

@media(max-width:500px){
  a#logo { padding: 10px; }
  a#logo img { height: 50px; }
  a#logo h1 { font-size: 24px; }
}
@media(max-width:400px){
  a#logo img { height: 30px; }
  a#logo h1 { font-size: 18px; }
  .showMenu { margin: 5px 0 0 0; }
}

/* #sec1 ------------------------------------------------------------ */
#sec1 { background: url(../images/sec1-banner.jpg) right center; background-size: cover; }
#sec1 div img { width: 35vw; height: auto; max-width: 550px; margin-top: 70px; margin-bottom: 30px; }

@media(max-width:800px){
  #sec1 { background: none; }
  #sec1 div.d1 { height: 250px; background: url(../images/sec1-banner.jpg) right center;  background-size: cover; }
  #sec1 div.d2 { width: 100%; padding: 0 30px; text-align: center; }
  #sec1 div img { width: 100%; max-width: 400px; }
}


/* #sec2, #sec3 ------------------------------------------------------------ */
.imgtxtBlock { padding-top: 130px; }
.imgtxtBlock .imgBlock img { width: 90%; height: auto; max-width: 600px; }
.imgtxtBlock h1 { background-image: url(../images/h1_bg.png); margin: 0 0 20px;
  background-repeat: no-repeat; background-position: left 10px; padding-left: 90px; }
.imgtxtBlock h2 { font-size: 20px; }
#sec3 .imgBlock { float: right; text-align: right; }


@media(max-width:992px){
  .imgtxtBlock { padding-top: 80px; }
  .imgtxtBlock .imgBlock, .imgtxtBlock .txtBlock { padding: 0; }
  .imgtxtBlock .imgBlock, #sec3 .imgBlock { text-align: center; }
  .imgtxtBlock h1 { font-size: 24px; padding-top: 10px; margin: 15px 0; }
  .imgtxtBlock h2 { font-size: 18px; }
  .imgtxtBlock .imgBlock img { width: 100%; }
}


/* #sec5 ------------------------------------------------------------- */
#sec5 { position: relative; padding-top: 120px; }
.sec5-row { position: absolute; left: 38%; right: 2%; bottom: 0; transform: translateY(15%); 
  display: flex; flex-wrap: wrap; justify-content: space-between; }

.sec5-row .sec5-col { width: 30%; background-color: white; padding-bottom: 60px; position: relative; border-radius: 10px; }
.sec5-col h2 { 
  padding: 10px 20px; margin: 0 0 10px; font-size: 24px; border-radius: 8px 8px 0 0; }
.sec5-col p { padding: 20px; text-align: justify; }
.sec5-col h3 { position: absolute; left: 0; bottom: 0; width: 100%; 
  padding: 10px 20px; margin: 0; text-align: center; font-size: 18px; 
  color: #fff!important; border-radius: 0 0 8px 8px; }

@media(max-width:992px){
  #sec5 { padding-top: 80px; }
  .sec5-row .sec5-col { width: 80%; margin: 20px auto; }
  .sec5-row, .sec5-col { position: static; transform: none; }
}


/* #sec6 ------------------------------------------------------------- */
#sec6 img { display: block; width: 70%; height: auto; margin: 0 auto; }
#sec6 td { position: relative; }
#sec6 #QRcode1 { width: 100px; height: auto; padding-left: 20px; 
  position: absolute; left: 0; bottom: 0; }

#sec6 .about2 img { border-radius: 30px; margin: 0; width: 300px; height: auto; }
#sec6 .about2 .TSright { float: right; }
#sec6 .about2 .txtBlock { padding-left: 150px; padding-right: 20px; }

#sec6 .about3 .imgBlock p { text-align: center; font-weight: bold; font-size: 20px; }
#sec6 .about3 .imgBlock img {  border-radius: 30px; display: inline; }

#sec6 #QRcode2 { display: inline-block; width: 120px; height: auto; border-radius: 0; }
#sec6 .about4 { height: 450px;
  background-image: url(../images/about4.png); background-repeat: no-repeat;
  background-position: center bottom; background-size: auto 380px; }
#sec6 .about4 h2 { text-align: center; transform: translate(-120px,100px); }
#sec6 .imgtxtBlock.about2, #sec6 .imgtxtBlock.about3 { padding: 50px 0 0; }

@media(max-width:992px){
  #sec6 .about2 .TSright { float: left; }
  #sec6 .about2 .txtBlock { padding-left: 0px; padding-right: 20px; }
  #sec6 span { display: block; }
}
@media(max-width:620px){
  #sec6 img { width: 85%; }
  #sec6 #QRcode1 { float: right; }
  #sec6 .about2 .txtBlock { padding-left: 30px; }
  #sec6 .about4 h2 { text-align: left; transform: translateY(50px); }
  #sec6 .about4 { background-position: right bottom;
    background-size: auto 280px; height: 300px; }
}

/* footer ------------------------------------------------------------- */
footer { background-color: #cfd0d2; text-align: center; padding: 20px; font-size: 12px; }