/* ==========================================================================
   數據 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;
        /* 手機版數字再稍微縮小 */
    }
}