/* css/links.css */
.friend-links {
  background-color: #f8f9fa;
  padding: 2rem 0;
  border-top: 1px solid #eaeaea;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.friend-links .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.links-title {
  text-align: center;
  color: #333;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.links-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.link-item {
  color: #555;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.link-item:hover {
  color: #007bff;
  border-color: #007bff;
  background-color: rgba(0, 123, 255, 0.05);
}

.links-title {
  position: relative;
  text-align: center;
  color: #333;
  font-size: 1.2rem;
  margin: 1.5rem 5px; /* 左右留出5px空间 */
  font-weight: 500;
  display: flex;
  align-items: center;
}

.links-title::before,
.links-title::after {
  content: "";
  flex: 1;
  height: 3px; /* 加粗到3px */
background: linear-gradient(90deg, #3a7bd5, #00d2ff);
  margin: 0 10px; /* 文字与线条间距 */
}

.links-title::before {
  margin-left: 5px; /* 左侧距边缘5px */
  margin-right: 15px;
}

.links-title::after {
  margin-right: 5px; /* 右侧距边缘5px */
  margin-left: 15px;
}

.links-title span {
  white-space: nowrap; /* 防止文字换行 */
}

/* 移动端适配调整 */
@media (max-width: 768px) {
  .links-title {
    font-size: 1.1rem;
    margin: 1.2rem 5px;
  }
  
  .links-title::before,
  .links-title::after {
    height: 2.5px; /* 移动端稍细一点 */
    margin: 0 8px;
  }
  
  .links-title::before {
    margin-left: 5px;
    margin-right: 10px;
  }
  
  .links-title::after {
    margin-right: 5px;
    margin-left: 10px;
  }
}

@media (max-width: 480px) {
  .links-title {
    font-size: 1rem;
    margin: 1rem 5px;
  }
  
  .links-title::before,
  .links-title::after {
    height: 2px;
    margin: 0 5px;
  }
}