:root {
  --member-primary: #1677a8;
  --member-text: #263746;
  --member-muted: #71808c;
  --member-border: #dfe7ec;
  --member-background: #f4f7f9;
}

* {
  box-sizing: border-box;
}

body.member-page {
  margin: 0;
  min-width: 320px;
  background: var(--member-background);
  color: var(--member-text);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

.member-page__header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100% - 1120px) / 2));
  background: #fff;
  border-bottom: 1px solid var(--member-border);
}

.member-page__brand {
  display: inline-flex;
  align-items: center;
  color: var(--member-text);
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
}

.member-page__brand img {
  width: 42px;
  height: 42px;
  margin-right: 12px;
  object-fit: contain;
}

.member-page__auth {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  font-size: 14px;
}

.member-page__auth a {
  color: var(--member-primary);
  text-decoration: none;
}

.member-page__auth .member-span-logined {
  color: var(--member-text);
}

.member-page__auth .member-profile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

.member-page__auth .member-profile.is-disabled {
  cursor: default;
}

.member-page__auth .member-switch-user {
  display: none;
}

.member-page__auth .member-avatar {
  width: 24px;
  height: 24px;
  overflow: hidden;
  border-radius: 50%;
  background: #e9eff3;
}

.member-page__auth .member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-page__auth .member-logout {
  margin-left: 14px;
}

.member-page__main {
  width: min(1120px, calc(100% - 48px));
  margin: 42px auto 80px;
}

.member-page__iframe-main {
  background: #f4f7f9;
}

.member-page__iframe {
  display: block;
  width: 100%;
  height: 720px;
  border: 0;
  background: #fff;
}

.member-page__title {
  margin: 0 0 22px;
  font-size: 28px;
  font-weight: 500;
}

.member-card {
  padding: 32px 40px 40px;
  background: #fff;
  border: 1px solid var(--member-border);
  box-shadow: 0 8px 24px rgba(36, 61, 78, .06);
}

.member-profile-summary {
  display: flex;
  align-items: center;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--member-border);
}

.member-profile-summary__avatar {
  width: 88px;
  height: 88px;
  margin-right: 20px;
  overflow: hidden;
  border-radius: 50%;
  background: #e9eff3;
}

.member-profile-summary__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-profile-summary__name {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
}

.member-profile-summary__hint,
.member-form__hint {
  margin: 0;
  color: var(--member-muted);
  font-size: 13px;
}

.member-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 32px;
  padding-top: 30px;
}

.member-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.member-form__field label {
  color: var(--member-muted);
  font-size: 14px;
}

.member-form__field input,
.member-form__field select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--member-border);
  border-radius: 3px;
  color: var(--member-text);
  background: #fff;
  font: inherit;
}

.member-form__field input:focus,
.member-form__field select:focus {
  outline: 0;
  border-color: var(--member-primary);
  box-shadow: 0 0 0 2px rgba(22, 119, 168, .12);
}

.member-form__field input[readonly] {
  background: #f7f9fa;
}

.member-form__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  grid-column: 1 / -1;
  padding-top: 8px;
}

.member-button {
  min-width: 96px;
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--member-primary);
  border-radius: 3px;
  color: #fff;
  background: var(--member-primary);
  cursor: pointer;
  font: inherit;
}

.member-button:disabled {
  cursor: wait;
  opacity: .6;
}

.member-button--secondary {
  color: var(--member-primary);
  background: #fff;
}

.member-message {
  min-height: 20px;
  color: var(--member-primary);
  font-size: 14px;
}

@media (max-width: 640px) {
  .member-page__header {
    height: auto;
    min-height: 68px;
    padding: 12px 18px;
  }

  .member-page__brand {
    font-size: 16px;
  }

  .member-page__brand img {
    width: 34px;
    height: 34px;
    margin-right: 8px;
  }

  .member-page__main {
    width: calc(100% - 28px);
    margin: 24px auto 48px;
  }

  .member-page__title {
    font-size: 24px;
  }

  .member-card {
    padding: 24px 18px 28px;
  }

  .member-form {
    grid-template-columns: 1fr;
  }

  .member-form__actions {
    grid-column: auto;
  }
}
