﻿body {
    margin-bottom: 230px;
    font-family: "微软雅黑";
    width: 100%;
    /*   background-color:#f3f1f5;*/
}


/*#mainCarousel {
    width: 100%;
    position: relative;
}
.carousel-inner {
    width: 100%;
}

#normal-img-box {
    width: 100%;
    height: 50vh;
    position: relative;
    overflow: hidden;
    background-color: lightgray;
}

.carousel-item {
    width: 100%;
}

.box {
    width: 100%;
    height: 50vh;
    position: relative;
    overflow: hidden;
    background-color: lightgray;*/
/* filter: contrast(200%);*/
/*}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50vh;
    opacity: 0.8;*/
/*  background-color: rgba(0, 0, 0, 0.5); */
/*border: none;
    cursor: pointer;
    position: absolute;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-control-prev {
    left: 0;
}

.carousel-control-next {
    right: 0;
}

    .carousel-control-prev:hover,
    .carousel-control-next:hover {
        opacity: 1;*/
/* background-color: rgba(0, 0, 0, 0.5) */
/*}

.small-box {
    position: absolute;
    box-sizing: border-box;
    background-repeat: no-repeat;
    opacity: 0;
    transform-origin: center center;
    animation: none;
    background-size: 100% 100%;
    margin: 0;
    background-blend-mode: normal;*/
/*image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;*/
/*}*/

/* 定义不同的动画效果 */
/*.animate-corner {
    animation: cornerAnimate 1.5s ease forwards;
}

.animate-diagonal {
    animation: diagonalAnimate 1.5s ease forwards;
}

.animate-spiral {
    animation: spiralAnimate 1.5s ease forwards;
}

.animate-center {
    animation: centerAnimate 1.5s ease forwards;
}


@keyframes cornerAnimate {
    0% {
        opacity: 0;
        transform: scale(0) rotateX(180deg);
    }

    100% {
        opacity: 1;
        transform: scale(1.001) rotate(0deg);
    }
}

@keyframes diagonalAnimate {
    0% {
        opacity: 0;
        transform: scale(0) rotateY(180deg);
    }

    100% {
        opacity: 1;
        transform: scale(1.001) rotate(0deg);
    }
}

@keyframes spiralAnimate {
    0% {
        opacity: 0;
        transform: scale(0) rotateX(180deg);
    }

    100% {
        opacity: 1;
        transform: scale(1.001) rotateX(0deg);
    }
}

@keyframes centerAnimate {
    0% {
        opacity: 0;
        transform: scale(0) rotateY(180deg);
    }

    100% {
        opacity: 1;
        transform: scale(1.001) rotateY(0deg);
    }
}


.animate-out {
    animation: pieceAnimateOut 1.5s ease forwards;
}

@keyframes pieceAnimateOut {
    0% {
        opacity: 1;
        transform: scale(1.001) rotate(0deg);
    }

    100% {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }
}


#normal-img-box img {
    position: absolute;*/ /* 绝对定位，便于动画 */
/*top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: none;
}*/

/* 从右向右左滑入动画 */
/*.slide-in-left {
    animation: slideInLeft 0.7s cubic-bezier(0.4,0,0.2,1) forwards;
    z-index: 2;
}*/
/* 向右滑出动画 */
/*.slide-out-right {
    animation: slideOutRight 0.7s cubic-bezier(0.4,0,0.2,1) forwards;
    z-index: 1;
}

@keyframes slideInLeft {
    0% {*/
/* transform: translateX(-100%); */
/*transform: translateX(100%);
        opacity: 0.5;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    0% {*/
/*  transform: translateX(0); */
/*transform: translateX(100%);
        opacity: 1;
    }

    100% {*/
/* transform: translateX(100%); */
/*transform: translateX(0);
        opacity: 0.5;
    }
}*/



/* 基础样式 */
/** {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}*/

/* 新增样式 */
.slide-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
}

.text-line1, .text-line2 {
    display: block;
    transform: translateY(100px);
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

    .text-line1.active {
        transform: translateY(0);
        opacity: 1;
        transition-delay: 0.3s;
    }

    .text-line2.active {
        transform: translateY(0);
        opacity: 1;
        transition-delay: 0.6s;
    }

.main-title {
    font-size: 3.8rem;
    font-weight: 700;
    color: #2f4e9f;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.8s ease-out;
}

    .main-title.show {
        transform: translateY(0);
        opacity: 1;
    }

.product-card {
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.8s ease-out;
}

    .product-card.show {
        transform: translateY(0);
        opacity: 1;
    }

.slideshow-container {
    /* position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;*/
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

    .slide.active {
        opacity: 1;
    }

    .slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: scale(1.3);
        transition: transform 8s ease-out;
    }


.text-line1 {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    color: #ffffff;
}

.text-line2 {
    font-size: 2.6rem;
    font-weight: 600;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    /*color: #26b6bd;*/
    color: #d4af37;
}

.content-wrapper {
    /*   position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 1.2s ease-out;*/
    position: absolute;
    left: 0%;
    top: 30%;
    transform: translate(0%, -30%);
    text-align: center;
    width: 100%;
}

    .content-wrapper.show {
        transform: translateY(0);
        opacity: 1;
    }

.main-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #8e44ad);
    margin: 15px auto;
    border-radius: 2px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
}

.product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-img-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
    min-height: 350px;
}

.product-img1, .product-img2, .product-img3, .product-img4 {
    max-width: 100%;
    max-height: 350px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.product-img1 {
    width: 100%;
}

.product-img2 {
    width: 70%;
}

.product-img3 {
    width: 100%;
}

.product-img4 {
    width: 70%;
}

.product-info {
    padding: 0 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.product-name {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #2f4e9f;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

    .product-name i {
        color: #8e44ad;
    }

.product-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #e0e0e0;
    margin-bottom: 20px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.product-features {
    list-style: none;
    margin-bottom: 25px;
    flex: 1;
    width: 100%;
    padding: 0 15px;
}

    .product-features li {
        padding: 8px 0;
        padding-left: 25px;
        position: relative;
        font-size: 0.9rem;
        text-align: left;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    }

        .product-features li::before {
            content: '✓';
            position: absolute;
            left: 0;
            color: #2ecc71;
            font-weight: bold;
            font-size: 1.2rem;
        }

.product-link {
    display: inline-block;
    background: linear-gradient(90deg, #3498db, #8e44ad);
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    width: 80%;
    max-width: 200px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

    .product-link:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 15px rgba(52, 152, 219, 0.5);
    }



.slideshow-indicators {
    position: absolute;
    bottom: 20vh;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    margin: 0 8px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

    .indicator.active {
        background: white;
        transform: scale(1.2);
    }



/* 自定义主题颜色 */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #ecf0f1;
}


/* 自定义卡片1样式 */
.index-firstbar {
    width: 100%;
    height: 100%;
    padding: 40px;
    display: flex;
    gap: 20vw;
}

    .index-firstbar h6 {
        color: #999;
        font-size: 15px;
    }

/* 自定义图片白色边框和圆角 */
.img-border-home {
    border: 6px solid #fff; /* 白色边框 */
    border-radius: 18px; /* 圆角 */
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    object-fit: cover;
}

.img-circle-border-home {
    border: 6px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    object-fit: cover;
    background: #fff;
}

.section-title-home {
    font-size: 2rem;
    color: #666;
    text-align: center;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    margin: 20px auto;
    position: relative;
}

    .section-title-home::after {
        content: '';
        display: block;
        width: 90%;
        height: 1px;
        background: lightgray;
        /*background: linear-gradient(to right, #3498db, #2ecc71);*/ /*文字下方的横线颜色*/
        margin: 16px auto 0 auto;
    }


.index-firstbar .d-flex {
    margin-top: 20px;
}


.news-title-home, .about-text {
    font-size: 1.3rem;
    color: #1976d2;
    font-weight: bold;
    text-decoration: none;
}

    .news-title-home:hover, .about-text:hover {
        text-decoration: underline;
        color: #0d6efd;
    }

.news-date-home {
    font-size: 0.8rem;
    color: #888;
}

.news-desc-home {
    font-size: 1rem;
    color: #666;
}



.card-news-container .row {
    margin-bottom: 2vh;
}


.custom-card1 {
    border: none;
    border-radius: 30px;
    transition: transform 0.3s ease;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    display: flex;
    width: 12vw;
    height: 15vh;
    margin: 0 auto;
    overflow: hidden;
}

    .custom-card1:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

.index-firstbar img {
    cursor: pointer;
    transition: all 0.6s;
    /*filter: contrast(200%);*/
}

    .index-firstbar img:hover {
        transform: scale(1.3);
    }

.custom-text {
    margin-left: 10vw;
}

    .custom-text a {
        text-decoration: none;
    }


.text-indent {
    text-indent: 2em; /* 首行缩进2个字符 */
}


/* index-secondbar 样式 - 背景色横向铺满 */
.index-secondbar {
    background-color: #f8f9ef; /* 使用你想要的背景色 */
    width: 100vw; /* 视口宽度 */
    position: relative;
    left: 50%; /* 从中间开始 */
    right: 50%; /* 从中间结束 */
    margin-left: -50vw; /* 向左偏移视口宽度的一半 */
    margin-right: -50vw; /* 向右偏移视口宽度的一半 */
    padding: 3rem 0; /* 根据需要调整内边距 */
}

    .index-secondbar p {
        line-height: 2;
        color: #666;
        font-size: 16px;
    }

.custom-card2 {
    border: none;
    border-radius: 15px;
    transition: transform 0.3s ease;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    width: 12vw;
    height: 32vh;
    margin: 5vh 3.5vw; /*上下-2vh,左右3.5vw*/
    position: relative;
}

    .custom-card2 .front {
        background: linear-gradient(to bottom,#efec61,#a46ced);
        background-size: cover;
        width: 100%;
        height: 100%;
        text-align: center;
        border-radius: 15px;
    }

        .custom-card2 .front p {
            font-size: 40px;
            color: #fff;
            position: absolute;
            width: 400px;
            top: 45%;
            left: 50%;
            transform: translateX(-50%) translateY(-50%) translateZ(60px);
        }

    .custom-card2 .back {
        background: linear-gradient(to bottom,#77b967,#c77138);
        background-size: cover;
        width: 100%;
        height: 100%;
        text-align: center;
        border-radius: 15px;
        transform: rotateY(180deg);
        transform: rotate(180eg);
    }

        .custom-card2 .back p {
            font-size: 50px;
            color: dodgerblue;
            padding-top: 10vh;
        }


    .custom-card2 .front, .custom-card2 .back {
        position: absolute;
        top: 0;
        left: 0;
        backface-visibility: hidden;
        transition: transform 1.5s;
        transform-style: preserve-3d;
    }

    .custom-card2:hover .front {
        transform: rotateY(-180deg)
    }

    .custom-card2:hover .back {
        transform: rotateY(0deg)
    }

.threeD {
    backface-visibility: hidden;
    transform: translateZ(60px);
}


.custom-card2:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/*自定义按钮 */
.btn-custom {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 25px;
    border-radius: 25px;
    margin: 2vh auto;
}

    .btn-custom:hover {
        background-color: #34495e;
        color: white;
    }


.index-thirdbar {
    margin-top: 5vh;
    width: 100%;
    height: 100%;
}

.index-forthbar {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    /*margin-top:150px;*/
    padding: 3rem 0;
    overflow: hidden; /* 防止内容溢出 */
}

    /* 背景图片和遮罩 */
    .index-forthbar::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('/images/Home/background-image.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        z-index: -5; /* 确保背景在内容下面 */
    }

    /*遮罩效果 */
    .index-forthbar::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        /*background-color: rgba(0, 0, 0, 0.5);*/ /*黑色半透明遮罩，可调整透明度*/
        z-index: -1;
    }

    /* 确保内容在遮罩上方可见 */
    .index-forthbar > * {
        position: relative;
        z-index: 1;
        color: white; /* 如果遮罩较暗，文字设为白色更易读 */
    }


.index-fifthbar {
    margin-top: 5vh;
    width: 100%;
    height: 100%;
}

.logo-scroll-container {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.logo-scroll-wrapper {
    display: flex;
    gap: 50px; /* 图片间距 */
    animation: scroll-left 30s linear infinite; /* 较慢滚动速度 */
}


/* 方形边框 */
.square-border img {
    border-radius: 0%;
    background-color: #ae505f;
    padding: 5px;
}

/* 圆形边框 */
.circle-border img {
    border-radius: 50%;
    background-color: #e8e5e5;
    padding: 5px;
}


/* 滚动动画*/
@keyframes scroll-left {
    100% {
        transform: translateX(0);
    }

    0% {
        transform: translateX(calc(-100% - 20px));
    }
}



@media (max-width: 1366px) {
    .content-wrapper {
        top: 25%;
        transform: translate(0%, -25%);
    }

    .products-grid {
        padding: 0px 20px;
    }

    .product-img-container {
        min-height: 240px;
    }

    .product-img1, .product-img2, .product-img3, .product-img4 {
        max-height: 240px;
    }
}



/*2025/09/28*/
@media (max-width: 991.98px) {
    .col-lg-7.border-end {
        border-inline-end: none !important; /*取消右侧竖线*/
    }

    .index-firstbar .row{
        gap:60px;
    }

    .section-title-home {
        text-align: center;
        margin: 0 auto;
    }
}
/* ===== 超小屏幕手机优化 (≤375px) ===== */
@media (max-width: 375px) {
    body {
        margin-bottom: 750px;
    }

    html[lang="en-US"] body{
        margin-bottom:800px;
    }

    .text-line1 {
        font-size: 40px !important;
    }

    .text-line2 {
        font-size: 34px !important;
    }

    html[lang="en-US"] .text-line1 {
        font-size: 25px !important;
    }

    html[lang="en-US"] .text-line2 {
        font-size: 20px !important;
    }

    .main-title {
        font-size: 35px !important;
        text-align: center;
        margin-top: -60px;
    }

    html[lang="en-US"] .main-title {
        font-size: 22px !important;
    }


    /* 产品网格适配 */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
        padding: 0 10px;
    }

    .product-img-container {
        min-height: 150px;
    }

    .product-img1, .product-img2, .product-img3, .product-img4 {
        max-width: 100%;
        max-height: 150px;
    }

    .product-name {
        font-size: 1.2rem;      
    }


    /* 新闻列表适配 */   
    .d-flex.flex-column.gap-5 a {
        flex-direction: column;
        text-align: center;
        gap: 15px !important;
    }

    .img-border-home {
        width: 100% !important;
        max-width: 300px;
        margin: 0 auto;
    }


    /*体系证书适配*/
    .index-forthbar .container {
        padding: 0 10px;
        height: 310px;
    }

    #custom-img {
        height: 280px !important;
    }

    .img-item {
        width: 180px !important;
        height: 240px !important;
    }


    /*产品中心适配*/
    /*调整轮播容器高度 */
    .carousel-container {
        height: 800px !important;
        background-color: blue;
    }

    html[lang="en-US"] .carousel-container {
        height: 950px !important;
    }

    /* 调整轮播项布局 */
    .custom-carousel-item {
        flex-direction: column;
    }

        .custom-carousel-item .text-content {
            margin-top: -30px;
        }

    .text-content h2 {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px !important;
        font-weight: bolder;
    }
    /*调整图片网格 */
    .image-grid-container {
        width: 100%;
        margin-top: -120px !important;
    }

    html[lang="en-US"] .image-grid-container {
        margin-top: -30px !important;
    }

    /* 调整控制按钮大小和位置 */
    .carousel-controls {
        margin-top: 80px;
    }
    html[lang="en-US"] .carousel-controls {
        margin-top: 150px;
    }

}

@media (max-width: 320px) {
}

@media (max-width: 992px) {
}
