/* 个人设置使用两组列表，页面继续透出原有固定背景。 */
body.user-profile-page .profile-page-content,
body.user-profile-page .front-app-frame.user-profile-page .profile-page-content {
  width: calc(100% - 28px);
  max-width: 100%;
  min-height: 0;
  margin: 0 auto;
  padding: 22px 0 calc(36px + env(safe-area-inset-bottom));
}

body.user-profile-page .profile-identity {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  margin: 0 3px 27px;
}

body.user-profile-page .profile-identity > img {
  display: block;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

body.user-profile-page .profile-identity-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

body.user-profile-page .profile-identity-copy strong {
  overflow: hidden;
  color: #29262d;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.user-profile-page .profile-identity-copy > span {
  color: #89838d;
  font-size: 12px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

body.user-profile-page .profile-settings-form {
  display: grid;
  gap: 23px;
  min-width: 0;
  margin: 0;
}

body.user-profile-page .profile-group {
  min-width: 0;
}

body.user-profile-page .profile-group > h2 {
  margin: 0 0 10px 3px;
  color: #6f6875;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
}

body.user-profile-page .profile-group-panel {
  overflow: hidden;
  border: 0;
  border-radius: 13px;
  background: #fff;
  box-shadow: none;
}

body.user-profile-page .profile-setting-row,
body.user-profile-page .profile-security-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-width: 0;
  min-height: 54px;
  margin: 0;
  padding: 9px 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #37313c;
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}

body.user-profile-page .profile-group-panel > :not(:last-child)::after {
  position: absolute;
  right: 16px;
  bottom: 0;
  left: 16px;
  height: 1px;
  background: #f0edf2;
  content: "";
  pointer-events: none;
}

body.user-profile-page .profile-setting-row > span,
body.user-profile-page .profile-row-label {
  flex: 0 0 auto;
  font-weight: 500;
}

body.user-profile-page .profile-setting-row .input {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  height: 35px;
  margin: 0;
  padding: 5px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #38313f;
  outline: none;
  box-shadow: none;
  font: inherit;
  font-size: 13px;
  text-align: right;
}

body.user-profile-page .profile-setting-row .input[readonly] {
  color: #817a87;
  cursor: text;
}

body.user-profile-page .profile-setting-row .input::placeholder {
  color: #aaa3af;
  opacity: 1;
}

body.user-profile-page .profile-setting-row .input:focus {
  border-bottom-color: #ab96b8;
  background: transparent;
  box-shadow: none;
}

body.user-profile-page .profile-setting-row .input[readonly]:focus {
  border-bottom-color: transparent;
}

body.user-profile-page .profile-row-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

body.user-profile-page .profile-row-value {
  min-width: 0;
  overflow: hidden;
  color: #8e8695;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.user-profile-page .profile-row-end svg {
  display: block;
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  fill: #b2aab9;
}

body.user-profile-page button.profile-security-row {
  cursor: pointer;
}

body.user-profile-page button.profile-security-row:active {
  background: #f8f6f9;
}

body.user-profile-page .profile-wechat-actions {
  display: flex;
  flex: 0 0 auto;
}

body.user-profile-page .profile-row-action {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-height: 36px;
  margin: 0 -3px 0 0;
  padding: 3px 0 3px 7px;
  border: 0;
  background: transparent;
  color: #62556e;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

body.user-profile-page .profile-group-note {
  margin: 9px 3px 0;
  color: #98909e;
  font-size: 10px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

body.user-profile-page .profile-save-button {
  width: 100%;
  min-height: 46px;
  margin-top: 1px;
  padding: 11px 18px;
  border: 0;
  border-radius: 12px;
  background: #302b35;
  color: #fff;
  box-shadow: none;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
  cursor: pointer;
}

body.user-profile-page .profile-save-button:disabled {
  opacity: .55;
  cursor: default;
}

body.user-profile-page :is(.profile-save-button, .profile-security-row, .profile-row-action):focus-visible {
  outline: 2px solid #a78ab8;
  outline-offset: -3px;
}

body.user-profile-page .profile-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* 弹窗继续用实色表单，输入时只提示边框，不叠加光晕。 */
body.user-profile-page .security-dialog-layer {
  overflow: hidden;
}

body.user-profile-page .security-dialog-layer[aria-hidden="true"] {
  visibility: hidden;
}

body.user-profile-page .security-dialog-form .input:focus {
  border-color: #b4a1c1;
  background: #fff;
  box-shadow: none;
}

@media (max-width: 360px) {
  body.user-profile-page .profile-setting-row,
  body.user-profile-page .profile-security-row {
    gap: 12px;
    padding-right: 14px;
    padding-left: 14px;
  }
}
