<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>得福糖宣</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            background-color: #ffffff;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 80px 40px 40px;
        }

        .logo-container {
            width: 240px;
            height: 240px;
            margin-bottom: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .logo {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .app-name {
            font-size: 56px;
            font-weight: 500;
            color: #333333;
            margin-bottom: 50px;
            text-align: center;
            letter-spacing: 2px;
        }

        .mini-program-tag {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 180px;
            opacity: 0.6;
        }

        .mini-program-icon {
            width: 40px;
            height: 40px;
        }

        .mini-program-text {
            font-size: 40px;
            color: #666666;
            font-weight: 400;
        }

        .open-button {
            width: 100%;
            max-width: 600px;
            height: 110px;
            background-color: #07C160;
            color: #ffffff;
            border: none;
            border-radius: 16px;
            font-size: 52px;
            font-weight: 500;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            transition: background-color 0.2s;
            margin-bottom: 60px;
        }

        .open-button:active {
            background-color: #06AD56;
        }

        .footer-text {
            margin-top: auto;
            font-size: 28px;
            color: #999999;
            text-align: center;
            padding-top: 40px;
        }

        /* 适配不同屏幕尺寸 */
        @media (max-width: 480px) {
            body {
                padding: 60px 30px 30px;
            }
            
            .logo-container {
                width: 180px;
                height: 180px;
                margin-bottom: 25px;
            }
            
            .app-name {
                font-size: 42px;
                margin-bottom: 40px;
            }
            
            .mini-program-tag {
                margin-bottom: 140px;
            }
            
            .mini-program-icon {
                width: 32px;
                height: 32px;
            }
            
            .mini-program-text {
                font-size: 32px;
            }
            
            .open-button {
                height: 90px;
                font-size: 42px;
                border-radius: 12px;
            }
            
            .footer-text {
                font-size: 24px;
            }
        }

        /* 提示遮罩层 - 用于在外部浏览器提示点击右上角在微信中打开 */
        .mask-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.85);
            z-index: 9999;
            padding: 20px;
        }

        .mask-content {
            text-align: right;
            color: #ffffff;
        }

        .mask-arrow {
            font-size: 60px;
            margin-right: 20px;
            margin-top: 10px;
        }

        .mask-tip {
            font-size: 20px;
            margin-top: 20px;
            margin-right: 10px;
            line-height: 1.6;
        }
    </style>
</head>
<body>
    <div class="logo-container">
        <!-- 此处替换为你的小程序logo图片地址 -->
        <img src="1.png" alt="得福糖宣" class="logo" style="width: 200px; height: 200px; border-radius: 20px;">
    </div>

    <h1 class="app-name">得福糖宣</h1>

    <div class="mini-program-tag">
        <svg class="mini-program-icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg">
            <path d="M674.645333 696.746667c30.08-2.005333 66.389333-18.261333 66.389334-73.386667 0-55.146667-43.306667-115.626667-135.808-115.626667-100.736 0-154.069333 71.722667-154.069334 141.013334 0 70.570667 55.210667 112.725333 134.058667 112.725333 27.861333 0 51.882667-5.226667 73.770667-14.144l9.258666-3.968 57.898667 31.872-15.104-58.069333-36.394667-20.416zM530.005333 479.146667C406.016 479.146667 298.666667 371.84 298.666667 238.933333c0-132.906667 107.349333-213.333333 231.338666-213.333333 124.010667 0 231.338667 80.426667 231.338667 213.333333 0 132.906667-107.328 240.213333-231.338667 240.213334z m-196.757333 48.042666c-104.106667 0-188.586667 80.426667-188.586667 179.2 0 98.773333 84.48 143.445333 188.586667 143.445334 28.8 0 56.490667-6.699 80.469333-18.133334l8.149334-3.968 69.504 31.872-18.090667-69.845333c-2.389333-11.733333 2.005333-15.744 9.258667-20.48l32.448-22.656c11.733333-9.173333 16.213333-15.744 16.213333-27.477333 0-98.773333-84.458667-192-297.952-192zM853.333333 706.56c-74.24 0-134.4 60.16-134.4 134.4s60.16 134.4 134.4 134.4 134.4-60.16 134.4-134.4-60.16-134.4-134.4-134.4z" fill="#999999"/>
        </svg>
        <span class="mini-program-text">小程序</span>
    </div>

    <!-- 打开小程序按钮 - 直接跳转目标链接 -->
    <a href="http://wxmpurl.cn/SyOt4ashMYq" class="open-button" id="openBtn">
        打开小程序
    </a>

    <div class="footer-text">
        本页面服务由深圳市腾讯计算机系统有限公司提供
    </div>

    <!-- 外部浏览器打开提示遮罩 -->
    <div class="mask-overlay" id="maskOverlay">
        <div class="mask-content">
            <div class="mask-arrow">↗</div>
            <div class="mask-tip">
                请点击右上角<br>
                选择"在浏览器中打开"<br>
                即可打开小程序
            </div>
        </div>
    </div>

    <script>
        // 目标跳转链接
        const targetUrl = 'http://wxmpurl.cn/SyOt4ashMYq';

        // 页面加载完成后立即自动跳转
        window.onload = function() {
            // 延迟极短时间，让页面先渲染出来再跳转，避免白屏
            setTimeout(function() {
                window.location.href = targetUrl;
            }, 100);
        };

        function openMiniProgram() {
            window.location.href = targetUrl;
        }

        // 点击遮罩层也跳转
        document.getElementById('maskOverlay').addEventListener('click', function() {
            window.location.href = targetUrl;
        });
    </script>
</body>
</html>