<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
<title>验证窗口 - 少女粉风格</title>
<style>
/* 全局样式 */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
@keyframes gradient {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
body {
position: fixed;
inset: 0;
background: linear-gradient(-45deg, #ffcad4, #ffc8dd, #ffafcc, #ffc2d1);
background-size: 400% 400%;
animation: gradient 15s ease infinite;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}
.container {
width: 90%;
max-width: 380px;
background-color: rgba(255, 255, 255, 0.85);
border-radius: 24px;
padding: 35px 30px;
box-shadow:
0 10px 25px rgba(255, 175, 204, 0.4),
0 0 0 1px rgba(255, 255, 255, 0.7) inset;
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
position: relative;
overflow: hidden;
}
.container::before {
content: "";
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: radial-gradient(circle, rgba(255, 175, 204, 0.1) 0%, transparent 70%);
z-index: -1;
}
.heart {
position: absolute;
background-color: #ffafcc;
transform: rotate(45deg);
width: 30px;
height: 30px;
opacity: 0.1;
}
.heart::before, .heart::after {
content: '';
position: absolute;
width: 30px;
height: 30px;
background-color: #ffafcc;
border-radius: 50%;
}
.heart::before {
top: -15px;
left: 0;
}
.heart::after {
top: 0;
left: -15px;
}
.heart:nth-child(1) {
top: 20px;
right: 20px;
width: 20px;
height: 20px;
}
.heart:nth-child(1)::before, .heart:nth-child(1)::after {
width: 20px;
height: 20px;
}
.heart:nth-child(1)::before {
top: -10px;
left: 0;
}
.heart:nth-child(1)::after {
top: 0;
left: -10px;
}
.heart:nth-child(2) {
bottom: 30px;
left: 25px;
width: 15px;
height: 15px;
}
.heart:nth-child(2)::before, .heart:nth-child(2)::after {
width: 15px;
height: 15px;
}
.heart:nth-child(2)::before {
top: -7.5px;
left: 0;
}
.heart:nth-child(2)::after {
top: 0;
left: -7.5px;
}
.header {
text-align: center;
margin-bottom: 30px;
}
.header h1 {
color: #ff85a1;
font-size: 24px;
font-weight: 700;
margin-bottom: 8px;
letter-spacing: -0.5px;
}
.header p {
color: #ff85a1;
opacity: 0.7;
font-size: 14px;
}
.form-group {
margin-bottom: 30px;
}
.input-wrapper {
position: relative;
}
.input {
width: 100%;
padding: 15px 20px;
background-color: #fff;
border: 2px solid #ffc2d1;
border-radius: 18px;
font-size: 15px;
color: #ff85a1;
transition: all 0.3s;
box-shadow: 0 4px 10px rgba(255, 175, 204, 0.2);
}
.input:focus {
outline: none;
border-color: #ff85a1;
box-shadow: 0 4px 15px rgba(255, 175, 204, 0.4);
}
.input::placeholder {
color: #ffafcc;
opacity: 0.7;
}
/* 按钮样式 */
.btn-verify {
display: block;
width: 100%;
padding: 15px 0;
margin-bottom: 12px;
background-color: #ff85a1;
border: none;
border-radius: 18px;
color: white;
font-size: 16px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s;
box-shadow: 0 4px 12px rgba(255, 133, 161, 0.3);
position: relative;
overflow: hidden;
}
.btn-verify::before {
content: "";
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(
90deg,
rgba(255, 255, 255, 0) 0%,
rgba(255, 255, 255, 0.3) 50%,
rgba(255, 255, 255, 0) 100%
);
transition: left 0.7s ease;
}
.btn-verify:hover {
background-color: #ff6b8b;
transform: translateY(-2px);
box-shadow: 0 6px 15px rgba(255, 133, 161, 0.4);
}
.btn-verify:hover::before {
left: 100%;
}
.btn-query {
display: block;
width: 100%;
padding: 14px 0;
margin-bottom: 25px;
background-color: transparent;
border: 2px solid #ffafcc;
border-radius: 18px;
color: #ff85a1;
font-size: 15px;
font-weight: 500;
cursor: pointer;
transition: all 0.3s;
}
.btn-query:hover {
background-color: rgba(255, 175, 204, 0.1);
border-color: #ff85a1;
}
/* 公告样式 */
.notice {
padding: 20px;
border-radius: 18px;
background-color: rgba(255, 255, 255, 0.7);
box-shadow: 0 4px 12px rgba(255, 175, 204, 0.15);
border: 1px dashed #ffafcc;
}
.notice h3 {
color: #ff85a1;
font-size: 15px;
margin-bottom: 10px;
display: flex;
align-items: center;
font-weight: 600;
}
.notice h3::before {
content: "";
margin-right: 8px;
}
.notice p {
color: #ff85a1;
opacity: 0.8;
font-size: 13px;
line-height: 1.6;
}
/* 版本号 */
.version {
text-align: center;
font-size: 12px;
color: #ffafcc;
margin-top: 25px;
}
</style>
</head>
<body>
<div class="container">
<div class="heart"></div>
<div class="heart"></div>
<div class="header">
<h1>甜心验证中心</h1>
<p>请输入您的专属激活码</p>
</div>
<div class="form-group">
<div class="input-wrapper">
<input class="input" id="code" placeholder="请输入激活码..." type="text" pattern="^[a-zA-Z0-9_-]{1,16}$">
</div>
</div>
<button class="btn-verify" onclick="Call_Verify(code.value)">
立即验证
</button>
<button class="btn-query" onclick="Call_Query_Trial(code.value)">
查询状态
</button>
<div class="notice">
<h3>温馨提示</h3>
<p id="notice">欢迎使用甜心验证系统,请输入您的专属激活码完成验证。激活后可以享受完整功能~</p>
</div>
<div class="version">Sweet Pink UI • v1.0</div>
</div>
<script>
function Call_Verify(text) {
try {
if (typeof RuoLv !== 'undefined' && RuoLv.onButtonClick) {
RuoLv.onButtonClick(0, text);
}
} catch (e) {
console.error('验证接口调用失败', e);
}
}
function Call_Query_Trial(text) {
try {
if (typeof RuoLv !== 'undefined' && RuoLv.onButtonClick) {
RuoLv.onButtonClick(1, text);
}
} catch (e) {
console.error('查询接口调用失败', e);
}
}
// 初始化公告内容
document.addEventListener('DOMContentLoaded', function() {
// 服务端获取公告内容
});
</script>
</body>
</html>
成为第一个评论此应用的用户吧!