507 lines
15 KiB
HTML
507 lines
15 KiB
HTML
<!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', 'Microsoft YaHei', sans-serif;
|
|
}
|
|
|
|
:root {
|
|
--primary: #e63946;
|
|
--secondary: #f1faee;
|
|
--accent: #a8dadc;
|
|
--dark: #1d3557;
|
|
--darker: #0d1b2a;
|
|
}
|
|
|
|
body {
|
|
background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
|
|
color: var(--secondary);
|
|
min-height: 100vh;
|
|
overflow-x: hidden;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 2rem;
|
|
}
|
|
|
|
header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 1.5rem 0;
|
|
border-bottom: 1px solid rgba(241, 250, 238, 0.1);
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.logo {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.8rem;
|
|
font-size: 1.8rem;
|
|
font-weight: 700;
|
|
color: var(--secondary);
|
|
text-shadow: 0 0 10px rgba(230, 57, 70, 0.5);
|
|
}
|
|
|
|
.logo i {
|
|
color: var(--primary);
|
|
}
|
|
|
|
nav ul {
|
|
display: flex;
|
|
list-style: none;
|
|
gap: 2rem;
|
|
}
|
|
|
|
nav a {
|
|
color: var(--secondary);
|
|
text-decoration: none;
|
|
font-weight: 500;
|
|
transition: all 0.3s ease;
|
|
position: relative;
|
|
}
|
|
|
|
nav a:hover {
|
|
color: var(--primary);
|
|
}
|
|
|
|
nav a::after {
|
|
content: '';
|
|
position: absolute;
|
|
width: 0;
|
|
height: 2px;
|
|
bottom: -5px;
|
|
left: 0;
|
|
background-color: var(--primary);
|
|
transition: width 0.3s ease;
|
|
}
|
|
|
|
nav a:hover::after {
|
|
width: 100%;
|
|
}
|
|
|
|
.hero {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
text-align: center;
|
|
margin-bottom: 3rem;
|
|
}
|
|
|
|
.hero h1 {
|
|
font-size: 3.5rem;
|
|
margin-bottom: 1rem;
|
|
background: linear-gradient(to right, var(--primary), var(--accent));
|
|
-webkit-background-clip: text;
|
|
background-clip: text;
|
|
color: transparent;
|
|
text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.hero p {
|
|
font-size: 1.2rem;
|
|
max-width: 600px;
|
|
color: var(--accent);
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.video-container {
|
|
position: relative;
|
|
width: 100%;
|
|
max-width: 900px;
|
|
margin: 0 auto 3rem;
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.video-container:hover {
|
|
transform: translateY(-5px);
|
|
}
|
|
|
|
.video-container::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: linear-gradient(45deg, rgba(29, 53, 87, 0.2), rgba(168, 218, 220, 0.1));
|
|
z-index: 1;
|
|
pointer-events: none;
|
|
}
|
|
|
|
video {
|
|
width: 100%;
|
|
display: block;
|
|
border-radius: 12px;
|
|
}
|
|
|
|
.video-controls {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
padding: 1rem;
|
|
background: linear-gradient(to top, rgba(13, 27, 42, 0.9), transparent);
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 1rem;
|
|
opacity: 0;
|
|
transition: opacity 0.3s ease;
|
|
z-index: 2;
|
|
}
|
|
|
|
.video-container:hover .video-controls {
|
|
opacity: 1;
|
|
}
|
|
|
|
.control-btn {
|
|
background: rgba(241, 250, 238, 0.2);
|
|
border: none;
|
|
color: var(--secondary);
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
backdrop-filter: blur(5px);
|
|
}
|
|
|
|
.control-btn:hover {
|
|
background: var(--primary);
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
.features {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
|
gap: 2rem;
|
|
margin-bottom: 3rem;
|
|
}
|
|
|
|
.feature-card {
|
|
background: rgba(29, 53, 87, 0.4);
|
|
padding: 2rem;
|
|
border-radius: 10px;
|
|
text-align: center;
|
|
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
|
border: 1px solid rgba(168, 218, 220, 0.1);
|
|
backdrop-filter: blur(5px);
|
|
}
|
|
|
|
.feature-card:hover {
|
|
transform: translateY(-10px);
|
|
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
|
|
border-color: rgba(168, 218, 220, 0.3);
|
|
}
|
|
|
|
.feature-icon {
|
|
font-size: 2.5rem;
|
|
color: var(--primary);
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.feature-card h3 {
|
|
font-size: 1.5rem;
|
|
margin-bottom: 1rem;
|
|
color: var(--accent);
|
|
}
|
|
|
|
.stats {
|
|
display: flex;
|
|
justify-content: space-around;
|
|
flex-wrap: wrap;
|
|
gap: 2rem;
|
|
margin-bottom: 3rem;
|
|
padding: 2rem;
|
|
background: rgba(29, 53, 87, 0.3);
|
|
border-radius: 10px;
|
|
}
|
|
|
|
.stat-item {
|
|
text-align: center;
|
|
}
|
|
|
|
.stat-number {
|
|
font-size: 2.5rem;
|
|
font-weight: 700;
|
|
color: var(--primary);
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.stat-label {
|
|
color: var(--accent);
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.cta {
|
|
text-align: center;
|
|
padding: 3rem 2rem;
|
|
background: linear-gradient(135deg, rgba(29, 53, 87, 0.6), rgba(13, 27, 42, 0.8));
|
|
border-radius: 12px;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.cta h2 {
|
|
font-size: 2.2rem;
|
|
margin-bottom: 1rem;
|
|
color: var(--secondary);
|
|
}
|
|
|
|
.cta p {
|
|
max-width: 600px;
|
|
margin: 0 auto 2rem;
|
|
color: var(--accent);
|
|
}
|
|
|
|
.btn {
|
|
display: inline-block;
|
|
padding: 0.8rem 2rem;
|
|
background: var(--primary);
|
|
color: var(--secondary);
|
|
border: none;
|
|
border-radius: 50px;
|
|
font-weight: 600;
|
|
text-decoration: none;
|
|
transition: all 0.3s ease;
|
|
cursor: pointer;
|
|
box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
|
|
}
|
|
|
|
.btn:hover {
|
|
background: #c1121f;
|
|
transform: translateY(-3px);
|
|
box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
|
|
}
|
|
|
|
footer {
|
|
text-align: center;
|
|
padding: 2rem 0;
|
|
border-top: 1px solid rgba(241, 250, 238, 0.1);
|
|
color: var(--accent);
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.social-links {
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 1.5rem;
|
|
margin: 1.5rem 0;
|
|
}
|
|
|
|
.social-links a {
|
|
color: var(--accent);
|
|
font-size: 1.5rem;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.social-links a:hover {
|
|
color: var(--primary);
|
|
transform: translateY(-3px);
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
header {
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
}
|
|
|
|
nav ul {
|
|
gap: 1rem;
|
|
}
|
|
|
|
.hero h1 {
|
|
font-size: 2.5rem;
|
|
}
|
|
|
|
.features {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.stats {
|
|
flex-direction: column;
|
|
gap: 1.5rem;
|
|
}
|
|
}
|
|
|
|
/* 动画效果 */
|
|
@keyframes fadeIn {
|
|
from { opacity: 0; transform: translateY(20px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
|
|
.fade-in {
|
|
animation: fadeIn 1s ease forwards;
|
|
}
|
|
|
|
.delay-1 { animation-delay: 0.2s; }
|
|
.delay-2 { animation-delay: 0.4s; }
|
|
.delay-3 { animation-delay: 0.6s; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<header>
|
|
<div class="logo">
|
|
<i class="fas fa-fist-raised"></i>
|
|
<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 class="fade-in">我是战斗人</h1>
|
|
<p class="fade-in delay-1">探索极限,挑战自我,体验战斗艺术的精髓。我们的训练结合传统与现代技术,打造最强大的战斗精英。</p>
|
|
</section>
|
|
|
|
<div class="video-container fade-in delay-2">
|
|
<video id="mainVideo" src="https://robotstorm.tech/_nuxt/videos/videoDemo.1589869.MP4" controls></video>
|
|
<div class="video-controls">
|
|
<button class="control-btn" id="playBtn"><i class="fas fa-play"></i></button>
|
|
<button class="control-btn" id="pauseBtn"><i class="fas fa-pause"></i></button>
|
|
<button class="control-btn" id="volumeUp"><i class="fas fa-volume-up"></i></button>
|
|
<button class="control-btn" id="volumeDown"><i class="fas fa-volume-down"></i></button>
|
|
<button class="control-btn" id="fullscreenBtn"><i class="fas fa-expand"></i></button>
|
|
</div>
|
|
</div>
|
|
|
|
<section class="features">
|
|
<div class="feature-card fade-in delay-1">
|
|
<div class="feature-icon">
|
|
<i class="fas fa-shield-alt"></i>
|
|
</div>
|
|
<h3>防御技巧</h3>
|
|
<p>学习最先进的防御技术,保护自己免受攻击。我们的课程涵盖各种场景下的防御策略。</p>
|
|
</div>
|
|
<div class="feature-card fade-in delay-2">
|
|
<div class="feature-icon">
|
|
<i class="fas fa-bolt"></i>
|
|
</div>
|
|
<h3>快速反应</h3>
|
|
<p>训练你的反应速度和决策能力,在关键时刻做出正确判断,掌握战斗主动权。</p>
|
|
</div>
|
|
<div class="feature-card fade-in delay-3">
|
|
<div class="feature-icon">
|
|
<i class="fas fa-users"></i>
|
|
</div>
|
|
<h3>团队协作</h3>
|
|
<p>学习如何在团队环境中协调行动,发挥集体力量,实现更高效的战斗配合。</p>
|
|
</div>
|
|
</section>
|
|
|
|
<section class="stats">
|
|
<div class="stat-item">
|
|
<div class="stat-number">500+</div>
|
|
<div class="stat-label">训练课程</div>
|
|
</div>
|
|
<div class="stat-item">
|
|
<div class="stat-number">10K+</div>
|
|
<div class="stat-label">满意学员</div>
|
|
</div>
|
|
<div class="stat-item">
|
|
<div class="stat-number">15</div>
|
|
<div class="stat-label">专业教练</div>
|
|
</div>
|
|
<div class="stat-item">
|
|
<div class="stat-number">98%</div>
|
|
<div class="stat-label">成功率</div>
|
|
</div>
|
|
</section>
|
|
|
|
<section class="cta fade-in delay-2">
|
|
<h2>准备好成为战斗精英了吗?</h2>
|
|
<p>加入我们,开启你的战斗之旅。无论你是初学者还是经验丰富的战士,我们都有适合你的课程。</p>
|
|
<a href="#" class="btn">立即加入</a>
|
|
</section>
|
|
|
|
<footer>
|
|
<div class="social-links">
|
|
<a href="#"><i class="fab fa-weibo"></i></a>
|
|
<a href="#"><i class="fab fa-weixin"></i></a>
|
|
<a href="#"><i class="fab fa-qq"></i></a>
|
|
<a href="#"><i class="fab fa-tiktok"></i></a>
|
|
</div>
|
|
<p>© 2023 战斗精英 | 专业战斗训练平台</p>
|
|
</footer>
|
|
</div>
|
|
|
|
<script>
|
|
// 视频控制功能
|
|
const video = document.getElementById('mainVideo');
|
|
const playBtn = document.getElementById('playBtn');
|
|
const pauseBtn = document.getElementById('pauseBtn');
|
|
const volumeUp = document.getElementById('volumeUp');
|
|
const volumeDown = document.getElementById('volumeDown');
|
|
const fullscreenBtn = document.getElementById('fullscreenBtn');
|
|
|
|
playBtn.addEventListener('click', () => {
|
|
video.play();
|
|
});
|
|
|
|
pauseBtn.addEventListener('click', () => {
|
|
video.pause();
|
|
});
|
|
|
|
volumeUp.addEventListener('click', () => {
|
|
if (video.volume < 1) video.volume += 0.1;
|
|
});
|
|
|
|
volumeDown.addEventListener('click', () => {
|
|
if (video.volume > 0) video.volume -= 0.1;
|
|
});
|
|
|
|
fullscreenBtn.addEventListener('click', () => {
|
|
if (video.requestFullscreen) {
|
|
video.requestFullscreen();
|
|
} else if (video.webkitRequestFullscreen) {
|
|
video.webkitRequestFullscreen();
|
|
} else if (video.msRequestFullscreen) {
|
|
video.msRequestFullscreen();
|
|
}
|
|
});
|
|
|
|
// 添加滚动动画效果
|
|
const observerOptions = {
|
|
threshold: 0.1,
|
|
rootMargin: '0px 0px -50px 0px'
|
|
};
|
|
|
|
const observer = new IntersectionObserver((entries) => {
|
|
entries.forEach(entry => {
|
|
if (entry.isIntersecting) {
|
|
entry.target.classList.add('fade-in');
|
|
}
|
|
});
|
|
}, observerOptions);
|
|
|
|
// 观察所有具有动画潜力的元素
|
|
document.querySelectorAll('.feature-card, .stat-item, .cta').forEach(el => {
|
|
observer.observe(el);
|
|
});
|
|
</script>
|
|
</body>
|
|
</html> |