Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
104 lines (100 loc) · 2.45 KB
/
Copy pathstyle.css
File metadata and controls
104 lines (100 loc) · 2.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
/* 基础设置 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0f1525 100%);
color: #ffffff;
min-height: 100vh;
overflow-x: hidden;
position: relative;
}
#backgroundCanvas {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 0;
opacity: 0.3;
}
.container {
position: relative;
z-index: 1;
max-width: 1200px;
margin: 0 auto;
padding: 60px 20px;
}
/* 头部样式 */
.header {
text-align: center;
margin-bottom: 80px;
}
.title {
font-size: 3.5rem;
font-weight: 700;
margin-bottom: 30px;
background: linear-gradient(135deg, #00FFC8 0%, #00D4FF 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
text-shadow: 0 0 30px rgba(0, 255, 200, 0.5);
}
.subtitle {
font-size: 1.2rem;
line-height: 1.8;
color: rgba(255, 255, 255, 0.9);
max-width: 900px;
margin: 0 auto;
}
/* 主要内容区域 */
.main-content { margin-top: 60px; }
.projects {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
gap: 30px;
}
/* 项目卡片 */
.project-card {
background: rgba(10, 20, 35, 0.8);
border: 2px solid rgba(0, 255, 200, 0.3);
border-radius: 16px;
padding: 40px;
transition: all 0.3s ease;
backdrop-filter: blur(10px);
}
.project-card:hover {
border-color: rgba(0, 255, 200, 0.6);
box-shadow: 0 0 40px rgba(0, 255, 200, 0.3);
transform: translateY(-5px);
}
.project-title {
font-size: 2rem;
font-weight: 600;
margin-bottom: 20px;
color: #00FFC8;
}
.project-description {
font-size: 1rem;
line-height: 1.8;
color: rgba(255, 255, 255, 0.85);
margin-bottom: 30px;
}
.project-link {
display: inline-flex;
align-items: center;
gap: 8px;
color: #00FFC8;
text-decoration: none;
font-weight: 500;
transition: all 0.3s ease;
}
.project-link:hover { color: #00D4FF; gap: 12px; }
.project-link svg { transition: transform 0.3s ease; }
.project-link:hover svg { transform: translateX(4px); }
/* 响应式设计 */
@media (max-width: 768px) {
.title { font-size: 2.5rem; }
.subtitle { font-size: 1rem; }
.projects { grid-template-columns: 1fr; }
.project-card { padding: 30px; }
}