/* 亮色主题只轻微提亮自媒体卡，不改变其深色内容风格。 */
.home-social {
  position: relative;
  overflow: hidden;
  min-height: 0;
  padding: 32px 34px;
  border: 1px solid #697282;
  border-radius: var(--radius-lg, 24px);
  background: #3c4452;
  color: #fff;
  isolation: isolate;
}
.home-social-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .32;
  z-index: -2;
}
.home-social::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(31, 36, 43, .78) 0%, rgba(31, 36, 43, .55) 55%, rgba(31, 36, 43, .28) 100%);
  z-index: -1;
}

/* 个人中心头部：头像与博主信息横向排列 */
.social-header {
  display: flex;
  align-items: center;
  gap: 22px;
}

.social-avatar-wrap {
  position: relative;
  flex: none;
  width: 88px;
  height: 88px;
}

.social-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 3.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 3.5px rgba(255, 255, 255, 0.22), 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.social-avatar-wrap:hover .social-avatar {
  transform: scale(1.04);
  box-shadow: 0 0 0 4.5px rgba(255, 255, 255, 0.35), 0 10px 28px rgba(0, 0, 0, 0.42);
}

/* 创作者认证小标 */
.social-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  border: 2.5px solid #3c4452;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.32);
  line-height: 1;
  pointer-events: none;
}

.social-info {
  min-width: 0;
  flex: 1;
}

.home-social h1 {
  margin: 0;
  /* 优先选用同时包含拉丁字母与中文的字体，避免 AI 与中文分别回退到不同字形。 */
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: clamp(1.65rem, 3.4vw, 2.3rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  font-synthesis: none;
}

/* 拉丁大写字形比汉字偏矮：补偿字号并略降基线，保持标题行高稳定。 */
.home-social h1 .title-ai {
  font: inherit;
  font-size: 1.14em;
  line-height: 0;
  vertical-align: -0.075em;
  letter-spacing: 0;
  margin-inline-end: 0.1em;
}

.social-bio {
  margin: 14px 0 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", sans-serif;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.96rem;
  line-height: 1.5;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* 社交平台跳转按钮组 */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.social-links .social-link {
  min-width: 96px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  box-shadow: inset 0 1px rgba(255, 255, 255, .08), 0 2px 8px rgba(0, 0, 0, .15);
  color: #f7f8fb;
  font-size: .94rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.social-links .social-link:hover {
  background: rgba(255, 255, 255, .22);
  border-color: rgba(255, 255, 255, .55);
  text-decoration: none;
  transform: translateY(-1px);
}

.social-links .social-link:active {
  transform: translateY(0);
  background: rgba(255, 255, 255, .16);
}

.social-links .social-link:focus-visible {
  outline: 3px solid #2fd0ff;
  outline-offset: 2px;
}

.social-link-xhs { color: #ff5d7f !important; }
.social-link-douyin { color: #fff; }
.social-link-douyin span { font-size: 1.12rem; font-weight: 800; }
.social-link-bilibili { color: #2fd0ff !important; }

/* 暗色主题微调 */
.dark .home-social { background: #343c4c; color: #fff; border-color: #566071; }
.dark .home-social-bg { opacity: .34; }
.dark .home-social::after { background: linear-gradient(90deg, rgba(24, 28, 31, .82) 0%, rgba(24, 28, 31, .6) 55%, rgba(24, 28, 31, .32) 100%); }
.dark .social-badge { border-color: #343c4c; }
.dark .social-links .social-link { border-color: rgba(255, 255, 255, .32); background: rgba(255, 255, 255, .12); }
.dark .social-links .social-link:hover { border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .22); }

@media (max-width: 700px) {
  .home-social { padding: 22px 20px; }
  .social-header { gap: 16px; }
  .social-avatar-wrap { width: 72px; height: 72px; }
  .social-badge { width: 20px; height: 20px; font-size: 11px; border-width: 2px; }
  .home-social h1 { font-size: clamp(1.4rem, 5vw, 1.75rem); }
  .social-bio { font-size: 0.88rem; margin-top: 10px; }
  .social-links { margin-top: 18px; gap: 10px; }
  .social-links .social-link { min-width: 84px; min-height: 38px; padding: 0 14px; font-size: .88rem; }
}

@media (max-width: 380px) {
  .social-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
