/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-size: 16px;
}
a{
    text-decoration: none;
    color: #333;
}
.halo-container {
    position: relative;
    width: 50px;
    height: 50px;
    margin: 50px auto;
}
@font-face {
    font-family: 'INTRO';
    src: url('image/Intro-2.woff2') format('woff2'),
         url('image/Intro-2.woff') format('woff'),
         url('image/Intro-2.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* 光圈样式 */
.halo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    border-width: 5px;
    border-style: solid;
    border-image: radial-gradient(circle, rgba(0, 255, 255, 0.5), rgba(0, 162, 255, 0.5)) 1;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
    animation: rotate 5s linear infinite;
}
.dots-container {
    position: absolute;
    bottom: 20px; /* 距离底部的距离，可按需调整 */
    left: 50%;
    transform: translateX(-50%); /* 水平居中 */
    text-align: center;
    z-index: 2; /* 设置圆点容器的层级，要高于幻灯片 */
}
.dot {
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.dot.active {
    background-color: #717171;
}
/* 旋转动画 */
@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 导航栏样式 */
.navbar {
    width: 1600px;
    height: 80px;
    border-radius: 10px;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 20px;
    z-index: 999;
    background-color: white;
    transition: background-color 0.3s ease;
}
.nav{
    width: 1600px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* logo样式 */
.logo img {
    margin: 5px;
}

/* 导航链接样式 */
.nav-links {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-links li {
    margin-left: 20px;
    height: 80px;
    display: flex;
    align-items: center;
}

.nav-links li a {
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    padding: 0 10px;
    height: 100%;
    display: flex;
    align-items: center;
}

/* 导航链接悬停样式 */
.nav-links li a:hover {
    color: white;
    background-color: rgb(25, 143, 240);
    font-weight: bold;
}
.navbar.scrolled {
    width: 100%;
    top: 0;
    left: 0;
    transform: none;
    opacity: 0.8;
    border-radius: 0;
    border-bottom: 1px solid rgba(128, 128, 128, 0.1);
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(150px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 为需要添加效果的元素添加类名 */
.fade-in-up {
    opacity: 0;
    animation: fadeInUp 2s ease-out forwards;
}
.fade-in-up-delay-1 {
    opacity: 0;
    animation: fadeInUp 2s ease-out forwards;
    animation-delay: 0.5s; /* 延迟 0.5 秒 */
}

.fade-in-up-delay-2 {
    opacity: 0;
    animation: fadeInUp 2s ease-out forwards;
    animation-delay: 1s; /* 延迟 1 秒 */
}

.fade-in-up-delay-3 {
    opacity: 0;
    animation: fadeInUp 2s ease-out forwards;
    animation-delay: 1.5s; /* 延迟 1.5 秒 */
}
.fade-in-up-delay-4 {
    opacity: 0;
    animation: fadeInUp 2s ease-out forwards;
    animation-delay: 2s; /* 延迟 1.5 秒 */
}
.fade-in-left {
    opacity: 0;
    animation: fadeInUp 2s ease-out forwards;
}
.fade-in-up3 {
    opacity: 0;
    animation: fadeInUp 3s ease-out forwards;
}
/* 通栏图片样式 */
.hero-image {
    width: 100%;
    position: relative;
}
.title-intro-container {
    position: absolute;
    bottom: 200px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    color: dodgerblue;
}

/* 产品简介样式 */
.product-intro {
    position: absolute;
    left: 70%;
    transform: translateX(-50%);
    bottom: 150px;
    color: #666;
    line-height: 2;
}
.title{
    font-size: 100px;
    color: white;
    position: absolute;
    left: 10%;
    bottom: 80px;
    font-family: 'INTRO', sans-serif; /* 添加备用字体 */
}

/* 滑块容器样式 */
.slider {
    width: 100%;
    height: 1000px;
    position: relative;
    overflow: hidden;
}

/* 幻灯片样式 */
.slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    object-fit: cover;
}

/* 活动幻灯片样式 */
.slide.active {
    opacity: 1;
}

/* 左右箭头样式 */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 36px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}


.home-products{
    width: 100%;
}
.home-product-section {
    width: 1600px;
    margin: 0 auto;
    padding: 20px 0;
}

.home-product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.home-product-header h2 {
    font-size: 24px;
}

.view-more {
    font-size: 14px;
    cursor: pointer;
}

.bars {
    margin-left: 5px;
}
.product-block {
    background-color: #f8f9fb;
    border-radius: 10px;
    padding: 40px;
    position: relative; /* 为按钮定位做准备 */
    /* 可添加 min-height 保证最小高度 */
    min-height: auto; 
    box-sizing: border-box; /* 保证内边距不会影响高度 */
    overflow: auto; /* 防止内容溢出 */
    text-align: left; /* 让内容靠左边 */
}
.product-block h3 {
    margin-top: 0;
    font-size: 1.5em; /* 加大一号字体 */
}
.product-block p {
    font-size: 16px; /* 加大一号字体 */
    line-height: 1.6; /* 调整行间距 */;
    color: #666;
}

.home-product-content {
    display: flex;
    margin-top: 20px;
}

/* 修改左侧产品宽度为 900px */
.left-product {
    width: 900px;
    padding: 0 20px 20px 0; /* 调整内边距 */
    height: auto; /* 确保高度自适应 */
    box-sizing: border-box; /* 保证内边距不会影响宽度 */
}
.right-products {
    width: calc(1600px - 900px);
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    /* 修改此处，让右侧高度和左侧自适应高度保持一致 */
    height: auto; 
}

.home-product-item {

    padding: 20px;
    border-radius: 10px;
    cursor: pointer;
    flex-grow: 1; 
    margin-bottom: 10px;
    display: flex; /* 添加 flex 布局 */
    align-items: center; /* 垂直居中 */
    text-align: left; /* 文本居中 */
    transition: all 0.3s ease; /* 添加过渡效果 */
    color: #fff;
}
.home-product-item-bg1{
    background-image: url(images/probg1.jpg); /* 背景图片 */
    background-position: center; /* 背景图片居中 */
    background-size: cover; /* 让背景图片覆盖整个元素 */
    background-color: rgba(0, 0, 0, 0.5); /* 半透明黑色底色，0.5 表示透明度 */
    background-blend-mode: multiply; /* 混合背景图片和背景颜色 */
}
.home-product-item-bg2{
    background-image: url(images/probg2.jpg); /* 背景图片 */
    background-position: center; /* 背景图片居中 */
    background-size: cover; /* 让背景图片覆盖整个元素 */
    background-color: rgba(0, 0, 0, 0.5); /* 半透明黑色底色，0.5 表示透明度 */
    background-blend-mode: multiply; /* 混合背景图片和背景颜色 */
}
.home-product-item-bg3{
    background-image: url(images/probg3.jpg); /* 背景图片 */
    background-position: center; /* 背景图片居中 */
    background-size: cover; /* 让背景图片覆盖整个元素 */
    background-color: rgba(0, 0, 0, 0.5); /* 半透明黑色底色，0.5 表示透明度 */
    background-blend-mode: multiply; /* 混合背景图片和背景颜色 */
}
.home-product-item:last-child {
    margin-bottom: 20px;
}

/* 鼠标悬停效果 */
.home-product-item:hover {
    background-color: rgba(25, 143, 240, 0.8); /* 背景变蓝色，透明度 0.8 */
    color: white; /* 字体变白 */
    font-weight: bold; /* 字体加粗 */
}

.home-news-section {
    width: 1600px;
    margin: 0 auto;
    padding: 20px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.home-news-block {
    display: flex;
    border-radius: 10px;
    border: 1px solid rgba(128, 128, 128, 0.3); /* 淡灰色边框 */
    transition: all 0.3s ease;
}

.home-news-block:hover {
    border-color: rgb(25, 143, 240); /* 鼠标悬停时蓝色边框 */
}

.home-news-block img {
    width: 300px; /* 图片宽度 */
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}

.home-news-content {
    padding: 50px;
}

.home-news-content h3 {
    margin: 0;
    font-weight: normal;
    font-size: 24px;
}

.home-news-content p {
    margin: 10px 0 0;
    font-size: 14px;
    color: #999;
}

/* 产品展示部分样式 */
.products{
    width: 100%;
}
.product-section {
    width: 1600px;
    margin: 0 auto;
    padding: 20px 0;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-header h2 {
    font-size: 24px;
}

.view-more {
    font-size: 14px;
    cursor: pointer;
}

.bars {
    margin-left: 5px;
}

/* 产品内容样式 */
.product-content {
    display: flex;
    flex-wrap: wrap; /* 允许项目换行 */
    margin-top: 20px;
    /* 为了让左右两边有一定间距 */
    margin-left: -10px; 
    margin-right: -10px;
}

/* 产品项样式 */
.product-item {
    /* 每个产品项宽度为 50%，减去左右外边距 */
    width: calc(50% - 40px); 
    margin: 20px;
    padding: 50px;
    background-color: #f0f0f0;
    border-radius: 50px;
    text-align: center;
    transition: background-color 2s ease, color 0.5s ease, transform 5s ease; /* 添加过渡效果 */
    box-sizing: border-box; /* 让内边距和边框包含在宽度内 */
    position: relative; /* 添加相对定位，确保 ::after 伪元素定位正确 */
}

/* 鼠标悬停时的样式 */
.product-item:hover {
    background-color: rgba(25, 143, 240, 0.8); /* 背景变蓝色，透明度 0.8 */
    color: white; /* 文字颜色变白 */
    font-weight: bold; /* 字体加粗 */
}

.product-item h3 {
    font-size: 24px; /* 标题字体大小 */
    margin-bottom: 5px;
    transition: transform 1s ease; /* 添加过渡效果 */
}

.product-item p {
    font-size: 16px; /* 标题字体大小 */
    color: gray;
    transition: transform 1s ease; /* 添加过渡效果 */
}

.product-item:hover h3,
.product-item:hover p {
    /* 鼠标悬停时文字左对齐并向左移动 */
    transform: translateX(); 
    text-align: left;/* 移动到左侧相同位置 */
    transition: transform 1s ease; /* 添加过渡效果 */
    color: white;
}

/* 鼠标悬停时右侧圆圈样式 */
.product-item:hover::after {
    transition: transform 0.5s ease;
    content: "+";
    position: absolute;
    top: 60px;
    right: 30px;
    transform: translateY(-50%);
    width: 90px;
    height: 90px;
    background-image: url(images/circle.png); /* 浅蓝色渐变圆圈 */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    /* 添加旋转动画 */
    animation: rotateCircle 3s linear infinite; 
    animation-play-state: paused; /* 初始状态暂停动画 */
}

/* 鼠标悬停时启动旋转动画 */
.product-item:hover::after {
    animation-play-state: running; 
}

/* 定义旋转动画 */
@keyframes rotateCircle {
    0% {
        transform: translateY(-50%) rotate(0deg);
    }
    100% {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* 鼠标图案样式 */


.product-item:last-child {
    margin-bottom: 20px;
}



/* 查看更多按钮样式 */
.product-block .view-more-btn {
    background-color: rgb(25, 143, 240);
    color: white;
    border: none;
    border-radius: 20px; /* 圆弧按钮 */
    padding: 10px 20px;
    cursor: pointer;
    position: absolute;
    left: 40px; /* 按钮悬浮在左边 */
    bottom: 20px;
    transition: all 0.3s ease;
}

.product-block .view-more-btn:hover + p {
    color: gray; /* 按钮悬浮时下面简介字体变灰色 */
}
.about-banner{
    margin-top: 40px;
    width: 100%;
    height: 450px;
    background-image:url(images/about1.jpg);
    background-size: cover;
    background-position: center;
    display: flex;
}
.about-banner1{
    width: 100%;
    height: 450px;
    background-image:url(images/aboutbanner2.jpg);
    background-size: cover;
    background-position: top;
    display: flex;
    justify-content: center;
    align-items: center;
}
.news-section {
    width: 1600px;
    margin: 0 auto;
    padding: 20px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* 新闻块样式 */
.news-block {
    width: calc(20% - 20px);
    margin: 10px;
    background-color: #f9f9f9;
    border-radius: 10px;
    object-fit: cover;
    display: flex;
    flex-direction: column; /* 使子元素垂直排列 */
    background-color: rgb(243, 246, 251, 0.5); /* 半透明黑色底色，0.5 表示透明度 */
    background-blend-mode: multiply; /* 混合背景图片和背景颜色 */
}

/* 新闻图片样式 */
.news-block img {
    width: 100%;
    height: auto;
    opacity: 0.8; /* 图片透明度 */;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px; /* 图片下方添加间距 */
}

/* 新闻日期样式 */
.news-date {
    font-size: 12px;
    color: #999;
    margin-top: 10px;
    margin-left: 20px;
    margin-bottom: 15px; /* 日期下方添加间距 */
    text-align: left;
}

/* 新闻标题样式 */
.news-title {
    font-size: 18px;
    font-weight: bold;
    margin-top: 5px;
    margin-left: 20px;
    margin-bottom: 40px; /* 标题下方添加间距 */
    text-align: left;
}

.news-block:hover {
    border-color: rgb(25, 143, 240); /* 鼠标悬停时蓝色边框 */
}
.news-container a:hover {
   background-color: rgba(25, 143, 240, 0.8); 
   color: white;
}

.news-content {
    padding: 50px;
}

.news-content h3 {
    margin: 0;
    font-weight: normal;
    font-size: 24px;
}

.news-content p {
    margin: 10px 0 0;
    font-size: 14px;
    color: #999;
}
.footer{
    width: 100%;
    height: 560px;
    background-image:url(images/footer.jpg);
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
}
/* 清除浮动 */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* 公司简介部分样式 */
.aboutcon {
    width: 100%;
    margin-top: 80px;
    
}

.about-content {
    width: 1600px;
    margin: 0 auto;
}

.about-left {
    width: calc(50% - 40px); /* 减去内边距 */
    padding: 20px;
    float: left;
}

.about-right {
    width: calc(50% - 40px); /* 减去内边距 */
    padding: 20px;
    float: right;
}

.about-right h3 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #1c509d;
}

.about-right p {
    font-size: 16px;
    line-height: 2;
    color: #999;
}
.about-mi{
    width: 100%;
    height: 800px;
    background-image:url(images/aboutbg.jpg);
    background-size: cover;
}
.about-left h3 {
    font-size: 24px;
    font-weight: normal;
    margin: 50px;
    line-height: 2;
    color:#1c509d;
}
/* 首页产品样式 */
.home-products .product-section {
    /* 首页产品区域的样式 */
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
}

.home-products {
    /* 首页产品项的样式 */
    background-color: #fff;
    border: 1px solid #eee;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 5px;
}

/* 产品页面产品样式 */
.product-page-products .product-container {
    /* 产品页面产品区域的样式 */
    background-color: #f5f5f5;
    padding: 30px;
    border-radius: 15px;
}

.product-page-products  {
    /* 产品页面产品项的样式 */
    background-color: #eef;
    border: 1px solid #ddd;
    margin-bottom: 30px;
    padding: 30px;
    border-radius: 8px;
}


/* 查看更多按钮样式 */
.product-block .view-more-btn {
    background-color: rgb(25, 143, 240);
    color: white;
    border: none;
    border-radius: 20px; /* 圆弧按钮 */
    padding: 10px 20px;
    cursor: pointer;
    position: absolute;
    left: 40px; /* 按钮悬浮在左边 */
    bottom: 20px;
    transition: all 0.3s ease;
}

.product-block .view-more-btn:hover + p {
    color: gray; /* 按钮悬浮时下面简介字体变灰色 */
}




.news-content {
    padding: 50px;
}

.news-content h3 {
    margin: 0;
    font-weight: normal;
    font-size: 24px;
}

.news-content p {
    margin: 10px 0 0;
    font-size: 14px;
    color: #999;
}


/* 公司简介部分样式 */


.about-mi{
    width: 100%;
    height: 800px;
    background-image:url(images/aboutbg.jpg);
    background-size: cover;
}

/* 产品部分样式 */
.product-section {
    display: flex;
    justify-content: space-between;
}

/* 左侧产品样式 */
.left-product {
    width: 900px;
}

/* 右侧产品样式 */
.right-products {
    display: flex;
    flex-direction: column;
    width: calc(100% - 920px); /* 减去左侧宽度和间距 */
}

/* 右侧产品项样式 */
/* 定义旋转动画 */
@keyframes rotateCircle {
    0% {
        transform: translateY(-50%) rotate(0deg);
    }
    100% {
        transform: translateY(-50%) rotate(360deg);
    }
}


/* 查看更多按钮样式 */
.product-block .view-more-btn {
    background-color: rgb(25, 143, 240);
    color: white;
    border: none;
    border-radius: 20px; /* 圆弧按钮 */
    padding: 10px 20px;
    cursor: pointer;
    position: absolute;
    left: 40px; /* 按钮悬浮在左边 */
    bottom: 20px;
    transition: all 0.3s ease;
}

.product-block .view-more-btn:hover + p {
    color: gray; /* 按钮悬浮时下面简介字体变灰色 */
}



/* 新闻块样式 */


.news-content {
    padding: 50px;
}

.news-content h3 {
    margin: 0;
    font-weight: normal;
    font-size: 24px;
}

.news-content p {
    margin: 10px 0 0;
    font-size: 14px;
    color: #999;
}


/* 公司简介部分样式 */


.about-mi{
    width: 100%;
    height: 800px;
    background-image:url(images/aboutbg.jpg);
    background-size: cover;
}

.contact-container {
    width: 100%;
    height: 900px;
    padding-top: 80px;
    background-color: #f9f9f9; /* 背景颜色 */
}
.contact-content {
    width: 1600px;
    height: auto;
    margin: 0 auto;
    padding: 20px;
}

.contact-left, .contact-right {
    width: 48%; /* 预留一些间距 */
    float: left;
    display: block;
    height: 570px;
}

