<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>WebSoft密码重置</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
            line-height: 1.6;
            color: #333;
            background-color: #f5f5f5;
        }

        .email-container {
            max-width: 600px;
            margin: 0 auto;
            background-color: #ffffff;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        .header {
            background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
            padding: 40px 30px;
            text-align: center;
            color: white;
        }

        .logo {
            font-size: 32px;
            font-weight: bold;
            margin-bottom: 10px;
            letter-spacing: 2px;
        }

        .header-subtitle {
            font-size: 16px;
            opacity: 0.9;
            margin-bottom: 20px;
        }

        .warning-icon {
            width: 60px;
            height: 60px;
            background-color: #ffa502;
            border-radius: 50%;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 30px;
        }

        .content {
            padding: 40px 30px;
        }

        .title {
            font-size: 24px;
            color: #333;
            margin-bottom: 20px;
            text-align: center;
        }

        .message {
            font-size: 16px;
            color: #666;
            margin-bottom: 30px;
            text-align: center;
            line-height: 1.8;
        }

        .reset-info {
            background-color: #fff5f5;
            border-radius: 8px;
            padding: 25px;
            margin: 30px 0;
            border-left: 4px solid #ff6b6b;
        }

        .reset-info h3 {
            color: #333;
            margin-bottom: 15px;
            font-size: 18px;
        }

        .info-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 0;
            border-bottom: 1px solid #fee;
        }

        .info-item:last-child {
            border-bottom: none;
        }

        .info-label {
            font-weight: 600;
            color: #555;
            min-width: 80px;
        }

        .info-value {
            color: #333;
            font-family: 'Courier New', monospace;
            background-color: #fff;
            padding: 5px 10px;
            border-radius: 4px;
            border: 1px solid #ddd;
        }

        .cta-section {
            text-align: center;
            margin: 40px 0;
        }

        .cta-button {
            display: inline-block;
            background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
            color: white;
            text-decoration: none;
            padding: 15px 40px;
            border-radius: 25px;
            font-size: 16px;
            font-weight: 600;
            transition: transform 0.2s ease;
            box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
        }

        .cta-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
        }

        .security-tips {
            background-color: #f8f9fa;
            border-radius: 8px;
            padding: 25px;
            margin: 30px 0;
        }

        .security-tips h3 {
            color: #333;
            margin-bottom: 15px;
            font-size: 18px;
        }

        .security-tips ul {
            list-style: none;
            padding: 0;
        }

        .security-tips li {
            padding: 8px 0;
            color: #666;
            position: relative;
            padding-left: 25px;
        }

        .security-tips li:before {
            content: "🔒";
            position: absolute;
            left: 0;
        }

        .footer {
            background-color: #2c3e50;
            color: #ecf0f1;
            padding: 30px;
            text-align: center;
        }

        .footer-content {
            margin-bottom: 20px;
        }

        .footer-links {
            margin: 20px 0;
        }

        .footer-links a {
            color: #3498db;
            text-decoration: none;
            margin: 0 15px;
            font-size: 14px;
        }

        .footer-links a:hover {
            text-decoration: underline;
        }

        .copyright {
            font-size: 12px;
            color: #95a5a6;
            margin-top: 20px;
            padding-top: 20px;
            border-top: 1px solid #34495e;
        }

        .warning-notice {
            background-color: #fff3cd;
            border: 1px solid #ffeaa7;
            border-radius: 6px;
            padding: 15px;
            margin: 20px 0;
            color: #856404;
        }

        .warning-notice strong {
            color: #533f03;
        }

        @media (max-width: 600px) {
            .email-container {
                margin: 0;
                box-shadow: none;
            }

            .header, .content, .footer {
                padding: 20px;
            }

            .logo {
                font-size: 24px;
            }

            .title {
                font-size: 20px;
            }
        }
    </style>
</head>
<body>
    <div class="email-container">
        <!-- Header -->
        <div class="header">
            <div class="logo">WebSoft</div>
            <div class="header-subtitle">企业级数字化解决方案</div>
            <div class="warning-icon">⚠️</div>
        </div>

        <!-- Content -->
        <div class="content">
            <h1 class="title">密码重置通知</h1>
            <p class="message">
                您好！我们收到了您的密码重置请求。为了保障您的账户安全，请查看以下信息。
            </p>

            <!-- Reset Information -->
            <div class="reset-info">
                <h3>🔑 重置信息</h3>
                <div class="info-item">
                    <span class="info-label">账号：</span>
                    <span class="info-value">${username!}</span>
                </div>
                <div class="info-item">
                    <span class="info-label">手机号：</span>
                    <span class="info-value">${phone!}</span>
                </div>
                <div class="info-item">
                    <span class="info-label">重置时间：</span>
                    <span class="info-value">${resetTime!}</span>
                </div>
                <% if(has(newPassword)) { %>
                <div class="info-item">
                    <span class="info-label">新密码：</span>
                    <span class="info-value">${newPassword!}</span>
                </div>
                <% } %>
            </div>

            <!-- Warning Notice -->
            <div class="warning-notice">
                <strong>⚠️ 重要提醒：</strong> 如果这不是您本人的操作，请立即联系客服并修改密码！
            </div>

            <!-- CTA Button -->
            <div class="cta-section">
                <a href="https://websoft.top/login" class="cta-button">立即登录</a>
            </div>

            <!-- Security Tips -->
            <div class="security-tips">
                <h3>🛡️ 安全建议</h3>
                <ul>
                    <li>建议您立即登录并修改为更安全的密码</li>
                    <li>密码应包含大小写字母、数字和特殊字符</li>
                    <li>不要在多个网站使用相同的密码</li>
                    <li>定期更换密码以保障账户安全</li>
                    <li>如发现异常登录，请及时联系客服</li>
                </ul>
            </div>
        </div>

        <!-- Footer -->
        <div class="footer">
            <div class="footer-content">
                <strong>WebSoft Admin</strong><br>
                专业的企业数字化转型服务商
            </div>

            <div class="footer-links">
                <a href="https://websoft.top">官方网站</a>
                <a href="https://websoft.top/help">帮助中心</a>
                <a href="https://websoft.top/contact">联系我们</a>
            </div>

            <div class="copyright">
                © 2025 WebSoft Inc.
            </div>
        </div>
    </div>
</body>
</html>
