/* ───── profile — 个人资料卡:头像 + 姓名 + 角色 + 社交链接 ───── */
.profile {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 22px;
}

/* 头像:圆形,accent-soft 底 + accent 大写字母,极淡呼吸光环 */
.avatar {
  flex: 0 0 auto;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 36px;
  font-weight: 680;
  letter-spacing: -1px;
  line-height: 1;
  user-select: none;
  box-shadow: inset 0 0 0 1px var(--line);
  animation: avatar-breathe 5.5s var(--ease) infinite;
}

@keyframes avatar-breathe {
  0%, 100% { box-shadow: inset 0 0 0 1px var(--line), 0 0 0 0 transparent; }
  50%      { box-shadow: inset 0 0 0 1px var(--line), 0 0 20px 2px var(--glow); }
}

.profile-info h1 {
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 700;
  letter-spacing: -.8px;
  line-height: 1.1;
}

.profile-info .role {
  margin-top: 6px;
  font-size: 15px;
  color: var(--text-2);
}

.profile-info .profile-loc {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.5;
}

/* 社交链接:安静的描边胶囊,hover 点亮 accent */
.profile-links {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-links .social {
  font-size: 13px;
  color: var(--text-2);
  text-decoration: none;
  padding: 5px 14px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  transition: color .2s var(--ease), border-color .2s var(--ease),
              transform .2s var(--ease), box-shadow .2s var(--ease);
}

.profile-links .social:hover {
  color: var(--accent);
  border-color: var(--accent-tint);
  transform: translateY(-2px);
  box-shadow: var(--card-shadow);
}

.profile-links .social:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .profile {
    flex-direction: column;
    text-align: center;
    gap: 18px;
  }
  .profile-links { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .avatar { animation: none; }
  .profile-links .social:hover { transform: none; }
}
