/* New Function Page Styles */

/* ==== 平滑滾動設定 ==== */
html {
    scroll-behavior: smooth;
}

/* 外層容器 */
.function-page-container {
    width: 100%;
    background: white;
    overflow-x: hidden;
}

/* 共用 */

.action-btn {
    background: #26A7B5;
    color: white;
    font-size: 16px;
    font-family: 'PingFang TC', sans-serif;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 21.50px;
    text-decoration: none;
}
.action-btn:hover {
    background: #26A7B5;
    transform: translateY(-1px);
    transition: all 0.3s ease;
    border-radius: 21.5px;
    box-shadow: 0 4px 4px -2px rgba(0, 0, 0, 0.25);
    top: 2px;
    left: 2px;
}

/* Hero Section */
.function-hero-section {
    position: relative;
    padding: 120px 0 20px 0;
    background: #FFF;
}


/* 內容區域 */
.function-hero-section .container {
    position: relative;
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 2;
}

.feature-icon-circle {
    width: 120px;
    height: 120px;
    background: white;
    box-shadow: 0px 0px 24px -6px rgba(0, 0, 0, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 25px; /* 彼此間距 50px */
}

.feature-icon-title {
    color: #3B4C66;
    font-size: 18px;
    font-family: 'PingFang TC', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}




/* 連結樣式 */
.feature-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.feature-link:hover {
    text-decoration: none;
    color: inherit;
    transform: translateY(-5px);
}

/* 圓圈 hover 效果 */
.feature-link:hover .feature-icon-circle {
    box-shadow: 0px 8px 30px -6px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
    transition: all 0.3s ease;
}

/* Active 狀態（當前查看的區塊）*/
.feature-link.active .feature-icon-circle {
    background: #26A7B5;
}

.feature-link.active .feature-image {
    filter: brightness(0) invert(1);
}

/* 針對SVG圖片的特殊處理，避免白色方塊 */
.feature-link.active .feature-image[src*=".svg"] {
    filter: brightness(0) invert(1);
    opacity: 1;
}

/* 如果要完全避免SVG變白色，可以使用這個規則 */
.feature-link.active img.feature-image {
    filter: none;
    opacity: 0.9;
}

.feature-link.active .feature-icon-title {
    color: #26A7B5;
    font-weight: 600;
}


/* 點擊時的脈衝效果 */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(38, 167, 181, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(38, 167, 181, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(38, 167, 181, 0);
    }
}

.feature-link:active .feature-icon-circle {
    animation: pulse 0.5s;
}


/* 內容樣式 */
.function-hero-content {
    text-align: center;
}

.main-title {
    color: #2F7E9A;
    font-size: 48px;
    font-family: 'PingFang TC', sans-serif;
    font-weight: 600;
    letter-spacing: 2.40px;
}

.main-title-number {
    font-size: 48px;
}

.main-title-text {
    font-size: 36px;
}


.page-title {
    color: #2F7E9A;
    font-size: 48px;
    font-family: 'PingFang TC', sans-serif;
    font-weight: 600;
    letter-spacing: 2.40px;   
}

.page-title-text {
    font-size: 36px;
}

/* Feature Sections */
.feature-section {
    padding: 80px 0;
    position: relative;
}



.feature-section .container {
    position: relative;
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 2;
}

.feature-section.bg-light {
    background: #ECF7F8;
}

.feature-number {
    color: #3B4C66;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 20px;
}

.feature-title {
    color: #3B4C66;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 30px;
}

.feature-description {
    opacity: 0.8;
    color: #121212;
    font-size: 18px;
    font-weight: 400;
    line-height: 27px;
    letter-spacing: 0.27px;
    margin-bottom: 30px;
}

.feature-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Support Section */
.support-section {
    background: white;
    box-shadow: 0px 0px 24px -6px rgba(0, 0, 0, 0.25);
    border-radius: 6px;
    padding: 30px;
    margin: 40px 0;
}

.support-title {
    color: #26A7B5;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

/* 支援列表 - Grid 佈局 */
.support-list {
    display: grid;
    grid-template-columns: repeat(5, min-content);
    gap: 20px 25px;
    margin-top: 25px;
    justify-content: space-between;  /* 平均分佈 */
}

/* 支援項目 */
.support-item {
    display: flex;
    align-items: center;
    color: #333333;
    font-size: 18px;
    font-weight: 400;
    white-space: nowrap;
}

/* 勾選圖標 */
.support-item i {
    color: #2F7E9A;  /* 藍綠色 */
    margin-right: 8px;
    font-size: 20px;
    flex-shrink: 0;  /* 防止圖標變形 */
}

/* 查看更多按鈕 */
.view-more-btn {
    background: #26A7B5;
    border-radius: 21.5px;
    color: white;
    font-size: 20px;
    font-weight: 600;
    padding: 8px 24px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
}

.view-more-btn:hover {
    background: #fff;
    color: #26A7B5;
    border-color: #26A7B5;
    text-decoration: none;
    border: 2px solid;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
}

.icon-circle {
    background: rgba(255, 255, 255);  /* 淡白色背景 */
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.icon-circle i {
    font-size: 14px;
    margin: 0;  /* 清除預設 margin */
    color:#26A7B5;
}

/* hover 效果 */
.view-more-btn:hover .icon-circle {
    background: #26A7B5;
    transform: translateX(3px);  /* 向右移動一點 */
}

.view-more-btn:hover .icon-circle i {
    color: #fff;
    font-size: 14px;
    margin: 0;
}

/* 響應式設計 */
@media (max-width: 1200px) {
    .support-list {
        grid-template-columns: repeat(4, 1fr);  /* 中型螢幕 4 欄 */
    }
}

@media (max-width: 991px) {
    .function-hero-section {
        padding: 100px 0 0px 0;
        margin-bottom: 60px;
    }
    
    .function-hero-section::after {
        height: 400px;  /* 減小圓弧高度 */
        bottom: -80px;
    }
    
    .function-hero-title {
        font-size: 36px;
    }
    
    .function-hero-subtitle {
        font-size: 18px;
    }

    .support-list {
        grid-template-columns: repeat(3, 1fr);  /* 平板 3 欄 */
    }
    }


@media (max-width: 768px) {
    .function-hero-section {
        padding: 100px 0 40px 0;  /* 調整內距 */
        margin-bottom: 60px;
        overflow: visible;  /* 確保內容不被截斷 */
        min-height: auto;
    }
    
    /* 隱藏圓弧 */
    .function-hero-section::after {
        border-bottom-left-radius:225px 30px;
        border-bottom-right-radius:225px 30px;
        min-width:450px;
        width:100%;
        max-height: 30px;
        position: absolute;
        bottom: -20px; /* 從底部往下延伸 */

    }
    
    .function-hero-content {
        padding-bottom: 0px;
    }
    
    .function-hero-title {
        font-size: 32px;
        margin-top: 50px;
    }
    
    .function-hero-subtitle {
        font-size: 16px;
        padding: 0 20px;  /* 左右留白 */
    }

    .support-section {
        grid-template-columns: 1fr;  /* 小手機 1 欄 */
    }

    .support-list {
        grid-template-columns: repeat(2, 1fr);  /* 手機 2 欄 */
        gap: 15px 20px;
    }
    
    .support-item {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .function-hero-section {
        padding: 120px 0 30px 0;
    }
    
    .function-hero-title {
        font-size: 28px;
        margin-top: 30px;
    }
    
    .function-hero-subtitle {
        font-size: 14px;
    }

    .support-section {
        grid-template-columns: 1fr;  /* 小手機 1 欄 */
    }

    .support-list {
        grid-template-columns: 1fr;  /* 小手機 1 欄 */
    }
}

/* Interface Cards */
.interface-cards {
    display: flex;
    gap: 40px;
    margin: 40px 0;
}

.interface-card {
    background: white;
    box-shadow: 0px 0px 24px -6px rgba(0, 0, 0, 0.25);
    border-radius: 6px;
    padding: 0px;
    flex: 1;
    overflow: hidden;
}

.interface-card-header {
    background: #2F7E9A;
    border-radius: 6px;
    color: white;
    font-size: 24px;
    font-weight: 600;
    width: 135px;
    padding: 15px;
    margin: 0px;
    text-align: left;
}

.interface-card-description {
    opacity: 0.8;
    text-align: center;
    color: #121212;
    font-size: 18px;
    font-weight: 500;
    line-height: 27px;
    letter-spacing: 0.27px;
    margin-bottom: 20px;
}

.features-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    max-width: 980px;
    margin: 0 auto;
}

.feature-item {
    background: white;
    box-shadow: 0px 0px 24px -6px rgba(0, 0, 0, 0.25);
    border-radius: 6px;
    padding: 30px 15px;
    flex: 1;
    text-align: center;
}

.feature-icon {
    width: 78px;
    height: 78px;
    margin: auto;
    background: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
}


.feature-item-title {
    color: #3B4C66;
    font-size: 24px;
    font-weight: 600;
    margin: 20px 0 15px 0;
}

.feature-item-description {
    opacity: 0.8;
    color: #121212;
    font-size: 18px;
    font-weight: 400;
    line-height: 27px;
    letter-spacing: 0.27px;
}

/* Explore Section */
.explore-section {
    margin: 60px 0 40px 0;
    text-align: center;
}

.explore-section .features-grid {
    margin-top: 40px;
}

/* Specifications Section */
.specifications-section {
    padding:40px 0 40px 0;
    text-align: center;
}

.specifications-section .specs-table {
    margin-top: 40px;
}

.specifications-title {
    color: #3B4C66;
    font-size: 40px;
    font-weight: 600;
    letter-spacing: 3.6px;
    margin-bottom: 60px;
}

.specs-table {
    max-width: 980px;
    margin: 0 auto;
    background: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0px 0px 24px -6px rgba(0, 0, 0, 0.15);
}

.spec-row {
    display: flex;
    border-bottom: 1px solid #CCC;
}


.spec-header {
    width: 230px;
    background: #ECF7F8;
    border-left: 1px solid #CCC;
    padding: 10px 12px;
    color: #2F7E9A;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spec-content {
    flex: 1;
    background: white;
    border-left: 1px solid #CCC;
    border-right:1px solid #ccc;
    padding: 10px 12px;
    color: #121212;
    font-size: 18px;
    font-weight: 400;
    line-height: 27px;
    letter-spacing: 0.3px;
    text-align: left;
    display: flex;
    flex-direction: column;  /* 改為垂直排列 */
    justify-content: center;  /* 垂直置中 */
}

.spec-link {
    color: #26A7B5;
    font-weight: 600;
    text-decoration: none;
    display: inline;  /* 確保是 inline */
    white-space: nowrap;  /* 防止連結內文字換行 */
}

.spec-link:hover {
    text-decoration: underline;
}

/* 針對規格表內的列表 */
.spec-content ul {
    margin: 0;
    padding-left: 20px;
}

/* CTA Section */
.cta-section {
    background-image: url('../img/new_function/bottom_banner.webp');
    background-size: cover;    
    background-position: right bottom;
    background-repeat: no-repeat;
    margin-top: 50px;
    text-align: center;
    min-height: 300px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;  /* 垂直居中 */
    justify-content: center;  /* 水平居中 */
}


.cta-title {
    color: #FFF;
    font-size: 40px;
    font-weight: 600;
}

.cta-subtitle {
    color:#FFF;
    font-size: 28px;
    font-weight: 600;
    line-height: 48px;
    letter-spacing: 0.48px;
    margin-bottom: 40px;
}

.cta-btn {
    background: #FFF;
    color: #FE8321;
    font-size: 24px;
    font-family: 'PingFang TC', sans-serif;
    font-weight: 600;
    padding: 15px 40px;
    border-radius: 36.50px;
    width:180px;
    height: 54px;
    line-height: 25px;
    text-decoration: none;
}

.cta-btn:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 4px -3px rgba(0,0,0,0.25);
    color: #FE8321;
    text-decoration: none;
}



/* Animation */
/* 初始狀態 - 元素在下方且透明 */
.slide-up {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 觸發後 - 滑入並顯示 */
.slide-up.animate {
    opacity: 1;
    transform: translateY(0);
}

/* 淡入動畫變化 */
.fade-in {
    opacity: 0;
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.animate {
    opacity: 1;
}

/* 左側滑入 */
.slide-left {
    opacity: 0;
    transform: translateX(-80px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-left.animate {
    opacity: 1;
    transform: translateX(0);
}

/* 右側滑入 */
.slide-right {
    opacity: 0;
    transform: translateX(80px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-right.animate {
    opacity: 1;
    transform: translateX(0);
}

/* 放大效果 */
.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-in.animate {
    opacity: 1;
    transform: scale(1);
}

/* 圖片動畫效果 */
.image-animate {
    transform: scale(0.9);
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-animate.animate {
    transform: scale(1);
    opacity: 1;
}

.image-animate img {
    transition: transform 0.3s ease;
}

.image-animate:hover img {
    transform: scale(1.05);
}

/* 延遲動畫 - 移除CSS延遲，改由JavaScript統一控制 */
/* .slide-up[data-delay="200"] { transition-delay: 0.2s; }
.slide-up[data-delay="400"] { transition-delay: 0.4s; }
.slide-up[data-delay="600"] { transition-delay: 0.6s; }
.slide-up[data-delay="800"] { transition-delay: 0.8s; }
.slide-up[data-delay="1000"] { transition-delay: 1s; } */


/* RWD 順序修正 */
@media (max-width: 991px) {
    .feature-section {
        padding: 60px 0 20px 0;
    }

    /* Feature 2 和 4 的圖片順序調整 */
    .feature-section .order-last {
        order: 12 !important;
    }
    
    .feature-section .order-first {
        order: -1 !important;
    }
    
    /* 991px以下支援機構區塊對齊設定 */
    /* 支援機構標題靠左對齊 */
    .support-section .support-title {
        text-align: left !important;
    }

    /* 查看更多按鈕靠右對齊 */
    .support-section .text-lg-right,
    .support-section .col-6:last-child,
    .support-section .col-sm-6:last-child,
    .support-section .col-md-6:last-child,
    .support-section .col-lg-6:last-child {
        text-align: right !important;
    }
    
    /* 確保按鈕容器也靠右 */
    .support-section .row .col-6:last-child {
        justify-content: flex-end !important;
        align-items: center !important;
    }
}


/* 回到頂部按鈕樣式 */
#backToTop {
    position: fixed;
    bottom: 128px;
    right: 50px;
    width: 48px;
    height: 48px;
    background: var(--main-black-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(100px);
    pointer-events: none;
    border: none;
    z-index: 9999;
}

/* 按鈕顯示狀態 */
#backToTop.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* 按鈕圖標 */
#backToTop i {
    color: white;
    font-size: 20px;
    transition: transform 0.3s ease;
}

/* 懸停效果 */
#backToTop:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

#backToTop:hover i {
    transform: translateY(-2px);
}

/* 點擊效果 */
#backToTop:active {
    transform: scale(0.95);
}



/* Responsive Design */


/* 大螢幕到中等螢幕 */
/* @media (max-width: 1600px) {
    .cta-section {
        padding: 100px 0 120px 0;
        min-height: 320px;
    }
}

@media (max-width: 1400px) {
    .cta-section {
        padding: 80px 0 100px 0;
        min-height: 300px;
    }
} */

@media (max-width: 1180px) {
}

  
  /* 針對問題範圍 762-991px */
  @media (min-width: 762px) and (max-width: 991px) {
    .function-hero-section .col-md-2 {
        flex: 0 0 20% !important;
        max-width: 20% !important;
      }
    .function-hero-section .row {
        margin-left: -5px;
        margin-right: -5px;
      }
      
    .function-hero-section .col-md-2 {
        padding-left: 5px;
        padding-right: 5px;
      }


    }  


  
/* 手機版 CTA Section */
@media (max-width: 768px) {
    
    .cta-title {
        font-size: 36px;
        margin: 15px 0 10px 0;
    }
    
    .cta-subtitle {
        font-size: 25px;
        margin-bottom: 25px;
    }
    
    .cta-btn {
        font-size: 20px;
        padding: 12.5px 20px;
        width: 138px;
        height: 50px;
    }
}

  /* 更小的手機 (576px 以下) */
  @media (max-width: 575px) {
    
    .cta-title {
        font-size: 24px;
        margin: 20px 0 10px 0;
    }
    
    .cta-subtitle {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .feature-icon-circle {
      max-width: 120px;
      width: 100px;
      height: 100px;
    }
    .feature-icon {
        border-radius: 50%;
    }
  }

/* 991px 以下尺寸的 feature-image 水平置中 */
@media (max-width: 991px) {
    .feature-section .feature-image {
        max-width: 80%;
        margin: 40px 0;
    }
    
    /* 確保圖片容器也置中 */
    .feature-section .image-animate,
    .feature-section .col-lg-6:has(.feature-image) {
        text-align: center;
    }
    
    /* 01~05 區塊的說明文字置中 */
    .feature-section .feature-number,
    .feature-section .feature-title,
    .feature-section .feature-description,
    .feature-section .slide-up {
        text-align: center;
    }
    
    /* 按鈕也置中 */
    .feature-section .action-btn {
        display: inline-block;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .function-hero-section {
        padding: 150px 20px 0px 20px;
    }
    
    .function-hero-title {
        font-size: 28px;
        letter-spacing: 2px;
    }
    
    .function-hero-subtitle {
        font-size: 18px;
        line-height: 32px;
    }
    
    .feature-title {
        font-size: 24px;
    }
    
    .feature-description {
        font-size: 16px;
    }
    
    .interface-cards {
        flex-direction: column;
        gap: 20px;
    }
    
    .features-grid {
        flex-direction: column;
        gap: 20px;
    }
    
    .spec-row {
        flex-direction: column;
    }
    
    .spec-header {
        width: 100%;
        border-left: none;
        border-top: 1px solid #44A3B8;
    }
    
    .spec-content {
        border-left: none;
        border-top: 1px solid #CCCCCC;
    }
    
    .cta-title {
        font-size: 32px;
    }
    
    .cta-subtitle {
        font-size: 24px;
    }
    
    .support-list {
        flex-direction: column;
        gap: 15px;
    }
    
    .financial-reports {
        transform: scale(0.8);
    }

    #backToTop {
        bottom: 60px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    #backToTop i {
        font-size: 18px;
    }

    .feature-image {
        max-width: 90%;
        margin: 30px 0 30px 0;
    }

}

@media (max-width: 480px) {

    .feature-section {
        padding: 20px 0 20px 0;
    }
    
    
    .specifications-title {
        font-size: 28px;
        letter-spacing: 2px;
    }
}
