/* 全局样式 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

.container {
  max-width: 800px;
}
.formbody{
  margin: 40px auto;
  padding: 30px;
  background-color: #fff;
}
.header {
  background-color: rgb(41, 99, 200);
  zoom: 1;
  min-height: 195px;
  background-image: url(/images/bg.jpg);
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: 100%;
  border: 0;
}

h1 {
  text-align: center;
  margin-bottom: 20px;
  color: #fff;
}

.description {
  text-align: center;
  margin-bottom: 30px;
  color: #fff;
}

/* 表单样式 */
.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.required {
  color: #e53935;
}

input, select, textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s;
  background-color: #fff; /* 确保有背景色 */
  -webkit-appearance: none; /* 移除 iOS Safari 默认样式 */
  appearance: none; /* 移除标准浏览器默认样式 */
}

/* 为 select 添加自定义箭头 */
select {
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27292.4%27%20height%3D%27292.4%27%3E%3Cpath%20fill%3D%27%23007AFF%27%20d%3D%27M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%27%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px;
  padding-right: 30px; /* 为箭头腾出空间 */
}

/* 兼容性处理：确保在微信中 select 也能正常显示 */
select::-ms-expand {
  display: none; /* 隐藏 IE/Edge 的默认箭头 */
}

input:focus, select:focus, textarea:focus {
  border-color: #1e63ee;
  outline: none;
  box-shadow: 0 0 0 2px rgba(30, 99, 238, 0.2);
}

.form-actions {
  margin-top: 30px;
}

button {
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-submit {
  background-color: #1e63ee;
  color: white;
  width: 100%;
  display: block;
}

.btn-submit:hover {
  background-color: #1a56d6;
}

.btn-reset {
  background-color: #f5f5f5;
  color: #666;
}

.btn-reset:hover {
  background-color: #e0e0e0;
}

/* 成功和错误页面样式 */
.success-container, .error-container {
  text-align: center;
}

.success-message {
  color: #2e7d32;
}

.error-message {
  color: #c62828;
}

.actions {
  margin-top: 30px;
}

.btn-primary {
  display: inline-block;
  padding: 12px 24px;
  background-color: #1e63ee;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.btn-primary:hover {
  background-color: #1a56d6;
}

/* 表单验证样式 */
.error {
  color: #e53935;
  font-size: 14px;
  margin-top: 5px;
}

input.invalid, select.invalid {
  border-color: #e53935;
}

/* 帮助信息样式 */
.help-text {
  color: #888;
  font-size: 14px;
  margin-bottom: 8px;
  margin-top: -4px;
}

@media (max-width: 768px) {
  .help-text {
    font-size: 13px;
  }
}

/* 帮助按钮样式 */
.help-button {
  border: none;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
}

/* 移动设备适配 */
@media (max-width: 768px) {
  .formbody{
    margin: auto;
    margin-bottom: 20px;
    padding: 20px 15px;
  }
  
  input, select, textarea {
    padding: 10px;
    font-size: 15px;
  }
  
  .help-popup {
    width: 95%;
    padding: 15px;
  }
}