/* 确保body和html的高度为100% */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden; /* 禁止滚动条 */
}

/* 设置背景视频 */
#background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保持视频宽高比并覆盖整个屏幕 */
    z-index: -1;
}

/* 按钮容器 */
.buttons-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column; /* 按钮竖排显示 */
    gap: 20px; /* 按钮之间的间距 */
    z-index: 1; /* 确保按钮显示在视频上面 */
}

.buttons-container a {
    text-decoration: none;
    background-color: rgba(0, 0, 0, 0.5); /* 黑色透明背景 */
    color: white; /* 白色文字 */
    padding: 15px 30px;
    font-size: 1.2em;
    border-radius: 30px; /* 圆角设计 */
    text-align: center;
    width: 200px; /* 定义按钮宽度 */
    transition: background-color 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.7); /* 白色边框 */
}

/* 普通按钮 hover效果 */
.buttons-container a:hover {
    background-color: rgba(0, 0, 0, 0.7); /* 悬停时黑色透明度增大 */
}

/* 红色按钮样式 */
.contact-btn {
    background-color: rgba(255, 0, 0, 0.5); /* 红色透明背景 */
    color: white; /* 白色文字 */
    border-radius: 30px; /* 圆角 */
    padding: 15px 30px;
    font-size: 1.2em;
    width: 200px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    animation: pulseButton 1.5s infinite; /* 动态循环显示 */
    border: 2px solid rgba(255, 255, 255, 0.7); /* 白色边框 */
}

.contact-btn:hover {
    background-color: rgba(255, 0, 0, 0.7); /* 悬停时红色透明度增大 */
}

/* 动画：按钮动态显示 */
@keyframes pulseButton {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

/* 自适应设计 */
@media screen and (max-width: 768px) {
    .buttons-container a {
        padding: 10px 20px;
        font-size: 1em;
        width: 150px; /* 调整手机上按钮宽度 */
    }

    .contact-btn {
        width: 150px; /* 红色按钮的宽度 */
    }
}

/* 弹窗提示样式 */
.alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: black; /* 黑色背景 */
    color: white;
    padding: 30px; /* 内边距，增加空间 */
    font-size: 1.1em; /* 缩小字体 */
    border-radius: 10px;
    z-index: 9999;
    display: none; /* 默认不显示 */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3); /* 给弹窗添加阴影效果 */
    border: 2px solid white; /* 白色边框 */
    text-align: center; /* 居中文本 */
    width: var(--popup-width, 310px); /* 使用变量来控制宽度，默认350px */
    height: var(--popup-height, 370px); /* 使用变量来控制高度，默认400px */
}

/* 弹窗关闭按钮 */
.close-btn {
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.close-btn:hover {
    background-color: #d32f2f; /* 悬停时的深红色 */
}

/* 底部版权样式 */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 0.8em; /* 缩小文字 */
    padding: 5px; /* 减少内边距 */
    color: white;
    background-color: transparent; /* 取消背景色 */
}

footer p {
    margin: 5px 0; /* 增加行间距 */
}
