package email

const (
	DefaultEmailVerifyTemplate = `<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body style="margin:0; padding:0; background-color:#f4f4f4; font-family:'PingFang SC','Microsoft YaHei',Arial,sans-serif;">
<table width="100%" cellpadding="0" cellspacing="0" border="0" bgcolor="#f4f4f4">
    <tr>
        <td align="center">
            <table width="600" cellpadding="0" cellspacing="0" border="0" bgcolor="#ffffff" style="min-height:740px; padding-bottom:53px;">

                <!-- Top Logo -->
                <tr>
                    <td align="right" style="padding:32px 40px 0 0;">
                        <img width="82" height="47"  style="display:block;"  src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAN4AAABeCAYAAABM16pvAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAqLSURBVHgB7Z3xedw2EsXf5bv/z1fBTSpIUoGQCk4deK+CsyswXUGcCuRUEF8FZCqwU8HyKrBSQbKjNb1LicSCxDyA0OL3fZMo4kaDBTDA4BEE/4Yw2oM55OP1wd7Bno8H+x723B/snzPX3MHuwOGXgzWwwbJufj7YK9ij5fsIW94f7D8g8/fAz71F3sD7BA6MoFM+XfAp4NDDhhewrZsOHBjt9zsS8E3g5zrwKi/UvzUOPHyNdwMeVgOUdYfuwYFRl6xBfkRo4ClvkQdWRQh4dMjjd6uBV1LGsrnA65Bn1istzVR6pPfbwY7vYAer/azTYUXLeo8ELAk8Jcesx8q5LTvXOdpwc53NgYdlPVl26JIGzv8jEUsDr0P6WY/VcA4cLgkrLCzrybKcrIHTwZ4kaaayNPCU1LNeB3uYAeDraKxZVrm29V2xwoqyJvA6pJv1Slzfdcjjtwor8Ww68JRUs14VVsLoYIf1+o4hVmgZX8AWLWePRKwNvA5pZr0qrIRhWU+WdcMSK4qe7ZS1gaekmPWqsBLvdyklKJqM9V2SHSsDoVvGpuhw3Bv4EjwYDVeFlXmsU7jOcy3mPp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B1sC8zZLLWow7/KuMZdnD6J5frtkjhhaglXlu5hGizw+wg9meqU0HujnxRgeYfcay/YSFfDPxBViUJqz0KP9RIIfnQXewHzD/ZlntWz/Ctu6WoAOCBr5gJS14o4LAnrpjxU8LXjlTWYNlNAnL9th8s7KXKqyENfivRL9bFVZS2x7rs5ld5u9+hwUTjRAL0oJDA9DK7Dx+9ySfVVg5mqaUsQOQIO+6T33PDhzna7wSd6zcgMfcmlQ7hICD5Y4VQXn0OK7VNF27Rxw9juvC1Mc7DHhP0ksVeM9JWLnWHStsfsYxUDrYoW24g835MEsYxJ6gwaMFb9oV2CMArbxVWElnuha7BR+HNKmnLhcWpclVWDlZ4/FbhRU7a5E2JRZwg29x0AmxMC04NACtzM7jd0/yaSmsWB9uZG2rZXcjGLudFgedUnesjG2uApkd2nLHigOvnLHWYhvCj+VWsz0WBt0grlRh5cQ9yhdWHGyJVRgHXuMoOvTIj8563yK+LD0WCCmP0VGINcIJ7BGAVt7W47ch+nWww3odqhnRPuL/1zRsqyqrYH197RHZv6uwcrLG47cUYcX6zBNFsC74LG6Gp6DBsu+ldSGIQLC8MkOtBYcGoJXZJ23vST63LKycl00QXgf6OYey0LYPmYSig25w9ifJGnBoAVqZZcbntQorj8smuBx8pcxyUwj8388k6JQGvA7FujGaIzV2JJ9qltK69YOhU2UTTHdOrT+H8tFBY+qWg1nQKS14HUpgD3PmaT1+rTv0uTnYYb0OdTN+BOPgU7+lznJzNCAFnVKasOIASnnVGo/faxVWfGWTL/5y3gxno2psC+Og+wv3EfyfWXiRKwAAAABJRU5ErkJggg==" alt="{{.SiteName}} top-Logo">
                    </td>
                </tr>

                <!-- Spacer -->
                <tr><td height="70"></td></tr>

                <!-- Main Content -->
                <tr>
                    <td style="padding:0 43px 0 43px;">
                        <h1 style="font-weight:600; font-size:36px; line-height:1.4; color:#0F2C53; margin:0 0 24px 0;">
                            验证码
                        </h1>
                        <p style="font-weight:400; font-size:16px; line-height:1.4; color:#0F2C53; margin:0 0 24px 0; white-space:pre-line;">
                            亲爱的用户，

                            你正在进行{{.SiteName}}账户相关操作
                            请在系统提示时输入以下验证码：
                        </p>

                        <div style="font-weight:600; font-size:48px; line-height:1.4; color:#0F2C53; margin:24px 0; letter-spacing:2px;">
                            {{.Code}}
                        </div>

                        <p style="font-weight:400; font-size:16px; line-height:1.4; color:#0F2C53; margin:24px 0 0 0; white-space:pre-line;">
                            该验证码将在 {{.Expire}} 分钟 后过期。

                            如果这不是你本人操作，请忽略本邮件，你的账户将保持安全。

                            谢谢，
                            {{.SiteName}}团队
                        </p>
                    </td>
                </tr>

                <!-- Spacer -->
                <tr><td height="50"></td></tr>

                <!-- Footer Logo -->
                <tr>
                    <td align="center" style="padding-bottom:20px;">
                        <img width="52" height="52" style="display:block;" src="data:image/png;base64,[encoded data, 12940 characters]" alt="{{.SiteName}} bottom-Logo">
                    </td>
                </tr>

            </table>
        </td>
    </tr>
</table>
</body>
</html>
`
	DefaultMaintenanceEmailTemplate = `
<!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>
      body {
        color: black;
      }
      .container {
        border-radius: 5px;
        width: 500px;
        margin: 20px auto 0;
        border: 1px solid #cce7ff;
        background-color: #f0f8ff;
        padding: 25px 30px;
      }
      .header {
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
      }
      .logo {
        width: 56px;
        height: 56px;
        object-fit: cover;
        margin-right: 10px;
      }
      .site-name {
        font-size: 18px;
        font-weight: bold;
        margin: 0;
      }
      .content {
        margin: 20px 0;
        font-size: 14px;
      }
      .greeting {
        font-weight: 700;
        margin: 5px 0;
      }
      .highlight {
        margin: 0 2px;
        font-weight: 700;
        color: #007bff;
      }
      .footer {
        border-top: #99ccff 1px solid;
        margin-top: 20px;
        padding-top: 5px;
        font-size: 12px;
        font-weight: 700;
        color: #777;
      }
    </style>
  </head>
  <body>
    <div class="container">
      <div class="header">
        <img src="{{.SiteLogo}}" class="logo" />
        <p class="site-name">{{.SiteName}}</p>
      </div>
      <div class="content">
        <p class="greeting">Hi, 尊敬的用户</p>
        <p>
          我们计划在<span class="highlight">{{.MaintenanceDate}}</span
          >进行系统维护，预计维护时间为<span class="highlight">{{.MaintenanceTime}}</span
          >。在此期间，您可能会遇到服务中断或无法访问的情况。
        </p>
        <p>
          维护完成后，系统将自动恢复。如果您有任何问题，请随时联系我们的支持团队。
        </p>
      </div>
      <div class="footer">此为系统邮件，请勿回复</div>
    </div>
  </body>
</html>
`
	DefaultExpirationEmailTemplate = `<!doctype html>
<html>
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>服务到期通知</title>
    <style>
      body {
        color: black;
      }
      .container {
        border-radius: 5px;
        width: 500px;
        margin: 20px auto 0;
        border: 1px solid #cce7ff;
        background-color: #f0f8ff;
        padding: 25px 30px;
      }
      .header {
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
      }
      .logo {
        width: 56px;
        height: 56px;
        object-fit: cover;
        margin-right: 10px;
      }
      .site-name {
        font-size: 18px;
        font-weight: bold;
        margin: 0;
      }
      .content {
        margin: 20px 0;
        font-size: 14px;
      }
      .greeting {
        font-weight: 700;
        margin: 5px 0;
      }
      .highlight {
        margin: 0 2px;
        font-weight: 700;
        color: #007bff;
      }
      .footer {
        border-top: #99ccff 1px solid;
        margin-top: 20px;
        padding-top: 5px;
        font-size: 12px;
        font-weight: 700;
        color: #777;
      }
    </style>
  </head>
  <body>
    <div class="container">
      <div class="header">
        <img src="{{.SiteLogo}}" class="logo" />
        <p class="site-name">{{.SiteName}}</p>
      </div>
      <div class="content">
        <p class="greeting">Hi, 尊敬的用户</p>
        <p>
          您的服务即将在<span class="highlight">{{.ExpireDate}}</span
          >到期，请及时续费以保证服务不间断。
        </p>
        <p>
          如需帮助，请联系客服团队。感谢您的支持！
        </p>
      </div>
      <div class="footer">此为系统邮件，请勿回复</div>
    </div>
  </body>
</html>
`
	DefaultTrafficExceedEmailTemplate = `<!doctype html>
<html>
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>流量用尽通知</title>
    <style>
      .container {
        border-radius: 5px;
        width: 500px;
        margin: 20px auto 0;
        border: 1px solid #cce7ff;
        background-color: #f0f8ff;
        padding: 25px 30px;
      }
      .header {
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
      }
      .logo {
        width: 56px;
        height: 56px;
        object-fit: cover;
        margin-right: 10px;
      }
      .site-name {
        font-size: 18px;
        font-weight: bold;
        margin: 0;
      }
      .content {
        margin: 20px 0;
        font-size: 14px;
      }
      .greeting {
        font-weight: 700;
        margin: 5px 0;
      }
      .highlight {
        color: #007bff;
      }
      .footer {
        border-top: #99ccff 1px solid;
        margin-top: 20px;
        padding-top: 5px;
        font-size: 12px;
        font-weight: 700;
        color: #777;
      }
    </style>
  </head>
  <body>
    <div class="container">
      <div class="header">
        <img src="{{.SiteLogo}}" class="logo" />
        <p class="site-name">{{.SiteName}}</p>
      </div>
      <div class="content">
        <p class="greeting">Hi, 尊敬的用户</p>
        <p>
          您的流量已经用尽，请及时购买流量以继续使用我们的服务。
        </p>
        <p>
          如需帮助，请联系客服团队。感谢您的支持！
        </p>
      </div>
      <div class="footer">此为系统邮件，请勿回复</div>
    </div>
  </body>
</html>`

	DefaultDeleteAccountEmailTemplate = `<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body style="margin:0; padding:0; background-color:#f4f4f4; font-family:'PingFang SC','Microsoft YaHei',Arial,sans-serif;">
<table width="100%" cellpadding="0" cellspacing="0" border="0" bgcolor="#f4f4f4">
    <tr>
        <td align="center">
            <table width="600" cellpadding="0" cellspacing="0" border="0" bgcolor="#ffffff" style="min-height:740px; padding-bottom:53px;">

                <!-- Top Logo -->
                <tr>
                    <td align="right" style="padding:32px 40px 0 0;">
                        {{if .SiteLogo}}<img height="47" style="display:block;" src="{{.SiteLogo}}" alt="{{.SiteName}}">{{end}}
                    </td>
                </tr>

                <!-- Spacer -->
                <tr><td height="70"></td></tr>

                <!-- Main Content -->
                <tr>
                    <td style="padding:0 43px 0 43px;">
                        <h1 style="font-weight:600; font-size:36px; line-height:1.4; color:#0F2C53; margin:0 0 24px 0;">
                            账户注销确认
                        </h1>
                        <p style="font-weight:400; font-size:16px; line-height:1.4; color:#0F2C53; margin:0 0 24px 0; white-space:pre-line;">
                            亲爱的用户，

                            我们收到了你注销 {{.SiteName}} 账户的请求。
                            请在系统提示时输入以下验证码以完成注销：
                        </p>

                        <div style="font-weight:600; font-size:48px; line-height:1.4; color:#0F2C53; margin:24px 0; letter-spacing:2px;">
                            {{.Code}}
                        </div>

                        <p style="font-weight:400; font-size:16px; line-height:1.4; color:#0F2C53; margin:24px 0 0 0;">
                            该验证码将在 {{.Expire}} 分钟 后过期。
                        </p>

                        <!-- Warning Box -->
                        <table width="100%" cellpadding="0" cellspacing="0" border="0" style="margin:24px 0;">
                            <tr>
                                <td style="background:#FFF3CD; border-left:4px solid #FF8C00; padding:16px 20px; border-radius:4px;">
                                    <p style="margin:0; font-size:15px; color:#5C3D00; line-height:1.6;">
                                        ⚠️ <strong>重要提示：</strong>账户注销后，你的所有数据（包括订阅、套餐、账户信息）将被<strong>永久删除且不可恢复</strong>。请确认你已充分了解此操作的后果。
                                    </p>
                                </td>
                            </tr>
                        </table>

                        <p style="font-weight:400; font-size:16px; line-height:1.4; color:#0F2C53; margin:24px 0 0 0; white-space:pre-line;">
                            如果这不是你本人操作，请忽略本邮件，你的账户将保持安全。

                            谢谢，
                            {{.SiteName}}团队
                        </p>
                    </td>
                </tr>

                <!-- Spacer -->
                <tr><td height="50"></td></tr>

                <!-- Footer Logo -->
                <tr>
                    <td align="center" style="padding-bottom:20px;">
                        {{if .SiteLogo}}<img width="52" height="52" style="display:block; margin:0 auto;" src="{{.SiteLogo}}" alt="{{.SiteName}}">{{end}}
                    </td>
                </tr>

            </table>
        </td>
    </tr>
</table>
</body>
</html>`
)
