body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

h1 {
    text-align: center;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.video-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
}

.video-item {
    width: calc(33.333% - 20px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, #74ebd5, #acb6e5);
    transition: transform 0.3s ease-in-out;
}

.video-item:hover {
    transform: scale(1.05);
}

.video-header {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 8px 8px 0 0;
}

.bold-title {
    font-weight: bold;
    color: #333;
    font-size: 1.2rem;
}

video {
    width: 100%;
    height: auto;
    border-radius: 0 0 8px 8px;
    position: relative;
    z-index: 1;
}

.web-qr-btn {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease-in-out;
    display: block;
    margin: 20px auto;
}

.web-qr-btn:hover {
    background-color: #0056f3;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    border-radius: 8px;
    text-align: center;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.qr-code-container {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}

/* Responsive styles for mobile devices */
@media (max-width: 600px) {
    .container {
        padding: 10px;
    }

    .video-item {
        width: 100%;
    }

    .video-header {
        padding: 5px 10px;
    }

    .bold-title {
        font-size: 1rem;
    }

    video {
        height: 200px;
    }

    .web-qr-btn {
        padding: 5px 10px;
    }

    .modal-content {
        width: 90%;
        margin: 10% auto;
    }
}
/* 修改标题和说明书按钮的样式 */
.header {
    display: flex;
    align-items: center; /* 垂直居中对齐 */
    justify-content: space-between; /* 水平对齐 */
    padding: 10px 0; /* 添加一些上下内边距 */
}

.header h1 {
    margin: 0; /* 移除默认的标题外边距 */
}

.manual-btn {
    padding: 10px 20px; /* 增加按钮的内边距 */
    background-color: #007BFF; /* 使用蓝色背景 */
    color: white; /* 文字颜色为白色 */
    text-decoration: none; /* 移除下划线 */
    border: none; /* 移除边框 */
    border-radius: 5px; /* 添加圆角 */
    font-size: 16px; /* 设置字体大小 */
    cursor: pointer; /* 鼠标悬停时显示手型 */
    transition: background-color 0.3s; /* 添加背景颜色过渡效果 */
}

.manual-btn:hover {
    background-color: #0056b3; /* 鼠标悬停时背景颜色变深 */
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-container video {
    width: 100%;
    height: auto;
    border-radius: 0 0 8px 8px;
}

.video-container .video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    border-radius: 0 0 8px 8px;
}