* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, #fff 0%, #fff 100%);
  min-height: 100vh;
}

.links-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}

.links-header {
  text-align: center;
  margin-bottom: 50px;
  color: #fff;
  background: #66a7ea;
  padding: 20px;
}

.links-header h1 {
  font-size: 48px;
  margin-bottom: 15px;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  color: #fff;
}

.links-header p {
  font-size: 18px;
  opacity: 0.9;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 50px;
}

.friend-link {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid #ddd;
}

.friend-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #66a7ea, #5b9bd1);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.friend-link:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.friend-link:hover::before {
  transform: scaleX(1);
}

.friend-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #66a7ea, #5b9bd1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 36px;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.friend-link:hover .friend-logo {
  transform: rotate(360deg);
}

.friend-name {
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 10px;
}

.friend-desc {
  font-size: 14px;
  color: #7f8c8d;
  margin-bottom: 20px;
  line-height: 1.5;
}

.visit-btn {
  display: inline-block;
  padding: 10px 30px;
  background: linear-gradient(135deg, #66a7ea, #5b9bd1);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.visit-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
  color: #fff;
}

.category-section {
  margin-bottom: 60px;
}

.category-title {
  color: #333;
  font-size: 28px;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.category-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #000;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .links-header h1 {
    font-size: 36px;
  }

  .links-grid {
    grid-template-columns: 1fr;
  }

  .friend-link {
    padding: 25px;
  }
}