Repository navigation
Expand file tree
/
Copy pathstyles.css
More file actions
258 lines (220 loc) · 6.24 KB
/
Copy pathstyles.css
File metadata and controls
258 lines (220 loc) · 6.24 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
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
/* ==========================================================================
famiji — GitHub Pages 主页
风格参考 aiengineeringfromscratch.com:纸张米白底、硬黑边框、
蓝图蓝强调、VT323 像素标题 + Source Serif 衬线正文 + JetBrains Mono
支持日间 / 夜间双主题(html[data-theme])
========================================================================== */
:root {
--font-display: "VT323", "Courier New", ui-monospace, monospace;
--font-body: "Source Serif 4", "Source Serif Pro", Georgia, "Songti SC", serif;
--font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
--bg: #fafaf5;
--bg-elev: #f3f1e8;
--card: #f3f1e8;
--card-hover: #ece9dc;
--ink: #1a1a1a;
--ink-dim: #4a4a4a;
--ink-mute: #7a7a78;
--border: #1a1a1a;
--border-soft: rgba(26, 26, 26, 0.18);
--accent: #3553ff;
--accent-tint: rgba(53, 83, 255, 0.08);
--code-bg: #efece0;
--status: #3553ff;
--header-bg: rgba(250, 250, 245, 0.94);
}
html[data-theme="dark"] {
--bg: #141414;
--bg-elev: #1c1c1c;
--card: #1c1c1c;
--card-hover: #262626;
--ink: #f2f1ea;
--ink-dim: #b8b6ad;
--ink-mute: #8a8880;
--border: rgba(242, 241, 234, 0.55);
--border-soft: rgba(242, 241, 234, 0.18);
--accent: #8fa2ff;
--accent-tint: rgba(143, 162, 255, 0.12);
--code-bg: #242424;
--status: #8fa2ff;
--header-bg: rgba(20, 20, 20, 0.9);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
background: var(--bg);
color: var(--ink);
font-family: var(--font-body);
line-height: 1.6;
-webkit-font-smoothing: antialiased;
overflow-x: hidden;
transition: background-color 0.3s ease, color 0.3s ease;
}
::selection { background: var(--accent); color: #ffffff; }
.mono { font-family: var(--font-mono); }
.accent { color: var(--accent); }
.dim { color: var(--ink-mute); }
/* ---------- 导航 ---------- */
.nav {
position: sticky;
top: 0;
z-index: 50;
display: flex;
align-items: center;
justify-content: space-between;
padding: 16px clamp(20px, 5vw, 64px);
background: var(--header-bg);
backdrop-filter: blur(12px);
border-bottom: 1px solid var(--border-soft);
}
.nav-logo {
display: flex;
align-items: center;
gap: 8px;
color: var(--ink);
text-decoration: none;
font-size: 16px;
font-weight: 500;
}
.logo-dot {
width: 9px; height: 9px;
border-radius: 50%;
background: var(--accent);
}
.cursor-blink { animation: blink 1.1s steps(1) infinite; color: var(--accent); }
@keyframes blink { 50% { opacity: 0; } }
.nav-links { display: flex; gap: 24px; align-items: center; }
/* ---------- 主题切换按钮 ---------- */
.theme-toggle {
display: grid;
place-items: center;
width: 36px; height: 36px;
background: transparent;
border: 1px solid var(--border);
border-radius: 6px;
color: var(--ink);
cursor: pointer;
transition: background-color 0.2s, color 0.2s, transform 0.15s;
}
.theme-toggle:hover { background: var(--bg-elev); transform: translateY(-1px); }
.theme-toggle svg { width: 16px; height: 16px; }
.icon-moon { display: block; }
.icon-sun { display: none; }
html[data-theme="dark"] .icon-moon { display: none; }
html[data-theme="dark"] .icon-sun { display: block; }
/* ---------- Hero ---------- */
.hero {
max-width: 1080px;
margin: 0 auto;
padding: clamp(88px, 15vw, 156px) clamp(20px, 5vw, 64px) 88px;
}
.hero-kicker {
color: var(--ink-mute);
font-size: 14px;
margin-bottom: 24px;
}
.hero-title {
font-family: var(--font-display);
font-size: clamp(56px, 12vw, 128px);
font-weight: 400;
letter-spacing: 0.01em;
line-height: 1.04;
}
.hero-title .accent { color: var(--accent); }
.hero-status {
margin-top: 32px;
display: inline-flex;
align-items: center;
gap: 10px;
font-size: 14px;
color: var(--ink);
padding: 8px 16px;
border: 1px solid var(--border-soft);
border-radius: 999px;
background: var(--accent-tint);
}
.status-dot {
width: 9px; height: 9px;
border-radius: 50%;
background: var(--status);
box-shadow: 0 0 0 0 rgba(53, 83, 255, 0.45);
animation: pulse 2.2s infinite;
}
@keyframes pulse {
0% { box-shadow: 0 0 0 0 rgba(53, 83, 255, 0.45); }
70% { box-shadow: 0 0 0 9px rgba(53, 83, 255, 0); }
100% { box-shadow: 0 0 0 0 rgba(53, 83, 255, 0); }
}
/* ---------- 联系图标 ---------- */
.hero-icons {
margin-top: 36px;
display: flex;
gap: 12px;
}
.icon-btn {
width: 44px; height: 44px;
display: grid;
place-items: center;
border: 1px solid var(--border);
border-radius: 6px;
color: var(--ink-mute);
background: transparent;
transition: color 0.25s, border-color 0.25s, background-color 0.25s, transform 0.15s;
}
.icon-btn:hover {
color: var(--accent);
border-color: var(--accent);
background: var(--accent-tint);
transform: translateY(-2px);
}
.icon-btn svg { width: 20px; height: 20px; }
/* ---------- 终端窗口 ---------- */
.terminal {
max-width: 720px;
margin: 0 auto 88px;
background: var(--code-bg);
border: 1px solid var(--border);
border-radius: 6px;
overflow: hidden;
}
.terminal-bar {
display: flex;
align-items: center;
gap: 10px;
padding: 8px 14px;
background: var(--bg-elev);
border-bottom: 1px solid var(--border);
}
.terminal-prompt { color: var(--accent); font-size: 14px; }
.terminal-title { font-size: 13px; color: var(--ink-mute); }
.terminal-body {
padding: 20px 22px 22px;
font-size: 14px;
min-height: 150px;
}
.terminal-body .t-line { margin-bottom: 2px; white-space: pre-wrap; }
.terminal-body .t-cmd { color: var(--ink); }
.terminal-body .t-prompt { color: var(--accent); }
.terminal-body .t-out { color: var(--ink-dim); }
.t-cursor-line { margin-top: 6px; }
/* ---------- Footer ---------- */
.footer {
border-top: 1px solid var(--border-soft);
padding: 32px clamp(20px, 5vw, 64px) 44px;
text-align: center;
}
.footer .mono { font-size: 13px; color: var(--ink-mute); }
/* ---------- 滚动淡入 ---------- */
.reveal {
opacity: 0;
transform: translateY(18px);
transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
/* ---------- 响应式 ---------- */
@media (max-width: 640px) {
.nav { padding: 14px 20px; }
.nav-links { gap: 16px; }
.hero { padding-top: 64px; }
.terminal-body { font-size: 12.5px; padding: 16px 18px; }
}