js+css实现智商iq智力水平测试测验代码

代码语言:html

所属分类:其他

代码描述:js+css实现智商iq智力水平测试测验代码

代码标签: js css 智商 iq 智力 水平 测试 测验 代码

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>专业IQ智商测试</title>
    <style>
        @import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

        * { margin: 0; padding: 0; box-sizing: border-box; }

        :root {
            --primary: #6c5ce7;
            --secondary: #a29bfe;
            --accent: #fd79a8;
            --success: #00b894;
            --warning: #fdcb6e;
            --danger: #d63031;
            --dark: #0a0a1a;
            --card: rgba(20, 20, 50, 0.85);
        }

        body {
            font-family: 'Noto Sans SC', sans-serif;
            background: var(--dark);
            min-height: 100vh;
            color: #e0e0e0;
            overflow-x: hidden;
        }

        .bg-animation {
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            z-index: 0;
            overflow: hidden;
        }

        .bg-animation .orb {
            position: absolute;
            border-radius: 50%;
            filter: blur(80px);
            opacity: 0.3;
            animation: floatOrb 20s ease-in-out infinite;
        }

        .orb:nth-child(1) { width: 400px; height: 400px; background: #6c5ce7; top: -100px; left: -100px; animation-delay: 0s; }
        .orb:nth-child(2) { width: 500px; height: 500px; background: #fd79a8; bottom: -150px; right: -150px; animation-delay: -7s; }
        .orb:nth-child(3) { width: 300px; height: 300px; background: #00b894; top: 50%; left: 50%; animation-delay: -14s; }

        @keyframes floatOrb {
            0%, 100% { transform: translate(0, 0) scale(1); }
            25% { transform: translate(100px, -50px) scale(1.1); }
            50% { transform: translate(-50px, 100px) scale(0.9); }
            75% { transform: translate(80px, 60px) scale(1.05); }
        }

        .container {
            position: relative;
            z-index: 1;
            max-width: 900px;
            margin: 0 auto;
            padding: 20px;
        }

        /* ======= 头部 ======= */
        .header {
            text-align: center;
            padding: 40px 20px 20px;
        }

        .header .logo {
            font-family: 'Orbitron', sans-serif;
            font-size: 48px;
            font-weight: 900;
            background: linear-gradient(135deg, #6c5ce7, #a29bfe, #fd79a8);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 10px;
        }

        .header .subtitle {
            font-size: 16px;
            color: #888;
            letter-spacing: 3px;
        }

        /* ======= 导航标签 ======= */
        .nav-tabs {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin: 30px 0;
            flex-wrap: wrap;
        }

        .nav-tab {
            padding: 12px 28px;
            border-radius: 50px;
            border: 1px solid rgba(108, 92, 231, 0.3);
            background: var(--card);
            backdrop-filter: blur(10px);
            cursor: pointer;
            transition: all 0.3s;
            font-size: 14px;
            color: #aaa;
        }

        .nav-tab:hover { border-color: var(--primary); color: #fff; }
        .nav-tab.active {
            background: linear-gradient(135deg, var(--primary), var(--accent));
            border-color: transparent;
            color: #fff;
            box-shadow: 0 5px 20px rgba(108, 92, 231, 0.4);
        }

        /* ======= 页面区域 ======= */
        .page { display: none; }
        .page.active { display: block; animation: fadeIn 0.5s ease; }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* ======= 卡片 ======= */
        .card {
            background: var(--card);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 20px;
            padding: 30px;
            margin-bottom: 20px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.3);
        }

        /* ======= 开始页 ======= */
        .start-card {
            text-align: center;
            padding: 50px 30px;
        }

        .brain-icon {
            font-size: 80px;
            margin-bottom: 20px;
            animation: pulse 2s ease-in-out infinite;
        }

        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.1); }
        }

        .start-card h2 {
            font-size: 28px;
            margin-bottom: 15px;
            background: linear-gradient(135deg, #fff, #a29bfe);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .start-card p {
            color: #888;
            margin-bottom: 8px;
            font-size: 14px;
        }

        .test-info {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 15px;
            margin: 30px 0;
        }

        .info-item {
            background: rgba(255,255,255,0.03);
            border-radius: 15px;
            padding: 20px 15px;
            border: 1px solid rgba(255,255,255,0.05);
        }

        .info-item .num {
            font-family: 'Orbitron', sans-serif;
            font-size: 28px;
            font-weight: 700;
            color: var(--secondary);
        }

        .info-item .label {
            font-size: 12px;
            color: #666;
            margin-top: 5px;
        }

        .btn {
            padding: 15px 50px;
            border: none;
            border-radius: 50px;
            font-size: 16px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s;
            font-family: 'Noto Sans SC', sans-serif;
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--primary), var(--accent));
            color: #fff;
            box-shadow: 0 5px 25px rgba(108, 92, 231, 0.4);
        }

        .btn-primary:hover {
            transform: translateY(-3px);
            box-sha.........完整代码请登录后点击上方下载按钮下载查看

网友评论0