/* 通用样式 */
body {
    font-size: 18px;
    line-height: 1.5;
    color: #333;
    font-family: Arial, Helvetica, sans-serif;
}

/* 主标题样式 */
h3 {
    text-align: left;
}

/* 段落样式 */
p {
    margin: 10px 10px 0;
}

/* 按钮样式 */
input[type="button"], button {
    font-size: 18px;
    padding: 8px 15px;
    margin-right: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    background-color: #959393;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

input[type="button"]:hover, button:hover {
    background-color: #0069d9;
}

/* 输入框样式 */
input[type="text"] {
    font-size: 18px;
    padding: 8px;
    border: 1px solid #ccc;
    width: 80px;
}

/* 表格样式 */
table {
    border-collapse: collapse;
    font-size: 16px;
    color: #333;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

th, td {
    padding: 12px;
    border: 1px solid #ccc;
    text-align: center;
}

th {
    background-color: #f2f2f2;
    font-weight: bold;
}

tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}

tbody tr:nth-child(even) {
    background-color: #fff;
}

tbody tr:hover {
    background-color: #e6f7ff;
}

/* 结果区域样式 */
#result {
    padding: 10px;
    background: #f5f5f5;
}

/* 表单样式 */
form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: -0.5em;
}

form::after {
    content: '';
    display: block;
    clear: both;
}

/* 容器样式 */
.container {
    line-height: 1.5;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.label, .input-field, .calculate-button {
    width: 100px;
    margin: 5px;
}

label {
    align-self: center;
}

/* 响应式设计 */
@media (max-width: 600px) {
    button {
        flex: 0 0 46%;
    }

    .container {
        flex-direction: column;
    }

    .label, .input-field, .calculate-button {
        width: 100%;
    }
}
