* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f0f4f8; color: #1f2937; line-height: 1.6;
}
.page { max-width: 720px; margin: 0 auto; padding: 16px; }
.header { text-align: center; padding: 18px 0 14px; }
.header h1 { font-size: 22px; font-weight: 700; }
.header p { font-size: 13px; color: #6b7280; margin-top: 4px; }
.req { color: #dc2626; }
.card {
  background: #fff; border-radius: 12px; padding: 16px;
  margin-bottom: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.card h2 { font-size: 16px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #e5e7eb; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 6px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.field input, .field select {
  width: 100%; padding: 9px 10px; font-size: 14px; border: 1px solid #d1d5db;
  border-radius: 8px; background: #fff; outline: none;
}
.field input:focus, .field select:focus { border-color: #2563eb; box-shadow: 0 0 0 2px rgba(37,99,235,.15); }
.hint { font-size: 12px; color: #9ca3af; margin-top: 3px; }
.hidden { display: none !important; }
.field-error { color: #dc2626; font-size: 12px; margin-top: 4px; }
.limit-tip { font-size: 12px; color: #6b7280; font-weight: 400; }

.vehicle-card {
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 12px; margin-bottom: 10px;
}
.vehicle-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.vehicle-head h3 { font-size: 14px; color: #374151; }
.btn-del {
  border: none; background: #fee2e2; color: #dc2626; font-size: 12px;
  padding: 4px 10px; border-radius: 6px; cursor: pointer;
}
.btn-add {
  width: 100%; padding: 10px; font-size: 14px; color: #2563eb;
  border: 1px dashed #93c5fd; border-radius: 10px; background: #eff6ff; cursor: pointer;
}
.btn-submit {
  width: 100%; padding: 13px; font-size: 16px; font-weight: 600; color: #fff;
  background: #2563eb; border: none; border-radius: 10px; cursor: pointer;
}
.btn-submit:disabled { background: #9ca3af; cursor: not-allowed; }
.submit-row { margin: 6px 0 10px; }
.msg { padding: 12px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 14px; }
.msg.ok { background: #dcfce7; color: #166534; }
.msg.err { background: #fee2e2; color: #991b1b; }

/* ===== 车辆照片上传 ===== */
.photo-field { grid-column: 1 / -1; margin-top: 4px; }
.photo-hint { font-size: 12px; color: #b45309; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 6px 10px; margin-bottom: 8px; }
.photo-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.photo-btn {
  flex: 1; min-width: 130px; display: flex; align-items: center; justify-content: center;
  padding: 12px; background: #2563eb; color: #fff; font-size: 14px; font-weight: 600;
  border-radius: 10px; cursor: pointer; -webkit-tap-highlight-color: transparent; text-align: center;
}
.photo-btn.alt { background: #0f766e; }
.photo-btn:active { opacity: .85; }
.photo-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.photo-preview { margin-top: 10px; }
.photo-preview img { max-width: 200px; max-height: 150px; border-radius: 8px; border: 1px solid #d1d5db; display: block; }
.photo-note { font-size: 12px; color: #d97706; margin-top: 6px; }
.photo-repick { font-size: 12px; color: #9ca3af; margin-top: 4px; }
@media (max-width: 480px) {
  .photo-btn { flex: 1 1 100%; }
  .photo-preview img { max-width: 100%; }
}
