<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>孤岛求生 - 游戏页面</title>
<style>
/* 基础样式重置,避免黑边和默认间距 */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
min-height: 100vh;
background: url('https://picsum.photos/seed/survival/1920/1080') no-repeat center center;
background-size: cover;
background-color: #1a1a2e; /* 备用深色背景,贴合枪战风格 */
font-family: 'Noto Serif SC', serif; /* 楷书字体 */
color: #fff;
padding: 20px;
}
/* 游戏封面标题区域 */
.game-header {
position: relative;
margin-bottom: 40px;
}
.game-title {
position: absolute;
top: 0;
left: 20px;
font-size: 48px;
color: #4a90e2; /* 蓝色字体 */
font-weight: 600;
text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}
.start-btn {
position: absolute;
top: 20px;
right: 100px;
padding: 12px 36px;
font-size: 24px;
color: #fff;
background: linear-gradient(135deg, #4a90e2, #2962ff);
border: none;
border-radius: 8px;
font-family: 'Noto Serif SC', serif;
cursor: pointer;
box-shadow: 0 4px 12px rgba(74, 144, 226, 0.5);
transition: all 0.3s ease;
}
.start-btn:hover {
transform: translateY(-3px);
box-shadow: 0 6px 16px rgba(74, 144, 226, 0.7);
}
/* 开发者信息区域 */
.developer-info {
max-width: 800px;
margin: 120px auto 40px;
padding: 24px;
background: rgba(0,0,0,0.6);
border-radius: 12px;
border-left: 4px solid #4a90e2;
}
.developer-info h3 {
font-size: 28px;
color: #4a90e2;
margin-bottom: 16px;
border-bottom: 1px solid #4a90e2;
padding-bottom: 8px;
}
.developer-info p {
font-size: 20px;
line-height: 1.8;
margin-bottom: 12px;
}
.developer-info .contact {
color: #f0f0f0;
}
/* 功能提示与搜索框区域 */
.feature-section {
max-width: 800px;
margin: 0 auto;
padding: 24px;
background: rgba(0,0,0,0.6);
border-radius: 12px;
}
.feature-section p {
font-size: 20px;
line-height: 1.8;
margin-bottom: 20px;
color: #f0f0f0;
}
.search-box {
display: flex;
gap: 12px;
}
.search-box input {
flex: 1;
padding: 12px 16px;
font-size: 18px;
border: 2px solid #4a90e2;
border-radius: 8px;
background: rgba(255,255,255,0.1);
color: #fff;
font-family: 'Noto Serif SC', serif;
}
.search-box button {
padding: 12px 24px;
font-size: 18px;
color: #fff;
background: #4a90e2;
border: none;
border-radius: 8px;
font-family: 'Noto Serif SC', serif;
cursor: pointer;
transition: background 0.3s ease;
}
.search-box button:hover {
background: #2962ff;
}
/* 底部功能按钮 */
.bottom-btns {
display: flex;
justify-content: center;
gap: 30px;
margin-top: 40px;
}
.bottom-btn {
padding: 10px 28px;
font-size: 20px;
color: #fff;
background: rgba(74, 144, 226, 0.8);
border: none;
border-radius: 8px;
font-family: 'Noto Serif SC', serif;
cursor: pointer;
transition: all 0.3s ease;
}
.bottom-btn:hover {
background: #4a90e2;
transform: translateY(-2px);
}
</style>
<!-- 引入楷书字体 -->
<link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700&display=swap" rel="stylesheet">
</head>
<body>
<!-- 游戏封面标题与开始按钮 -->
<div class="game-header">
<h1 class="game-title">孤岛求生</h1>
<button class="start-btn">开始游戏</button>
</div>
<!-- 开发者信息区域 -->
<div class="developer-info">
<h3>开发者信息</h3>
<p>开发应用:Bi.cool</p>
<p>开发者人员:曙光深海独行</p>
<p class="contact">联系方式:QQ:3853956395</p>
<p>欢迎您使用本游戏,本游戏正在开发当中。</p>
</div>
<!-- 功能提示与搜索框 -->
<div class="feature-section">
<p>为了提升大家体验,在下方搜索框中搜索315729,点击开启科技,即可开启无限生命值、无需换弹、无限释放技能。</p>
<div class="search-box">
<input type="text" placeholder="请输入搜索内容" id="codeInput">
<button id="activateBtn">开启科技</button>
</div>
</div>
<!-- 底部功能按钮(玩法、开发者信息按钮) -->
<div class="bottom-btns">
<button class="bottom-btn">开发者信息</button>
<button class="bottom-btn">玩法介绍</button>
</div>
<script>
// 简单交互:点击开启科技按钮提示
const activateBtn = document.getElementById('activateBtn');
const codeInput = document.getElementById('codeInput');
activateBtn.addEventListener('click', () => {
if (codeInput.value.trim() === '315729') {
alert('科技功能已开启!已获得无限生命值、无需换弹、无限释放技能');
} else {
alert('请输入正确的代码“315729”以开启科技功能');
}
});
</script>
</body>
</html>
<img src="./assets/1760843154497.png" />
index.html
style.css
index.js
assets
index.html