<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>验证码邮件</title>
<style>
/* 重置样式 */
body {
margin: 0;
padding: 20px;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
line-height: 1.6;
color: #2c3e50;
background-color: #f7f9fc;
}
/* 邮件容器 */
.email-container {
max-width: 600px;
margin: 0 auto;
background-color: #ffffff;
border-radius: 16px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
overflow: hidden;
}
/* 头部样式 */
.header {
text-align: center;
padding: 30px 20px;
background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
border-bottom: none;
}
.logo {
max-width: 180px;
height: auto;
filter: brightness(0) invert(1);
}
/* 内容区域 */
.content {
padding: 40px 30px;
text-align: center;
background-color: #ffffff;
}
.content h2 {
color: #1a237e;
font-size: 28px;
margin-bottom: 25px;
font-weight: 600;
}
.content p {
color: #4a5568;
font-size: 16px;
line-height: 1.8;
margin: 12px 0;
}
/* 验证码样式 */
.verification-code {
font-size: 36px;
font-weight: 700;
letter-spacing: 8px;
color: #4f46e5;
background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
padding: 20px 30px;
margin: 30px 0;
border-radius: 12px;
display: inline-block;
box-shadow: 0 2px 10px rgba(99, 102, 241, 0.1);
border: 2px solid #e0e7ff;
}
/* 提示文本 */
.notice {
font-size: 14px;
color: #64748b;
margin: 25px 0;
padding: 20px;
background-color: #fffbeb;
border-radius: 12px;
border-left: 4px solid #fbbf24;
}
.notice p {
color: #92400e;
margin: 8px 0;
font-size: 14px;
}
/* 页脚样式 */
.footer {
text-align: center;
padding: 25px 20px;
font-size: 13px;
color: #64748b;
background-color: #f8fafc;
border-top: 1px solid #e2e8f0;
}
.footer p {
margin: 8px 0;
}
.footer a {
color: #4f46e5;
text-decoration: none;
font-weight: 500;
transition: color 0.3s ease;
}
.footer a:hover {
color: #4338ca;
}
/* 响应式设计 */
@media screen and (max-width: 600px) {
body {
padding: 10px;
}
.email-container {
width: 100% !important;
margin: 0 !important;
border-radius: 12px !important;
}
.content {
padding: 30px 20px !important;
}
.verification-code {
font-size: 32px !important;
letter-spacing: 6px !important;
padding: 15px 20px !important;
}
.header {
padding: 25px 15px !important;
}
}
/* 动画效果 */
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.content > * {
animation: fadeIn 0.5s ease-out forwards;
}
</style>
</head>
<body>
<table class="email-container" cellpadding="0" cellspacing="0" border="0">
<tr>
<td>
<div class="header">
<img src="[这里填写log链接]" alt="公司Logo" class="logo">
</div>
<div class="content">
<h2>验证码</h2>
<p>尊敬的用户:</p>
<p>您好!您正在进行邮箱验证,请在验证码输入框中输入以下验证码:</p>
<div class="verification-code">验证码:{code}</div>
<div class="notice">
<p>⚠️ 验证码有效期为5分钟,请尽快完成验证。</p>
<p>🔒 如非本人操作,请忽略此邮件并确保账户安全。</p>
</div>
<p style="color: #94a3b8; font-style: italic;">这是一封自动生成的邮件,请勿直接回复。</p>
</div>
<div class="footer">
<p>© 2024 [这里填公司名称] · 保留所有权利</p>
<p>需要帮助?请访问我们的 <a href="[这里填帮助中心链接]">帮助中心</a></p>
</div>
</td>
</tr>
</table>
</body>
</html>
THE END
暂无评论内容