游戏官方网页edit icon

创建者:
用户d3dcLPzN
Fork(复制)
下载
嵌入
BUG反馈
index.html
style.css
index.js
index.html
            
            <!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>精英行动:3D枪战手游</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
            color: #fff;
            min-height: 100vh;
            overflow-x: hidden;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }
        
        header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 0;
            border-bottom: 2px solid rgba(255, 255, 255, 0.1);
        }
        
        .logo {
            font-size: 28px;
            font-weight: 700;
            color: #ff4655;
            text-shadow: 0 0 10px rgba(255, 70, 85, 0.5);
        }
        
        .logo span {
            color: #fff;
        }
        
        nav ul {
            display: flex;
            list-style: none;
        }
        
        nav ul li {
            margin-left: 25px;
        }
        
        nav ul li a {
            color: #fff;
            text-decoration: none;
            font-weight: 500;
            transition: color 0.3s;
        }
        
        nav ul li a:hover {
            color: #ff4655;
        }
        
        .hero {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            padding: 60px 0;
        }
        
        h1 {
            font-size: 48px;
            margin-bottom: 20px;
            background: linear-gradient(45deg, #ff4655, #ff8660);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            text-shadow: 0 5px 15px rgba(255, 70, 85, 0.4);
        }
        
        .subtitle {
            font-size: 20px;
            margin-bottom: 40px;
            max-width: 600px;
            color: #a9b7c6;
        }
        
        .cta-button {
            background: linear-gradient(45deg, #ff4655, #ff8660);
            color: white;
            border: none;
            padding: 15px 40px;
            font-size: 18px;
            border-radius: 30px;
            cursor: pointer;
            transition: transform 0.3s, box-shadow 0.3s;
            box-shadow: 0 5px 15px rgba(255, 70, 85, 0.4);
            margin-bottom: 50px;
        }
        
        .cta-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(255, 70, 85, 0.6);
        }
        
        /* 3D游戏场景 */
        .game-scene {
            width: 100%;
            height: 400px;
            perspective: 1000px;
            margin: 40px 0;
        }
        
        .scene-container {
            width: 100%;
            height: 100%;
            position: relative;
            transform-style: preserve-3d;
            animation: scene-rotate 20s infinite linear;
        }
        
        @keyframes scene-rotate {
            0% { transform: rotateY(0deg); }
            100% { transform: rotateY(360deg); }
        }
        
        .scene {
            position: absolute;
            width: 300px;
            height: 300px;
            top: 50%;
            left: 50%;
            margin: -150px 0 0 -150px;
            transform-style: preserve-3d;
        }
        
        .building {
            position: absolute;
            width: 100px;
            height: 200px;
            background: linear-gradient(to bottom, #4a4e69, #22223b);
            border: 2px solid #1c1c2e;
            transform-style: preserve-3d;
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
        }
        
        .building:nth-child(1) {
            transform: translateZ(150px);
        }
        
        .building:nth-child(2) {
            transform: translateZ(-150px);
        }
        
        .building:nth-child(3) {
            transform: translateX(-150px) rotateY(90deg);
        }
        
        .building:nth-child(4) {
            transform: translateX(150px) rotateY(90deg);
        }
        
        .character {
            position: absolute;
            width: 40px;
            height: 60px;
            background: #ff4655;
            top: 50%;
            left: 50%;
            margin: -30px 0 0 -20px;
            transform-style: preserve-3d;
            animation: character-move 5s infinite alternate;
            border-radius: 5px;
        }
        
        @keyframes character-move {
            0% { transform: translateX(-100px) translateZ(50px); }
            100% { transform: translateX(100px) translateZ(-50px); }
        }
        
        /* 游戏特性部分 */
        .features {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 30px;
            margin: 60px 0;
        }
        
        .feature-card {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 15px;
            padding: 25px;
            width: 250px;
            text-align: center;
            transition: transform 0.3s;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        }
        
        .feature-card:hover {
            transform: translateY(-10px);
            background: rgba(255, 255, 255, 0.1);
        }
        
        .feature-icon {
            font-size: 40px;
            margin-bottom: 20px;
            color: #ff4655;
        }
        
        .feature-title {
            font-size: 20px;
            margin-bottom: 15px;
            color: #fff;
        }
        
        .feature-desc {
            color: #a9b7c6;
            font-size: 14px;
        }
        
        /* 武器展示 */
        .weapons {
            margin: 60px 0;
            text-align: center;
        }
        
        .weapon-grid {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 20px;
            margin-top: 40px;
        }
        
        .weapon-card {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 10px;
            width: 200px;
            padding: 20px;
            transform-style: preserve-3d;
            transform: rotateX(10deg);
            transition: transform 0.3s;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        }
        
        .weapon-card:hover {
            transform: rotateX(0) scale(1.05);
        }
        
        .weapon-image {
            font-size: 50px;
            color: #ff4655;
            margin-bottom: 15px;
        }
        
        /* 下载部分 */
        .download {
            text-align: center;
            padding: 60px 0;
            background: rgba(0, 0, 0, 0.2);
            border-radius: 20px;
            margin: 40px 0;
        }
        
        .download-buttons {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 30px;
        }
        
        .download-btn {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 25px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            color: white;
            text-decoration: none;
            transition: background 0.3s;
        }
        
        .download-btn:hover {
            background: rgba(255, 255, 255, 0.2);
        }
        
        footer {
            text-align: center;
            padding: 30px 0;
            border-top: 2px solid rgba(255, 255, 255, 0.1);
            margin-top: 40px;
            color: #a9b7c6;
        }
        
        /* 响应式设计 */
        @media (max-width: 768px) {
            header {
                flex-direction: column;
            }
            
            nav ul {
                margin-top: 15px;
            }
            
            h1 {
                font-size: 36px;
            }
            
            .subtitle {
                font-size: 16px;
            }
            
            .game-scene {
                height: 300px;
            }
            
            .download-buttons {
                flex-direction: column;
                align-items: center;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <header>
            <div class="logo">精英<span>行动</span></div>
            <nav>
                <ul>
                    <li><a href="#">首页</a></li>
                    <li><a href="#">模式</a></li>
                    <li><a href="#">武器</a></li>
                    <li><a href="#">排行榜</a></li>
                    <li><a href="#">活动</a></li>
                </ul>
            </nav>
        </header>
        
        <section class="hero">
            <h1>体验极致3D枪战竞技</h1>
            <p class="subtitle">加入全球数百万玩家的选择,体验最真实的3D枪战手游。超高清画质、流畅操作感、多种游戏模式等你来战!</p>
            <button class="cta-button">立即下载</button>
            
            <div class="game-scene">
                <div class="scene-container">
                    <div class="scene">
                        <div class="building"></div>
                        <div class="building"></div>
                        <div class="building"></div>
                        <div class="building"></div>
                        <div class="character"></div>
                    </div>
                </div>
            </div>
        </section>
        
        <section class="features">
            <div class="feature-card">
                <div class="feature-icon">
                    <i class="fas fa-crosshairs"></i>
                </div>
                <h3 class="feature-title">精准射击</h3>
                <p class="feature-desc">真实弹道物理引擎,还原后坐力与射击反馈,带来极致射击体验。</p>
            </div>
            
            <div class="feature-card">
                <div class="feature-icon">
                    <i class="fas fa-users"></i>
                </div>
                <h3 class="feature-title">团队竞技</h3>
                <p class="feature-desc">5v5经典竞技、大逃杀模式、团队死斗,多种模式任你选择。</p>
            </div>
            
            <div class="feature-card">
                <div class="feature-icon">
                    <i class="fas fa-sync-alt"></i>
                </div>
                <h3 class="feature-title">实时对战</h3>
                <p class="feature-desc">全球服务器支持,低延迟实时对战,与全球玩家一较高下。</p>
            </div>
            
            <div class="feature-card">
                <div class="feature-icon">
                    <i class="fas fa-cog"></i>
                </div>
                <h3 class="feature-title">武器定制</h3>
                <p class="feature-desc">上百种武器配件,个性化你的枪械,打造专属战斗风格。</p>
            </div>
        </section>
        
        <section class="weapons">
            <h2>精选武器库</h2>
            <div class="weapon-grid">
                <div class="weapon-card">
                    <div class="weapon-image">
                        <i class="fas fa-gun"></i>
                    </div>
                    <h3>AK-47</h3>
                    <p>高伤害,后坐力大,适合点射</p>
                </div>
                
                <div class="weapon-card">
                    <div class="weapon-image">
                        <i class="fas fa-gun"></i>
                    </div>
                    <h3>M4A1</h3>
                    <p>稳定性强,适合连续射击</p>
                </div>
                
                <div class="weapon-card">
                    <div class="weapon-image">
                        <i class="fas fa-gun"></i>
                    </div>
                    <h3>AWP</h3>
                    <p>一击必杀,狙击手的首选</p>
                </div>
                
                <div class="weapon-card">
                    <div class="weapon-image">
                        <i class="fas fa-gun"></i>
                    </div>
                    <h3>Desert Eagle</h3>
                    <p>高威力手枪,副武器最佳选择</p>
                </div>
            </div>
        </section>
        
        <section class="download">
            <h2>立即下载游戏</h2>
            <p>适用于iOS和Android设备</p>
            <div class="download-buttons">
                <a href="#" class="download-btn">
                    <i class="fab fa-apple"></i>
                    <span>App Store</span>
                </a>
                <a href="#" class="download-btn">
                    <i class="fab fa-google-play"></i>
                    <span>Google Play</span>
                </a>
                <a href="#" class="download-btn">
                    <i class="fab fa-android"></i>
                    <span>APK下载</span>
                </a>
            </div>
        </section>
        
        <footer>
            <p>© 2023 精英行动:3D枪战手游。版权所有。</p>
            <p>本网站仅为概念设计展示,并非实际游戏网站。</p>
        </footer>
    </div>

    <script>
        // 简单的交互效果
        document.addEventListener('DOMContentLoaded', function() {
            const ctaButton = document.querySelector('.cta-button');
            ctaButton.addEventListener('click', function() {
                alert('欢迎体验精英行动!下载即将开始...');
            });
            
            // 武器卡片的鼠标跟踪效果
            const weaponCards = document.querySelectorAll('.weapon-card');
            weaponCards.forEach(card => {
                card.addEventListener('mousemove', function(e) {
                    const x = e.offsetX;
                    const y = e.offsetY;
                    const rotateY = (-1/5 * x + 20);
                    const rotateX = (4/30 * y - 20);
                    
                    this.style.transform = `perspective(1000px) rotateY(${rotateY}deg) rotateX(${rotateX}deg)`;
                });
                
                card.addEventListener('mouseout', function() {
                    this.style.transform = 'perspective(1000px) rotateY(0deg) rotateX(0deg)';
                });
            });
        });
    </script>
</body>
</html>
        
编辑器加载中
预览
控制台