* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f3f4f6;
  color: #111827;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei",
    sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

.app {
  width: min(100%, 480px);
  min-height: 100vh;
  margin: 0 auto;
  background: #fff;
}

.nav {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111827;
  color: #fff;
  font-weight: 750;
}

.page {
  padding: 24px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #6b7280;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 1.2;
}

.muted {
  color: #4b5563;
  line-height: 1.55;
}

.compact {
  margin-top: -6px;
  margin-bottom: 18px;
}

.hint {
  margin: 6px 0 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.45;
}

.notice {
  margin-top: 18px;
  padding: 12px;
  border-radius: 8px;
  background: #f3f4f6;
  color: #374151;
  line-height: 1.5;
  font-size: 14px;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin-bottom: 12px;
}

.matchmaker-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: #374151;
  font-weight: 700;
}

.matchmaker-profile .avatar {
  width: 56px;
  height: 56px;
  margin: 0;
}

.field {
  margin-bottom: 16px;
}

.grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-progress {
  margin: 16px 0 20px;
}

.form-progress > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: #4b5563;
  font-size: 13px;
}

.form-progress strong {
  flex: 0 0 auto;
  color: #111827;
  font-size: 13px;
}

.progress-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.progress-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #111827;
  transition: width 180ms ease;
}

.form-step[hidden],
.form-actions [hidden] {
  display: none;
}

.step-hint {
  margin: 0 0 16px;
}

.form-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 16px;
}

.form-actions:has(#backStep:not([hidden])) {
  grid-template-columns: 0.9fr 1.1fr;
}

.city-picker {
  margin-top: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px;
  max-height: 260px;
  overflow: auto;
  background: #fafafa;
}

.city-group + .city-group {
  margin-top: 12px;
}

.city-more {
  margin-top: 10px;
}

.city-more summary {
  cursor: pointer;
  color: #111827;
  font-size: 14px;
  font-weight: 750;
  list-style: none;
}

.city-more summary::-webkit-details-marker {
  display: none;
}

.city-more summary::after {
  content: "展开";
  float: right;
  color: #6b7280;
  font-size: 13px;
}

.city-more[open] summary::after {
  content: "收起";
}

.city-group p {
  margin: 0 0 8px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 34px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 6px 12px;
  background: #fff;
  color: #111827;
}

.chip.selected {
  border-color: #111827;
  background: #111827;
  color: #fff;
}

.label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  color: #374151;
  font-size: 14px;
}

.label em {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
}

.label .required {
  background: #fee2e2;
  color: #991b1b;
}

.label .optional {
  background: #f3f4f6;
  color: #6b7280;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 9px 10px;
  background: #fff;
  color: #111827;
}

.textarea {
  min-height: 132px;
  resize: vertical;
}

.textarea.short {
  min-height: 84px;
}

.field.invalid .input,
.field.invalid .select,
.field.invalid .textarea,
.field.invalid .file-upload {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px #fee2e2;
}

.file-upload {
  position: relative;
  display: flex;
  min-height: 168px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  overflow: hidden;
  border: 1px dashed #9ca3af;
  border-radius: 8px;
  padding: 18px;
  background: #f9fafb;
  color: #374151;
  text-align: center;
}

.file-upload input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.file-upload span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 28px;
  font-weight: 750;
  line-height: 1;
}

.file-upload strong {
  max-width: 100%;
  overflow: hidden;
  color: #111827;
  font-size: 15px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-upload small {
  color: #6b7280;
  font-size: 13px;
}

.file-upload.has-photo {
  min-height: 220px;
  border-style: solid;
  background-image:
    linear-gradient(rgba(17, 24, 39, 0.18), rgba(17, 24, 39, 0.18)),
    var(--photo-url);
  background-position: center;
  background-size: cover;
  color: #fff;
}

.file-upload.has-photo strong,
.file-upload.has-photo small {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.file-upload.has-photo .upload-plus {
  background: rgba(17, 24, 39, 0.78);
}

.button {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  font-weight: 750;
}

.button.secondary {
  background: #e5e7eb;
  color: #111827;
}

.button:disabled {
  opacity: 0.55;
}

.stack {
  display: grid;
  gap: 12px;
}

.id {
  display: block;
  margin: 12px 0 28px;
  text-align: center;
  font-size: 52px;
  line-height: 1;
  font-weight: 850;
}

.center {
  text-align: center;
}

.card,
.row {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.thumb {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
}

.hero-photo {
  width: 100%;
  height: 280px;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 16px;
}

.detail-list {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.detail-list p {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  margin: 0;
  line-height: 1.45;
}

.detail-list span {
  color: #6b7280;
}

.strong {
  display: block;
  font-weight: 750;
}

.error {
  padding: 10px 12px;
  border-radius: 8px;
  background: #fee2e2;
  color: #991b1b;
  line-height: 1.4;
}

.ok {
  padding: 10px 12px;
  border-radius: 8px;
  background: #dcfce7;
  color: #166534;
}

.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}

.toolbar .input {
  flex: 1;
}
