<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="gbk">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>404 - 页面未找到</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <style>
        /* 添加简单的过渡效果 */
        .transition-all {
            transition: all 0.3s ease-in-out;
        }
        .product-item {
            position: absolute;
            inset: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 1.5rem; /* p-6 */
            opacity: 0;
            transform: translateX(50px);
            transition: opacity 0.5s ease, transform 0.5s ease;
        }
        .product-item.active {
            opacity: 1;
            transform: translateX(0);
        }
        .product-item.exiting {
            opacity: 0;
            transform: translateX(-50px);
        }
        .home-button:hover .arrow-icon {
            transform: translateX(5px);
        }
        .arrow-icon {
            transition: transform 0.2s ease-out;
            display: inline-block; /* Ensure transform works */
        }
        /* Ensure SVGs inherit text color for stroke */
        svg {
            stroke: currentColor;
        }
    </style>
</head>
<body class="min-h-screen bg-gradient-to-br from-blue-50 to-indigo-100 flex flex-col items-center justify-center p-4 font-sans">

    <div id="current-time" class="absolute top-6 right-6 text-gray-600 text-sm"></div>

    <div class="max-w-4xl w-full bg-white rounded-2xl shadow-xl overflow-hidden">
        <div class="grid grid-cols-1 md:grid-cols-2">
            <div class="bg-gradient-to-br from-blue-600 to-indigo-700 p-10 text-white flex flex-col items-center justify-center">
                <div class="mb-8">
                    <div class="text-9xl font-bold">404</div>
                </div>
                <h1 class="text-3xl font-bold mb-4">页面未找到</h1>
                <p class="text-blue-100 mb-8 text-center">
                    您访问的页面不存在或已被移除，但我们的优质服务依然为您准备着
                </p>
                <a href="/" class="home-button flex items-center px-6 py-3 bg-white text-blue-600 rounded-full font-medium transition-transform hover:scale-105 active:scale-95">
                    <svg xmlns="http://www.w3.org/2000/svg" width="18px" height="18px" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="mr-2">
                        <path d="m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path><polyline points="9 22 9 12 15 12 15 22"></polyline>
                    </svg>
                    返回首页
                    <svg xmlns="http://www.w3.org/2000/svg" width="18px" height="18px" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="arrow-icon ml-2">
                        <path d="M5 12h14"></path><path d="m12 5 7 7-7 7"></path>
                    </svg>
                </a>
            </div>

            <div class="p-8">
                <div class="flex items-center mb-6">
                     <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="text-blue-600 mr-2">
                         <path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path><polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline><line x1="12" y1="22.08" x2="12" y2="12"></line>
                     </svg>
                    <h2 class="text-2xl font-bold text-gray-800">热门产品与服务</h2>
                </div>

                <div class="relative h-64 overflow-hidden rounded-xl bg-gray-50">
                    <div id="product-carousel">
                         <div class="product-item active" data-index="0">
                              <div class="mb-4">
                                  <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="text-blue-500">
                                      <rect x="2" y="2" width="20" height="8" rx="2" ry="2"></rect><rect x="2" y="14" width="20" height="8" rx="2" ry="2"></rect><line x1="6" y1="6" x2="6.01" y2="6"></line><line x1="6" y1="18" x2="6.01" y2="18"></line>
                                  </svg>
                              </div>
                              <h3 class="text-xl font-bold text-gray-800 mb-2">AI算力云</h3>
                              <p class="text-gray-600 text-center mb-6">高性能GPU集群，助力AI训练与推理</p>
                              <a href="/portal.idcbest.hk/cart?fid=16" class="text-blue-600 font-medium flex items-center">
                                  了解更多
                                  <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ml-1">
                                     <path d="M5 12h14"></path><path d="m12 5 7 7-7 7"></path>
                                  </svg>
                              </a>
                         </div>
                         <div class="product-item" data-index="1">
                             <div class="mb-4">
                                  <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="text-green-500">
                                     <path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"></path>
                                  </svg>
                              </div>
                              <h3 class="text-xl font-bold text-gray-800 mb-2">高防CDN套餐</h3>
                              <p class="text-gray-600 text-center mb-6">全球节点加速，DDoS防护高达1Tbps</p>
                              <a href="/2022/ip.asp" class="text-blue-600 font-medium flex items-center">
                                  了解更多
                                  <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ml-1">
                                     <path d="M5 12h14"></path><path d="m12 5 7 7-7 7"></path>
                                  </svg>
                              </a>
                         </div>
                         <div class="product-item" data-index="2">
                             <div class="mb-4">
                                 <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="text-purple-500">
                                     <path d="M18 10h-1.26A8 8 0 1 0 9 20h9a5 5 0 0 0 0-10z"></path>
                                 </svg>
                              </div>
                              <h3 class="text-xl font-bold text-gray-800 mb-2">阿里/华为/腾讯云</h3>
                              <p class="text-gray-600 text-center mb-6">谷歌云/亚马逊云/天翼云/移动云5折起</p>
                              <a href="/2022/aliy.asp" class="text-blue-600 font-medium flex items-center">
                                  了解更多
                                  <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ml-1">
                                     <path d="M5 12h14"></path><path d="m12 5 7 7-7 7"></path>
                                  </svg>
                              </a>
                         </div>
                         <div class="product-item" data-index="3">
                              <div class="mb-4">
                                  <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="text-orange-500">
                                      <path d="M5 12.55a11 11 0 0 1 14.08 0"></path><path d="M1.42 9a16 16 0 0 1 21.16 0"></path><path d="M8.53 16.11a6 6 0 0 1 6.95 0"></path><line x1="12" y1="20" x2="12.01" y2="20"></line>
                                  </svg>
                              </div>
                              <h3 class="text-xl font-bold text-gray-800 mb-2">Tiktok精品直播套餐</h3>
                              <p class="text-gray-600 text-center mb-6">专线优化，直播流畅不卡顿</p>
                              <a href="/2022/tiktok.asp" class="text-blue-600 font-medium flex items-center">
                                  了解更多
                                  <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ml-1">
                                     <path d="M5 12h14"></path><path d="m12 5 7 7-7 7"></path>
                                  </svg>
                              </a>
                         </div>
                    </div>
                </div>

                <div id="product-indicators" class="flex justify-center mt-4 space-x-2">
                    <button data-index="0" class="w-3 h-3 rounded-full bg-blue-600" aria-label="查看产品 1"></button>
                    <button data-index="1" class="w-3 h-3 rounded-full bg-gray-300" aria-label="查看产品 2"></button>
                    <button data-index="2" class="w-3 h-3 rounded-full bg-gray-300" aria-label="查看产品 3"></button>
                    <button data-index="3" class="w-3 h-3 rounded-full bg-gray-300" aria-label="查看产品 4"></button>
                </div>
            </div>
        </div>
    </div>

    <div class="mt-8 max-w-4xl w-full bg-white rounded-2xl shadow-lg p-6">
        <div class="flex items-center mb-4">
            <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="text-red-500 mr-2">
                <path d="M22 12h-4l-3 9L9 3l-3 9H2"></path>
            </svg>
            <h2 class="text-xl font-bold text-gray-800">最新活动</h2>
        </div>
        <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
            <div class="bg-gradient-to-r from-blue-50 to-indigo-50 p-4 rounded-lg border border-blue-100">
                <h3 class="font-medium text-blue-800 mb-1"><a href="/portal.idcbest.hk/cart?fid=7">海外云服务器</a></h3>
                <p class="text-sm text-gray-600">新用户首月5折，CN2线路免费试用</p>
            </div>
            <div class="bg-gradient-to-r from-green-50 to-teal-50 p-4 rounded-lg border border-green-100">
                <h3 class="font-medium text-green-800 mb-1">  <a href="/2022/tiktok.asp">Tiktok直播套餐</a></h3>
                <p class="text-sm text-gray-600"><a href="/portal.idcbest.hk/cart?fid=7">限时特惠，专线流量超多优惠</a></p>
            </div>
        </div>
    </div>

    <footer class="mt-12 text-center text-gray-500 text-sm">
        <p>created by <a href="https://www.idcbest.com" class="text-blue-600 hover:underline">天下数据</a></p>
        <p class="mt-1">限时活动，详情咨询客服</p>
    </footer>

    <script>
        // 更新当前时间
        function updateTime() {
            const timeElement = document.getElementById('current-time');
            if (timeElement) {
                const now = new Date();
                // 使用简单格式避免潜在GBK环境问题
                const year = now.getFullYear();
                const month = (now.getMonth() + 1).toString().padStart(2, '0');
                const day = now.getDate().toString().padStart(2, '0');
                const hours = now.getHours().toString().padStart(2, '0');
                const minutes = now.getMinutes().toString().padStart(2, '0');
                const seconds = now.getSeconds().toString().padStart(2, '0');
                timeElement.textContent = `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
            }
        }

        // 产品轮播逻辑
        const carouselContainer = document.getElementById('product-carousel');
        const indicatorsContainer = document.getElementById('product-indicators');
        const products = carouselContainer ? carouselContainer.querySelectorAll('.product-item') : [];
        const indicators = indicatorsContainer ? indicatorsContainer.querySelectorAll('button') : [];
        let activeProductIndex = 0;
        let productInterval;

        function showProduct(index) {
            if (!products.length) return;

            const currentActive = products[activeProductIndex];
            const nextActive = products[index];

            if (currentActive) {
                currentActive.classList.remove('active');
                currentActive.classList.add('exiting');
                 setTimeout(() => {
                    // Delay removing exiting class to allow fade out
                    if (currentActive !== products[activeProductIndex]) { // Ensure it wasn't reactivated quickly
                       currentActive.classList.remove('exiting');
                    }
                 }, 500); // Match CSS transition duration
            }
            if (nextActive) {
                 // Ensure exiting class is removed before adding active if it's the same element reappearing quickly
                 nextActive.classList.remove('exiting');
                 nextActive.classList.add('active');
            }


            // 更新指示器
            indicators.forEach((indicator, i) => {
                if (i === index) {
                    indicator.classList.remove('bg-gray-300');
                    indicator.classList.add('bg-blue-600');
                } else {
                    indicator.classList.remove('bg-blue-600');
                    indicator.classList.add('bg-gray-300');
                }
            });

            activeProductIndex = index;
        }

        function startCarousel() {
            stopCarousel(); // Clear existing timer
            if (products.length > 0) {
                 productInterval = setInterval(() => {
                      const nextIndex = (activeProductIndex + 1) % products.length;
                      showProduct(nextIndex);
                 }, 3000);
            }
        }

         function stopCarousel() {
             clearInterval(productInterval);
         }


        // 初始化时间和轮播
        document.addEventListener('DOMContentLoaded', () => {
            updateTime();
            setInterval(updateTime, 1000);

            if (products.length > 0 && indicators.length > 0) {
                // Ensure initial state is correct based on HTML classes
                activeProductIndex = Array.from(products).findIndex(p => p.classList.contains('active'));
                if (activeProductIndex === -1) activeProductIndex = 0; // Default to 0 if none found

                // Indicator click events
                 indicators.forEach(indicator => {
                      indicator.addEventListener('click', () => {
                          stopCarousel(); // Pause auto-slide on manual interaction
                          const index = parseInt(indicator.getAttribute('data-index'), 10);
                          if(index !== activeProductIndex) { // Only show if different index
                             showProduct(index);
                          }
                          startCarousel(); // Restart auto-slide timer
                      });
                 });

                 // Start automatic sliding
                 startCarousel();

                 // Optional: Pause on hover
                 carouselContainer.addEventListener('mouseenter', stopCarousel);
                 carouselContainer.addEventListener('mouseleave', startCarousel);

            } else {
                console.error("Product carousel elements not found.");
            }
        });

    </script>
</body>
</html>