/* ========================================
   第三區塊：立即報名 CTA
   ======================================== */

/* 主區塊容器 */
.cta-section {
    position: relative;
    width: 100vw;
    height: 70vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   左側懸浮 BTC 裝飾
   ======================================== */
.floating-btc {
    position: absolute;
    left: 100px;
    top: 50%;
    transform: translateY(-50%) rotate(4deg);
    z-index: 5;
    opacity: 0.75;
}

.floating-btc img {
    width: auto;
    height: 220px;
    object-fit: contain;
}

/* ========================================
   背景層
   ======================================== */
.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* 背景疊加層1 */
.bg-overlay-1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(229, 229, 229, 0.6) 0%, rgba(229, 229, 229, 0.6) 100%);
    opacity: 0.6;
    z-index: 1;
}

/* 背景疊加層2 */
.bg-overlay-2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(230, 230, 230, 0.6) 0%, rgba(230, 230, 230, 0.6) 100%);
    opacity: 0.6;
    z-index: 2;
}

/* ========================================
   底部建築物裝飾（左至右：section3-building-1 到 section3-building-4）
   ======================================== */
.section3-building-decoration {
    position: absolute;
    bottom: 0;
    z-index: 3;
}

.section3-building-decoration img {
    display: block;
    height: auto;
    object-fit: contain;
}

/* 建築物 1（最左邊） */
.section3-building-1 {
    left: 0px;
}

.section3-building-1 img {
    width: 100%;
    height: auto;
}

/* ========================================
   主要內容容器
   ======================================== */
.cta-container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
    max-width: 900px;
    padding: 0 20px;
}

/* ========================================
   標題文字
   ======================================== */
.cta-title {
    text-align: center;
}

.cta-title p {
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 28px;
    line-height: 160%;
    letter-spacing: 0%;
    color: #0b5b7c;
    text-align: center;
    margin: 0;
}

/* ========================================
   CTA 按鈕
   ======================================== */
.cta-button-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.cta-button-wrapper:hover {
    transform: scale(1.05);
}

.cta-button-wrapper img {
    display: block;
    width: 580px;
    height: auto;
    cursor: pointer;
}

/* ========================================
   響應式設計 (RWD)
   ======================================== */

/* 平板尺寸 (768px ~ 1290px) */
@media (max-width: 1290px) {
    /* 平板及以下尺寸直接隱藏左側懸浮按鈕 */
    .floating-btc {
        display: none;
    }

    .cta-title p {
        font-size: 24px;
    }

    .cta-button-wrapper img {
        width: 550px;
    }
}

/* 手機尺寸 (< 768px) */
@media (max-width: 767px) {
    .cta-section {
        height: 60vh;
    }

    /* 標題調整 */
    .cta-title p {
        font-size: 20px;
    }

    .cta-container {
        gap: 30px;
    }

    /* 按鈕縮小 */
    .cta-button-wrapper img {
        width: 90%;
        max-width: 400px;
    }

    /* 建築物縮小 */
    .section3-building-1 img {
        width: 180px;
    }

    .section3-building-2 img {
        width: 190px;
    }

    .section3-building-3 img {
        width: 200px;
    }

    .section3-building-4 img {
        width: 250px;
    }
}

/* 小手機尺寸 (< 576px) */
@media (max-width: 575px) {
    .cta-title p {
        font-size: 18px;
    }

    .section3-building-1 img {
        width: 140px;
    }

    .section3-building-2 img {
        width: 150px;
    }

    .section3-building-3 img {
        width: 160px;
    }

    .section3-building-4 img {
        width: 200px;
    }
}
