/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    padding: 0;
}

/* 视频背景 */
.video-background {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}

/* 隐藏视频控制条 */
.video-background::-webkit-media-controls {
    display: none !important;
}

.video-background::-webkit-media-controls-panel {
    display: none !important;
}

/* 背景遮罩层 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

/* 图片容器 - PC端左上角 */
.image-container {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.image-container img {
    max-width: 250px;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* 内容容器 - 底部更靠下 */
.content-container {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 1000px;
    width: calc(100% - 40px);
    padding: 15px;
    text-align: center;
    background: transparent;
    border-radius: 10px;
}

.description {
    margin: 30px 0;
}

.description p {
    font-size: 1.0em;
    color: #e6f49d;
    margin-bottom: 8px;
    line-height: 1.4;
}

.button-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.btn {
    padding: 12px 30px;
    font-size: 1.1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-enter {
    background-color: rgba(144, 238, 144, 0.139);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-enter:hover {
    background-color: rgba(144, 238, 144, 0.182);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.btn-cancel {
    background-color: rgba(144, 238, 144, 0.139);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-cancel:hover {
    background-color: rgba(144, 238, 144, 0.164);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* 视频全屏适配 */
@media (max-aspect-ratio: 16/9) {
    .video-background {
        width: 100%;
        height: auto;
    }
}

@media (min-aspect-ratio: 16/9) {
    .video-background {
        width: auto;
        height: 100%;
    }
}

/* 响应式设计 - 平板和手机 */
@media (max-width: 768px) {
    /* 移动端恢复垂直居中布局 */
    body {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 15px;
    }

    .image-container {
        position: relative;
        top: auto;
        left: auto;
        margin-bottom: 30px;
    }

    .image-container img {
        max-width: 250px;
    }

    .content-container {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        width: 100%;
        padding: 15px;
        margin: 0;
    }

    .description p {
        font-size: 1.1em;
    }

    .button-container {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 200px;
        margin-bottom: 10px;
    }
}

/* 超小屏幕适配 */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .image-container img {
        max-width: 200px;
    }

    .content-container {
        padding: 10px;
        width: calc(100% - 20px);
    }

    .description p {
        font-size: 1em;
    }

    .btn {
        width: 180px;
        padding: 10px 20px;
        font-size: 1em;
    }
}

/* 横屏适配 */
@media (orientation: landscape) and (max-height: 500px) and (max-width: 768px) {
    body {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-around;
        padding: 10px;
    }

    .image-container {
        position: relative;
        top: auto;
        left: auto;
        margin-bottom: 0;
        margin-right: 20px;
    }

    .image-container img {
        max-width: 200px;
    }

    .content-container {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        max-width: 400px;
        width: auto;
        padding: 15px;
    }

    .description {
        margin: 15px 0;
    }

    .description p {
        font-size: 0.9em;
        margin-bottom: 8px;
    }
}
