
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html, body {
  height: 100%;
  overflow: hidden;
}
body {
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.5;
  position: relative;
  overflow: hidden;
}
.visitor-apply {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.scroll-container {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 20px;
}
.header {
  background-color: #409EFF;
  color: white;
  text-align: center;
  padding: 15px 40px;
  position: relative;
  flex-shrink: 0;
}
.back-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  cursor: pointer;
  background-color: #014a97;
}
.description {
  background-color: #e8f4ff;
  color: #409EFF;
  padding: 12px 15px;
  margin: 0 10px 15px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.6;
}
.form-group {
  background-color: white;
  border-radius: 4px;
  margin: 0 10px 15px;
  overflow: hidden;
}
.section-title {
  background-color: #f0f9ff;
  color: #409EFF;
  padding: 12px 15px;
  font-size: 16px;
  border-bottom: 1px solid #e6e6e6;
}
.el-form {
  padding: 15px;
}
.el-form-item {
  margin-bottom: 18px;
}
.el-form-item__label {
  font-weight: normal;
  color: #606266;
  padding-right: 10px;
}
.el-checkbox-group {
  display: flex;
  flex-wrap: wrap;
}
.el-checkbox {
  margin-right: 15px;
  margin-bottom: 10px;
  min-width: 120px;
}
.button-container {
  padding: 15px;
  background: white;
  position: sticky;
  bottom: 0;
  z-index: 10;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  gap: 15px;
}
.submit-btn {
  flex: 1;
  max-width: 140px;
  background-color: #014a97;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
.header {
    padding: 12px 40px;
}
.description {
    padding: 10px 12px;
    font-size: 13px;
    margin-left: 8px;
    margin-right: 8px;
}
.form-group {
    margin-left: 8px;
    margin-right: 8px;
}
.section-title {
    padding: 10px 12px;
    font-size: 15px;
}
.el-form {
    padding: 12px;
}
.el-form-item {
    margin-bottom: 15px;
}
.el-checkbox-group {
    flex-direction: column;
}
.el-checkbox {
    margin-right: 0;
    margin-bottom: 8px;
    min-width: auto;
    width: 100%;
}
.el-input__inner, .el-select, .el-date-editor {
    font-size: 16px !important; /* 防止iOS缩放 */
}
.button-container {
    padding: 12px;
}
.submit-btn {
    max-width: 120px;
}
}
@media screen and (max-width: 480px) {
.header {
    padding: 10px 40px;
}
.description, .section-title {
    padding: 8px 10px;
}
.el-form {
    padding: 10px;
}
.el-form-item__label {
    width: 100px !important;
}
.el-form-item__content {
    margin-left: 100px !important;
}
}

/* 防止表单元素在iOS上缩放 */
@media screen and (max-width: 480px) {
input, select, textarea {
    font-size: 16px !important;
}
}

/* 优化日期选择器在移动端的显示 */
.el-date-editor.el-input {
  width: 100%;
}

/* 隐藏滚动条但保持滚动功能 */
.scroll-container::-webkit-scrollbar {
  width: 0 !important;
  display: none;
}

