body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont;
  background: #f5f6f8;
  /* 防止移动端横向滚动 */
  overflow-x: hidden;
}

.container {
  padding-bottom: 60px;
  /* 给容器加左右内边距，避免内容贴边 */
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}

.card {
  max-width: 480px;
  margin: auto;
  padding: 16px;
  background: #fff;
  /* 确保card的内边距不影响宽度计算 */
  box-sizing: border-box;
}

label {
  display: block;
  margin-top: 14px;
  color: #555;
}

/* 统一表单元素的盒模型和样式 */
input, select, textarea {
  width: 100%;
  padding: 10px;
  margin-top: 4px;
  font-size: 16px;
  /* 核心修复：盒模型包含padding和border */
  box-sizing: border-box;
  /* 统一边框样式，避免不同浏览器默认样式差异 */
  border: 1px solid #ddd;
  border-radius: 4px;
  /* 清除默认外观（尤其是select） */
  appearance: none;
  -webkit-appearance: none;
}

/* 给select加下拉箭头占位，避免样式丢失 */
select {
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
  padding-right: 30px;
}

textarea {
  min-height: 60px;
  /* 禁止textarea拉伸（可选） */
  resize: vertical;
}

button {
  margin-top: 16px;
  width: 100%;
  padding: 12px;
  background: #222;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  box-sizing: border-box;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  display: flex;
  background: #fff;
  border-top: 1px solid #ddd;
  /* 确保导航栏不被遮挡 */
  z-index: 100;
}

.bottom-nav a {
  flex: 1;
  text-align: center;
  line-height: 50px;
  text-decoration: none;
  color: #333;
  /* 优化点击区域 */
  display: block;
}

/* 移动端适配：禁止字体缩放 */
input, button, select, textarea {
  font-size: 16px !important;
}