/* 友链整体容器 */
.links-content {
  margin-top: 1rem;
}

/* 清除浮动 */
.link-navigation::after {
  content: " ";
  display: block;
  clear: both;
}

/* 卡片基础样式 */
.card {
  width: 91px;
  font-size: 1rem;
  padding: 0;
  border-radius: 4px;
  transition-duration: .15s;
  margin-bottom: 1rem;
  display: block;
  float: left;
  box-shadow: 0 2px 6px 0 rgba(0,0,0,.12);
  background: #f5f5f5;
  margin-left: 16px;
}

/* 响应式布局：小屏两列 */
@media(max-width:567px) {
  .card {
    width: calc((100% - 16px)/2 * 0.7);
  }
  .card:nth-child(2n+1) {
    margin-left: 0;
  }
}

/* 中屏三列 */
@media(min-width:567px) {
  .card {
    width: calc((100% - 32px)/3 * 0.7);
  }
  .card:nth-child(3n+1) {
    margin-left: 0;
  }
}

/* 大屏四列 */
@media(min-width:768px) {
  .card {
    width: calc((100% - 48px)/4 * 0.7);
  }
  .card:nth-child(4n+1) {
    margin-left: 0;
  }
}

/* 超大屏五列 */
@media(min-width:1200px) {
  .card {
    width: calc((100% - 64px)/5 * 0.7);
  }
  .card:nth-child(5n+1) {
    margin-left: 0;
  }
}

/* 卡片 hover 效果 */
.card:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

/* 卡片内链接 */
.card a {
  display: block;
  text-decoration: none;
  border: 0;
}

/* 头像容器 */
.card .thumb {
  width: 100%;
  overflow: hidden;
  background-color: #f0f0f0;
  /* 方形头像 */
  border-radius: 0;
  /* 如果想要圆形头像，改成 border-radius: 50%; */
  display: block;
  position: relative;
  padding-bottom: 100%;
}

/* 头像图片 */
.card .thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 卡片标题 */
.card .card-header {
  display: block;
  text-align: center;
  padding: 0.7rem .18rem;
  font-weight: 500;
  color: #333;
  white-space: normal;
}

/* 卡片标题链接 */
.card .card-title a {
  font-style: normal;
  color: #2bbc8a;
  font-weight: 700;
  text-decoration: none;
  border: 0;
}

.card .card-title a:hover {
  color: #d480aa;
  text-decoration: none;
  border: 0;
}

/* 卡片描述 */
.card .card-description {
  font-size: 0.7rem;
  color: #666;
  margin-top: 0.3rem;
  line-height: 1.3;
  min-height: 1.8em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
