/* =========================================================
   XIAOHUYE SITE FOOTER
   全站 Footer
   Version: 2026-08-05 FOOTER V4 MOBILE COMPACT
========================================================= */

.site-footer,
.site-footer * {
    box-sizing: border-box;
}

.site-footer {
    position: relative;

    color: rgba(229, 237, 244, 0.72);

    background:
        linear-gradient(
            180deg,
            #07111d 0%,
            #050d16 100%
        );
}

.site-footer__container {
    width: 100%;
    max-width: 1180px;

    margin:
        0
        auto;

    padding:
        48px
        24px
        22px;
}


/* =========================================================
   主結構
========================================================= */

.site-footer__main {
    display: grid;

    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(0, 1.35fr)
        minmax(0, 1fr);

    align-items: start;
    gap: 56px;
}


/* =========================================================
   品牌
========================================================= */

.site-footer__logo-row {
    display: inline-flex;

    align-items: center;
    gap: 11px;

    color: inherit;

    text-decoration: none;
}

.site-footer__logo {
    display: block;

    width: 48px;
    height: 48px;

    max-width: none;
    flex: 0 0 48px;

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

    object-fit: cover;
}

.site-footer__brand-name {
    color: #ffffff;

    font-size: 20px;
    font-weight: 1000;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.site-footer__brand-name span {
    color: #ffc35a;
}

.site-footer__brand-tagline {
    margin-top: 4px;

    color: rgba(222, 232, 241, 0.45);

    font-size: 9px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.08em;
}

.site-footer__brand-description {
    max-width: 300px;

    margin:
        18px
        0
        0;

    color: rgba(222, 232, 241, 0.58);

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


/* =========================================================
   標題
========================================================= */

.site-footer__heading {
    margin-bottom: 16px;

    color: #ffffff;

    font-size: 13px;
    font-weight: 1000;
    line-height: 1.4;
}


/* =========================================================
   服務連結
========================================================= */

.site-footer__service-links {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    column-gap: 28px;
    row-gap: 11px;
}

.site-footer__service-links a {
    display: flex;

    min-width: 0;

    align-items: center;
    justify-content: flex-start;
    gap: 7px;

    color: rgba(229, 237, 244, 0.68);

    font-size: 11px;
    font-weight: 800;
    line-height: 1.5;
    text-decoration: none;

    transition:
        color 0.18s ease;
}

.site-footer__service-links a:hover {
    color: #ffc35a;
}

.site-footer__service-links a span {
    display: inline-flex;

    margin-left: 2px;

    min-height: 18px;

    padding:
        3px
        6px;

    flex: 0 0 auto;

    align-items: center;

    border: 1px solid rgba(110, 231, 183, 0.20);
    border-radius: 999px;

    color: #82efc2;
    background: rgba(110, 231, 183, 0.06);

    font-size: 7px;
    font-weight: 1000;
    line-height: 1;
}


/* =========================================================
   客服與免責
========================================================= */

.site-footer__support-text,
.site-footer__disclaimer {
    margin: 0;

    color: rgba(222, 232, 241, 0.56);

    font-size: 10px;
    line-height: 1.75;
}

.site-footer__disclaimer {
    margin-top: 13px;

    color: rgba(222, 232, 241, 0.42);
}

.site-footer__utility-links {
    display: flex;

    margin-top: 16px;

    flex-wrap: wrap;
    gap: 16px;
}

.site-footer__utility-links a {
    color: rgba(255, 195, 90, 0.78);

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

.site-footer__utility-links a:hover {
    color: #ffc35a;
}


/* =========================================================
   Footer 底部
========================================================= */

.site-footer__bottom {
    display: flex;

    margin-top: 34px;
    padding-top: 18px;

    align-items: center;
    justify-content: space-between;
    gap: 16px;

    border-top: 1px solid rgba(255, 255, 255, 0.075);

    color: rgba(222, 232, 241, 0.34);

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


/* =========================================================
   平板
========================================================= */

@media (max-width: 1023px) {

    .site-footer__main {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap:
            34px
            40px;
    }

    .site-footer__brand {
        grid-column:
            1
            / -1;
    }

    .site-footer__brand-description {
        max-width: 520px;
    }

}


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

@media (max-width: 767px) {

    .site-footer__container {
        padding:
            42px
            14px
            20px;
    }

    .site-footer__main {
        grid-template-columns: 1fr;

        gap: 28px;
    }

    .site-footer__brand {
        grid-column: auto;
    }

    .site-footer__service-links {
        grid-template-columns: 1fr;
    }

    .site-footer__bottom {
        flex-direction: column;

        align-items: flex-start;
        gap: 6px;
    }

}


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

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

    .site-footer__service-links a {
        transition: none;
    }

}


/* =========================================================
   MOBILE V4：Footer 移動端緊湊重排
   只作用於 767px 以下，PC／平板完全不動
========================================================= */

@media (max-width: 767px) {

    /* 整體上下留白縮短 */
    .site-footer__container {
        padding:
            30px
            13px
            16px;
    }

    .site-footer__main {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    /* 品牌區縮短 */
    .site-footer__logo-row {
        gap: 9px;
    }

    .site-footer__logo {
        width: 42px;
        height: 42px;

        flex-basis: 42px;
    }

    .site-footer__brand-name {
        font-size: 18px;
    }

    .site-footer__brand-tagline {
        margin-top: 3px;

        font-size: 8px;
    }

    .site-footer__brand-description {
        max-width: none;

        margin-top: 12px;

        font-size: 10px;
        line-height: 1.65;
    }

    /* 區塊標題 */
    .site-footer__heading {
        margin-bottom: 11px;

        font-size: 11px;
    }

    /*
     * 六項服務改為兩欄，
     * 免費標籤仍緊貼服務名稱。
     */
    .site-footer__service-links {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        column-gap: 14px;
        row-gap: 9px;
    }

    .site-footer__service-links a {
        min-height: 26px;

        align-items: center;
        gap: 5px;

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

    .site-footer__service-links a span {
        min-height: 16px;

        margin-left: 1px;
        padding:
            2px
            5px;

        font-size: 6px;
    }

    /* 客服與免責 */
    .site-footer__support-text,
    .site-footer__disclaimer {
        font-size: 9px;
        line-height: 1.6;
    }

    .site-footer__disclaimer {
        margin-top: 8px;
    }

    .site-footer__utility-links {
        margin-top: 11px;

        gap: 13px;
    }

    .site-footer__utility-links a {
        font-size: 9px;
    }

    /* 底部資訊 */
    .site-footer__bottom {
        margin-top: 22px;
        padding-top: 13px;

        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;

        font-size: 8px;
    }

}


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

@media (max-width: 380px) {

    .site-footer__service-links {
        column-gap: 9px;
    }

    .site-footer__service-links a {
        font-size: 8px;
    }

    .site-footer__bottom {
        flex-direction: column;
        align-items: flex-start;

        gap: 4px;
    }

}
