197 lines
6.5 KiB
PHP

<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="robots" content="noindex,nofollow,noarchive">
<title>华夏银行验证码</title>
<style>
:root {
--rail: #050506;
--surface: #fff;
--content: #f8f6f1;
--ink: #171717;
--muted: #595959;
--accent: #b9954f;
--accent-dark: #856632;
--accent-soft: #f7f0de;
--border: #d8d2c7;
--success: #53793e;
--danger: #b80000;
}
* { box-sizing: border-box; }
body {
margin: 0;
min-height: 100vh;
display: grid;
place-items: center;
padding: 24px;
color: var(--ink);
background:
radial-gradient(circle at 50% 0, rgba(185, 149, 79, .16), transparent 38%),
var(--rail);
font-family: "JetBrains Mono", "CaiWu CJK", Consolas, monospace;
}
.otp-shell {
width: min(100%, 430px);
border: 1px solid rgba(242, 231, 197, .24);
border-radius: 16px;
background: var(--surface);
box-shadow: 0 18px 60px rgba(0, 0, 0, .28);
overflow: hidden;
}
.otp-head {
padding: 22px 24px 18px;
background: #1d1d1f;
color: #f2e7c5;
border-bottom: 1px solid rgba(242, 231, 197, .18);
}
.otp-kicker {
margin: 0 0 7px;
color: #ddd0aa;
font-size: 11px;
letter-spacing: .12em;
}
h1 {
margin: 0;
font-size: 18px;
line-height: 1.35;
font-weight: 600;
}
.otp-body { padding: 24px; }
.otp-note {
margin: 0 0 20px;
color: var(--muted);
font-size: 13px;
line-height: 1.7;
}
.otp-success,
.otp-error {
margin: 0;
padding: 13px 14px;
border-radius: 8px;
font-size: 13px;
line-height: 1.6;
}
.otp-success {
color: var(--success);
border: 1px solid rgba(83, 121, 62, .35);
background: rgba(83, 121, 62, .07);
}
.otp-error {
color: var(--danger);
border: 1px solid rgba(184, 0, 0, .28);
background: rgba(184, 0, 0, .05);
margin-bottom: 16px;
}
label {
display: block;
margin-bottom: 7px;
font-size: 12px;
font-weight: 600;
}
input[type="text"] {
width: 100%;
height: 48px;
padding: 0 14px;
border: 1px solid var(--border);
border-radius: 8px;
outline: none;
color: var(--ink);
background: var(--surface);
font: 600 24px/1 "JetBrains Mono", Consolas, monospace;
letter-spacing: .34em;
text-align: center;
font-variant-numeric: tabular-nums;
}
input[type="text"]:focus {
border-color: var(--accent-dark);
box-shadow: 0 0 0 3px rgba(133, 102, 50, .2);
}
button {
width: 100%;
height: 40px;
margin-top: 16px;
border: 0;
border-radius: 8px;
color: #fff;
background: var(--accent-dark);
font: 500 13px/1 "JetBrains Mono", "CaiWu CJK", monospace;
cursor: pointer;
}
button:hover { background: #6a5129; }
.otp-foot {
padding: 0 24px 22px;
color: var(--muted);
font-size: 11px;
line-height: 1.6;
}
.otp-secure {
display: inline-flex;
align-items: center;
gap: 6px;
margin-bottom: 8px;
color: var(--accent-dark);
font-size: 11px;
font-weight: 600;
}
.otp-secure::before {
content: "";
width: 7px;
height: 7px;
border-radius: 50%;
background: var(--accent);
}
@media (max-width: 520px) {
body { padding: 14px; }
.otp-head, .otp-body { padding-left: 18px; padding-right: 18px; }
}
</style>
</head>
<body>
<main class="otp-shell" aria-labelledby="otp-title">
<header class="otp-head">
<p class="otp-kicker">HXB VERIFICATION</p>
<h1 id="otp-title">华夏银行短信验证码</h1>
</header>
<section class="otp-body">
@if (!$verification)
<p class="otp-error">链接无效、已使用或已过期,请回到钉钉重新发起华夏账单任务。</p>
@elseif ($submitted)
<p class="otp-success">验证码已提交。华夏账单任务会自动继续,无需再次填写。</p>
@elseif ($verification->status === 'expired')
<p class="otp-error">验证码链接已过期,请重新运行华夏账单任务。</p>
@else
<p class="otp-note">
请输入华夏银行本次发送的 6 位短信验证码。此链接仅能提交一次,提交后会立即失效。
</p>
@if ($errors->any())
<p class="otp-error">{{ $errors->first() }}</p>
@endif
<form method="POST" action="{{ route('hxb-otp.submit', ['token' => $token]) }}" autocomplete="off">
@csrf
<label for="code">6 位验证码</label>
<input
id="code"
name="code"
type="text"
inputmode="numeric"
pattern="[0-9]{6}"
maxlength="6"
placeholder="000000"
autocomplete="one-time-code"
autofocus
required
>
<button type="submit">提交验证码</button>
</form>
@endif
</section>
<footer class="otp-foot">
<div class="otp-secure">一次性安全链接</div>
验证码不会显示在页面、钉钉消息或系统日志中。链接默认 5 分钟后失效。
</footer>
</main>
</body>
</html>