Files
djangoadmin-web/upload/file/20251009/1759999604234.html
T
2026-09-17 12:12:55 +08:00

528 lines
15 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>异常登录提醒 - 小蚂蚁云</title>
<style>
/* 基础样式重置 */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
line-height: 1.6;
color: #333;
background-color: #f8fafc;
padding: 20px 0;
}
/* 主容器 */
.email-container {
max-width: 600px;
margin: 0 auto;
background-color: #fff;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.email-container:hover {
box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}
/* 邮件头部 */
.email-header {
background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
color: white;
padding: 35px 40px;
text-align: center;
position: relative;
overflow: hidden;
}
.email-header::before {
content: '';
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
transform: rotate(30deg);
}
.logo-container {
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 15px;
}
.logo {
max-width: 200px;
height: auto;
filter: brightness(0) invert(1);
}
.company-name {
font-size: 42px;
font-weight: 700;
color: white;
text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
letter-spacing: 2px;
margin: 0;
position: relative;
z-index: 1;
}
.header-text {
font-size: 18px;
font-weight: 300;
margin: 0;
opacity: 0.9;
position: relative;
z-index: 1;
}
/* 内容区域 */
.email-content {
padding: 40px;
}
.content-title {
font-size: 24px;
font-weight: 600;
margin-bottom: 20px;
color: #2c3e50;
position: relative;
padding-bottom: 10px;
}
.content-title::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 50px;
height: 3px;
background: linear-gradient(to right, #4CAF50, #2E7D32);
border-radius: 3px;
}
.content-text {
font-size: 16px;
margin-bottom: 20px;
color: #555;
}
/* 图标样式 */
.icon-circle {
display: inline-block;
width: 80px;
height: 80px;
border-radius: 50%;
position: relative;
margin-bottom: 15px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.icon-circle::after {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 40px;
}
/* 警告图标 */
.alert-icon {
background: linear-gradient(135deg, #4CAF50, #2E7D32);
}
.alert-icon::after {
content: '!';
color: white;
font-weight: bold;
}
/* 信息卡片样式 */
.info-card {
border-radius: 10px;
padding: 25px;
margin: 25px 0;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
border-left: 4px solid;
}
.info-card-title {
font-size: 18px;
font-weight: 600;
margin-bottom: 20px;
color: #2c3e50;
display: flex;
align-items: center;
}
.info-card-title::before {
margin-right: 10px;
font-size: 20px;
}
.info-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 15px;
}
.info-item {
display: flex;
flex-direction: column;
padding: 12px 15px;
background: white;
border-radius: 8px;
box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.info-label {
font-size: 14px;
color: #666;
margin-bottom: 5px;
}
.info-value {
font-size: 16px;
font-weight: 600;
color: #333;
}
/* 安全摘要 */
.security-summary {
background: linear-gradient(to right, #f1f8e9, #e8f5e9);
border-left-color: #4CAF50;
}
.security-summary-title::before {
content: '📦';
}
/* 步骤列表 */
.steps-container {
background: #f1f8e9;
border-radius: 8px;
padding: 20px;
margin: 25px 0;
}
.steps-title {
font-size: 16px;
font-weight: 600;
margin-bottom: 15px;
color: #2c3e50;
}
.step {
display: flex;
margin-bottom: 12px;
align-items: flex-start;
}
.step-number {
background: #4CAF50;
color: white;
width: 24px;
height: 24px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 14px;
font-weight: 600;
margin-right: 12px;
flex-shrink: 0;
}
.step-text {
flex: 1;
font-size: 14px;
color: #555;
}
/* 安全通知 */
.security-notice {
background: linear-gradient(to right, #e8f5e9, #c8e6c9);
border-radius: 10px;
padding: 20px;
margin: 25px 0;
border-left: 4px solid #4CAF50;
}
.security-notice-title {
font-size: 16px;
font-weight: 600;
margin-bottom: 10px;
color: #2E7D32;
display: flex;
align-items: center;
}
.security-notice-title::before {
content: '⚠️';
margin-right: 10px;
font-size: 18px;
}
.security-list {
list-style-type: none;
margin-top: 15px;
}
.security-list li {
margin-bottom: 10px;
padding-left: 25px;
position: relative;
}
.security-list li:before {
content: "•";
color: #4CAF50;
font-weight: bold;
position: absolute;
left: 10px;
}
/* 按钮样式 */
.button {
display: inline-block;
color: white;
text-decoration: none;
padding: 14px 35px;
border-radius: 6px;
font-weight: 500;
margin: 25px 0;
transition: all 0.3s ease;
box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
border: none;
cursor: pointer;
font-size: 16px;
}
.button:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}
.button-security {
background: linear-gradient(to right, #4CAF50, #2E7D32);
}
/* 标签样式 */
.email-tag {
display: inline-block;
color: white;
padding: 5px 12px;
border-radius: 20px;
font-size: 14px;
font-weight: 500;
margin-bottom: 15px;
}
.email-tag-security {
background: linear-gradient(to right, #4CAF50, #2E7D32);
}
/* 邮件底部 */
.email-footer {
background-color: #f8f9fa;
padding: 35px 40px;
text-align: center;
border-top: 1px solid #eaeaea;
}
.qrcode-section {
margin-bottom: 25px;
padding: 20px;
background-color: white;
border-radius: 10px;
display: inline-block;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.qrcode {
max-width: 130px;
height: auto;
margin-bottom: 10px;
border-radius: 8px;
}
.qrcode-text {
font-size: 14px;
color: #666;
margin: 5px 0;
}
.footer-links {
margin: 25px 0;
display: flex;
justify-content: center;
flex-wrap: wrap;
}
.footer-link {
color: #666;
text-decoration: none;
font-size: 14px;
margin: 0 12px;
transition: color 0.3s ease;
position: relative;
}
.footer-link:hover {
color: #4CAF50;
}
.footer-link:not(:last-child)::after {
content: '|';
position: absolute;
right: -15px;
color: #ddd;
}
.copyright {
font-size: 13px;
color: #999;
margin-top: 20px;
}
/* 响应式调整 */
@media screen and (max-width: 600px) {
.email-header, .email-content, .email-footer {
padding: 25px;
}
.content-title {
font-size: 22px;
}
.button {
display: block;
text-align: center;
padding: 16px;
}
.info-grid {
grid-template-columns: 1fr;
}
.footer-links {
flex-direction: column;
}
.footer-link {
margin: 5px 0;
}
.footer-link:not(:last-child)::after {
display: none;
}
}
</style>
</head>
<body>
<div class="email-container">
<!-- 邮件头部 -->
<div class="email-header">
<div class="logo-container">
<h1 class="company-name">小蚂蚁云</h1>
</div>
<p class="header-text">专业服务,值得信赖</p>
</div>
<!-- 账号异地登录检测提醒模板 -->
<div class="email-content">
<span class="email-tag email-tag-security">安全提醒</span>
<h2 class="content-title">检测到异常登录活动</h2>
<div class="security-alert-icon" style="text-align: center; margin: 20px 0;">
<div class="icon-circle alert-icon"></div>
<h3 style="color: #2E7D32; margin-bottom: 10px;">发现可疑登录</h3>
<p style="color: #666;">请立即检查您的账户安全</p>
</div>
<p class="content-text">尊敬的 <strong>${username}</strong>,</p>
<p class="content-text">我们检测到您的账户在陌生设备上进行了登录尝试:</p>
<div class="info-card security-summary">
<div class="info-card-title security-summary-title">登录详情</div>
<div class="info-grid">
<div class="info-item">
<span class="info-label">登录时间</span>
<span class="info-value">${loginTime}</span>
</div>
<div class="info-item">
<span class="info-label">登录地点</span>
<span class="info-value">${loginAddress}</span>
</div>
<div class="info-item">
<span class="info-label">登录设备</span>
<span class="info-value">${loginOs} / ${loginBrowser}浏览器</span>
</div>
<div class="info-item">
<span class="info-label">IP地址</span>
<span class="info-value">{$loginIp}</span>
</div>
</div>
</div>
<div class="steps-container">
<div class="steps-title">安全建议</div>
<div class="step">
<div class="step-number">1</div>
<div class="step-text">如果这不是您的登录行为,请立即更改密码</div>
</div>
<div class="step">
<div class="step-number">2</div>
<div class="step-text">启用双重验证增强账户安全</div>
</div>
<div class="step">
<div class="step-number">3</div>
<div class="step-text">检查账户活动记录,确认无其他异常</div>
</div>
</div>
<a href="#" class="button button-security">立即检查账户</a>
<div class="security-notice">
<div class="security-notice-title">重要安全提醒</div>
<p class="content-text">如果您确认这不是您的登录行为,请立即采取以下措施:</p>
<ul class="security-list">
<li>立即更改账户密码</li>
<li>检查账户绑定的邮箱和手机是否安全</li>
<li>查看最近的账户活动记录</li>
<li>如发现其他异常,请立即联系客服</li>
</ul>
</div>
<p class="content-text">如果您确认这是您的登录行为,请忽略此邮件。</p>
<p class="content-text">为保障您的账户安全,请定期更新密码。<br> 小蚂蚁云 安全团队</p>
</div>
<!-- 邮件底部 -->
<div class="email-footer">
<div class="qrcode-section">
<img src="http://images.xiaomayicloud.com/img_qq.png" alt="扫码联系微信客服" class="qrcode">
<p class="qrcode-text">扫码联系微信客服</p>
</div>
<p class="copyright">© 2026 小蚂蚁云团队 版权所有</p>
<p class="copyright">本邮件为系统自动发送,请勿直接回复</p>
</div>
</div>
</body>
</html>