##########################################################
#
# no-server-data Error Output template for Privoxy.
#
##########################################################
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>

<head>
  <title>502 - 红星加速器</title>
  <meta http-equiv="Content-Style-Type" content="text/css">
  <meta http-equiv="Content-Script-Type" content="text/javascript">
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <meta name="robots" content="noindex,nofollow">
  <link rel="shortcut icon" href="@default-cgi@error-favicon.ico">
  <style type="text/css">
    body {
      font-family: 'Segoe UI', Arial, sans-serif;
      background-color: #f5f9f7;
      color: #333;
      margin: 0;
      padding: 20px;
      line-height: 1.6;
    }
    .container {
      max-width: 800px;
      margin: 40px auto;
      background-color: #ffffff;
      border-radius: 8px;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
      overflow: hidden;
    }
    .header {
      background-color: #4CAF50;
      color: white;
      padding: 20px;
      display: flex;
      align-items: center;
    }
    .status {
      font-size: 36px;
      font-weight: bold;
      padding: 10px 20px;
      background-color: rgba(255, 255, 255, 0.2);
      border-radius: 6px;
      margin-right: 20px;
    }
    .title {
      font-size: 24px;
      font-weight: 500;
    }
    .content {
      padding: 30px;
    }
    .warning {
      background-color: #e8f5e9;
      border-left: 4px solid #4CAF50;
      padding: 15px 20px;
      margin-bottom: 20px;
      border-radius: 0 4px 4px 0;
    }
    h2 {
      color: #2E7D32;
      margin-top: 0;
    }
    a {
      color: #00897B;
      text-decoration: none;
    }
    a:hover {
      text-decoration: underline;
    }
    .try-again-btn {
      display: inline-block;
      background-color: #4CAF50;
      color: white;
      padding: 10px 20px;
      border-radius: 4px;
      margin-top: 15px;
      text-decoration: none;
      transition: background-color 0.3s;
    }
    .try-again-btn:hover {
      background-color: #388E3C;
      text-decoration: none;
    }
  </style>
</head>

<body>
  <div class="container">
    <div class="header">
      <div class="status">502</div>
      <div class="title">

#include mod-title

      </div>
    </div>

    <div class="content">
<!-- @if-unstable-start -->
# This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
      <div class="warning">

#include mod-unstable-warning

      </div>
<!-- if-unstable-end@ -->

      <div class="warning">
        <h2>未收到服务器或转发器数据</h2>
        <p>您对 <a href="@protocol@@hostport@@path@"><b>@protocol@@hostport@@path@</b></a> 的请求无法完成，因为与 <b>@host@</b> (@host-ip@) 的连接在红星加速器收到此请求的任何数据之前已关闭。
        </p>
        <p>这可能是暂时性故障，您可以尝试
          <a href="@protocol@@hostport@@path@" class="try-again-btn">重新连接</a>
        </p>
        <p>还有可能是您当前网站没有加入自动代理规则。请在规则中加入，或者切换app到全局代理模式。
        </p>
        <p>
          如果您经常看到此消息，请考虑从
          <a target="blank" href="https://redstarv.com">红星加速器官网</a> 获取帮助
        </p>
      </div>
    </div>
  </div>
</body>
</html>
