﻿/* ==========================================================================
   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;
    gap: 8px;
    z-index: 20;
    margin: 0 !important;
    width: auto !important;
}

    .hero-slider .owl-dots .owl-dot span {
        width: 10px;
        height: 10px;
        margin: 0;
        background-color: #88C6B6;
        transition: all 0.3s ease;
        border-radius: 50%;
        display: block;
    }

    .hero-slider .owl-dots .owl-dot.active span,
    .hero-slider .owl-dots .owl-dot:hover span {
        background-color: #3B7E73;
        width: 26px;
        border-radius: 6px;
    }

/* ==========================================================================
   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;
}

/* Hover 懸浮與無多餘底色修復 */
.nav-feature-card,
.feature-card-item {
    transition: all 0.3s ease;
}

    .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);
}

/* ==========================================================================
   2-1. 8 大核心功能卡片專屬背景 (純淺綠底色)
   ========================================================================== */
.bg-core-feature {
    background-color: #e8f5f1 !important; /* 搭配主題的淺薄荷綠底色 */
    border: none !important;
    border-radius: 16px !important;
    transition: all 0.3s ease;
}

/* 確保懸浮時卡片保持底色，並增加陰影浮起效果 */
.feature-card-item.bg-core-feature:hover {
    background-color: #e8f5f1 !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-4px);
}

/* ==========================================================================
   3. 通用元件與按鈕 (Buttons & Links)
   ========================================================================== */
.btn-custom-pill {
    background-color: #74BAB2;
    color: #FFFFFF;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.2s;
}

    .btn-custom-pill:hover {
        background-color: #74BAB2;
        color: #ffffff;
    }

.learn-more-link {
    color: #3b7e73;
    font-size: 0.9rem;
    text-decoration: none !important;
}

    .learn-more-link:hover {
        color: #2f695f;
    }

.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;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23666666' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
}

.custom-textarea {
    border-radius: 20px !important;
    padding: 15px 18px !important;
}

.btn-custom-submit {
    background-color: #d8d8d8;
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 10px 32px;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

    .btn-custom-submit:hover {
        background-color: #c0c0c0;
        color: #ffffff;
    }

/* ==========================================================================
   5. 系統特色頁籤 (Tabs)
   ========================================================================== */
.feature-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.feature-tab {
    background-color: #ffffff;
    color: #727272;
    border: 1px solid #ffffff;
    border-radius: 30px;
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none !important;
}

    .feature-tab:hover {
        background-color: #D9EEEA;
    }

    .feature-tab.active {
        background-color: #D9EEEA;
        color: #5CA59F;
        border-color: #D9EEEA;
        box-shadow: 0 4px 10px rgba(31, 74, 66, 0.2);
    }

.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;
}