-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
826 lines (719 loc) · 26 KB
/
index.html
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
<!DOCTYPE html>
<html>
<head>
<!-- 预加载背景图 -->
<link rel="preload" href="./images/background.png" as="image">
<!-- 预加载 logo -->
<link rel="preload" href="./images/logo.png" as="image">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="description" content="Arweave Oasis 是 Arweave 专注于亚洲市场长期拓展目标,从开发、推广与赋能等方面助力开发者成长的开放式合作平台。">
<meta name="keywords" content="Arweave 生态,开发者社区,开发者文档,AO 生态。">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<title>ArweaveOasis - 永久存储的绿洲</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
<!-- 将 favicon 放在 images 文件夹中-->
<link rel="icon" href="images/favicon.png" type="image/x-icon">
<link rel="icon" href="images/favicon-32x32.png" sizes="32x32" type="image/png">
<link rel="apple-touch-icon" href="images/apple-touch-icon.png">
<!-- 初始样式,防止闪烁 -->
<style>
.nav-drawer {
display: none;
}
@media (max-width: 768px) {
.navbar > .nav-links {
display: none;
}
}
</style>
<style>
:root {
--primary-color: #000000;
--text-color: #FFFFFF;
--card-bg: rgba(32, 32, 32, 0.5);
--accent-green: #f5f7f4;
--header-bg: #000000;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Noto Sans SC', sans-serif;
-webkit-tap-highlight-color: transparent;
-webkit-touch-callout: none;
-webkit-user-select: none;
user-select: none;
}
html {
height: 100%;
width: 100%;
overflow-x: hidden;
background: var(--primary-color);
}
body {
color: var(--text-color);
min-height: 100%;
width: 100%;
overflow-x: hidden;
position: relative;
display: flex;
flex-direction: column;
background: var(--primary-color);
}
/* 桌面端/移动端显示控制 */
.desktop-only {
display: inline-block;
}
.mobile-only {
display: none;
}
/* 导航栏样式 */
.navbar {
position: fixed;
top: 0;
width: 100%;
background: var(--header-bg);
padding: 0.5rem 2rem;
display: flex;
justify-content: space-between;
align-items: center;
z-index: 1000;
height: 80px;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.logo-link {
text-decoration: none;
z-index: 1001;
}
.logo {
height: 40px;
width: auto;
filter: brightness(0) invert(1);
}
/* 菜单按钮样式 */
.menu-button {
display: none;
background: none;
border: none;
font-size: 1.5rem;
cursor: pointer;
padding: 0.5rem;
z-index: 1001;
color: var(--text-color);
transition: all 0.3s ease;
width: 40px;
height: 40px;
position: relative;
}
.menu-button .fa-bars {
transition: all 0.3s ease;
}
.menu-button.active .fa-bars {
transform: rotate(45deg);
}
.menu-button.active .fa-bars:before {
content: '\f00d';
}
.navbar > .nav-links {
display: flex;
align-items: center;
gap: 2rem;
margin-left: auto;
}
.nav-link {
text-decoration: none;
color: var(--text-color);
font-weight: 500;
transition: color 0.3s;
padding: 0.5rem 1rem;
white-space: nowrap;
font-size: 16px;
}
.nav-link:hover {
color: var(--accent-green);
}
/* 语言切换按钮样式 */
.language-btn {
background: transparent;
border: 1px solid var(--text-color);
color: var(--text-color);
padding: 8px 16px;
border-radius: 4px;
display: flex;
align-items: center;
gap: 0.5rem;
transition: all 0.3s ease;
cursor: pointer;
font-size: 14px;
}
.language-btn:hover {
border-color: var(--accent-green);
color: var(--accent-green);
}
.language-btn i {
transition: transform 0.3s ease;
}
.language-btn.active i {
transform: rotate(180deg);
}
/* 桌面端下拉菜单样式 */
.language-dropdown {
position: relative;
}
.dropdown-content {
display: none;
position: absolute;
right: 0;
background: var(--card-bg);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
min-width: 100px;
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
border-radius: 4px;
z-index: 1001;
border: 1px solid rgba(255, 255, 255, 0.1);
opacity: 0;
transform: translateY(-10px);
transition: opacity 0.3s ease, transform 0.3s ease;
}
.dropdown-content.show {
display: block;
opacity: 1;
transform: translateY(0);
}
.dropdown-content a {
color: var(--text-color);
padding: 12px 16px;
text-decoration: none;
display: block;
text-align: center;
transition: background-color 0.3s;
}
.dropdown-content a:hover {
background: rgba(255, 255, 255, 0.1);
}
/* Hero 区域样式 */
.hero {
height: 100vh;
display: flex;
align-items: flex-start;
justify-content: center;
padding: 2rem;
margin-top: 60px;
position: relative;
background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0)),
url('./images/background.png') no-repeat center center;
background-size: cover;
}
.hero-content {
text-align: center;
width: 100%;
max-width: 1200px;
padding: 3rem;
border-radius: 10px;
position: relative;
margin-top: 10vh;
}
.hero h1 {
font-size: 48px;
margin-bottom: 24px;
color: var(--text-color);
}
.hero p {
font-size: 20px;
margin-bottom: 32px;
color: var(--text-color);
opacity: 0.8;
}
.button {
padding: 12px 32px;
border: none;
border-radius: 8px;
font-weight: 500;
cursor: pointer;
transition: all 0.3s ease;
text-decoration: none;
display: inline-block;
font-size: 16px;
}
.button-primary {
background: var(--accent-green);
color: #000000;
box-shadow: 0 0 20px rgba(243, 245, 242, 0.3);
}
.button:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(254, 254, 254, 0.4);
}
/* 特性卡片区域样式 */
.features {
padding: 60px 120px;
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 32px;
background: var(--primary-color);
margin-top: auto;
position: relative;
z-index: 1;
}
.feature-card {
background: var(--card-bg);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 24px;
padding: 40px;
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 280px;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}
.feature-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(145deg,
rgba(255,255,255,0.05) 0%,
rgba(255,255,255,0) 100%);
pointer-events: none;
}
.feature-icon {
font-size: 36px;
margin-bottom: 24px;
color: var(--text-color);
position: relative;
}
.feature-card h3 {
color: var(--text-color);
font-size: 24px;
font-weight: 500;
margin: 0;
position: relative;
}
.feature-card:not(.disabled-card):hover {
transform: translateY(-8px);
box-shadow: 0 8px 24px rgba(57, 255, 20, 0.15);
}
.disabled-card {
opacity: 0.5;
cursor: not-allowed;
}
/* 导航抽屉样式 */
.nav-drawer {
display: none;
position: fixed;
top: 0;
right: 0;
width: 100%;
max-width: 300px;
height: 100%;
background: var(--header-bg);
transform: translateX(100%);
transition: transform 0.3s ease-in-out;
z-index: 1003;
border-left: 1px solid rgba(255, 255, 255, 0.1);
}
/* 添加抽屉头部样式 */
.drawer-header {
display: flex;
justify-content: flex-end;
padding: 1.5rem;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
/* 关闭按钮样式 */
.close-button {
background: none;
border: none;
color: var(--text-color);
font-size: 1.5rem;
cursor: pointer;
padding: 0.5rem;
transition: color 0.3s ease;
}
.close-button:hover {
color: var(--accent-green);
}
/* 修改抽屉内导航链接容器样式 */
.nav-drawer .nav-links {
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
padding-top: 2rem;
gap: 2rem;
}
.drawer-overlay {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
backdrop-filter: blur(5px);
opacity: 0;
visibility: hidden;
transition: opacity 0.3s;
z-index: 1002;
}
.drawer-overlay.show {
opacity: 1;
visibility: visible;
}
/* 页脚样式 */
.footer {
background: var(--primary-color);
padding: 1.5rem;
margin-top: 0;
border-top: 1px solid rgba(255, 255, 255, 0.1);
position: relative;
z-index: 1;
}
.social-links {
display: flex;
justify-content: center;
gap: 2rem;
padding: 0 2rem;
}
.social-links a {
color: var(--text-color);
font-size: 1.2rem;
transition: all 0.3s ease;
text-decoration: none;
opacity: 0.8;
}
.social-links a:hover {
color: var(--accent-green);
opacity: 1;
transform: translateY(-2px);
}
/* 响应式样式 */
@media (max-width: 768px) {
.navbar {
padding: 0.5rem 1rem;
}
.menu-button {
display: flex;
align-items: center;
justify-content: center;
}
.drawer-header {
display: flex; /* 确保在移动端显示 */
}
.desktop-only {
display: none;
}
.mobile-only {
display: inline-block;
}
.navbar > .nav-links {
display: none;
}
.nav-drawer {
display: block;
}
.nav-drawer.show {
transform: translateX(0);
}
.nav-drawer .nav-links {
opacity: 0;
transform: translateY(20px);
transition: opacity 0.3s ease, transform 0.3s ease;
}
.nav-drawer.show .nav-links {
opacity: 1;
transform: translateY(0);
}
.nav-drawer .nav-link {
font-size: 18px;
padding: 1rem;
width: 100%;
text-align: center;
}
.nav-drawer .language-btn {
width: 100%;
justify-content: center;
padding: 1rem;
font-size: 16px;
}
.features {
padding: 40px 20px;
grid-template-columns: 1fr;
}
.feature-card {
min-height: 240px;
padding: 32px;
}
.hero h1 {
font-size: 32px;
}
.hero p {
font-size: 16px;
}
.button-primary {
padding: 10px 24px;
font-size: 14px;
}
}
</style>
</head>
<body>
<nav class="navbar">
<a href="index.html" class="logo-link">
<img src="./images/logo.png" alt="ArweaveOasis" style="width: 200px; height:auto" class="logo">
</a>
<button class="menu-button" aria-label="Toggle menu">
<i class="fas fa-bars"></i>
</button>
<!-- 桌面端导航 -->
<div class="nav-links desktop-only">
<a href="#" class="nav-link docs-link" data-lang-zh="文档" data-lang-en="Docs">文档</a>
<a href="https://arweave.org" class="nav-link">Arweave</a>
<a href="https://ao.arweave.dev" class="nav-link">AO</a>
<div class="language-dropdown">
<button class="language-btn" onclick="toggleDropdown(event)">
<span class="current-lang">中文</span>
<i class="fas fa-chevron-down"></i>
</button>
<div class="dropdown-content" id="langDropdown">
<a href="#" onclick="changeLanguage('zh')">中文</a>
<a href="#" onclick="changeLanguage('en')">English</a>
</div>
</div>
</div>
<!-- 移动端抽屉导航 -->
<div class="nav-drawer">
<div class="drawer-header">
<button class="close-button" aria-label="Close menu">
<i class="fas fa-times"></i>
</button>
</div>
<div class="nav-links">
<a href="#" class="nav-link docs-link" data-lang-zh="文档" data-lang-en="Docs">文档</a>
<a href="https://arweave.org" class="nav-link">Arweave</a>
<a href="https://ao.arweave.dev" class="nav-link">AO</a>
<button class="language-btn mobile-only" onclick="toggleLanguageMobile()">
<span class="current-lang">中文</span>
</button>
</div>
</div>
<div class="drawer-overlay"></div>
</nav>
<section class="hero">
<div class="hero-content">
<h1 data-lang-zh="去中心化永存的绿洲" data-lang-en="The Decentralized Permanent Oasis">去中心化永存的绿洲</h1>
<p data-lang-zh="为开发者建立的基于 Arweave 与 AO 生态的技术社群" data-lang-en="A tech community based on the Arweave and AO ecosystems built for developers">
为开发者建立的基于 Arweave 与 AO 生态的技术社群
</p>
<a href="https://arweaveoasis.notion.site/Start-Building-with-AO-11cc18e690da80c0aa1fc2c908738167" class="button button-primary docs-button" data-lang-zh="AO 技术文档" data-lang-en="AO Documentation">AO 技术文档</a>
</div>
</section>
<section class="features">
<div class="feature-card disabled-card" title="Coming soon">
<i class="fas fa-graduation-cap feature-icon"></i>
<h3 data-lang-zh="开发者学堂" data-lang-en="Developer Academy">开发者学堂</h3>
</div>
<div class="feature-card disabled-card" title="Coming soon">
<i class="fas fa-calendar-days feature-icon"></i>
<h3 data-lang-zh="开发者活动" data-lang-en="Developer Events">开发者活动</h3>
</div>
<a href="https://default-link.com"
target="_blank"
class="feature-card whitepaper-card"
data-href-zh="https://67254fdgibvbmfsifsluaw6vpzij2burc67jcmcutcunf2be4t5q.arweave.net/9_XeFGZAahYWSCyXQFvVflCdBpEXvpEwVJio0ugk5Ps"
data-href-en="https://nm5d5uvmhjw363xf3idhjrd6nllqqrk76kkjbfpavyfmf7zzddxa.arweave.net/azo-0qw6bb9u5doGdMR-atcIRV_ylJCV4K4Kwv85GO4">
<i class="fas fa-book feature-icon"></i>
<h3 data-lang-zh="Arweave 白皮书" data-lang-en="Arweave Whitepaper">Arweave 白皮书</h3>
</a>
</section>
<footer class="footer">
<div class="social-links">
<a href="https://x.com/ArweaveOasis" target="_blank" title="Twitter">
<i class="fab fa-twitter"></i>
</a>
<a href="https://github.com/ArweaveOasis" target="_blank" title="GitHub">
<i class="fab fa-github"></i>
</a>
<a href="mailto:[email protected]" title="Email">
<i class="fas fa-envelope"></i>
</a>
<a href="https://discord.gg/9VhNHfa3" target="_blank" title="discord">
<i class="fab fa-discord"></i>
</a>
</div>
</footer>
<script>
const DOCS_URLS = {
zh: 'https://arweaveoasis.notion.site/Start-Building-with-AO-11cc18e690da80c0aa1fc2c908738167?pvs=4',
en: 'https://cookbook_ao.g8way.io/welcome/index.html'
};
let currentLang = localStorage.getItem('language') || 'zh';
let scrollPosition = 0;
// DOM 加载完成后立即初始化
document.addEventListener('DOMContentLoaded', function() {
// 初始化响应式布局
handleResponsiveLayout();
// 初始化语言
changeLanguage(currentLang, false);
// 更新白皮书链接
updateWhitepaperLink();
// 初始化语言显示
const currentLangElements = document.querySelectorAll('.current-lang');
currentLangElements.forEach(element => {
element.textContent = currentLang === 'zh' ? '中文' : 'EN';
});
});
// 响应式布局处理
function handleResponsiveLayout() {
const isMobile = window.innerWidth <= 768;
const mainNavLinks = document.querySelector('.navbar > .nav-links');
const navDrawer = document.querySelector('.nav-drawer');
const drawerOverlay = document.querySelector('.drawer-overlay');
if (!isMobile) {
if (mainNavLinks) {
mainNavLinks.style.display = 'flex';
mainNavLinks.style.marginLeft = 'auto';
}
if (navDrawer) {
navDrawer.style.display = 'none';
navDrawer.classList.remove('show');
}
if (drawerOverlay) {
drawerOverlay.style.display = 'none';
}
} else {
if (mainNavLinks) mainNavLinks.style.display = 'none';
if (navDrawer) navDrawer.style.display = 'block';
if (drawerOverlay) drawerOverlay.style.display = 'block';
}
}
// 移动端菜单按钮事件
const menuButton = document.querySelector('.menu-button');
const navDrawer = document.querySelector('.nav-drawer');
const drawerOverlay = document.querySelector('.drawer-overlay');
const closeButton = document.querySelector('.close-button');
if (closeButton) {
closeButton.addEventListener('click', (e) => {
e.stopPropagation();
closeDrawer();
});
}
if (menuButton) {
menuButton.addEventListener('click', (e) => {
e.stopPropagation();
if (navDrawer.classList.contains('show')) {
closeDrawer();
} else {
openDrawer();
}
});
}
// 移除菜单按钮的active类相关代码
function openDrawer() {
scrollPosition = window.pageYOffset;
navDrawer.classList.add('show');
drawerOverlay.classList.add('show');
document.body.classList.add('drawer-open');
document.body.style.top = `-${scrollPosition}px`;
}
function closeDrawer() {
navDrawer.classList.remove('show');
drawerOverlay.classList.remove('show');
document.body.classList.remove('drawer-open');
document.body.style.top = '';
window.scrollTo(0, scrollPosition);
}
// 移动端语言切换
function toggleLanguageMobile() {
currentLang = currentLang === 'zh' ? 'en' : 'zh';
localStorage.setItem('language', currentLang);
const currentLangElements = document.querySelectorAll('.current-lang');
currentLangElements.forEach(element => {
element.textContent = currentLang === 'zh' ? '中文' : 'EN';
});
updateLanguage();
updateDocsLinks();
updateWhitepaperLink();
}
// 桌面端语言切换相关
function toggleDropdown(event) {
event && event.stopPropagation();
const dropdown = document.getElementById('langDropdown');
const button = document.querySelector('.language-btn');
dropdown.classList.toggle('show');
button.classList.toggle('active');
}
function handleClickOutside(event) {
if (!event.target.matches('.language-btn') &&
!event.target.matches('.language-btn *') &&
!event.target.matches('.dropdown-content *')) {
const dropdowns = document.getElementsByClassName('dropdown-content');
const buttons = document.getElementsByClassName('language-btn');
Array.from(dropdowns).forEach(dropdown => dropdown.classList.remove('show'));
Array.from(buttons).forEach(button => button.classList.remove('active'));
}
}
window.addEventListener('click', handleClickOutside);
function changeLanguage(lang, closeDropdown = true) {
currentLang = lang;
localStorage.setItem('language', lang);
updateLanguage();
document.querySelector('.current-lang').textContent =
lang === 'zh' ? '中文' : 'EN';
document.documentElement.lang = lang;
updateDocsLinks();
updateWhitepaperLink();
if (closeDropdown) {
const dropdowns = document.getElementsByClassName('dropdown-content');
const buttons = document.getElementsByClassName('language-btn');
Array.from(dropdowns).forEach(dropdown => dropdown.classList.remove('show'));
Array.from(buttons).forEach(button => button.classList.remove('active'));
}
}
function updateLanguage() {
document.querySelectorAll('[data-lang-zh]').forEach(element => {
element.textContent = element.getAttribute(`data-lang-${currentLang}`);
});
}
function updateDocsLinks() {
const docsLinks = document.querySelectorAll('.docs-link');
docsLinks.forEach(link => {
link.href = DOCS_URLS[currentLang];
});
}
function updateWhitepaperLink() {
const whitepaperLink = document.querySelector('.whitepaper-card');
if (whitepaperLink) {
whitepaperLink.href = currentLang === 'zh'
? whitepaperLink.getAttribute('data-href-zh')
: whitepaperLink.getAttribute('data-href-en');
}
}
// 点击遮罩层关闭抽屉
drawerOverlay.addEventListener('click', closeDrawer);
// 监听 ESC 键关闭抽屉
document.addEventListener('keydown', (e) => {
if (e.key === 'Escape') {
closeDrawer();
}
});
// 阻止抽屉内点击事件冒泡到遮罩层
navDrawer.addEventListener('click', (e) => {
e.stopPropagation();
});
// 窗口大小改变时重新初始化布局
window.addEventListener('resize', handleResponsiveLayout);
</script>
</body>
</html>