唯美风格视频登录验证

56713732 2026-05-19 0
详细描述
实时预览
Loading...
源代码
<!-- 本DIY代码来自于 https://diy.zhongzhipian.top -->
<!DOCTYPE html>

<html lang="zh-CN">

<head>

<meta charset="UTF-8">

<title>验证系统</title>

<style>

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

    font-family: "Microsoft YaHei", sans-serif;

}

body {

    height: 100vh;

    overflow: hidden;

    background: #000;

}

.video-container {

    position: fixed;

    inset: 0;

    z-index: -1;

}

.video-container video {

    width: 100%;

    height: 100%;

    object-fit: cover;

}

.overlay {

    position: fixed;

    inset: 0;

    background: rgba(0,0,0,0.35);

    z-index: 0;

}

.container {

    position: relative;

    z-index: 1;

    height: 100vh;

    display: flex;

    justify-content: center;

    align-items: center;

}

/* 缩小 50% */

.login-panel {

    transform: scale(0.7);

    transform-origin: center center;

    background: rgba(255,255,255,0.45);

    backdrop-filter: blur(12px);

    border-radius: 12px;

    padding: 30px;

    width: 700px;

}

/* 字体缩小 50% */

.login-panel,

.input-field,

.btn,

.auto-login span {

    font-size: 90%;

}

.logo {

    text-align: center;

    margin-bottom: 20px;

}

.logo img {

    height: 40px;

}

.input-field {

    width: 100%;

    padding: 12px;

    border-radius: 6px;

    border: 1px solid #ccc;

    outline: none;

}

.auto-login {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin: 15px 0;

    padding: 8px;

    background: rgba(255,255,255,0.35);

    border-radius: 6px;

}

.switch {

    position: relative;

    width: 40px;

    height: 20px;

}

.switch input {

    display: none;

}

.slider {

    position: absolute;

    inset: 0;

    background: #aaa;

    border-radius: 20px;

    transition: 0.3s;

}

.slider:before {

    content: "";

    position: absolute;

    width: 14px;

    height: 14px;

    left: 3px;

    bottom: 3px;

    background: #fff;

    border-radius: 50%;

    transition: 0.3s;

}

input:checked + .slider {

    background: #1890ff;

}

input:checked + .slider:before {

    transform: translateX(20px);

}

.buttons {

    display: flex;

    gap: 10px;

    margin-top: 15px;

}

.btn {

    flex: 1;

    padding: 12px;

    border: none;

    border-radius: 6px;

    cursor: pointer;

    font-weight: bold;

}

.btn-primary {

    background: linear-gradient(90deg, #1890ff, #00c1de);

    color: #fff;

}

.btn-secondary {

    background: rgba(0,0,0,0.15);

    color: #333;

}

</style>

</head>

<body>

<!-- 背景视频 -->

<div class="video-container">

    <video autoplay muted loop playsinline>

        <source src="http://wp.hxywl.top/view.php/9bb907f0ad47a6c45901e695b95ae634.mp4">

    </video>

</div>

<div class="overlay"></div>

<div class="container">

    <div class="login-panel">

        <!-- LOGO -->

        <div class="logo">

            <img src="http://wp.hxywl.top/view.php/dd91ef2a75640bbd8bf75f667159e356.png">

        </div>

        <!-- 卡密输入框 -->

        <input class="input-field" id="kamiInput" placeholder="请输入卡密">

        <!-- 自动登录 -->

        <div class="auto-login">

            <span>自动登录</span>

            <label class="switch">

                <input type="checkbox">

                <span class="slider"></span>

            </label>

        </div>

        <!-- 按钮 -->

        <div class="buttons">

            <button class="btn btn-secondary" id="queryBtn" onclick="Call_Query_Trial(document.getElementById('kamiInput').value)">

                查询 / 试用

            </button>

            <button class="btn btn-secondary" onclick="Call_Pay()">

                领卡

            </button>

            <button class="btn btn-primary" onclick="Call_Verify(document.getElementById('kamiInput').value)">

                登录

            </button>

        </div>

    </div>

</div>

<script>

/* ========== 你的原函数(一字不改) ========== */

function Call_Verify(data) {

    PanGolin.Verify(data);

}

function Call_Query_Trial(data) {

    if (PanGolin.Is_Trial())

        PanGolin.Trial();

    else

        PanGolin.Query(data);

}

function Call_Pay() {

    PanGolin.Pay();

}

/* ========== 自动切换按钮文字 ========== */

window.onload = function () {

    if (typeof PanGolin === "undefined") {

        console.warn("PanGolin 未加载");

        return;

    }

    var btn = document.getElementById("queryBtn");

    if (btn) {

        btn.innerHTML = PanGolin.Is_Trial() ? "试用" : "查码";

    }

};

</script>

</body>

</html>
<!-- 本DIY代码来自于 https://diy.zhongzhipian.top -->