﻿/* --- Source: css\faq-connect.css --- */
/* =========================================
   FAQ 常見問題區塊 (手風琴樣式)
========================================= */
.faq-section {
    /* 已移除 background-color: #ffffff; 讓外層的 gray-bg 可以正常顯現 */
    padding: 80px 0;
}

/* 手風琴外層卡片：獨立懸浮感 */
.faq-card {
    background-color: #ffffff;
    border-radius: 10px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    border: 1px solid #eaeaea;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
}

/* 展開按鈕：排版與基礎狀態 */
.faq-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 1.15rem;
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
    border-left: 4px solid transparent; 
    text-decoration: none !important;
}

.faq-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.faq-icon-left {
    color: #ffdc19; /* Icon 維持原本明亮的品牌黃，保留視覺亮點 */
    font-size: 1.3rem;
    width: 24px;
    text-align: center;
}

.faq-chevron {
    color: #999;
    font-size: 1rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   Hover 與 展開狀態 (顏色與背景調整)
========================================= */
.faq-btn:hover {
    background-color: #f9fafb; /* 滑鼠移入時，按鈕底色變成極淡灰 */
    color: #ccaa01; /* 將 #ffdc19 亮度大幅調暗，轉為暗金色以確保閱讀性 */
}

/* 展開時的狀態 */
.faq-btn[aria-expanded="true"] {
    color: #ccaa01; 
    background-color: #f4f5f7; /* 展開時的標題底色改為淡灰 */
    border-left: 4px solid #ffdc19; /* 左側飾條維持明亮黃色，營造層次感 */
}

.faq-btn[aria-expanded="true"] .faq-chevron {
    transform: rotate(180deg);
    color: #ccaa01;
}

/* 內文區塊：指定為淡灰色 */
.faq-body {
    padding: 0 24px 24px 24px;
    background-color: #ffffff; /* 與展開標題相同的淡灰色，產生視覺延伸感 */
    color: #4b5563; 
    line-height: 1.7;
}

.faq-body p {
    margin-bottom: 0;
}

.faq-body ul {
    margin-top: 10px;
    margin-bottom: 20px;
    padding-left: 20px;
}

.faq-body li {
    margin-bottom: 8px;
}

/* --- Source: css\connect-ai-section.css --- */
/* ==========================================================================
   CONNECT AI Assistant 模組
   ========================================================================== */

.connect-ai-module {
    background-color: var(--ai-bg, #ffffff);
    padding: 100px 0;
    overflow: hidden;
    /* 防止滾動動畫溢出 */
}

/* 標題與引言 */
.connect-ai-module .ai-header {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 4rem auto;
}

.connect-ai-module .ai-intro {
    color: #4b5563;
    font-size: 1.15rem;
    line-height: 1.8;
    margin-top: 1rem;
}

/* 非對稱網格佈局 */
.connect-ai-module .ai-split-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    align-items: center;
    /* 💡 關鍵修復：利用 Grid 讓左右兩側永遠垂直置中 */
    margin-bottom: 5rem;
}

/* 左側黏性區塊 */
.connect-ai-module .ai-media-column {
    position: relative;
    height: 100%;
}

.connect-ai-module .ai-sticky-wrapper {
    position: sticky;
    top: 120px;
    /* 移除 transform，還原為基礎的頂部距離即可 */
    z-index: 2;
}

/* 科技感 GIF 容器 */
.connect-ai-module .ai-gif-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    background: #f8fafc;
    border: 1px solid #f1f5f9;
}

.connect-ai-module .ai-gif {
    width: 100%;
    height: auto;
    display: block;
}

/* 玻璃反光特效 (營造螢幕感) */
.connect-ai-module .glass-glare {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

/* 右側特色卡片列表 */
.connect-ai-module .ai-features-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.connect-ai-module .ai-feature-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #f3f4f6;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.connect-ai-module .ai-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 123, 138, 0.08);
    /* 科勝色微光陰影 */
    border-color: #e5e7eb;
}

.connect-ai-module .card-icon svg {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    padding: 6px;
    background: rgba(0, 137, 167, 0.1);
    border-radius: 8px;
}

.connect-ai-module .card-text h3 {
    font-size: 1.3rem;
    color: #111827;
    margin-top: 0;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.connect-ai-module .card-text p {
    font-size: 1rem;
    line-height: 1.7;
    color: #4b5563;
    margin: 0;
}

/* 信任錨點 (企業級資安) */
.connect-ai-module .ai-trust-anchor {
    background: linear-gradient(135deg, #f0fbfb 0%, #ffffff 100%);
    /* 極淡的科勝藍綠漸層 */
    border-left: 6px solid #007b8a;
    border-radius: 12px;
    padding: 3rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.connect-ai-module .trust-icon svg {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.connect-ai-module .trust-content h3 {
    font-size: 1.5rem;
    color: #007b8a;
    /* 強調信任感 */
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 700;
}

.connect-ai-module .trust-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #374151;
    margin: 0;
}

.connect-ai-module .trust-content strong {
    color: #111827;
    font-weight: 700;
}

/* RWD 響應式 */
@media (max-width: 991px) {
    .connect-ai-module .ai-split-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        align-items: start;
        /* 💡 手機版轉為垂直排列時，必須改回靠上對齊，動線才順暢 */
    }

    .connect-ai-module .ai-sticky-wrapper {
        position: relative;
        top: 0;
    }

    .connect-ai-module .ai-trust-anchor {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .connect-ai-module .trust-icon svg {
        width: 48px;
        height: 48px;
    }
}

/* 進入畫面的動畫初始狀態 */
.reveal-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   GIF 放大互動提示 (Hover State)
   ========================================================================== */
.connect-ai-module .zoomable-gif {
    cursor: zoom-in;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

/* 滑鼠懸停時產生 CONNECT 品牌色的科技微光陰影 */
.connect-ai-module .zoomable-gif:hover {
    transform: translateY(-4px) scale(1.01);
    /* 💡 關鍵修改：將原本的藍綠色替換為 CONNECT 黃色 (RGB: 255, 220, 25) */
    box-shadow: 0 15px 35px rgba(255, 220, 25, 0.35);
}

/* ==========================================================================
   AI 模組 - 多重 GIF 堆疊與智慧聚焦 (Smart Focus Stack)
   ========================================================================== */

/* 1. 堆疊容器排版 */
.connect-ai-module .ai-gif-stack {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    /* 電腦版保持寬敞的呼吸空間 */
    width: 100%;
}

/* 2. 確保 GIF 本身有平滑過渡設定 */
.connect-ai-module .ai-gif-container {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center center;
}

/* 3. 💡 專家級 UX 微互動：智慧聚焦 (Focus Hover) */
/* 當滑鼠停留在整個 Stack 區域時，將「沒有被 Hover」的那個 GIF 變暗並微縮 */
.connect-ai-module .ai-gif-stack:hover .ai-gif-container:not(:hover) {
    opacity: 0.4;
    transform: scale(0.96);
    filter: grayscale(30%);
    /* 加上微微的灰階，進一步降低視覺干擾 */
}

/* 4. RWD 手機版與小筆電防呆微調 */
@media (max-width: 991px) {
    .connect-ai-module .ai-gif-stack {
        gap: 1.5rem;
        /* 手機版縮小間距，避免畫面被過度拉長 */
    }

    /* 手機版通常沒有游標 Hover，建議取消變暗特效，保持清晰 */
    .connect-ai-module .ai-gif-stack:hover .ai-gif-container:not(:hover) {
        opacity: 1;
        transform: none;
        filter: none;
    }
}

/* 5. 確保小螢幕筆電的極限高度不被截斷 */
@media (max-height: 800px) and (min-width: 992px) {
    .connect-ai-module .ai-gif {
        max-height: 32vh;
        /* 如果螢幕高度太矮，強制等比例縮小，保護 Sticky 行為 */
        object-fit: contain;
    }
}

/* ==========================================================================
   AI 模組 - GIF 雙欄展示畫廊 (Gallery Layout)
   ========================================================================== */
.connect-ai-module .ai-gif-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 電腦版完美對稱雙欄 */
    gap: 2.5rem;
    max-width: 1000px;
    /* 限制最大寬度，避免在大螢幕上 GIF 被拉得過度巨大 */
    margin: 0 auto;
}

/* 確保 GIF 容器擁有高級科技陰影與圓角 (沿用原有的 ai-gif-container 特效) */
.connect-ai-module .ai-gif-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    background: #ffffff;
    border: 1px solid #e5e7eb;
    /* 防禦 CLS：設定基礎比例 */
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
}

.connect-ai-module .ai-gif {
    width: 100%;
    height: auto;
    display: block;
}

/* RWD 手機版防呆 */
@media (max-width: 768px) {
    .connect-ai-module .ai-gif-gallery {
        grid-template-columns: 1fr;
        /* 手機版自動轉為上下堆疊 */
        gap: 1.5rem;
    }
}

/* --- Source: css\connect-atlas-tabs.css --- */
/* ==========================================================================
   Utitech Atlas Tab Module & Lightbox Styles
   ========================================================================== */

/* 基礎佈局與美學設定 */
.connect-atlas-module {
    background-color: #ffffff;
    padding: 80px 0;
    border-radius: 0;
    /* 捨棄生硬陰影，改用國際級 SaaS 常用的極柔和廣域陰影 */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.connect-atlas-module .atlas-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3.5rem;
    text-align: center;
}

.connect-atlas-module .atlas-subtitle {
    max-width: 800px;
    color: #4b5563;
    /* 使用更舒適的深灰色代替純黑 */
    font-size: 1.15rem;
    line-height: 1.7;
    margin-top: 1rem;
}

/* 網格與排版 */
.connect-atlas-module .atlas-content {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.connect-atlas-module .atlas-menu {
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e5e7eb;
    /* 現代化的極淡邊界線 */
    padding-right: 1.5rem;
    width: 280px;
    flex-shrink: 0;
}

/* 現代化按鈕微互動 (Micro-interactions) */
.connect-atlas-module .tab-btn {
    background: transparent;
    border: none;
    color: #6b7280;
    text-align: left;
    padding: 1rem 1.2rem;
    cursor: pointer;
    /* 加入頂尖平滑曲線 */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.05rem;
    font-weight: 600;
    border-left: 3px solid transparent;
    border-radius: 0 8px 8px 0;
    margin-bottom: 4px;
}

/* 結合 CONNECT 品牌色 #ffdc19 */
.connect-atlas-module .tab-btn.active {
    color: #111827;
    /* 文字用極深灰，確保在黃色系旁的閱讀對比度 */
    font-weight: 700;
    border-left: 4px solid #ffdc19;
    background-color: rgba(255, 220, 25, 0.15);
    /* 極淡的黃色背景 */
}

.connect-atlas-module .tab-btn:hover:not(.active) {
    color: #111827;
    background-color: #f3f4f6;
    transform: translateX(4px);
    /* 滑鼠懸停時微微向右浮動，增加指向性 */
}

/* 內容區塊動畫機制 */
.connect-atlas-module .atlas-detail {
    flex: 1;
    overflow: hidden;
    position: relative;
    min-height: 400px;
}

.connect-atlas-module .tab-content {
    display: none;
    /* ⚠️ 將這裡原本的 opacity: 0; 刪除，讓透明度控制完全交給內部的文字與圖片 */
    align-items: center;
    gap: 2rem;
}

.connect-atlas-module .tab-content.active {
    display: flex;
    opacity: 1;
    /* 確保父層是 100% 可見的 */
}

/* 科技感標題黃色飾條 */
.connect-atlas-module .tab-content h3 {
    color: #111827;
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1.2rem;
    border-left: 5px solid #ffdc19;
    padding-left: 14px;
    line-height: 1.3;
}

.connect-atlas-module .tab-content p {
    line-height: 1.8;
    color: #4b5563;
    font-size: 1.05rem;
}

/* 進場動畫設定 (左右交錯滑入) */
.connect-atlas-module .content-text {
    flex-basis: 55%;
    transform: translateX(-30px);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.6s ease-out;
}

.connect-atlas-module .content-image {
    flex-basis: 45%;
    transform: translateX(30px);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.6s ease-out;
    transition-delay: 0.1s;
    /* 圖片稍微延遲進場，創造層次感 */
}

.connect-atlas-module .tab-content.is-animated .content-text,
.connect-atlas-module .tab-content.is-animated .content-image {
    transform: translateX(0);
    opacity: 1;
}

/* 圖片與影片容器 */
.connect-atlas-module .content-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* 可放大圖片的提示游標 */
.connect-atlas-module .zoomable-img {
    cursor: zoom-in;
}

.connect-atlas-module .zoomable-img:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(0, 123, 138, 0.15);
    /* 融入科勝主色調的陰影 */
}

/* 完美的影片 16:9 比例 */
.connect-atlas-module .video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.connect-atlas-module .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}


/* ==========================================================================
   全域動態 Lightbox (毛玻璃特效)
   ========================================================================== */
.utitech-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 24, 39, 0.85);
    /* 頂尖企業常用的深灰色背景 */
    backdrop-filter: blur(8px);
    /* 現代化毛玻璃 */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.utitech-lightbox-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   全域動態 Lightbox (毛玻璃特效) - 修正手機版塌陷問題
   ========================================================================== */

/* 1. 修正內容容器 */
.utitech-lightbox-content {
    position: relative;
    width: 100%;
    /* 💡關鍵修復：強制賦予 100% 寬度，防止手機版寬高計算為 0 */
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    /* 確保內容置中對齊 */
    justify-content: center;
    align-items: center;
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.utitech-lightbox-overlay.is-active .utitech-lightbox-content {
    transform: scale(1);
}

/* 2. 修正圖片本身 */
.utitech-lightbox-content img {
    display: block;
    /* 💡關鍵修復：取消 img 預設的 inline 屬性，防止異常縮放 */
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 85vh;
    /* 稍微縮小至 85vh，避免被 iOS Safari 底部的虛擬網址列裁切 */
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.utitech-lightbox-close {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 44px;
    height: 44px;
    background: #007b8a;
    /* 科勝主品牌色 */
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease, transform 0.3s ease;
}

.utitech-lightbox-close:hover {
    background: #0089A7;
    transform: rotate(90deg);
    /* 關閉按鈕旋轉微互動 */
}

/* ==========================================================================
   響應式設計 (RWD)
   ========================================================================== */
@media (max-width: 991px) {
    .connect-atlas-module .atlas-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .connect-atlas-module .atlas-menu {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        padding-right: 0;
        padding-bottom: 1rem;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .connect-atlas-module .tab-btn {
        border-left: none;
        border-bottom: 3px solid transparent;
        border-radius: 8px 8px 0 0;
        padding: 0.6rem 1rem;
    }

    .connect-atlas-module .tab-btn.active {
        border-left: none;
        border-bottom: 4px solid #ffdc19;
    }

    .connect-atlas-module .tab-btn:hover:not(.active) {
        transform: translateY(-2px);
        /* 手機版改為向上浮動 */
    }

    .connect-atlas-module .tab-content.active {
        flex-direction: column;
    }

    .connect-atlas-module .content-text,
    .connect-atlas-module .content-image {
        flex-basis: 100%;
        transform: translateY(20px);
        /* 手機版改為由下往上滑入 */
    }

    .connect-atlas-module .content-image {
        order: -1;
        /* 將圖片/影片移至文字上方，符合行動裝置閱讀動線 */
    }
}

/* ==========================================================================
   內容區塊 CTA 按鈕 (Call to Action)
   ========================================================================== */
.connect-atlas-module .cta-btn {
    display: inline-flex;
    align-items: center;
    margin-top: 1.5rem;
    padding: 10px 24px;
    background-color: #007b8a;
    /* 科勝主品牌色 */
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    /* 現代感的精緻圓角 */
    /* 頂尖科技業常用的平滑過渡曲線 */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 123, 138, 0.2);
    /* 融入品牌色的柔和陰影 */
}

.connect-atlas-module .cta-btn:hover {
    background-color: #005f6b;
    /* Hover 時適度加深以增加點擊回饋 */
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    /* 懸停時微微上浮，強化可點擊暗示 */
    box-shadow: 0 6px 16px rgba(0, 123, 138, 0.35);
    /* 陰影隨上浮加深 */
}

/* 確保按鈕在手機版 (RWD) 也有完美的間距 */
@media (max-width: 991px) {
    .connect-atlas-module .cta-btn {
        margin-top: 1rem;
        width: 100%;
        /* 手機版建議讓按鈕滿版，增加手指點擊範圍 (Touch Target) */
        justify-content: center;
    }
}

/* ==========================================================================
   產品簡介與影音模組 (CWV 零 CLS 偏移優化)
   ========================================================================== */
.connect-intro-module {
    background-color: var(--bg-color, #ffffff);
    padding: 80px 0;
    overflow: hidden;
}

.connect-intro-module .intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    /* 讓文字與影片垂直置中對齊 */
}

/* 影片容器：防禦 CLS 與高級立體感陰影 */
.connect-intro-module .video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 強制鎖定完美 16:9 比例 */
    border-radius: 16px;
    /* 現代感圓角 */
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
    background: #f8f9fa;
    /* 載入前的骨架佔位色 */
    transform: translateZ(0);
    /* 啟用 GPU 硬體加速，確保邊緣平滑 */
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.connect-intro-module .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* RWD 手機版自動流暢堆疊 */
@media (max-width: 991px) {
    .connect-intro-module .intro-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* ==========================================================================
   全域共用：CONNECT 主力行為呼籲按鈕 (Primary CTA)
   ========================================================================== */
.connect-cta-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 1.5rem;
}

.connect-primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background-color: #ffdc19;
    /* CONNECT 品牌主色調 */
    color: #111827;
    /* 嚴格遵守 WCAG：高明度黃底必須搭配極深灰，確保絕佳易讀性 */
    border-radius: 8px;
    /* 現代化的微圓角 */
    text-decoration: none !important;
    font-weight: 700;
    font-size: 1.1rem;
    border: 1px solid transparent;
    cursor: pointer;

    /* 頂尖科技業愛用的硬體加速平滑過渡曲線 */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(255, 220, 25, 0.25);
    /* 帶有品牌色溫度的環境光陰影 */
}

/* Hover 微互動：上浮與陰影加深 */
.connect-primary-btn:hover {
    background-color: #e6c616;
    /* 滑鼠懸停時適度調暗 */
    color: #111827;
    transform: translateY(-3px);
    /* 微微上浮，強化可點擊暗示 */
    box-shadow: 0 8px 24px rgba(255, 220, 25, 0.4);
    /* 陰影隨上浮而擴散 */
}

/* Active 點擊回饋：按壓下沉 */
.connect-primary-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 220, 25, 0.2);
}

/* 手機版 (RWD) 防呆微調 */
@media (max-width: 768px) {
    .connect-primary-btn {
        width: 100%;
        /* 手機版讓主力 CTA 滿版，極大化手指觸控區域 (Touch Target) */
        padding: 14px 24px;
    }
}

/* ==========================================================================
   無縫整合與數據架構模組 (Architecture Module) - CWV Optimized
   ========================================================================== */
.connect-architecture-module {
    background: linear-gradient(to bottom, #ffffff 0%, rgba(255, 220, 25, 0.08) 100%);
    padding: 100px 0;
    overflow: hidden;
    position: relative;
}

.connect-architecture-module .arch-header {
    max-width: 950px;
    margin: 0 auto 4rem auto;
}

/* --- 科技感玻璃容器與光暈特效 --- */
.connect-architecture-module .arch-image-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    z-index: 1;
}

/* 底部環境光暈 (Ambient Glow) - 利用 GPU 加速渲染，零效能負擔 */
.connect-architecture-module .arch-image-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    transform: translate(-50%, -50%);
    /* 移除原本的藍綠色，改用純粹的 CONNECT 黃色高光漸層 (RGB: 255, 220, 25) */
    background: radial-gradient(circle, rgba(255, 220, 25, 0.25) 0%, rgba(255, 220, 25, 0.05) 50%, transparent 80%);
    filter: blur(40px);
    z-index: -1;
    pointer-events: none;
}

/* 玻璃容器基礎狀態 */
.connect-architecture-module .arch-glass-container {
    background: #ffffff;
    border-radius: 20px;
    padding: 3rem;
    /* 💡 陰影與邊框也染上極淡的 CONNECT 黃色，呼應光暈 */
    box-shadow: 0 20px 50px rgba(255, 220, 25, 0.08), 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(255, 220, 25, 0.2);
    position: relative;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    cursor: zoom-in;
}

/* 玻璃容器懸停狀態 (Hover) */
.connect-architecture-module .arch-glass-container:hover {
    transform: translateY(-6px);
    /* 💡 懸停時，讓 CONNECT 黃色的發光感強烈擴散 */
    box-shadow: 0 30px 60px rgba(255, 220, 25, 0.15), 0 8px 25px rgba(255, 220, 25, 0.25);
    border-color: rgba(255, 220, 25, 0.5);
    /* 邊框高光提亮 */
}

/* 圖片防塌陷設定 (Zero CLS) */
.connect-architecture-module .arch-glass-container img {
    width: 100%;
    height: auto;
    display: block;
    min-height: 400px;
    /* 強制預留高度，防止 SVG 載入較慢時引發版面跳動 */
    object-fit: contain;
}

/* 點擊放大提示標籤 */
.connect-architecture-module .arch-zoom-hint {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: rgba(17, 24, 39, 0.75);
    backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    /* 確保不阻擋圖片點擊 */
}

.connect-architecture-module .arch-glass-container:hover .arch-zoom-hint {
    opacity: 1;
    transform: translateY(0);
}

/* --- RWD 手機版優化 --- */
@media (max-width: 991px) {
    .connect-architecture-module .arch-glass-container {
        padding: 1.5rem;
        /* 手機版縮減內距，把空間還給架構圖 */
        border-radius: 12px;
    }

    .connect-architecture-module .arch-glass-container img {
        min-height: 250px;
        /* 手機版相應縮小基礎高度 */
    }

    .connect-architecture-module .arch-zoom-hint {
        display: none;
        /* 手機版空間寶貴，且使用者習慣直接點擊，隱藏文字提示 */
    }
}

/* ==========================================================================
   企業級資安與合規模組 (Trust & Security)
   ========================================================================== */
.connect-security-module {
    /* 使用炭黑藍色漸層，營造深不可測的防禦感 */
    background: linear-gradient(135deg, #0b1120 0%, #111827 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* 頂部主視覺盾牌 Icon 樣式 */
.connect-security-module .header-shield-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffdc19;
    /* CONNECT 黃色 */
    margin-bottom: 1.5rem;
    /* 強烈的科技發光感 */
    filter: drop-shadow(0 0 20px rgba(255, 220, 25, 0.4));
    animation: float-shield 4s ease-in-out infinite;
}

@keyframes float-shield {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* --- 三欄位網格佈局 --- */
.connect-security-module .security-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

/* --- 資安特點卡片 (Dark Glassmorphism) --- */
.connect-security-module .security-card {
    background: rgba(255, 255, 255, 0.03);
    /* 極透的毛玻璃底色 */
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* 微微的白邊勾勒輪廓 */
    border-radius: 16px;
    padding: 2.5rem 2rem;
    backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* ==========================================================================
   企業級資安與合規模組 - 卡片互動 (純化為 CONNECT 品牌黃)
   ========================================================================== */

/* 卡片頂部的微光裝飾線 (預設為極淡的 CONNECT 黃色) */
.connect-security-module .security-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 220, 25, 0.3), transparent);
    transition: background 0.4s ease;
}

/* 懸停互動 (Hover State)：防禦能量場啟動 */
.connect-security-module .security-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 220, 25, 0.4);
    /* 💡 邊框轉為 CONNECT 黃色 */
    /* 💡 內部與外部陰影皆改為 CONNECT 黃色光暈 */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 220, 25, 0.15) inset;
    background: rgba(255, 255, 255, 0.05);
}

.connect-security-module .security-card:hover::before {
    /* 懸停時，頂部線條亮起高強度的黃光 */
    background: linear-gradient(90deg, transparent, #ffdc19, transparent);
}

/* 卡片內元素排版 (Icon 顏色) */
.connect-security-module .card-icon-wrapper {
    color: rgba(255, 220, 25, 0.6);
    /* 💡 預設使用較內斂的 CONNECT 黃色，保持低調 */
    margin-bottom: 1.5rem;
    transition: color 0.4s ease, filter 0.4s ease;
}

.connect-security-module .security-card:hover .card-icon-wrapper {
    color: #ffdc19;
    /* 💡 懸停時瞬間點亮為純黃色 */
    filter: drop-shadow(0 0 12px rgba(255, 220, 25, 0.5));
    /* 加上科技發光特效 */
}

.connect-security-module .card-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
}

.connect-security-module .security-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.connect-security-module .security-card p {
    color: #9ca3af;
    line-height: 1.7;
    font-size: 1.05rem;
    margin: 0;
}

/* --- RWD 手機版自動堆疊 --- */
@media (max-width: 991px) {
    .connect-security-module .security-grid {
        grid-template-columns: 1fr;
        /* 手機版自動轉為垂直排列 */
        gap: 1.5rem;
    }

    .connect-security-module .security-card {
        padding: 2rem 1.5rem;
    }
}

/* ==========================================================================
   系統架構區塊：核心亮點技術規格卡 (Tech-spec Cards)
   ========================================================================== */
.connect-architecture-module .arch-highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3.5rem;
    /* 確保與上方架構圖保持絕佳的呼吸空間 */
}

/* 乾淨、俐落的科技感卡片 */
.connect-architecture-module .arch-tech-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    border: 1px solid rgba(0, 123, 138, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* 頂部裝飾線 (改為 CONNECT 黃色) */
.connect-architecture-module .arch-tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #ffdc19;
    /* 💡 換成 CONNECT 黃色 */
    transform: scaleX(0);
    /* 預設收起 */
    transform-origin: left;
    transition: transform 0.4s ease;
}

/* 懸停互動 (Hover) - 啟動科技感浮起與線條展開 */
.connect-architecture-module .arch-tech-card:hover {
    transform: translateY(-6px);
    /* 💡 陰影改為柔和黑影搭配黃色微光暈 */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06), 0 5px 15px rgba(255, 220, 25, 0.15);
    border-color: rgba(255, 220, 25, 0.6);
    /* 💡 邊框轉為黃色 */
}

.connect-architecture-module .arch-tech-card:hover::before {
    transform: scaleX(1);
    /* 頂部線條向右展開 */
}

.connect-architecture-module .arch-tech-card:hover::before {
    transform: scaleX(1);
    /* 頂部線條向右展開 */
}

/* 圖示與標題排版 (預設狀態) */
.connect-architecture-module .tech-icon {
    color: #d4a000;
    /* 💡 在白底上使用稍微深一點的金黃色確保易讀性 */
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(255, 220, 25, 0.15);
    /* 💡 極淡的黃色背景圈 */
    border-radius: 50%;
    transition: all 0.4s ease;
}

/* 懸停互動 (Hover) - 圖示高光反轉 */
.connect-architecture-module .arch-tech-card:hover .tech-icon {
    background: #ffdc19;
    /* 💡 懸停時填滿純黃色 */
    color: #111827;
    /* 💡 圖示轉為深黑色以維持高對比 */
    transform: scale(1.1) rotate(-5deg);
    /* 俏皮的微縮放與傾斜 */
    box-shadow: 0 8px 20px rgba(255, 220, 25, 0.4);
    /* 💡 加上黃色光暈 */
}

.connect-architecture-module .arch-tech-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.connect-architecture-module .arch-tech-card p {
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

/* RWD 手機版防呆 */
@media (max-width: 991px) {
    .connect-architecture-module .arch-highlights-grid {
        grid-template-columns: 1fr;
        /* 手機版改為上下堆疊 */
        gap: 1.5rem;
    }
}

/* ==========================================================================
   架構區塊：移植的 GIF展示樣式 (白底專用 + CONNECT 黃色光暈)
   ========================================================================= */
.connect-architecture-module .gif-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    /* 防止 GIF 載入前的空白 */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* 預設淡淡的黑影 */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.connect-architecture-module .zoomable-gif {
    width: 100%;
    display: block;
    cursor: zoom-in;
    transition: transform 0.4s ease;
}

/* 💡 懸停互動：上浮 + CONNECT 品牌黃色科技光暈 */
.connect-architecture-module .gif-container:hover {
    transform: translateY(-8px);
    /* 將陰影改為 CONNECT 黃色 (rgba: 255, 220, 25) */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1), 0 5px 25px rgba(255, 220, 25, 0.35);
}

.connect-architecture-module .gif-container:hover .zoomable-gif {
    transform: scale(1.02);
    /* 影片微微放大 */
}

/* 點擊放大提示遮罩 (針對白底調暗) */
.connect-architecture-module .gif-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(17, 24, 39, 0.5);
    /* 使用深色玻璃擬物化遮罩 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.connect-architecture-module .gif-container:hover .gif-overlay {
    opacity: 1;
}

.connect-architecture-module .gif-overlay i {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
}

/* ==========================================================================
   架構區塊：雙 GIF 並排網格排版 (RWD)
   ========================================================================== */
.connect-architecture-module .gif-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 💡 電腦版強制切分為兩欄等寬 */
    gap: 2rem;
    margin: 0 auto;
    max-width: 1100px;
    /* 稍微放寬總寬度，讓兩張圖有舒適的展示空間 */
}

/* 確保 GIF 圖檔在雙欄位中能完美填滿容器，不變形 */
.connect-architecture-module .gif-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
    /* 確保影片比例一致 */
}

/* 📱 手機版與平板版防呆 (轉為上下疊排) */
@media (max-width: 991px) {
    .connect-architecture-module .gif-grid {
        grid-template-columns: 1fr;
        /* 手機版自動改為單欄 */
        gap: 1.5rem;
        max-width: 600px;
    }
}

/* ==========================================================================
   CONNECT 核心優勢區塊：CTA 按鈕 (進一步探索) 品牌黃色優化
   ========================================================================== */
.connect-atlas-module .cta-btn {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 12px 28px;
    background-color: #ffdc19;
    /* CONNECT 品牌黃 */
    color: #111827 !important;
    /* 深黑色文字，確保高對比易讀性 */
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    /* 預設微陰影 */
}

/* 懸停互動 (Hover) - 微微上浮與黃色光暈 */
.connect-atlas-module .cta-btn:hover {
    background-color: #e6c616;
    /* 懸停時稍微加深的黃色 */
    color: #000000 !important;
    transform: translateY(-3px);
    /* 微微上浮增加點擊手感 */
    box-shadow: 0 8px 20px rgba(255, 220, 25, 0.35), 0 4px 10px rgba(0, 0, 0, 0.1);
    /* 黃色科技光暈 + 底部實體陰影 */
    text-decoration: none;
}

/* 點擊時的微縮放效果 (Active) */
.connect-atlas-module .cta-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(255, 220, 25, 0.3);
}

/* --- Source: css\connect-bottleneck-module.css --- */
/* ==========================================================================
   突破瓶頸模組 (Bottleneck Module) - CWV Optimized
   ========================================================================== */
.connect-bottleneck-module {
    padding: 100px 0;
    overflow: hidden;
}

/* --- 1. 對立卡片網格 (IT vs OT) --- */
.connect-bottleneck-module .dilemma-grid {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 6rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.connect-bottleneck-module .dilemma-card {
    flex: 1;
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #f3f4f6;
    text-align: center;
    /* 確保動畫只改變 transform 與 shadow，防禦 CLS 扣分 */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
    z-index: 1;
    overflow: hidden;
}

.connect-bottleneck-module .dilemma-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

/* 卡片微互動：頂部品牌色光暈 */
.connect-bottleneck-module .card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transition: height 0.3s ease, opacity 0.3s ease;
    opacity: 0.8;
}

.connect-bottleneck-module .it-card .card-glow {
    background: #3b82f6;
    /* IT 藍 */
}

.connect-bottleneck-module .ot-card .card-glow {
    background: #f59e0b;
    /* OT 橘 */
}

.connect-bottleneck-module .dilemma-card:hover .card-glow {
    height: 6px;
    opacity: 1;
}

.connect-bottleneck-module .dilemma-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.connect-bottleneck-module .it-card .dilemma-icon {
    color: #3b82f6;
}

.connect-bottleneck-module .ot-card .dilemma-icon {
    color: #f59e0b;
}

.connect-bottleneck-module .dilemma-role {
    font-size: 1.3rem;
    font-weight: 700;
    color: #111827;
    margin-top: 0;
    margin-bottom: 1rem;
}

.connect-bottleneck-module .dilemma-card p {
    color: #4b5563;
    line-height: 1.7;
    font-size: 1.05rem;
    margin: 0;
}

/* 中央衝突點 (VS) */
.connect-bottleneck-module .dilemma-vs {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 40px;
}

.connect-bottleneck-module .vs-line {
    flex: 1;
    width: 2px;
    background: linear-gradient(to bottom, transparent, #d1d5db, transparent);
}

.connect-bottleneck-module .vs-circle {
    width: 44px;
    height: 44px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #9ca3af;
    margin: 1rem 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* --- 2. 滾動高光文字 (Scrollytelling) --- */
.connect-bottleneck-module .scrollytelling-container {
    max-width: 800px;
    margin: 0 auto 6rem auto;
    text-align: center;
}

.connect-bottleneck-module .scrolly-line {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.6;
    margin: 0 0 0.5rem 0;
    /* 預設為極淡的淺灰色，隱身於背景中 */
    color: #d1d5db;
    /* 僅使用 color 過渡，效能極高，絕對不觸發 Layout Reflow */
    transition: color 0.6s ease-out, transform 0.6s ease-out;
    transform: translateY(10px);
}

/* 透過 JS 加入此 class 來觸發高光 */
.connect-bottleneck-module .scrolly-line.is-highlighted {
    color: #111827;
    /* 轉為純黑色突顯 */
    transform: translateY(0);
}

/* 關鍵字特別高光 (針對 POC) */
.connect-bottleneck-module .scrolly-line.is-highlighted:nth-child(2) {
    color: #007b8a;
    /* 痛點核心使用科勝品牌色 */
}

/* --- 3. 解決方案總結卡片 --- */
.connect-bottleneck-module .solution-conclusion {
    background: linear-gradient(135deg, #007b8a 0%, #005f6b 100%);
    border-radius: 16px;
    padding: 3rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 15px 40px rgba(0, 123, 138, 0.2);
    color: #ffffff;
    max-width: 900px;
    margin: 0 auto;
}

.connect-bottleneck-module .solution-icon {
    font-size: 3.5rem;
    color: #ffdc19;
    /* CONNECT 黃色提亮 */
    flex-shrink: 0;
}

.connect-bottleneck-module .solution-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 0.8rem;
}

.connect-bottleneck-module .solution-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.connect-bottleneck-module .solution-content strong {
    color: #ffdc19;
}

/* --- 4. RWD 手機版防呆微調 --- */
@media (max-width: 991px) {
    .connect-bottleneck-module .dilemma-grid {
        flex-direction: column;
        /* 手機版轉為垂直堆疊 */
        gap: 0;
    }

    .connect-bottleneck-module .dilemma-vs {
        width: 100%;
        height: 60px;
        flex-direction: row;
    }

    .connect-bottleneck-module .vs-line {
        height: 2px;
        width: auto;
        background: linear-gradient(to right, transparent, #d1d5db, transparent);
    }

    .connect-bottleneck-module .vs-circle {
        margin: 0 1rem;
    }

    .connect-bottleneck-module .scrolly-line {
        font-size: 1.4rem;
        /* 手機版字體縮小防溢出 */
        text-align: left;
        /* 手機版長文靠左閱讀性較佳 */
    }

    .connect-bottleneck-module .solution-conclusion {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
}

/* ==========================================================================
   突破瓶頸區塊 - Before & After 對比卡片樣式 (Dark vs Light Theme)
   ========================================================================== */

/* 確保網格垂直置中對齊 */
.connect-bottleneck-module .dilemma-grid.align-items-center {
    align-items: center;
}

/* --- 左側：暗色系卡片 (傳統痛點) --- */
.connect-bottleneck-module .dark-card {
    background: #1f2937;
    /* 科技深灰色，代表傳統的沉重感 */
    border: 1px solid #374151;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.connect-bottleneck-module .dark-card .dilemma-icon {
    color: #fca5a5;
    /* 警告紅，暗示斷線或錯誤 */
}

.connect-bottleneck-module .dark-card .dilemma-role {
    color: #ffffff;
    /* 深色底配純白標題 */
}

.connect-bottleneck-module .dark-card p {
    color: #9ca3af;
    /* 深色底配淺灰內文，降低對比以符合「痛點」的低沉氛圍 */
}

.connect-bottleneck-module .dark-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}


/* --- 右側：亮色系卡片 (AI 效益) --- */
.connect-bottleneck-module .light-card {
    background: #ffffff;
    border: 2px solid #ffdc19;
    /* CONNECT 品牌黃邊框，代表解法與明亮 */
    box-shadow: 0 10px 40px rgba(255, 220, 25, 0.12);
    transform: scale(1.02);
    /* 預設微微放大，在視覺層級上「壓制」左側的痛點卡片 */
    z-index: 2;
}

.connect-bottleneck-module .light-card .dilemma-icon {
    color: #ffdc19;
    text-shadow: 0 0 20px rgba(255, 220, 25, 0.4);
    /* AI 晶片的科技發光感 */
}

.connect-bottleneck-module .light-card .dilemma-role {
    color: #111827;
}

.connect-bottleneck-module .light-card p {
    color: #4b5563;
}

.connect-bottleneck-module .light-card:hover {
    transform: scale(1.04) translateY(-5px);
    box-shadow: 0 15px 50px rgba(255, 220, 25, 0.25);
}

/* 手機版 (RWD) 將中央 SVG 箭頭轉向向下 */
@media (max-width: 991px) {
    .connect-bottleneck-module .vs-arrow-svg {
        transform: rotate(90deg);
        /* 手機疊排時，箭頭自動朝下指示流程 */
        transition: transform 0.3s ease;
    }

    .connect-bottleneck-module .light-card {
        transform: none;
        /* 手機版取消預設放大，避免超出螢幕邊界 */
    }

    .connect-bottleneck-module .light-card:hover {
        transform: translateY(-5px);
    }
}

/* --- Source: css\connect-data-driven-proof.css --- */
/* ==========================================================================
   數據 ROI 佐證模組 (Data-driven Proof) - CWV Optimized
   ========================================================================== */
.connect-roi-module {
    /* 使用深沈的科技藍灰漸層，襯托 CONNECT 品牌黃 */
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    padding: 100px 0;
    overflow: hidden;
    position: relative;
}

/* 數據列網格：完美置中與自動換行 */
.connect-roi-module .roi-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 4rem;
    margin-bottom: 4rem;
}

/* 個別數據卡片 */
.connect-roi-module .roi-card {
    flex: 1 1 180px;
    /* 基礎寬度 180px，允許自動伸縮 */
    max-width: 220px;
    text-align: center;
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: transform 0.4s ease, background 0.4s ease;
}

.connect-roi-module .roi-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.06);
}

/* 數字與單位排版 */
.connect-roi-module .roi-number-wrap {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 0.5rem;
    /* 預防數字跳動造成的 CLS 偏移：設定固定字體特徵 */
    font-variant-numeric: tabular-nums;
}

.connect-roi-module .roi-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffdc19;
    /* CONNECT 品牌黃 */
    line-height: 1;
    /* 頂尖科技業的高級發光特效 (Text Glow) */
    text-shadow: 0 0 20px rgba(255, 220, 25, 0.4);
}

.connect-roi-module .roi-unit {
    font-size: 2rem;
    font-weight: 700;
    color: #ffdc19;
    margin-left: 4px;
}

/* 數據標籤 */
.connect-roi-module .roi-label {
    font-size: 1.05rem;
    font-weight: 600;
    color: #e5e7eb;
    /* 淺灰色，確保在深底上的高對比易讀性 */
    line-height: 1.5;
}

/* ==========================================================================
   全域共用：深色模式專用幽靈按鈕 (Outline CTA)
   ========================================================================== */
.connect-roi-module .roi-cta-wrapper {
    text-align: center;
    margin-top: 3rem;
}

.connect-outline-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background-color: transparent;
    color: #ffdc19;
    /* 文字使用黃色 */
    border: 2px solid #ffdc19;
    /* 黃色邊框 */
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.connect-outline-btn:hover {
    background-color: #ffdc19;
    color: #111827;
    /* Hover 時反白為深色字體 */
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 220, 25, 0.25);
}

/* RWD 手機版防呆 */
@media (max-width: 768px) {
    .connect-roi-module .roi-grid {
        gap: 1rem;
    }

    .connect-roi-module .roi-card {
        flex: 1 1 140px;
        /* 手機版並排顯示兩個 */
        padding: 1rem;
    }

    .connect-roi-module .roi-number {
        font-size: 2.8rem;
    }

    .connect-roi-module .roi-unit {
        font-size: 1.5rem;
    }

    .connect-outline-btn {
        width: 100%;
    }
}

/* ==========================================================================
   數據 ROI 佐證模組 - 智慧等寬排版升級 (Grid & Content Reflow)
   ========================================================================== */

/* 1. 強制等寬佈局 (消滅 CLS 偏移) */
@media (min-width: 992px) {
    .connect-roi-module .roi-grid {
        display: flex;
        justify-content: center;
        gap: 1rem;
        /* 電腦版微調間距，讓畫面更緊湊 */
    }

    .connect-roi-module .roi-card {
        /* 💡 核心修改：強制卡片為完美 20% 寬度 (扣除間距)，不允許自由伸展 */
        flex: 0 0 calc(20% - (1rem * 4 / 5)) !important;
        padding: 1.5rem 0.5rem;
        /* 縮減內距，把空間還給文字 */
    }
}

/* 2. 第 5 卡片：智慧內容重構 (CRO 優化) */
.connect-roi-module .card-long-unit .roi-number-wrap {
    flex-wrap: wrap;
    /* 💡 允許內部元素在寬度不足時自動折行 */
    justify-content: center;
}

/* 數字本身保持 Prominent (最突出) */
.connect-roi-module .card-long-unit .roi-number {
    font-size: 3.2rem;
    /* 微調數據字體，確保 4 位數能在一行塞下 */
}

/* 前綴符號 ($) */
.connect-roi-module .card-long-unit .roi-unit.prefix {
    margin-right: 2px;
}

/* 💡 智慧後綴單位 (萬美元)：強制折返與縮小 */
.connect-roi-module .card-long-unit .roi-unit.suffix {
    flex-basis: 100%;
    /* 強制此單位佔滿一行，使其「優雅折返」到數據下方 */
    font-size: 1.2rem;
    /* 降低單位層級，使其看起來像是一個標籤 */
    color: rgba(255, 220, 25, 0.8);
    /* 稍微降低單位的亮度，進一步突出數字 */
    margin-left: 0;
    margin-top: 4px;
    /* 調整與數字的距離 */
    font-weight: 600;
    text-align: center;
}

/* RWD 手機版防呆微調 */
@media (max-width: 768px) {
    .connect-roi-module .roi-card {
        flex: 1 1 160px !important;
        /* 手機版保持自動伸縮，並排兩個 */
    }

    .connect-roi-module .card-long-unit .roi-number {
        font-size: 2.8rem;
        /* 手機版數字再稍微縮小 */
    }
}

/* --- Source: css\connect-download-section.css --- */
/* ==========================================================================
   台灣工控系統洞察報告模組 (Insight Split-Screen Slider) - CWV Optimized
   ========================================================================== */
.connect-insight-module {
    background-color: #000000;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    width: 100%; /* 確保外層不超過螢幕 */
}

.connect-insight-module .insight-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    width: 100%;
}

/* 🚀 關鍵修復 1：解決 CSS Grid 撐破效應 (Grid Blowout Bug) */
.connect-insight-module .insight-grid > div {
    min-width: 0; /* 剝奪內容無限撐寬的權利 */
    max-width: 100%;
}

/* --- 左側：文案資訊架構 --- */
.connect-insight-module .insight-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.connect-insight-module .insight-badge {
    display: inline-block;
    background: rgba(255, 220, 25, 0.1);
    color: #ffdc19;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(255, 220, 25, 0.2);
    letter-spacing: 1px;
}

.connect-insight-module h2.insight-title {
    color: #ffffff !important; 
    font-size: 2.4rem !important;
    font-weight: 800 !important;
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 1.5rem;
    border-left: none !important;
    padding-left: 0 !important;
}

.connect-insight-module .insight-desc {
    color: #9ca3af; 
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    word-wrap: break-word; /* 🚀 關鍵修復 2：確保長文字絕對會自動換行 */
}

/* 環境光暈 (Ambient Glow) */
.connect-insight-module .insight-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 220, 25, 0.15) 0%, transparent 70%);
    filter: blur(50px);
    z-index: 1;
    pointer-events: none;
    animation: pulse-glow 6s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    0% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.9); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

/* --- 右側：單張深色輪播卡片 (Dark Glassmorphism Slider) --- */
.dark-slider-wrapper {
    position: relative;
    width: 100%;
    z-index: 10;
}

.dark-slider-track {
    display: flex;
    flex-wrap: nowrap; 
    width: 100%; 
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.dark-slider-item {
    flex: 0 0 100%;
    width: 100%; 
    flex-shrink: 0; 
    box-sizing: border-box;
    padding: 0 8px; 
}

/* 深色玻璃質感卡片 */
.dark-glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 360px; 
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.dark-glass-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 220, 25, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 220, 25, 0.15);
}

.dark-glass-card .card-title {
    color: #ffffff !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    line-height: 1.4;
    margin-top: 0;
    margin-bottom: 1rem;
    border-left: none !important;
    padding-left: 0 !important;
}

.dark-glass-card .card-desc {
    color: #9ca3af;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* CTA 按鈕整合樣式 */
.dark-glass-card .insight-cta.btn-sm {
    align-self: flex-start;
    padding: 12px 24px;
    font-size: 1rem;
    background-color: #ffdc19;
    color: #111827 !important; 
    font-weight: 800;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(255, 220, 25, 0.15);
}

.dark-glass-card .insight-cta.btn-sm:hover {
    background-color: #e6c616;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(255, 220, 25, 0.35);
    color: #000000 !important;
    text-decoration: none;
}

/* 現代化控制列 */
.dark-slider-controls {
    display: flex;
    justify-content: flex-end; 
    gap: 16px;
    margin-top: 24px; 
    padding-right: 8px;
}

.dark-slider-btn {
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark-slider-btn:hover:not(:disabled) {
    background-color: #ffdc19;
    color: #111827;
    border-color: #ffdc19;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 220, 25, 0.3);
}

.dark-slider-btn:disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

/* ==========================================================================
   行動裝置防呆 (Mobile-First 堆疊與滿版設定)
   ========================================================================== */
@media (max-width: 991px) {
    .connect-insight-module {
        padding: 60px 0;
    }
    
    .connect-insight-module .insight-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .connect-insight-module h2.insight-title {
        font-size: 1.8rem !important;
    }
    .connect-insight-module .insight-desc {
        font-size: 1.05rem;
        margin-bottom: 1rem; 
    }

    .dark-glass-card { 
        padding: 32px 24px; 
        min-height: auto; 
    }
    
    .dark-glass-card .insight-cta.btn-sm {
        width: 100%; 
        justify-content: center;
    }
    
    .dark-slider-controls {
        justify-content: center; 
        margin-top: 20px;
        padding-right: 0;
    }
}

/* --- Source: css\connect-h2-title-accent.css --- */
/* =========================================
   全域 H2 標題統一設定 (Typography)
   強制覆蓋預設樣式，確保全站字體、大小完全一致
========================================= */
.mainContent h2,
.gray-bg h2,
.atlas-title h2,
.faq-section h2,
.connect-intro-module h2,
/* 💡 新增：產品簡介影音區塊 */
.connect-bottleneck-module h2,
/* 💡 新增：技術瓶頸微互動區塊 */
.connect-atlas-module h2

/* 💡 新增：確保 Atlas Tabs 模組內的標題也絕對安全 */
    {
    color: #000000 !important;
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    line-height: 1.3;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

/* =========================================
   樣式 A1：靠左對齊 + 黃色飾條 (用於一般段落)
========================================= */
.connect-title-accent {
    border-left: 6px solid #ffdc19 !important;
    padding-left: 16px !important;
    text-align: left !important;
    display: inline-block !important;
    /* 維持靠左的區塊特性 */
    margin-left: 0 !important;
    /* 確保絕對不會被置中 */
    max-width: 100%;
}

/* =========================================
   樣式 A2：置中對齊 + 黃色飾條 (用於大區塊主標題)
========================================= */
.connect-title-accent-center {
    border-left: 6px solid #ffdc19 !important;
    padding-left: 16px !important;
    text-align: left !important;
    /* 讓文字換行時依然整齊貼齊飾條 */
    display: block !important;
    width: fit-content !important;
    /* 讓寬度剛剛好包覆文字 */
    margin-left: auto !important;
    /* 左右 auto 達成完美置中 */
    margin-right: auto !important;
    max-width: 100%;
}

/* =========================================
   樣式 B：純置中對齊 (無黃色飾條)
========================================= */
.connect-title-center {
    text-align: center !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100%;
}

/* =========================================
   樣式 B：置中對齊 (無飾條)
========================================= */
.connect-title-center {
    text-align: center !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100%;
}

/* ==========================================================================
   全域共用：現代化區塊副標題 (Global Section Subtitle)
   ========================================================================== */
.connect-section-subtitle {
    max-width: 800px;
    margin: 1rem auto 0 auto;
    /* 自動左右置中，並與上方標題保持完美呼吸空間 */
    color: #4b5563;
    /* 捨棄純黑，使用降低視覺疲勞的高級深灰 */
    font-size: 1.15rem;
    line-height: 1.7;
}

/* 手機版字體微調 */
@media (max-width: 768px) {
    .connect-section-subtitle {
        font-size: 1.05rem;
        padding: 0 15px;
        /* 確保手機版左右有安全距離 */
    }
}

/* --- Source: css\connect-scrollytelling-module.css --- */
/* ==========================================================================
   滾動敘事模組 (Scrollytelling Module)
   ========================================================================== */
.connect-scrolly-module {
    background-color: #f8f9fa;
    padding: 100px 0;
    position: relative;
}

/* 電腦版雙欄網格 */
.connect-scrolly-module .scrolly-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- 黏性影片區 (Sticky) --- */
.connect-scrolly-module .scrolly-visual {
    position: sticky;
    top: 120px;
    /* 距離螢幕頂部的舒適距離 */
    height: calc(100vh - 160px);
    display: flex;
    align-items: center;
}

.connect-scrolly-module .sticky-video-wrapper {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    background: #000;
    aspect-ratio: 16/9;
    /* 防禦 CLS 塌陷 */
    transition: opacity 0.4s ease;
}

/* 用來製造切換時的淡入淡出效果 */
.connect-scrolly-module .sticky-video-wrapper.is-transitioning {
    opacity: 0.2;
}

.connect-scrolly-module video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- 滾動文案區 --- */
.connect-scrolly-module .scrolly-content {
    padding-bottom: 50vh;
    /* 確保最後一個項目能滾動到畫面中央 */
}

.connect-scrolly-module .scenario-item {
    position: relative;
    padding: 3rem 0;
    opacity: 0.3;
    /* 預設變暗，降低視覺干擾 */
    transform: translateX(-20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid transparent;
    padding-left: 2rem;
}

/* 啟動狀態 (Active) - 當滾動到此區塊時觸發 */
.connect-scrolly-module .scenario-item.is-active {
    opacity: 1;
    transform: translateX(0);
    border-left-color: #ffdc19;
    /* CONNECT 色高光 */
}

.connect-scrolly-module .scenario-item h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #111827;
    margin-top: 0;
    margin-bottom: 1rem;
}

.connect-scrolly-module .scenario-item p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #4b5563;
    margin: 0;
}

/* --- RWD 手機版防呆 --- */
@media (max-width: 991px) {
    .connect-scrolly-module .scrolly-grid {
        grid-template-columns: 1fr;
        /* 切換為單欄 */
        gap: 2rem;
    }

    /* 手機版將影片固定在畫面上方 (Top-Sticky) */
    .connect-scrolly-module .scrolly-visual {
        position: sticky;
        top: 70px;
        /* 避開導覽列 */
        height: auto;
        z-index: 10;
        margin-bottom: 2rem;
    }

    .connect-scrolly-module .scenario-item {
        opacity: 0.5;
        /* 手機版不需太暗 */
        padding: 2rem 0 2rem 1.5rem;
    }

    .connect-scrolly-module .scenario-item.is-active {
        opacity: 1;
    }

    .connect-scrolly-module .scrolly-content {
        padding-bottom: 10vh;
    }
}

/* ==========================================================================
   滾動敘事模組 - 影片客製化控制 UI (Video Controls)
   ========================================================================== */

/* 影片控制 UI 遮罩容器 */
/* ==========================================================================
   影片客製化控制 UI - 點擊防呆優化
   ========================================================================== */
.connect-scrolly-module .custom-video-controls {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(17, 24, 39, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    /* 💡 讓控制列本身變成透明的，不阻擋游標點擊底層的影片 */
    pointer-events: none;
}

/* 💡 確保裡面的按鈕可以被點擊 */
.connect-scrolly-module .video-center-btn,
.connect-scrolly-module .video-expand-btn {
    pointer-events: auto;
}

/* 滑鼠懸停，或是影片處於「暫停狀態 (is-paused)」時，顯示 UI */
.connect-scrolly-module .sticky-video-wrapper:hover .custom-video-controls,
.connect-scrolly-module .sticky-video-wrapper.is-paused .custom-video-controls {
    opacity: 1;
}

/* --- 中央播放/暫停按鈕 --- */
.connect-scrolly-module .video-center-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.connect-scrolly-module .video-center-btn:hover {
    background: #ffdc19;
    /* 懸停時亮起 CONNECT 品牌黃 */
    color: #111827;
    transform: scale(1.1);
    border-color: transparent;
    box-shadow: 0 10px 25px rgba(255, 220, 25, 0.4);
}

/* --- 右下角全螢幕放大按鈕 --- */
.connect-scrolly-module .video-expand-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.connect-scrolly-module .video-expand-btn:hover {
    background: #ffdc19;
    color: #111827;
    border-color: transparent;
}

/* RWD 手機版：讓控制列在點擊螢幕時更容易喚出 */
@media (max-width: 991px) {
    .connect-scrolly-module .video-expand-btn {
        bottom: 12px;
        right: 12px;
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}

/* ==========================================================================
   影片 Loading 緩衝遮罩 (Video Spinner)
   ========================================================================== */
.connect-scrolly-module .video-loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(17, 24, 39, 0.85);
    /* 深色遮罩，徹底蓋掉黑畫面 */
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 15;
    /* 層級設定在控制按鈕之上 */
    opacity: 0;
    pointer-events: none;
    /* 隱藏時不阻擋點擊 */
    transition: opacity 0.3s ease;
}

/* 當外層被加上 .is-loading 時顯示 */
.connect-scrolly-module .sticky-video-wrapper.is-loading .video-loader-overlay {
    opacity: 1;
    pointer-events: all;
}

/* 科技感旋轉光圈 */
.connect-scrolly-module .video-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 220, 25, 0.15);
    /* 軌道底色 */
    border-top: 4px solid #ffdc19;
    /* CONNECT 黃色指示器 */
    border-radius: 50%;
    animation: video-spin 1s linear infinite;
    /* 無限平滑旋轉 */
}

/* 載入提示文字 */
.connect-scrolly-module .video-loader-text {
    margin-top: 16px;
    color: #ffdc19;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 220, 25, 0.3);
}

@keyframes video-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   影片 Loading 緩衝遮罩 (Video Spinner)
   ========================================================================== */
.connect-scrolly-module .video-loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(17, 24, 39, 0.85);
    /* 深色遮罩，徹底蓋掉黑畫面 */
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 15;
    /* 層級設定在控制按鈕之上 */
    opacity: 0;
    pointer-events: none;
    /* 隱藏時不阻擋點擊 */
    transition: opacity 0.3s ease;
}

/* 當外層被加上 .is-loading 時顯示 */
.connect-scrolly-module .sticky-video-wrapper.is-loading .video-loader-overlay {
    opacity: 1;
    pointer-events: all;
}

/* 科技感旋轉光圈 */
.connect-scrolly-module .video-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 220, 25, 0.15);
    /* 軌道底色 */
    border-top: 4px solid #ffdc19;
    /* CONNECT 黃色指示器 */
    border-radius: 50%;
    animation: video-spin 1s linear infinite;
    /* 無限平滑旋轉 */
}

/* 載入提示文字 */
.connect-scrolly-module .video-loader-text {
    margin-top: 16px;
    color: #ffdc19;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 220, 25, 0.3);
}

@keyframes video-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   全螢幕狀態專屬優化 (Fullscreen UX Fixes)
   ========================================================================== */

/* 1. 解決手機版全螢幕影片拉伸/裁切的問題 */
/* 進入全螢幕時，將影片強制改為 contain (保持原始比例，上下或左右補黑邊) */
.connect-scrolly-module .sticky-video-wrapper:fullscreen video,
.connect-scrolly-module .sticky-video-wrapper:-webkit-full-screen video,
.connect-scrolly-module .sticky-video-wrapper:-ms-fullscreen video {
    object-fit: contain !important;
    background-color: #000000;
    /* 確保補邊的顏色是純黑 */
}

/* 2. 解決全螢幕時控制列太暗的問題 */
/* 進入全螢幕時，將暗色遮罩改為極淡的亮色遮罩 */
.connect-scrolly-module .sticky-video-wrapper:fullscreen .custom-video-controls,
.connect-scrolly-module .sticky-video-wrapper:-webkit-full-screen .custom-video-controls,
.connect-scrolly-module .sticky-video-wrapper:-ms-fullscreen .custom-video-controls {
    background: rgba(255, 255, 255, 0.05) !important;
    /* 調亮遮罩 */
}

/* (加碼優化) 全螢幕時，將右下角放大按鈕改為稍微靠內，避免被某些手機的圓角邊緣擋住 */
.connect-scrolly-module .sticky-video-wrapper:fullscreen .video-expand-btn,
.connect-scrolly-module .sticky-video-wrapper:-webkit-full-screen .video-expand-btn {
    bottom: 40px;
    right: 40px;
}




/* --- Source: css\horizontal-expansion-cards.css --- */
/* =========================================
   樣式 B：置中對齊 (已修復無法置中問題)
========================================= */
.title-center {
  text-align: center !important;
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100%;
}

/* =========================================
   水平擴展卡片 (Horizontal Expansion Cards)
========================================= */
.expansion-container {
  display: flex;
  width: 100%;
  height: 500px;
  /* 桌機版固定高度 */
  gap: 16px;
}

.expansion-card {
  position: relative;
  flex: 1;
  /* 收縮狀態的比例 */
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  /* 平滑的彈性展開動畫 */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 展開狀態的比例 */
.expansion-card.active {
  flex: 5;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* 暗色漸層遮罩：確保白色文字在任何圖片上都清晰可見 */
.expansion-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0.1) 100%);
  opacity: 0.7;
  transition: opacity 0.5s ease;
}

.expansion-card.active .expansion-overlay {
  opacity: 0.9;
  /* 展開時稍微加深遮罩，提升閱讀性 */
}

/* 文字內容容器 (加入固定寬度) */
.expansion-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 550px;
  /* 關鍵修正 1：鎖定寬度，防止動畫過程中的文字蠕動重排 */
  max-width: 90vw;
  /* 避免螢幕過小時超出邊界 */
  padding: 30px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}

.expansion-icon {
  background-color: #ffdc19;
  color: #000;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
  transition: transform 0.4s ease;
}

.expansion-card:not(.active) .expansion-icon {
  transform: scale(0.8);
}

.expansion-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
  line-height: 1.3;
  white-space: normal;
  /* 關鍵修正 2：移除 nowrap，讓固定寬度自然斷行 */
  transition: all 0.4s ease;
}

.expansion-card.active .expansion-title {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

/* 內文描述 (加入微上浮與延遲動畫) */
.expansion-desc {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(15px);
  /* 隱藏時稍微往下沉 */
  transition: opacity 0.2s ease, max-height 0.4s ease, transform 0.2s ease;
  /* 收合時快速消失 */
}

.expansion-card.active .expansion-desc {
  opacity: 1;
  max-height: 200px;
  margin-top: 10px;
  transform: translateY(0);
  /* 展開時回到原位 */
  /* 關鍵修正 3：透明度與位移延遲 0.2 秒 (ease 0.2s)，讓外框先展開，文字再優雅浮現 */
  transition: opacity 0.5s ease 0.2s, max-height 0.5s ease, transform 0.5s ease 0.2s;
}

/* =========================================
   手機版 RWD 斷點 (轉為垂直擴展)
========================================= */
@media (max-width: 991px) {
  .expansion-container {
    flex-direction: column;
    height: auto;
    min-height: 600px;
  }

  .expansion-content {
    width: 100%;
    /* 手機版垂直排列，恢復滿版寬度 */
    padding: 20px;
  }

  .expansion-card {
    height: 80px;
    flex: none;
  }

  .expansion-card.active {
    height: 300px;
    flex: none;
  }

  .expansion-icon {
    display: none;
  }

  .expansion-title {
    font-size: 1.2rem;
  }

  .expansion-card.active .expansion-title {
    font-size: 1.4rem;
  }
}

/* ==========================================================================
   擴展卡片 - 專屬角色徽章 (Role Badge)
   ========================================================================== */
.expansion-role-badge {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffdc19;
  /* 使用 CONNECT 品牌黃，在深色背景下極具質感與辨識度 */
  margin-top: 0;
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  /* 半透明底色 */
  padding: 6px 14px;
  border-radius: 30px;
  /* 現代感膠囊圓角 */
  backdrop-filter: blur(6px);
  /* 國際級毛玻璃特效 */
  border: 1px solid rgba(255, 255, 255, 0.05);
  /* 極細的高光邊框 */
  letter-spacing: 0.5px;
}

/* 針對卡片內容文字的排版微調，讓行距更舒適 */
.expansion-desc p {
  line-height: 1.7;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* ==========================================================================
   擴展卡片 - 手機版高度塌陷與文字截斷修復 (Mobile Overflow & Spacing Fix)
   ========================================================================== */
@media (max-width: 991px) {

  /* 1. 釋放卡片高度限制：取消過大的 min-height，讓卡片完全貼合內容的高度 */
  .expansion-card.active {
    height: auto !important;
    min-height: 300px !important;
    /* 降低基礎高度，消滅底部過多的黑底死角 */
  }

  /* 2. 內容容器間距微調：縮減 bottom padding，讓視覺更緊湊 */
  .expansion-content {
    padding: 24px 20px 24px 20px !important;
    position: relative;
    bottom: auto;
    /* 確保內容順著排版流，不被強制壓在底部 */
  }

  /* 3. 擴大閱讀視野：將可視範圍從 45vh 加長到 60vh */
  .expansion-desc {
    max-height: 60vh;
    /* 讓文字區塊能往下延伸，充分利用剛剛省下來的空間 */
    overflow-y: auto;
    padding-right: 8px;
    margin-bottom: 0;
  }

  /* 4. 國際級 SaaS 細緻滾動條美化 (Webkit) */
  .expansion-desc::-webkit-scrollbar {
    width: 4px;
  }

  .expansion-desc::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
  }

  .expansion-desc::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 4px;
  }

  .expansion-desc::-webkit-scrollbar-thumb:hover {
    background: #ffdc19;
  }
}

/* ==========================================================================
   擴展卡片 - 專屬圖片放大按鈕 (Zoom Button)
   ========================================================================== */
.expansion-zoom-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: rgba(17, 24, 39, 0.6);
  /* 深灰色半透明底 */
  backdrop-filter: blur(8px);
  /* 現代毛玻璃 */
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: zoom-in;
  z-index: 10;
  opacity: 0;
  /* 預設隱藏 */
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* 只有當卡片展開 (active) 時，按鈕才會浮現 */
.expansion-card.active .expansion-zoom-btn {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 滑鼠懸停時的品牌色高光互動 */
.expansion-zoom-btn:hover {
  background: #ffdc19;
  /* CONNECT 品牌黃 */
  color: #111827;
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(255, 220, 25, 0.3);
  border-color: transparent;
}

/* 手機版微調：確保按鈕不會太貼邊 */
@media (max-width: 991px) {
  .expansion-zoom-btn {
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}

/* ==========================================================================
   修復：橫向擴展卡片 (Expansion Cards) 的放大鏡 Icon (全域 SVG 替換)
   ========================================================================== */

/* 1. 強制隱藏原本破圖的 FontAwesome 標籤 */
.expansion-zoom-btn i {
  display: none !important;
}

/* 2. 確保按鈕本身使用 Flexbox 讓內容完美置中 */
.expansion-zoom-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

/* 3. 利用 CSS 偽元素直接注入最高解析度的純白 SVG 放大鏡 (+號) */
.expansion-zoom-btn::after {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  /* 💡 直接將 SVG 轉為 Data URI 寫在 CSS 裡，連圖檔都不用上傳！ */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3Cline x1='11' y1='8' x2='11' y2='14'/%3E%3Cline x1='8' y1='11' x2='14' y2='11'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.3s ease;
}

/* 懸停時放大鏡微微放大，增加互動手感 */
.expansion-zoom-btn:hover::after {
  transform: scale(1.15);
}

/* ==========================================================================
   現代化痛點/亮點卡片 (Modern Painpoint Cards) - CONNECT 品牌黃色系
   ========================================================================== */
.modern-painpoint-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  /* 💡 增加 border-color 的過渡動畫 */
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

/* 💡 懸停互動效果：上浮 + CONNECT 黃色科技光暈 */
.modern-painpoint-card:hover {
  transform: translateY(-8px);
  /* 替換為 CONNECT 黃色 (255, 220, 25) 光暈，並保留一點底層黑影增加立體感 */
  box-shadow: 0 12px 30px rgba(255, 220, 25, 0.25), 0 4px 12px rgba(0, 0, 0, 0.05);
  border-color: rgba(255, 220, 25, 0.6);
  /* 邊框微微亮起黃色 */
}

.modern-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
  cursor: pointer;
}

/* 圖片懸停微放大 */
.modern-painpoint-card:hover .modern-card-img {
  transform: scale(1.05);
}

.modern-card-body {
  padding: 30px 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.modern-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 16px;
  line-height: 1.4;
}

.modern-card-text {
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ==========================================================================
   圖片燈箱專屬樣式 (Image Lightbox) - 來自 HTML 內的整合
   ========================================================================== */
#imageLightbox {
  border: none;
  border-radius: 8px;
  padding: 0;
  background: transparent;
  max-width: 90vw;
  max-height: 90vh;
  margin: auto;
  overflow: visible;
}

#imageLightbox::backdrop {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

