/* 全域 */
/* *, *::after, *::before {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
} */

/* 全局樣式 */
body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: var(--color-background);
}

h3,p{
    text-align: center;

}



.df-jc-ac{
    display: flex;
    justify-content: center;
    align-items: center;
}

:root {
    /* 品牌顏色 */
    --color-primary: rgb(18, 204, 118);
    --color-secondary: rgb(243, 252, 75);
    --color-background: rgb(210, 251, 232);
    --color-primary-rgb: 18, 204, 118; 
    --color-secondary-rgb: 243, 252, 75; 
    
    /* 間距 */
    --spacing-base: 1rem;
    --spacing-large: 2rem;
    --spacing-block: 4rem;
    
    
    /* 圓角 */
    --border-radius: 20px;
    --border-radius-pill: 100px;
    
    /* 陰影 */
    --shadow-button: 0 6px 0 0 rgb(0, 0, 0);
    --border-solid:3px  rgb(0, 0, 0) solid;

    /* 等比縮小 */
    --button-scale: 1;
}





/* header */
.header{
    height: 50px;  /* 依據你的 header logo 高度調整 */
    background-color: var(--bs-white);
    border-bottom: 1px solid #000; 
}

/* nav */
.main-nav {
    position: fixed; 
    top: 87px;
    width: 100%;
    z-index: 100;
    transition: top 0.3s; /* 添加過渡效果 */
}

/* 新增滾動後的樣式 */
.main-nav.scrolled {
    top: 10px;
}

.main-nav__scroll-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; 
    scrollbar-width: none;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 柔和的陰影 */
    width: 100%;

}

.main-nav__item{
    font-size: 1.5rem;
    /* background-color: var(--color-primary); */
    background-color: rgba(var(--color-primary-rgb), 0.9); 
    padding: 20px 0;
}

.main-nav__scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.main-nav__list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    min-width: min-content; 
}

.main-nav__item {
    flex: 1;
    min-width: 100px;
    transition: background-color 0.3s ease;
}

.main-nav__item:hover {
    background-color:  var(--bs-green);
}

.main-nav__item--cta {
    /* background-color: var(--color-secondary); */
    background-color: rgba(var(--color-secondary-rgb), 0.8); 
}


.main-nav__item--cta:hover {
    background-color: var(--bs-green);
}

.main-nav__item--cta:hover {
    /* background-color: var(--color-secondary); */
    background-color: var(--color-secondary); 
}


.main-nav__item--cta:hover .main-nav__link {
    color: #000; 
}

.main-nav__link {
    display: block;
    /* padding: 0.5rem; */
    color: var(--bs-white);
    text-align: center;
    text-decoration: none;
}

.main-nav__item--cta .main-nav__link {
    color: #000;
}


/* m-nav */
.m-main-nav {
    position: sticky;
    top: 0;
    background-color: var(--color-primary);
    z-index: 100;
    width: 100%;
    --bs-gutter-x: 0; /* 移除 gutter */
}

.m-main-nav__scroll-wrapper {
    width: 100%;
}

.m-main-nav__list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    background-color: var(--color-primary);
}

.m-main-nav__item {
    flex: 1;
    min-width: auto;
    transition: background-color 0.3s ease;
}

.m-main-nav__item li{
    font-size: 1rem;
}


.m-main-nav__item:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.m-main-nav__item--cta {
    background-color: var(--color-secondary);
}

.m-main-nav__link {
    display: block;
    padding: 0.5rem 0.2rem;
    color: var(--bs-white);
    text-align: center;
    text-decoration: none;
}

.m-main-nav__item--cta .m-main-nav__link {
    color: var(--color-primary);
}


.m-main-nav__container{
    max-width: 100%;
}

@media (max-width: 992px) {
    .m-main-nav__item {
        min-width: auto;
    }
}

@media (max-width: 576px) {
    .m-main-nav__item{
        font-size: .9rem;
    }
    .header {
        border-bottom: none;
    }
}

/* 主視覺 */
.kV__sec {
    background:url(../images/bg.jpg) no-repeat center top, #d2fbe8;
    padding-top: var(--spacing-base);
    padding-bottom: var(--spacing-large);
}

.kV h2 img{
    max-width: 100%;
}

.login-button {
    position: relative;
    white-space: nowrap;
    left: 50%;
    transform: translateX(-50%) scale(var(--button-scale));
    width: 330px;
    margin-top: var(--spacing-large);
    margin-bottom: 75px;
    padding: 5px 5px;
    z-index: 10;
    color: white;
    text-decoration: none;
    background-color: var(--color-primary);
    border: var(--border-solid);
    border-radius: var(--border-radius-pill);
    box-shadow: var(--shadow-button);
    transition: all 0.3s ease;
}

.login-button:hover {
    transform: translate(-50%, calc(10%)) scale(var(--button-scale));
    box-shadow: 0 2px 0 0 var(--color-black);
}


.login-button__icon {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
}


.login-button__title {
    font-size: 1.5rem;
    margin: 0;
    line-height: 1.2;
}

.login-button__text {
    font-size: 0.875rem;
    margin: 0;
    opacity: 0.9;
}

@media (max-width: 1200px) {
   
}

@media (max-width: 992px) {
    .kV__sec {
        background:url(../images/m-bg.jpg) no-repeat center top/100vw, #d2fbe8;
    }

    .login-button {
        --button-scale: 0.9;
    }

    .kV__card-wrapper {
        top: 53%;
        height: 400px;
    }
}

@media (max-width: 576px) {
  
    .kV {
        height: auto;
        padding-top: 0; /* 移除原本的 padding-top */
    }

    .kV__media {
        position: relative; /* 改為相對定位 */
        height: auto;
    }

 
    .login-button {
        --button-scale: 0.7;
        margin-top: var(--shadow-button);
        margin-bottom: var(--spacing-large);

    }

    .kV__image {
        object-fit: contain; 
        background-color: var(--color-background);
    }
}

/* 主視覺_企業服務 */
.biz-srv {
    width: 100%;
    z-index: 20;
    background-color: var(--bs-white);
    border-radius: var(--border-radius);
    border: var(--border-solid);
    margin:  0 auto;
    margin-bottom: var(--spacing-block);
}
.biz-srv > img[src*='biz-srv__title']{max-width: 750px; width: 80%; height: auto; margin-top: -40px;}

.biz-srv__container {
    background-color: var(--color-white);
    border: 4px solid var(--color-black);
    border-radius: var(--border-radius);
}

.biz-srv__title {
    --button-scale: 1;
    position: absolute;
    left: 50%;
    top: 45%;
    transform: translate(-50%, -50%) scale(var(--button-scale));
    z-index: 30;
    max-width: 100%;
    width: 90%;
    pointer-events: none; 
}

.biz-srv__title img {
    max-width: 100%;
    height: auto;
}

.biz-srv__wrapper {
    display: flex;
    gap: var(--spacing-large);
    margin-top: 20px;
}

.biz-srv__img-wrapper {
    width: 100%;
    height: 486px;
    position: relative;
    align-items: flex-end; 
    overflow: hidden;
}

.biz-srv__img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: top;
    margin: 0 auto;
}

.biz-srv__body {
    padding-bottom: var(--spacing-large);
    flex: 0 0 50%;
}

.biz-srv-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-base);
    list-style: none;
    padding: 0;
    margin: 0;
    margin-bottom: var(--spacing-base);
}

.biz-srv-list__item {
    flex: 0 0 calc(50% - var(--spacing-base));
}

.biz-srv-list__title {
    display: block;
    background-color: var(--bs-black);
    color: var(--bs-white);
    padding: 0.5em 1em;
    border-radius: var(--border-radius-pill);
    font-size: 1.125rem;
    margin-bottom: 0.5em;
}

.biz-srv-list__desc {
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

.biz-srv__cta {
    display: inline-block;
    margin-top: var(--spacing-base);
    padding: 0.75em 2em;
    background-color: var(--color-secondary);
    color: var(--bs-black);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: var(--border-solid);
    box-shadow: var(--shadow-button);
    transform: translateY(0); /* 初始位置 */
    transition: all 0.3s ease; /* 添加過渡效果 */
}

.biz-srv__cta:hover {
    transform: translateY(4px); /* 往下移動 */
    box-shadow: 0 2px 0 0 var(--color-black); /* 減少陰影 */
}


@media (max-width: 992px) {
    .biz-srv {
        margin-bottom: var(--spacing-large);
    }
    
        .biz-srv__title {
            --button-scale: 0.9; /* 在這裡修改變數 */
            top: 47%;
        }

    .biz-srv__wrapper {
        flex-direction: column;
        gap: var(--spacing-base);
        margin-top: 0px;

    }

   .biz-srv__body {
        flex: 0 0 100%;
        padding-top: 0;
    }

    .biz-srv__img-wrapper {
        height: 427px;
    }

    .biz-srv__img {
        width: 90%;
        height: auto;
        object-fit: cover;
        object-position: top;
        margin: 0 auto;
    }

    .biz-srv-list {
        gap: calc(var(--spacing-base) * 1.5); /* 增加間距 */
    }

    .biz-srv-list__item {
        /* 修改為兩欄排列 */
        flex: 0 0 calc(50% - var(--spacing-base)); /* 保持兩個一排的寬度 */
    }

    .biz-srv-list__title {
        /* 調整標題大小，使其更適合手機版兩欄排列 */
        font-size: 1rem;
        padding: 0.4em 0.8em;
    }

    .biz-srv-list__desc {
        /* 調整描述文字大小 */
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .biz-srv__title {
        --button-scale: 0.9; /* 在這裡修改變數 */
        top: 33%;
    }
    .biz-srv > img[src*='biz-srv__title']{max-width: 750px; width: 96%; height: auto; margin-top: -31px;}

    .biz-srv__wrapper {
        display: flex;
    }

    .biz-srv__img-wrapper {
        height: 190px;
    } 
}



/* 企業服務優勢 */
.biz-adv__sec{
    background:url(../images/biz-adv__sec__bg.jpg) no-repeat center top/118%, #01cfe7;
    padding-top: var(--spacing-block);
}

.biz-adv__item-wrapper{
    padding-bottom:var(--spacing-block);
}

.biz-adv__sec h2{
   width: 100%;
   margin-bottom:var(--spacing-block);
}

.biz-adv__sec h2 img{
    max-width: 90%;
}

.biz-adv__item{
    background-color: #FFF;
    padding: 25px;
    text-align: center;
    border-radius: var(--border-radius);
    height: 100%;
}

.list-disc li {
    list-style-type: disc;
    padding-left: 5px;
    margin: .5rem 2rem;
    font-size: 1rem;
}

.biz-adv__item h3::after {
 content: '';
 display: block;
 width: 50px;
 height: 3px;
 background-color:  var(--color-primary);
 margin: 5px auto;
}

/* .biz-adv__item ul{
    height: 100%;
} */

@media (max-width: 992px) {
    .biz-adv__sec{
    padding-top: var(--spacing-large);
    }
    .biz-adv__sec h2 {
    margin-bottom: var(--spacing-large);
    }
    .biz-adv__item-wrapper{
        padding-bottom:var(--spacing-large);
}
}

@media (max-width: 576px) {
    .biz-adv__item img{
    width: 80px;
}
}


/* 服務範疇 */

.srv-scope__sec h2{
    width: 100%;
    margin-top: var(--spacing-block);
    margin-bottom:var(--spacing-block);
 }
 
 .srv-scope__sec img{
     max-width: 90%;
 }

.srv-scope__item{
    background-color: #FFF;
    /* padding: 25px; */
    text-align: center;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 100%;
}

.srv-scope__item img{
    max-width: 100%;
}

.srv-scope__text{
    background-color: var(--color-primary);
    padding: 20px 35px;
    color: #fff;
    height: 100%;
}

.container .biz-srv__cta{
    margin-bottom: 15px;
}

@media (max-width: 1200px) {
    br .br_xl {
        display: none;
    }
    br .br_md {
        display: block;
    }
}

@media (max-width: 992px) {
    .srv-scope__sec h2 {
    margin-top:var(--spacing-large);
    margin-bottom:var(--spacing-large);
    }
   
}

@media (max-width: 576px) {
    
    .srv-scope__text{
        padding: 20px 18px;
    }

    /* .srv-scope__sec img{
        max-width: 50%;
    } */

}




/* 500+企業的信賴 */
.trusted-by__sec h2{
    width: 100%;
    margin-top:var(--spacing-block);
 }
 
 .trusted-by__sec h2 img{
     max-width: 90%;
 }

 .trusted-by-item img{
    width: 100%;
    height: auto;
    margin-top: var(--spacing-base);
 }

 .trusted-by__sec{
    padding-bottom: var(--spacing-block);
 }

 @media (max-width: 992px) {
    .trusted-by__sec{
        padding-bottom: var(--spacing-large);
     }
}


/* 合作夥伴 */

.client-logos__sec h2{
    width: 100%;
    margin-bottom:var(--spacing-base);
 }
 
 .client-logos__sec h2 img{
     max-width: 90%;
 }
 


.client-logos__sec{
    padding-top: var(--spacing-block);
    padding-bottom: var(--spacing-large);
    background-color: #FFF;
    margin: 0 auto;
}

.client-logos__logo{
    margin-bottom: var(--spacing-large);
}

.client-logos__logo img{
    width: 100%;
    border: 1px solid #e4e4e4;
    border-radius: 12px;

}

.client-logos__logo p br{
    display: none;
}

.client-logos__logo p .br_xl{
    display: block;
}

.carousel-item h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;  /* 文字與線之間的間距 */
    color:var(--color-primary);
    margin-bottom: var(--spacing-base);
}

.carousel-item h3::before,
.carousel-item h3::after {
    content: "";
    display: block;
    width: 2px;
    height: 20px;  /* 線的粗細 */
    background-color: var(--color-primary);  /* 使用你的主題綠色 */
    margin: 0 10px;
}

.carousel-item p{
    font-size: 1rem;
    margin-top: 2px;
    line-height: 1.3rem;  
}


@media (max-width:1399px) {
  .client-logos__logo p br{
        display: block;
    }
    .client-logos__logo p .br_xl{
        display: none;
    }
}

@media (max-width: 992px) {
    .client-logos__sec{
        padding-top: var(--spacing-large);
    }
    .client-logos__logo{
        margin-bottom: var(--spacing-base);
    }
    
}
/* @media (max-width: 576px) {
    .client-logos__sec h2 img{
    width: 50%;   
}
} */






/* 輪播指示器樣式 */
.carousel-indicators {
    position: relative;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 20px auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    width: 100%;
    max-width: 80%;
}

.carousel-indicators button {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #ccc;
    border: none;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.carousel-indicators button.active {
    background-color: var(--color-primary);
}

@media (max-width: 767px) {
    .carousel-indicators {
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
        margin: 10px auto;
        gap: 6px;
        justify-content: center;
    }
    
    .carousel-indicators button {
        width: 12px;
        height: 12px;
    }
}


/* 隱藏左右箭頭 */
.carousel-control-prev,
.carousel-control-next {
    display: none;
}


/* 輪播過渡效果 */
.carousel-item {
    opacity: 0;
    display: block;
    position: absolute;
    width: 100%;
    transition: opacity 0.6s ease-in-out;
}

.carousel-item.active {
    opacity: 1;
    position: relative;
    display: block;
}

.carousel-inner {
    position: relative;
}



#followme { position: fixed; right: 30px; bottom: -1000px; text-align: center; z-index: 10; }
#followme span { color: #11D073; font-size: 12px; line-height: 1.2; margin-bottom: 8px; font-weight: bold; display: block; }
#followme { right: 10px; } 

#btn_top { position: fixed; right: 30px; bottom: -1000px; z-index: 10; }
#btn_top { right: 10px; }



.imageScroll-sec {
    background-color: #fff;
    overflow: hidden;
  }
  
  .image-scroll {
    height: 50px;
    overflow: hidden;
    position: relative;
    width: 100%;
  }
  
  .image-scroll-wrapper {
    display: flex;
    position: absolute;
    animation: scroll-left 40s linear infinite;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
  
  .scroll-item {
    flex: 0 0 auto;
    height: 50px;
    padding: 0 20px;
    display: flex;
    align-items: center;
  }
  
  .scroll-item img {
    height: 100%;
    width: auto;
    object-fit: contain;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }
  
  @keyframes scroll-left {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }
  
  
  @media (max-width: 768px) {
    .scroll-item {
      padding: 0 10px;
    }
    
    .image-scroll-wrapper {
      will-change: transform;
    }
  }


  /* FOOTER */
#footer { background: #11D073; color: #333;}
#footer .footer_list ul .footer_title { font-weight: bold; padding-bottom: 15px; margin-top: 50px;}
#footer .footer_list ul .footer_contant { font-size: 16px; font-weight: 600; padding-bottom: 15px; }
#footer .footer_list ul .footer_contant span { margin-left: 70px; }
#footer .footer_list ul .footer_info { font-size: 14px; }
#footer .footer_list ul .footer_link a {  color: #333; text-decoration: none; transition: 0.5s; -webkit-transition: 0.5s; -moz-transition: 0.5s; }
#footer .footer_list ul .footer_link a:hover { transition: 0.5s; -webkit-transition: 0.5s; -moz-transition: 0.5s; color: #fff; }
#footer .footer_list ul .footer_app img { width: 100%; margin-bottom: 10px; }
