/* 官网用户中心 — 对齐 client 用户中心页 */

.mj-user-center {
  min-height: calc(100vh - var(--mj-nav-h, 64px));
}

.mj-user-center__guest {
  min-height: calc(100vh - var(--mj-nav-h, 64px));
  display: flex;
  flex-direction: column;
  background: #e4ddd4;
}

.mj-user-center__guest .user-center-auth-scene {
  flex: 1;
  min-height: calc(100vh - var(--mj-nav-h, 64px));
}

.mj-user-center__logged {
  padding: 0 24px 56px;
}

.mj-user-center__logged .mj-page__inner {
  max-width: 720px;
}

.mj-user-center__quick {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 4px;
}

.mj-user-center__quick a {
  display: block;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(70, 54, 38, 0.12);
  background: rgba(255, 248, 232, 0.52);
  color: #241d14;
  text-decoration: none;
  transition: background 0.15s ease;
}

.mj-user-center__quick a:hover {
  background: rgba(255, 248, 232, 0.88);
}

.mj-user-center__quick strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.92rem;
}

.mj-user-center__quick span {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--mj-text-muted);
}

.mj-user-center__note {
  margin: 16px 0 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--mj-text-dim);
}

.user-center-profile-card {
  padding: 0.85rem 1rem;
  margin-bottom: 14px;
  border-radius: 12px;
  border: 1px solid rgba(168, 152, 130, 0.35);
  background: linear-gradient(180deg, #faf6ef 0%, #f5efe4 100%);
  box-shadow: 0 1px 2px rgba(40, 28, 16, 0.04);
}

.user-profile-head--compact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-profile-avatar--sm {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, #3b2f21 0%, #8f672f 100%);
  color: #fff7e8;
  font-size: 1.1rem;
  font-weight: 800;
}

.user-profile-head-meta {
  flex: 1;
  min-width: 0;
}

.user-profile-nickname-line {
  font-size: 0.98rem;
  font-weight: 700;
  color: #241d14;
}

.user-profile-id {
  margin-top: 0.15rem;
  font-size: 0.72rem;
  color: var(--mj-text-muted);
}

.user-profile-logout-btn {
  flex-shrink: 0;
}

.user-profile-section {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(168, 152, 130, 0.22);
}

.user-profile-section-title {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(36, 29, 20, 0.55);
  text-transform: uppercase;
}

.user-profile-account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 0.75rem;
}

.user-profile-account-field {
  display: grid;
  grid-template-columns: 3.6rem 1fr;
  gap: 0.2rem 0.35rem;
  align-items: baseline;
  font-size: 0.78rem;
}

.user-profile-account-field--wide {
  grid-column: 1 / -1;
}

.user-profile-account-label {
  color: rgba(36, 29, 20, 0.48);
}

.user-profile-account-value {
  color: #241d14;
  word-break: break-all;
}

.user-tier-badge {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: rgba(154, 107, 46, 0.12);
  color: #8f672f;
  font-size: 0.68rem;
  font-weight: 700;
}

.user-tier-badge--vip {
  background: rgba(143, 103, 47, 0.18);
  color: #7a5318;
}

@media (max-width: 640px) {
  .mj-user-center__quick,
  .user-profile-account-grid {
    grid-template-columns: 1fr;
  }
}
