<!-- 本DIY代码来自于 https://diy.zhongzhipian.top -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>中纸片DIY共享平台</title>
<style>
/* 全局样式 */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Raleway', sans-serif;
}
body {
overflow: hidden;
background: linear-gradient(135deg, #0f1a2b, #1e2d4b);
animation: gradient-bg 10s ease infinite;
}
@keyframes gradient-bg {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
/* 主容器 */
.container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
padding: 20px;
}
/* 卡密验证盒子 */
.code-box {
background: rgba(255, 255, 255, 0.1);
padding: 40px;
border-radius: 25px;
box-shadow: 0 15px 35px rgba(0,0,0,0.2);
backdrop-filter: blur(15px);
max-width: 500px;
width: 100%;
animation: pulse 2s ease infinite;
}
@keyframes pulse {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.02); }
}
/* 标题部分 */
.header {
text-align: center;
margin-bottom: 30px;
}
.logo {
width: 120px;
height: 120px;
background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200s89.5-200 200-200 200 89.5 200 200-89.5 200-200 200zm0-320c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z" fill="%23ff6b6b"/></svg>');
background-size: contain;
border-radius: 50%;
box-shadow: 0 0 20px #ff6b6b;
}
h1 {
color: #ff6b6b;
font-size: 2.5rem;
margin: 20px 0;
text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.notice {
color: #888;
font-size: 1.2rem;
line-height: 1.6;
}
/* 输入框组件 */
.input-field {
position: relative;
margin: 25px 0;
}
input {
width: 100%;
padding: 18px 30px;
background: rgba(255,255,255,0.2);
border: 2px solid #ff6b6b;
border-radius: 25px;
color: #fff;
font-family: 'Raleway', sans-serif;
outline: none;
transition: all 0.3s ease;
}
input:focus {
border-color: #ff9966;
box-shadow: 0 0 15px #ff9966;
}
input::placeholder {
color: rgba(255,255,255,0.6);
}
/* 按钮组件 */
.btn {
display: inline-block;
padding: 15px 40px;
background: linear-gradient(45deg, #ff6b6b, #ff9966);
color: #fff;
border: none;
border-radius: 25px;
cursor: pointer;
font-family: 'Raleway', sans-serif;
transition: all 0.3s ease;
box-shadow: 0 5px 15px rgba(255,107,107,0.3);
}
.btn:hover {
transform: translateY(-3px);
box-shadow: 0 8px 20px rgba(255,153,102,0.5);
}
.btn:active {
transform: translateY(1px);
}
.btn-group {
display: flex;
gap: 20px;
margin-top: 30px;
}
/* 星尘装饰 */
.star {
position: absolute;
background: #ff6b6b;
border-radius: 50%;
animation: star-fade 2s ease infinite;
}
@keyframes star-fade {
0%, 100% { opacity: 0.3; }
50% { opacity: 1; }
}
/* 动态星云背景 */
.background-canvas {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
}
/* 底部信息 */
.footer {
position: absolute;
bottom: 20px;
width: 100%;
text-align: center;
color: #888;
font-style: italic;
}
</style>
</head>
<body>
<div class="container">
<!-- 星尘装饰 -->
<div class="star" style="top: 15%; left: 10%; width: 8px; height: 8px;"></div>
<div class="star" style="top: 30%; right: 15%; width: 10px; height: 10px;"></div>
<div class="star" style="bottom: 25%; left: 40%; width: 6px; height: 6px;"></div>
<div class="star" style="top: 70%; right: 5%; width: 12px; height: 12px;"></div>
<div class="code-box">
<div class="header">
<div class="logo"></div>
<h1 id="title">title</h1>
<div class="notice" id="notice">notice</div>
</div>
<div class="input-field">
<input type="text" id="code" placeholder="输入星尘密钥"
pattern="^[a-zA-Z0-9_-]{1,16}$"
required>
</div>
<div class="btn-group">
<button class="btn" onclick="Call_Verify()">激活星尘</button>
<button class="btn" id="Query_Trial" onclick="Call_Query_Trial()">能量查询</button>
<button class="btn" id="Pay" onclick="Call_Pay()">购买星核</button>
</div>
</div>
<div class="footer">
<span>『中纸片』提供服务</span>
</div>
<!-- 动态星云背景 -->
<canvas class="background-canvas"></canvas>
<script>
// 动态星云背景
const canvas = document.querySelector('.background-canvas');
const ctx = canvas.getContext('2d');
const width = window.innerWidth;
const height = window.innerHeight;
canvas.width = width;
canvas.height = height;
class Star {
constructor(x, y, radius, speed) {
this.x = x || Math.random() * width;
this.y = y || Math.random() * height;
this.radius = radius || Math.random() * 2 + 1;
this.speed = speed || Math.random() * 0.5 + 0.1;
}
draw() {
ctx.beginPath();
ctx.arc(this.x, this.y, this.radius, 0, Math.PI * 2);
ctx.fillStyle = '#ff6b6b';
ctx.fill();
}
update() {
this.y += this.speed;
if (this.y > height) this.y = 0;
}
}
const stars = [];
for (let i = 0; i < 50; i++) {
stars.push(new Star());
}
function animate() {
ctx.clearRect(0, 0, width, height);
ctx.fillStyle = 'rgba(0,0,0,0.05)';
ctx.fillRect(0, 0, width, height);
stars.forEach(star => {
star.draw();
star.update();
});
requestAnimationFrame(animate);
}
animate();
document.getElementById("title").innerHTML = PanGolin.GetTitle();
document.getElementById("notice").innerHTML = PanGolin.GetNotice();
document.getElementById("Query_Trial").innerHTML = PanGolin.Is_Trial() ? "试用星能" : "能量查询";
document.getElementById("Pay").style.display = PanGolin.Is_Pay() ? "block" : "none";
function Call_Verify() {
const code = document.getElementById("code").value;
PanGolin.Verify(code);
}
function Call_Query_Trial() {
if (PanGolin.Is_Trial()) PanGolin.Trial();
else PanGolin.Query(document.getElementById("code").value);
}
function Call_Pay() {
PanGolin.Pay();
}
</script>
</body>
</html>
<!-- 本DIY代码来自于 https://diy.zhongzhipian.top -->