.account-profile-layer {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(21, 32, 45, .42);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.account-profile-layer.is-open {
  display: flex;
}

.account-profile-dialog {
  position: relative;
  width: min(430px, 100%);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  padding: 20px;
  border: 1px solid #f1dbe2;
  border-radius: 18px;
  background: #fff;
  color: #384152;
  box-shadow: 0 24px 60px rgba(22, 33, 48, .22);
  font-family: "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

.account-profile-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.account-profile-head p {
  margin: 0 0 4px;
  color: #d088a6;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .8px;
}

.account-profile-head h2 {
  margin: 0;
  color: #202938;
  font-size: 20px;
}

.account-profile-close {
  width: 30px;
  height: 30px;
  flex: none;
  padding: 0;
  border: 1px solid #ead6dc;
  border-radius: 8px;
  background: #fff;
  color: #667085;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.account-profile-close:hover {
  background: #fff2f6;
  color: #c2185b;
}

.account-profile-summary {
  padding: 12px;
  margin-bottom: 16px;
  border: 1px solid #f3e1e6;
  border-radius: 12px;
  background: #fff8fa;
}

.account-profile-summary strong {
  display: block;
  color: #2b3442;
  font-size: 14px;
}

.account-profile-summary span {
  display: block;
  margin-top: 4px;
  color: #7b8494;
  font-size: 11.5px;
  line-height: 1.6;
}

.account-profile-form h3 {
  margin: 0 0 4px;
  color: #2b3442;
  font-size: 14px;
}

.account-profile-hint {
  margin: 0 0 12px;
  color: #8b94a3;
  font-size: 11px;
  line-height: 1.6;
}

.account-profile-field {
  display: block;
  margin: 0 0 10px;
  color: #59657a;
  font-size: 11.5px;
  font-weight: 600;
}

.account-profile-field input {
  display: block;
  width: 100%;
  height: 38px;
  margin-top: 5px;
  padding: 0 10px;
  border: 1px solid #e3e8ef;
  border-radius: 9px;
  background: #fff;
  color: #202938;
  font: 400 13px/1 "Microsoft YaHei", system-ui, sans-serif;
  box-sizing: border-box;
}

.account-profile-field input:focus {
  outline: 2px solid #f3bacd;
  outline-offset: 1px;
  border-color: #e8a5bb;
}

.account-profile-error,
.account-profile-success {
  min-height: 16px;
  margin: 2px 0 10px;
  font-size: 11.5px;
  line-height: 1.5;
}

.account-profile-error {
  color: #b42318;
}

.account-profile-success {
  color: #15803d;
}

.account-profile-submit {
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: #e20964;
  color: #fff;
  font: 700 13px/1 "Microsoft YaHei", system-ui, sans-serif;
  cursor: pointer;
}

.account-profile-submit:disabled {
  opacity: .6;
  cursor: wait;
}

.account-profile-notice {
  margin: 0;
  padding: 12px;
  border-radius: 10px;
  background: #f5f7fa;
  color: #667085;
  font-size: 12px;
  line-height: 1.7;
}

@media (max-width: 520px) {
  .account-profile-layer {
    padding: 12px;
  }

  .account-profile-dialog {
    padding: 16px;
    border-radius: 15px;
  }
}
