/* 全局样式 */
* {
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  margin: 0;
  padding: 0;
}
tr {
  line-height: 1; /*设置行高为2倍*/
}    

table {
  border-collapse: collapse;
  width: 100%;
  max-width: 900px;
  margin: 10px auto;
}

th,
td {
  padding: 10px;
  text-align: center;
  border: 1px solid #ddd;
}

th {
  font-weight: bold;
  background-color: #f2f2f2;
}

td.result {
  font-weight: bold;
  color: #4caf50;
}

tfoot td {
  border-top: none;
  text-align: center;
}

button {
  padding: 5px 10px;
  border-radius: 5px;
  background-color: #4caf50;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 16px;
  margin-top: 10px;
}

button:hover {
  background-color: #3e8e41;
}

/* 表格1的样式 */
#formula1 {
  width: 100%;
  padding: 10px;
  font-size:16px;
}

#formula1 option {
  font-size: 16px;
}

#formula1:focus {
  outline: none;
}

input[type="number"] {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: none;
  background-color: #f2f2f2;
  text-align: center;
}

input[type="number"]:focus {
  outline: none;
  background-color: #fff;
}



/* 表格2的样式 */
#formula2 {
  width: 100%;
  padding: 10px;
  font-size: 16px;
}

#formula2 option {
  font-size: 16px;
}

#formula2:focus {
  outline: none;
}

input[type="number"] {
  width: 100%;
  padding: 5px;
  font-size: 16px;
  border: none;
  background-color: #f2f2f2;
  text-align: center;
}

input[type="number"]:focus {
  outline: none;
  background-color: #fff;
}

#result5,
#result6 {
  color: #4caf50;
}
#searchInput {
  display: block;
  margin: 0 auto;
  text-align: center;
  width: 30%; /* 控制搜索框的宽度 */
  height: 40px; /* 控制搜索框的高度 */
}

#search-buttons {
  display: flex;
  justify-content: center;
  margin-top: 10px; /* 控制搜索按钮与搜索框之间的间距 */
}    
 h2 {
  text-align: center;
}   
 h1 {
  margin-top: 30px;   
  text-align: center;
}  
/* 表格3的样式 */
#formula3 {
  width: 100%;
  padding: 10px;
  font-size: 16px;
}

#formula3 option {
  font-size: 16px;
}

#formula3:focus {
  outline: none;
}
/* 表格4的样式 */
#formula4 {
  width: 100%;
  padding: 10px;
  font-size: 16px;
}

#formula4 option {
  font-size: 16px;
}

#formula4:focus {
  outline: none;
}