Files
company-website/src/views/pc/style/index.less

434 lines
7.8 KiB
Plaintext
Raw Normal View History

2025-09-18 11:18:37 +08:00
.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;
}
}
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;
margin-bottom:109px;
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;
}
}
.other-screens {
min-height: 100vh;
padding: 80px 0;
background: white;
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
.news-section {
h2 {
font-size: 36px;
text-align: center;
margin-bottom: 40px;
color: #013249;
}
.news-list {
max-width: 800px;
margin: 0 auto;
}
}
}
// 动画相关样式
.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;
}
}
}
}