这是一个融合自然与科技的设计平台,通过视觉语言传递环保与创新理念。
主色调采用深绿(#1A535C)、浅蓝(#4ECDC4)和暗紫(#2B2D42),辅以金属灰(#8D99AE)增强工业感。以下是一个渐变背景示例:
.gradient-background {
background: linear-gradient(135deg, #1A535C, #4ECDC4);
height: 100vh;
}
选用无衬线字体如 Inter 和 Roboto,确保文字清晰易读。标题加粗,正文适中,提升可读性。
body {
font-family: 'Inter', sans-serif;
}
h1, h2 {
font-weight: bold;
color: #1A535C;
}
p {
font-weight: normal;
line-height: 1.6;
color: #8D99AE;
}
采用 Flexbox 布局实现左右分屏,左侧展示可持续设计内容,右侧展示潮流网络元素。
.container {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.module {
width: 48%;
margin-bottom: 20px;
background-color: #2B2D42;
color: white;
padding: 20px;
border-radius: 8px;
}
使用简洁矢量图标表现边缘计算效率,融入自然元素强化可持续设计理念。
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#4ECDC4">
<path d="M8 16c-3.314 0-6-2.686-6-6s2.686-6 6-6 6 2.686 6 6-2.686 6-6 6zm8 0c-3.314 0-6-2.686-6-6s2.686-6 6-6 6 2.686 6 6-2.686 6-6 6z"/>
</svg>
按钮波纹效果增加趣味性,滚动时淡入淡出效果增强动态感。
.button {
position: relative;
overflow: hidden;
background-color: #4ECDC4;
color: white;
border: none;
padding: 10px 20px;
cursor: pointer;
}
.button::before {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 0;
height: 0;
background: rgba(255, 255, 255, 0.5);
border-radius: 50%;
transform: translate(-50%, -50%);
opacity: 0;
transition: all 0.4s ease;
}
.button:hover::before {
width: 150px;
height: 150px;
opacity: 1;
}
引入轻微材质纹理,模拟金属质感提升设计深度。
.metal-texture {
background-color: #8D99AE;
background-image: radial-gradient(circle at 50% 50%, #ffffff40, transparent),
repeating-linear-gradient(45deg, #00000010, #00000010 10px, transparent 10px, transparent 20px);
border-radius: 8px;
padding: 20px;
}