/* ===== 全局重置 ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f5f5f7;
  --card-bg: #ffffff;
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --shadow-md: 0 8px 32px rgba(0,0,0,.12);
  --radius: 18px;
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

html, body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text",
               "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  gap: 48px;
  padding: 40px 20px;
}

/* ===== 组件一：头像卡片 ===== */
.profile-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

/* 头像容器（气泡相对于此定位） */
.avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

/* Hello World 气泡 —— 左下角的尖紧贴头像右上角 */
.bubble {
  position: absolute;
  /* 气泡底部（含尖角）对齐头像顶部，左端与头像右上边缘对齐 */
  bottom: calc(100% - 8px);   /* 上移，让尖角底端刚好压到头像顶部附近 */
  left: calc(100% - 8px);     /* 左移，让尖角左端贴着头像右侧边缘 */
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 12px 12px 12px 0;  /* 左下角直角 → 尖角所在位置 */
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: scale(.7) translateY(4px);
  transform-origin: bottom left;   /* 从左下角（尖角处）展开 */
  transition: opacity var(--transition), transform var(--transition);
  pointer-events: none;
  z-index: 10;
}
/* 左下角的小三角尖 */
.bubble::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  border-width: 6px 6px 0 0;
  border-style: solid;
  border-color: var(--accent) transparent transparent transparent;
}

/* 头像 */
.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  display: block;
  border: 3px solid var(--card-bg);
}

/* 悬停时气泡出现 + 头像轻微缩放 */
.profile-wrap:hover .bubble {
  opacity: 1;
  transform: scale(1) translateY(0);
}
.profile-wrap:hover .avatar {
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(0,0,0,.16);
}

/* 头像右侧信息面板*/
.profile-info {
  margin-left: 20px;
  max-width: 220px;
}

.profile-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .3px;
  color: var(--text-primary);
  line-height: 1.2;
}
.profile-desc {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== 组件二（已注释占位，取消注释即可启用）===== */
/*
.nav-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--card-bg);
  border: 1.5px solid rgba(0,0,0,.08);
  border-radius: 50px;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: color var(--transition), border-color var(--transition),
              box-shadow var(--transition), transform var(--transition);
}

.nav-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent) 0%, #5ac8fa 100%);
  opacity: 0;
  transition: opacity var(--transition);
  border-radius: inherit;
  z-index: 0;
}

.nav-btn:hover::before {
  opacity: 1;
}
.nav-btn:hover {
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 24px rgba(0,113,227,.28);
  transform: translateY(-2px);
}

.nav-btn span,
.nav-btn svg {
  position: relative;
  z-index: 1;
}
*/
