.topBanner{ width: 100%; height: 100vh; background-color: #030045; display: flex; justify-content: center; align-items: start; /* background: palegoldenrod; */ overflow: hidden; background-image: url(../imgs/png/我们的产品图.png); background-repeat: no-repeat; background-size:65vw auto; background-position:35vw 0vw; position: relative; } .topBannerLeft{ width: 28%; height: 80%; /* background: #00316B; */ color: #fff; position: absolute; top: 20vh; left: 13vw; } .topBannerLeft p:nth-child(1){ font-size: 3.5vw; font-weight: 600; letter-spacing: 0.3vw; text-align: left; letter-spacing: 0.5vw; } .topBannerLeft p:nth-child(2){ font-size:3.5vw; font-weight: 600; color: #fff; margin-top: 18px; text-align: right; letter-spacing: 0.5vw; } .topBannerBth{ width: 100%; padding-left: 2vw; margin-top: 13vh; } .topBannerBth a{ display: block; width: 15vw; height: 4vw; font-size: 1.4vw; font-weight: 600; color: #fff; text-decoration: none; background: #00ECEC; display: flex; align-items: center; justify-content: center; border-radius: 50px; transition: all 0.3s ease; } .topBannerBth span{ font-size: 1.2vw; margin-right: 1vw; } .topBannerBth img{ width: 1.5vw; height: auto; } .topBannerBth a:hover{ color: #fff; transform: scale(1.1); /* 放大到原尺寸的1.1倍 */ transition: all 0.3s ease; /* 添加过渡动画 */ } .btLeft{ width: 20vw; position: absolute; bottom: 8vh; left: -5.5vw; } .tpRight{ width: 17vw; position: absolute; top: 16vh; right: -6vw; } .btRight{ width:70vw; position: absolute; bottom: -1.3vh; right: 0vw; } /* ----------------------------- */ .banner{ width: 100%; min-height: 110vh; background-image: url(../imgs/svg/背景纹(大).svg); background-repeat: no-repeat; background-size:160%; background-position: 54vw -42vw; background-color: #00316B; } /* .bannerLeft{ width: 100%; height: 30%; background-color: rgba(3, 0, 69, 0.5); } */ .bannertop{ width: 100%; height:105vh; display: flex; align-items: center; justify-content: left; } .imgBox{ width: 50%; height: 100%; /* background: palegreen; */ position: relative; } .imgBox .imgBox1{ width: 20vw; height: auto; /* background: palegoldenrod; */ position: absolute; top: 5vw; left:10vw; } .imgBox .imgBox2{ width: 20vw; height: auto; position: absolute; top: 19vw; left: 20vw; /* background: palegoldenrod; */ } .imgBox img{ width: 26vw; height: auto; } .textBox{ width: 15vw; height: 50%; color: #fff; margin-left: 5vw; /* background: peru; */ } .textBox h1{ font-size: 2vw; font-weight: 600; letter-spacing: 0.3vw; } .textBox p{ font-size: 1.2vw; line-height: 6vh; margin-top: 5vh; } /* ------------------------- */ .bannerBottom{ width: 100%; height: 115vh; position: relative; background-image: url(../imgs/png/电子商城.png); background-repeat: no-repeat; background-size:40vw; background-position:0vw 50%; display: flex; justify-content: right; padding-right: 10vw; background-color: rgba(3, 0, 69, 0.8); } .bannerBottomText{ width: 40%; height: 100%; /* background-color: palegoldenrod; */ display: flex; flex-direction: column; align-items: start; justify-content: center; color: #fff; /* background: peru; */ } .bannerBottomText .top{ width: 100%; height: 40%; /* background-color: palegoldenrod; */ display: flex; flex-direction: column; align-items: start; justify-content: center; /* padding-top: 3vh; */ } .top p{ width: 70%; font-size: 1.5vw; line-height:7vh; margin-top: 4vh; } .top3{ width: 20vw; position: absolute; top: 0vh; left: 20vw; } /* --------------------------- */ /* 产品展示区样式 */ .case { display: flex; width: 90%; min-height: 100vh; padding: 40px; gap: 40px; margin: 0 auto; padding-top: 10vh; align-items: flex-start; /* 确保子元素从顶部开始对齐 */ } /* 左侧导航样式 */ .product-nav { width: 20vw; flex-shrink: 0; border-right: 2px solid #00E0E4; padding-right: 3vw; /* 添加最大高度和滚动 */ max-height: 100vh; overflow-y: auto; /* 添加平滑滚动 */ scroll-behavior: smooth; /* 固定位置 */ position: sticky; top: 0; min-height: 100vh; } /* 添加滚动条样式 */ .product-nav::-webkit-scrollbar { width: 3px; } .product-nav::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.1); border-radius: 3px; } .product-nav::-webkit-scrollbar-thumb { background: rgba(0, 224, 228, 0.5); border-radius: 3px; transition: all 0.3s ease; } .product-nav::-webkit-scrollbar-thumb:hover { background: rgba(0, 224, 228, 0.8); } .product-category { margin-bottom: 30px; /* background: palegoldenrod; */ } .category-header { display: flex; align-items: center; gap: 10px; padding: 15px; cursor: pointer; transition: all 0.3s ease; } .category-header.active { color: #00E0E4; } .dot { width: 12px; height: 12px; border-radius: 50%; background-color: #fff; } .category-header.active .dot { background-color: #00E0E4; } .category-header h3 { color: #fff; margin: 0; font-size: 18px; } .category-content { display: none; padding-left: 30px; /* background: palegoldenrod; */ position: relative; padding-left: 3vw; } .category-content::before{ content: ''; width: 1px; height: 100%; background: #fff; position: absolute; left: 12%; top: 0; } .category-content.show { display: block; } /* 产品项样式 */ .product-item { padding: 15px; cursor: pointer; border-radius: 8px; transition: all 0.3s ease; margin-bottom: 15px; } .product-item:hover, .product-item.active { background-color: rgba(0, 224, 228, 0.1); color: #00E0E4 !important; border: 1px solid #00E0E4; box-shadow: 0 0 8px 1px rgba(0, 224, 228, 0.5), 0 5px 8px 5px rgba(0, 0, 0, 0.5); } .product-item img { width: 100%; border-radius: 8px; margin-bottom: 10px; } .product-item p { color: #fff; margin: 0; font-size: 16px; transition: color 0.3s ease; /* 添加颜色过渡效果 */ } /* 选中状态的文字样式 */ .product-item.active p { color: #00E0E4; } /* 可以添加悬停效果 */ .product-item:hover p { color: #00E0E4; } /* 右侧详情样式 */ .product-detail { /* flex-grow: 1; */ /* background-color: rgba(255, 255, 255, 0.05); */ border-radius: 12px; padding: 30px; margin-left: 8vw; width: 30vw; } .detail-content { color: #fff; } .detail-image { width: 20vw; margin-bottom: 30px; border: 1px solid #00E0E4; border-radius: 12px; overflow: hidden; display: flex; justify-content: center; align-items: center; box-shadow: 0 0 10px 1px rgba(0, 224, 228, 0.5), 0 5px 15px 10px rgba(0, 0, 0, 0.3); } .detail-image img { width: 20vw; border-radius: 12px; object-fit: contain;/* 保持图片比例,确保完整显示 */ } .detail-info h2 { color: #00E0E4; margin-bottom: 20px; } .info-list p { margin-bottom: 15px; line-height: 1.6; font-size: 0.8vw; } /* ----------------- */ /* 添加平滑滚动效果 */ html { scroll-behavior: smooth; } /* 添加产品项过渡动画 */ .product-item { transition: all 0.3s ease; position: relative; } /* 优化active状态的视觉效果 */ .product-item.active { background-color: rgba(0, 224, 228, 0.1); transform: translateX(10px); } /* 英文状态下样式 */ #topBannerLeftTitle1.en, #topBannerLeftTitle2.en { font-size: 2.3vw; font-weight: 600; letter-spacing: normal; }