<!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>验证窗口 - iOS风格</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', sans-serif;
-webkit-tap-highlight-color: transparent;
}
body {
position: fixed;
inset: 0;
background-color: #f5f5f7;
display: flex;
justify-content: center;
align-items: center;
}
.modal {
width: 90%;
max-width: 400px;
background-color: rgba(255, 255, 255, 0.85);
border-radius: 16px;
padding: 30px 25px;
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.title {
text-align: center;
margin-bottom: 35px;
}
.title h2 {
font-size: 24px;
color: #1d1d1f;
font-weight: 600;
margin-bottom: 10px;
}
.title p {
font-size: 15px;
color: #86868b;
line-height: 1.4;
}
.input-group {
margin-bottom: 30px;
}
.input-label {
font-size: 13px;
color: #1d1d1f;
font-weight: 600;
margin-bottom: 8px;
display: block;
}
.input-wrapper {
position: relative;
}
.input-wrapper input {
width: 100%;
padding: 15px 16px;
border: 1px solid #d2d2d7;
border-radius: 10px;
font-size: 15px;
color: #1d1d1f;
transition: all 0.2s ease;
background-color: rgba(255, 255, 255, 0.8);
}
.input-wrapper input:focus {
outline: none;
border-color: #0071e3;
box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
}
.input-wrapper input::placeholder {
color: #86868b;
}
.btn {
width: 100%;
padding: 15px 0;
border: none;
border-radius: 10px;
font-size: 15px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}
.btn-primary {
color: #ffffff;
background-color: #0071e3;
margin-bottom: 10px;
}
.btn-secondary {
color: #0071e3;
background-color: rgba(0, 113, 227, 0.1);
margin-bottom: 30px;
}
.btn:active {
transform: scale(0.98);
opacity: 0.9;
}
.notice {
background-color: #f5f5f7;
border-radius: 10px;
padding: 20px;
}
.notice h3 {
font-size: 15px;
color: #1d1d1f;
margin-bottom: 8px;
font-weight: 600;
display: flex;
align-items: center;
gap: 6px;
}
.notice h3::before {
content: "i";
display: inline-flex;
align-items: center;
justify-content: center;
width: 20px;
height: 20px;
background-color: #0071e3;
color: white;
border-radius: 50%;
font-size: 13px;
font-style: italic;
font-weight: 700;
}
.notice p {
font-size: 14px;
color: #515154;
line-height: 1.5;
}
/* 版本号样式 */
.version {
text-align: center;
font-size: 12px;
color: #86868b;
margin-top: 25px;
}
/* 按钮呼吸效果 */
@keyframes pulse {
0%, 100% {
box-shadow: 0 0 0 0 rgba(0, 113, 227, 0.2);
}
50% {
box-shadow: 0 0 0 8px rgba(0, 113, 227, 0);
}
}
.btn-primary:hover {
animation: pulse 2s infinite;
}
/* 链接样式 */
a {
color: #0071e3;
text-decoration: none;
}
@media (max-width: 480px) {
.modal {
width: 92%;
}
}
</style>
</head>
<body>
<div class="modal">
<div class="title">
<h2>激活验证</h2>
<p>请输入您的激活码完成验证</p>
</div>
<div class="input-group">
<label class="input-label" for="code">激活码</label>
<div class="input-wrapper">
<input type="text" id="code" placeholder="请输入激活码" pattern="^[a-zA-Z0-9_-]{1,16}$">
</div>
</div>
<button class="btn btn-primary" onclick="Call_Verify(code.value)">验证</button>
<button class="btn btn-secondary" onclick="Call_Query_Trial(code.value)">查询状态</button>
<div class="notice">
<h3>系统提示</h3>
<p id="notice">请输入有效的激活码完成验证。激活后您将获得所有高级功能的访问权限。如有问题请联系客服。</p>
</div>
<div class="version">App Version 2.0.4</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>
成为第一个评论此应用的用户吧!