<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Page Not Found - 404Scientific Solutions to Improve Male Erectile Function, Extend Sexual Performance, and Boost Energy</title>
  <meta name="description" content="Providing safe, natural, and science-based methods to help adult men improve erectile function, extend sexual performance, and enhance daily energy and confidence. Content includes healthy habits, nutritional support, and lifestyle optimization strategies.">
  <meta name="keywords" content="men&#39;s health,male vitality,erectile function improvement,sexual performance enhancement,energy boost,confidence,natural supplements,function improvement,quality of life" >
  <script src="https://cdn.tailwindcss.com"></script>
  <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=SF+Pro+Display:wght@400;500;600&display=swap" rel="stylesheet">
  <style>
    * {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    }

    body {
      background-color: #f8fafc;
    }

    .sf-pro {
      font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    }
  </style>
</head>
<body class="bg-slate-50 min-h-screen flex flex-col">

<!-- 引入头部 -->
<header
        class="fixed top-0 left-0 right-0 bg-white shadow-md z-50"
>
  <div class="max-w-7xl mx-auto px-4 h-16 flex items-center justify-between">

    <!-- Logo -->
    <h1 class="text-xl font-bold">
      <a href="/" class="text-blue-700">Male Health &amp; Vitality Center</a>
    </h1>

    <!-- PC Navigation 电脑端导航 -->
    <nav class="hidden md:flex space-x-8 text-gray-700 font-medium">
      <a href="/" class="hover:text-blue-700">Home</a>
      <a href="/articles" class="hover:text-blue-700">Science Reads</a>
      <a href="/products" class="hover:text-blue-700">Products</a>
      <!-- Order Query Button 订单查询按钮 -->
      <a href="javascript:void(0);" id="orderQueryBtn" class="hover:text-blue-700">Order Query</a>
    </nav>

    <!-- Mobile Menu Button 移动端菜单按钮 -->
    <button
            id="mobile-menu-button"
            class="md:hidden p-2 rounded-lg text-gray-700 hover:bg-gray-100 transition-colors z-50"
            aria-expanded="false"
            aria-label="Open menu"
    >
      <!-- Hamburger Icon 汉堡菜单图标 -->
      <svg id="icon-open" class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
              d="M4 6h16M4 12h16M4 18h16"/>
      </svg>
      <!-- Close Icon 关闭图标 -->
      <svg id="icon-close" class="w-6 h-6 hidden" fill="none" stroke="currentColor" viewBox="0 0 24 24">
        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
              d="M6 18L18 6M6 6l12 12"/>
      </svg>
    </button>

    <script>
      document.addEventListener('DOMContentLoaded', function() {
        const btn = document.getElementById('mobile-menu-button');
        const menu = document.getElementById('mobile-menu');
        const openIcon = document.getElementById('icon-open');
        const closeIcon = document.getElementById('icon-close');

        if (!btn || !menu || !openIcon || !closeIcon) {
          console.warn('Mobile menu elements not found 移动菜单元素未找到');
          return;
        }

        let isMenuOpen = false;

        function toggleMenu() {
          if (isMenuOpen) {
            // Close menu 关闭菜单
            menu.style.transform = 'translateY(-16px)';
            menu.style.opacity = '0';
            menu.style.pointerEvents = 'none';
            openIcon.classList.remove('hidden');
            closeIcon.classList.add('hidden');
            btn.setAttribute('aria-expanded', 'false');
            btn.setAttribute('aria-label', 'Open menu');
          } else {
            // Open menu 打开菜单
            menu.style.transform = 'translateY(0)';
            menu.style.opacity = '1';
            menu.style.pointerEvents = 'auto';
            openIcon.classList.add('hidden');
            closeIcon.classList.remove('hidden');
            btn.setAttribute('aria-expanded', 'true');
            btn.setAttribute('aria-label', 'Close menu');
          }
          isMenuOpen = !isMenuOpen;
        }

        // Button click event 按钮点击事件
        btn.addEventListener('click', function(e) {
          e.stopPropagation();
          toggleMenu();
        });

        // Click outside to close menu 点击页面其他地方关闭菜单
        document.addEventListener('click', function(e) {
          if (isMenuOpen && !menu.contains(e.target) && !btn.contains(e.target)) {
            toggleMenu();
          }
        });

        // ESC key to close menu ESC键关闭菜单
        document.addEventListener('keydown', function(e) {
          if (e.key === 'Escape' && isMenuOpen) {
            toggleMenu();
          }
        });

        // Close menu on window resize 窗口大小变化时关闭菜单
        window.addEventListener('resize', function() {
          if (window.innerWidth >= 768 && isMenuOpen) {
            toggleMenu();
          }
        });

        // Ensure menu is initially closed 确保菜单初始状态为关闭
        menu.style.transform = 'translateY(-16px)';
        menu.style.opacity = '0';
        menu.style.pointerEvents = 'none';
      });
    </script>
  </div>

  <!-- Mobile Menu 移动端菜单 -->
  <div
          id="mobile-menu"
          class="md:hidden absolute top-full left-0 right-0 bg-white shadow-lg border-t transform transition-transform duration-200 ease-out -translate-y-4 opacity-0 pointer-events-none"
  >
    <nav class="flex flex-col px-6 py-4 space-y-2">
      <a href="/" class="py-3 px-4 text-base font-medium text-gray-800 hover:text-blue-600 hover:bg-blue-50 rounded-lg transition-colors duration-200">Home</a>
      <a href="/articles" class="py-3 px-4 text-base font-medium text-gray-800 hover:text-blue-600 hover:bg-blue-50 rounded-lg transition-colors duration-200">Science Reads</a>
      <a href="/products" class="py-3 px-4 text-base font-medium text-gray-800 hover:text-blue-600 hover:bg-blue-50 rounded-lg transition-colors duration-200">Products</a>
      <!-- Mobile Order Query Button 移动端订单查询按钮 -->
      <a href="javascript:void(0);" id="mobileOrderQueryBtn" class="py-3 px-4 text-base font-medium text-gray-800 hover:text-blue-600 hover:bg-blue-50 rounded-lg transition-colors duration-200">Order Query</a>
    </nav>
  </div>

  <!-- Order Query Modal 订单查询弹窗 -->
  <div id="orderQueryModal" class="fixed inset-0 bg-black/50 backdrop-blur-sm hidden z-50 flex items-center justify-center p-4">
    <div class="bg-white rounded-2xl shadow-2xl w-full max-w-sm overflow-hidden animate-scale-in">
      <div class="p-6 space-y-6">
        <!-- Header 头部 -->
        <div class="flex items-center justify-between">
          <div class="flex items-center gap-3">
            <div class="w-10 h-10 bg-blue-100 rounded-xl flex items-center justify-center">
              <i class="fas fa-search text-blue-600"></i>
            </div>
            <div>
              <h3 class="font-bold text-gray-900">Order Query</h3>
              <p class="text-sm text-gray-500">Track Your Order</p>
            </div>
          </div>
          <button id="closeModal" class="w-8 h-8 flex items-center justify-center hover:bg-gray-100 rounded-lg transition-colors">
            <i class="fas fa-times text-gray-500"></i>
          </button>
        </div>

        <!-- Form 表单 -->
        <form id="orderQueryForm" class="space-y-4">
          <div>
            <label class="block text-sm font-medium text-gray-700 mb-2">Order Number</label>
            <input type="text" name="orderNo" placeholder="e.g. ORD202401140001"
                   class="w-full px-4 py-3 border border-gray-300 rounded-xl focus:border-blue-500 focus:ring-2 focus:ring-blue-200 transition-all outline-none">
          </div>

          <div>
            <label class="block text-sm font-medium text-gray-700 mb-2">Email / Phone</label>
            <input type="text" name="contact" placeholder="Enter your email or phone number"
                   class="w-full px-4 py-3 border border-gray-300 rounded-xl focus:border-blue-500 focus:ring-2 focus:ring-blue-200 transition-all outline-none">
          </div>

          <button type="submit"
                  class="w-full bg-gradient-to-r from-blue-500 to-blue-600 text-white font-medium py-3 rounded-xl hover:shadow-lg transition-all duration-300 mt-2">
            Track Order
          </button>
        </form>

        <!-- Help Information 帮助信息 -->
        <div class="pt-4 border-t border-gray-100">
          <div class="flex items-center gap-2 text-sm text-gray-600">
            <i class="fas fa-question-circle text-blue-500"></i>
            <span>Can't find your order number?</span>
            <a href="#" class="text-blue-600 hover:text-blue-800 font-medium ml-auto">Contact Support</a>
          </div>
        </div>
      </div>
    </div>
  </div>

  <style>
    @keyframes scaleIn {
      from {
        opacity: 0;
        transform: scale(0.95);
      }
      to {
        opacity: 1;
        transform: scale(1);
      }
    }

    .animate-scale-in {
      animation: scaleIn 0.2s ease-out;
    }
  </style>

  <script>
    document.addEventListener('DOMContentLoaded', function() {
      // 获取弹窗和按钮
      const modal = document.getElementById('orderQueryModal');
      const openBtns = document.querySelectorAll('#orderQueryBtn, #mobileOrderQueryBtn');
      const closeBtn = document.getElementById('closeModal');
      const form = document.getElementById('orderQueryForm');

      if (!modal) {
        console.warn('Modal element not found 弹窗元素不存在');
        return;
      }

      // 打开弹窗
      openBtns.forEach(btn => {
        btn.addEventListener('click', () => {
          modal.classList.remove('hidden');

          // 关闭移动端菜单（如果打开）
          const mobileMenu = document.getElementById('mobile-menu');
          if (mobileMenu && mobileMenu.style.opacity === '1') {
            document.getElementById('mobile-menu-button').click();
          }
        });
      });

      // 关闭弹窗按钮
      closeBtn.addEventListener('click', () => modal.classList.add('hidden'));

      // 点击遮罩关闭
      modal.addEventListener('click', (e) => {
        if (e.target === modal) modal.classList.add('hidden');
      });

      // ESC键关闭
      document.addEventListener('keydown', (e) => {
        if (e.key === 'Escape' && !modal.classList.contains('hidden')) {
          modal.classList.add('hidden');
        }
      });

      // 表单提交逻辑
      if (form) {
        form.addEventListener('submit', function(e) {
          e.preventDefault();
          const orderNo = form.orderNo.value.trim();
          const buyerEmail = form.contact.value.trim();

          if(!orderNo || !buyerEmail){
            // alert('请填写订单号和邮箱/手机号');
            alert('Please enter your order number and email or phone number.');
            return;
          }

          fetch('/web-paypal/order-search', {
            method: 'POST',
            headers: { 'Content-Type': 'application/json' },
            body: JSON.stringify({ orderNo, buyerEmail })
          })
                  .then(res => res.json())
                  .then(data => {
                    if(data.code == 0){
                      window.location.href = `/order-search?orderNo=${orderNo}&buyerEmail=${buyerEmail}`;
                    } else {
                      // alert(data.message || '订单不存在');
                      alert('We could not find this order. Please check your order number.');
                    }
                  })
                  .catch(err => {
                    console.error(err);
                    // alert('网络异常，请稍后再试');
                    alert('Something went wrong. Please try again later.');
                  });
        });
      }
    });
  </script>
</header>

<main class="flex-1 flex items-center justify-center px-4 py-8">
  <div class="max-w-3xl mx-auto text-center">

    <!-- 404 Number -->
    <div class="mb-12">
      <div class="text-[140px] md:text-[180px] font-bold text-slate-100 sf-pro select-none tracking-tight">
        404
      </div>
    </div>

    <!-- Error Message -->
    <div class="mb-12">
      <h1 class="text-3xl md:text-4xl font-bold text-slate-900 mb-4 sf-pro tracking-tight">
        Page not found
      </h1>
      <p class="text-slate-600 text-lg max-w-xl mx-auto mb-8 leading-relaxed">
        The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.
      </p>

      <!-- Error Code -->
      <div class="inline-flex items-center px-4 py-2 bg-slate-100 rounded-full">
        <svg class="w-4 h-4 mr-2 text-slate-500" fill="none" stroke="currentColor" viewBox="0 0 24 24">
          <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"/>
        </svg>
        <span class="text-sm font-medium text-slate-700">HTTP 404 - Not Found</span>
      </div>
    </div>

    <!-- Action Buttons -->
    <div class="flex flex-col sm:flex-row justify-center gap-4 mb-16">
      <a href="/"
         class="inline-flex items-center justify-center px-8 py-3.5 text-base font-medium rounded-lg text-white bg-slate-900 hover:bg-slate-800 transition-colors duration-200 sf-pro">
        <svg class="w-5 h-5 mr-3" fill="none" stroke="currentColor" viewBox="0 0 24 24">
          <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"/>
        </svg>
        Go to Homepage
      </a>
    </div>
    </div>

  </div>
</main>

<!-- 引入底部 -->
<footer class="bg-gradient-to-b from-white to-slate-50 border-t border-slate-200 mt-20">
    <div class="max-w-7xl mx-auto px-6 py-12">

        <!-- 主要内容区域 -->
        <div class="grid grid-cols-1 lg:grid-cols-3 gap-10 mb-10">

            <!-- 站点信息 / 权威定位 -->
            <div class="space-y-5">
                <div class="flex items-center space-x-3 mb-2">
                    <div class="w-10 h-10 bg-gradient-to-br from-blue-600 to-blue-800 rounded-lg flex items-center justify-center shadow-sm">
            <span class="text-white font-bold text-sm">M</span>
                    </div>
                    <h3 class="text-lg font-bold text-slate-900">Male Health &amp; Vitality Center</h3>
                </div>

                <p class="text-slate-600 leading-relaxed text-sm">Our center is dedicated to providing safe, natural, and science-based methods to help men improve erectile function, extend sexual performance, and enhance overall energy and confidence.</p>

                <div class="pt-4">
                    <p class="text-xs text-slate-500 font-medium">© 2026 Male Health &amp; Vitality Center. All rights reserved.</p>
                </div>
            </div>

            <!-- 内部导航 -->
            <div>
                <h3 class="text-sm font-semibold text-slate-900 uppercase tracking-wider mb-6 pb-2 border-b border-slate-100">
                    Quick Links
                </h3>

                <ul class="space-y-3">
                    <li>
                        <a href="about"
                           class="text-slate-600 hover:text-blue-600 transition-colors duration-200 flex items-center group">About US</a>
                    </li>
                </ul>
            </div>

            <!-- 合规声明 / 联系 -->
            <div>
                <h3 class="text-sm font-semibold text-slate-900 uppercase tracking-wider mb-6 pb-2 border-b border-slate-100">
                    Disclaimers & Contact
                </h3>

                <div class="space-y-4">
                    <p class="text-slate-600 text-sm leading-relaxed">All content on this site is for educational purposes only and does not constitute medical advice. Please consult a qualified healthcare professional before making any health-related decisions.</p>

                    <!-- 联系方式 -->
                    <div class="pt-3">
                        <div class="flex items-center text-slate-500 hover:text-slate-700 transition-colors">
                            <svg class="w-4 h-4 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
                                      d="M3 8l7.89-5.26a2 2 0 012.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"/>
                            </svg>
                            <span class="text-sm font-medium">support@example.com</span>
                        </div>
                    </div>
                </div>
            </div>

        </div>

        <!-- 底部装饰线 -->
        <div class="border-t border-slate-200 pt-8">
            <div class="flex flex-col md:flex-row justify-between items-center">
                <!-- 装饰性元素 -->
                <div class="mb-4 md:mb-0">
                    <div class="flex items-center space-x-2 text-slate-400">
                        <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"
                                  d="M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"/>
                        </svg>
                        <span class="text-xs">Made for sharing knowledge</span>
                    </div>
                </div>

                <!-- 回到顶部按钮 -->
                <button onclick="window.scrollTo({top: 0, behavior: 'smooth'})"
                        class="text-xs text-slate-500 hover:text-slate-700 transition-colors flex items-center group">
                    <svg class="w-4 h-4 mr-1 group-hover:-translate-y-0.5 transition-transform"
                         fill="none" stroke="currentColor" viewBox="0 0 24 24">
                        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
                              d="M5 10l7-7m0 0l7 7m-7-7v18"/>
                    </svg>
                    Back to top
                </button>
            </div>
        </div>

    </div>

    <!-- Google Analytics (GA4) - 完整的实现 -->
    
        <!-- 加载 GA4 脚本 -->
        <script async src="https://www.googletagmanager.com/gtag/js?id=[[${siteConfig.gaMeasurementId}]]"></script>

        <!-- GA4 配置代码 -->
        <script>
            window.dataLayer = window.dataLayer || [];
            function gtag(){dataLayer.push(arguments);}
            gtag('js', new Date());

            // 配置 GA4
            gtag('config', 'G-EZ9B24QZZZ', {
                'debug_mode': false,
                'send_page_view': true,
                'page_title': document.title,
                'page_location': window.location.href
            });

            // 设置自定义参数（站点信息）
            gtag('set', {
                'site_id': '17',
                'site_domain': 'www.akptv.com',
                'site_name': 'Male Health &amp; Vitality Center'
            });
        </script>
    
</footer>

<!-- JavaScript -->
<script>

  // Hover effect for 404 number
  document.addEventListener('DOMContentLoaded', function() {
    const numbers = document.querySelector('.text-slate-100');
    if (numbers) {
      numbers.addEventListener('mouseenter', () => {
        numbers.style.transform = 'scale(1.02)';
        numbers.style.transition = 'transform 0.3s ease';
      });

      numbers.addEventListener('mouseleave', () => {
        numbers.style.transform = 'scale(1)';
      });
    }
  });
</script>

<!-- Additional Styles -->
<style>
  /* Smooth transitions */
  * {
    transition-property: color, background-color, border-color, transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 200ms;
  }

  /* Focus styles */
  input:focus, button:focus {
    outline: none;
    ring-width: 2px;
  }

  /* Card hover effects */
  .group:hover .group-hover\:text-blue-600 {
    color: #2563eb;
  }

  .group:hover .group-hover\:text-emerald-600 {
    color: #059669;
  }

  .group:hover .group-hover\:text-amber-600 {
    color: #d97706;
  }

  /* Subtle animations */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  main > div {
    animation: fadeIn 0.6s ease-out;
  }
</style>

</body>
</html>