Spaces:
Running
Running
File size: 23,678 Bytes
4118bdb 3c8d41b 4118bdb 3c8d41b 4118bdb 3c8d41b 4118bdb 3c8d41b 4118bdb 3c8d41b 4118bdb 3c8d41b 4118bdb 3c8d41b 4118bdb 3c8d41b 4118bdb 3c8d41b 4118bdb 3c8d41b 4118bdb 3c8d41b 4118bdb 3c8d41b 4118bdb 3c8d41b 4118bdb 3c8d41b 4118bdb 3c8d41b 4118bdb | 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 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 | <!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>神秘遗迹探险:失落的宝藏 - 运行指南</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
:root {
--primary: #8B4513;
--secondary: #DAA520;
--accent: #CD7F32;
--dark: #2C1810;
--light: #F5F5DC;
--danger: #8B0000;
--success: #006400;
--shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
--transition: all 0.3s ease;
}
body {
background: linear-gradient(135deg, #1a2a3a, #0d1b2a);
color: var(--light);
line-height: 1.6;
overflow-x: hidden;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
/* Header Styles */
header {
background: linear-gradient(to right, var(--dark), var(--primary));
padding: 1rem 0;
position: sticky;
top: 0;
z-index: 100;
box-shadow: var(--shadow);
}
.header-content {
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
display: flex;
align-items: center;
gap: 10px;
}
.logo i {
font-size: 2rem;
color: var(--secondary);
}
.logo h1 {
font-size: 1.8rem;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.anycoder-link {
color: var(--light);
text-decoration: none;
font-size: 0.9rem;
display: flex;
align-items: center;
gap: 5px;
transition: var(--transition);
}
.anycoder-link:hover {
color: var(--secondary);
}
/* Navigation */
nav ul {
display: flex;
list-style: none;
gap: 2rem;
}
nav a {
color: var(--light);
text-decoration: none;
font-weight: 500;
transition: var(--transition);
position: relative;
padding: 5px 0;
}
nav a::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 0;
height: 2px;
background: var(--secondary);
transition: var(--transition);
}
nav a:hover {
color: var(--secondary);
}
nav a:hover::after {
width: 100%;
}
/* Hero Section */
.hero {
height: 70vh;
background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1518709268805-4e9042af2176?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80') center/cover no-repeat;
display: flex;
align-items: center;
text-align: center;
position: relative;
overflow: hidden;
}
.hero::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: radial-gradient(circle at center, transparent 20%, rgba(0, 0, 0, 0.8) 80%);
z-index: 1;
}
.hero-content {
position: relative;
z-index: 2;
max-width: 800px;
margin: 0 auto;
padding: 0 20px;
}
.hero h2 {
font-size: 3.5rem;
margin-bottom: 1rem;
text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
background: linear-gradient(to right, var(--secondary), var(--accent));
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
.hero p {
font-size: 1.3rem;
margin-bottom: 2rem;
color: #e0e0e0;
}
.btn {
display: inline-block;
background: linear-gradient(to right, var(--primary), var(--accent));
color: white;
padding: 12px 30px;
border: none;
border-radius: 30px;
font-size: 1.1rem;
font-weight: 600;
cursor: pointer;
transition: var(--transition);
text-decoration: none;
box-shadow: var(--shadow);
}
.btn:hover {
transform: translateY(-3px);
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
background: linear-gradient(to right, var(--accent), var(--primary));
}
/* Section Styles */
section {
padding: 5rem 0;
}
.section-title {
text-align: center;
margin-bottom: 3rem;
position: relative;
}
.section-title h2 {
font-size: 2.5rem;
display: inline-block;
background: linear-gradient(to right, var(--secondary), var(--accent));
-webkit-background-clip: text;
background-clip: text;
color: transparent;
position: relative;
}
.section-title h2::after {
content: '';
position: absolute;
bottom: -10px;
left: 50%;
transform: translateX(-50%);
width: 80px;
height: 3px;
background: var(--secondary);
}
/* Game Elements Grid */
.game-elements {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
margin-top: 2rem;
}
.element-card {
background: rgba(255, 255, 255, 0.05);
border-radius: 15px;
padding: 2rem;
text-align: center;
transition: var(--transition);
box-shadow: var(--shadow);
border: 1px solid rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
}
.element-card:hover {
transform: translateY(-10px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
border-color: var(--secondary);
}
.element-icon {
font-size: 3rem;
color: var(--secondary);
margin-bottom: 1rem;
}
.element-card h3 {
font-size: 1.5rem;
margin-bottom: 1rem;
color: var(--light);
}
.element-card p {
color: #b0b0b0;
}
/* Character Section */
.characters {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
}
.character-card {
background: rgba(255, 255, 255, 0.05);
border-radius: 15px;
overflow: hidden;
transition: var(--transition);
box-shadow: var(--shadow);
}
.character-card:hover {
transform: scale(1.03);
}
.character-img {
height: 200px;
background: linear-gradient(45deg, var(--primary), var(--accent));
display: flex;
align-items: center;
justify-content: center;
font-size: 5rem;
color: rgba(255, 255, 255, 0.8);
}
.character-info {
padding: 1.5rem;
}
.character-info h3 {
font-size: 1.3rem;
margin-bottom: 0.5rem;
color: var(--light);
}
.character-info p {
color: #b0b0b0;
font-size: 0.9rem;
}
/* Gameplay Section */
.gameplay-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
}
.gameplay-item {
display: flex;
gap: 1rem;
align-items: flex-start;
}
.gameplay-icon {
font-size: 2rem;
color: var(--secondary);
flex-shrink: 0;
margin-top: 0.3rem;
}
.gameplay-content h3 {
font-size: 1.3rem;
margin-bottom: 0.5rem;
color: var(--light);
}
.gameplay-content p {
color: #b0b0b0;
}
/* Story Timeline */
.timeline {
position: relative;
max-width: 800px;
margin: 0 auto;
}
.timeline::after {
content: '';
position: absolute;
width: 4px;
background: var(--secondary);
top: 0;
bottom: 0;
left: 50%;
margin-left: -2px;
}
.timeline-item {
padding: 10px 40px;
position: relative;
width: 50%;
box-sizing: border-box;
margin-bottom: 2rem;
}
.timeline-item:nth-child(odd) {
left: 0;
}
.timeline-item:nth-child(even) {
left: 50%;
}
.timeline-content {
padding: 20px;
background: rgba(255, 255, 255, 0.05);
border-radius: 10px;
box-shadow: var(--shadow);
border: 1px solid rgba(255, 255, 255, 0.1);
}
.timeline-content h3 {
margin-bottom: 0.5rem;
color: var(--light);
}
.timeline-content p {
color: #b0b0b0;
}
.timeline-item::after {
content: '';
position: absolute;
width: 20px;
height: 20px;
background: var(--secondary);
border-radius: 50%;
top: 15px;
z-index: 1;
}
.timeline-item:nth-child(odd)::after {
right: -10px;
}
.timeline-item:nth-child(even)::after {
left: -10px;
}
/* Footer */
footer {
background: var(--dark);
padding: 3rem 0;
text-align: center;
}
.footer-content {
display: flex;
flex-direction: column;
align-items: center;
gap: 1.5rem;
}
.social-icons {
display: flex;
gap: 1.5rem;
}
.social-icons a {
color: var(--light);
font-size: 1.5rem;
transition: var(--transition);
}
.social-icons a:hover {
color: var(--secondary);
transform: translateY(-3px);
}
.footer-links {
display: flex;
gap: 2rem;
flex-wrap: wrap;
justify-content: center;
}
.footer-links a {
color: #b0b0b0;
text-decoration: none;
transition: var(--transition);
}
.footer-links a:hover {
color: var(--secondary);
}
.copyright {
color: #888;
font-size: 0.9rem;
margin-top: 1rem;
}
/* Responsive Design */
@media (max-width: 768px) {
.header-content {
flex-direction: column;
gap: 1rem;
}
nav ul {
flex-wrap: wrap;
justify-content: center;
gap: 1rem;
}
.hero h2 {
font-size: 2.5rem;
}
.hero p {
font-size: 1.1rem;
}
.timeline::after {
left: 31px;
}
.timeline-item {
width: 100%;
padding-left: 70px;
padding-right: 25px;
}
.timeline-item:nth-child(even) {
left: 0;
}
.timeline-item::after {
left: 21px;
}
.timeline-item:nth-child(odd)::after,
.timeline-item:nth-child(even)::after {
left: 21px;
}
}
}
/* Animation */
@keyframes float {
0% {
transform: translateY(0px);
}
50% {
transform: translateY(-10px);
}
100% {
transform: translateY(0px);
}
}
.floating {
animation: float 5s ease-in-out infinite;
}
/* Progress bars for game systems */
.progress-container {
margin: 1rem 0;
}
.progress-label {
display: flex;
justify-content: space-between;
margin-bottom: 0.5rem;
}
.progress-bar {
height: 8px;
background: rgba(255, 255, 255, 0.1);
border-radius: 4px;
overflow: hidden;
}
.progress-fill {
height: 100%;
background: linear-gradient(to right, var(--primary), var(--accent));
border-radius: 4px;
}
/* Interactive elements */
.interactive-card {
cursor: pointer;
position: relative;
overflow: hidden;
}
.interactive-card::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
transition: var(--transition);
}
.interactive-card:hover::before {
left: 100%;
}
/* 新增的运行指南样式 */
.run-guide {
background: rgba(255, 255, 255, 0.03);
border-radius: 15px;
padding: 2.5rem;
margin-bottom: 2rem;
border: 1px solid rgba(255, 255, 255, 0.05);
}
.step-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
margin-top: 2rem;
}
.step-card {
background: rgba(255, 255, 255, 0.05);
border-radius: 12px;
padding: 2rem;
transition: var(--transition);
}
.step-card:hover {
transform: translateY(-5px);
background: rgba(255, 255, 255, 0.08);
}
.step-number {
display: inline-flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
background: var(--secondary);
color: var(--dark);
border-radius: 50%;
font-weight: bold;
margin-bottom: 1rem;
}
.code-block {
background: rgba(0, 0, 0, 0.3);
border-radius: 8px;
padding: 1.5rem;
margin: 1rem 0;
font-family: 'Courier New', monospace;
border: 1px solid rgba(255, 255, 255, 0.1);
overflow-x: auto;
}
.code-block code {
color: var(--light);
font-size: 0.9rem;
}
.system-requirements {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1.5rem;
}
.requirement-card {
background: rgba(255, 255, 255, 0.05);
border-radius: 10px;
padding: 1.5rem;
text-align: center;
}
.requirement-icon {
font-size: 2.5rem;
color: var(--secondary);
margin-bottom: 1rem;
}
.highlight {
background: linear-gradient(120deg, var(--secondary) 0%, var(--secondary) 100%);
background-repeat: no-repeat;
background-size: 100% 0.2em;
background-position: 0 88%;
transition: var(--transition);
}
.highlight:hover {
background-size: 100% 100%;
color: var(--dark);
}
</style>
</head>
<body>
<header>
<div class="container">
<div class="header-content">
<div class="logo">
<i class="fas fa-treasure-chest floating"></i>
<h1>神秘遗迹探险:失落的宝藏</h1>
</div>
<a href="https://huggingface.co/spaces/akhaliq/anycoder" class="anycoder-link">
<i class="fas fa-code"></i>
Built with anycoder
</a>
</div>
<nav>
<ul>
<li><a href="#overview">游戏概述</a></li>
<li><a href="#run-guide">运行指南</a></li>
<li><a href="#requirements">系统要求</a></li>
<li><a href="#troubleshooting">问题解决</a></li>
<li><a href="#contact">技术支持</a></li>
</ul>
</nav>
</div>
</header>
<section class="hero">
<div class="hero-content">
<h2>游戏运行指南</h2>
<p>了解如何在不同环境中运行这款神秘遗迹探险游戏,开启您的冒险之旅</p>
<a href="#run-guide" class="btn">查看运行方法</a>
</div>
</section>
<section id="run-guide">
<div class="container">
<div class="section-title">
<h2>运行指南</h2>
</div>
<div class="run-guide">
<p>这是一个完整的HTML应用程序,可以直接在浏览器中运行。下面是详细的运行步骤:</p>
<div class="step-container">
<div class="step-card interactive-card">
<div class="step-number">1</div>
<h3>保存文件</h3>
<p>将当前HTML代码保存为 <span class="highlight">mystery-adventure.html</span> 文件</p>
</div>
<div class="step-card interactive-card">
<div class="step-number">2</div>
<h3>运行方法</h3>
<p>双击保存的HTML文件,即可在默认浏览器中打开</p>
</div>
<div class="step-card interactive-card">
<div class="step-number">3</div>
<h3>在线运行</h3>
<p>您也可以在任何支持HTML的在线编辑器中运行此代码</p>
</div>
</div>
</div>
</section>
<section id="requirements" style="background: rgba(0, 0, 0, 0.3);">
<div class="container">
<div class="section-title">
<h2>系统要求</h2>
</div>
<div class="system-requirements">
<div class="requirement-card interactive-card">
<div class="requirement-icon">
<i class="fas fa-desktop"></i>
</div>
<h3>硬件要求</h3>
<p>• 现代浏览器(Chrome、Firefox、Safari、Edge)</p>
<p>• 支持CSS3和JavaScript</p>
<p>• 建议屏幕分辨率:1920×1080</p>
</div>
<div class="requirement-card interactive-card">
<div class="requirement-icon">
<i class="fas fa-code"></i>
</div>
<h3>软件要求</h3>
<p>• 任何现代网页浏览器</p>
<p>• 稳定的互联网连接(用于加载图标库)</p>
</div>
<div class="requirement-card interactive-card">
<div class="requirement-icon">
<i class="fas fa-mobile-alt"></i>
</div>
<h3>移动设备</h3>
<p>• 完全支持移动设备</p>
<p>• 响应式设计适配各种屏幕</p>
</div>
</div>
</div>
</section>
<section id="troubleshooting">
<div class="container">
<div class="section-title">
<h2>常见问题解决</h2>
</div>
<div class="gameplay-grid">
<div class="gameplay-item">
<div class="gameplay-icon">
<i class="fas fa-exclamation-triangle"></i>
</div>
<div class="gameplay-content">
<h3>页面无法正常显示</h3>
<p>请确保您的浏览器支持现代CSS特性,如CSS Grid和Flexbox。</p>
</div>
</div>
<div class="gameplay-item">
<div class="gameplay-icon">
<i class="fas fa-sync-alt"></i>
</div>
<div class="gameplay-content">
<h3>图标不显示</h3>
<p>请检查网络连接,确保能访问Font Awesome CDN。</p>
</div>
</div>
<div class="gameplay-item">
<div class="gameplay-icon">
<i class="fas fa-cogs"></i>
</div>
<div class="gameplay-content">
<h3>动画效果不流畅</h3>
<p>建议使用性能较好的设备,并关闭不必要的浏览器标签。</p>
</div>
</div>
<div class="gameplay-item">
<div class="gameplay-icon">
<i class="fas fa-mouse-pointer"></i>
</div>
<div class="gameplay-content">
<h3>交互效果异常</h3>
<p>请确保JavaScript在浏览器中已启用。</p>
</div>
</div>
</div>
</div>
</section>
<section id="contact" style="background: rgba(0, 0, 0, 0.3);">
<div class="container">
<div class="section-title">
<h2>技术支持</h2>
</div>
<div class="element-card interactive-card">
<div class="element-icon">
<i class="fas fa-life-ring"></i>
</div>
<h3>获取帮助</h3>
<p>如果您在运行过程中遇到任何问题,请通过以下方式联系我们:</p>
<div class="progress-container">
<div class="progress-label">
<span>技术支持邮箱</span>
<span>support@mysteryadventure.com</span>
</div>
</div>
</div>
</div>
</div>
</section>
<footer>
<div class="container">
<div class="footer-content">
<div class="logo">
<i class="fas fa-treasure-chest"></i>
<h2>神秘遗迹探险:失落的宝藏</h2>
</div>
<div class="social-icons">
<a href="#"><i class="fab fa-facebook"></i></a>
<a href="#"><i class="fab fa-twitter"></i></a>
<a href="#"><i class="fab fa-instagram"></i></a>
<a href="#"><i class="fab fa-youtube"></i></a>
<a href="#"><i class="fab fa-discord"></i></a>
</div>
<div class="footer-links">
<a href="#">隐私政策</a>
<a href="#">服务条款</a>
<a href="#">联系我们</a>
<a href="#">常见问题</a>
</div>
<div class="copyright">
<p>© 2023 神秘遗迹探险:失落的宝藏. 保留所有权利.</p>
</div>
</div>
</div>
</footer>
<script>
// Smooth scrolling for navigation links
document.querySelectorAll('nav a').forEach(anchor => {
anchor.addEventListener('click', function(e) {
e.preventDefault();
const targetId = this.getAttribute('href');
const targetElement = document.querySelector(targetId);
window.scrollTo({
top: targetElement.offsetTop - 80,
behavior: 'smooth'
});
});
});
// Interactive elements animation
document.querySelectorAll('.interactive-card').forEach(card => {
card.addEventListener('mouseenter', function() {
this.style.transform = 'scale(1.05)';
this.style.boxShadow = '0 10px 20px rgba(0, 0, 0, 0.3)';
this.style.borderColor = '#DAA520';
this.style.zIndex = '10';
this.style.transition = 'all 0.3s ease';
if (this.querySelector('.element-icon')) {
this.querySelector('.element-icon').style.transform = 'scale(1.2)';
}
});
card.addEventListener('mouseleave', function() {
this.style.transform = 'scale(1)';
this.style.boxShadow = '0 4px 6px rgba(0, 0, 0, 0.1)';
this.style.borderColor = 'rgba(255, 255, 255, 0.1)';
this.style.zIndex = '1';
if (this.querySelector('.element-icon')) {
this.querySelector('.element-icon').style.transform = 'scale(1)';
}
});
});
// Dynamic progress bars
function updateProgressBars() {
const progressFills = document.querySelectorAll('.progress-fill');
progressFills.forEach(fill => {
const currentWidth = parseInt(fill.style.width) || 0;
const targetWidth = Math.floor(Math.random() * 20) + currentWidth;
if (targetWidth > 100) {
fill.style.width = '100%';
} else {
fill.style.width = targetWidth + '%';
}
});
}
// Update progress bars every 5 seconds
setInterval(updateProgressBars, 5000);
// Floating animation for hero section elements
document.addEventListener('DOMContentLoaded', function() {
const heroContent = document.querySelector('.hero-content');
heroContent.style.opacity = '0';
heroContent.style.transform = 'translateY(20px)';
setTimeout(() => {
heroContent.style.transition = 'all 0.8s ease';
heroContent.style.opacity = '1';
heroContent.style.transform = 'translateY(0)';
}, 300);
});
// 运行状态指示器
document.addEventListener('DOMContentLoaded', function() {
const runStatus = document.createElement('div');
runStatus.innerHTML = `
<div style="position: fixed; top: 20px; right: 20px; background: var(--success); color: white; padding: 10px 20px; border-radius: 25px; font-size: 0.9rem; z-index: 1000; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow);">
<i class="fas fa-check-circle"></i>
应用已就绪
</div>
`;
setTimeout(() => {
document.body.appendChild(runStatus);
// 5秒后隐藏状态指示器
setTimeout(() => {
runStatus.style.transition = 'all 0.5s ease';
runStatus.style.opacity = '0';
setTimeout(() => {
runStatus.remove();
}, 500);
}, 5000);
}, 1000);
});
</script>
</body>
</html> |