/* 设置所有元素的盒子模型为 border-box */
* {
    box-sizing: border-box;
}

/* 设置 body 的基础样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    background-color: #1c1c1e;
    color: white;
}

/* 设置 .box 类的样式 */
.box {
    background-color: black;
    border-radius: 8px;
    padding: 20px;
    max-width: 500px;
    margin-top: 10px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* 设置文本输入框和下拉选择框的样式 */
input[type="text"],
select {
    margin-top: 10px;
    padding: 10px;
    font-size: 16px;
    border-radius: 4px;
    border: 1px solid #555;
    background-color: #444;
    color: white;
    width: 100%;
}

/* 设置按钮的样式 */
button.button {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}

/* 设置按钮在悬停时的样式 */
button.button:hover {
    background-color: #0056b3;
}

/* 查询按钮基础样式 */
.query-button {
    display: inline-block;
    padding: 8px 16px;
    margin: 5px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s;
    width: auto;
    text-align: center;
    vertical-align: middle;
}

/* 按钮悬停效果 */
.query-button:hover {
    background-color: #0069d9;
}

/* TSS查询按钮的自定义样式 */
.button-tsssaver {
    background-color: #444;
}

/* TSS查询按钮悬停效果 */
.button-tsssaver:hover {
    background-color: #ff4e4e;
}

/* 爱思查询按钮的自定义样式 */
.button-aisi {
    background-color: #444;
}

/* 爱思查询按钮悬停效果 */
.button-aisi:hover {
    background-color: #38b000;
}

/* 按钮容器样式 */
.button-container {
    text-align: center;
    margin: 20px 0;
}

/* 按钮内容包裹器 - 解决iOS7垂直对齐问题 */
.button-content {
    display: inline-block;
    vertical-align: middle;
}

/* 按钮图标样式 */
.button-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    vertical-align: middle;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 0px;
}

/* 设置文本区域的样式 */
textarea {
    margin-top: 10px;
    width: 100%;
    height: 60px;
    resize: both;
    font-size: 14px;
    padding: 5px;
    text-align: center;
    line-height: 60px;
}

/* 页脚基础样式 - 兼容iOS5 */
footer {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    padding: 20px 0;
    color: #444;
    border-radius: 0 0 8px 8px;
    text-align: center;
    position: relative;
    margin-top: 0px;
}

/* 版权信息容器 */
.footer {
    display: block;
    margin: 0 auto;
    width: 100%;
}

/* 版权信息样式 */
.footer p {
    margin: 3px 0;
    color: #444;
    font-size: 12px;
    text-align: center;
}

/* 版权年份样式 */
.footer .copyright {
    color: #444;
    font-size: 12px;
}

/* ICP 备案号样式 */
.footer .icp {
    color: #444;
    font-size: 11px;
}

/* 垂直居中辅助类 - iOS5兼容方案 */
.vertical-center {
    position: relative;
    top: 50%;
    transform: translateY(0%);
    -ms-transform: translateY(0%);
    -webkit-transform: translateY(0%);
}

/* 替代Flex布局的样式 */
.flex-column {
    display: block;
}

.flex-item {
    margin-bottom: 10px;
}

/* 隐藏元素的样式 */
.hidden {
    display: none;
}