<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>16个不重复随机颜色</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
color: #fff;
min-height: 100vh;
padding: 20px;
display: flex;
flex-direction: column;
align-items: center;
}
.container {
max-width: 1200px;
width: 100%;
text-align: center;
}
h1 {
margin: 20px 0;
font-size: 2.8rem;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.description {
margin-bottom: 30px;
font-size: 1.2rem;
max-width: 800px;
line-height: 1.6;
}
.colors-container {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
gap: 20px;
width: 100%;
margin-bottom: 40px;
}
.color-box {
height: 150px;
border-radius: 10px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
transition: transform 0.3s ease, box-shadow 0.3s ease;
overflow: hidden;
cursor: pointer;
}
.color-box:hover {
transform: translateY(-5px);
box-shadow: 0 12px 20px rgba(0, 0, 0, 0.4);
}
.color-value {
background-color: rgba(0, 0
02-23
811
811

最低0.47元/天 解锁文章

被折叠的 条评论
为什么被折叠?



