/* =========================================================
   XIAOHUYE TRUST COMPACT
   首頁信任與風險說明
   Version: 2026-08-05 TRUST V2 MOBILE COMPACT

   正式路徑：
   原本 trust 對應的 CSS 檔案

   本版重點：
   1. 對應 trust-compact-v1.html。
   2. 移除舊版分析師、合作夥伴與雙欄風險卡樣式。
   3. 改為單一主面板＋三項信任原則。
   4. PC、平板與手機皆不使用左右滑動。
========================================================= */

.trust-compact,
.trust-compact * {
    box-sizing: border-box;
}

.trust-compact {
    position: relative;

    padding:
        88px
        0
        94px;

    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            #f5f7f9 0%,
            #ffffff 52%,
            #f1f4f7 100%
        );
}

.trust-compact__grid {
    position: absolute;
    inset: 0;
    z-index: 0;

    opacity: 0.38;

    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(16, 32, 51, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(16, 32, 51, 0.035) 1px,
            transparent 1px
        );

    background-size:
        48px
        48px;

    -webkit-mask-image:
        linear-gradient(
            180deg,
            transparent 0%,
            #000 18%,
            #000 82%,
            transparent 100%
        );

    mask-image:
        linear-gradient(
            180deg,
            transparent 0%,
            #000 18%,
            #000 82%,
            transparent 100%
        );
}

.trust-compact__container {
    position: relative;
    z-index: 2;

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

    margin:
        0
        auto;

    padding:
        0
        24px;
}


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

.trust-compact__header {
    max-width: 800px;

    margin:
        0
        auto;

    text-align: center;
}

.trust-compact__eyebrow {
    display: flex;

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

    color: #d9780a;

    font-size: 9px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.18em;
}

.trust-compact__eyebrow-line {
    width: 36px;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(217, 120, 10, 0.72) 100%
        );
}

.trust-compact__eyebrow-line:last-child {
    background:
        linear-gradient(
            90deg,
            rgba(217, 120, 10, 0.72) 0%,
            transparent 100%
        );
}

.trust-compact__title {
    margin:
        18px
        0
        0;

    color: #07111d;

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

.trust-compact__title span {
    color: transparent;

    background:
        linear-gradient(
            135deg,
            #f59a23 0%,
            #d9780a 100%
        );

    -webkit-background-clip: text;
    background-clip: text;
}

.trust-compact__subtitle {
    max-width: 710px;

    margin:
        17px
        auto
        0;

    color: #66788a;

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


/* =========================================================
   單一主面板
========================================================= */

.trust-compact__panel {
    position: relative;

    margin-top: 44px;
    padding:
        27px
        27px
        23px;

    overflow: hidden;

    border: 1px solid #dce3ea;
    border-radius: 24px;

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f8fafc 66%,
            #fff8eb 100%
        );

    box-shadow:
        0 24px 58px rgba(15, 27, 45, 0.09),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.trust-compact__panel::before {
    content: "";

    position: absolute;
    top: -120px;
    right: -90px;

    width: 280px;
    height: 280px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(245, 154, 35, 0.15) 0%,
            rgba(245, 154, 35, 0) 70%
        );

    pointer-events: none;
}

.trust-compact__panel::after {
    content: "";

    position: absolute;
    bottom: -135px;
    left: -90px;

    width: 290px;
    height: 290px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(59, 142, 208, 0.12) 0%,
            rgba(59, 142, 208, 0) 72%
        );

    pointer-events: none;
}


/* =========================================================
   三項信任原則
========================================================= */

.trust-compact__pillars {
    position: relative;
    z-index: 2;

    display: grid;

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

    gap: 15px;
}

.trust-pillar {
    position: relative;

    display: flex;

    min-width: 0;
    min-height: 220px;

    padding:
        21px
        20px
        19px;

    flex-direction: column;

    border: 1px solid #e0e6ec;
    border-radius: 17px;

    background: rgba(255, 255, 255, 0.88);

    box-shadow:
        0 12px 28px rgba(15, 27, 45, 0.055);

    transition:
        transform 0.20s ease,
        border-color 0.20s ease,
        box-shadow 0.20s ease;
}

.trust-pillar:hover {
    border-color: #cfd9e3;

    box-shadow:
        0 18px 36px rgba(15, 27, 45, 0.10);

    transform: translateY(-4px);
}

.trust-pillar::before {
    content: "";

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

    height: 4px;

    border-radius:
        17px
        17px
        0
        0;

    background: #3b8ed0;
}

.trust-pillar:nth-child(2)::before {
    background: #168b82;
}

.trust-pillar:nth-child(3)::before {
    background: #d9780a;
}

.trust-pillar__icon {
    display: flex;

    width: 46px;
    height: 46px;

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

    border: 1px solid #cce0f0;
    border-radius: 14px;

    color: #2e79b5;
    background: #eef7fd;
}

.trust-pillar:nth-child(2)
.trust-pillar__icon {
    border-color: #c7e3df;

    color: #0f746d;
    background: #edf8f6;
}

.trust-pillar:nth-child(3)
.trust-pillar__icon {
    border-color: #f0d6aa;

    color: #d9780a;
    background: #fff7e8;
}

.trust-pillar__icon svg {
    width: 23px;
    height: 23px;

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

.trust-pillar__content {
    min-width: 0;

    margin-top: 18px;
}

.trust-pillar__index {
    display: block;

    color: #9ca8b6;

    font-family: monospace;
    font-size: 8px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.15em;
}

.trust-pillar h3 {
    margin:
        8px
        0
        0;

    color: #102033;

    font-size: 19px;
    font-weight: 1000;
    line-height: 1.32;
    letter-spacing: -0.025em;
}

.trust-pillar p {
    margin:
        10px
        0
        0;

    color: #69798c;

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


/* =========================================================
   底部品牌聲明
========================================================= */

.trust-compact__statement {
    position: relative;
    z-index: 2;

    display: flex;

    min-height: 84px;

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

    align-items: center;
    gap: 14px;

    border: 1px solid rgba(245, 154, 35, 0.22);
    border-radius: 14px;

    background:
        linear-gradient(
            90deg,
            rgba(255, 195, 90, 0.10) 0%,
            rgba(255, 255, 255, 0.82) 52%,
            rgba(255, 255, 255, 0.72) 100%
        );
}

.trust-compact__statement-icon {
    display: flex;

    width: 41px;
    height: 41px;

    flex: 0 0 41px;

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

    border: 1px solid #efcf95;
    border-radius: 12px;

    color: #d9780a;
    background: #fff4dc;
}

.trust-compact__statement-icon svg {
    width: 21px;
    height: 21px;

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

.trust-compact__statement p {
    margin: 0;

    color: #48586d;

    font-size: 13px;
    line-height: 1.7;
}

.trust-compact__statement strong {
    color: #102033;

    font-weight: 1000;
}


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

@media (max-width: 1023px) {

    .trust-compact__pillars {
        grid-template-columns: 1fr;
    }

    .trust-pillar {
        min-height: 0;

        display: grid;

        grid-template-columns:
            52px
            minmax(0, 1fr);

        column-gap: 15px;
        align-items: start;
    }

    .trust-pillar__content {
        margin-top: 0;
    }

}


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

@media (max-width: 767px) {

    .trust-compact {
        padding:
            67px
            0
            72px;
    }

    .trust-compact__container {
        padding:
            0
            14px;
    }

    .trust-compact__title {
        font-size: 32px;
    }

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

    .trust-compact__panel {
        margin-top: 34px;
        padding:
            14px;

        border-radius: 20px;
    }

    .trust-pillar {
        display: block;

        padding:
            18px
            16px
            16px;

        border-radius: 15px;
    }

    .trust-pillar__content {
        margin-top: 16px;
    }

    .trust-pillar h3 {
        font-size: 18px;
    }

    .trust-compact__statement {
        align-items: flex-start;

        padding:
            15px;
    }

    .trust-compact__statement p {
        font-size: 12px;
    }

}


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

@media (max-width: 420px) {

    .trust-compact__title {
        font-size: 29px;
    }

    .trust-compact__eyebrow {
        font-size: 8px;
    }

    .trust-compact__eyebrow-line {
        width: 24px;
    }

    .trust-compact__statement {
        display: block;
    }

    .trust-compact__statement p {
        margin-top: 11px;
    }

}


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

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

    .trust-pillar {
        transition: none;
    }

    .trust-pillar:hover {
        transform: none;
    }

}


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

@media (max-width: 767px) {

    /* 整區高度明顯收斂 */
    .trust-compact {
        padding:
            43px
            0
            49px;
    }

    .trust-compact__container {
        padding:
            0
            13px;
    }

    /* 標題區 */
    .trust-compact__eyebrow {
        gap: 8px;

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

    .trust-compact__eyebrow-line {
        width: 24px;
    }

    .trust-compact__title {
        margin-top: 14px;

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

    .trust-compact__title span {
        display: block;

        margin-top: 3px;
    }

    .trust-compact__subtitle {
        margin-top: 11px;

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

    /* 外層面板縮薄 */
    .trust-compact__panel {
        margin-top: 27px;
        padding:
            9px;

        border-radius: 17px;
    }

    /* 手機版移除面板內的大面積光暈 */
    .trust-compact__panel::before,
    .trust-compact__panel::after {
        display: none;
    }

    .trust-compact__pillars {
        gap: 8px;
    }

    /*
     * 三張卡改成圖示左、內容右，
     * 不再維持桌機卡片的垂直大版型。
     */
    .trust-pillar {
        display: grid;

        min-height: 0;

        padding:
            12px
            11px;

        grid-template-columns:
            38px
            minmax(0, 1fr);

        align-items: start;
        column-gap: 10px;

        border-radius: 13px;
    }

    .trust-pillar::before {
        width: 3px;
        height: auto;

        top: 10px;
        right: auto;
        bottom: 10px;
        left: 0;

        border-radius:
            0
            999px
            999px
            0;
    }

    .trust-pillar__icon {
        width: 36px;
        height: 36px;

        border-radius: 10px;
    }

    .trust-pillar__icon svg {
        width: 19px;
        height: 19px;
    }

    .trust-pillar__content {
        margin-top: 0;
    }

    /* 手機版隱藏編號，降低重複資訊 */
    .trust-pillar__index {
        display: none;
    }

    .trust-pillar h3 {
        margin-top: 0;

        font-size: 16px;
        line-height: 1.28;
    }

    .trust-pillar p {
        margin-top: 5px;

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

    /* 底部聲明改成緊湊橫向卡片 */
    .trust-compact__statement {
        display: grid;

        min-height: 0;

        margin-top: 9px;
        padding:
            12px
            11px;

        grid-template-columns:
            34px
            minmax(0, 1fr);

        align-items: center;
        gap: 10px;

        border-radius: 12px;
    }

    .trust-compact__statement-icon {
        width: 34px;
        height: 34px;

        flex-basis: 34px;

        border-radius: 10px;
    }

    .trust-compact__statement-icon svg {
        width: 18px;
        height: 18px;
    }

    .trust-compact__statement p {
        margin-top: 0;

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

}


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

@media (max-width: 420px) {

    .trust-compact__title {
        font-size: 27px;
    }

    .trust-compact__statement {
        display: grid;
    }

    .trust-compact__statement p {
        margin-top: 0;
    }

}
