.flex-h {
    display: flex;
}

/*宣告flex*/
.flex-between {
    justify-content: space-between;
}

/*flex橫排均分*/
.flex-left {
    justify-content: flex-start;
}

/*flex靠左對齊*/
.flex-right {
    justify-content: flex-end;
}

/*flex靠右對齊*/
.flex-center {
    justify-content: center;
}

/*flex靠中對齊*/
.flex-start {
    align-items: flex-start;
}

/*flex靠上對齊*/
.flex-middle {
    align-items: center;
}

.kv-web{display:inline-block;}
.kv-mobile{display:none;}

.display-web{display:inline-block;}
.display-mobile{display:none;}
/*flex上下置中對齊*/
.clear {
    clear: both;
}

img {
    max-width: 100%;
    height: auto;
}


body {
    font-family: "Microsoft JhengHei", sans-serif, Verdana, Geneva;
    background: url(../images/kv_bg.jpg);
    background-repeat: no-repeat;
    background-position: center top; 
    background-color: #3c276e;
}

.kv_bg {    
   text-align: center;
}

.container {
    max-width: 1200px;
}

.mt-4 {
    margin-top: -40px !important;
    padding-bottom: 20px;
}

.mt-5 {
   margin-top: -30px !important;
}

h1 {
    font-family: "Microsoft JhengHei";
    font-weight: bold;
    text-align: center;
    font-size: 40px;
    color: #e95c84;
    position: relative;
}

h2{
    font-size: 56px;
    font-weight: bold;
    color: #fe7c00;
    margin: 15px 0px 35px 0px;    
}


p,ol{font-size: 35px; color: #787878; font-weight: bold;}
ol.listabc{
   list-style-type: upper-alpha;
   font-size: 35px;
   margin-left: 5px;
}

.text-center span.tag{
   color: #2599ea;
   font-size: 35px;
   font-weight: bold;
}

.content {
    margin: 15px auto;
}

.btn-upload {margin:0;padding: 0;width:100%;height:480px;}
.img-upload{
    object-fit: cover;
    width:100%;
    height:100%;
}

.btn-upload img:hover {

}
.link{margin:10px auto;}
.link>a{width:48%;}



.button {
    display: inline-block;
    margin: 20px 25px 30px 25px;
}

.button a img{
    width: 315px;
    height: 100px;
    transition-duration: 0.3s;
}

.button a:hover img{
    transform: translateY(5px);
    text-decoration: none;
}



/* ------ 動態 ------ */
@keyframes teeter {
  from{
  transform: translateY(2vh);
  }
  to{
  transform: translateY(1vh);
  }
}

.teeter{
  animation:teeter .6s infinite alternate;
}


.bg-red{
  background: linear-gradient(to bottom, white, #dccde4);
}




/* ------------ footer 頁尾 ------------ */
.bg-tail{  
  background-color: #eef4f7;
  text-align: center;
}




 /* 手機版 */
@media (max-width:750px) {
   .kv-web{display:none;}
   .kv-mobile{display:inline-block;}

   .display-web{display:none;}
   .display-mobile{display:inline-block;}
    img{max-width:100%;}
    body {
        padding: 0;
    }

    .container {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .content {
        width: 100%;
        padding: 0px;
        margin-bottom: 30px; 
    }

    .kv_bg {
        background-size: cover;
    }

    .text-center {
        margin-top: -15px;
    }


   .button {
        display: inline-block;
        margin: 10px 15px 20px 15px;
    }


    h1 {
        font-size: 30px;
        margin: 0px auto;
    }

    h2{font-size:60px;}
    
    p{font-size:35px;}

    .link>a{
        display:inline-block;
        width:100%;
        margin:0 auto 20px;
    }
}







/* 從上方淡入動畫 */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 微動動畫 */
@keyframes slightPulse {
  0%, 100% {
    transform: scale(1); /* 原始大小 */
  }
  
  50% {
    /* 放大1%比較細緻 */
    transform: scale(1.01); 
  }
}

/* 非header的主要區塊先設定好「淡入」的基本屬性 */
.content > .text-center,
.button_bg,
.bg-red,
footer {
  opacity: 0; 
  animation: fadeInDown 1.0s ease-out forwards;
}



/* 套用「淡入」和「微動」 */
header {
  opacity: 0; /* 要設定, 否則會閃一下 */
  animation: 
    /* 動畫1: 淡入(0.2s開始,跑 1.0s) */
    fadeInDown 1.0s ease-out forwards 0.2s,
    /* 動畫2: 微動 (等淡入跑完,1.2s時開始無限循環) */
    /* 微動時間拉長到3秒一次 */
    slightPulse 3.0s ease-in-out infinite 1.2s;
}

/* --- 其他區塊：依序設定「淡入延遲」--- */

/* 區塊1 (title.png) */
.content > .text-center:nth-of-type(1) {
  animation-delay: 0.5s;
}

/* 區塊2 (content.png) */
.content > .text-center:nth-of-type(2) {
  animation-delay: 0.8s;
}

/* 區塊3 (company.png) */
.content > .text-center:nth-of-type(3) {
  animation-delay: 1.1s;
}

/* 按鈕區 */
.button_bg {
  animation-delay: 1.4s;
}

/* 區塊4 (favorable.png) */
.bg-red {
  animation-delay: 1.7s;
}

/* 頁尾 */
footer {
  animation-delay: 2.0s;
}

