* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}
html {
  font-size: 16px;
}
body {
  background-color: #f5f7fa;
  padding: 16px;
  max-width: 920px;
  margin: 0 auto;
  min-height: 100vh;
}
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
#lang-btn {
  padding: 9px 18px;
  border: 1px solid #2563eb;
  background-color: #ffffff;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}
#lang-btn:hover {
  background-color: #2563eb;
  color: #fff;
}
.card {
  background: #ffffff;
  padding: 24px;
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
}
.title {
  font-size: 22px;
  margin-bottom: 20px;
  color: #1e293b;
}
.type-row {
  margin-bottom: 20px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.form-group {
  margin-bottom: 18px;
}
label {
  display: block;
  margin-bottom: 7px;
  color: #334155;
  font-weight: 500;
  font-size: 15px;
}
input[type="text"],
input[type="tel"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 15px;
  transition: border 0.2s;
}
input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
#upload-box {
  border: 2px dashed #94a3b8;
  padding: 36px 16px;
  text-align: center;
  border-radius: 10px;
  margin: 12px 0;
  cursor: pointer;
  transition: all 0.2s;
  color: #64748b;
}
#upload-box:hover {
  border-color: #2563eb;
  background-color: #f8faff;
}
#passport-file {
  display: none;
}
.btn-submit {
  width: 100%;
  padding: 14px;
  background-color: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  margin-top: 16px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-submit:hover {
  background-color: #1d4ed8;
}
.form-hidden {
  display: none !important;
}
.veri-row {
  display: flex;
  gap: 10px;
}
.veri-row input {
  flex: 1;
}
.veri-row button {
  white-space: nowrap;
  padding: 0 14px;
  border: 1px solid #2563eb;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
}
#ocr-tip {
  margin: 8px 0;
  font-size: 14px;
}
.passport-wrap {
  margin: 28px 0 10px;
}

/* ========== 移动端适配核心媒体查询 ========== */
@media screen and (max-width: 768px) {
  body {
    padding: 12px;
  }
  .card {
    padding: 18px;
  }
  .title {
    font-size: 20px;
  }
  .type-row {
    flex-direction: column;
    gap: 10px;
  }
  #upload-box {
    padding: 26px 10px;
  }
  .veri-row {
    flex-direction: column;
  }
}
@media screen and (max-width: 480px) {
  html {
    font-size: 15px;
  }
  .header {
    flex-direction: column;
    align-items: flex-start;
  }
}
