/* Social Links Styles */
.social-links-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  height: 100%;
  width: 100%;
}

/* Social Links区块排序 */
#block-bootstrap-custom-social-links,
.block-custom-social-links {
  order: 3 !important; /* 社交链接排在第三位（认证链接之后，语言切换器之前） */
  flex-shrink: 0 !important; /* 防止被压缩 */
  width: 25%;
  display: flex;
  justify-content: space-around;
}

.social-links-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between; /* 横向均匀分布 */
  width: 100%;
  gap: 0; /* 移除间距，让均匀分布更好 */
}

.social-links-list li {
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1; /* 每个li占用相等空间 */
  display: flex;
  justify-content: center; /* 让按钮在li内居中 */
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  text-decoration: none;
  background-color: white;
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
  padding: 6px;
  box-sizing: border-box;
}

.social-link:hover {
  text-decoration: none;
  transform: scale(1.1);
  background-color: #f8f8f8;
}

/* SVG图标样式 */
.social-icon {
  width: 100%;
  height: 100%;
  display: block;
  /* 使用CSS filter将SVG颜色改为#7e645a */
  filter: brightness(0) saturate(100%) invert(47%) sepia(13%) saturate(587%) hue-rotate(335deg) brightness(93%) contrast(93%);
  transition: all 0.3s ease;
}

.social-link:hover .social-icon {
  /* 悬停时稍微变暗 */
  filter: brightness(0) saturate(100%) invert(40%) sepia(15%) saturate(600%) hue-rotate(335deg) brightness(85%) contrast(95%);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .social-link {
    width: 28px;
    height: 28px;
    padding: 4px;
  }
}