Spaces:
Running
Running
Download index.html from tanyaming/anycoder-b787cc40: direct link, hf CLI and curl.
- Browser
- Download file 23.7 kB
-
https://huggingface.co/spaces/tanyaming/anycoder-b787cc40/resolve/main/index.html
- Command line
-
hf download hf://spaces/tanyaming/anycoder-b787cc40/index.html
-
curl -L -o index.html https://huggingface.co/spaces/tanyaming/anycoder-b787cc40/resolve/main/index.html
23.7 kB
| <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> |