Files
BlackFruit-UI/css/index.css
yiqiu 37b33ef19c
All checks were successful
continuous-integration/drone/push Build is passing
2025-11-21 22:46:27 +08:00

518 lines
10 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* banner */
.banner-cont {
position: relative;
width: 100%;
overflow: hidden;
/* 确保 3D 地球在竖直方向不会被裁剪,预留更大展示区域 */
min-height: 480px;
}
.banner-cont .swiper-slide {
width: 100%;
background: linear-gradient(0, #f7f9fa, #f9fafb);
}
.banner-cont .swiper-slide .img {
/* 图片撑开高度,避免被裁切 */
display: block;
width: 100%;
height: auto;
max-width: 100%;
}
/* 文案层:覆盖在轮播上,使用 section-content 控制左右宽度 */
.banner-cont .banner-text {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
/* 需要盖在 swiper-slide 之上swiper 本身 z-index: 1这里抬高一层 */
z-index: 10;
pointer-events: none;
}
.banner-cont .banner-text .section-content {
/* 相对定位,便于内部文案块绝对居中定位 */
position: relative;
height: 100%;
padding: 0 20px; /* 左右 20px 内边距,与全站一致 */
margin: 0 auto; /* 保持与其他 section-content 一致的水平布局 */
}
.banner-copy {
max-width: 560px;
text-align: left;
/* 绝对定位:在整块 banner 内垂直居中,水平方向与下方卡片文案左侧对齐 */
position: absolute;
top: 50%;
left: 0;
transform: translateY(-50%);
/* 与下方 .banner-item 内的文案左对齐section-content padding 20px + item padding 60px */
padding-left: 80px;
}
.banner-copy #bannerTitle {
font-size: 40px;
line-height: 1.2;
color: #111827;
}
.banner-copy .banner-desc {
font-size: 16px;
margin-top: 16px;
margin-bottom: 32px;
max-width: 550px;
color: rgba(0, 0, 0, 0.65);
}
.banner-copy #bannerButton {
pointer-events: auto;
}
/* 3D 地球容器:位于轮播图偏中右位置 */
.banner-globe {
position: absolute;
top: 50%;
right: 6%; /* 略向中间移动一点,留出更大的展示区域 */
transform: translateY(-50%);
/* 缩小一点,避免球体超出可视区域 */
width: 360px;
height: 360px;
z-index: 20; /* 高于轮播图与文案层 */
pointer-events: none; /* 不影响轮播图滑动与点击 */
}
/* 中等屏幕下缩小地球,避免挡住文案 */
@media (max-width: 1400px) {
.banner-globe {
right: 4%;
width: 320px;
height: 320px;
}
}
/* 小屏幕(如窄笔记本)下隐藏 3D 地球,保持可用性 */
@media (max-width: 1100px) {
.banner-globe {
display: none;
}
}
/* 首页调试:隐藏轮播图图片,仅保留 3D 地球与文案(不影响其它页面) */
body#index .banner .banner-cont .swiper-wrapper {
opacity: 0;
pointer-events: none;
}
.banner .banner-s {
box-shadow: 0px 0px 16px rgba(52, 52, 52, 0.16);
border-radius: 3px;
}
.banner .banner-s .banner-list {
display: flex;
flex-wrap: wrap;
padding: 0 20px;
}
.banner-s .banner-list .banner-item {
flex: 1;
cursor: pointer;
width: 335px;
padding: 30px 60px;
}
.banner-s .banner-list .banner-item:hover {
background: rgba(247, 248, 249, 1);
}
.banner-s .banner-list .banner-item:hover h5 {
color: #FF6739;
}
.banner-list .banner-item .banner-tag {
font-size: 12px;
color: #FF6739;
border: 1px solid #FF6739;
padding: 5px 8px;
border-radius: 3px;
}
/* 服务内容 */
.service-content {
display: flex;
margin-top: 60px;
margin: -10px;
margin-top: 50px;
}
.service .service-box {
min-height: 191px;
margin: 10px;
position: relative;
padding: 30px;
border: 1px solid #E6EAED;
border-radius: 3px;
}
.service .service-box:hover {
box-shadow: 0px 0px 16px rgba(52, 52, 52, 0.16);
}
.service .service-box .service-title {
color: #333;
}
.service .service-box:hover h4 {
color: #FF6739;
}
.service .service-hot::before {
content: '';
height: 60px;
width: 60px;
position: absolute;
right: -4px;
top: -4px;
background: url('../assets/img/index/hot.png');
background-repeat: no-repeat;
background-size: 100%;
}
.service-box .title-desc {
margin: 16px 0;
height: 42px;
}
.service .service-tag-group {
display: flex;
}
.service .service-tag-group .service-tag {
display: flex;
align-items: center;
justify-items: center;
margin-right: 8px;
font-size: 12px;
padding: 0 12px;
color: rgba(0, 0, 0, 0.6);
height: 24px;
background: #F7F8F9;
border: 1px solid #EDEDED;
border-radius: 1px;
}
/* 解决方案 */
.resolve {
background: #13182C url(../assets/img/index/home-bg.png) no-repeat center center;
background-size: cover;
}
.resolve-content {
margin: -10px;
margin-top: 60px;
}
.resolve-content .resolve-box {
position: relative;
top: 0;
max-width: 335px;
padding: 30px;
margin: 10px;
background: #F7F8F9;
box-shadow: 0px 0px 16px rgba(52, 52, 52, 0.16);
opacity: 1;
border-radius: 3px;
transition: .5s all;
cursor: pointer;
background-size: cover;
background-repeat: no-repeat;
}
.resolve-content .resolve-box:nth-child(1) {
background-image: url('../assets/img/index/solution-1.png');
}
.resolve-content .resolve-box:nth-child(2) {
background-image: url('../assets/img/index/solution-2.png');
}
.resolve-content .resolve-box:nth-child(3) {
background-image: url('../assets/img/index/solution-3.png');
}
.resolve-content .resolve-box:nth-child(4) {
background-image: url('../assets/img/index/solution-7.png');
}
.resolve-content .fboxRow:nth-child(2) .resolve-box:nth-child(1) {
background-image: url('../assets/img/index/solution-4.png');
}
.resolve-content .fboxRow:nth-child(2) .resolve-box:nth-child(2) {
background-image: url('../assets/img/index/solution-5.png');
}
.resolve-content .fboxRow:nth-child(2) .resolve-box:nth-child(3) {
background-image: url('../assets/img/index/solution-6.png');
}
.resolve-content .fboxRow:nth-child(2) .resolve-box:nth-child(4) {
background-image: url('../assets/img/index/solution-8.png');
}
.resolve-content .resolve-box:hover {
top: -10px;
}
.resolve-content .resolve-box:hover h4,
.resolve-content .resolve-box:hover .resolve-link {
color: rgba(255, 103, 57, 1);
}
.resolve-content .resolve-box h4 {
color: rgba(0, 0, 0, 0.9);
font-size: 22px;
margin-bottom: 20px;
}
.resolve-content .resolve-box .resolve-link {
color: rgba(0, 0, 0, 0.60);
margin-top: 60px;
font-size: 14px;
}
/* 服务实践 */
.practice {}
.practice .practice-content {
margin: -10px;
margin-top: 40px;
flex-wrap: wrap;
}
.practice .practice-box {
margin: 10px;
padding: 30px;
width: 453px;
border: 1px solid #E6EAED;
text-align: center;
border-radius: 3px;
flex-shrink: 0;
}
.practice .practice-box img {
width: 177px;
height: 66px;
cursor: pointer;
}
.practice-box:hover {
box-shadow: 0px 0px 16px rgba(52, 52, 52, 0.16);
}
.brand-group {
margin: -10px;
display: flex;
flex-wrap: wrap;
}
.practice .brand-box {
margin: 10px;
width: 216px;
height: 124px;
align-items: center;
display: flex;
justify-content: center;
border: 1px solid #E6EAED;
}
.practice .brand-box img {
width: 86px;
height: 75px;
cursor: pointer;
}
.practice .brand-box:hover {
box-shadow: 0px 0px 16px rgba(52, 52, 52, 0.16);
}
/* 基础措施 */
.section-base {
background: rgba(247, 248, 250, 1);
}
.section-base .base {
margin-top: 42px;
}
.section-base>.section-content {
padding: 62px 20px 0;
}
.section-base .base img {
width: calc(100% - 140px);
margin-left: 35px;
height: 520px;
padding-right: 80px;
}
.base .base-content {
margin-bottom: 100px;
}
.base .base-content .title-desc {
white-space: nowrap;
}
.cert {
border: 2px solid #FFFFFF;
border-radius: 3px;
background: linear-gradient(180deg, #F4F6F8 0%, #FDFEFE 100%);
box-shadow: 0px 3px 12px rgba(0, 0, 0, 0.08);
}
.cert-list {
padding: 0 20px;
}
.cert-list .cert-item {
padding: 13px 0;
display: flex;
flex-direction: column;
align-items: center;
width: 200px;
}
.cert-list .cert-item img {
height: 56px;
width: 56px;
cursor: pointer;
}
.cert-list .cert-item .title-desc {
font-size: 12px;
margin-top: 5px;
}
/* 新闻 */
.news-content {
margin-top: 60px;
display: flex;
flex-wrap: wrap;
gap: 130px;
}
.news-content .news-cont {
flex: 1;
}
.news-content .news-head .news-title {
padding-left: 5px;
font-size: 22px;
}
.news-content .news-head .news-title {
position: relative;
padding-left: 10px;
font-size: 18px;
line-height: 20px;
height: 20px;
}
.news-content .news-head .news-title::before {
content: '';
width: 2px;
height: 20px;
position: absolute;
left: 0;
top: 0;
background: #FF6739;
}
.news-content .news-head .news-more {
font-size: 14px;
color: rgba(0, 0, 0, 0.6);
}
.news-content .news-list {
margin-top: 15px;
}
.news-content .news-list .news-item {
line-height: 50px;
display: flex;
justify-content: space-between;
border-bottom: 1px dashed #E6EAED;
}
.news-content .news-cont .news-item:nth-child(1) .number {
background: rgba(255, 103, 57, 1);
}
.news-content .news-cont .news-item:nth-child(2) .number {
background: rgba(255, 103, 57, 1);
}
.news-content .news-cont .news-item:nth-child(3) .number {
background: rgba(255, 103, 57, 1);
}
.news-content .news-item .number {
margin-right: 10px;
display: flex;
align-items: center;
justify-content: center;
color: #fff;
font-size: 12px;
width: 14px;
height: 14px;
background: rgba(222, 222, 222, 1);
border-radius: 3px;
}
.news-content .news-item .title {
font-size: 14px;
color: rgba(0, 0, 0, 0.90);
}
.news-content .news-item .title:hover {
color: rgba(255, 103, 57, 1);
}
.news-content .news-item .time {
color: rgba(0, 0, 0, 0.4);
font-size: 13px;
min-width: 100px;
text-align: right;
}
.index .footer-link {
display: block;
}
.over-hide {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
height: 24px;
}
.over-hide+p {
display: flex;
flex-wrap: wrap;
word-break: break-all;
}