.pc-home { width: 100%; overflow-x: hidden; } ul, li { list-style: none; margin-block-start: 0; margin-block-end: 0; padding-inline-start: 0px; } // banner .first-screen { position: relative; height: 100vh; width: 100%; .navbar { position: absolute; top: 0; left: 0; right: 0; z-index: 100; display: flex; justify-content: space-between; align-items: center; padding: 20px 50px; background: rgba(1, 50, 73, 0.7); backdrop-filter: blur(10px); .logo { color: white; font-size: 24px; font-weight: bold; } .nav-menu { display: flex; list-style: none; li { margin-left: 30px; a { color: white; text-decoration: none; font-size: 16px; transition: color 0.3s; &:hover { color: #40a9ff; } } } } } .carousel-wrapper { height: 100%; :deep(.ant-carousel) { height: 100%; .slick-slider { height: 100%; } .slick-list, .slick-track, .slick-slide, .slick-slide>div { height: 100%; } } .carousel-item { position: relative; height: 100%; video { width: 100%; height: 100%; object-fit: cover; } .carousel-content { position: absolute; top: 40%; left: 10%; transform: translateY(-50%); color: white; z-index: 10; max-width: 900px; text-align: left; h1 { font-size: 48px; margin-bottom: 15px; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); } p { font-size: 20px; margin-bottom: 20px; text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); } .ant-btn { height: 50px; padding: 0 30px; font-size: 18px; } // 第一屏图片标题字体 .slideTitle{ font-size: 36px; } .slideintro{ font-size: 60px!important; line-height: 1.3; } .englishFont{ font-family: '思源黑体',Arial, sans-serif; color: rgba(255, 255, 255, 0.6); } } } } .scroll-indicator { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); display: flex; align-items: center; justify-content: center; cursor: pointer; animation: bounce 2s infinite; z-index: 10; .anticon { font-size: 20px; color: white; } } } // 核心产品 .second-screen { // min-height: 100vh; padding: 93px 0 94px; background: #f8f9fa; .container { max-width: 1200px; margin: 0 auto; } //标题 描述样式 .content-section { text-align: center; margin-bottom: 60px; h2 { margin-bottom: 20px; display: flex; align-items: center; justify-content: center; span{ font-size: 40px; color: rgba(31, 92, 172, 1); padding-left:16px; font-weight:700; } } p { font-size: 18px; color: #666; max-width: 800px; margin: 0 auto; } .core-products{ display: flex; align-items: center; justify-content: center; li{ border-right:1px solid rgba(153, 153, 153, 1); padding:0 15px; color: rgba(153, 153, 153, 1); font-size: 20px; // 动画样式 } li:last-child{ border-right:none; } } } .services-section { // 核心产品上图 .serviceList{ margin-bottom:16px; .ant-col-12{ .service-card{ height:224px; } } .ant-col-12:first-child{ .service-card{ background: url("../../../assets/images/index-pro1.png") no-repeat center; } } .ant-col-12:last-child{ .service-card{ background: url("../../../assets/images/index-pro2.png") no-repeat center; } } } // 核心产品下图 .serviceList2{ .ant-col-6{ .service-card{ height:224px; } &:nth-child(1){ .service-card{ background: url("../../../assets/images/index-pro3.png") 100% 100% no-repeat; background-size: cover; } } &:nth-child(2){ .service-card{ background: url("../../../assets/images/index-pro4.png") 100% 100% no-repeat; background-size: cover; } } &:nth-child(3){ .service-card{ background: url("../../../assets/images/index-pro5.png") 100% 100% no-repeat; background-size: cover; } } &:nth-child(4){ .service-card{ background: url("../../../assets/images/index-pro6.png") 100% 100% no-repeat; background-size: cover; } } } } .service-card { background: white; // box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); transition: transform 0.3s, box-shadow 0.3s; &:hover { transform: translateY(-10px); // box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15); } h3 { font-size: 22px; color:#ffffff; padding:20px 0 0 20px; margin-block-start:0; margin-block-end:0; cursor: pointer; font-weight: 400; } } } } // 第三屏:AI+智能节能技术 .three-screen{ min-height: 100vh; background:url("../../../assets/images/threeSceenbg.png") no-repeat center center; position: relative; background-size: cover; z-index: 1; background-attachment: fixed;//背景图片相对于浏览器窗口固定,不随页面滚动而移动 .container { max-width: 1200px; margin: 0 auto; padding-top:113px; padding-bottom:117px; } //标题 描述样式 .content-section { text-align: center; margin-bottom: 60px; h2 { margin-bottom: 20px; display: flex; align-items: center; justify-content: center; span{ font-size: 40px; color: #ffffff; padding-left:16px; font-weight:700; } } p { font-size: 20px; color: #ffffff; max-width: 800px; margin: 0 auto; } } .carousel-section{ .carousel-wrapper{ display: flex; } } // swiper滑动 .ai-tech-carousel { position: relative; padding-bottom: 50px; // 为进度条留出空间 :deep(.swiper-slide) { padding: 0 10px; .slide-content { border-radius: 8px; overflow: hidden; transition: all 0.3s ease; cursor: pointer; &.active { transform: scale(1.05); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15); } img { width: 100%; height: auto; display: block; } .slide-info { padding: 15px; background: #f8f9fa; h3 { margin: 0 0 10px 0; font-size: 18px; color: #1f2937; } p { margin: 0; font-size: 14px; color: #6b7280; line-height: 1.5; } } } } } } // 第四屏 应用场景 .screens-four{ background:#ffffff; padding-top:109px; padding-bottom:80px; .container { max-width: 1200px; margin: 0 auto; } //标题 描述样式 .content-section { text-align: center; h2 { margin-bottom: 20px; display: flex; align-items: center; justify-content: center; span{ font-size: 40px; color: rgba(31, 92, 172, 1); padding-left:16px; font-weight:700; } } .desc{ padding-bottom:46px; } p { font-size: 18px; color: rgba(153, 153, 153, 1); max-width: 800px; margin: 0 auto; } } .tech-carousel { position: relative; padding-bottom: 30px; // 为进度条留出空间 :deep(.swiper-slide) { padding: 0 8px; border-radius: none; .slide-content { position: relative; border-radius: 0px; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; &:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); } img { width: 100%; max-width: 100%; height: auto; display: block; border-radius: none; } } } // 自定义进度条样式 :deep(.swiper-pagination-custom) { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 100px; height: 4px; .progress-bar { width: 100%; height: 100%; background: rgba(0, 0, 0, 0.1); border-radius: 2px; overflow: hidden; .progress-fill { height: 100%; background: rgba(31, 92, 172, 1); border-radius: 2px; transition: width 0.1s linear; } } } } // 应用场景图片底部-标题遮罩 .image-overlay { position: absolute; bottom: 0; left: 0; right: 0; height: 80px; background: rgba(0, 10, 48, .5); display: flex; align-items: center; justify-content: center; p { color: white; font-size: 28px; font-weight: 700; margin: 0; } } .hover-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 10, 48, .5); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 10; .overlay-content { text-align: center; color: white; padding: 0 15px; display: flex; flex-direction: column; justify-content: flex-start; height: 100%; align-items: center; h3 { font-size: 28px; font-weight: 700; padding: 55px 0 10px; } p { font-size: 16px; font-weight: 400; letter-spacing: 0.96px; line-height: 21px; margin: 0; text-align: left; } } } // 淡入淡出动画 .fade-enter-active, .fade-leave-active { transition: opacity 0.3s ease; } .fade-enter-from, .fade-leave-to { opacity: 0; } } // 第五屏 合作伙伴 .partner-screens{ min-height: 100vh; background:url("../../../assets/images/partner.png") no-repeat center center; position: relative; background-size: cover; padding-top:63px; padding-bottom:80px; z-index: 1; background-attachment: fixed;//背景图片相对于浏览器窗口固定,不随页面滚动而移动 .container { max-width: 1200px; margin: 0 auto; } //标题 描述样式 .content-section { text-align: center; h2 { margin-bottom: 20px; display: flex; align-items: center; justify-content: center; span{ font-size: 40px; color: rgba(31, 92, 172, 1); padding-left:16px; font-weight:700; } } p { font-size: 18px; color: rgba(153, 153, 153, 1); max-width: 800px; margin: 0 auto; } // 荣誉资质 h4{ color: rgba(31, 92, 172, 1); font-size: 24px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding-top:31px; line{ width:16px; height:2px; background: rgba(31, 92, 172, 1); margin:0 13px; } } .partner-title{ padding-top:0; } .partner-img{ display: flex; justify-content: center; margin-bottom:76px; p{ width: 336px; height: 164px; opacity: 1; background: url("../../../assets/images/certification.png"); position: relative; span{ color: #ffffff; font-size: 28px; font-weight: 700; display: block; position: absolute; bottom:31px; left:0; right:0; } } } } // 合作企业图 .partnerImgAll{ max-width:1553px; margin:0 auto; img{ width: 100%; } } } // 第六屏样式 .other-screens { padding: 74px 0 40px; background: white; .container { max-width: 1200px; margin: 0 auto; padding: 0; } //标题 描述样式 .content-section { text-align: center; margin-bottom: 60px; h2 { margin-bottom: 20px; display: flex; align-items: center; justify-content: center; span{ font-size: 40px; color: rgba(31, 92, 172, 1); padding-left:16px; font-weight:700; } } .desc { font-size: 20px; color: rgba(153, 153, 153, 1); margin: 0 auto 32px; } // 新闻内容 .content{ display: flex; justify-content: space-between; gap:60px; .lt{ text-align: left; .img{ width:520px; height:282px; overflow: hidden; img { transition: transform 0.3s ease; cursor: pointer; &:hover { transform: scale(1.1); // 放大 10% } } } .title,.nr{ margin-block-start: 0em; margin-block-end: 0em; } .title{ font-size: 18px; font-weight: 400; color:#000000; padding-top:16px; text-align: left; cursor: pointer; &:hover { color: rgba(68, 119, 185, 1); } } .nr{ font-size: 14px; font-weight: 400; color: rgba(102, 102, 102, 1); line-height: 20.27px; padding-top:12px; cursor: pointer; &:hover { color: rgba(68, 119, 185, 1); } } } .rt{ ul li{ display: flex; align-items: center; padding:24px 29px 24px 16px; } li:first-child{ background: rgba(248, 248, 248, 1); .newsrt{ h4{ color: rgba(49, 112, 197, 1); font-size: 18px; font-weight: 400; } p{ font-size: 14px; font-weight: 400; color: rgba(165, 165, 165, 1); } } } .newslt{ border-right: 1px solid rgba(234, 234, 234, 1); padding-right:14px; width:68px; h4{ font-size: 24px; font-weight: 400; letter-spacing: 1.44px; color: rgba(102, 102, 102, 1); text-align: right; } p{ font-size: 14px; font-weight: 400; color: rgba(172, 172, 172, 1); } } .newsrt{ padding:0 0 0 16px; text-align: left; h4{ font-size: 18px; font-weight: 400; color: rgba(51, 51, 51, 1); &:hover{ color: rgba(49, 112, 197, 1); } } p{ font-size: 14px; font-weight: 400; color: rgba(165, 165, 165, 1); margin-bottom:0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;// 不换行 } } } } } } // 动画相关样式 .animate-fade-in-up { opacity: 0; transform: translateY(50px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; &.visible { opacity: 1; transform: translateY(0); } &.delay-1 { transition-delay: 0.3s; } &.delay-2 { transition-delay: 0.5s; } &.delay-3 { transition-delay: 0.8s; } &.delay-4 { transition-delay: 1s; } &.delay-5 { transition-delay: 1.3s; } &.delay-6 { transition-delay: 1.5s; } } .animate-slide-in { opacity: 0; transform: translateX(-50px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; &.visible { opacity: 1; transform: translateX(0); } &.delay-1 { transition-delay: 0.3s; } &.delay-2 { transition-delay: 0.6s; } } @keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); } 40% { transform: translateY(-20px) translateX(-50%); } 60% { transform: translateY(-10px) translateX(-50%); } } // 响应式设计 @media (max-width: 768px) { .first-screen { .navbar { padding: 15px 20px; .nav-menu { li { margin-left: 15px; a { font-size: 14px; } } } } .carousel-content { left: 5%; max-width: 90%; text-align: center; h1 { font-size: 32px; } p { font-size: 16px; } } } .second-screen { padding: 50px 0; .content-section { h2 { font-size: 28px; } p { font-size: 16px; } } } }