Repository navigation
Expand file tree
/
Copy paththeme0.css
More file actions
600 lines (536 loc) · 14.9 KB
/
Copy paththeme0.css
File metadata and controls
600 lines (536 loc) · 14.9 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
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
/* 高级赛博朋克科技风格 */
/* 字体已在 HTML <head> 中通过 <link> 加载,避免 @import 串行延迟 */
/* ============================================================
CSS 变量 — 换颜色只需改这里
============================================================ */
:root {
--neon-blue: #00F0FF;
--neon-purple: #B026FF;
--neon-green: #00FF88;
--neon-orange: #FF9E00;
--dark-bg: #080817;
--grid-line: rgba(0, 240, 255, 0.1);
--text-main: #E0E0FF;
--text-dim: rgba(224, 224, 255, 0.6);
}
/* ============================================================
命名规范
——————————————————————————————————————————
本项目采用 BEM 命名,结构为:
项目前缀-块名__元素名--修饰符
──────── ──── ────── ──────
Block__Element--Modifier
- 项目前缀 ARKFUTURE 缩写,防止与第三方 CSS 冲突
- 块名 多词用连字符 site-header / about-section / net-section
- 元素 双下划线连接 __title / __heading / __body
- 修饰符 双连字符连接 --active / --theme-xmas
通用样式:同类元素(所有区块的 heading / subheading / body 等)
用显式多选择器合并声明,不用属性选择器(避免误匹配第三方组件)。
============================================================ */
/* ============================================================
全局 / body
============================================================ */
*, *::before, *::after {
box-sizing: border-box;
}
body {
font-family: 'Rajdhani', sans-serif;
background:
radial-gradient(ellipse at 20% 30%, rgba(0, 240, 255, 0.05) 0%, transparent 40%),
radial-gradient(ellipse at 80% 70%, rgba(176, 38, 255, 0.05) 0%, transparent 40%),
linear-gradient(to bottom, #080817, #0a0a1f),
repeating-linear-gradient(0deg, var(--grid-line) 0px, var(--grid-line) 1px, transparent 1px, transparent 40px),
repeating-linear-gradient(90deg, var(--grid-line) 0px, var(--grid-line) 1px, transparent 1px, transparent 40px);
background-attachment: fixed;
color: var(--text-main);
line-height: 1.6;
font-size: 1rem;
margin: 0;
padding: 20px;
position: relative;
overflow-x: hidden;
}
body::before {
content: "";
position: fixed;
top: 0; left: 0;
width: 100%; height: 100%;
background:
radial-gradient(circle at 50% 50%, rgba(0, 240, 255, 0.02) 0%, transparent 50%),
repeating-linear-gradient(0deg, transparent 0px, transparent 2px, rgba(0, 240, 255, 0.02) 2px, rgba(0, 240, 255, 0.02) 4px);
background-size: 4px 4px;
pointer-events: none;
z-index: 0;
}
/* ============================================================
顶部导航栏 — site-header
============================================================ */
.site-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 0.5rem;
gap: 0.5rem;
}
/* 主题切换按钮组 */
.site-header__theme-switcher {
display: flex;
gap: 0.4rem;
flex-wrap: wrap;
}
.site-header__theme-btn {
font-family: 'Orbitron', sans-serif;
font-size: 0.75rem;
letter-spacing: 2px;
color: var(--neon-blue);
background: transparent;
border: 1px solid var(--neon-blue);
padding: 2px 10px;
border-radius: 8px;
cursor: pointer;
transition: all 0.25s ease;
outline: none;
-webkit-appearance: none;
appearance: none;
}
.site-header__theme-btn:hover {
color: var(--neon-blue);
border-color: var(--neon-blue);
text-shadow: 0 0 6px var(--neon-blue);
}
/* 当前激活的主题按钮 */
.site-header__theme-btn--active {
color: var(--neon-blue);
border-color: var(--neon-blue);
background: rgba(0, 240, 255, 0.08);
text-shadow: 0 0 6px var(--neon-blue);
}
/* 语言切换按钮 */
.site-header__lang-btn {
font-family: 'Orbitron', sans-serif;
font-size: 0.85rem;
letter-spacing: 2px;
color: var(--text-dim);
border: 1px solid var(--text-dim);
padding: 2px 10px;
border-radius: 8px;
transition: all 0.3s ease;
white-space: nowrap;
}
.site-header__lang-btn:hover {
color: var(--neon-blue);
border-color: var(--neon-blue);
text-shadow: 0 0 6px var(--neon-blue);
}
.site-header__lang-btn::after { display: none; }
/* ============================================================
Hero 主标题区 — hero
============================================================ */
.hero {
text-align: center;
padding: 1.5rem 0 1rem;
}
.hero__title {
font-size: 300%;
font-weight: 700;
font-family: 'Orbitron', sans-serif;
text-transform: uppercase;
letter-spacing: 4px;
/* 字色降饱和度压亮度,不再是纯霓虹青 */
color: rgba(0, 200, 220, 0.78);
position: relative;
margin: 1.5rem 0;
z-index: 1;
text-shadow:
0 0 4px #fff,
0 0 10px var(--neon-blue),
0 0 20px var(--neon-blue),
0 0 35px var(--neon-purple),
0 0 55px var(--neon-purple);
animation: neon-flicker 3.5s infinite;
}
/* 霓虹闪烁:模拟真实霓虹灯亮暗跳变,大部分时间亮,偶尔快速暗一下 */
@keyframes neon-flicker {
0% { opacity: 1; }
4% { opacity: 0.85; }
5% { opacity: 1; }
7% { opacity: 0.7; }
8% { opacity: 1; }
45% { opacity: 1; }
46% { opacity: 0.9; }
47% { opacity: 1; }
90% { opacity: 1; }
91% { opacity: 0.75; }
92% { opacity: 0.95; }
93% { opacity: 0.6; }
94% { opacity: 1; }
100% { opacity: 1; }
}
/* glitch 错位层:偶尔出现,强调动感 */
.hero__title::before {
content: "ARKFUTURE";
position: absolute;
top: 0; left: 0;
width: 100%;
color: transparent;
-webkit-text-stroke: 1px rgba(0, 240, 255, 0.5);
text-stroke: 1px rgba(0, 240, 255, 0.5);
z-index: -1;
animation: glitch-before 4s infinite alternate;
}
.hero__title::after {
content: "ARKFUTURE";
position: absolute;
top: 2px; left: 2px;
width: 100%;
color: transparent;
-webkit-text-stroke: 1px rgba(176, 38, 255, 0.4);
text-stroke: 1px rgba(176, 38, 255, 0.4);
z-index: -2;
opacity: 0.7;
animation: glitch-after 4s infinite alternate-reverse;
}
/* ============================================================
main
============================================================ */
main {
max-width: 900px;
margin: 0 auto;
}
/* ============================================================
区块通用样式
——————————————————————————————————————————
每个区块(about / net / licenses / ending)是独立的 BEM Block。
同类元素用显式多选择器合并声明,保留按块定制的灵活性。
如需定制某区块,直接追加该块的专属规则即可。
============================================================ */
/* 区块间距 */
.about,
.net,
.licenses,
.ending {
margin: 2rem 0;
}
/* 分隔线 */
.divider {
border: none;
border-top: 1px solid var(--grid-line);
margin: 2rem 0;
}
/* ——— 主标题 h1 ——— */
.about__heading,
.net__heading,
.licenses__heading,
.ending__heading {
font-size: 1.6rem;
font-family: 'Orbitron', sans-serif;
font-weight: 500;
letter-spacing: 1px;
margin: 1.2rem 0;
color: var(--neon-blue);
text-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
border-bottom: 1px solid rgba(0, 240, 255, 0.2);
padding-bottom: 0.4rem;
}
/* ——— 二级标题 h2 ——— */
.about__subheading,
.net__subheading,
.licenses__subheading,
.ending__subheading {
font-size: 1.3rem;
font-family: 'Orbitron', sans-serif;
font-weight: 500;
letter-spacing: 1px;
margin: 1.2rem 0;
color: var(--neon-purple);
text-shadow: 0 0 6px rgba(176, 38, 255, 0.3);
}
/* ——— 三级标签 h3 ——— */
.net__label {
font-size: 1rem;
font-family: 'Orbitron', sans-serif;
font-weight: 500;
letter-spacing: 1px;
margin: 0.8rem 0 0.3rem;
color: var(--neon-blue);
}
/* ——— 内容面板 ——— */
.about__body,
.net__body,
.licenses__body,
.ending__body {
background: rgba(20, 20, 48, 0.75);
padding: 1.2rem 1.5rem;
margin: 1rem 0;
border-radius: 8px;
}
/* ============================================================
about 区块
============================================================ */
/* 无额外样式,继承通用规则 */
/* ============================================================
net 区块 — 小组件
============================================================ */
.net__widget {
display: block;
border: none;
width: 400px;
height: 200px;
margin: 8px 0;
}
/* ============================================================
ending 区块
============================================================ */
/* 引用块 */
.ending__quote {
margin: 1.2rem 0 1.2rem 0;
padding: 0.8rem 1.2rem 0.8rem 1.4rem;
background: rgba(0, 240, 255, 0.04);
border-left: 2px solid rgba(0, 240, 255, 0.35);
color: rgba(224, 224, 255, 0.8);
font-style: italic;
border-radius: 0 6px 6px 0;
}
.ending__quote cite {
display: block;
margin-top: 0.6rem;
font-size: 0.85rem;
color: var(--neon-blue);
font-style: normal;
opacity: 0.7;
}
/* 系统列表 */
.ending__systems {
font-size: 0.9rem;
color: var(--text-dim);
line-height: 2;
}
/* ============================================================
链接
============================================================ */
a {
color: var(--neon-green);
text-decoration: none;
font-weight: 600;
position: relative;
transition: all 0.3s ease;
}
a:hover {
color: var(--neon-orange);
}
a::after {
content: '';
position: absolute;
width: 100%;
height: 2px;
bottom: -2px; left: 0;
background: linear-gradient(90deg, var(--neon-green), var(--neon-purple));
transform: scaleX(0);
transform-origin: right;
transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}
a:hover::after {
transform: scaleX(1);
transform-origin: left;
}
/* ============================================================
footer — site-footer
============================================================ */
.site-footer {
margin-top: 3rem;
padding: 2rem 0;
position: relative;
background: rgba(8, 8, 23, 0.7);
border-top: 1px solid transparent;
border-image: linear-gradient(90deg,
transparent,
var(--neon-blue),
var(--neon-purple),
transparent) 1;
font-family: 'Orbitron', sans-serif;
font-size: 0.9rem;
color: var(--neon-blue);
}
.site-footer::before {
content: '';
position: absolute;
top: 0; left: 0;
width: 100%; height: 2px;
background: linear-gradient(90deg,
transparent,
var(--neon-green),
transparent);
animation: scan 3s linear infinite;
}
.site-footer__inner {
text-align: center;
}
.site-footer a {
color: var(--neon-purple);
margin: 0 0.5rem;
}
.site-footer a:hover {
color: var(--neon-orange);
text-shadow: 0 0 8px var(--neon-orange);
}
/* 联系按钮 */
.site-footer__contact {
display: inline-block;
font-family: 'Orbitron', sans-serif;
font-size: 0.8rem;
letter-spacing: 1px;
color: var(--text-dim);
border: 1px solid var(--text-dim);
padding: 2px 10px;
border-radius: 8px;
margin-top: 0.8rem;
transition: all 0.3s ease;
}
.site-footer__contact:hover {
color: var(--neon-blue);
border-color: var(--neon-blue);
text-shadow: 0 0 6px var(--neon-blue);
}
/* ============================================================
动画
============================================================ */
@keyframes pulse {
0%, 100% { opacity: 0.95; }
50% { opacity: 1; }
}
@keyframes pulse-bg {
0% { opacity: 0.8; }
50% { opacity: 0.6; }
100% { opacity: 0.8; }
}
@keyframes glitch {
0%, 100% { transform: translate(0); }
20% { transform: translate(-2px, 2px); text-shadow: 0 0 5px #fff, 0 0 10px var(--neon-blue), 0 0 20px var(--neon-purple), 0 0 30px var(--neon-purple), 0 0 40px var(--neon-orange); }
40% { transform: translate(2px, -2px); text-shadow: 0 0 5px #fff, 0 0 10px var(--neon-purple), 0 0 20px var(--neon-blue), 0 0 30px var(--neon-orange), 0 0 40px var(--neon-purple); }
60% { transform: translate(-2px, -2px); }
80% { transform: translate(2px, 2px); }
}
@keyframes glitch-before {
0%, 100% { transform: translate(0); }
25% { transform: translate(-3px, 3px); }
50% { transform: translate( 3px, -3px); }
75% { transform: translate(-3px, -3px); }
}
@keyframes glitch-after {
0%, 100% { transform: translate(1px, 1px); opacity: 0.7; }
50% { transform: translate(-1px, -1px); opacity: 0.4; }
}
@keyframes scan {
0% { transform: translateY(-100%); }
100% { transform: translateY(100%); }
}
/* ============================================================
响应式
============================================================ */
@media (max-width: 768px) {
body {
padding: 12px;
font-size: 0.95rem;
}
.hero__title {
font-size: 200%;
letter-spacing: 2px;
}
.about__heading,
.net__heading,
.licenses__heading,
.ending__heading {
font-size: 1.3rem;
}
.about__subheading,
.net__subheading,
.licenses__subheading,
.ending__subheading {
font-size: 1.1rem;
}
.site-footer { font-size: 0.8rem; }
.about__body,
.net__body,
.licenses__body,
.ending__body {
padding: 1rem;
}
/* 手机端 IRC iframe 防溢出 */
.net__widget {
max-width: 100% !important;
width: 100% !important;
}
}
/* ============================================================
友情链接区块 — friends
============================================================ */
.friends {
margin: 2rem 0;
}
.friends__heading {
font-size: 1.6rem;
font-family: 'Orbitron', sans-serif;
font-weight: 500;
letter-spacing: 1px;
margin: 1.2rem 0;
color: var(--neon-blue);
text-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
border-bottom: 1px solid rgba(0, 240, 255, 0.2);
padding-bottom: 0.4rem;
}
.friends__body {
background: rgba(20, 20, 48, 0.75);
padding: 1.2rem 1.5rem;
margin: 1rem 0;
border-radius: 8px;
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.8rem;
}
/* 友链按钮(a 标签) */
.friends__link {
display: inline-block;
font-family: 'Orbitron', sans-serif;
font-size: 0.8rem;
letter-spacing: 1px;
color: var(--neon-blue);
border: 1px solid var(--neon-blue);
padding: 6px 16px;
border-radius: 8px;
transition: all 0.3s ease;
}
.friends__link:hover {
color: var(--neon-green);
border-color: var(--neon-green);
text-shadow: 0 0 6px var(--neon-green);
}
/* 按钮形态不显示全局 a::after 下划线动画 */
.friends__link::after,
.friends__badge::after {
display: none;
}
/* 88x31 图片按钮(img 标签) */
.friends__badge {
display: inline-block;
line-height: 0;
}
.friends__badge img {
width: 88px;
height: 31px;
border: 1px solid rgba(0, 240, 255, 0.3);
border-radius: 4px;
transition: all 0.3s ease;
}
.friends__badge:hover img {
border-color: var(--neon-blue);
box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}
@media (max-width: 768px) {
.friends__heading {
font-size: 1.3rem;
}
.friends__body {
padding: 1rem;
}
}