﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

:root {
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --glass: rgba(255,255,255,0.92);
    --glass-dark: rgba(15,23,42,0.92);
    --text: #1e293b;
    --text-light: #64748b;
    --error: #ef4444;
    --radius: 28px;
    --radius-sm: 18px;
    --shadow: 0 12px 40px rgba(0,0,0,0.15);
    --shadow-hover: 0 20px 50px rgba(0,0,0,0.2);
    --blur: 24px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --glass: rgba(15,23,42,0.92);
        --text: #f1f5f9;
        --text-light: #94a3b8;
    }
}

html, body {
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.08) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 50%), linear-gradient(180deg, #eff6ff, #dbeafe);
    color: var(--text);
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.container {
    width: 100%;
    max-width: 420px;
    background: var(--glass);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 36px 28px;
    border: 1px solid rgba(255,255,255,0.2);
}

    .container:hover {
        box-shadow: var(--shadow-hover);
        transform: translateY(-2px);
    }

h1 {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 36px;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 0.3px;
}

.section {
    display: none;
    opacity: 0;
    transform: translateY(15px);
}

    .section.active {
        display: block;
        animation: fadeUp 0.5s ease forwards;
    }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* 密码输入（手机超大触控+聚焦动效） */
#password-input {
    width: 100%;
    padding: 18px 22px;
    font-size: 18px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(37,99,235,0.2);
    background: rgba(255,255,255,0.6);
    color: var(--text);
    margin-bottom: 22px;
    outline: none;
}

    #password-input:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 5px rgba(37,99,235,0.12);
        transform: scale(1.02);
    }
/* 按钮（超大可点击+渐变+按压反馈） */
button {
    width: 100%;
    padding: 20px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

#unlock-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: 0 8px 24px rgba(37,99,235,0.3);
}

    #unlock-btn:active {
        transform: scale(0.97);
    }

#relock-btn {
    background: #e2e8f0;
    color: #334155;
    margin-top: 18px;
}

    #relock-btn:hover {
        background: #cbd5e1;
    }

.error {
    color: var(--error);
    text-align: center;
    margin-top: 14px;
    font-size: 15px;
    min-height: 20px;
    animation: shake 0.3s ease;
}
/* 视频展示区（手机竖屏优化+悬浮效果） */
#secret-video {
    width: 100%;
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
    margin: 28px 0;
    background-color: #000;
    transform: perspective(1000px) rotateX(0deg);
    transition: all 0.5s ease;
}

    #secret-video:hover {
        transform: perspective(1000px) rotateX(2deg);
        box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
    }
/* 视频简介卡片（玻璃态+动效） */
.video-info {
    background: rgba(255,255,255,0.4);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,0.3);
    transform: translateX(-10px);
    opacity: 0;
    animation: slideIn 0.6s ease 0.3s forwards;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.video-info h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary);
}

.video-info p {
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-light);
}
/* 禁止横屏/缩放（手机专属） */
@media (max-width: 480px) {
    .container {
        padding: 32px 24px;
    }

    h1 {
        font-size: 26px;
    }

    #password-input, button {
        font-size: 17px;
    }

    .video-info {
        padding: 16px;
    }
}
