/* 关于页面头像容器 */
.about-avatar-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 80px 0 0 0 !important;
  min-height: 200px;
}

/* 头像本体样式 */
.about-avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
  margin: 0;
}

.about-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

/* 标签容器，覆盖头像区域 */
.floating-tags {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* 标签样式通用部分 */
.floating-tag {
  position: absolute;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
  animation: float 6s ease-in-out infinite;
  opacity: 0.9;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 0;
}

/* 标签单独定位与颜色 */
.floating-tag:nth-child(1) {
  top: 20px;
  left: 30%;
  animation-delay: 0s;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

.floating-tag:nth-child(2) {
  top: 15px;
  right: 30%;
  animation-delay: 1s;
  background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
}

.floating-tag:nth-child(3) {
  bottom: 20px;
  left: 25%;
  animation-delay: 2s;
  background: linear-gradient(135deg, #45b7d1 0%, #96c93d 100%);
}

.floating-tag:nth-child(4) {
  bottom: 15px;
  right: 25%;
  animation-delay: 3s;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.floating-tag:nth-child(5) {
  top: 50%;
  left: 20%;
  animation-delay: 4s;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.floating-tag:nth-child(6) {
  top: 45%;
  right: 20%;
  animation-delay: 5s;
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

/* 浮动动画 */
@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.9;
  }
  25% {
    transform: translateY(-15px) rotate(2deg);
    opacity: 1;
  }
  50% {
    transform: translateY(-25px) rotate(0deg);
    opacity: 0.8;
  }
  75% {
    transform: translateY(-10px) rotate(-2deg);
    opacity: 0.95;
  }
}

/* 响应式适配 - 平板 */
@media (max-width: 768px) {
  .about-avatar {
    width: 140px;
    height: 140px;
  }

  .floating-tag {
    font-size: 12px;
    padding: 6px 12px;
  }

  .floating-tag:nth-child(1) { top: 15px; left: 30%; }
  .floating-tag:nth-child(2) { top: 10px; right: 30%; }
  .floating-tag:nth-child(3) { bottom: 15px; left: 25%; }
  .floating-tag:nth-child(4) { bottom: 10px; right: 25%; }
  .floating-tag:nth-child(5) { top: 50%; left: 18%; }
  .floating-tag:nth-child(6) { top: 45%; right: 18%; }
}

/* 响应式适配 - 手机 */
@media (max-width: 480px) {
  .about-avatar {
    width: 120px;
    height: 120px;
    margin: 0;
  }

  .about-avatar-container {
    margin-top: 60px !important;
    min-height: 160px;
  }

/* 在手机端隐藏所有浮动标签 */
  .floating-tags {
    display: none;
  }
  
  .floating-tag:nth-child(1) {
    top: 8px;
    left: 30%;
  }
  
  .floating-tag:nth-child(2) {
    top: 5px;
    right: 30%;
  }
  
  .floating-tag:nth-child(3) {
    bottom: 8px;
    left: 25%;
  }
  
  .floating-tag:nth-child(4) {
    bottom: 5px;
    right: 25%;
  }
  
  .floating-tag:nth-child(5) {
    top: 50%;
    left: 8px;
  }
  
  .floating-tag:nth-child(6) {
    top: 45%;
    right: 8px;
  }
}


/*回到开头*/
/* 回到顶部按钮 */
#back-to-top {
  position: fixed;
  right: 2.2rem;
  bottom: 2.2rem;
  z-index: 9999;
  width: 48px;
  height: 48px;
  border: none;
  outline: none;
  background: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.35s cubic-bezier(0.4,0.2,0.2,1), box-shadow 0.2s, transform 0.2s, background 0.2s;
  opacity: 0;
  pointer-events: none;
}
#back-to-top.show {
  opacity: 0.92;
  pointer-events: auto;
}
#back-to-top:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  transform: translateY(-4px) scale(1.08) rotate(-8deg);
  background: rgba(255,255,255,0.98);
  opacity: 1;
}
#back-to-top svg {
  display: block;
}
@media (max-width: 600px) {
  #back-to-top {
    right: 1.2rem;
    bottom: 1.2rem;
    width: 40px;
    height: 40px;
  }
}

/*抖动*/

/* 默认的浅色模式颜色 */
:root {
    --tag-bg-color: #F2EEFD;
    --tag-text-color: #835EEC;
  }

  /* 暗黑模式下的颜色 */
  @media (prefers-color-scheme: dark) {
    :root {
      --tag-bg-color: #282433;
      --tag-text-color: #A28BF2;
    }
  }
  #post-meta {
  font-size: 12px;
  color: var(--text-p4); /* 或 --text-p2，设置为灰色 */
}
/* 文章内链接：为链接使用荧光笔下划线效果 */
li:not([class]) a:not([class]),
p:not([class]) a:not([class]),
table a:not([class]) {
  padding-bottom: 0.1rem;
  background: linear-gradient(0, var(--theme-link-opa), var(--theme-link-opa)) no-repeat center bottom / 100% 40%;
}
/* 选中文本：使用超链接高亮的背景色 */
::selection {
  background: var(--theme-link-opa);
}