-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
196 lines (171 loc) · 4.78 KB
/
style.css
File metadata and controls
196 lines (171 loc) · 4.78 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');
/* Base Styles */
body {
font-family: 'Inter', sans-serif;
background-color: #020617; /* slate-950 */
color: #e2e8f0; /* slate-200 */
overflow-x: hidden;
}
/* Custom Scrollbar */
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-track {
background: #0f172a;
}
::-webkit-scrollbar-thumb {
background: #334155;
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: #475569;
}
/* Mesh Gradient Animation Background */
.mesh-bg {
background-color: #020617;
background-image:
radial-gradient(at 0% 0%, rgba(56, 189, 248, 0.1) 0px, transparent 50%),
radial-gradient(at 100% 0%, rgba(139, 92, 246, 0.1) 0px, transparent 50%),
radial-gradient(at 100% 100%, rgba(56, 189, 248, 0.1) 0px, transparent 50%),
radial-gradient(at 0% 100%, rgba(139, 92, 246, 0.1) 0px, transparent 50%);
background-size: 100% 100%;
}
/* Glassmorphism Utilities */
.glass {
background: rgba(15, 23, 42, 0.6);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1px solid rgba(255, 255, 255, 0.05);
}
.glass-card {
background: rgba(30, 41, 59, 0.4);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
border: 1px solid rgba(255, 255, 255, 0.05);
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-card:hover {
background: rgba(30, 41, 59, 0.6);
border-color: rgba(56, 189, 248, 0.3);
transform: translateY(-2px);
box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}
/* Text Gradients */
.text-gradient {
background: linear-gradient(to right, #38bdf8, #818cf8);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.text-gradient-gold {
background: linear-gradient(to right, #fbbf24, #d97706);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
/* Terminal Styles */
.terminal-font {
font-family: 'JetBrains Mono', monospace;
}
/* Custom Animations */
@keyframes float {
0% { transform: translateY(0px); }
50% { transform: translateY(-10px); }
100% { transform: translateY(0px); }
}
.animate-float {
animation: float 6s ease-in-out infinite;
}
/* Hero Torus:
- 钉在"居中容器"的右下角(跟随 max-w-7xl 居中),保证大屏上不会飞到视口右边
- right: ~25% × 直径 => 中心偏右
- bottom: ~17% × 直径 => 底部被切 ~17%,整体视觉重心下移 */
.hero-torus-wrapper {
position: absolute;
right: -170px; /* 更靠右 */
bottom: -120px;
width: 540px; /* 略缩 */
height: 540px;
}
@media (min-width: 1024px) {
.hero-torus-wrapper {
width: 640px;
height: 640px;
right: -210px;
bottom: -150px;
}
}
@media (min-width: 1280px) {
.hero-torus-wrapper {
width: 720px;
height: 720px;
right: -250px;
bottom: -180px;
}
}
@media (min-width: 1536px) {
.hero-torus-wrapper {
width: 800px;
height: 800px;
right: -280px;
bottom: -210px;
}
}
/* Glow Effects */
.glow-on-hover:hover {
box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}
/* Badges for Oral/Spotlight */
.badge-oral {
background: rgba(251, 191, 36, 0.15); /* amber-400 */
color: #fbbf24;
border: 1px solid rgba(251, 191, 36, 0.3);
box-shadow: 0 0 10px rgba(251, 191, 36, 0.2);
animation: pulse-gold 3s infinite;
}
.badge-spotlight {
background: rgba(232, 121, 249, 0.15); /* fuchsia-400 */
color: #e879f9;
border: 1px solid rgba(232, 121, 249, 0.3);
box-shadow: 0 0 10px rgba(232, 121, 249, 0.2);
animation: pulse-pink 3s infinite;
}
@keyframes pulse-gold {
0%, 100% { box-shadow: 0 0 10px rgba(251, 191, 36, 0.2); }
50% { box-shadow: 0 0 20px rgba(251, 191, 36, 0.5); }
}
@keyframes pulse-pink {
0%, 100% { box-shadow: 0 0 10px rgba(232, 121, 249, 0.2); }
50% { box-shadow: 0 0 20px rgba(232, 121, 249, 0.5); }
}
/* Hide scrollbar for carousel */
.scrollbar-hide {
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}
.scrollbar-hide::-webkit-scrollbar {
display: none; /* Chrome, Safari and Opera */
}
/* Carousel active dot */
.carousel-dot.active {
background-color: rgba(255, 255, 255, 0.8) !important;
transform: scale(1.2);
}
.carousel-dot {
transition: all 0.3s ease;
}
/* Publication item animation */
.pub-item {
transition: all 0.3s ease;
}
.pub-item:hover {
transform: translateX(4px);
}
/* Back to Top Button */
#back-to-top {
transition: all 0.3s ease;
}
#back-to-top:hover {
transform: translateY(-3px);
box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}