/* 图标链接组件样式 */

.icon-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  /*每行自动填充多个链接*/
  gap: 1.5rem 3rem;
  justify-items: center;
  align-items: start;
  max-width: 800px;
  margin: 0 auto;
}

.icon-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #555;
  transition: all 0.3s ease;
  width: 10%;
}

.icon-link:hover {
  transform: translateY(-8px);
}

.icon-wrapper {
  width: 60px;
  height: 60px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin-bottom: 8px;
}

.icon-link:hover .icon-wrapper {
  background: #4ecdc4;
  box-shadow: 0 8px 20px rgba(78, 205, 196, 0.3);
}

.icon-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(0.2);
  transition: filter 0.3s;
}

.icon-link:hover .icon-wrapper img {
  filter: grayscale(0) brightness(1.1);
}

.icon-name {
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  color: black;
  transition: color 0.3s;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-link:hover .icon-name {
  color: #4ecdc4;
}