body{
  font-family: "Noto Sans TC", system-ui;
  scroll-behavior: smooth;

  h1{
    font-size: 2rem;
    line-height: 3rem;
  }
  h2{
    font-size: 1.375rem;
    line-height: 2.2rem;
  }
  h3{
    font-size: 1.25rem;
    line-height: 2rem;
  }


  a{
    color: #1E2F40;
    text-decoration: none;
  }
  hr{
    color:#D4E8E8 ;
    opacity: 1;
  }
  p{
    font-size: 1rem;
    line-height: 1.5rem;
  }

  ul{
    margin-left: 0;

    li{
      font-size: 1rem;
      line-height: 1.5rem;
    }
  }
  textarea:focus {
    outline: none;
  }

}

.space{
  margin-top: 8rem;
}
.space-6{
  margin-top: 6rem;
}
.bg_img{
  background-image: url("../images/ui/bg.jpg");
  background-repeat: repeat-y;
  background-size: cover;
  background-position: top;
}
.default_container{
  padding: 5rem;
  border-radius: 2vw;
  background-color: white;

}
.image_video{
  display: flex;
  justify-content: center;
  position: relative;

  .video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1296px;
    overflow: hidden;
    background-color: black;
    /* 設定四個角的不同弧度：左上, 右上, 右下, 左下 */
    border-radius: 20px 130px 20px 130px;
  }

  video {
    object-fit: fill;
    width: 100%;
    height: 100%;
    border-radius: 20px 130px 20px 130px;
  }

  h1{
    top: 10vw;
    position: absolute;
  }
}
#header_nav{
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: white;
  box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.1);

  .logo{
    aspect-ratio: 252/35;
    min-height: 35px;
    max-width: 80%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    /*background-image: url("../images/ui/logo-word.svg");*/
    background-image: url("../images/ui/logo-color.svg");
  }

  ul {

    list-style-type: none;
    padding: 0;
    margin: 0;
  }

  ul > li {
    padding: 1rem 1.5rem;
    position: relative;
    display: flex;
    align-items: center;

  }

  ul > li::after {
    content: '';
    color: white;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url("../images/ui/arrow_right.svg");
    transition: transform 0.3s ease;
    transform: rotate(0deg);
    height: 20px;
    width: 20px;
    margin-left: 0.5rem;
  }

  .lang_nav > li::after {
    content:unset;
  }

  ul > li.no-child::after {
    content: none; /* 沒有子 <ul> 的 <li> 不顯示 ::after */
  }

  ul > li.active::after {
    transform: rotate(90deg);
  }

  ul ul li::after {
    content: none;
  }

  ul > li.active > a {

  }

  /* 隱藏子層的 ul，只有點擊時才會展開 */

  ul > li > ul {
    padding-top: 1.1rem;
    display: none;
    list-style-type: none;
    padding-left: 0px;
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);

    li {
      background-color: white;
    }

    li:nth-child(1){
      border-top: 0.3rem solid #FFAD00;
      border-radius: 0.3rem;
    }

    li:last-child{
      border-radius: 0.3rem;
    }

    li a {
      color: #1E2F40;

    }
  }

  ul > li.active > ul {
    border-radius: 0.5rem;
    display: block; /* 當 active 時展開子層 */
    position: absolute;
    top: 3rem;
    width: 180px;
  }

  .lang_nav > li.active > ul {
    border-radius: 0.5rem;
    display: block;
    position: absolute;
    top: 3rem;
    right: 0;
    width: 180px;
  }

  #nav-member a{
    color: #FF7A00;
  }
  #nav-pro a{
    color: #2DB1AA;
  }
  .lang_icon {
    height: 20px;
    width: 20px;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("../images/ui/lang_icon.svg");
  }
}

.empty_section{
  height: 80px;
}
.container_section{
  /*padding: 0 11rem;*/
  padding: 0 11vw;

}

#footer{
  color: black;

  .page_top{
    position: absolute;
    width: 100%;
    display: flex;
    padding-top: 9rem;
    justify-content: center;

    a{
      display: grid;
      cursor: pointer;
      color: #285a8b;
    }
  }

  .page_top a::before{
   content: '';
    transform: rotate(180deg);
    display: block;
    width: 26px;
    height: 13px;
    justify-self: center;
    background-image: url("../images/ui/arrow_down.svg");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;

  }

  .app_store_btn{
    border: 2.23px solid #3F6285;
    border-radius: 3rem;
    padding: 0.6rem 1rem;
    display: flex;
    color: black;
    margin-left: 0.5rem;
    cursor: pointer;

  }

  .apple_store::before{
    content: '';
    width: 1.5rem;
    height: 1.5rem;
    display: block;
    background-image: url("../images/ui/app-store.svg");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    margin-right: 0.1rem;
  }

  .google_play::before{
    content: '';
    width: 1.5rem;
    height: 1.5rem;
    display: block;
    background-image: url("../images/ui/google-play.svg");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    margin-right: 0.1rem;
  }

  .mymate_foot_logo {
    margin-bottom: 1rem;
    height: 68px;
    width: 87px;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("../images/ui/logo-color.svg");

  }
  .mymate_info{
    list-style-type: none;
    padding: 0;
    margin: 0;

    li{
      padding: 0.5rem 0;
      font-size: 1.125rem;
    }
  }



  .social_footer_icon {
    width: 40px;
    height: 40px;
    margin-left: 5px;
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
    object-fit: contain;
  }


  .copyright{
    color: #3F6285;
  }

}
#footer::before{
  content: '';
  display: block;
  width: 212px;
  height: 410px;
  position: absolute;
  right: 3rem;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top;
  background-image: url("../images/ui/footer-symbo.svg");

}
.footer_nav_container {
  padding-top: 3rem;



  ul {
    display: flex; /* 使用 flexbox */
    list-style-type: none; /* 移除項目符號 */
    padding: 0; /* 移除內邊距 */
    margin: 0; /* 移除外邊距 */
    justify-content: space-between;
  }

  /* 第一層 */

  ul > li {
    font-size: 1.25rem;
    margin-right: 20px;

    a{
      color: #245688;
    }
  }

  /* 第二層 */

  ul > li > ul {
    padding-top: 1rem;
    display: block;
    list-style-type: none;

    li {
      font-size: 1rem;
      margin-right: 20px;
      padding-bottom: 1rem;

      a {
        color: #8F8F8F;
        text-decoration: none;
      }
    }


  }




}
.footer_bg{
  width: 100%;
  min-height: 100%;
}
.footer_bg > div:nth-child(1) {
  background-repeat: no-repeat;
  background-size: contain;
  background-position: left bottom;
  background-image: url("../images/ui/footer-bg2.svg");
}
.footer_bg > div:nth-child(2) {
  border-radius: 0 3rem 0 0;
  background-color: white;

}

.with_logo {
  align-items: center;
  justify-content: start;

  h1 {
    font-size: 3.1rem;
    justify-content: start;
    padding: 0 calc(1rem + 2vw) 0 0;

  }

  h1::before {
    height: calc(1rem + 1vw);
    margin-top: calc(0.2rem + 2vw);
    width: 87%;
    margin-left: 1vw;
  }

}
.with_logo::before {
  content: '';
  display: block;
  max-width: 100px;
  aspect-ratio: 68/53;
  height: 79px;
  background-image: url("../images/ui/logo-color.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  margin-right: 1.5rem;

}

@media (max-width: 900px) {
  #header_nav {
    ul > li {
      padding: 0.6rem;
    }
  }
}
@media (max-width: 800px) {
  .footer_bg > div:nth-child(1) {
    background-size: cover ;
  }
  .footer_bg > div:nth-child(2) {
    position: relative;
    top: -1px;
    border-radius: 0 0 0 0 ;
  }

}

@media (max-width: 1200px) {
  #header_nav{
    display: block;
    background-color: #F2F2F2;
    background-repeat: no-repeat;
    background-position: 80% 150%;
    background-image: url("../images/ui/footer-symbo.svg");

    .logo{
      min-height: 100%;
      max-width: unset;
    }

    .humber_nav::before{
      cursor: pointer;
      content: '';
      display: block;
      width: 30px;
      height: 24px;
      background-repeat: no-repeat;
      background-position: center;
      background-image: url("../images/ui/humber_nav.svg");
    }

    .nav{
      margin-top: 2rem;
    }


    .nav_mobile_bar{
      background-color: white;
      padding: 1.8rem;
      box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
      display: flex;
      justify-content: space-between;
    }

    ul{
      display: block;
      width: 100%;

    }

    ul > li{
      padding: 1.5rem;
      justify-content: space-between;
      align-items: start;
      font-size: 1.2rem;

    }

    ul > li.active::after {
      transform: rotate(-90deg);
    }

    ul > li > ul {
      padding-top: 0rem;
      box-shadow: 0px 0px 0px rgba(0, 0, 0, 0);

      li {
        background-color: unset;
        padding: 1rem;
      }

      li:nth-child(1){
        border-top: unset;
        border-radius: 0rem;
      }

      li:last-child{
        border-radius: 0rem;
      }

      li a {
        color: #8B8B8B;

      }
    }

    ul > li.active > ul {
      position: relative;
      margin-bottom: 2rem;
    }
    ul > li.active > a {
      position: absolute;
    }

  }

  #header_nav.active{
    height: 100vh;
  }

  #header_nav.active .humber_nav::before{
    background-image: url("../images/ui/close_btn.svg");
  }

  #header_nav.active .header_nav_container{
    display: flex!important;
  }

}
@media (max-width: 768px) {
  .container_section{
    padding: 0 1.5rem;
  }

  .image_video{
    .video-wrapper {
      /* 設定四個角的不同弧度：左上, 右上, 右下, 左下 */
      border-radius: 20px 60px 20px 60px;
    }

    video {
      object-fit: fill;
      height: 100%;
      /* 同樣設定四個角的弧度與外框一致 */
      border-radius: 20px 60px 20px 60px;
    }
  }

  .footer_bg{
    padding-top: 4rem;
  }
  .mymate_foot_logo {
    position: relative;
    margin-bottom: 1rem;
  }
  #footer {
    .page_top {
      padding-top: 3rem;
    }
    .mymate_foot_logo {
      aspect-ratio: 122/96;
      width: 25%;
      height: unset;
      margin-bottom: 0rem;
    }
  }
  #footer::before{
    aspect-ratio: 212 / 410;
    width: 35%;
    height: unset;
  }
  .footer_nav_container {
    padding-bottom: 3rem;

    ul {
      display: block;
      list-style-type: none;
      padding: 0;
      margin: 0;
    }

    ul > li {
      margin-bottom: 1.5rem;
      position: relative;
      display: block;

    }

    ul > li:last-child {
      margin-bottom: 0rem;
    }

    ul > li::after {
      content: '';
      color: white;
      background-repeat: no-repeat;
      background-position: center;
      background-image: url("../images/ui/arrow_right.svg");
      transition: transform 0.3s ease;
      transform: rotate(0deg);
      height: 20px;
      width: 20px;
      position: absolute;
      right: 0;
      top: 10px;
    }

    ul > li.no-child::after {
      content: none; /* 沒有子 <ul> 的 <li> 不顯示 ::after */
    }

    ul > li.active::after {
      transform: rotate(-90deg);
    }

    ul ul li::after {
      content: none;
    }

    ul > li.active > a {

    }

    /* 隱藏子層的 ul，只有點擊時才會展開 */

    ul > li > ul {
      padding-top: 1.1rem;
      display: none;
      list-style-type: none;
      padding-left: 0px;

      li {
        background-color: #F2F2F2;
        margin: 0rem;

        border-left: unset;
        border-bottom: 1px solid white;
        padding: 0.6rem;
        justify-content: left;
      }

      li a {
        color: gray;

      }
    }

    ul > li.active > ul {
      display: block; /* 當 active 時展開子層 */
    }
  }



}
.with_logo::before {

  height: 64px;


}

.mymate_title{
  display: flex;
  justify-content: center;

  h1{
    font-size: calc(2rem + 0vw);
    z-index: 1;
    position: relative;
    padding: 0 calc(2rem + 0vw);
    text-align: center;
    display: flex;
    justify-items: center;
    justify-content: center;
  }

  h1::before{
    z-index: -1;
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: calc(1rem + 1vw);
    background-color: #D7EDEC;
    border-radius: 0 0.5vw 0 0.5vw;
    margin-top: calc(1rem + 0vw);
  }
}


/* 基本按鈕樣式 */
.gradient_btn {
  max-width: 273px;
  position: relative;
  color: white;
  padding: 15px 3rem;
  border-radius: 6rem;
  font-size: 1rem;
  display: grid;
  align-items: center;
  text-align: center;
  background-color: #4E7AA6; /* 初始單一顏色 */
  background-image: linear-gradient(to right, #4E7AA6, #76D7C4); /* 漸變效果 */
  background-size: 471% 100%;
  background-position: left; /* 起始背景位置 */
  transition: background-position 0.5s ease, background-color 0.5s ease; /* 過渡效果 */
  border: none;
  margin-bottom: 0.8rem;
}
.gradient_btn::after {
  content: '';
  display: block;
  width: 30px;
  height: 20px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  position: absolute;
  right: 1.5rem;
  background-image: url("../images/ui/arrow_right_w.svg");

}

/* 當 hover 時觸發漸變並過渡到單一顏色 */
.gradient_btn:hover {
  background-position: right; /* 背景從左向右移動 */
  background-color: #76D7C4; /* 最終單一顏色 */
}

/* 按鈕的初始樣式 */
.transition_btn {
  max-width: 273px;
  color: #083561;
  padding: 15px 3rem;
  border-radius: 6rem;
  font-size: 1rem;
  display: grid;
  align-items: center;
  text-align: center;
  border: 2px solid #083561; /* 初始邊框顏色 */
  background-color: white; /* 初始背景顏色 */
  transition: linear-gradient 0.5s ease,color 0.2s ease; /* 平滑過渡效果 */
  position: relative;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.transition_btn::after {
  content: '';
  display: block;
  width: 30px;
  height: 20px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  position: absolute;
  right: 1.5rem;
  background-image: url("../images/ui/arrow_right_b.svg");
}


.transition_btn:hover::after {
  background-image: url("../images/ui/arrow_right_w.svg");
}

/* 當 hover 時變化 */
.transition_btn:hover {
  color: white; /* 文字顏色變為白色 */
  background: linear-gradient(to right, #76D7C4, #76D7C4); /* 背景顏色漸變 */
  border-color: transparent; /* 移除邊框 */
}
.more_link{
  font-size: 1rem;
  color: #27598B;
  position: relative;
  display: flex;
  align-items: center;
}
.more_link::after{
  content: '';
  margin-top: 2px;
  display: block;
  max-width: 14px;
  height: 16px;
  max-height: 24px;
  aspect-ratio: 14/24;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  margin-left: 0.5rem;
  background-image: url("../images/ui/arrow_right_b.svg");
}
.more_link:hover{
  color: #FE7E07;
}
.more_link:hover::after{
  background-image: url("../images/ui/arrow_right_o.svg");
}


.pagination {
  padding-top: 2rem;
  text-align: center;
  margin: 20px 0;
  justify-content: center;
  display: flex;
}

.pagination a, .pagination span {
  margin: 0 5px;
  width: 2rem;
  height: 2rem;
  background-color: #f7f8fa;
  color: #2f5db7;
  text-decoration: none;
  border-radius: 50%;
  font-size: 1rem;
  line-height: 2rem;
}

.pagination .current {
  background-color: #ff6f00;
  color: #fff;
}

.pagination a:hover {
  background-color: #2f5db7;
  color: #fff;
}

.pagination .prev.page-numbers {
  background-repeat: no-repeat;
  background-position: center;
  background-image: url("../images/ui/arrow_right_b.svg");
  transform: rotate(-180deg);
}

.pagination .next.page-numbers {
  background-repeat: no-repeat;
  background-position: center;
  background-image: url("../images/ui/arrow_right_b.svg");

}


.tab_section {
  display: flex;
  justify-content: center;
  padding-bottom: 3rem;
  border: unset;
  margin-left: 0;
  margin-right: 0;
  /*gap:20px;*/
  /*grid-template-columns: repeat(2, 1fr);*/

  .nav-item {
    justify-content: center;
    display: flex;
    max-width: 195px;
    width: 100%;
    height: 100%;
    aspect-ratio: 364/87;
    font-size: 1.25rem;
    margin: 0 1rem;

    .nav-link {

      width: 100%;
      height: 100%;
      border: 3px solid #245688;
      border-radius: 3vw 1vw 1vw 1vw;
      aspect-ratio: 364/87;
      color: #245688;

    }

    .nav-link.active {
      width: 100%;
      color: white;
      background: linear-gradient(90deg, rgba(36, 86, 136, 1) 0%, rgba(77, 121, 165, 1) 100%);
      border-radius: 3vw 1vw 1vw 1vw;

    }
  }
}


  .title_with_logo{
    display: flex;
    align-items: center;
    justify-content: center;

  }

  .title_with_logo:before{
    margin-right: 1rem;
    aspect-ratio: 252/35;
    width: 100%;
    height: 100%;
    max-width: 179px;
    max-height: 24px;
    content: '';
    display: block;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    background-image: url("../images/ui/logo-word.svg");
  }

.sub_title_outline{
  border: 1px solid gray;
  border-radius: 3rem;
  padding: 0.5rem;

}
.empty_space{
  height: 10rem;
}
.single_logo{
  width: 10rem;
  max-width: 100px;
  height: 10rem;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  background-image: url("../images/ui/logo_with_title.svg");
}
.single_logo.blue{
  background-image: url("../images/ui/logo.svg");
}
.single_logo.color{
  background-image: url("../images/ui/logo-color.svg");
}
@media (max-width: 992px) {
  .title_with_logo{
    display: flow;
    text-align: center;

  }
  .title_with_logo:before{
   margin-right: auto;
    margin-left: auto;

  }

  .space{
    margin-top: 5rem;
  }
  .space-6{
    margin-top: 4rem;
  }
  .empty_space{
    height: 5rem;
  }
  .tab_section {
    display: grid;
    gap:20px;
    grid-template-columns: repeat(2, 1fr);

    .nav-item {

      max-width: 195px;
      width: 100%;
      height: 100%;
      aspect-ratio:unset;
      font-size: 1.25rem;
      margin: unset;

      .nav-link {

        border: 2px solid #245688;
        border-radius: 9vw 2vw 2vw 2vw;
        aspect-ratio:unset;


      }

      .nav-link.active {
        border-radius: 9vw 2vw 2vw 2vw;

      }
    }
  }

  #footer {
    .mymate_info {
      li {
        padding: 0.2rem 0;
        font-size: 1rem;
      }
    }
  }

  .footer_nav_container {
    padding-top: 3rem;
    /* 第一層 */
    ul > li {
      font-size: 1.1rem;

    }
  }
  .gradient_btn {
    padding: 12px 1.8rem;
    border-radius: 6rem;
    font-size: 1rem;
    margin-bottom: 0.8rem;
    max-width: 241px;
    margin-left: auto;
    margin-right: auto;
  }
  .gradient_btn::after {
    width: 12px;
    height: 40px;
    right: 1rem;
    background-size: contain;
  }
  .transition_btn {
    padding: 10px 1.8rem;
    border-radius: 6rem;
    font-size: 1rem;
    margin-bottom: 0.8rem;
    max-width: 241px;
    margin-left: auto;
    margin-right: auto;
  }
  .transition_btn::after {
    width: 12px;
    height: 40px;
    right: 1rem;
    background-size: contain;
  }
}


@media (max-width: 768px) {
  .default_container{
    padding: 1rem;

  }

  .more_link {
    font-size: 1rem;
  }
  .more_link::after {

    height: 12px;
    max-height: 24px;
    aspect-ratio: 14 / 24;
    background-size: contain;
    margin-left: 0.5rem;

  }
  .space{
    margin-top: 4rem;
  }
  .space-6{
    margin-top: 3rem;
  }
  .empty_space{
    height: 2rem;
  }


  .mymate_title{


    h1{
      letter-spacing: 3px;
      font-size: calc(1.5rem + 0vw);
      padding: 0 calc(1.5rem + 0vw);

    }

    h1::before{
      height: calc(1rem + 1vw);
      margin-top: calc(1rem + 0vw);
    }
  }

  body{

    h1 {
      font-size: 1.5rem;
      line-height: 2rem;
    }

    h2 {
      font-size: 1.2rem;
      line-height: 2rem;
    }

    h3 {
      font-size: 1.1rem;
      line-height: 1.8rem;
    }
    p{
      font-size: 1rem;
      line-height: 1.5rem;
    }
    ul{
      margin-left: 0rem;

      li{
        font-size: 0.875rem;
      }
    }

  }


}
