
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh; /* 设置 body 高度占满整个视口 */
}

.navbar {
    background-color: #333;
    width: 200px; /* 设置菜单栏的宽度 */
    float: left; /* 使菜单栏浮动到左侧 */
    height: 100vh; /* 设置菜单栏高度占满整个视口 */
}

.navbar a {
    display: block; /* 使链接块级显示，垂直排列 */
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

.navbar a:hover {
    background-color: #ddd;
    color: black;
}

.active {
    background-color: purple;
    color: white;
}

h1 {
    text-align: center;
    margin-top: 0px; /* 调整标题的上边距 */
}

.background-container {
    width: calc(100% - 220px); /* 减去菜单栏的宽度 */
    height: calc(100vh - 20px - 30px); /* 计算高度：视口高度 - 标题上边距 - 标题高度 */
    background-image: url('/image/logo-new.png'); /* 设置背景图片 */
    background-size: cover; /* 使背景图片覆盖整个元素 */
    background-position: center; /* 使背景图片居中 */
    background-repeat: no-repeat; /* 防止背景图片重复 */
    margin-left: 220px; /* 确保背景容器不与菜单栏重叠 */
    margin-top: 20px; /* 调整背景容器的上边距 */
}

.form-container {
    margin-left: 220px; /* 确保表单内容不与菜单栏重叠 */
    margin-top: 20px;
    padding: 20px; /* 添加内边距 */
    background-color: rgba(255, 255, 255, 0.8); /* 添加半透明背景色 */
    border-radius: 8px; /* 添加圆角 */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* 添加阴影 */
}

.form-container form {
    margin-bottom: 20px;
}