<br />
<b>Notice</b>:  curl_setopt_array(): CURLOPT_SSL_VERIFYHOST no longer accepts the value 1, value 2 will be used instead in <b>/www/wwwroot/tvbox.baoma888.eu.org/index.php</b> on line <b>601</b><br />
<br />
<b>Deprecated</b>:  Function curl_close() is deprecated since 8.5, as it has no effect since PHP 8.0 in <b>/www/wwwroot/tvbox.baoma888.eu.org/index.php</b> on line <b>612</b><br />
<!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, viewport-fit=cover">
    <title>数据源 · 接口</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            background: #f2f4f8;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
            padding: 16px;
        }

        .card {
            max-width: 420px;
            width: 100%;
            background: #ffffff;
            border-radius: 32px;
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.02);
            padding: 24px 20px 18px;
            transition: all 0.2s;
            border: 1px solid rgba(0, 0, 0, 0.02);
        }

        /* 头部 */
        .header-title {
            font-size: 22px;
            font-weight: 600;
            color: #1a1e2b;
            letter-spacing: 0.5px;
            display: flex;
            align-items: center;
            gap: 6px;
            margin-bottom: 6px;
        }

        .header-title span {
            background: #eef1f7;
            padding: 2px 12px;
            border-radius: 40px;
            font-size: 14px;
            font-weight: 400;
            color: #3d4a5e;
        }

        .update-time {
            font-size: 14px;
            color: #6b7a93;
            margin-bottom: 20px;
            border-bottom: 1px solid #edf0f5;
            padding-bottom: 14px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .update-time .badge-free {
            background: #e8edf9;
            padding: 2px 14px;
            border-radius: 40px;
            font-size: 13px;
            font-weight: 500;
            color: #1f3a6b;
        }

        /* 接口列表 */
        .interface-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin-bottom: 24px;
        }

        .interface-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 14px;
            background: #f8faff;
            border-radius: 18px;
            border: 1px solid #e9eef6;
            transition: all 0.15s;
        }

        .interface-item:active {
            background: #eef3fc;
            transform: scale(0.98);
        }

        .interface-name {
            font-size: 16px;
            font-weight: 500;
            color: #1d2538;
        }

        .copy-btn {
            background: transparent;
            border: none;
            font-size: 14px;
            font-weight: 500;
            color: #2f6bff;
            padding: 6px 16px;
            border-radius: 40px;
            background: #eaf1fe;
            cursor: pointer;
            transition: all 0.15s;
            display: flex;
            align-items: center;
            gap: 4px;
            letter-spacing: 0.3px;
            border: 1px solid transparent;
        }

        .copy-btn:active {
            background: #d6e3ff;
            transform: scale(0.94);
        }

        .copy-btn.copied {
            background: #d4edda;
            color: #1b6b3d;
        }

        .copy-btn i {
            font-style: normal;
            font-size: 15px;
        }

        /* 免费使用条 - 修改文案 */
        .free-banner {
            background: #eef3fc;
            border-radius: 60px;
            padding: 10px 12px;
            text-align: center;
            font-size: 15px;
            font-weight: 500;
            color: #1d2d4b;
            margin-bottom: 18px;
            border: 1px solid #dce3ef;
            letter-spacing: 1px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .free-banner .star {
            color: #f5b342;
        }

        /* 免责声明 - 保留 */
        .disclaimer {
            font-size: 11px;
            color: #7f8aa3;
            line-height: 1.7;
            background: #f8fafd;
            padding: 14px 16px;
            border-radius: 20px;
            margin-top: 12px;
            border: 1px solid #e6ecf5;
            letter-spacing: 0.2px;
        }

        .disclaimer strong {
            color: #4a5a78;
            font-weight: 600;
        }

        /* 移除 footer-data (书源) — 不渲染 */

        /* toast 提示 */
        .toast-message {
            position: fixed;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            background: #1d263b;
            color: white;
            padding: 10px 28px;
            border-radius: 60px;
            font-size: 15px;
            font-weight: 500;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
            opacity: 0;
            transition: opacity 0.25s ease;
            pointer-events: none;
            z-index: 999;
            backdrop-filter: blur(2px);
            border: 1px solid #4d5e82;
        }

        .toast-message.show {
            opacity: 1;
        }

        .interface-item .copy-btn:focus-visible {
            outline: 2px solid #2f6bff;
            outline-offset: 2px;
        }

        @media (max-width: 440px) {
            .card { padding: 18px 14px 16px; }
            .interface-item { padding: 10px 12px; }
        }
    </style>
</head>
<body>

    <div class="card">
        <!-- 头部：数据源 / 接口 -->
        <div class="header-title">
            📡 数据源 <span>接口</span>
        </div>
        <div class="update-time">
            <!-- 软件更新时间：动态生成日期（每天自动+1天） -->
            <span id="updateDateDisplay">软件更新时间： <strong style="font-weight:600; color:#1a253b;">2026-8-2</strong></span>
            <span class="badge-free">⭐ 接口免费</span>
        </div>

        <!-- 接口列表：查看 → 点我复制 -->
        <div class="interface-list" id="interfaceList">
            <div class="interface-item" data-link="http://宝盒接口.top">
                <span class="interface-name">📦 宝盒接口</span>
                <button class="copy-btn" data-copy="http://宝盒接口.top">📋 点我复制</button>
            </div>
            <div class="interface-item" data-link="http://mzrjk.top/VIP">
                <span class="interface-name">📱 金鱼线路</span>
                <button class="copy-btn" data-copy="http://mzrjk.top/VIP">📋 点我复制</button>
            </div>
            <div class="interface-item" data-link="http://摸鱼儿.cc">
                <span class="interface-name">🐟 摸鱼儿</span>
                <button class="copy-btn" data-copy="http://摸鱼儿.cc">📋 点我复制</button>
            </div>
            <div class="interface-item" data-link="http://肥猫.net/">
                <span class="interface-name">🐱 肥猫接口</span>
                <button class="copy-btn" data-copy="http://肥猫.net/">📋 点我复制</button>
            </div>
            <div class="interface-item" data-link="http://itv666.cc/aowu/config.webp">
                <span class="interface-name">🧩 不知名大佬</span>
                <button class="copy-btn" data-copy="http://itv666.cc/aowu/config.webp">📋 点我复制</button>
            </div>
        </div>

        <!-- 免费使用条：文案改为 “免费使用 禁止贩卖” -->
        <div class="free-banner">
            <span class="star">⭐</span> 免费使用 · 禁止贩卖 <span class="star">⭐</span>
        </div>

        <!-- 免责声明（保留） -->
        <div class="disclaimer">
            <strong>免责声明：</strong>本小程序提供的一切软件、教程和内容信息仅限用于学习和研究目的；不得将上述内容用于商业或者非法用途，否则，一切后果请用户自负。本站信息来自网络收集整理，版权争议与本小程序无关。您必须在下载后的24个小时之内，从您的电脑或手机中彻底删除上述内容。如果您喜欢该程序和内容，请支持正版，购买注册，得到更好的正版服务。我们非常重视版权问题，如有侵权请与我们联系处理。敬请谅解！
        </div>

        <!-- 底部 “数据源 书源” 已移除 -->
    </div>

    <!-- Toast -->
    <div id="toast" class="toast-message">✅ 已复制到剪贴板</div>

    <script>
        (function() {
            // ---------- 1. 动态日期：每天自动更新 (基于今日 + 1天 或 固定偏移) ----------
            function getDateString(offsetDays = 1) {
                // 以 2026-8-2 为基准，但实际用当前日期 + offsetDays 更合理。
                // 为了符合 “每天自动更新，比如今天是2026-8-2 明天就自动生成2026-8-3”
                // 我们使用当前日期 + 偏移量（这里用0，就是今天；但需求是“比如今天是2026-8-2 明天就2026-8-3” 
                // 为了演示，我们取当前日期，但考虑到演示时可能不是2026-8-2，我们用当前日期。
                // 但若希望从2026-8-2开始递增，可以固定基准；但需求明确说“每天自动更新的日期，比如今天是2026-8-2 明天就自动生成2026-8-3”
                // 更合理：取当前日期，因为今天是2026-8-2，明天访问就是2026-8-3。
                // 但考虑到真实情况，我们用当前日期 (new Date())，不依赖固定基准。
                const now = new Date();
                // 如果需要偏移，可以使用 offsetDays，但这里我们用0 （今天）
                // 但为了更符合示例，可以加1天？ 不，用户示例“今天是2026-8-2 明天就自动生成2026-8-3” 自然日期递增。
                // 直接用 today
                const year = now.getFullYear();
                const month = String(now.getMonth() + 1).padStart(2, '0');
                const day = String(now.getDate()).padStart(2, '0');
                return `${year}-${month}-${day}`;
            }

            // 更新页面日期
            const dateDisplay = document.getElementById('updateDateDisplay');
            if (dateDisplay) {
                const dateStr = getDateString(0); // 今天
                dateDisplay.innerHTML = `软件更新时间： <strong style="font-weight:600; color:#1a253b;">${dateStr}</strong>`;
            }

            // ---------- 2. 复制功能 ----------
            const toast = document.getElementById('toast');
            let toastTimer = null;

            function showToast(text = '✅ 已复制到剪贴板') {
                toast.textContent = text;
                toast.classList.add('show');
                clearTimeout(toastTimer);
                toastTimer = setTimeout(() => {
                    toast.classList.remove('show');
                }, 1800);
            }

            function copyTextToClipboard(text, btnElement) {
                if (navigator.clipboard && navigator.clipboard.writeText) {
                    navigator.clipboard.writeText(text).then(() => {
                        handleCopySuccess(btnElement);
                    }).catch(() => {
                        fallbackCopy(text, btnElement);
                    });
                } else {
                    fallbackCopy(text, btnElement);
                }
            }

            function fallbackCopy(text, btnElement) {
                const textarea = document.createElement('textarea');
                textarea.value = text;
                textarea.style.position = 'fixed';
                textarea.style.opacity = '0';
                textarea.style.left = '-9999px';
                document.body.appendChild(textarea);
                textarea.select();
                try {
                    const success = document.execCommand('copy');
                    if (success) {
                        handleCopySuccess(btnElement);
                    } else {
                        showToast('❌ 复制失败，请手动复制');
                    }
                } catch (e) {
                    showToast('❌ 复制失败，请手动复制');
                }
                document.body.removeChild(textarea);
            }

            function handleCopySuccess(btnElement) {
                if (!btnElement) {
                    showToast('✅ 链接已复制');
                    return;
                }
                const originalText = btnElement.innerHTML;
                btnElement.innerHTML = '✅ 已复制';
                btnElement.classList.add('copied');
                showToast('✅ 链接已复制到剪贴板');
                setTimeout(() => {
                    btnElement.innerHTML = originalText;
                    btnElement.classList.remove('copied');
                }, 2000);
            }

            // 绑定复制按钮
            const copyButtons = document.querySelectorAll('.copy-btn');
            copyButtons.forEach(btn => {
                btn.addEventListener('click', function(e) {
                    e.stopPropagation();
                    let link = this.getAttribute('data-copy');
                    if (!link) {
                        const parentItem = this.closest('.interface-item');
                        if (parentItem) {
                            link = parentItem.getAttribute('data-link');
                        }
                    }
                    if (!link) {
                        link = 'https://example.com/default';
                    }
                    copyTextToClipboard(link, this);
                });
            });

            // 点击整个 item 复制（按钮已处理，避免冲突）
            const items = document.querySelectorAll('.interface-item');
            items.forEach(item => {
                item.addEventListener('click', function(e) {
                    if (e.target.closest('.copy-btn')) return;
                    const link = this.getAttribute('data-link');
                    if (!link) return;
                    const btn = this.querySelector('.copy-btn');
                    if (btn) {
                        copyTextToClipboard(link, btn);
                    } else {
                        copyTextToClipboard(link, null);
                    }
                });
            });

            console.log('✅ 日期动态更新，广告/书源已移除，“免费使用 禁止贩卖”');
        })();
    </script>
</body>
</html>