/*轮播图*/
.carousel {
    position: relative;
    width: 100%;
    height: 99.5vh;

}

.slides {
    display: flex;
    height: 100%;
    transition: opacity 1s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
    box-sizing: border-box;
    position: absolute;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    margin-top: 70px;
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.caption {
    position: absolute;
    bottom: 590px;
    left: 160px;
    color: #fff;
}

.fade-in {
    animation: fadeIn 2s ease-in-out forwards;
    /* 2秒的淡入动画 */
    opacity: 0;
    /* 初始透明度为0 */
}

.caption img {
    width: 100px;
}

.caption h2 {
    letter-spacing: 3px;
    /* 增加字符之间的间距 */
    word-spacing: 5px;
    /* 增加单词之间的间距 */
    font-size: 4em;
    margin: 0;
    margin: 20px 0;
    /* 添加上下边距 */
    font-weight: 550;
    /* 设置字体粗细为细体 */
}

.caption h3 {
    letter-spacing: 2px;
    /* 增加字符之间的间距 */
    word-spacing: 5px;
    /* 增加单词之间的间距 */
    font-size: 1em;
    margin: 0;
    animation-delay: 0.5s;
    /* 延迟0.5秒开始动画 */
}

.dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #717171;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.dot.active {

    background-color: #bbb;
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.prev {
    left: 0;
    border-radius: 3px 0 0 3px;
    background-color: transparent;
    border: none;
    /* 取消按钮的边框 */
    opacity: 0;
    /* 默认隐藏按钮 */
    transition: opacity 0.5s ease;
    /* 添加渐变效果 */
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
    background-color: transparent;
    border: none;
    /* 取消按钮的边框 */
    opacity: 0;
    /* 默认隐藏按钮 */
    transition: opacity 0.5s ease;
    /* 添加渐变效果 */
}

.prev img,
.next img {
    height: 70px;
    transition: filter 0.3s ease;
    /* 添加滤镜效果的过渡 */
}

.prev img:hover,
.next img:hover {
    filter: invert(50%) sepia(100%) saturate(200%) hue-rotate(180deg);
    /* 悬停时更改图片颜色 */
}


.carousel:hover .prev,
.carousel:hover .next {
    opacity: 1;
    /* 光标悬停在.carousel上时显示按钮 */
}


/*首页产品展示*/
.cpzzz {
    width: 100%;
    height: 900px;
    transform: translateY(20px);
    transition: transform 1.5s ease;
}

.cpzzz.show-animation {
    transform: translateY(0);
    /* 当添加动画效果的类时，位置变为0，元素逐渐向上移动 */
}

.pvnav {
    display: flex;
    height: 100px;
    width: 100%;
    border-bottom: 1px solid white;
    /* 添加下边线 */
}

.pvnav .search-bar {
    display: flex;

    border-bottom: 1px solid white;
}

.pvnav .search-bar input {
    font-size: 14px;
    width: 250px;
}

.menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

#menu > div a {
    text-decoration: none;
    /* 去除链接下划线 */
}

.left-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-left: 125px;
    /* 设置右侧项之间的间距 */
}

.cpnext a {
    font-weight: 500;
    font-size: 28px;
    /* 设置字体大小 */
    text-decoration: none;
    color: aliceblue;
}

.right-content a {
    color: black;
    /* 默认颜色为黑色 */
    transition: color 0.3s;
    /* 添加过渡效果 */
}

.right-content a:hover {
    color: white;
    /* 光标悬停时文字颜色变为白色 */
}

.search-bar button {
    background: none;
    /* 移除背景色 */
    border: none;
    /* 移除边框 */
    padding: 0;
    /* 移除内边距 */
    cursor: pointer;
    /* 设置鼠标样式为手型 */
}

.search-bar button img {
    width: 30px;
    /* 设置图片宽度 */
    height: 30px;
    /* 设置图片高度 */
}

input[type="text"] {
    background-color: transparent;
    /* 将背景颜色设置为透明 */
    border: none;
    /* 移除边框 */
    color: white;
    /* 设置文字颜色为白色 */
    outline: none;
    /* 移除输入框的默认轮廓样式 */
    width: 180px;
    /* 设置输入框的宽度为200像素 */
}

input[type="text"]::placeholder {
    color: white;
    /* 将 placeholder 文字颜色设置为白色 */
}


.right-content {
    display: flex;
    gap: 60px;
    align-items: center;
    margin-right: 150px;
    /* 设置右侧项之间的间距 */
}

.right-content a {
    color: rgb(0, 0, 0);
    font-size: 21px;
    /* 设置字体大小 */
}


.hero {
    display: flex;
    justify-content: space-between;
    padding-top: 80px;
    /* 增加顶部内边距 */
    color: rgb(0, 0, 0);
    transition: opacity 0.5s ease;
}

.heroimg {
    margin-right: 50px;
}

.heroimg img {
    margin-left: 150px;
    width: 80%;
    height: auto;
}

.hero-text {
    margin-right: 100px;
    width: 750px;
    height: 400px;

}

.hero-text img {
    width: 500px;
    /* 宽度为200像素 */
    height: auto;
    /* 高度自适应保持比例 */
}

.hero p {
    height: 30px;
    line-height: 1.5;
    font-size: 24px;
    margin-top: 10px;
    /* 增加顶部间距 */
    color: aliceblue;
}

.hero-text-a {
    font-size: 16px;
    line-height: 1.5;
    /* 设置行距为1.5倍字体大小 */
    margin-top: 10px;
    /* 增加顶部间距 */
    color: aliceblue;
}

.a1 {
    margin-top: 30px;
    /* 增加顶部间距 */
}

.a1 a {
    font-size: 24px;

    color: rgb(0, 0, 0);
}

.icons {
    display: flex;
    margin-top: 80px;
    /* 增加顶部间距 */
}

.icon {
    position: relative;
    /* 设置容器为相对定位 */
    display: flex;
    width: 70px;
    height: 100px;
    margin-right: 30px;
    /* 添加右侧间距 */
}

.icon img {
    width: 70px;
    height: 65px;
    transition: transform 0.5s ease;
    /* 添加过渡效果 */
}

.icon:hover img {
    transform: scaleX(-1);
    /* 在:hover伪类下，将图片水平反转 */
}

.icon span {
    position: absolute;
    /* 设置文字为绝对定位 */
    bottom: 0;
    /* 距离容器底部为0 */
    color: white;
    /* 文字颜色 */
    font-size: 14px;
    width: 100%;
    text-align: center;
    /* 让文字水平居中 */
}


.series-buttons {
    margin-top: 30px;
    width: 520px;
    display: flex;
    flex-wrap: wrap; /* 允许子元素换行 */
    /* 增加上边距 */
}

.series-buttons a {
    border: 1px solid black;
    width: 120px; /* 固定宽度 */
    color: rgb(0, 0, 0);
    padding: 10px; /* 确保内边距一致 */
    margin: 5px;
    font-size: 14px;
    text-decoration: none; /* 去除链接的下划线 */
    transition: background-color 0.3s ease, box-shadow 0.3s ease; /* 添加过渡效果 */
    display: flex;
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
    box-sizing: border-box; /* 确保内边距和边框包含在宽度内 */
}

.series-buttons a:hover {
    color: rgb(0, 0, 0);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    /* 悬停时添加阴影效果 */
}

/* 动画效果 */
.slide-in-left,
.slide-in-right {
    animation: slideInFromRight 0.5s forwards;
}

@keyframes slideInFromLeft {
    0% {
        transform: translateX(-5%);
        opacity: 0;
        visibility: hidden;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(-5%);
        opacity: 0;
        visibility: hidden;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }
}

/* 当分辨率为1024px时应用的样式 */
/*首页图片介绍*/

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.gallery.show {
    opacity: 1;
    /* 在 show 类被添加时显示 */
}

.gallery-item {
    position: relative;
    flex: 1 1 calc(33.333% - 10px);
    height: 650px;
    box-sizing: border-box;
    margin-bottom: 20px;
    text-align: center;
    overflow: hidden;
    transform: translateY(50px);
    opacity: 0;
    transition: transform 1s ease, opacity 1s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.gallery-item.show {
    transform: translateY(0);
    opacity: 1;
}

.gallery-item img {
    width: 100%;
    /* 图片宽度填充容器 */
    height: 100%;
    /* 图片高度填充容器 */
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.text-container {
    position: absolute;
    bottom: 0;
    color: white;
    padding: 10px;
    box-sizing: border-box;
    width: 100%; /* Ensures responsiveness */
    height: auto;
    left: 0;
    right: 0;
    margin: 0 auto;
    text-align: left;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(20px);
    /* 初始位置在底部下方 */
}


.gallery-item:hover .text-container {
    opacity: 1;
    transform: translateY(0);
    /* 鼠标悬停时向上滑动 */
}

.text-container p {
    font-size: 34px;
    color: rgb(255, 255, 255);
    transition: transform 1s ease;
}

.text-container a {
    font-size: 18px;
    line-height: 1.6;
    color: rgb(255, 255, 255);
    transition: transform 1s ease;
    height: 110px;
    margin-bottom: 20px;
    /* 调整向下移动的高度 */
    transform: translateY(50px);
    /* 初始位置在底部下方 */
    display: block;
}

.gallery-item:hover .text-container a {
    transform: translateY(0);
    /* 鼠标悬停时向上滑动 */
}

.gallery-item:not(:hover) .text-container a {
    transform: translateY(130px);
    /* 鼠标移开时向下滑动隐藏，自适应链接的高度 */
}

.gallery-item:not(:hover) .text-container p {
    transform: translateY(130px);
    /* 鼠标移开时向下滑动隐藏 */
}

/*首页公司介绍*/
.container {
    background-size: 140px auto;
    background-repeat: no-repeat;
}

.container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background-repeat: no-repeat;
    background-position: left 400px center;
    /* 背景图片靠左，距离左侧20px，垂直居中 */
    background-size: auto 100%;
    /* 调整背景图片大小，高度自适应 */
    box-sizing: border-box;
    padding: 50px 5px 5px 5px;
    margin-top: 10px;
    padding-bottom: 90px;

}

.left-section {
    width: 35%;
}


.left-section {
    margin-left: 110px;
    /* 设置右侧项之间的间距 */
    display: flex;
    flex-direction: column;

}

.top-left a,
.top-left p {
    margin: 0;
    padding: 0;
}

.top-left {
    margin-top: 50px;
}

.top-left p {
    font-weight: 700;
    /* 自定义粗度 */
    font-size: 42px;
    /* 设置字体大小 */
    color: rgb(0, 0, 0);
}

.top-left a {
    font-weight: 400;
    /* 自定义粗度 */
    font-size: 30px;
    /* 设置字体大小 */
    color: rgb(0, 0, 0);
}

.bottom-left {
    margin-top: 200px;
    margin-left: 180px;
    /* 设置右侧项之间的间距 */
}

.bottom-left a {
    font-size: 18px;
    /* 设置字体大小 */

}


.blue-number + .black-text::after {
    content: "";
    /* 清除内容 */
    margin-left: 20px;
    margin-right: 20px;
    border-left: 1.5px solid black;
    /* 创建竖线 */
    height: 35px;
    /* 调整竖线的上下长度 */
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 18px;
    /* 添加下边距 */
}

.blue-number {
    color: rgb(43, 43, 201);
    /* 蓝色字体 */
    font-size: 38px;
    /* 设置字体大小 */
    font-weight: 700;
    /* 自定义粗度 */
}

.black-text {
    color: black;
    /* 黑色字体 */
    margin-top: 20px;
    /* 后面的 | 分隔符间距 */
    font-size: 14px;
    /* 设置字体大小 */
}

.black-number {
    color: black;
    /* 黑色字体 */
    font-size: 38px;
    /* 设置字体大小 */
    font-weight: 700;
    /* 自定义粗度 */
}


.right-section {
    width: 650px;
    display: flex;
    flex-direction: column;
    margin-top: 120px;
    margin-right: 120px;
    /* 设置右侧项之间的间距 */

}

.right-section h2 {
    font-size: 60px;
    /* 设置字体大小 */
}

.right-section a {
    font-size: 21px;
    /* 设置字体大小 */
}

.right-section p {
    font-size: 16px;
    /* 设置字体大小 */
}

.top-right,
.bottom-right {
    display: flex;
    justify-content: space-between;
}

.top-right-left,
.top-right-right,
.bottom-right-left,
.bottom-right-right {
    width: 300px;
    align-items: center;
    text-align: center;
}


.top-right-left h2,
.top-right-left p,
.top-right-right h2,
.top-right-right p,
.bottom-right-left h2,
.bottom-right-left p,
.bottom-right-right h2,
.bottom-right-right p {
    margin: 20px 0;
    /* 调整为您希望的上下间距 */
}


/*首页新闻模块*/
/* 新闻容器样式 */
.news-container {
    width: 1400px;
    height: auto;
    margin: 0 auto;
    /* 设置左右边距为自动，实现水平居中 */
}
.DB{
    margin-bottom: 50px!important;
}
/* 新闻标题部分 */
.news-header {
    height: 100px;
    text-align: center;
    /* 文字居中 */
}

.news-header a {
    text-decoration: none;
    /* 去除链接默认下划线 */
    font-size: 38px;
    /* 字体加大 */
    color: rgb(0, 0, 0);
}

/* 新闻内容部分 */
.news-content {
    display: flex;
}

/* CSS */
.news-left {
    width: 1000px;
    height: auto;

}

/* 左侧新闻顶部样式 */
.news-left .news-top-next {
    width: 1000px;
    height: 500px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 -2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    /* 超出容器部分隐藏 */
}

.news-top-next-img {
    width: 1000px;
    height: 500px;
}

.image-container-news:hover img,
.image-container-news .image-text:hover ~ img {
    transform: scale(1.1);
}

.news-top-next img {
    transition: transform 0.8s ease;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

/* 左侧新闻底部样式 */
.news-left .news-bottomm {
    width: 1000px;
    margin-top: 20px;
    height: auto;
    gap: 15px;
}

.image-container-news {
    position: relative;
}

.image-text {
    width: 600px;
    height: 280px;
    position: absolute;
    top: 5%;
    /* 通过调整top和left属性，可以对文字进行精确定位 */
    left: 5%;
    background-color: rgba(0, 0, 0, 0.05);
    /* 设置文字背景颜色和透明度 */
    color: #fff;
    /* 设置文字颜色 */
}


/* 左侧底部背景颜色 */
.left-bg {
    float: left;
    /* 左浮动 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 -2px 4px rgba(0, 0, 0, 0.1);
    width: 490px;
    height: 260px;
}

.left-bg span {
    color: black;
    /* 设置默认文字颜色为黑色 */
    transition: color 0.5s;
    /* 添加文字颜色变化的过渡效果 */
}

.margin-left {
    margin-left: 20px; /* 你可以根据需要调整这个值 */
}

.left-bg:hover span {
    color: #1b3d9d;
}

/* 右侧底部背景颜色 */
.right-bg {
    float: right;
    /* 右浮动 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 -2px 4px rgba(0, 0, 0, 0.1);
    width: 490px;
    height: 262px;
}

.right-bg a {
    color: black;
    /* 设置默认文字颜色为黑色 */
    transition: color 0.5s;
    /* 添加文字颜色变化的过渡效果 */
}

.right-bg:hover a {
    color: #1b3d9d;
}


/* 右侧新闻内容 */
.news-right {
    width: 500px;
    height: 900px;
}

.news-right .news-top:nth-child(2) {
    margin-bottom: 20px; /* 根据需要调整上边距 */
}

/* 右侧新闻顶部 */
.news-top {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 380px;
    height: 380px;
}

.news-top .top-image img {
    transition: transform 0.8s;
}

.news-top:hover .top-image img {
    transform: scale(1.2);
}

.news-top:hover .top-text span {
    color: #1b3d9d;
}

/* 右侧新闻底部 */
.news-bottom {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 380px;
    height: 380px;
    margin-top: 20px;
}

.additional-margin {
    margin-left: 20px;
}

.news-bottom .top-image img {
    transition: transform 0.8s;
}

.news-bottom:hover .top-image img {
    transform: scale(1.2);
}

.news-bottom:hover .top-text span {
    color: #1b3d9d;
}

.small-font h1 {
    font-size: 18px;
    font-weight: normal;
    line-height: 1.5;
}

.top-image {
    height: 240px;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.top-image img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: transform 0.3s;
}

.top-text {
    /* 文字左对齐 */
    padding: 1px 20px;
    /* 增加上下左右内边距 */
}

.news-top-bt {
    /* 如果需要单独调整内部元素的样式，也可以单独设置 */
    font-size: 16px !important; /* 例如，设置内部元素的字体大小 */
    color: #0a468c !important; /* 设置内部元素的文字颜色为红色 */
}

.news-top-rq {
    /* 如果需要单独调整内部元素的样式，也可以单独设置 */
    font-size: 16px !important; /* 例如，设置内部元素的字体大小 */
}


.top-text span {
    font-size: 22px;
    /* 设置字体大小 */
    color: #000;
    /* 设置默认文字颜色为黑色 */
    line-height: 1.5;
    /* 增加行距 */
    transition: color 0.5s;
    /* 添加文字颜色变化的过渡效果 */
}

.top-text-next {
    text-align: left;
    /* 文字左对齐 */
    padding: 50px 20px;
    /* 增加上下左右内边距 */
}

.top-text-next span {
    font-size: 22px;
    /* 设置字体大小 */
    color: #000;
    /* 设置默认文字颜色为黑色 */
    line-height: 1.5;
    /* 增加行距 */
    transition: color 0.5s;
    /* 添加文字颜色变化的过渡效果 */
}


.image-text-next {
    /* 文字居中显示 */
    text-align: left;
    /* 文字左对齐 */
    padding: 10px 20px;
    /* 增加上下左右内边距 */
}

.image-text-next span {
    font-size: 20px;
    /* 设置字体大小 */
    color: #ffffff;
    /* 设置默认文字颜色为黑色 */
    line-height: 1.5;
    /* 增加行距 */
    transition: color 0.5s;
    /* 添加文字颜色变化的过渡效果 */
}


.news-title {
    color: #1b3d9d;
}


/* 首页服务网络 */
.background-with-content {
    background-size: cover;
    background-position: center;
    height: 550px;
    /* 设置高度，以适应你的布局需求 */
    position: relative;
    /* 创建相对定位上下文 */
}

.background-with-content > .content {
    position: absolute;
    /* 将子元素绝对定位于父元素的位置 */
    top: 50%;
    /* 从顶部50%处开始定位 */
    left: 20%;
    /* 从左侧50%处开始定位 */
    transform: translate(-50%, -50%);
    /* 将子元素水平和垂直居中 */
    text-align: center;
    /* 文本居中对齐 */
    color: #000000;
    /* 设置文字颜色为白色 */
    padding: 20px;
    /* 添加内边距，以增加内容与边框之间的距离 */
}

.background-with-content > .content p {
    font-size: 32px;
    margin-bottom: 10px;
    /* 设置段落标签间距 */
}

.background-with-content > .content h1 {
    font-size: 40px;
    margin-left: 210px;
    /* 设置左间距为20px */
    margin-bottom: 80px;
    /* 设置标题和段落之间的间距 */
}

.background-with-content > .content a {
    display: inline-block;
    padding: 10px 50px;
    margin-left: 20px;
    /* 设置左间距为20px */
    background-color: #000000;
    /* 设置按钮背景颜色 */
    color: #ffffff;
    /* 设置按钮文字颜色 */
    text-decoration: none;
    /* 移除下划线 */
    transition: background-color 0.3s ease;
    /* 背景颜色变色过渡 */
}

.arrow-img {
    width: 20px;
    /* 设置图片宽度 */
    height: auto;
    /* 设置图片高度 */
    vertical-align: middle;
    /* 使图片与文字垂直对齐 */
    transition: transform 0.3s ease;
    /* 图片移动过渡 */
}

.background-with-content > .content a:hover {
    background-color: #29292a;
    /* 光标指向时背景颜色变为蓝色 */
}

.background-with-content > .content a:hover .arrow-img {
    transform: translateX(5px);
    /* 光标指向时图片向右移动5px */
}


@keyframes slideInFromLeftWithoutVisibility {
    from {
        transform: translateX(-5%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromRightWithoutVisibility {
    from {
        transform: translateX(5%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Initially hide elements */

.news-visible-left {
    opacity: 1;
    animation: slideInFromLeftWithoutVisibility 1s forwards;
}

.news-visible-right {
    opacity: 1;
    animation: slideInFromRightWithoutVisibility 1s forwards;
}
