/* News has its own screen; partners share the last screen with the footer. */

#fullpage .home-news .index_five,
#fullpage .home-partners .index_six {
    --section-header-height: 1rem;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    height: 100%;
    margin: 0;
    padding: calc(var(--section-header-height) + 24px) 0 24px;
}

#fullpage .home-news .center,
#fullpage .home-partners .center {
    width: min(15rem, calc(100% - 80px));
    height: auto;
    margin: 0 auto;
}

#fullpage .home-news .center {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 32px;
    padding: 0;
}

#fullpage .home-news .common_tit,
#fullpage .home-partners .common_tit {
    min-height: 76px;
}

#fullpage .home-news .common_tit .en,
#fullpage .home-partners .common_tit .en {
    font-size: clamp(40px, 3.65vw, 60px);
    line-height: 1.2;
}

#fullpage .home-news .common_tit .cn,
#fullpage .home-partners .common_tit .cn {
    top: 38px;
    font-size: clamp(24px, 1.9vw, 30px);
    line-height: 1.4;
    white-space: nowrap;
}

#fullpage .home-news .more {
    position: static;
    width: 120px;
    height: 36px;
    margin: 0;
    font-size: 14px;
    line-height: 34px;
    border-radius: 18px;
}

#fullpage .home-news .news {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: clamp(18px, 2vw, 32px);
    margin: 0;
}

#fullpage .home-news .news .item {
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 16px;
}

#fullpage .home-news .news .tit {
    width: 100%;
    min-height: 52px;
    max-height: 52px;
    padding-right: 16px;
    font-size: 16px;
    line-height: 26px;
}

#fullpage .home-news .news .new_img {
    height: auto;
    aspect-ratio: 4 / 3;
    max-height: calc(100vh - var(--section-header-height) - 264px);
    margin-top: 16px;
}

#fullpage .home-news .news .arrow {
    top: 22px;
    right: 16px;
    height: 16px;
}

#fullpage .home-partners .index_six {
    /* The source PNG has a transparent lower third; keep it outside the screen. */
    background-position: center top;
    background-size: max(100%, 310vh) auto;
    background-repeat: no-repeat;
}

#fullpage .home-partners .center {
    display: grid;
    grid-template-columns: minmax(210px, 1fr) minmax(0, 2.6fr);
    align-items: center;
    gap: clamp(32px, 4vw, 72px);
    padding: 0;
}

#fullpage .home-partners .list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    gap: 16px 20px;
    margin: 0;
}

#fullpage .home-partners .list .li {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2.75 / 1;
    margin: 0;
}

#fullpage .home-partners .list .scale-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#fullpage .home-partners-layout {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    height: 100%;
    padding-top: 1rem;
    background: #f1f6fc;
}

#fullpage .home-partners-layout .index_six {
    flex: 1 1 0;
    min-height: 0;
    height: auto;
    padding: 20px 0;
}

#fullpage .home-footer {
    flex: 0 0 auto;
}

@media (max-width: 1024px) {
    #fullpage .home-partners-layout {
        padding-top: 52px;
    }
    #fullpage .home-news .index_five,
    #fullpage .home-partners .index_six {
        --section-header-height: 52px;
    }

    #fullpage .home-news .center,
    #fullpage .home-partners .center {
        width: calc(100% - 48px);
    }

    #fullpage .home-news .center {
        gap: 24px;
    }

    #fullpage .home-partners .center {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    #fullpage .home-partners .list {
        gap: 14px;
    }
}

@media (max-width: 600px) {
    #fullpage .home-news .center,
    #fullpage .home-partners .center {
        width: calc(100% - 40px);
    }

    #fullpage .home-news .news {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    #fullpage .home-news .news .item {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 96px;
        align-items: center;
        gap: 14px;
        padding: 12px;
    }

    #fullpage .home-news .news .tit {
        min-height: 0;
        max-height: 72px;
        padding: 0;
        font-size: 14px;
        line-height: 24px;
        -webkit-line-clamp: 3;
    }

    #fullpage .home-news .news .new_img {
        margin: 0;
        max-height: none;
    }

    #fullpage .home-news .news .arrow {
        display: none;
    }

    #fullpage .home-news .more {
        width: 92px;
        font-size: 13px;
    }

    #fullpage .home-partners .list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px 10px;
    }
}
