
    /* Regular 400 */
    @font-face {
    font-family: 'Noto Sans TC';
    src: url('/assets/fonts/NotoSansTC-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    }

    /* ExtraBold 800 */
    @font-face {
    font-family: 'Noto Sans TC';
    src: url('/assets/fonts/NotoSansTC-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
    }

    body {
    font-family: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
    }

    ul {
        list-style-type: none;
        padding: 0;
        margin: 0;
    }

    a {
        text-decoration: none !important;
        color: inherit;
        background: none;
        padding: 0;
        margin: 0;
    }

    /* Loading */
    .loading-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.7);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 9999;
        display: none;
    }
    .loading-spinner {
        border: 6px solid #f3f3f3;
        border-top: 6px solid #2544e1;
        border-radius: 50%;
        width: 48px;
        height: 48px;
        animation: spin 0.8s linear infinite;
    }

    @keyframes spin {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(360deg);
        }
    }

    .swal2-confirm.custom-ok-btn {
        background-color: #2544e1 !important;
        color: white !important;
        border: none;
    }

    /* Main */

    .container {
        width: min(1200px, 92%);
        margin: 0 auto
    }

    .section {
        padding: 120px 0
    }

    .section-title {
        font-size: 2.6rem;
        font-weight: 700;
        margin: 0 0 40px;
        color: #000;
        text-align: center;
    }

    .section-subtitle {
        font-size: 1.05rem;
        color: #666;
        text-align: center;
        margin: -24px 0 40px;
    }

    .btn-apply {
        font-size: 1.2rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: .5rem 3rem;
        border-radius: 999px;
        background: linear-gradient(270deg, #872bac, #2544e1);
        color: #fff;
        font-weight: 600;
        text-decoration: none;
        border: none;
        box-shadow: 0 10px 24px rgba(37, 68, 225, .25);
        margin: 1rem 0;
        cursor: pointer;
    }

    .btn-apply:hover {
        transform: translateY(-1px);
        box-shadow: 0 14px 34px rgba(37, 68, 225, .4);
    }

    /* 佔位區塊：素材到位前先用色塊標示位置 */
    .placeholder-block {
        display: flex;
        align-items: center;
        justify-content: center;
        background: repeating-linear-gradient(45deg, #f2f2f2, #f2f2f2 10px, #e8e8e8 10px, #e8e8e8 20px);
        border: 1px dashed #ccc;
        color: #999;
        font-size: .9rem;
    }

    /* HERO：背景為 banner 大圖 */
    .hero.hero-carousel {
        height: 760px;
    }

    .hero__bg {
        position: relative;
        width: 100%;
        height: 100%;
        background: linear-gradient(115deg, #2544e1 0%, #405be5 45%, #583ec3 75%, #872bac 100%);
        background-size: cover;
        background-position: center;
    }

    /* 灰色遮罩：左側文字區較深，往右漸淡保留人物清晰 */
    .hero__bg::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgba(40, 44, 63, .8) 0%, rgba(40, 44, 63, .55) 45%, rgba(40, 44, 63, 0) 75%);
    }

    .hero__inner {
        position: relative;
        z-index: 1;
        height: 100%;
        display: flex;
        align-items: center;
    }

    .hero__text {
        max-width: 560px;
        color: #fff;
        margin-top: 100px;
    }

    .hero__title {
        font-size: 3.4rem;
        font-weight: 800;
        margin: 0 0 20px;
    }

    .hero__subtitle-label {
        font-size: .95rem;
        margin-bottom: 4px;
    }

    .hero__subtitle-amount {
        font-size: 2.5rem;
        font-weight: 600;
        margin-bottom: 12px;
    }

    .hero__desc {
        font-size: .95rem;
        font-weight: 400;
        letter-spacing: 2px;
        line-height: 1.8;
        margin: 0;
    }

    /* 為什麼選擇 iCash Finance */
    .step__list {
        display: flex;
        justify-content: space-between;
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .step {
        flex: 1;
        min-width: 240px;
        border-radius: 20px;
        background: #f8faff;
        border: 1px solid #eed6f1;
        box-shadow: 0 0 30px rgba(187, 194, 211, .1);
        padding: 40px 32px;
        position: relative;
        overflow: hidden;
    }

    .step__icon {
        width: 40px;
        height: 40px;
        object-fit: contain;
        vertical-align: middle;
        margin-right: 12px;
    }

    .step__no {
        display: inline-block;
        padding: 4px 16px;
        border-radius: 12px 6px;
        background: linear-gradient(270deg, #872bac, #2544e1);
        color: #fff;
        font-size: .9rem;
        margin-bottom: 20px;
    }

    .step__title {
        display: flex;
        align-items: center;
        font-size: 1.25rem;
        font-weight: 600;
        color: #000;
        margin: 0 0 12px;
    }

    .step__text {
        font-size: .85rem;
        line-height: 1.7;
        color: #a2a2a2;
    }

    /* 貸款計算機：背景為大圖，先以藍色調色塊替代 */
    .calculator {
        background-image:
            linear-gradient(to right, transparent 0%, #4f2382 100%),
            linear-gradient(to bottom, #241768 0%, #263c7a 100%);
        color: #fff;
    }

    .calculator__title {
        font-size: 2.2rem;
        font-weight: 700;
        text-align: center;
        margin: 0 0 48px;
    }

    .calculator__content {
        max-width: 680px;
        margin: 0 auto;
    }

    .calculator__row {
        margin-bottom: 32px;
    }

    .calculator__label {
        display: flex;
        justify-content: flex-start;
        align-items: baseline;
        gap: 4px;
        margin-bottom: 10px;
    }

    .calculator__label span:first-child {
        font-size: .95rem;
        font-weight: 300;
    }

    .calculator__value {
        font-size: 1.6rem;
        font-weight: 500;
    }

    .calculator__slider {
        width: 100%;
        accent-color: #405be5;
        height: 12px;
        border-radius: 999px;
        cursor: pointer;
        appearance: none;
        -webkit-appearance: none;
        background: rgba(255, 255, 255, .35);
    }

    .calculator__slider::-webkit-slider-runnable-track {
        height: 12px;
        border-radius: 999px;
    }

    .calculator__slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: #fff;
        border: 6px solid #405be5;
        box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
        margin-top: -11px;
        cursor: pointer;
    }

    .calculator__slider::-moz-range-track {
        height: 12px;
        border-radius: 999px;
        background: rgba(255, 255, 255, .35);
    }

    .calculator__slider::-moz-range-thumb {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: #fff;
        border: 6px solid #405be5;
        box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
        cursor: pointer;
    }

    .calculator__range-labels {
        display: flex;
        justify-content: space-between;
        font-size: .85rem;
        font-weight: 300;
        margin-top: 6px;
    }

    .calculator__result {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: 48px auto 0;
        max-width: 820px;
        border-radius: 999px;
        background: rgba(141, 159, 203, .55);
        border: 1px solid rgba(255, 255, 255, .77);
        backdrop-filter: blur(20px);
        padding: 10px;
    }

    .calculator__result-label {
        font-size: 1.4rem;
        font-weight: 600;
        margin-left: 32px;
    }

    .calculator__result-unit {
        font-size: .8rem;
        font-weight: 400;
    }

    .calculator__result-amount {
        font-size: 2.2rem;
        font-weight: 600;
    }

    .calculator__result .btn-apply {
        background: #fff;
        color: #2c2073;
        box-shadow: none;
        margin: 0;
        padding: .8rem 3rem;
    }

    .calculator__disclaimer {
        text-align: center;
        color: rgba(255, 255, 255, .7);
        font-size: .8rem;
        margin-top: 24px;
    }

    /* 客戶見證：中間主卡置中，兩側露出前後卡片 */
    .testimonial-carousel.hero-carousel {
        height: 440px;
    }

    /* 位移由 JS 的 translateX 控制；縮放效果放在內層卡片，避免互相覆蓋 */
    .testimonial-carousel .hero-carousel__slide {
        flex: 0 0 62%;
        width: 62%;
        padding: 16px;
        opacity: .45;
        transition: transform .5s ease, opacity .5s ease;
    }

    .testimonial-carousel .hero-carousel__slide.is-active {
        opacity: 1;
        z-index: 2;
    }

    .testimonial-carousel .hero-carousel__slide .testimonial-card {
        transform: scale(.92);
        transition: transform .5s ease;
    }

    .testimonial-carousel .hero-carousel__slide.is-active .testimonial-card {
        transform: scale(1);
    }

    .testimonial-carousel .hero-carousel__dot {
        background: rgba(0, 0, 0, .18);
    }

    .testimonial-carousel .hero-carousel__dot.is-active {
        background: #2544e1;
    }

    .testimonial-card {
        position: relative;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 48px 56px;
        border-radius: 28px;
        background: #f8f8fe;
        border: 1px solid #efeafa;
        box-shadow: 0 6px 18px rgba(88, 62, 195, .06);
        overflow: hidden;
    }

    .testimonial-card::after {
        content: '\201D';
        position: absolute;
        top: 44px;
        right: 52px;
        width: 52px;
        height: 52px;
        border-radius: 50%;
        background: linear-gradient(135deg, #405be5, #872bac);
        color: #fff;
        font-size: 2.6rem;
        line-height: 1.9;
        text-align: center;
        font-family: Georgia, serif;
    }

    .testimonial-card__icon-wrap {
        position: absolute;
        left: 56px;
        right: 56px;
        bottom: 40px;
        top: 168px;
        z-index: 0;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        pointer-events: none;
    }

    .testimonial-card__icon {
        width: 85%;
        height: 100%;
        object-fit: contain;
        opacity: .1;
    }

    .testimonial-card__user {
        display: flex;
        align-items: center;
        gap: 16px;
        margin-bottom: 24px;
    }

    .testimonial-card__avatar {
        width: 64px;
        height: 64px;
        border-radius: 16px;
        object-fit: cover;
    }

    .testimonial-card__name {
        font-weight: 600;
        color: #262626;
    }

    .testimonial-card__title {
        color: #898989;
        font-size: .9rem;
        margin-top: 2px;
    }

    .testimonial-card__text {
        position: relative;
        z-index: 1;
        font-size: 1.05rem;
        line-height: 2;
        color: #262626;
        font-weight: 300;
        margin: 0;
    }

    .testimonial__tips {
        text-align: center;
        color: #707070;
        font-size: .8rem;
        font-weight: 300;
        margin-top: 16px;
    }

    /* 線上申請表：彈窗 */
    .apply-modal {
        position: fixed;
        inset: 0;
        z-index: 1050;
        display: none;
        align-items: center;
        justify-content: center;
        padding: 24px;
    }

    .apply-modal.is-open {
        display: flex;
    }

    .apply-modal__backdrop {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, .55);
    }

    .apply-modal__close {
        position: absolute;
        top: 10px;
        right: 16px;
        border: none;
        background: transparent;
        color: #fff;
        font-size: 2rem;
        line-height: 1;
        cursor: pointer;
        z-index: 1;
    }

    .apply-modal .apply__card {
        width: min(560px, 100%);
        max-height: calc(100vh - 48px);
        overflow-y: auto;
    }

    .apply__card {
        border-radius: 18px;
        background: linear-gradient(150deg, #2544e1 0%, #405be5 45%, #583ec3 75%, #872bac 100%);
        padding: 28px;
        color: #fff;
        box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
        position: relative;
    }

    .apply__title {
        font-size: 3rem;
        text-align: center;
        font-weight: 700;
    }

    .apply__subtitle {
        font-size: 1.5rem;
        text-align: center;
    }

    .apply__form .field {
        margin-bottom: 12px
    }

    .apply__form input {
        width: 100%;
        height: 44px;
        border-radius: 8px;
        border: none;
        padding: 0 14px
    }

    @media (max-width: 768px) {
        .hero.hero-carousel {
            height: auto;
        }

        .hero__bg {
            padding: 80px 0 24px;
            background-position: 62% center;
        }

        /* 手機文字滿版，遮罩改為上深下淺的直向漸層，整個畫面都壓得住字 */
        .hero__bg::before {
            background: linear-gradient(180deg, rgba(40, 44, 63, .85) 0%, rgba(40, 44, 63, .65) 55%, rgba(40, 44, 63, .35) 100%);
        }

        .hero__inner {
            justify-content: flex-start;
            align-items: flex-end;
            text-align: left;
        }

        .hero__text {
            margin-top: 0;
        }

        .hero__title {
            font-size: 2rem;
        }

        .hero__desc {
            font-size: .9rem;
            letter-spacing: 1px;
        }

        .btn-apply {
            padding: .5rem 1.5rem;
            font-size: 1rem;
        }

        .step {
            padding: 32px 24px;
        }

        .calculator__result {
            flex-direction: column;
            border-radius: 24px;
            gap: 8px;
            padding: 20px;
        }

        .calculator__result-label {
            margin-left: 0;
        }

        .testimonial-carousel.hero-carousel {
            height: 600px;
        }

        .testimonial-carousel .hero-carousel__slide {
            flex: 0 0 88%;
            width: 88%;
            padding: 8px;
        }

        .testimonial-card {
            padding: 32px 24px;
        }

        .testimonial-card::after {
            top: 24px;
            right: 24px;
            width: 40px;
            height: 40px;
            font-size: 2rem;
        }

        .apply__card {
            .btn-apply {
                background: #fff;
                color: #2c2073;
                padding: .3rem 2rem;
            }
        }

        .apply__title {
            font-size: 1.5rem;
        }

        .apply__subtitle {
            font-size: 1rem;
            text-align: center;
        }

        .section-title {
            font-size: 1.8rem;
        }

        .section {
            padding: 80px 0
        }
    }

    @media (max-width: 425px) {
        .testimonial-card::after {
            display: none;
        }
    }

    /* 條款及細則等純文字頁面 */
    .legal-page {
        padding: 160px 0 80px;
    }

    .legal-page__content {
        max-width: 860px;
        margin: 0 auto;
        font-size: .95rem;
        line-height: 1.9;
        color: #444;
    }

    .legal-page__content p {
        margin: 0 0 1.4em;
    }

    .legal-page__content h3 {
        font-size: 1.2rem;
        font-weight: 700;
        color: #000;
        margin: 2.2em 0 .8em;
    }

    .legal-page__content h4 {
        font-size: 1.02rem;
        font-weight: 600;
        color: #000;
        margin: 1.6em 0 .6em;
    }

    .legal-page__content ul {
        list-style: disc;
        padding-left: 1.4em;
        margin: 0 0 1.4em;
    }

    .legal-page__content ol {
        padding-left: 1.4em;
        margin: 0 0 1em;
    }

    .legal-page__content ol ol {
        list-style-type: lower-roman;
        margin-top: .6em;
    }

    .legal-page__content ol ol ol {
        list-style-type: decimal;
    }

    .legal-page__content li {
        margin-bottom: .5em;
    }

    .legal-page__content h5 {
        font-size: 1.1rem;
        font-weight: 700;
        color: #000;
        margin: 2em 0 .8em;
    }
