@import url('./root.css');

.friend-link-header {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
  margin: 32px 0 8px 32px;
}
.friend-link-icon {
  vertical-align: middle;
}
.friend-link-title {
  font-size: 2.3rem;
  font-weight: 700;
  color: #00bcd4;
  margin: 0;
  letter-spacing: 1px;
}
.friend-link-desc {
  text-align: left;
  font-size: 1.15rem;
  margin: 0 0 18px 32px;
}
.friend-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  list-style: none;
  padding: 0;
  margin: 0 auto; /* 修改为auto实现水平居中 */
  justify-content: center; /* 修改为center使子项居中 */
  max-width: 950px;
  width: calc(100% - 64px);
}
.friend-link-item {
  background: var(--terminal-bg, #fff8e1);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,188,212,0.07);
  display: flex;
  align-items: center;
  padding: 12px 22px;
  min-width: 180px;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.friend-link-item:hover {
  box-shadow: 0 6px 28px rgba(0,188,212,0.15);
  transform: translateY(-2px) scale(1.03);
}
.friend-link-url {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  width: 100%;
}
.friend-link-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 14px;
  border: 2px solid #b2ebf2;
  box-shadow: 0 1px 6px rgba(0,188,212,0.07);
  background: #e0f7fa;
}
.friend-link-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.friend-link-url-text {
  font-size: 0.92rem;
  color: #0097a7;
  word-break: break-all;
  opacity: 0.85;
}
.friend-link-name {
  font-weight: 600;
  font-size: 1.08rem;
  color: #00bcd4;
  letter-spacing: 0.5px;
}
.friend-link-desc-text {
  max-width: 300px;
  font-size: 0.98rem;
  color: #0097a7;
}

@media (max-width: 600px) {
  .friend-link-header {
    margin: 10px 0 6px 0;
    justify-content: center;
  }
  .friend-link-desc {
    margin: 0 0 8px 0;
    font-size: 1rem;
    text-align: center;
  }
  .friend-link-list {
    flex-direction: column;
    gap: 12px;
    align-items: center;
    margin: 0 auto;
    max-width: 100%;
    justify-content: center;
    width: 100%; /* 确保宽度100% */
    padding: 0 16px; /* 添加内边距防止贴边 */
    box-sizing: border-box;
  }
  
  .friend-link-item {
    min-width: 0;
    width: 100%; /* 改为100%配合父容器padding */
    max-width: 420px;
    margin: 0 auto; /* 确保居中 */
    padding: 12px 10px;
    box-sizing: border-box;
  }
  .friend-link-avatar {
    width: 36px;
    height: 36px;
    margin-right: 10px;
  }
  .friend-link-name {
    font-size: 1.08rem;
  }
  .friend-link-desc-text {
    font-size: 0.98rem;
  }
  .friend-link-url-text {
    font-size: 0.95rem;
    word-break: break-all;
  }
}