.profile-page {
  min-height: 100vh;
  background: #f4f8ff;
}

.profile-page__body {
  min-height: 100vh;
  padding: 0 28rpx 48rpx;
  box-sizing: border-box;
}

.profile-mode-switch {
  height: 68rpx;
  margin: 22rpx 0 0;
  padding: 6rpx;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rpx;
  border: 1rpx solid #d7e2f1;
  border-radius: 999rpx;
  background: #ffffff;
}

.profile-mode-option {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999rpx;
  color: #667085;
  font-size: 24rpx;
  font-weight: 700;
  transition: transform 120ms ease, background 160ms ease;
}

.profile-mode-option:active {
  transform: scale(0.985);
}

.profile-mode-option.active {
  color: #123e7c;
  background: #edf5ff;
}

.profile-user-band {
  margin: 0 -28rpx;
  min-height: 252rpx;
  padding: 44rpx 56rpx 58rpx;
  background: linear-gradient(135deg, #123e7c 0%, #1d5c9f 74%, #6f997e 100%);
  box-sizing: border-box;
}

.profile-mode-switch + .profile-user-band {
  margin-top: 20rpx;
}

.profile-user-row {
  display: flex;
  align-items: center;
  gap: 22rpx;
}

.profile-avatar {
  width: 78rpx;
  height: 78rpx;
  flex: none;
  overflow: hidden;
  border-radius: 999rpx;
  background: rgba(255, 255, 255, 0.94);
}

.profile-avatar__image,
.profile-avatar__fallback {
  width: 100%;
  height: 100%;
}

.profile-avatar__fallback {
  position: relative;
  background: rgba(255, 255, 255, 0.94);
}

.profile-avatar__head {
  position: absolute;
  left: 25rpx;
  top: 17rpx;
  width: 28rpx;
  height: 28rpx;
  border-radius: 999rpx;
  background: #8fa8ca;
}

.profile-avatar__body {
  position: absolute;
  left: 16rpx;
  bottom: 12rpx;
  width: 46rpx;
  height: 26rpx;
  border-radius: 999rpx 999rpx 18rpx 18rpx;
  background: #8fa8ca;
}

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

.profile-name-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12rpx;
}

.profile-name {
  max-width: 260rpx;
  overflow: hidden;
  color: #ffffff;
  font-size: 28rpx;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-role-badge {
  min-height: 28rpx;
  padding: 0 16rpx;
  display: flex;
  align-items: center;
  border-radius: 999rpx;
  color: #123e7c;
  background: rgba(255, 255, 255, 0.96);
  font-size: 18rpx;
  font-weight: 700;
  line-height: 1;
}

.profile-role-badge.muted {
  color: #123e7c;
}

.profile-id {
  display: block;
  margin-top: 10rpx;
  color: rgba(255, 255, 255, 0.78);
  font-size: 22rpx;
  line-height: 1.25;
}

.profile-edit {
  min-width: 70rpx;
  min-height: 44rpx;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  color: rgba(255, 255, 255, 0.86);
  font-size: 22rpx;
  font-weight: 700;
  transition: opacity 120ms ease, transform 120ms ease;
}

.profile-edit:active {
  opacity: 0.72;
  transform: scale(0.98);
}

.profile-point-row {
  margin-top: 12rpx;
  padding-left: 100rpx;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12rpx;
}

.profile-point-pill,
.profile-point-btn,
.profile-message-btn {
  min-height: 34rpx;
  padding: 0 20rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999rpx;
  font-size: 20rpx;
  font-weight: 800;
  line-height: 1;
}

.profile-point-pill {
  color: #123e7c;
  background: rgba(255, 255, 255, 0.96);
}

.profile-point-btn {
  color: #ffffff;
  background: #6f997e;
  transition: transform 120ms ease, opacity 120ms ease;
}

.profile-message-btn {
  color: #123e7c;
  background: #edf5ff;
  transition: transform 120ms ease, opacity 120ms ease;
}

.profile-message-btn.has-unread {
  color: #ffffff;
  background: #dc2626;
}

.profile-point-btn:active,
.profile-message-btn:active {
  opacity: 0.8;
  transform: scale(0.98);
}

.profile-social-card {
  position: relative;
  z-index: 1;
  margin: -46rpx 28rpx 32rpx;
  padding: 26rpx 28rpx 24rpx;
  border: 1rpx solid #d7e2f1;
  border-radius: 14rpx;
  background: #ffffff;
  box-shadow: 0 12rpx 28rpx rgba(18, 62, 124, 0.08);
}

.profile-social-head,
.profile-social-title-row,
.profile-social-actions {
  display: flex;
  align-items: center;
}

.profile-social-head {
  justify-content: space-between;
  gap: 18rpx;
}

.profile-social-title-row {
  min-width: 0;
  gap: 12rpx;
}

.profile-social-title {
  color: #123e7c;
  font-size: 28rpx;
  font-weight: 700;
  line-height: 1.2;
}

.profile-social-relation {
  min-height: 26rpx;
  padding: 0 14rpx;
  display: flex;
  align-items: center;
  border-radius: 999rpx;
  color: #ffffff;
  background: #6f997e;
  font-size: 16rpx;
  font-weight: 800;
}

.profile-social-edit {
  color: #123e7c;
  font-size: 22rpx;
  font-weight: 700;
}

.profile-social-actions {
  margin-top: 22rpx;
  gap: 16rpx;
}

.profile-contact-pill,
.profile-friend-btn,
.profile-pill-action {
  min-height: 38rpx;
  padding: 0 22rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999rpx;
  color: #ffffff;
  background: #123e7c;
  font-size: 20rpx;
  font-weight: 800;
  line-height: 1;
  transition: transform 120ms ease, opacity 120ms ease;
}

.profile-contact-pill {
  flex: 1;
  min-width: 0;
  justify-content: flex-start;
  color: #123e7c;
  background: #edf5ff;
}

.profile-contact-pill text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-friend-btn {
  flex: none;
  background: #123e7c;
}

.profile-friend-btn:active,
.profile-pill-action:active {
  opacity: 0.82;
  transform: scale(0.98);
}

.profile-tag-list {
  margin-top: 18rpx;
  display: flex;
  flex-wrap: wrap;
  gap: 10rpx;
}

.profile-tag {
  min-height: 34rpx;
  padding: 0 18rpx;
  display: flex;
  align-items: center;
  border: 1rpx solid #cfe0f4;
  border-radius: 999rpx;
  color: #123e7c;
  background: #f8fbff;
  font-size: 19rpx;
  font-weight: 700;
}

.profile-card-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32rpx;
}

.profile-user-band + .profile-card-grid {
  margin-top: -46rpx;
}

.profile-social-card + .profile-card-grid {
  margin-top: 0;
}

.profile-proto-card {
  position: relative;
  min-height: 182rpx;
  padding: 28rpx 28rpx 26rpx;
  overflow: hidden;
  border: 1rpx solid #d7e2f1;
  border-radius: 14rpx;
  background: #ffffff;
  box-shadow: 0 10rpx 24rpx rgba(18, 62, 124, 0.06);
  transition: transform 120ms ease, background 160ms ease;
}

.profile-proto-card:active {
  background: #f8fbff;
  transform: scale(0.99);
}

.profile-card-title {
  position: relative;
  z-index: 1;
  display: block;
  color: #123e7c;
  font-size: 28rpx;
  font-weight: 700;
  line-height: 1.25;
}

.profile-card-actions {
  position: relative;
  z-index: 1;
  margin-top: 20rpx;
  display: flex;
  flex-direction: column;
  gap: 12rpx;
}

.profile-pill-action {
  width: 188rpx;
  max-width: 100%;
  min-height: 38rpx;
  padding: 0 18rpx;
  background: #123e7c;
  font-size: 20rpx;
}

.profile-card-art {
  position: absolute;
  left: 16rpx;
  bottom: 10rpx;
  width: 154rpx;
  height: 86rpx;
  opacity: 0.18;
}

.profile-proto-card.survey .profile-card-art::before {
  content: "HFC";
  position: absolute;
  left: 0;
  bottom: 0;
  color: #123e7c;
  font-size: 56rpx;
  font-weight: 900;
  letter-spacing: 0;
}

.profile-proto-card.join .profile-card-art::before {
  content: "";
  position: absolute;
  left: 20rpx;
  bottom: 0;
  width: 98rpx;
  height: 62rpx;
  border-radius: 98rpx 98rpx 0 0;
  background: #123e7c;
}

.profile-proto-card.join .profile-card-art::after {
  content: "+";
  position: absolute;
  right: 4rpx;
  bottom: 6rpx;
  width: 44rpx;
  height: 44rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999rpx;
  color: #ffffff;
  background: #6f997e;
  font-size: 34rpx;
  font-weight: 800;
}

.profile-card-circle-arrow {
  position: absolute;
  right: 28rpx;
  bottom: 28rpx;
  z-index: 1;
  width: 38rpx;
  height: 38rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2rpx solid #123e7c;
  border-radius: 999rpx;
  color: #123e7c;
  font-size: 24rpx;
  font-weight: 800;
}

.profile-admin-entry {
  min-height: 108rpx;
  margin-top: 32rpx;
  padding: 22rpx 26rpx;
  display: flex;
  align-items: center;
  gap: 18rpx;
  border: 1rpx solid #d7e2f1;
  border-radius: 14rpx;
  background: #ffffff;
  box-shadow: 0 8rpx 18rpx rgba(18, 62, 124, 0.04);
  transition: transform 120ms ease, background 160ms ease;
}

.profile-admin-entry:active {
  background: #f8fbff;
  transform: scale(0.99);
}

.profile-admin-entry.is-active {
  border-color: #b8d1ee;
  background: #f8fbff;
}

.profile-admin-entry__mark {
  width: 58rpx;
  height: 58rpx;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14rpx;
  color: #ffffff;
  background: #123e7c;
  font-size: 24rpx;
  font-weight: 900;
  line-height: 1;
}

.profile-admin-entry__main {
  flex: 1;
  min-width: 0;
}

.profile-admin-entry__title {
  display: block;
  color: #123e7c;
  font-size: 27rpx;
  font-weight: 800;
}

.profile-admin-entry__sub {
  display: block;
  margin-top: 8rpx;
  color: #667085;
  font-size: 22rpx;
}

.profile-admin-entry__arrow {
  color: #123e7c;
  font-size: 30rpx;
  font-weight: 800;
}

.profile-footer {
  margin-top: 300rpx;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rpx;
  color: #8a96a8;
  font-size: 17rpx;
  line-height: 1.35;
  text-align: center;
}
