:root {
  --ink: #edf8ff;
  --muted: rgba(224, 240, 248, 0.68);
  --line: rgba(135, 231, 235, 0.18);
  --panel: rgba(6, 10, 17, 0.74);
  --panel-strong: rgba(7, 13, 21, 0.86);
  --cyan: #9ff4ff;
  --pink: #ff65c9;
  --gold: #ffe060;
  --shadow: 0 34px 90px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background:
    radial-gradient(circle at 82% 14%, rgba(255, 71, 186, 0.22), transparent 34%),
    radial-gradient(circle at 62% 42%, rgba(30, 225, 231, 0.14), transparent 30%),
    radial-gradient(circle at 78% 78%, rgba(244, 201, 70, 0.12), transparent 34%),
    linear-gradient(135deg, #070b11 0%, #0b1118 42%, #110c17 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 86%);
}

button,
a,
input {
  font: inherit;
}

button,
a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 16px;
  color: rgba(237, 249, 255, 0.84);
  background: rgba(255, 255, 255, 0.055);
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, color 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

button:hover,
a:hover {
  color: #ffffff;
  border-color: rgba(255, 79, 195, 0.42);
  background: rgba(255, 79, 195, 0.12);
  transform: translateY(-1px);
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(255, 101, 201, 0.28);
  outline-offset: 2px;
}

.member-shell {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 34px 0 64px;
}

.member-header,
.section-head,
.profile-card,
.quick-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.member-header {
  min-height: 82px;
}

.member-title {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.page-logo {
  display: none;
}

.member-title::before {
  content: "焕象";
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  flex: 0 0 auto;
  border: 1px solid rgba(135, 231, 235, 0.16);
  border-radius: 20px;
  color: #f7fcff;
  font-size: 20px;
  font-weight: 900;
  background:
    radial-gradient(circle at 28% 24%, rgba(159, 244, 255, 0.22), transparent 34%),
    radial-gradient(circle at 78% 72%, rgba(255, 101, 201, 0.22), transparent 34%),
    rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.eyebrow {
  margin: 0 0 8px;
  color: #ff91dc;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  color: #f8fdff;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: 0;
}

.member-header p,
.empty,
.record-meta,
.profile-card span,
.section-head span {
  color: var(--muted);
}

.header-actions,
.quick-actions {
  justify-content: flex-start;
}

.profile-card,
.panel,
.auth-card,
.dialog-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 86% 10%, rgba(255, 79, 195, 0.12), transparent 34%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.078), rgba(255, 255, 255, 0.026)),
    var(--panel);
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.auth-card {
  display: grid;
  gap: 6px;
  width: min(680px, 100%);
  margin-top: 30px;
  padding: clamp(24px, 3vw, 34px);
}

.auth-card h2 {
  margin-bottom: 8px;
  color: #f8fdff;
  font-size: 32px;
}

.auth-card p {
  color: var(--muted);
  line-height: 1.8;
}

.auth-card footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

.captcha-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 156px;
  gap: 12px;
  align-items: end;
}

.captcha-image {
  min-height: 52px;
  padding: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.captcha-image img {
  display: block;
  width: 100%;
  height: 52px;
}

.member-content {
  margin-top: 24px;
}

.profile-card {
  margin: 24px 0 16px;
  padding: 20px;
}

.profile-card div {
  display: grid;
  gap: 6px;
}

.profile-card strong {
  color: #f8fdff;
  font-size: 20px;
}

.profile-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.primary-link,
#saveProfileBtn,
#verifyCodeBtn {
  color: #140514;
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--pink) 62%, var(--gold) 100%);
  box-shadow: 0 16px 36px rgba(255, 79, 195, 0.2);
}

.primary-link:hover,
#saveProfileBtn:hover,
#verifyCodeBtn:hover {
  color: #140514;
  border-color: transparent;
  background: linear-gradient(135deg, #b8f8ff 0%, #ff74d1 58%, #ffe57c 100%);
  box-shadow: 0 22px 44px rgba(255, 79, 195, 0.26);
}

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

.panel {
  padding: 20px;
}

.section-head h2 {
  margin: 0;
  color: #f8fdff;
  font-size: 24px;
}

.record-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.record-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(135, 231, 235, 0.14);
  border-radius: 16px;
  background: rgba(5, 10, 17, 0.58);
}

.record-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.record-card strong {
  color: #f7fcff;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  color: rgba(237, 249, 255, 0.72);
  border: 1px solid rgba(135, 231, 235, 0.18);
  background: rgba(255, 255, 255, 0.07);
  font-size: 12px;
  font-weight: 800;
}

.pill.ok {
  color: #140514;
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
}

.detail-panel {
  margin-top: 16px;
}

.report-preview {
  margin-top: 14px;
  color: rgba(224, 240, 248, 0.76);
  line-height: 1.85;
}

.report-preview h3 {
  margin: 18px 0 8px;
  color: #f8fdff;
}

dialog {
  border: 0;
  border-radius: 22px;
  padding: 0;
  background: transparent;
}

dialog::backdrop {
  background:
    radial-gradient(circle at 68% 18%, rgba(255, 79, 195, 0.24), transparent 34%),
    rgba(3, 6, 11, 0.72);
  backdrop-filter: blur(10px);
}

.dialog-card {
  width: min(460px, calc(100vw - 32px));
  padding: 28px;
  color: var(--ink);
}

.dialog-card h2 {
  color: #f8fdff;
}

label {
  display: grid;
  gap: 7px;
  margin: 14px 0;
}

label span {
  color: rgba(255, 200, 238, 0.9);
  font-size: 13px;
  font-weight: 800;
}

input {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(135, 231, 235, 0.18);
  border-radius: 14px;
  padding: 0 14px;
  color: #eef8ff;
  background: rgba(255, 255, 255, 0.058);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

input::placeholder {
  color: rgba(224, 240, 248, 0.42);
}

input:focus {
  border-color: rgba(255, 79, 195, 0.68);
  box-shadow:
    0 0 0 3px rgba(255, 79, 195, 0.14),
    0 0 22px rgba(30, 225, 231, 0.1);
  outline: none;
}

.code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 12px;
}

.code-row label {
  margin-bottom: 0;
}

.dev-code {
  min-height: 26px;
  margin: 10px 0 0;
  color: #ff91dc;
  font-size: 14px;
}

.dialog-card footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 820px) {
  .member-shell {
    width: calc(100% - 24px);
    padding-top: 22px;
  }

  .member-header,
  .profile-card,
  .quick-actions,
  .profile-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .member-title {
    align-items: flex-start;
  }

  .member-title::before {
    width: 62px;
    height: 62px;
    border-radius: 17px;
    font-size: 18px;
  }

  .captcha-row,
  .code-row,
  .content-grid {
    grid-template-columns: 1fr;
  }
}
