/* =========================================================
   在线保理页面
   factoring.css

   页面结构：

   Header
      ↓
   Banner
      ↓
   在线保理介绍
      ↓
   产品价值
      ↓
   产品流程
      ↓
   Footer
========================================================= */


/* =========================================================
   基础
========================================================= */

.factoring-page {
    width: 100%;
    min-width: 1200px;
    background: #ffffff;
    color: #222222;
}

.factoring-container {
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}


/* =========================================================
   Banner
========================================================= */

.factoring-banner {
    width: 100%;
    overflow: hidden;
    background: #ffffff;
}

.factoring-banner-inner {
    width: 100%;
    line-height: 0;
}

.factoring-banner-inner img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}


/* =========================================================
   在线保理介绍
========================================================= */

.factoring-intro {
    width: 100%;
    background: #eef5ff;
}

.factoring-intro-inner {
    min-height: 250px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 70px;

    box-sizing: border-box;
}


/* =========================================================
   左侧文字
========================================================= */

.factoring-intro-content {
    flex: 1;
    min-width: 0;
    padding: 35px 0;
}

.factoring-title {
    margin-bottom: 28px;
}

.factoring-title h1 {
    margin: 0;

    color: #111111;

    font-size: 28px;
    line-height: 1.4;

    font-weight: 700;
}

.factoring-title span {
    display: block;

    width: 38px;
    height: 3px;

    margin-top: 12px;

    background: #1768c8;
}

.factoring-intro-content p {
    margin: 0 0 18px 0;

    color: #333333;

    font-size: 14px;
    line-height: 2;

    letter-spacing: 0.2px;
}

.factoring-intro-content p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   右侧图片

   修改：
   1. 图片完全填满外层方框
   2. 不再出现上下左右留白
   3. 保持图片比例
   4. 使用 cover，让图片充满整个区域
========================================================= */

.factoring-intro-image {
    flex: 0 0 360px;

    width: 360px;
    height: 190px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    border: 1px solid #c8dcf5;
    background: #f5f9ff;

    overflow: hidden;
}

.factoring-intro-image img {
    display: block;

    width: 100%;
    height: 100%;

    /*
     * 关键修改：
     * 原来的 contain 会导致图片比例与容器比例不一致时产生留白。
     * 改成 cover 后，图片会完全铺满整个方框。
     */
    object-fit: cover;

    object-position: center center;

    margin: 0;
    padding: 0;
}


/* =========================================================
   产品价值区域
========================================================= */

.factoring-value-section {
    width: 100%;
    background: #ffffff;

    padding: 55px 0 65px;
}


/* =========================================================
   通用标题
========================================================= */

.factoring-section-title {
    text-align: center;

    margin-bottom: 35px;
}

.factoring-section-title h2 {
    display: inline-block;

    margin: 0;

    color: #111111;

    font-size: 25px;
    line-height: 1.5;

    font-weight: 600;

    position: relative;
}

.factoring-section-title span {
    display: block;

    width: 38px;
    height: 3px;

    margin: 9px auto 0;

    background: #1768c8;
}


/* =========================================================
   产品价值卡片

   五张卡片：

   第一行：
   01        02

   第二行：
   03   04   05
========================================================= */

.factoring-value-grid {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(6, 1fr);

    grid-template-rows:
        150px 150px;

    gap: 18px;
}


/* =========================================================
   卡片
========================================================= */

.factoring-value-item {
    position: relative;

    overflow: hidden;

    padding: 24px 25px;

    border: 1px solid #e4edf8;

    border-radius: 3px;

    background:
        linear-gradient(
            135deg,
            #f8fbff 0%,
            #ffffff 100%
        );

    box-sizing: border-box;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


/* 第一张占四列 */

.factoring-value-item-main {
    grid-column: span 4;
}


/* 第二张 */

.factoring-value-item:nth-child(2) {
    grid-column: span 2;
}


/* 第三、四、五 */

.factoring-value-item:nth-child(3),
.factoring-value-item:nth-child(4),
.factoring-value-item:nth-child(5) {
    grid-column: span 2;
}


/* =========================================================
   卡片 Hover
========================================================= */

.factoring-value-item:hover {
    transform: translateY(-3px);

    box-shadow:
        0 8px 24px rgba(
            35,
            101,
            175,
            0.10
        );
}


/* =========================================================
   卡片图标
========================================================= */

.factoring-value-icon {
    position: absolute;

    right: 20px;
    bottom: 10px;

    width: 80px;
    height: 80px;

    opacity: 0.18;

    pointer-events: none;
}

.factoring-value-icon img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}


/* =========================================================
   卡片文字
========================================================= */

.factoring-value-content {
    position: relative;
    z-index: 2;

    max-width: 88%;
}

.factoring-value-content h3 {
    margin: 0 0 12px 0;

    color: #0d55ae;

    font-size: 17px;
    line-height: 1.5;

    font-weight: 600;
}

.factoring-value-content p {
    margin: 0;

    color: #555555;

    font-size: 12px;
    line-height: 1.8;
}


/* =========================================================
   第一张卡片
   对应截图中的蓝色主卡片
========================================================= */

.factoring-value-item-main {
    background:
        linear-gradient(
            135deg,
            #2878ed 0%,
            #78a7f6 100%
        );

    border-color: transparent;
}

.factoring-value-item-main .factoring-value-content h3 {
    color: #ffffff;
}

.factoring-value-item-main .factoring-value-content p {
    color: #ffffff;
}

.factoring-value-item-main .factoring-value-icon {
    opacity: 0.20;
}


/* =========================================================
   产品流程
========================================================= */

.factoring-process-section {
    width: 100%;

    background: #ffffff;

    padding: 15px 0 65px;
}


/* =========================================================
   流程图

   使用原始 Flowchart.jpg
   不重新制作图片
========================================================= */

.factoring-process-image {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.factoring-process-image img {
    display: block;

    width: 100%;
    max-width: 1000px;

    height: auto;

    object-fit: contain;
}


/* =========================================================
   Footer 上方留白
========================================================= */

.factoring-process-section::after {
    content: "";
    display: block;
    clear: both;
}


/* =========================================================
   1200 - 1399
========================================================= */

@media screen and (max-width: 1399px) {

    .factoring-container {
        max-width: 1000px;
    }

    .factoring-intro-inner {
        gap: 55px;
    }

    .factoring-intro-image {
        flex-basis: 340px;

        width: 340px;
        height: 180px;
    }

    .factoring-value-grid {
        gap: 15px;
    }

}


/* =========================================================
   平板
========================================================= */

@media screen and (max-width: 1100px) {

    .factoring-page {
        min-width: 0;
    }

    .factoring-container {
        width: 92%;
        max-width: none;

        padding-left: 0;
        padding-right: 0;
    }


    /* =====================================================
       Intro
    ====================================================== */

    .factoring-intro-inner {
        gap: 40px;
    }

    .factoring-intro-image {
        flex-basis: 320px;

        width: 320px;
        height: 170px;
    }

    /*
     * 保持图片完全填充
     */
    .factoring-intro-image img {
        width: 100%;
        height: 100%;

        object-fit: cover;
        object-position: center center;
    }


    /* =====================================================
       Value
    ====================================================== */

    .factoring-value-grid {
        grid-template-columns:
            repeat(2, 1fr);

        grid-template-rows: auto;

        gap: 15px;
    }

    .factoring-value-item,
    .factoring-value-item-main,
    .factoring-value-item:nth-child(2),
    .factoring-value-item:nth-child(3),
    .factoring-value-item:nth-child(4),
    .factoring-value-item:nth-child(5) {
        grid-column: span 1;
        min-height: 150px;
    }

    .factoring-value-item-main {
        background:
            linear-gradient(
                135deg,
                #2878ed 0%,
                #78a7f6 100%
            );
    }

}


/* =========================================================
   手机
========================================================= */

@media screen and (max-width: 768px) {

    .factoring-page {
        min-width: 0;
    }

    .factoring-container {
        width: 90%;
    }


    /* =====================================================
       Banner
    ====================================================== */

    .factoring-banner-inner img {
        width: 100%;
        height: auto;

        object-fit: cover;
    }


    /* =====================================================
       Intro
    ====================================================== */

    .factoring-intro-inner {
        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 25px;

        padding: 35px 0 40px;
    }

    .factoring-intro-content {
        padding: 0;
    }

    .factoring-title {
        margin-bottom: 20px;
    }

    .factoring-title h1 {
        font-size: 24px;
    }

    .factoring-intro-content p {
        font-size: 13px;
        line-height: 1.9;
    }

    .factoring-intro-image {
        flex: none;

        width: 100%;
        height: 220px;

        min-height: 0;

        overflow: hidden;
    }

    /*
     * 手机端同样让图片填满整个方框
     */
    .factoring-intro-image img {
        display: block;

        width: 100%;
        height: 100%;

        max-height: none;

        object-fit: cover;
        object-position: center center;

        margin: 0;
        padding: 0;
    }


    /* =====================================================
       Value
    ====================================================== */

    .factoring-value-section {
        padding: 40px 0 45px;
    }

    .factoring-section-title {
        margin-bottom: 25px;
    }

    .factoring-section-title h2 {
        font-size: 22px;
    }

    .factoring-value-grid {
        display: grid;

        grid-template-columns: 1fr;

        gap: 12px;
    }

    .factoring-value-item,
    .factoring-value-item-main,
    .factoring-value-item:nth-child(2),
    .factoring-value-item:nth-child(3),
    .factoring-value-item:nth-child(4),
    .factoring-value-item:nth-child(5) {
        grid-column: span 1;

        min-height: 135px;

        padding: 22px 20px;
    }

    .factoring-value-content {
        max-width: 80%;
    }

    .factoring-value-content h3 {
        font-size: 16px;
    }

    .factoring-value-content p {
        font-size: 12px;
    }


    /* =====================================================
       Process
    ====================================================== */

    .factoring-process-section {
        padding: 5px 0 45px;
    }

    .factoring-process-image {
        width: 100%;

        overflow-x: auto;

        justify-content: flex-start;
    }

    .factoring-process-image img {
        width: 100%;
        min-width: 700px;

        max-width: none;

        height: auto;
    }

}


/* =========================================================
   超小屏
========================================================= */

@media screen and (max-width: 480px) {

    .factoring-container {
        width: 92%;
    }

    .factoring-title h1 {
        font-size: 22px;
    }

    .factoring-section-title h2 {
        font-size: 20px;
    }

    .factoring-intro-image {
        width: 100%;
        height: 190px;

        min-height: 0;
    }

    .factoring-intro-image img {
        width: 100%;
        height: 100%;

        max-height: none;

        object-fit: cover;
        object-position: center center;
    }

    .factoring-value-item {
        min-height: 125px !important;
    }

}