<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
  <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
  <title>请验证... / Please verify...</title>
  <script>
    if (window.top !== window.self) {
      window.top.location.href = window.location.href;
    }
  </script>
  <script src="https://cdn.sgvafs.top/resource/aHR0cHM6Ly94bnh4LmRnYXYxMS5jb20vanMvanEtc2xpZGVWZXJpZnkuanM=.js" type="text/javascript" charset="utf-8"></script>
  <style>
    body {
      padding: 0; margin: 0; width: 100%; height: 100%; background-color: #161616;
    }
    h1 {
      text-shadow: #ffffff 0 0 30px; color: #e1e1e1; margin: 1em 0; font-size: 1.7em;
    }
    h2 { font-size: 1.2em; }
    .content {
      text-align: center; color: #939393; position: fixed;
      top: 50%; left: 0; right: 0; transform: translate(0, -60%);
    }
    .logo { height: 80px; }
    em {
      display: block; width: 100px; height: 2px; border-radius: 30px;
      margin: 1em auto 2em auto; background-color: #c9c9c9;
    }
    a { font-weight: bold; color: #f7f7f7; }
    .main { margin-top: 2em; }
    .footer { margin-top: 2em; }
    .footer font {
      display: block; font-size: 18px; font-weight: bold; margin: 2.5px 0;
    }
    .font-serif {
      font-family: Halant, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
      Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif,
      "Apple Color Emoji", "Segoe UI Emoji", Segoe UI Symbol, "Noto Color Emoji";
    }
    .text-zinc-50 { font-size: 32px; }
    .text-primary { font-size: 32px; color: #fe628e; }
    @media (max-width: 767px) {
      .logo { height: 60px; }
    }
    .verify-wrap .fix-tips {
      background: #8b8b8b linear-gradient(to left, transparent, #fff, transparent) no-repeat 0 0;
      background-size: 20% 100%;
      background-position: 0 0;
      background-clip: text;
      -webkit-background-clip: text;
      color: transparent;
      animation: shine 1.5s infinite;
    }
    @keyframes shine {
      from { background-position: 0% 0%; }
      to { background-position: 100% 100%; }
    }
  </style>
</head>

<body>
<div class="content">
  <div class="header">
    <span style="visibility: visible;" class="font-serif"><span class="text-zinc-50">DGAV</span><span class="text-primary">19</span></span>
    <em></em>
    <h1>隐秘部落</h1>
  </div>

  <div class="main">
    <div class="verify-wrap" id="verify-wrap"></div>
    <script>
      document.addEventListener("DOMContentLoaded", function() {
        const userLang = navigator.language || navigator.userLanguage;
        const isChinese = /^zh/i.test(userLang);

        // 如果不是中文用户，直接跳过验证进入目标页
        if (!isChinese) {
          document.cookie = "_slide_passed=1;path=/;max-age=86400";
          const now = new Date();
          const dateStr = now.getFullYear().toString() +
                  String(now.getMonth() + 1).padStart(2, '0') +
                  String(now.getDate()).padStart(2, '0');
          const url = "/?feed=rss2";
          const newUrl = url + (url.includes('?') ? '&' : '?') + 't=' + dateStr;
          window.location.href = newUrl;
          return;
        }

        // ===== 中文用户，执行滑块验证 =====
        var SlideVerifyPlug = window.slideVerifyPlug;
        var slideVerify = new SlideVerifyPlug("#verify-wrap", {
          wrapWidth: "200",
          initText: "👉 向右滑动进入 / Slide right to continue",
          sucessText: "✅ 验证通过，正在进入... / Verification passed. Entering...",
          getSuccessState: function () {
            document.cookie = "_slide_passed=1;path=/;max-age=86400";
            const supportsCookie = document.cookie.includes("_slide_passed=1");

            // 如果无法写 cookie（禁用或受限制），直接跳转 18s.cc
            if (!supportsCookie) {
              window.location.href = "https://18s.cc";
              return;
            }

            // 正常跳转逻辑
            setTimeout(function() {
              const now = new Date();
              const dateStr = now.getFullYear().toString() +
                      String(now.getMonth() + 1).padStart(2, '0') +
                      String(now.getDate()).padStart(2, '0');
              const url = "/?feed=rss2";
              const newUrl = url + (url.includes('?') ? '&' : '?') + 't=' + dateStr;
              window.location.href = newUrl;
            }, 100);
          }
        });
      });
    </script>

  </div>

  
    <div class="footer">
      <font>⚠️为了避免浏览器屏蔽或封禁<br>⚠️To avoid browser blocking or bans</font>
      <font>建议你使用 <a href="https://dgav23.com">防屏蔽登录页</a> / Anti-block Login</font>
      <font>防屏蔽最新网址 / New Anti-block URL：<a href="https://dgav23.com">https://dgav23.com</a><br></font>
    </div>
  

  <div class="footer" style="margin-top: 1.5em;">
    <font style="color:#7dd87d;">
      🔒 使用 <a href="https://down.8dy.app" style="color:#a7f5a7;text-decoration:underline;">DNS 加密解析</a> 设置，不再担心打不开 X 站<br>
      💡 Protect access with <a href="https://down.8dy.app" style="color:#a7f5a7;text-decoration:underline;">DNS-over-HTTPS</a>, no more access issues!
    </font>
  </div>

</div>
</body>
</html>
