/* 共用 */
#main {
    color: #232222;
    font-family: Arial, Helvetica, sans-serif;
}

#main img {
    max-width: 100%;
    height: auto;
}

.wrap {
    width: 80%;
    margin: 0 auto;
}

.section-title {
    margin: 0 0 2rem;
    font-size: 40px;
    font-weight: 700;
    text-align: center;
}

.apply__submit {
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 4px;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(90deg, #a6f7c0, #5fbfe8);
    cursor: pointer;
}

.apply__submit:hover {
    background: linear-gradient(90deg, #8fe8ae, #45aede);
}

/* BANNER */
.banner {
    position: relative;
    margin-top: 7rem;
}

.banner img {
    display: block;
    width: 100%;
}

.banner__text {
    position: absolute;
    top: 50%;
    left: 6%;
    width: 36%;
    transform: translateY(-50%);
    color: #0d3b5c;
    text-shadow: 0 2px 8px rgba(255, 255, 255, .6);
}

.banner__title {
    margin: 0 0 1rem;
    font-size: clamp(28px, 3.6vw, 56px);
    font-weight: 800;
    line-height: 1.2;
}

.banner__desc {
    margin: 0 0 1.4rem;
    font-size: clamp(14px, 1.5vw, 24px);
    line-height: 1.7;
}

.banner__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.banner__tags li {
    padding: 6px 16px;
    border: 1px solid #239fd9;
    border-radius: 999px;
    font-size: clamp(12px, 1.1vw, 18px);
    text-shadow: none;
    background: rgba(255, 255, 255, .6);
}

.hero-person {
    position: relative;
    display: none;
}

.hero-person img {
    display: block;
    width: 100%;
    height: auto;
}

.hero-person__text {
    position: absolute;
    top: 5.5rem;
    left: 6%;
    right: 6%;
    color: #0d3b5c;
    text-shadow: 0 2px 8px rgba(255, 255, 255, .6);
}

.hero-person__title {
    margin: 0 0 .8rem;
    font-size: clamp(22px, 6.4vw, 32px);
    font-weight: 800;
    line-height: 1.25;
    white-space: nowrap;
}

.hero-person__desc {
    margin: 0;
    font-size: clamp(12px, 3.5vw, 14px);
    line-height: 1.6;
}

.hero-person__tags {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hero-person__tags li {
    padding: 4px 12px;
    border: 1px solid #239fd9;
    border-radius: 999px;
    font-size: 13px;
    text-shadow: none;
    background: rgba(255, 255, 255, .6);
}

/* 快速申請表單 */
.apply {
    scroll-margin-top: 7rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 4rem;
    background-color: #fff;
    background-image: linear-gradient(rgba(0, 0, 0, .64), rgba(0, 0, 0, .64)), linear-gradient(to top, rgba(0, 40, 70, .63) 0%, rgba(60, 180, 176, 0) 55.5%);
}

.apply__form {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    width: 80%;
}

.apply .apply__input,
.apply .apply__select {
    padding: 8px 16px;
    border: 1px solid #a3a3a3;
    border-radius: 4px;
    box-shadow: none;
    font-size: 16px;
    outline: none;
    background: #fff;
}

.apply .apply__input::placeholder {
    color: #d4d4d4;
}

.apply__phone {
    display: flex;
    gap: 8px;
}

.apply__form > .apply__input {
    width: 13.5rem;
}

.apply__phone .apply__input {
    width: 13.2rem;
}

.apply__select {
    width: 8rem;
    padding-right: 24px;
}

.apply .apply__submit {
    width: 9rem;
    box-shadow: none;
}

/* 公司介紹 */
.intro {
    padding: 8rem 0 4rem;
}

.intro__inner {
    display: flex;
    gap: 1rem;
}

.intro__text {
    flex: 1;
    align-self: center;
    padding-right: 1rem;
}

.intro__title {
    margin: 0;
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.25;
}

.intro__eyebrow {
    margin-top: 2rem;
    color: #239fd9;
    font-size: 18px;
    font-weight: 700;
}

.intro__body {
    padding: .5rem 0;
    font-size: 20px;
}

.intro__stats {
    flex: 1;
    margin-left: 1rem;
    padding: 2rem 3rem 1rem;
    border-radius: 1rem;
    color: #fff;
    background: linear-gradient(90deg, #a6f7c0, #5fbfe8);
    box-shadow: 0 0 20px rgba(72, 27, 0, .12);
    transition: background .3s ease;
}

.intro__stats:hover {
    background: linear-gradient(90deg, #8fe8ae, #45aede);
}

.stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .48);
}

.stat:last-child {
    margin-bottom: 0;
    border-bottom: 0;
}

.stat__icon {
    flex-shrink: 0;
    width: 5rem;
    height: 5rem;
}

.stat__icon svg {
    width: 100%;
    height: 100%;
}

.stat__num {
    font-family: Roboto, Arial, sans-serif;
    font-size: 36px;
    font-weight: 700;
}

.stat__label {
    font-size: 16px;
    font-weight: 700;
}

/* 方案摘要與我們的優勢 */
.advantages {
    padding-bottom: 4rem;
}

.advantages__summary {
    margin: 0 0 2rem;
    font-size: 30px;
    font-weight: 700;
    text-align: center;
}

.advantages__card {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 2.5rem;
    border-radius: 1.5rem;
    background: #fff;
    box-shadow: 0 0 19px rgba(72, 27, 0, .12);
}

.advantage {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
}

.advantage__head {
    display: flex;
    align-items: center;
    width: 100%;
}

.advantage__head i {
    flex: 1;
    height: 1px;
    background: rgba(255, 82, 0, .48);
}

.advantage__icon {
    flex: 1;
    display: inline-flex;
    justify-content: center;
    padding: 2.25rem;
    border-radius: 9999px;
    color: #fff;
    background: linear-gradient(90deg, #8fe8ae, #45aede);
    transition: all .3s ease;
}

.advantage__icon:hover {
    color: #239fd9;
    background: #dff3ec;
}

.advantage__icon svg {
    width: 100%;
    height: 100%;
}

.advantage__title {
    width: 60%;
    margin: 1.5rem 0 0;
    font-size: 1.17rem;
    font-weight: 700;
    text-align: center;
}

.advantage__text {
    width: 60%;
    margin: .25rem 0 0;
    color: #787878;
    font-size: 16px;
}

/* 專業貸款服務 */
.services {
    padding: 100px 20px;
}

.services__inner {
    width: 85%;
    margin: 0 auto;
}

.services__title {
    margin: 40px 0 12px;
    font-size: 40px;
    font-weight: 700;
    text-align: center;
}

.services__desc {
    margin: 4px 0 4rem;
    color: #555;
    font-size: 16px;
    text-align: center;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.service {
    min-height: 353px;
    padding: 24px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .15);
    transition: transform .3s ease, box-shadow .3s ease;
}

.service:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
}

.service__title {
    margin: 40px 0 12px;
    font-size: 1.5rem;
    font-weight: 900;
    text-align: right;
}

.service__text {
    color: #000;
    font-size: 15px;
    font-weight: 700;
    text-align: right;
}

/* 申請流程 */
.steps {
    padding: 100px 20px;
}

.steps__inner {
    width: 80%;
    margin: 0 auto;
}

.steps__title {
    margin: 0 0 60px;
    color: #232222;
    font-size: 40px;
    font-weight: 800;
    text-align: center;
}

.flow {
    display: flex;
}

.flow > * {
    flex: 1 1 100%;
}

.flow__img {
    display: flex;
    align-items: center;
    padding: 40px 0;
    justify-content: flex-end;
}

.flow--reverse .flow__img {
    justify-content: flex-start;
}

.flow__img img {
    width: 80%;
    height: 280px;
    border-radius: 8px;
    box-shadow: 10px 10px 0 #239fd9;
    object-fit: cover;
    object-position: center;
}

.flow__divider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin: 0 28px;
    width: 1px;
    background: rgba(35, 34, 34, .2);
}

.flow__body {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-content: center;
}

.flow__name {
    width: 100%;
    margin: 0 42px 0 0;
    color: #232222;
    font-family: Tahoma, Geneva, sans-serif;
    font-size: 28px;
    font-weight: 800;
}

.flow__line {
    display: flex;
    align-items: center;
    width: calc(100% + 42px);
    margin: 16px 0 24px -42px;
}

.flow__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, #a6f7c0, #5fbfe8);
}

.flow__line i {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, #a6f7c0, #5fbfe8);
}

.flow__arrow {
    width: 28px;
    height: 28px;
    border: 1px solid #239fd9;
    border-radius: 999px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23239fd9' stroke-width='2'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / 18px no-repeat;
}

.flow__text {
    width: 100%;
    margin: 0 42px 0 0;
    color: #555;
    font-family: Tahoma, Geneva, sans-serif;
    font-size: 16px;
}

.flow--reverse .flow__name,
.flow--reverse .flow__text {
    margin: 0 0 0 42px;
    text-align: right;
}

.flow--reverse .flow__line {
    flex-direction: row-reverse;
    margin: 16px -42px 24px 42px;
}

.flow--reverse .flow__arrow {
    transform: rotate(180deg);
}

.steps__dots {
    display: none;
    justify-content: center;
    margin-top: 12px;
}

.steps__dots span {
    width: 16px;
    height: 2px;
    margin: 4px;
    border-radius: 999px;
    background: #232222;
    opacity: .5;
    cursor: pointer;
}

.steps__dots span.is-active {
    opacity: 1;
}

/* 為什麼選擇 Credit Easy 與客戶分享 */
.reviews {
    padding-top: 6rem;
}

.reviews__heading {
    margin: 0;
    font-size: 40px;
    font-weight: 700;
    text-align: center;
}

.reviews__promise {
    margin: 0;
    padding: 1rem 0 2rem;
    font-size: 30px;
    font-weight: 700;
    text-align: center;
}

.reviews__sub {
    margin: 0;
    padding-bottom: 2rem;
    color: #0d3b5c;
    font-size: 16px;
    text-align: center;
}

.reviews__carousel {
    position: relative;
    padding: 3rem 0 6rem;
}

.reviews__viewport {
    overflow: hidden;
    width: 80%;
    margin: 0 auto;
}

.reviews__track {
    display: flex;
    margin-left: -12px;
    transition: transform .4s ease;
}

.reviews__item {
    display: flex;
    flex: 0 0 25%;
    padding-left: 12px;
}

.review {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
    min-height: 20rem;
    padding: 2rem;
    border-radius: 1rem;
    background: rgba(72, 27, 0, .04);
    transition: background .3s ease;
}

.review--tint {
    background: rgba(255, 225, 157, .1);
}

.review:hover {
    background: #dff3ec;
}

.review__text {
    margin-bottom: 1rem;
    font-size: 15px;
}

.review__author {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-top: 1rem;
    border-top: 2px dotted #239fd9;
    font-weight: 700;
}

.review__author img {
    width: 4rem;
    height: 4rem;
    border-radius: .75rem;
    object-fit: cover;
}

.reviews__nav {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 28px;
    height: 28px;
    margin-top: -16px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    font-size: 22px;
    line-height: 26px;
    background: #a3a3a3;
    opacity: .3;
    cursor: pointer;
}

.reviews__nav:hover:not(:disabled) {
    opacity: .9;
}

.reviews__nav--prev {
    left: 1%;
}

.reviews__nav--next {
    right: 1%;
}

@media (max-width: 992px) {
    .apply {
        height: auto;
        padding: 16px 0;
    }

    .apply__form {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .apply__form > .apply__input,
    .apply__phone .apply__input {
        width: 100%;
    }

    .intro__inner {
        flex-direction: column;
    }

    .intro__text {
        margin-bottom: 2rem;
        padding: 0;
    }

    .intro__stats {
        margin-left: 0;
    }

    .advantages__card {
        row-gap: 1rem;
    }

    .services {
        padding: 80px 20px;
    }

    .services__inner {
        width: 100%;
    }

    .services__grid {
        grid-template-columns: 1fr;
    }

    .steps {
        padding: 80px 20px;
    }

    .steps__inner {
        width: 100%;
    }

    .flow__img {
        padding: 32px 0;
    }

    .flow__img img {
        width: 100%;
    }

    .flow__name {
        font-size: 24px;
    }

    .advantage__head {
        flex-basis: 60%;
    }

    .reviews__item {
        flex-basis: 50%;
    }
}

@media (max-width: 768px) {
    .apply {
        height: auto;
        padding: 16px 0;
    }

    .apply__form {
        width: 80%;
    }

    .apply .apply__submit {
        width: 100%;
        font-size: 18px;
    }

    .intro__title {
        font-size: 2.25rem;
    }

    .advantages__summary {
        font-size: 22px;
    }

    .advantages__card {
        grid-template-columns: 1fr;
    }

    .advantage__icon {
        padding: 1rem;
    }

    .review {
        min-height: 16rem;
    }

    .reviews__heading,
    .reviews__sub {
        font-size: 22px;
    }

    .reviews {
        padding-top: 4rem;
    }

    .reviews__carousel {
        padding: 2rem 0 6rem;
    }

    .reviews__item {
        flex-basis: 100%;
    }

    .steps {
        padding: 60px 20px;
    }

    .steps__title {
        margin-bottom: 40px;
        font-size: 32px;
    }

    .flow {
        display: none;
        flex-direction: column;
    }

    .flow.is-active {
        display: flex;
    }

    .flow--reverse {
        flex-direction: column-reverse;
    }

    .flow__img {
        padding: 0;
    }

    .flow__img img {
        height: 100%;
    }

    .flow__divider {
        width: auto;
        height: 24px;
        background: none;
    }

    .flow__name {
        margin: 0 41px 0 0;
        font-size: 20px;
    }

    .flow__text {
        margin: 0 41px 0 0;
        font-size: 14px;
    }

    .flow__line {
        margin: 12px 0 16px -41px;
    }

    .flow--reverse .flow__name,
    .flow--reverse .flow__text {
        margin: 0 41px 0 0;
        text-align: left;
    }

    .flow--reverse .flow__line {
        flex-direction: row;
        margin: 12px 0 16px -41px;
    }

    .flow--reverse .flow__arrow {
        transform: none;
    }

    .steps__dots {
        display: flex;
    }

    .flow__arrow {
        cursor: pointer;
    }
}

@media (max-width: 480px) {
    .banner {
        display: none;
    }

    .hero-person {
        display: block;
    }

    .apply {
        height: auto;
        padding: 16px 0;
    }

    .apply__form {
        width: 90%;
    }

    .apply .apply__submit {
        font-size: 16px;
        background: #4bbcc4;
    }

    .wrap {
        width: 90%;
    }

    .intro {
        padding: 2rem 0;
    }

    .intro__stats {
        padding: 1rem;
    }

    .intro__text {
        margin-bottom: 1rem;
    }

    .intro__eyebrow {
        margin-top: 1rem;
    }

    .stat__icon {
        width: 2rem;
        height: 2rem;
    }

    .stat__num {
        font-size: 24px;
    }

    .advantages {
        padding: 0 0 4rem;
    }

    .advantages__card {
        padding: 2rem 1rem 1rem 2rem;
    }

    .advantage__icon {
        width: 4rem;
        height: 4rem;
    }

    .advantage__title {
        margin-top: 12px;
    }

    .advantage__text {
        font-size: 14px;
    }

    .services {
        padding: 40px 20px;
    }

    .services__inner {
        width: 100%;
    }

    .services__desc {
        margin-bottom: 4rem;
        font-size: 14px;
    }

    .services__grid {
        width: 87%;
        margin: 0 auto;
    }

    .service {
        min-height: 0;
        padding: 16px;
        aspect-ratio: 600 / 353;
    }

    .service__title {
        margin-top: 0;
    }

    .service__text {
        font-size: 14px;
    }

    .reviews__promise {
        margin: 0 20px;
        font-size: 20px;
        text-align: left;
    }

    .reviews__heading {
        margin: 0 10px;
    }

    .reviews__viewport {
        width: 100%;
    }

    .reviews {
        padding-top: 2rem;
    }

    .reviews__heading,
    .reviews__sub {
        text-align: left;
    }

    .reviews__carousel {
        padding-bottom: 3rem;
    }

    .review {
        min-height: 20rem;
    }

    .steps {
        padding: 40px 20px;
    }

    .flow__img img {
        height: 200px;
    }

    .flow__divider {
        display: none;
    }

    .flow__name {
        margin: 0;
    }

    .flow__line {
        margin: 12px 0 16px;
    }

    .flow__text {
        margin: 0;
    }

    .flow--reverse .flow__name,
    .flow--reverse .flow__text {
        margin: 0;
    }

    .flow--reverse .flow__line {
        margin: 12px 0 16px;
    }
}

/* 手機／平板：服務卡片改為上圖下文，避免文字遮住人物 */
@media (max-width: 768px) {
    .service {
        aspect-ratio: auto;
        min-height: 0;
        padding: 56% 20px 20px;
        background-color: #fff;
        background-size: 100% auto;
        background-position: top center;
    }

    .service__title {
        margin: 16px 0 10px;
        font-size: 1.4rem;
        text-align: left;
    }

    .service__text {
        margin: 0;
        font-size: 14px;
        line-height: 1.8;
        text-align: left;
    }
}

/* 線上申請表彈窗 */
.apply-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    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__card {
    position: relative;
    width: min(520px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 28px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .25);
}

.apply-modal__close {
    position: absolute;
    top: 8px;
    right: 14px;
    padding: 0;
    border: 0;
    color: #999;
    font-size: 2rem;
    line-height: 1;
    background: transparent;
    cursor: pointer;
}

.apply-modal__close:hover {
    color: #239fd9;
}

.apply-modal__title {
    margin: 0 0 4px;
    color: #239fd9;
    font-size: 28px;
    font-weight: 800;
    text-align: center;
}

.apply-modal__subtitle {
    margin: 0 0 20px;
    color: #666;
    text-align: center;
}

.apply-modal__field {
    margin-bottom: 12px;
}

.apply-modal__control {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #d4d4d4;
    border-radius: 6px;
    font-size: 16px;
    outline: none;
    background: #fff;
}

.apply-modal__control:focus {
    border-color: #239fd9;
}

.apply-modal__captcha {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 20px;
}

.apply-modal__captcha > div {
    flex-shrink: 0;
}

.apply-modal__captcha img {
    height: 36px;
    vertical-align: middle;
    cursor: pointer;
}

.apply-modal__submit {
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 6px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(90deg, #a6f7c0, #5fbfe8);
    cursor: pointer;
}

.apply-modal__submit:hover {
    background: linear-gradient(90deg, #8fe8ae, #45aede);
}

.loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .7);
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 6px solid #f3f3f3;
    border-top-color: #239fd9;
    border-radius: 50%;
    animation: apply-spin .8s linear infinite;
}

@keyframes apply-spin {
    to { transform: rotate(360deg); }
}

.swal2-confirm.custom-ok-btn {
    border: 0;
    color: #fff !important;
    background-color: #4bbcc4 !important;
}

/* 進場動畫（同參考網站）：捲動到才播放，1 秒 */
#main {
    overflow-x: clip;
}

.reveal-ready [data-reveal] {
    opacity: 0;
}

.reveal-ready [data-reveal].is-visible {
    animation: reveal-up 1s both;
}

.reveal-ready [data-reveal="left"].is-visible {
    animation-name: reveal-left;
}

.reveal-ready [data-reveal="right"].is-visible {
    animation-name: reveal-right;
}

@keyframes reveal-up {
    from { opacity: 0; transform: translate3d(0, 100%, 0); }
    to { opacity: 1; transform: none; }
}

@keyframes reveal-left {
    from { opacity: 0; transform: translate3d(-100%, 0, 0); }
    to { opacity: 1; transform: none; }
}

@keyframes reveal-right {
    from { opacity: 0; transform: translate3d(100%, 0, 0); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .reveal-ready [data-reveal] {
        opacity: 1;
    }

    .reveal-ready [data-reveal].is-visible {
        animation: none;
    }
}

/* 提示視窗要在申請表彈窗之上 */
.swal2-container {
    z-index: 10000;
}
