body {
    font-family: Arial, sans-serif;
    margin: 20px;
    display: flex;
    justify-content: center; /* 使内容水平居中 */
    align-items: center;     /* 使内容垂直居中 */
    height: 100vh;           /* 高度设置为100%视口高度 */
    background-color: #f0f0f0; /* 设置背景颜色 */
}

.container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 350px;            /* 设置容器宽度 */
    text-align: left;        /* 文本靠左对齐 */
}

h1 {
    font-size: 20px;
    margin-bottom: 20px;
    text-align: center; /* 标题居中 */
}

form {
    margin-bottom: 20px;
}

label, select, input {
    display: block;
    margin-bottom: 10px;
    width: 100%;
}

select, input {
    padding: 10px;  /* 设置内边距来增加高度 */
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px; /* 确保文字大小一致 */
    height: 40px;  /* 强制输入框和下拉菜单保持一致的高度 */
}

button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    width: 100%;
}

button:hover {
    background-color: #45a049;
}

#output {
    margin-top: 20px;
}

#output p {
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.5;
}

label {
    font-weight: bold;
}

input[type="number"] {
    padding: 12px;      /* 增加内边距，确保内容居中 */
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;    /* 确保文字大小一致 */
    height: 50px;       /* 将高度设置为 50px，以使输入框更高 */
    box-sizing: border-box; /* 确保 padding 不影响总高度 */
}

select {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    height: 50px;       /* 与输入框高度一致 */
}

