﻿/* ==========================================================================
   1. 最上方區塊：Fullscreen Banner & Carousel
   ========================================================================== */
#home.fullscreen-banner {
    position: relative;
    background-image: url('../images/bg/Showcase.svg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    min-height: auto !important;
    height: auto !important;
    overflow: hidden;
}

    #home.fullscreen-banner > * {
        position: relative;
        z-index: 2;
    }

.hero-slide-item {
    padding-top: 110px;
    width: 100%;
}

.hero-slide-item .container {
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100%;
}

/* Owl Carousel 對齊與指示點 */
.hero-slider .owl-stage-outer {
    width: 100%;
}

.hero-slider .owl-stage,
.hero-slider .owl-item {
    display: flex !important;
    justify-content: center !important;
    width: 100%;
}

.hero-slider .owl-dots {
    position: absolute !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 20;
    margin: 0 !important;
}
/* 2. 重置按鈕預設樣式 */
.hero-slider .owl-dots .owl-dot {
    background: none !important;
    outline: none !important;
    border: none !important;
    padding: 0 !important;
}

.hero-slider .owl-dots .owl-dot span {
    width: 12px !important;
    height: 12px !important;
    margin: 0 !important;
    background-color: transparent !important; /* 清除原本的底色 */
    background-image: url('../images/feature/Button.svg') !important; /* 請替換為您的圖片路徑 */
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    border-radius: 0 !important;                /* 清除圓角設定 */
    transition: all 0.3s ease;       /* 切換平滑效果 */
    display: block !important;
}

.hero-slider .owl-dots .owl-dot.active span,
.hero-slider .owl-dots .owl-dot:hover span {
    width: 16px !important;                          /* 保持相同的圓形寬度 (不要改成 32px) */
    height: 16px !important;
    background-color: transparent !important;        /* 【關鍵】清除原本的白色背景 */
    background-image: url('../images/feature/Button.svg') !important; /* 選取中的圓點 SVG */
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

/* ==========================================================================
   2. 導覽卡片 (Feature Cards)
   ========================================================================== */
.bg-light-card {
    background: radial-gradient(circle at 90% 10%, rgba(116, 186, 178, 0.3) 0%, rgba(255, 255, 255, 0) 55%), #ffffff !important;
    border: 1px solid #e0f0ed !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    transition: all 0.3s ease;
}
.feature-card-item h5 {
    font-size: 18px;
    line-height:1.5;
    font-weight:600;
}
.feature-card-item p {
    font-size: 16px;
    line-height: 1.75;
    font-weight: 400;
}
/* Hover 懸浮與無多餘底色修復 */
.nav-feature-card,
.feature-card-item {
    transition: all 0.3s ease;
}

.nav-feature-card h5{font-size: 18px; font-weight: 600;line-height:1.5;}
.nav-feature-card p{ color: #535353;font-size: 16px; font-weight: 400;line-height:1.75;}

.nav-feature-card:hover,
.feature-card-item:hover,
.bg-light-card:hover {
    background-color: transparent !important;
    border: none !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-4px);
}

.feature-card-icon {
    width: 38px;
    height: 38px;
    background-color: #74BAB2;
    color: #ffffff;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
/* 讓 .feature-card-icon 裡面的圖片變成白色 */
.feature-card-icon img.custom-icon,
.feature-card-icon img {
    filter: brightness(0) invert(1); /* 會把任何顏色的 SVG 轉成純白色 */
    width: 22px;                      /* 順便控制圖示大小 */
    height: 22px;
    object-fit: contain;
}

/* ==========================================================================
   2-1. 8 大核心功能卡片專屬背景 (純淺綠底色)
   ========================================================================== */
.bg-core-feature {
    background: var(--Card-background-soild, #D9EEEA) !important;
    border-radius: var(--md, 24px) !important;
    border: none !important;
    padding: 28px 24px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important; /* 讓內容上下分散對齊，自動補齊高度差 */
    height: 100% !important;
    transition: all 0.3s ease;
}

/* 確保懸浮時卡片保持底色，並增加陰影浮起效果 */
.feature-card-item.bg-core-feature:hover {
    background: var(--Card-background-soild, #D9EEEA) !important;
    box-shadow: none !important;
    transform: none !important;
}

/* 圖示與下方文字的距離 */
.bg-core-feature .feature-card-icon {
    margin-bottom: 20px !important; /* 確保圖示下方保留固定距離 */
}

/* 標題規格 (對應第一張圖) */
.bg-core-feature h5 {
    color: var(--text-primary, #404040) !important;
    font-family: "Noto Sans TC", sans-serif !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 150% !important; /* 27px */
    margin-bottom: 8px !important;
}

/* 內容規格 (對應第二張圖) */
.bg-core-feature p {
    color: var(--text-secondary, #535353) !important;
    font-family: "Noto Sans TC", sans-serif !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 175% !important; /* 28px */
    margin-bottom: 0 !important;
}

/* ==========================================================================
   3. 通用元件與按鈕 (Buttons & Links)
   ========================================================================== */
.btn-custom-pill {
    background-color: #74BAB2;
    color: #FFFFFF;
    border-radius: 32px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-custom-pill:hover {
    background-color: #5CA59F;
    color: #ffffff;
}

.learn-more-link {
    color: #5CA59F;
    font-size: 13px;
    line-height: 1.4;
    text-decoration: none !important;
}

.learn-more-link:hover {
    color: #428A85;
}

.custom-check-list .check-icon {
    width: 26px;
    height: 26px;
    background-color: #e8f5f1;
    color: #3b7e73;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-top: 3px;
}

.custom-check-list .lead-text,
.lead-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #4a5568;
}

.overview-card-preview,
.core-card-preview {
    border-radius: 16px !important;
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
}

.custom-tag {
    background-color: #F4F9F8;
    display: inline-block;
    border: 2px solid #F4F9F8;
    color: #74BAB2;
    border-radius: 20px;
    padding: 6px 18px;
    font-size: 13px;
    font-weight: 500;
    margin-right: 8px;
    margin-bottom: 8px;
}

.rounded-custom {
    border-radius: 16px !important;
}

.line-banner-card {
    /*background: linear-gradient(135deg, #41867a 0%, #2f695f 50%);*/
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* ==========================================================================
   4. 表單元件 (Forms)
   ========================================================================== */
.custom-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: #333333;
    margin-bottom: 6px;
}

.custom-input {
    background-color: #f9f9f9 !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 20px !important;
    padding: 10px 18px !important;
    height: auto !important;
    font-size: 0.95rem !important;
    color: #333333 !important;
    box-shadow: none !important;
}

.custom-input::placeholder {
    color: #a0a0a0;
}

.custom-input:focus {
    background-color: #ffffff !important;
    border-color: #b0b0b0 !important;
}

.custom-select-icon {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right 18px center !important;
    background-size: 14px !important;
    padding-right: 40px !important;
}

.custom-textarea {
    border-radius: 20px !important;
    padding: 15px 18px !important;
}

.btn-custom-submit {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 32px !important; /* 對應設計稿的 var(--lg, 32px) 圓角 */
    padding: 10px 32px !important;
    font-size: 1rem;
    font-weight: 600;
    border: none !important;
    transition: all 0.3s ease;
}

/* 預設：未填滿必填項目時（灰色 / 不可按樣式） */
.btn-custom-submit:not(.active),
.btn-custom-submit {
    background-color: #E8E8E8 !important;
    color: #999999 !important;
    cursor: not-allowed;
    box-shadow: none !important;
}

/* 填滿必填項目時（激活 / 可點擊樣式） */
.btn-custom-submit.active {
    background-color: #D9EEEA !important; /* 主題淺綠色底 */
    color: #5CA59F !important;          /* 主題綠色文字 */
    cursor: pointer;
    box-shadow: none !important;
}

.btn-custom-submit.active:hover {
    background-color: #cbe6e2 !important;
    color: #428A85 !important;
}

/* ==========================================================================
   5. 系統特色頁籤 (Tabs)
   ========================================================================== */
/* 會自動換行樣式*/
/*.feature-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}*/
.feature-tabs {
    display: flex;
    flex-wrap: nowrap !important; /* 強制不換行，全部排在同一列 */
    overflow-x: auto !important; /* 允許水平捲動 */
    overflow-y: hidden;
    gap: 12px;
    justify-content: flex-start !important; /* 確保內容靠左對齊 */
    padding-bottom: 10px; /* 留出空間給手機端的捲動軸 */
    -webkit-overflow-scrolling: touch; /* 讓 iOS 裝置滑動更流暢 */
}
/* 隱藏捲動軸但保持滑動功能（可選，讓畫面更清爽） */
.feature-tabs::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}
.feature-tabs {
    -ms-overflow-style: none; /* IE, Edge */
    scrollbar-width: none; /* Firefox */
}

/* 確保每個按鈕不會被強制壓縮變形 */
.feature-tab {
    flex-shrink: 0 !important; /* 防止按鈕在空間不足時被擠壓縮小 */
    white-space: nowrap !important; /* 文字不換行 */
}

.feature-tab {
    background-color: #f7f9f8;
    color: #666666;
    border: none !important;
    border-radius: 30px;
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
    outline: none !important;
    box-shadow: none !important;
    transform: none !important;
}

.feature-tab:hover {
    background-color: #f7f9f8;
    color: #5CA59F !important; /* hover 時字體變成主題綠色 */
    box-shadow: none !important;
    transform: none !important;
}

/* 選取中 (Active)：維持淺綠底色與指定字色，無陰影與浮動 */
.feature-tab.active {
    background-color: #D9EEEA !important; /* 選取時的淺綠色底 */
    color: #5CA59F !important;          /* 選取時的文字顏色 */
    border-color: #D9EEEA !important;
    box-shadow: none !important;        /* 確保完全沒有陰影 */
    transform: none !important;       /* 確保完全沒有浮起效果 */
}

.feature-panel {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

    .feature-panel.active {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 預設：未填滿必填項目時（灰色/不可按樣式） */
.btn-custom-submit {
    background-color: #cccccc !important;
    border-color: #cccccc !important;
    color: #666666 !important;
    transition: all 0.3s ease;
    cursor: not-allowed;
}

/* 填滿必填項目時（亮綠色/激活樣式） */
.btn-custom-submit.active {
    background-color: #D9EEEA !important; /* 請替換為您主題的主色調 */
    border-color: #D9EEEA !important;
    color: #5CA59F !important;
    cursor: pointer;
}

.serviceTitle {
    font-family: "Noto Sans TC";
    font-size: 26px;
    font-style: normal;
    font-weight: 600;
    line-height: 140%; 
}
.serviceInfo {
    font-family: "Noto Sans TC";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 175%; /* 28px */
}
/* 服務圖片的設定 */
section[id^="service"] .bg-white {
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* 靠下 */
    align-items: flex-end; /* 靠右 */
    gap: 10px;
    padding: 32px 15px; /* 調整適合網頁的 padding，避免設計稿的 88px 在窄螢幕留白過多 */
}

/* ==========================================================================
   特色亮點頁面：內容文字排版規格 
   ========================================================================== */
.feature-panel .lead-text {
    color: var(--text-secondary, #535353) !important;
    font-family: "Noto Sans TC", sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 175% !important; /* 28px */
    margin-bottom: 0 !important;
}
/* 強制覆寫 Google 預設的 reCAPTCHA 樣式，固定在畫面左下角並縮小 */
.grecaptcha-badge {
    position: fixed !important; /* 使用固定定位貼齊視窗 */
    bottom: 10px !important;    /* 距離視窗底部 10px */
    left: 10px !important;      /* 距離視窗左側 10px */
    right: auto !important;     /* 清除預設靠右 */
    top: auto !important;       /* 清除預設定位 */
    transform: scale(0.1) !important; /* 將整體縮小至 65%，不佔空間 */
    transform-origin: left bottom !important; /* 以左下角為縮放基準 */
    z-index: 9999 !important;   /* 確保不會被其他元素蓋住 */
    opacity: 0.6;               /* 半透明顯示，降低存在感 */
    transition: opacity 0.3s ease;
}

/* 滑鼠移過去時才恢復清晰 */
.grecaptcha-badge:hover {
    opacity: 1;
    transform: scale(0.5) !important;
}