/* =========================================================
   XIAOHUYE CTA
   首頁最終行動引導
   Version: 2026-08-05 CTA V3 MOBILE COMPACT
========================================================= */

.cta,
.cta * {
    box-sizing: border-box;
}

.cta {
    position: relative;

    padding:
        82px
        0
        88px;

    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            #07111d 0%,
            #0b1929 52%,
            #102033 100%
        );
}

.cta__grid {
    position: absolute;
    inset: 0;
    z-index: 0;

    opacity: 0.11;

    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.48) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.48) 1px,
            transparent 1px
        );

    background-size:
        48px
        48px;

    -webkit-mask-image:
        radial-gradient(
            ellipse at center,
            #000 22%,
            transparent 80%
        );

    mask-image:
        radial-gradient(
            ellipse at center,
            #000 22%,
            transparent 80%
        );
}

.cta__glow {
    position: absolute;

    width: 360px;
    height: 360px;

    border-radius: 50%;

    filter: blur(84px);

    pointer-events: none;
}

.cta__glow--left {
    bottom: -230px;
    left: -120px;

    background: rgba(61, 151, 219, 0.18);
}

.cta__glow--right {
    top: -220px;
    right: -110px;

    background: rgba(245, 154, 35, 0.18);
}

.cta__container {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 1040px;

    margin:
        0
        auto;

    padding:
        0
        24px;
}


/* =========================================================
   主面板
========================================================= */

.cta__panel {
    position: relative;

    padding:
        34px
        30px
        31px;

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 26px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.075) 0%,
            rgba(255, 255, 255, 0.03) 100%
        );

    text-align: center;

    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 28px 70px rgba(0, 0, 0, 0.26);
}

.cta__panel::before {
    content: "";

    position: absolute;
    top: 0;
    right: 18%;
    left: 18%;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(255, 195, 90, 0.82) 50%,
            transparent 100%
        );
}


/* =========================================================
   吉祥物
========================================================= */

.cta__mascot-wrap {
    display: flex;

    width: 82px;
    height: 82px;

    margin:
        0
        auto;

    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 195, 90, 0.35);
    border-radius: 50%;

    background: rgba(255, 195, 90, 0.07);

    box-shadow:
        0 0 0 8px rgba(255, 195, 90, 0.035);
}

.cta__mascot {
    display: block;

    width: 70px;
    height: 70px;

    max-width: none;

    border-radius: 50%;

    object-fit: cover;
}


/* =========================================================
   文字
========================================================= */

.cta__eyebrow {
    margin-top: 22px;

    color: #ffc35a;

    font-size: 8px;
    font-weight: 1000;
    line-height: 1;
    letter-spacing: 0.18em;
}

.cta__title {
    margin:
        15px
        0
        0;

    color: #ffffff;

    font-size: 42px;
    font-weight: 1000;
    line-height: 1.18;
    letter-spacing: -0.035em;
}

.cta__title-line {
    display: block;
}

.cta__title-line--accent {
    margin-top: 5px;

    color: #ffc35a;
}

.cta__description {
    max-width: 820px;

    margin:
        17px
        auto
        0;

    color: rgba(223, 232, 241, 0.72);

    font-size: 14px;
    line-height: 1.8;
}

.cta__description-line {
    display: block;
}


/* =========================================================
   按鈕
========================================================= */

.cta__actions {
    display: flex;

    margin-top: 27px;

    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.cta__button {
    display: inline-flex;

    min-height: 45px;

    padding:
        11px
        17px;

    align-items: center;
    justify-content: center;
    gap: 9px;

    border-radius: 10px;

    font-size: 11px;
    font-weight: 1000;
    line-height: 1;
    text-decoration: none;

    transition:
        color 0.18s ease,
        border-color 0.18s ease,
        background-color 0.18s ease,
        transform 0.18s ease;
}

.cta__button svg {
    width: 18px;
    height: 18px;

    flex: 0 0 18px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cta__button--primary {
    border: 1px solid #f59a23;

    color: #07111d;
    background: #ffc35a;

    box-shadow:
        0 12px 30px rgba(245, 154, 35, 0.20);
}

.cta__button--primary:hover {
    border-color: #d9780a;

    color: #ffffff;
    background: #d9780a;

    transform: translateY(-2px);
}

.cta__button--secondary {
    border: 1px solid rgba(255, 255, 255, 0.18);

    color: rgba(245, 249, 252, 0.90);
    background: rgba(255, 255, 255, 0.06);
}

.cta__button--secondary:hover {
    border-color: rgba(124, 212, 255, 0.42);

    color: #7cd4ff;
    background: rgba(124, 212, 255, 0.08);

    transform: translateY(-2px);
}


/* =========================================================
   使用方式連結
========================================================= */

.cta__plans-link {
    display: inline-flex;

    margin-top: 19px;

    align-items: center;
    gap: 8px;

    color: rgba(221, 231, 240, 0.60);

    font-size: 10px;
    font-weight: 900;
    line-height: 1.4;
    text-decoration: none;

    transition:
        color 0.18s ease;
}

.cta__plans-link:hover {
    color: #ffc35a;
}


/* =========================================================
   手機
========================================================= */

@media (max-width: 767px) {

    .cta {
        padding:
            65px
            0
            70px;
    }

    .cta__container {
        padding:
            0
            14px;
    }

    .cta__panel {
        padding:
            27px
            16px
            25px;

        border-radius: 20px;
    }

    .cta__title {
        font-size: 31px;
    }

    .cta__description {
        font-size: 13px;
        line-height: 1.72;
    }

    .cta__actions {
        flex-direction: column;

        align-items: stretch;
    }

    .cta__button {
        width: 100%;
    }

}


/* =========================================================
   小手機
========================================================= */

@media (max-width: 420px) {

    .cta__title {
        font-size: 28px;
    }

    .cta__mascot-wrap {
        width: 76px;
        height: 76px;
    }

    .cta__mascot {
        width: 64px;
        height: 64px;
    }

}


/* =========================================================
   減少動畫偏好
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .cta__button,
    .cta__plans-link {
        transition: none;
    }

    .cta__button:hover {
        transform: none;
    }

}


/* =========================================================
   MOBILE V3：CTA 移動端緊湊版
   只作用於 767px 以下，PC／平板完全不動
========================================================= */

@media (max-width: 767px) {

    /* 整區上下留白縮短 */
    .cta {
        padding:
            43px
            0
            49px;
    }

    .cta__container {
        padding:
            0
            13px;
    }

    /* 主面板 */
    .cta__panel {
        padding:
            20px
            13px
            18px;

        border-radius: 17px;
    }

    .cta__panel::before {
        right: 12%;
        left: 12%;
    }

    /* 吉祥物縮小 */
    .cta__mascot-wrap {
        width: 64px;
        height: 64px;

        box-shadow:
            0 0 0 6px rgba(255, 195, 90, 0.03);
    }

    .cta__mascot {
        width: 54px;
        height: 54px;
    }

    /* 文字區 */
    .cta__eyebrow {
        margin-top: 15px;

        font-size: 7px;
        letter-spacing: 0.14em;
    }

    .cta__title {
        margin-top: 11px;

        font-size: 27px;
        line-height: 1.14;
    }

    .cta__title-line--accent {
        margin-top: 3px;
    }

    .cta__description {
        margin-top: 11px;

        font-size: 11px;
        line-height: 1.62;
    }

    .cta__description-line {
        display: block;
    }

    /* 兩個入口維持直向，但縮短按鈕 */
    .cta__actions {
        margin-top: 17px;

        flex-direction: column;
        align-items: stretch;
        gap: 7px;
    }

    .cta__button {
        width: 100%;
        min-height: 39px;

        padding:
            8px
            11px;

        border-radius: 8px;

        font-size: 9px;
    }

    .cta__button svg {
        width: 16px;
        height: 16px;

        flex-basis: 16px;
    }

    .cta__plans-link {
        margin-top: 13px;

        gap: 6px;

        font-size: 9px;
        line-height: 1.45;
    }

}


/* =========================================================
   MOBILE V3：小手機
========================================================= */

@media (max-width: 420px) {

    .cta__title {
        font-size: 26px;
    }

    .cta__description {
        font-size: 10px;
    }

}
