/* CSS 变量 */
:root {
    --neon-color: #00ffff;
    --neon-glow-1: rgba(0, 255, 255, 0.4);
    --neon-glow-2: rgba(0, 255, 255, 0.8);
    --bg-dark: #1a0033;
    --bg-darker: #330066;
    --button-padding-x: 48px;
    --button-padding-y: 16px;
}

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 页面基础样式 */
html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    overflow: hidden;
}

/* 背景层 */
.background-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: #000;
}

.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 内容容器 */
.content-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* 视频包装器 */
.video-wrapper {
    width: 60vw;
    max-width: 900px;
    min-width: 320px;
    aspect-ratio: 16 / 9;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Video.js 播放器覆盖样式 */
.video-js {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.vjs-poster {
    border-radius: 12px;
}

/* 按钮包装器 */
.button-wrapper {
    margin-top: 30px;
}

/* 霓虹按钮 */
.neon-button {
    display: inline-block;
    padding: var(--button-padding-y) var(--button-padding-x);
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 2px solid var(--neon-color);
    border-radius: 8px;
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-darker));
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: neon-pulse 2s ease-in-out infinite;
    will-change: transform;
}

/* 霓虹脉冲动画 */
@keyframes neon-pulse {
    0% {
        box-shadow:
            0 0 5px var(--neon-color),
            0 0 10px var(--neon-color),
            0 0 15px var(--neon-color),
            0 0 20px var(--neon-glow-1);
    }
    50% {
        box-shadow:
            0 0 10px var(--neon-color),
            0 0 20px var(--neon-color),
            0 0 30px var(--neon-color),
            0 0 40px var(--neon-glow-2);
    }
    100% {
        box-shadow:
            0 0 5px var(--neon-color),
            0 0 10px var(--neon-color),
            0 0 15px var(--neon-color),
            0 0 20px var(--neon-glow-1);
    }
}

/* 按钮悬停效果 */
.neon-button:hover {
    transform: scale(1.05);
    box-shadow:
        0 0 10px var(--neon-color),
        0 0 20px var(--neon-color),
        0 0 30px var(--neon-color),
        0 0 40px var(--neon-glow-2),
        0 0 60px var(--neon-glow-1);
    animation: none;
}

/* 按钮点击效果 */
.neon-button:active {
    transform: scale(1);
}

/* 按钮焦点样式（无障碍） */
.neon-button:focus-visible {
    outline: 3px solid var(--neon-color);
    outline-offset: 4px;
}

/* 响应式样式 - 平板端 (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .video-wrapper {
        width: 70vw;
    }

    .neon-button {
        padding: 14px 40px;
        font-size: 16px;
    }
}

/* 响应式样式 - 移动端 (< 768px) */
@media screen and (max-width: 767px) {
    .content-container {
        padding: 16px;
    }

    .video-wrapper {
        width: 90vw;
        min-width: 280px;
    }

    .button-wrapper {
        margin-top: 20px;
    }

    .neon-button {
        padding: 12px 32px;
        font-size: 14px;
        letter-spacing: 1px;
    }
}
