-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
921 lines (864 loc) · 23.6 KB
/
Copy pathstyles.css
File metadata and controls
921 lines (864 loc) · 23.6 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
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
/* ============================================================
AI Nav · 样式表
主题: 深色 + 霓虹青紫
设计语言: 玻璃拟态 / 渐变描边 / 微动效
============================================================ */
:root {
--bg-0: #070A18;
--bg-1: #0B1020;
--bg-2: #11172B;
--bg-card: rgba(20, 26, 48, 0.55);
--border: rgba(255, 255, 255, 0.08);
--border-strong: rgba(255, 255, 255, 0.16);
--text-0: #F1F5FF;
--text-1: #C7CDE6;
--text-2: #8089A8;
--text-3: #5B6485;
--c-cyan: #22D3EE;
--c-indigo: #6366F1;
--c-purple: #A855F7;
--grad: linear-gradient(135deg, #22D3EE 0%, #6366F1 50%, #A855F7 100%);
--grad-soft: linear-gradient(135deg, rgba(34,211,238,0.18), rgba(168,85,247,0.18));
--radius-s: 8px;
--radius-m: 12px;
--radius-l: 16px;
--radius-xl: 20px;
--shadow-card: 0 4px 24px rgba(0, 0, 0, 0.35);
--shadow-glow: 0 0 24px rgba(99, 102, 241, 0.25);
--font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
"Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body {
margin: 0;
padding: 0;
font-family: var(--font);
color: var(--text-0);
background: var(--bg-0);
min-height: 100vh;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
scroll-behavior: smooth;
}
body {
background:
radial-gradient(1200px 600px at 10% -10%, rgba(99, 102, 241, 0.18), transparent 60%),
radial-gradient(900px 500px at 100% 0%, rgba(168, 85, 247, 0.12), transparent 60%),
radial-gradient(1000px 800px at 50% 100%, rgba(34, 211, 238, 0.10), transparent 60%),
var(--bg-0);
background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
/* ============================================================
背景光晕装饰
============================================================ */
.bg-glow {
position: fixed;
inset: 0;
z-index: -1;
pointer-events: none;
overflow: hidden;
}
.blob {
position: absolute;
width: 480px;
height: 480px;
border-radius: 50%;
filter: blur(120px);
opacity: 0.35;
animation: float 18s ease-in-out infinite;
}
.blob-1 { background: #22D3EE; top: -120px; left: -120px; }
.blob-2 { background: #A855F7; top: 30%; right: -180px; animation-delay: -6s; }
.blob-3 { background: #6366F1; bottom: -160px; left: 30%; animation-delay: -12s; }
@keyframes float {
0%, 100% { transform: translate(0, 0) scale(1); }
50% { transform: translate(40px, -30px) scale(1.08); }
}
/* ============================================================
顶部 header
============================================================ */
.site-header {
max-width: 1480px;
margin: 0 auto;
padding: 40px 28px 24px;
display: grid;
grid-template-columns: auto 1fr auto;
gap: 24px;
align-items: center;
}
.brand {
display: flex;
align-items: center;
gap: 14px;
}
.brand-logo {
width: 48px;
height: 48px;
filter: drop-shadow(0 0 12px rgba(99,102,241,0.45));
}
.brand-text h1 {
margin: 0;
font-size: 22px;
font-weight: 700;
letter-spacing: 0.5px;
background: var(--grad);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
.brand-sub {
margin: 2px 0 0;
font-size: 12px;
color: var(--text-2);
letter-spacing: 0.4px;
}
/* 搜索框 */
.search-wrap {
position: relative;
display: flex;
align-items: center;
background: rgba(15, 20, 40, 0.7);
border: 1px solid var(--border);
border-radius: var(--radius-xl);
padding: 0 16px;
height: 52px;
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.search-wrap:focus-within {
border-color: rgba(99, 102, 241, 0.6);
box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12), var(--shadow-glow);
}
.search-icon {
font-size: 16px;
margin-right: 10px;
opacity: 0.7;
}
#search {
flex: 1;
height: 100%;
background: transparent;
border: none;
outline: none;
color: var(--text-0);
font-size: 15px;
font-family: inherit;
}
#search::placeholder { color: var(--text-3); }
.search-kbd {
font-family: var(--font);
font-size: 11px;
color: var(--text-2);
background: rgba(255, 255, 255, 0.06);
border: 1px solid var(--border);
border-radius: 4px;
padding: 2px 7px;
margin-left: 8px;
}
.header-stats {
display: flex;
gap: 18px;
font-size: 13px;
color: var(--text-2);
white-space: nowrap;
}
.header-stats b {
font-size: 16px;
font-weight: 700;
background: var(--grad);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
margin-right: 3px;
}
/* ============================================================
主体 + 右侧 sidebar 两栏布局
============================================================ */
.layout {
max-width: 1480px;
margin: 0 auto;
padding: 8px 28px 0;
display: grid;
grid-template-columns: minmax(0, 1fr) 240px;
gap: 28px;
align-items: start;
}
/* ============================================================
广告:已切换到 AdSense Auto Ads(v12),无手动 ad-slot。
位置由 AdSense 自动选择,移动端约 7 个、桌面端约 6 个。
============================================================ */
/* ============================================================
右侧分类 sidebar(sticky)
============================================================ */
.cat-sidebar {
position: sticky;
top: 16px;
align-self: start;
width: 100%;
max-height: calc(100vh - 32px);
overflow: hidden;
display: flex;
flex-direction: column;
}
.cat-sidebar-inner {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-l);
padding: 14px;
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
display: flex;
flex-direction: column;
min-height: 0;
}
.cat-sidebar-title {
font-size: 12px;
color: var(--text-2);
text-transform: uppercase;
letter-spacing: 1px;
margin-bottom: 10px;
padding-left: 4px;
}
/* ============================================================
分类导航 chips(竖排在 sidebar 内)
============================================================ */
.cat-nav {
display: flex;
flex-direction: column;
gap: 6px;
overflow-y: auto;
max-height: calc(100vh - 110px);
padding-right: 2px;
scrollbar-width: thin;
scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}
.cat-nav::-webkit-scrollbar { width: 4px; }
.cat-nav::-webkit-scrollbar-track { background: transparent; }
.cat-nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 2px; }
.cat-chip {
width: 100%;
text-align: left;
padding: 8px 12px;
font-size: 13px;
color: var(--text-1);
background: transparent;
border: 1px solid transparent;
border-radius: 10px;
transition: all 0.18s;
white-space: nowrap;
display: flex;
align-items: center;
gap: 6px;
cursor: pointer;
}
.cat-chip:hover {
color: var(--text-0);
border-color: var(--border);
background: rgba(255, 255, 255, 0.04);
}
.cat-chip.active {
color: #fff;
background: var(--grad);
border-color: transparent;
box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}
/* ============================================================
主体内容
============================================================ */
.content {
min-width: 0; /* 防止 grid 子项被内容撑爆 */
padding: 0 0 40px;
/* 性能:contain layout 隔离 .cat-section 之间的 layout 影响 + 防止滚动链到 header */
contain: layout;
overscroll-behavior-y: contain;
}
/* ============================================================
静态 SEO intro(v24:JS 渲染前 crawler/用户可见)
============================================================ */
.static-intro {
margin: 16px 0 24px;
padding: 20px 24px;
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-m);
/* 性能:屏幕外不渲染,避免影响 LCP */
content-visibility: auto;
contain-intrinsic-size: auto 360px;
/* 兜底:中文长段在窄屏强制换行(避免 390px 视窗下整行溢出) */
overflow-wrap: break-word;
word-break: break-word;
}
.static-intro .intro-h2 {
margin: 0 0 8px;
font-size: 20px;
font-weight: 600;
color: var(--text-0);
line-height: 1.4;
word-break: break-word;
overflow-wrap: break-word;
}
.static-intro .intro-p {
margin: 0 0 16px;
font-size: 13.5px;
line-height: 1.7;
color: var(--text-1);
word-break: break-word;
overflow-wrap: break-word;
}
.static-intro .intro-h3 {
margin: 0 0 12px;
font-size: 14px;
font-weight: 600;
color: var(--text-0);
word-break: break-word;
overflow-wrap: break-word;
}
.editor-picks {
list-style: none;
margin: 0 0 12px;
padding: 0;
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 8px;
}
.editor-picks li {
margin: 0;
padding: 0;
}
.editor-picks .pick-link {
display: flex;
align-items: baseline;
gap: 8px;
padding: 8px 12px;
background: var(--bg-2);
border: 1px solid var(--border);
border-radius: var(--radius-s);
color: var(--text-1);
text-decoration: none;
font-size: 13px;
line-height: 1.5;
transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.editor-picks .pick-link:hover {
border-color: var(--c-cyan);
background: var(--bg-1);
transform: translateY(-1px);
}
.editor-picks .pick-link b {
flex-shrink: 0;
color: var(--text-0);
font-weight: 600;
}
.editor-picks .pick-link span {
color: var(--text-2);
}
.intro-tip {
margin: 8px 0 0;
font-size: 12px;
color: var(--text-2);
word-break: break-word;
overflow-wrap: break-word;
}
.intro-tip kbd {
padding: 1px 6px;
background: var(--bg-2);
border: 1px solid var(--border);
border-radius: 4px;
font-family: ui-monospace, "SF Mono", Menlo, monospace;
font-size: 11px;
color: var(--text-1);
}
@media (max-width: 600px) {
.static-intro { padding: 16px 18px; }
.static-intro .intro-h2 { font-size: 17px; overflow-wrap: anywhere; }
.static-intro .intro-p { font-size: 13px; }
.editor-picks { grid-template-columns: 1fr; gap: 6px; }
.editor-picks .pick-link { flex-wrap: wrap; gap: 4px; padding: 8px 10px; }
.editor-picks .pick-link b { flex-shrink: 0; }
.editor-picks .pick-link span { width: 100%; }
.intro-tip { font-size: 11.5px; }
}
.cat-section {
margin: 36px 0 8px;
/* 性能:屏幕外的分类区块跳过渲染,避免 533 个工具同时参与 paint/composite */
content-visibility: auto;
contain-intrinsic-size: auto 500px;
}
.cat-section:first-child { margin-top: 16px; }
.cat-title {
display: flex;
align-items: baseline;
gap: 10px;
margin: 0 0 16px;
font-size: 18px;
font-weight: 600;
color: var(--text-0);
}
.cat-title .cat-emoji {
font-size: 22px;
}
.cat-title .cat-count {
font-size: 12px;
color: var(--text-3);
font-weight: 500;
}
/* 工具卡片 grid */
.tool-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
gap: 12px;
}
.tool-card {
position: relative;
display: flex;
flex-direction: column;
gap: 6px;
padding: 14px 16px;
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-m);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
transition: all 0.2s;
overflow: hidden;
text-decoration: none;
color: inherit;
}
.tool-card::before {
content: "";
position: absolute;
inset: 0;
border-radius: inherit;
padding: 1px;
background: var(--grad);
-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
-webkit-mask-composite: xor;
mask-composite: exclude;
opacity: 0;
transition: opacity 0.2s;
pointer-events: none;
}
.tool-card:hover {
transform: translateY(-2px);
border-color: transparent;
box-shadow: var(--shadow-card), var(--shadow-glow);
background: rgba(28, 36, 64, 0.7);
}
.tool-card:hover::before { opacity: 1; }
.tool-name {
display: flex;
align-items: center;
gap: 6px;
font-size: 15px;
font-weight: 600;
color: var(--text-0);
}
.tool-name::after {
content: "↗";
font-size: 11px;
opacity: 0;
color: var(--c-cyan);
transition: opacity 0.2s, transform 0.2s;
margin-left: auto;
}
.tool-card:hover .tool-name::after {
opacity: 1;
transform: translate(2px, -2px);
}
.tool-desc {
font-size: 12.5px;
line-height: 1.5;
color: var(--text-2);
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
/* ============================================================
空状态
============================================================ */
.empty {
text-align: center;
padding: 80px 20px;
color: var(--text-2);
}
.empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty h2 { margin: 0 0 8px; font-size: 18px; color: var(--text-1); }
.empty a { color: var(--c-cyan); text-decoration: underline; }
/* ============================================================
底部
============================================================ */
.site-footer {
max-width: 1480px;
margin: 0 auto;
padding: 24px 28px 40px;
text-align: center;
font-size: 12.5px;
color: var(--text-2);
border-top: 1px solid var(--border);
}
.site-footer p { margin: 4px 0; }
.site-footer .muted { color: var(--text-3); font-size: 11.5px; }
.site-footer a { color: var(--c-cyan); }
.site-footer a:hover { text-decoration: underline; }
/* ============================================================
响应式(≤ 900px:sidebar 转成顶部横排 sticky)
============================================================ */
@media (max-width: 900px) {
/* 移动端:彻底关闭 backdrop-filter(移动 GPU 抗不住 blur 在滚动时持续重计算) */
*, *::before, *::after {
backdrop-filter: none !important;
-webkit-backdrop-filter: none !important;
}
.site-header {
grid-template-columns: 1fr;
gap: 16px;
padding: 24px 18px 16px;
}
.header-stats { order: 3; }
.header-right {
order: 4;
justify-content: space-between;
width: 100%;
}
.lang-btn { padding: 5px 10px; font-size: 11px; }
/* layout 单列;用 order 把 sidebar 提到 main 之前 */
.layout {
grid-template-columns: 1fr;
padding: 8px 18px 0;
gap: 12px;
}
/* 移动端:Auto Ads 由 AdSense 智能插入,不再写手动画尺寸 */
.cat-sidebar {
position: sticky;
top: 0;
order: -1;
max-height: none;
z-index: 10;
}
.cat-sidebar-inner {
padding: 10px 12px;
border-radius: var(--radius-m);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}
.cat-sidebar-title { display: none; }
.cat-nav {
flex-direction: row;
flex-wrap: nowrap;
overflow-x: auto;
max-height: none;
gap: 8px;
padding-right: 0;
scrollbar-width: none;
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-chip {
width: auto;
flex-shrink: 0;
padding: 6px 12px;
font-size: 12.5px;
}
.content { padding: 0 0 28px; }
.site-footer { padding: 20px 18px 32px; }
.tool-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.tool-card { padding: 12px 14px; }
.brand-text h1 { font-size: 20px; }
.card { padding: 24px 20px; }
.ad-slot {
margin: 24px auto 0;
padding: 0 18px;
min-height: 80px;
max-height: 100px;
}
.ad-slot ins.adsbygoogle {
min-height: 60px;
max-height: 100px;
}
}
@media (max-width: 480px) {
.tool-grid { grid-template-columns: 1fr 1fr; }
.search-wrap { height: 46px; }
#search { font-size: 14px; }
.search-kbd { display: none; }
.card { padding: 20px 16px; }
}
/* 移动端分类下拉(桌面端隐藏) */
.cat-select { display: none; }
@media (max-width: 900px) {
/* 移动端:sidebar 隐藏 chips,改用 sticky 下拉 */
.cat-sidebar-inner { display: none; }
.cat-select {
display: block;
width: 100%;
padding: 12px 14px;
background: rgba(15, 20, 40, 0.7);
border: 1px solid var(--border);
border-radius: var(--radius-m);
color: var(--text-0);
font-size: 14px;
font-family: inherit;
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
cursor: pointer;
appearance: none;
-webkit-appearance: none;
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%239ca3af' d='M6 8L0 0h12z'/></svg>");
background-repeat: no-repeat;
background-position: right 14px center;
padding-right: 36px;
}
.cat-select:focus { outline: none; border-color: rgba(99, 102, 241, 0.6); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12); }
.cat-select option { background: #0B1020; color: var(--text-0); }
}
/* ============================================================
广告位(手动 + 占位;v20 加回,配合 AdSense Auto Ads 一起用)
============================================================ */
.ad-slot {
max-width: 1480px;
margin: 32px auto 0;
padding: 0 28px;
position: relative;
min-height: 100px;
max-height: 130px;
overflow: hidden;
}
.ad-slot ins.adsbygoogle {
display: block;
min-height: 90px;
max-height: 120px;
}
.ad-slot.ad-bottom {
margin-top: 40px;
margin-bottom: 0;
}
.ad-placeholder {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
font-size: 12px;
color: var(--text-3);
background: var(--bg-card);
border: 1px dashed var(--border);
border-radius: var(--radius-m);
pointer-events: none;
letter-spacing: 0.4px;
}
/* 真实广告加载后隐藏占位文字 */
.ad-slot ins.adsbygoogle[data-ad-status="filled"] + .ad-placeholder,
.ad-slot ins.adsbygoogle:has(> iframe) + .ad-placeholder {
display: none;
}
/* ============================================================
性能:快速滚动时全局关闭 backdrop-filter + 降低 paint 成本
============================================================ */
body[data-fast-scrolling] *,
body[data-fast-scrolling] *::before,
body[data-fast-scrolling] *::after {
backdrop-filter: none !important;
-webkit-backdrop-filter: none !important;
}
body[data-fast-scrolling] * {
transition: none !important;
animation-duration: 0.001ms !important;
}
/* ============================================================
滚动条美化 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }
/* 选区 */
::selection { background: rgba(99, 102, 241, 0.4); color: #fff; }
/* ============================================================
右上角语言切换 + about/privacy 通用样式
============================================================ */
.header-right {
display: flex;
align-items: center;
gap: 16px;
}
.lang-switch {
display: inline-flex;
background: rgba(15, 20, 40, 0.7);
border: 1px solid var(--border);
border-radius: var(--radius-pill, 999px);
padding: 3px;
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
gap: 2px;
}
.lang-btn {
appearance: none;
background: transparent;
border: none;
color: var(--text-2);
font-size: 12px;
font-weight: 600;
letter-spacing: 0.4px;
padding: 6px 12px;
border-radius: 999px;
cursor: pointer;
transition: background 0.2s, color 0.2s;
font-family: inherit;
}
.lang-btn:hover { color: var(--text-0); }
.lang-btn.active {
background: var(--grad);
color: #0B1020;
box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}
/* about / privacy 通用 card */
.card {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-l);
padding: 32px;
margin-top: 20px;
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
}
.card h2 {
margin-top: 0;
font-size: 22px;
color: var(--text-0);
}
.card h3 {
font-size: 16px;
color: var(--text-0);
margin-top: 20px;
margin-bottom: 8px;
}
.card p, .card ul {
line-height: 1.8;
color: var(--text-1);
}
.card ul {
padding-left: 20px;
line-height: 1.9;
}
.card .note {
color: var(--text-2);
font-size: 14px;
background: rgba(99, 102, 241, 0.06);
border-left: 3px solid var(--c-cyan);
padding: 10px 14px;
border-radius: 0 8px 8px 0;
line-height: 1.7;
}
.card code {
background: var(--bg-2);
padding: 2px 6px;
border-radius: 4px;
font-size: 0.9em;
color: var(--text-0);
}
.cyan { color: var(--c-cyan); }
.grad-text {
background: var(--grad);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
.back-home {
text-align: center;
margin-top: 32px;
}
.back-home a {
color: var(--c-cyan);
text-decoration: none;
font-size: 15px;
}
.back-home a:hover { text-decoration: underline; }
/* v25: 首页深度文章区 */
.articles-block {
max-width: 1280px;
margin: 48px auto 0;
padding: 28px 28px 8px;
background: var(--bg-1);
border: 1px solid var(--border);
border-radius: 12px;
}
.articles-title {
margin: 0 0 8px;
font-size: 20px;
font-weight: 700;
color: var(--text-0);
}
.articles-desc {
margin: 0 0 18px;
color: var(--text-1);
font-size: 14px;
line-height: 1.6;
}
.articles-list {
list-style: none;
margin: 0 0 8px;
padding: 0;
display: grid;
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
gap: 12px;
}
.articles-list li { margin: 0; padding: 0; }
.articles-list .article-link {
display: flex;
flex-direction: column;
gap: 6px;
padding: 14px 16px;
background: var(--bg-2);
border: 1px solid var(--border);
border-radius: 8px;
text-decoration: none;
color: var(--text-1);
transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.articles-list .article-link:hover {
background: var(--bg-3);
border-color: var(--c-cyan);
}
.articles-list .article-name {
color: var(--c-cyan);
font-size: 14px;
font-weight: 600;
line-height: 1.4;
}
.articles-list .article-meta {
color: var(--text-2);
font-size: 12px;
}
/* v26: 工具卡详情图标 (ⓘ) */
.tool-card { position: relative; }
.tool-card .card-info {
position: absolute;
right: 8px;
bottom: 8px;
width: 22px;
height: 22px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
background: rgba(91, 140, 255, 0.15);
color: var(--c-cyan);
font-size: 14px;
line-height: 1;
cursor: pointer;
opacity: 0.6;
transition: opacity 0.15s, background 0.15s, transform 0.15s;
user-select: none;
}
.tool-card .card-info:hover {
opacity: 1;
background: rgba(91, 140, 255, 0.35);
transform: scale(1.15);
}
/* about 单列 header(带语言切换的简化版) */
.about-header {
grid-template-columns: 1fr auto;
padding-bottom: 24px;
}
.about-header .header-right { gap: 0; }