完成任务16:编写 04_长期发展/环境保护.md

This commit is contained in:
root
2026-05-23 16:51:48 +00:00
parent 33ea0114ea
commit c8cd92ba7c
734 changed files with 188060 additions and 604 deletions

449
out_app_html/bag/index.html Normal file
View File

@@ -0,0 +1,449 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>末日求生 - 背包</title>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
background: linear-gradient(135deg, #2d1b0e 0%, #4a2c18 50%, #6b390f 100%);
min-height: 100vh;
color: #fff;
}
/* 顶部导航栏 */
.top-nav {
position: fixed;
top: 0;
left: 0;
right: 0;
height: 60px;
background: rgba(255, 86, 0, 0.3);
backdrop-filter: blur(10px);
border-bottom: 2px solid #ff8c3a;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 20px;
z-index: 1000;
}
.nav-logo {
font-size: 20px;
font-weight: bold;
color: #ffcc99;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}
/* 内容区域 */
.content-container {
padding-top: 70px;
padding-bottom: 30px;
}
/* 物资统计卡片 */
.stats-card {
background: rgba(255, 86, 0, 0.1);
border: 3px solid #ff8c3a;
border-radius: 15px;
margin: 15px;
padding: 20px;
box-shadow:
0 4px 20px rgba(255, 94, 0, 0.4),
inset 0 0 20px rgba(0, 0, 0, 0.3);
}
.stats-title {
font-size: 18px;
font-weight: bold;
color: #ffcc99;
margin-bottom: 15px;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}
.stats-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 15px;
}
.stat-item {
background: rgba(0, 0, 0, 0.3);
border: 2px solid rgba(255, 107, 0, 0.3);
border-radius: 10px;
padding: 12px;
}
.stat-label {
font-size: 12px;
color: #ff8c3a;
margin-bottom: 5px;
}
.stat-value {
font-size: 20px;
font-weight: bold;
color: #ffcc99;
}
/* 物资表格 */
.inventory-card {
background: rgba(255, 86, 0, 0.1);
border: 3px solid #ff8c3a;
border-radius: 15px;
margin: 15px;
overflow: hidden;
box-shadow:
0 4px 20px rgba(255, 94, 0, 0.4),
inset 0 0 20px rgba(0, 0, 0, 0.3);
}
.inventory-header {
display: grid;
grid-template-columns: 3fr 1fr 1fr 1fr;
padding: 15px 20px;
background: rgba(255, 107, 0, 0.2);
border-bottom: 2px solid rgba(255, 107, 0, 0.3);
}
.inventory-header-item {
font-weight: bold;
color: #ffcc99;
text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}
.inventory-item {
display: grid;
grid-template-columns: 3fr 1fr 1fr 1fr;
padding: 12px 20px;
border-bottom: 1px solid rgba(255, 107, 0, 0.2);
transition: all 0.3s ease;
}
.inventory-item:hover {
background: rgba(255, 107, 0, 0.1);
}
.inventory-item.expiring {
background: rgba(255, 50, 0, 0.2);
border-left: 4px solid #ff3a00;
}
.inventory-item.expired {
background: rgba(255, 0, 0, 0.3);
border-left: 4px solid #ff0000;
}
.item-name {
color: #ffcc99;
display: flex;
align-items: center;
gap: 10px;
}
.item-icon {
width: 30px;
height: 30px;
background: rgba(255, 107, 0, 0.5);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 12px;
}
.item-quantity,
.item-expire,
.item-status {
color: #ffcc99;
display: flex;
align-items: center;
justify-content: center;
}
.status-normal {
color: #5aff5a;
}
.status-warning {
color: #ffc107;
}
.status-danger {
color: #ff4d4d;
}
/* 过期提醒 */
.alert-card {
background: rgba(255, 50, 0, 0.2);
border: 3px solid #ff3a00;
border-radius: 15px;
margin: 15px;
padding: 20px;
animation: pulse 2s infinite;
}
@keyframes pulse {
0% { opacity: 0.8; }
50% { opacity: 1; }
100% { opacity: 0.8; }
}
.alert-title {
font-size: 18px;
font-weight: bold;
color: #ffcc99;
margin-bottom: 10px;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}
.alert-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px;
background: rgba(0, 0, 0, 0.3);
border-radius: 8px;
margin-bottom: 8px;
}
/* 底部标签页 */
.bottom-tabs {
position: fixed;
bottom: 0;
left: 0;
right: 0;
height: 70px;
background: rgba(255, 86, 0, 0.3);
backdrop-filter: blur(10px);
border-top: 2px solid #ff8c3a;
display: flex;
justify-content: space-around;
align-items: center;
z-index: 1000;
}
.tab-item {
padding: 15px 20px;
background: rgba(255, 86, 0, 0.3);
border: 2px solid #ff8c3a;
border-radius: 25px;
color: #fff;
font-size: 14px;
cursor: pointer;
transition: all 0.3s ease;
}
.tab-item.active {
background: linear-gradient(180deg, #ff8c3a 0%, #ff5e00 100%);
box-shadow:
0 4px 15px rgba(255, 94, 0, 0.6),
inset 0 2px 5px rgba(255, 255, 255, 0.3);
}
.tab-item:hover {
transform: translateY(-2px);
box-shadow:
0 6px 20px rgba(255, 94, 0, 0.8),
inset 0 2px 5px rgba(255, 255, 255, 0.4);
}
</style>
</head>
<body>
<!-- 顶部导航栏 -->
<nav class="top-nav">
<div class="nav-logo">🎒末日求生背包</div>
</nav>
<!-- 内容区域 -->
<div class="content-container">
<!-- 物资统计 -->
<div class="stats-card">
<div class="stats-title">物资统计</div>
<div class="stats-grid">
<div class="stat-item">
<div class="stat-label">总物资种类</div>
<div class="stat-value">18</div>
</div>
<div class="stat-item">
<div class="stat-label">总库存数量</div>
<div class="stat-value">145</div>
</div>
<div class="stat-item">
<div class="stat-label">即将过期</div>
<div class="stat-value">5</div>
</div>
<div class="stat-item">
<div class="stat-label">已过期</div>
<div class="stat-value">2</div>
</div>
</div>
</div>
<!-- 过期提醒 -->
<div class="alert-card">
<div class="alert-title">⏰ 过期提醒</div>
<div class="alert-item">
<span>急救医疗包</span>
<span class="status-danger">已过期3天</span>
</div>
<div class="alert-item">
<span>罐头食品</span>
<span class="status-warning">还剩2天过期</span>
</div>
<div class="alert-item">
<span>瓶装水</span>
<span class="status-warning">还剩3天过期</span>
</div>
</div>
<!-- 物资清单 -->
<div class="inventory-card">
<div class="inventory-header">
<div class="inventory-header-item">物资名称</div>
<div class="inventory-header-item">数量</div>
<div class="inventory-header-item">过期时间</div>
<div class="inventory-header-item">状态</div>
</div>
<div class="inventory-item">
<div class="item-name">
<div class="item-icon">🍞</div>
压缩饼干
</div>
<div class="item-quantity">12</div>
<div class="item-expire">2026-04-15</div>
<div class="item-status status-normal">安全</div>
</div>
<div class="inventory-item expiring">
<div class="item-name">
<div class="item-icon">🥫</div>
罐头食品
</div>
<div class="item-quantity">8</div>
<div class="item-expire">2026-03-27</div>
<div class="item-status status-warning">即将过期</div>
</div>
<div class="inventory-item expired">
<div class="item-name">
<div class="item-icon">🏥</div>
急救医疗包
</div>
<div class="item-quantity">1</div>
<div class="item-expire">2026-03-22</div>
<div class="item-status status-danger">已过期</div>
</div>
<div class="inventory-item">
<div class="item-name">
<div class="item-icon">💧</div>
瓶装水
</div>
<div class="item-quantity">24</div>
<div class="item-expire">2026-03-28</div>
<div class="item-status status-warning">即将过期</div>
</div>
<div class="inventory-item">
<div class="item-name">
<div class="item-icon">🔋</div>
电池
</div>
<div class="item-quantity">36</div>
<div class="item-expire">2026-06-10</div>
<div class="item-status status-normal">安全</div>
</div>
<div class="inventory-item">
<div class="item-name">
<div class="item-icon">🕯️</div>
蜡烛
</div>
<div class="item-quantity">18</div>
<div class="item-expire">2026-08-20</div>
<div class="item-status status-normal">安全</div>
</div>
<div class="inventory-item">
<div class="item-name">
<div class="item-icon">🧤</div>
医用手套
</div>
<div class="item-quantity">50</div>
<div class="item-expire">2026-07-05</div>
<div class="item-status status-normal">安全</div>
</div>
<div class="inventory-item">
<div class="item-name">
<div class="item-icon">📻</div>
收音机
</div>
<div class="item-quantity">2</div>
<div class="item-expire">2026-12-01</div>
<div class="item-status status-normal">安全</div>
</div>
</div>
</div>
<!-- 底部标签页 -->
<div class="bottom-tabs">
<div class="tab-item">首页</div>
<div class="tab-item active">背包</div>
<div class="tab-item">我的</div>
</div>
<script>
$(document).ready(function() {
// 标签页切换效果
$('.tab-item').on('click', function() {
$('.tab-item').removeClass('active');
$(this).addClass('active');
const tabName = $(this).text();
if (tabName === '首页') {
window.location.href = '../home/index.html';
} else if (tabName === '背包') {
// 已经在当前页面
} else if (tabName === '我的') {
window.location.href = '../profile/index.html';
}
});
// 模拟倒计时更新
function updateExpiryCountdown() {
const now = new Date();
const items = $('.inventory-item');
items.each(function() {
const expireDate = new Date($(this).find('.item-expire').text());
const diffDays = Math.ceil((expireDate - now) / (1000 * 60 * 60 * 24));
if (diffDays < 0) {
$(this).addClass('expired').removeClass('expiring');
$(this).find('.item-status').text('已过期' + Math.abs(diffDays) + '天');
} else if (diffDays <= 3) {
$(this).addClass('expiring').removeClass('expired');
$(this).find('.item-status').text('还剩' + diffDays + '天');
}
});
}
updateExpiryCountdown();
// 每小时更新一次倒计时
setInterval(updateExpiryCountdown, 3600000);
});
</script>
</body>
</html>

View File

@@ -0,0 +1,387 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>末日求生 - 首页</title>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
background: linear-gradient(135deg, #2d1b0e 0%, #4a2c18 50%, #6b390f 100%);
min-height: 100vh;
color: #fff;
}
/* 顶部导航栏 */
.top-nav {
position: fixed;
top: 0;
left: 0;
right: 0;
height: 60px;
background: rgba(255, 86, 0, 0.3);
backdrop-filter: blur(10px);
border-bottom: 2px solid #ff8c3a;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 20px;
z-index: 1000;
}
.nav-logo {
font-size: 20px;
font-weight: bold;
color: #ffcc99;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}
.nav-tabs {
display: flex;
gap: 15px;
}
.tab-item {
padding: 8px 16px;
background: rgba(255, 107, 0, 0.3);
border: 2px solid #ff8c3a;
border-radius: 20px;
color: #fff;
font-size: 14px;
cursor: pointer;
transition: all 0.3s ease;
}
.tab-item.active {
background: linear-gradient(180deg, #ff8c3a 0%, #ff5e00 100%);
box-shadow:
0 4px 15px rgba(255, 94, 0, 0.6),
inset 0 2px 5px rgba(255, 255, 255, 0.3);
}
.tab-item:hover {
transform: translateY(-2px);
box-shadow:
0 6px 20px rgba(255, 94, 0, 0.8),
inset 0 2px 5px rgba(255, 255, 255, 0.4);
}
/* 内容区域 */
.content-container {
padding-top: 70px;
padding-bottom: 30px;
}
/* 帖子/视频卡片 */
.card-grid {
display: grid;
gap: 20px;
padding: 15px;
}
.skill-card {
background: rgba(255, 86, 0, 0.1);
border: 3px solid #ff8c3a;
border-radius: 15px;
overflow: hidden;
box-shadow:
0 4px 20px rgba(255, 94, 0, 0.4),
inset 0 0 20px rgba(0, 0, 0, 0.3);
}
.card-image {
width: 100%;
height: 200px;
background: linear-gradient(180deg, #4a2c18 0%, #6b390f 100%);
display: flex;
align-items: center;
justify-content: center;
position: relative;
overflow: hidden;
}
.card-image::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: repeating-linear-gradient(
45deg,
rgba(255, 107, 0, 0.1),
rgba(255, 107, 0, 0.1) 10px,
transparent 10px,
transparent 20px
);
}
.card-image::after {
content: '';
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: conic-gradient(
transparent,
rgba(255, 107, 0, 0.3) 10%,
transparent 20%
);
animation: rotate 4s linear infinite;
}
@keyframes rotate {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
.card-content {
padding: 20px;
}
.card-title {
font-size: 18px;
font-weight: bold;
color: #ffcc99;
margin-bottom: 10px;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}
.card-description {
font-size: 14px;
color: #ffcc99;
line-height: 1.6;
margin-bottom: 15px;
}
.card-meta {
display: flex;
justify-content: space-between;
align-items: center;
padding-top: 10px;
border-top: 2px solid rgba(255, 107, 0, 0.3);
}
.card-author {
font-size: 12px;
color: #ff8c3a;
}
.card-view-count {
font-size: 12px;
color: #ffcc99;
}
/* 底部标签页 */
.bottom-tabs {
position: fixed;
bottom: 0;
left: 0;
right: 0;
height: 70px;
background: rgba(255, 86, 0, 0.3);
backdrop-filter: blur(10px);
border-top: 2px solid #ff8c3a;
display: flex;
justify-content: space-around;
align-items: center;
z-index: 1000;
}
.tab-item {
padding: 15px 20px;
background: rgba(255, 86, 0, 0.3);
border: 2px solid #ff8c3a;
border-radius: 25px;
color: #fff;
font-size: 14px;
cursor: pointer;
transition: all 0.3s ease;
}
.tab-item.active {
background: linear-gradient(180deg, #ff8c3a 0%, #ff5e00 100%);
box-shadow:
0 4px 15px rgba(255, 94, 0, 0.6),
inset 0 2px 5px rgba(255, 255, 255, 0.3);
}
.tab-item:hover {
transform: translateY(-2px);
box-shadow:
0 6px 20px rgba(255, 94, 0, 0.8),
inset 0 2px 5px rgba(255, 255, 255, 0.4);
}
/* 加载动画 */
.loading {
display: inline-block;
width: 30px;
height: 30px;
border: 3px solid rgba(255, 107, 0, 0.3);
border-top-color: #ff8c3a;
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
/* 响应式适配 */
@media (max-width: 480px) {
.card-grid {
padding: 10px;
}
.card-image {
height: 150px;
}
}
</style>
</head>
<body>
<!-- 顶部导航栏 -->
<nav class="top-nav">
<div class="nav-logo">🔥末日求生</div>
<div class="nav-tabs">
<div class="tab-item active">首页</div>
<div class="tab-item">背包</div>
<div class="tab-item">我的</div>
</div>
</nav>
<!-- 内容区域 -->
<div class="content-container" id="mainContent">
<div class="card-grid" id="skillCards">
<!-- 技能卡片将通过 JavaScript 动态生成 -->
</div>
</div>
<!-- 底部标签页 -->
<div class="bottom-tabs">
<div class="tab-item active">首页</div>
<div class="tab-item">背包</div>
<div class="tab-item">我的</div>
</div>
<script>
$(document).ready(function() {
// 模拟技能数据
const skills = [
{
title: "火种采集与保存",
description: "学习如何在末日环境中安全地收集火种,并掌握多种保存方法。从简单的木炭到复杂的油灯技术,让你的生存之火永不熄灭。",
views: "12.5 万次观看",
author: "幸存者老张"
},
{
title: "净水系统搭建",
description: "在缺水环境下,掌握制作简易净水器、收集雨水和净化水源的技巧。让你的每一口水都干净可饮。",
views: "8.3 万次观看",
author: "净水专家"
},
{
title: "食物储存与加工",
description: "学习如何保存食物,制作简易罐头、腌制食品,以及利用野外资源获取营养。让你的胃在末日中也能得到满足。",
views: "15.2 万次观看",
author: "美食大师"
},
{
title: "庇护所建造技巧",
description: "从临时掩体到坚固住所,学习利用周围材料搭建安全、舒适的生存空间。让你的末日生活更有尊严。",
views: "20.1 万次观看",
author: "建筑大师"
},
{
title: "急救与创伤处理",
description: "掌握基本的急救知识,学会处理伤口、骨折和常见疾病。在医疗资源匮乏的末日,你的技能就是救命稻草。",
views: "18.7 万次观看",
author: "急救专家"
},
{
title: "武器制作与使用",
description: "学习利用周围材料制作简易武器,掌握狩猎技巧。在必要时保护自己和他人的生存能力。",
views: "25.3 万次观看",
author: "猎户之星"
}
];
// 生成技能卡片
function createSkillCards() {
const container = $('#skillCards');
skills.forEach((skill, index) => {
const card = $(`
<div class="card">
<div class="card-image"></div>
<div class="card-content">
<h3 class="card-title">${index + 1}. ${skill.title}</h3>
<p class="card-description">${skill.description}</p>
<div class="card-meta">
<span class="card-author">${skill.author}</span>
<span class="card-view-count">${skill.views}</span>
</div>
</div>
</div>
`);
container.append(card);
});
}
// 创建技能卡片
createSkillCards();
// 标签页切换效果
$('.tab-item').on('click', function() {
$('.tab-item').removeClass('active');
$(this).addClass('active');
const tabName = $(this).text();
if (tabName === '首页') {
$('#mainContent').show();
} else if (tabName === '背包') {
window.location.href = '../bag/index.html';
} else if (tabName === '我的') {
window.location.href = '../profile/index.html';
}
});
// 模拟加载更多内容
function loadMoreSkills() {
const container = $('#skillCards');
setTimeout(() => {
const newCard = $(`
<div class="card">
<div class="card-image"></div>
<div class="card-content">
<h3 class="card-title">6. 新技能加载中...</h3>
<p class="card-description">更多生存技巧正在更新中,敬请期待。</p>
<div class="card-meta">
<span class="card-author">系统</span>
<span class="card-view-count">加载中</span>
</div>
</div>
</div>
`);
container.append(newCard);
}, 2000);
}
// 加载更多技能
loadMoreSkills();
});
</script>
</body>
</html>

View File

@@ -0,0 +1,323 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>末日求生 - 登录</title>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
background: linear-gradient(135deg, #2d1b0e 0%, #4a2c18 50%, #6b390f 100%);
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
position: relative;
overflow: hidden;
}
/* 背景效果 */
.background-debris {
position: absolute;
width: 100%;
height: 100%;
pointer-events: none;
}
.debris-particle {
position: absolute;
background: rgba(255, 107, 0, 0.3);
border-radius: 50%;
animation: fall linear infinite;
}
@keyframes fall {
0% { transform: translateY(-100vh) rotate(0deg); opacity: 0; }
10% { opacity: 0.8; }
90% { opacity: 0.5; }
100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}
/* 登录容器 */
.login-container {
position: relative;
z-index: 10;
width: 90%;
max-width: 400px;
background: rgba(255, 86, 0, 0.1);
backdrop-filter: blur(10px);
border: 3px solid #ff8c3a;
border-radius: 15px;
padding: 40px 30px;
box-shadow:
0 0 20px rgba(255, 107, 0, 0.5),
inset 0 0 30px rgba(0, 0, 0, 0.3);
}
/* 破损边框效果 */
.login-container::before {
content: '';
position: absolute;
top: -10px;
right: -10px;
width: 50px;
height: 50px;
border-top: 3px solid #ff8c3a;
border-right: 3px solid #ff8c3a;
}
.login-container::after {
content: '';
position: absolute;
bottom: -10px;
left: -10px;
width: 50px;
height: 50px;
border-bottom: 3px solid #ff8c3a;
border-left: 3px solid #ff8c3a;
}
/* 标题 */
.login-title {
text-align: center;
color: #fff;
font-size: 28px;
font-weight: bold;
margin-bottom: 10px;
text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
}
.login-title::before {
content: '🔥';
display: inline-block;
margin-right: 10px;
}
/* 输入框 */
.input-group {
position: relative;
margin-bottom: 25px;
}
.input-label {
display: block;
color: #ffcc99;
font-size: 14px;
margin-bottom: 8px;
text-align: left;
padding-left: 10px;
}
.input-field {
width: 100%;
padding: 15px 15px 15px 45px;
background: rgba(0, 0, 0, 0.6);
border: 2px solid #ff8c3a;
border-radius: 8px;
color: #fff;
font-size: 16px;
transition: all 0.3s ease;
}
.input-field:focus {
outline: none;
box-shadow:
0 0 15px rgba(255, 107, 0, 0.6),
inset 0 0 10px rgba(255, 86, 0, 0.3);
}
/* 输入框图标 */
.input-icon {
position: absolute;
left: 15px;
top: 50%;
transform: translateY(-50%);
color: #ff8c3a;
font-size: 20px;
}
/* 登录按钮 */
.login-btn {
width: 100%;
padding: 16px;
background: linear-gradient(180deg, #ff8c3a 0%, #ff5e00 100%);
border: none;
border-radius: 10px;
color: #fff;
font-size: 18px;
font-weight: bold;
cursor: pointer;
box-shadow:
0 5px 20px rgba(255, 94, 0, 0.6),
inset 0 2px 5px rgba(255, 255, 255, 0.3);
transition: all 0.3s ease;
}
.login-btn:hover {
transform: translateY(-2px);
box-shadow:
0 8px 30px rgba(255, 94, 0, 0.8),
inset 0 2px 5px rgba(255, 255, 255, 0.4);
}
.login-btn:active {
transform: translateY(1px);
}
/* 底部链接 */
.footer-links {
display: flex;
justify-content: space-between;
margin-top: 25px;
}
.footer-link {
color: #ffcc99;
text-decoration: none;
font-size: 14px;
transition: all 0.3s ease;
}
.footer-link:hover {
color: #fff;
text-shadow: 0 0 10px rgba(255, 204, 153, 0.8);
}
/* 装饰元素 */
.decoration-line {
height: 2px;
background: linear-gradient(90deg, transparent 0%, #ff8c3a 50%, transparent 100%);
margin: 20px 0;
}
/* 闪烁效果 */
.glow-effect {
animation: glow 2s ease-in-out infinite alternate;
}
@keyframes glow {
from { box-shadow: 0 0 10px rgba(255, 107, 0, 0.3); }
to { box-shadow: 0 0 30px rgba(255, 107, 0, 0.8); }
}
/* 响应式适配 */
@media (max-width: 480px) {
.login-container {
width: 95%;
padding: 30px 20px;
}
.login-title {
font-size: 24px;
}
}
</style>
</head>
<body>
<div class="background-debris" id="debris-container"></div>
<div class="login-container">
<h1 class="login-title glow-effect">末日求生</h1>
<form id="loginForm">
<div class="input-group">
<label class="input-label">用户名</label>
<input type="text" class="input-field" placeholder="请输入您的幸存者编号" required>
<span class="input-icon">📝</span>
</div>
<div class="input-group">
<label class="input-label">密码</label>
<input type="password" class="input-field" placeholder="请输入您的生存密码" required>
<span class="input-icon">🔒</span>
</div>
<button type="submit" class="login-btn glow-effect">立即求生</button>
</form>
<div class="decoration-line"></div>
<div class="footer-links">
<a href="#" class="footer-link">忘记密码?</a>
<a href="#" class="footer-link">注册新幸存者</a>
</div>
</div>
<script>
$(document).ready(function() {
// 创建背景碎片效果
function createDebris() {
const debrisContainer = $('#debris-container');
setInterval(() => {
const particle = $('<div>')
.addClass('debris-particle')
.css({
left: Math.random() * 100 + '%',
width: (Math.random() * 20 + 5) + 'px',
height: (Math.random() * 20 + 5) + 'px',
animationDuration: (Math.random() * 3 + 2) + 's'
});
debrisContainer.append(particle);
setTimeout(() => {
particle.remove();
}, 5000);
}, 100);
}
createDebris();
// 登录表单提交处理
$('#loginForm').on('submit', function(e) {
e.preventDefault();
const username = $('.input-field:first').val().trim();
const password = $('.input-field:last').val().trim();
if (!username || !password) {
alert('请填写完整信息,幸存者!');
return;
}
// 模拟登录验证
$('#loginForm').find('.login-btn')
.html('<span class="loading">求生中...</span>')
.prop('disabled', true);
setTimeout(() => {
alert(`欢迎,${username}\n已接入末日生存系统`);
// 跳转到首页
window.location.href = '../home/index.html';
}, 1500);
});
// 输入框聚焦效果
$('.input-field').on('focus', function() {
$(this).siblings('.input-icon')
.css({
'transform': 'translateY(-50%) translateY(2px)',
'opacity': '1'
});
});
$('.input-field').on('blur', function() {
$(this).siblings('.input-icon')
.css({
'transform': 'translateY(-50%) translateY(-2px)',
'opacity': '0.7'
});
});
});
</script>
</body>
</html>

View File

@@ -0,0 +1,541 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>末日求生 - 个人信息</title>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
background: linear-gradient(135deg, #2d1b0e 0%, #4a2c18 50%, #6b390f 100%);
min-height: 100vh;
color: #fff;
}
/* 顶部导航栏 */
.top-nav {
position: fixed;
top: 0;
left: 0;
right: 0;
height: 60px;
background: rgba(255, 86, 0, 0.3);
backdrop-filter: blur(10px);
border-bottom: 2px solid #ff8c3a;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 20px;
z-index: 1000;
}
.nav-logo {
font-size: 20px;
font-weight: bold;
color: #ffcc99;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}
/* 内容区域 */
.content-container {
padding-top: 70px;
padding-bottom: 30px;
}
/* 用户信息卡片 */
.profile-card {
background: rgba(255, 86, 0, 0.1);
border: 3px solid #ff8c3a;
border-radius: 20px;
margin: 20px;
padding: 30px;
text-align: center;
box-shadow:
0 4px 20px rgba(255, 94, 0, 0.4),
inset 0 0 20px rgba(0, 0, 0, 0.3);
}
.avatar-container {
width: 100px;
height: 100px;
margin: 0 auto 20px;
position: relative;
}
.avatar {
width: 100%;
height: 100%;
background: linear-gradient(135deg, #ff8c3a 0%, #ff5e00 100%);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 40px;
color: #fff;
text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
box-shadow:
0 4px 15px rgba(255, 94, 0, 0.8),
inset 0 2px 5px rgba(255, 255, 255, 0.3);
}
.avatar::before {
content: '🧔';
animation: breathe 2s ease-in-out infinite;
}
@keyframes breathe {
0% { transform: scale(1); }
50% { transform: scale(1.1); }
100% { transform: scale(1); }
}
.avatar-level {
position: absolute;
bottom: -5px;
right: -5px;
background: #ff3a00;
color: #fff;
border-radius: 50%;
width: 30px;
height: 30px;
display: flex;
align-items: center;
justify-content: center;
font-size: 14px;
font-weight: bold;
box-shadow: 0 3px 10px rgba(255, 50, 0, 0.6);
}
.profile-name {
font-size: 24px;
font-weight: bold;
color: #ffcc99;
margin-bottom: 10px;
text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}
.profile-id {
font-size: 14px;
color: #ff8c3a;
margin-bottom: 20px;
}
/* 统计信息 */
.stats-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 15px;
margin-top: 20px;
}
.stat-item {
background: rgba(0, 0, 0, 0.3);
border: 2px solid rgba(255, 107, 0, 0.3);
border-radius: 10px;
padding: 15px;
}
.stat-label {
font-size: 12px;
color: #ff8c3a;
margin-bottom: 5px;
}
.stat-value {
font-size: 18px;
font-weight: bold;
color: #ffcc99;
}
/* 成就卡片 */
.achievement-card {
background: rgba(255, 86, 0, 0.1);
border: 3px solid #ff8c3a;
border-radius: 15px;
margin: 20px;
padding: 20px;
box-shadow:
0 4px 20px rgba(255, 94, 0, 0.4),
inset 0 0 20px rgba(0, 0, 0, 0.3);
}
.achievement-title {
font-size: 18px;
font-weight: bold;
color: #ffcc99;
margin-bottom: 15px;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}
.achievement-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 15px;
}
.achievement-item {
background: rgba(0, 0, 0, 0.3);
border: 2px solid rgba(255, 107, 0, 0.3);
border-radius: 10px;
padding: 12px;
display: flex;
align-items: center;
gap: 10px;
}
.achievement-icon {
width: 40px;
height: 40px;
background: linear-gradient(135deg, #ff8c3a 0%, #ff5e00 100%);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 18px;
box-shadow: 0 3px 10px rgba(255, 94, 0, 0.6);
}
.achievement-info {
flex: 1;
}
.achievement-name {
font-size: 14px;
font-weight: bold;
color: #ffcc99;
margin-bottom: 5px;
}
.achievement-desc {
font-size: 11px;
color: #ff8c3a;
}
/* 设置卡片 */
.settings-card {
background: rgba(255, 86, 0, 0.1);
border: 3px solid #ff8c3a;
border-radius: 15px;
margin: 20px;
overflow: hidden;
box-shadow:
0 4px 20px rgba(255, 94, 0, 0.4),
inset 0 0 20px rgba(0, 0, 0, 0.3);
}
.settings-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 20px;
border-bottom: 1px solid rgba(255, 107, 0, 0.2);
cursor: pointer;
transition: all 0.3s ease;
}
.settings-item:hover {
background: rgba(255, 107, 0, 0.1);
}
.settings-label {
color: #ffcc99;
display: flex;
align-items: center;
gap: 10px;
}
.settings-icon {
width: 30px;
height: 30px;
background: rgba(255, 107, 0, 0.3);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 14px;
}
.settings-value {
color: #ff8c3a;
font-size: 14px;
}
.settings-switch {
width: 50px;
height: 26px;
background: rgba(255, 107, 0, 0.3);
border-radius: 13px;
position: relative;
cursor: pointer;
transition: all 0.3s ease;
}
.settings-switch::after {
content: '';
position: absolute;
top: 3px;
left: 3px;
width: 20px;
height: 20px;
background: #ff8c3a;
border-radius: 50%;
transition: all 0.3s ease;
}
.settings-switch.active {
background: rgba(255, 107, 0, 0.6);
}
.settings-switch.active::after {
left: 27px;
}
/* 底部标签页 */
.bottom-tabs {
position: fixed;
bottom: 0;
left: 0;
right: 0;
height: 70px;
background: rgba(255, 86, 0, 0.3);
backdrop-filter: blur(10px);
border-top: 2px solid #ff8c3a;
display: flex;
justify-content: space-around;
align-items: center;
z-index: 1000;
}
.tab-item {
padding: 15px 20px;
background: rgba(255, 86, 0, 0.3);
border: 2px solid #ff8c3a;
border-radius: 25px;
color: #fff;
font-size: 14px;
cursor: pointer;
transition: all 0.3s ease;
}
.tab-item.active {
background: linear-gradient(180deg, #ff8c3a 0%, #ff5e00 100%);
box-shadow:
0 4px 15px rgba(255, 94, 0, 0.6),
inset 0 2px 5px rgba(255, 255, 255, 0.3);
}
.tab-item:hover {
transform: translateY(-2px);
box-shadow:
0 6px 20px rgba(255, 94, 0, 0.8),
inset 0 2px 5px rgba(255, 255, 255, 0.4);
}
/* 按钮 */
.action-button {
display: block;
width: calc(100% - 40px);
margin: 20px;
padding: 15px;
background: linear-gradient(180deg, #ff8c3a 0%, #ff5e00 100%);
border: none;
border-radius: 25px;
color: #fff;
font-size: 16px;
font-weight: bold;
cursor: pointer;
box-shadow:
0 4px 15px rgba(255, 94, 0, 0.6),
inset 0 2px 5px rgba(255, 255, 255, 0.3);
transition: all 0.3s ease;
}
.action-button:hover {
transform: translateY(-2px);
box-shadow:
0 6px 20px rgba(255, 94, 0, 0.8),
inset 0 2px 5px rgba(255, 255, 255, 0.4);
}
</style>
</head>
<body>
<!-- 顶部导航栏 -->
<nav class="top-nav">
<div class="nav-logo">👤末日求生 - 个人信息</div>
</nav>
<!-- 内容区域 -->
<div class="content-container">
<!-- 用户信息卡片 -->
<div class="profile-card">
<div class="avatar-container">
<div class="avatar"></div>
<div class="avatar-level">15</div>
</div>
<div class="profile-name">生存者:铁血战士</div>
<div class="profile-id">ID: SURV-2026-007</div>
<div class="stats-grid">
<div class="stat-item">
<div class="stat-label">生存天数</div>
<div class="stat-value">127</div>
</div>
<div class="stat-item">
<div class="stat-label">技能掌握</div>
<div class="stat-value">18</div>
</div>
<div class="stat-item">
<div class="stat-label">救援成功</div>
<div class="stat-value">7</div>
</div>
</div>
</div>
<!-- 成就卡片 -->
<div class="achievement-card">
<div class="achievement-title">🏆 已获得成就</div>
<div class="achievement-grid">
<div class="achievement-item">
<div class="achievement-icon">🔥</div>
<div class="achievement-info">
<div class="achievement-name">火焰使者</div>
<div class="achievement-desc">成功点燃100次火源</div>
</div>
</div>
<div class="achievement-item">
<div class="achievement-icon">🏠</div>
<div class="achievement-info">
<div class="achievement-name">家园建筑师</div>
<div class="achievement-desc">建造3座安全庇护所</div>
</div>
</div>
<div class="achievement-item">
<div class="achievement-icon">💧</div>
<div class="achievement-info">
<div class="achievement-name">水源专家</div>
<div class="achievement-desc">净化500升水源</div>
</div>
</div>
<div class="achievement-item">
<div class="achievement-icon">⚕️</div>
<div class="achievement-info">
<div class="achievement-name">急救先锋</div>
<div class="achievement-desc">成功救治10次伤病</div>
</div>
</div>
</div>
</div>
<!-- 设置卡片 -->
<div class="settings-card">
<div class="settings-item">
<div class="settings-label">
<div class="settings-icon">🌙</div>
夜间模式
</div>
<div class="settings-switch active"></div>
</div>
<div class="settings-item">
<div class="settings-label">
<div class="settings-icon">🔔</div>
过期提醒
</div>
<div class="settings-switch active"></div>
</div>
<div class="settings-item">
<div class="settings-label">
<div class="settings-icon">📍</div>
位置共享
</div>
<div class="settings-switch"></div>
</div>
<div class="settings-item">
<div class="settings-label">
<div class="settings-icon">📱</div>
新消息通知
</div>
<div class="settings-switch active"></div>
</div>
<div class="settings-item">
<div class="settings-label">
<div class="settings-icon">🗑️</div>
清除缓存
</div>
<div class="settings-value">15.2 MB</div>
</div>
<div class="settings-item">
<div class="settings-label">
<div class="settings-icon">📄</div>
版本信息
</div>
<div class="settings-value">v3.6.0</div>
</div>
</div>
<!-- 操作按钮 -->
<button class="action-button" id="logoutBtn">退出登录</button>
</div>
<!-- 底部标签页 -->
<div class="bottom-tabs">
<div class="tab-item">首页</div>
<div class="tab-item">背包</div>
<div class="tab-item active">我的</div>
</div>
<script>
$(document).ready(function() {
// 标签页切换效果
$('.tab-item').on('click', function() {
$('.tab-item').removeClass('active');
$(this).addClass('active');
const tabName = $(this).text();
if (tabName === '首页') {
window.location.href = '../home/index.html';
} else if (tabName === '背包') {
window.location.href = '../bag/index.html';
} else if (tabName === '我的') {
// 已经在当前页面
}
});
// 开关切换效果
$('.settings-switch').on('click', function() {
$(this).toggleClass('active');
const settingLabel = $(this).closest('.settings-item').find('.settings-label').text();
console.log('设置项更新:', settingLabel, '状态:', $(this).hasClass('active'));
});
// 退出登录按钮
$('#logoutBtn').on('click', function() {
if (confirm('确定要退出登录吗?')) {
alert('正在退出登录...');
window.location.href = '../login/index.html';
}
});
// 清除缓存
$('.settings-item').eq(4).on('click', function() {
if (confirm('确定要清除缓存吗?')) {
$(this).find('.settings-value').text('0 MB');
alert('缓存已清除!');
}
});
// 版本信息点击
$('.settings-item').eq(5).on('click', function() {
alert('末日求生 App\n版本v3.6.0\n发布日期2026-03-25\n生存者协议本应用仅供模拟生存训练使用');
});
});
</script>
</body>
</html>