这是一个网页样式设计参考。




background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #43cea2 100%);
animation: gradient-flow 10s infinite;
@keyframes gradient-flow {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
.container {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 20px;
}
.card {
background-color: rgba(255, 255, 255, 0.1);
border-radius: 10px;
padding: 20px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease;
}
.card:hover {
transform: scale(1.05);
}
.title {
font-family: 'Roboto', sans-serif;
font-size: 36px;
background: linear-gradient(90deg, #ff7ea7, #73c8ff);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.button {
position: relative;
padding: 10px 20px;
background-color: #4CAF50;
color: white;
border: none;
border-radius: 5px;
overflow: hidden;
transition: transform 0.3s ease;
}
.button::after {
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: width 0.5s ease, height 0.5s ease, opacity 0.5s ease;
}
.button:hover {
transform: scale(1.05);
}
.button:hover::after {
width: 200px;
height: 200px;
opacity: 1;
}