/* form_styles.css */

body {
    font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    text-align: center;
    font-size: 16px;
    line-height: 1.6;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

form {
    width: 90%;
    max-width: 400px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center; /* 水平居中对齐 */
    align-items: center; /* 垂直居中对齐 */
    gap: 15px;
}

label {
    font-size: 1.3em;
    margin-right: 1px; /* 增加标签与输入框的间隔 */
}

input[type="number"] {
    font-size: 1em;
    padding: 8px;
    width: 100px; /* 固定宽度 */
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
}

button {
    font-size: 1.3em;
    padding: 8px 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #45a049;
}

@media screen and (max-width: 600px) {
    form {
        flex-direction: row;
        flex-wrap: wrap;
    }

    input[type="number"] {
        width: 100px; /* 固定宽度 */
    }

    label, button {
        flex: 1 1 auto;
    }
}