科技感与高效并存的视觉体验
这是一个网页样式设计参考
在打造支付清算系统展示网站时,色彩的选择与运用至关重要。主色调深蓝(#0E2C4F)与电光绿(#50E3C2)的搭配,不仅彰显科技感,更传递出高效与安全的品牌理念。通过CSS3的linear-gradient,背景色从深蓝渐变至电光绿,营造出层次丰富的视觉效果。
body {
background: linear-gradient(135deg, #0E2C4F, #50E3C2);
color: #ffffff;
font-family: 'Roboto', sans-serif;
}
顶部固定导航栏采用半透明效果,增强页面的深邃感。利用CSS3的rgba颜色模式与backdrop-filter模糊滤镜,实现背景的透明与模糊效果,确保导航选项清晰可见的同时,不干扰下方内容的展示。
.navbar {
position: fixed;
top: 0;
width: 100%;
background: rgba(14, 44, 79, 0.7);
backdrop-filter: blur(10px);
display: flex;
justify-content: space-around;
padding: 15px 0;
z-index: 1000;
}
.navbar a {
color: #50E3C2;
text-decoration: none;
font-size: 1rem;
transition: color 0.3s ease;
}
.navbar a:hover {
color: #ffffff;
}
首页首屏采用全屏视频背景,播放抽象的数据流动画,辅以发光粒子效果,营造出高科技氛围。通过CSS3的position与z-index属性,将视频遮罩在页面底层,确保内容层次分明。
.video-background {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
z-index: -1;
}
.particle-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(14, 44, 79, 0.3);
pointer-events: none;
}
页面整体采用12列网格系统来组织内容模块,确保在不同设备上的响应式表现。CSS3的display: grid与grid-template-columns属性实现了灵活而稳定的布局。
.container {
display: grid;
grid-template-columns: repeat(12, 1fr);
gap: 20px;
padding: 60px 40px;
}
@media (max-width: 768px) {
.container {
grid-template-columns: repeat(6, 1fr);
}
}
@media (max-width: 480px) {
.container {
grid-template-columns: repeat(2, 1fr);
}
}
核心功能区通过卡片形式展示支付清算系统的优势。每张卡片采用flexbox布局,结合box-shadow与hover效果,提升交互体验。
.card {
background: #ffffff;
color: #0E2C4F;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
padding: 20px;
transition: transform 0.3s ease, box-shadow 0.3s ease;
display: flex;
flex-direction: column;
align-items: center;
}
.card:hover {
transform: translateY(-10px);
box-shadow: 0 12px 16px rgba(0, 0, 0, 0.2);
}
.card-icon {
font-size: 2rem;
margin-bottom: 15px;
color: #50E3C2;
}
.card-title {
font-size: 1.25rem;
margin-bottom: 10px;
}
.card-description {
text-align: center;
font-size: 1rem;
color: #555555;
}