/* =========================================================
   Index
   首页专属样式
========================================================= */


/* =========================================================
   Banner
========================================================= */

.banner {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #f5f7f9;
}

.banner-wrapper {
    width: 100%;
    position: relative;
}

.banner-slide:first-child {
    position: relative;
}

.banner-slide {
    width: 100%;
    position: absolute;
    inset: 0;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity .7s ease,
        visibility .7s ease;

    z-index: 1;
}

.banner-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.banner-slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}


/* =========================================================
   Banner 左右按钮
========================================================= */

.banner-prev,
.banner-next {
    position: absolute;

    top: 50%;

    width: 46px;
    height: 76px;

    margin-top: -38px;

    padding: 0;

    border: 0;

    background: rgba(0, 0, 0, .14);

    color: rgba(255, 255, 255, .95);

    font-size: 42px;
    font-weight: 200;

    line-height: 76px;

    cursor: pointer;

    opacity: 0;

    transition:
        opacity .2s ease,
        background .2s ease;

    z-index: 20;
}

.banner-prev {
    left: 20px;
}

.banner-next {
    right: 20px;
}

.banner:hover .banner-prev,
.banner:hover .banner-next {
    opacity: 1;
}

.banner-prev:hover,
.banner-next:hover {
    background: rgba(0, 0, 0, .32);
}


/* =========================================================
   Banner 圆点
========================================================= */

.banner-dots {
    position: absolute;

    left: 50%;
    bottom: 16px;

    transform: translateX(-50%);

    display: flex;
    align-items: center;

    gap: 8px;

    z-index: 30;
}

.banner-dot {
    width: 8px;
    height: 8px;

    padding: 0;

    border: 0;

    border-radius: 50%;

    background: rgba(255, 255, 255, .68);

    cursor: pointer;

    transition:
        width .2s ease,
        background .2s ease;
}

.banner-dot.active {
    width: 24px;

    border-radius: 5px;

    background: #fff;
}


/* =========================================================
   通告
========================================================= */

.notice-section {
    width: 100%;
    background: #fff;
}

.notice-inner {
    min-height: 58px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}

.notice-left {
    min-width: 0;

    display: flex;

    align-items: center;
}

.notice-icon {
    width: 16px;
    height: 16px;

    flex-shrink: 0;

    margin-right: 9px;

    object-fit: contain;
}

.notice-title {
    margin-right: 22px;

    color: #222;

    font-size: 14px;

    font-weight: 400;

    white-space: nowrap;
}

.notice-text {
    max-width: 620px;

    overflow: hidden;

    color: #666;

    font-size: 13px;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.notice-more {
    flex-shrink: 0;

    color: #0076c8;

    font-size: 13px;

    white-space: nowrap;
}

.notice-more:hover,
.notice-text:hover {
    color: #0064a9;
}


/* =========================================================
   产品中心
========================================================= */

.product-section {
    padding: 38px 0 72px;

    background: #fff;
}


/* =========================================================
   产品网格
========================================================= */

.product-grid {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(12, minmax(0, 1fr));

    grid-template-rows:
        188px
        188px;

    gap: 10px;
}


/* =========================================================
   产品卡片布局
========================================================= */

.product-card:nth-child(1) {
    grid-column: span 6;
    grid-row: 1;
}

.product-card:nth-child(2) {
    grid-column: span 6;
    grid-row: 1;
}

.product-card:nth-child(3) {
    grid-column: span 4;
    grid-row: 2;
}

.product-card:nth-child(4) {
    grid-column: span 4;
    grid-row: 2;
}

.product-card:nth-child(5) {
    grid-column: span 4;
    grid-row: 2;
}


/* =========================================================
   产品卡片
========================================================= */

.product-card {
    position: relative;

    min-width: 0;
    min-height: 0;

    overflow: hidden;

    display: block;

    background: #edf3fa;

    cursor: pointer;

    text-decoration: none;

    box-sizing: border-box;
}


/* =========================================================
   产品图片
========================================================= */

.product-card img {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .45s ease;
}

.product-card:hover img {
    transform: scale(1.025);
}


/* =========================================================
   产品背景遮罩
========================================================= */

.product-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, .97) 0%,
            rgba(255, 255, 255, .91) 35%,
            rgba(255, 255, 255, .62) 58%,
            rgba(255, 255, 255, .14) 100%
        );

    z-index: 1;

    pointer-events: none;
}


/* =========================================================
   产品文字区域
========================================================= */

.product-content {
    position: relative;

    z-index: 2;

    width: 54%;
    height: auto;

    padding: 24px 20px;

    box-sizing: border-box;

    display: flex;

    flex-direction: column;

    justify-content: flex-start;
}


/* =========================================================
   上排两个大卡片
========================================================= */

.product-card:nth-child(1) .product-content,
.product-card:nth-child(2) .product-content {
    width: 58%;
}


/* =========================================================
   下排三个卡片
========================================================= */

.product-card:nth-child(3) .product-content,
.product-card:nth-child(4) .product-content,
.product-card:nth-child(5) .product-content {
    width: 70%;

    padding: 22px 18px;
}


/* =========================================================
   产品标题
========================================================= */

.product-content h3 {
    margin: 0 0 10px;

    color: #202020;

    font-size: 18px;

    font-weight: 700;

    line-height: 26px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


/* =========================================================
   产品描述
========================================================= */

.product-content p {
    margin: 0;

    color: #444;

    font-size: 12px;

    line-height: 1.75;

    text-align: justify;

    overflow: hidden;

    display: -webkit-box;

    -webkit-box-orient: vertical;

    /*
       上排最多显示 4 行
    */

    -webkit-line-clamp: 4;
}


/* =========================================================
   下排描述最多 4 行
========================================================= */

.product-card:nth-child(3) .product-content p,
.product-card:nth-child(4) .product-content p,
.product-card:nth-child(5) .product-content p {
    -webkit-line-clamp: 4;
}


/* =========================================================
   产品卡片焦点
========================================================= */

.product-card:focus {
    outline: 2px solid rgba(0, 118, 200, .35);

    outline-offset: -2px;
}


/* =========================================================
   新闻资讯
========================================================= */

.news-section {
    padding: 0 0 78px;

    background: #fff;
}

.news-layout {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 14px;

    align-items: stretch;
}


/* =========================================================
   新闻图片
========================================================= */

.news-image {
    min-height: 235px;

    overflow: hidden;

    display: block;

    background: #f2f5f8;

    text-decoration: none;
}

.news-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .45s ease;
}

.news-image:hover img {
    transform: scale(1.02);
}


/* =========================================================
   新闻列表
========================================================= */

.news-list {
    min-width: 0;

    border: 1px solid #e4e7eb;

    background: #fff;
}


/* =========================================================
   重点新闻
========================================================= */

.news-feature {
    min-height: 126px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 22px 24px;

    border-bottom: 1px solid #e5e5e5;

    box-sizing: border-box;
}

.news-feature-content {
    min-width: 0;

    flex: 1;
}

.news-feature-content h3 {
    max-width: 340px;

    margin: 0;

    color: #222;

    font-size: 15px;

    line-height: 1.7;

    font-weight: 600;

    display: -webkit-box;

    -webkit-box-orient: vertical;

    -webkit-line-clamp: 3;

    overflow: hidden;
}

.news-feature-content a {
    display: inline-block;

    margin-top: 10px;

    color: #0076c8;

    font-size: 12px;

    text-decoration: none;
}

.news-feature-content a:hover {
    color: #005f9f;
}


/* =========================================================
   新闻日期
========================================================= */

.news-date-large {
    flex-shrink: 0;

    margin-left: 18px;

    display: flex;

    align-items: center;
}

.news-date-large strong {
    color: #222;

    font-size: 34px;

    font-weight: 400;

    line-height: 1;
}

.news-date-large span {
    margin-left: 5px;

    color: #777;

    font-size: 10px;

    line-height: 1.5;
}


/* =========================================================
   新闻条目
========================================================= */

.news-item {
    min-height: 55px;

    padding: 0 20px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    border-bottom: 1px solid #eeeeee;

    color: #666;

    font-size: 12px;

    text-decoration: none;

    box-sizing: border-box;
}

.news-item:last-child {
    border-bottom: 0;
}

.news-item:hover {
    color: #0076c8;

    background: #fafcff;
}

.news-item span {
    min-width: 0;

    overflow: hidden;

    white-space: nowrap;

    text-overflow: ellipsis;
}

.news-item time {
    flex-shrink: 0;

    color: #999;

    font-size: 11px;
}


/* =========================================================
   合作伙伴
========================================================= */

.partner-section {
    padding: 46px 0 58px;

    background: #f5f7f9;
}

.partner-list {
    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 12px;
}

.partner-item {
    width: 142px;
    height: 58px;

    background: #fff;

    display: flex;

    align-items: center;

    justify-content: center;

    box-sizing: border-box;

    box-shadow:
        0 2px 10px rgba(0, 0, 0, .045);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.partner-item:hover {
    transform: translateY(-2px);

    box-shadow:
        0 5px 16px rgba(0, 0, 0, .08);
}

.partner-item img {
    width: 88%;

    max-height: 42px;

    object-fit: contain;
}


/* =========================================================
   响应式
========================================================= */

@media screen and (max-width: 1100px) {

    .product-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        grid-template-rows: auto;

        gap: 12px;
    }

    .product-card:nth-child(1),
    .product-card:nth-child(2),
    .product-card:nth-child(3),
    .product-card:nth-child(4),
    .product-card:nth-child(5) {
        grid-column: span 1;

        grid-row: auto;

        min-height: 180px;
    }

    .product-card:nth-child(1) .product-content,
    .product-card:nth-child(2) .product-content,
    .product-card:nth-child(3) .product-content,
    .product-card:nth-child(4) .product-content,
    .product-card:nth-child(5) .product-content {
        width: 68%;
    }

    .news-layout {
        grid-template-columns: 1fr;
    }

    .news-image {
        min-height: 260px;
    }
}


@media screen and (max-width: 768px) {

    .product-section {
        padding: 35px 0 50px;
    }

    .product-grid {
        grid-template-columns: 1fr;

        gap: 12px;
    }

    .product-card:nth-child(1),
    .product-card:nth-child(2),
    .product-card:nth-child(3),
    .product-card:nth-child(4),
    .product-card:nth-child(5) {
        grid-column: span 1;

        min-height: 190px;
    }

    .product-card:nth-child(1) .product-content,
    .product-card:nth-child(2) .product-content,
    .product-card:nth-child(3) .product-content,
    .product-card:nth-child(4) .product-content,
    .product-card:nth-child(5) .product-content {
        width: 70%;

        padding: 22px 18px;
    }

    .product-content h3 {
        font-size: 17px;
    }

    .product-content p {
        font-size: 12px;

        line-height: 1.75;

        -webkit-line-clamp: 4;
    }

    .news-section {
        padding-bottom: 50px;
    }

    .news-feature {
        padding: 18px;
    }

    .news-feature-content h3 {
        font-size: 14px;
    }

    .news-date-large strong {
        font-size: 28px;
    }

    .partner-section {
        padding: 38px 0 45px;
    }

    .partner-item {
        width: 130px;
        height: 54px;
    }
}


@media screen and (max-width: 480px) {

    .product-card:nth-child(1),
    .product-card:nth-child(2),
    .product-card:nth-child(3),
    .product-card:nth-child(4),
    .product-card:nth-child(5) {
        min-height: 175px;
    }

    .product-card:nth-child(1) .product-content,
    .product-card:nth-child(2) .product-content,
    .product-card:nth-child(3) .product-content,
    .product-card:nth-child(4) .product-content,
    .product-card:nth-child(5) .product-content {
        width: 75%;
    }

    .product-content h3 {
        font-size: 16px;

        margin-bottom: 8px;
    }

    .product-content p {
        font-size: 11px;

        line-height: 1.7;

        -webkit-line-clamp: 4;
    }

    .news-date-large {
        display: none;
    }

    .news-feature-content h3 {
        max-width: 100%;
    }

    .partner-list {
        gap: 8px;
    }

    .partner-item {
        width: 120px;
        height: 50px;
    }
}