/* 个人资料 / 安全设置 子页 */
.profile-page {
  min-height: min(100vh, var(--view-height, 100vh));
  background: var(--theme-app-backgroud-color, #f4f4f4);
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + min(4vw, 21.6px));
}

.profile-card {
  margin: min(2.666667vw, 14.4px) min(2.933333vw, 15.84px) 0;
  padding: min(4vw, 21.6px) min(3.733333vw, 20.16px);
  background: var(--theme-card-background, #fff);
  border-radius: min(2.133333vw, 11.52px);
  border: min(0.266667vw, 1.44px) solid rgba(0, 0, 0, 0.04);
}

.profile-form-card {
  display: flex;
  flex-direction: column;
  gap: min(3.2vw, 17.28px);
}

.profile-avatar-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: min(1.6vw, 8.64px);
  margin: 0 auto min(4vw, 21.6px);
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.profile-avatar-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.profile-avatar {
  width: min(21.333333vw, 115.2px);
  height: min(21.333333vw, 115.2px);
  border-radius: 50%;
  object-fit: cover;
  border: min(0.533333vw, 2.88px) solid rgba(189, 149, 52, 0.35);
}

.profile-avatar-tip {
  font-size: min(3.2vw, 17.28px);
  color: var(--theme-btn-primary-background, #bd9534);
}

.profile-file-input {
  display: none;
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: min(1.6vw, 8.64px);
}

.profile-label {
  font-size: min(3.2vw, 17.28px);
  color: var(--text-color-3, #666);
}

.profile-input,
.profile-textarea {
  width: 100%;
  border: min(0.266667vw, 1.44px) solid rgba(0, 0, 0, 0.08);
  border-radius: min(1.777778vw, 9.6px);
  padding: min(2.666667vw, 14.4px) min(3.2vw, 17.28px);
  font-size: min(3.733333vw, 20.16px);
  color: var(--heading-color, #2d2d2d);
  background: var(--theme-card-background, #fff);
  box-sizing: border-box;
}

.profile-textarea {
  resize: vertical;
  min-height: min(16vw, 86.4px);
  font-family: inherit;
}

.profile-code-row {
  display: flex;
  gap: min(2.133333vw, 11.52px);
}

.profile-code-row .profile-input {
  flex: 1;
  min-width: 0;
}

.profile-code-btn {
  flex-shrink: 0;
  border: min(0.266667vw, 1.44px) solid var(--theme-btn-primary-background, #bd9534);
  background: transparent;
  color: var(--theme-btn-primary-background, #bd9534);
  border-radius: min(1.777778vw, 9.6px);
  padding: 0 min(3.2vw, 17.28px);
  font-size: min(3.2vw, 17.28px);
  white-space: nowrap;
  cursor: pointer;
}

.profile-code-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.profile-actions {
  padding: min(5.333333vw, 28.8px) min(2.933333vw, 15.84px);
}

.profile-submit-btn {
  width: 100%;
  border: none;
  border-radius: min(5.333333vw, 28.8px);
  padding: min(3.466667vw, 18.72px);
  font-size: min(4vw, 21.6px);
  font-weight: 600;
  color: #fff;
  background: var(--theme-btn-primary-background, #bd9534);
  cursor: pointer;
}

.profile-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.profile-menu {
  list-style: none;
  margin: min(2.666667vw, 14.4px) min(2.933333vw, 15.84px) 0;
  padding: 0;
  background: var(--theme-card-background, #fff);
  border-radius: min(2.133333vw, 11.52px);
  border: min(0.266667vw, 1.44px) solid rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: min(2.133333vw, 11.52px);
  padding: min(4vw, 21.6px) min(3.733333vw, 20.16px);
  border-bottom: min(0.266667vw, 1.44px) solid rgba(0, 0, 0, 0.06);
  cursor: pointer;
}

.profile-menu-item:last-child {
  border-bottom: none;
}

.profile-menu-label {
  flex: 1;
  font-size: min(3.733333vw, 20.16px);
  color: var(--heading-color, #2d2d2d);
}

.profile-menu-value {
  font-size: min(3.466667vw, 18.72px);
  color: var(--text-color-3, #999);
}

.profile-menu-arrow {
  font-size: min(3.733333vw, 20.16px);
  color: var(--text-color-3, #ccc);
}
