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;
}

h1 {
    text-align: center;
    margin-top: 0px; /* 调整标题的上边距 */
}

.active {
    background-color: purple;
    color: white;
}

.form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: calc(20vh); /* 上下间隔 */
}

.form-container form {
    align-items: center;
    width: 100%;
    max-width: 800px; /* 根据需要调整宽度 */
}

.form-container input[type="text"] {
    margin-bottom: 100px;
    width: 60%;
}

.form-container input[type="submit"] {
    float: right;
    background-color: purple; /* 设置背景颜色为紫色 */
    color: white; /* 设置文字颜色为白色 */
    border: none; /* 去掉边框 */
    padding: 10px 20px; /* 设置内边距 */
    cursor: pointer; /* 设置鼠标悬停时的光标样式 */
    margin-top: 20px; /* 提交按钮与上方内容的间隔 */
}

.form-container input[type="submit"]:hover {
    background-color: darkviolet; /* 设置悬停时的背景颜色 */
}