
body, html {
    padding: 0;
    font-family: Arial, sans-serif;
    overflow: hidden;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 50px;
    padding-right: 70px;
    background-color: #a22524;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    width: 97%;
    height: 40px;
    z-index: 1001;
}

.navbar .products {
    display: flex;
    flex-wrap: nowrap;
}

.navbar .products a {
    margin-left: 20px;
    color: white;
    text-decoration: none;
    white-space: nowrap;
}

.container {
    display: flex;
    flex-wrap: nowrap;
    margin-top: 50px;
}

.sidebar {
    width: 250px;
    background-color: #f2f2f2;
    padding: 20px;
    position: fixed;
    top: 40px;
    left: 0;
    height: calc(100vh - 40px);
    overflow: auto;
    z-index: 1000;
}

.section {
    flex: 1;
    padding: 0 20px 20px 20px;
    margin-left: 290px;
    margin-top: 40px;
    height: calc(100vh - 90px);
    overflow-y: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
    transition: margin-left 0.3s ease;
}

.video-container {
    width: 100%;
    padding-top: 56.25%; /* 这个百分比是视频宽高比，例如16:9就是56.25% */
    position: relative;
  }

  /* 将视频设置为绝对定位，使其在容器内居中显示 */
  video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.sidebar a {
    margin: 10px 0;
    color: #333;
    text-decoration: none;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
}

.sidebar li {
    margin-bottom: 5px;
}

.sidebar li ul {
    margin-left: 20px;
}

.sidebar li ul li {
    margin-left: 10px;
}

img {
    display: flex;
    max-width: 50%;
    height: auto;
    padding: 10px 0;
    margin-left: auto;
    margin-right: auto;
}

.full-width {
    max-width: 100%;
}

.navbar .logo {
    width: 60px;
    height: auto;
    margin-left: 0;
    margin-right: 0;
}

.contact {
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar .products {
        flex-direction: column;
        width: 100%;
    }

    .navbar .products a {
        margin: 5px 0;
    }

    .container {
        flex-direction: column;
    }

    .section {
        margin-left: 0;
    }

    .section.shift-right {
        margin-left: 0;
    }

    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
    }

    .sidebar.visible {
        left: 0;
    }
}
