main {
  max-width: 1200px;
  margin: 0px auto;
  padding: 5px;
}

.component-title {
  font-size: 24px;
  font-weight: 600;
  margin: 10px auto;
  line-height: 30px;
  display: -webkit-box;
  /* 将 display 设置为 -webkit-box */
  -webkit-box-orient: vertical;
  /* 设置方向为垂直 */
  /* -webkit-line-clamp: 2; */
  /* 限制显示的行数为2 */
  overflow: hidden;
  /* 隐藏超出的内容 */
  text-overflow: ellipsis;
  /* 显示省略号 */
}

.component-desc {
  margin: 10px auto;
  color: #8a8a8a;
  font-size: 15px;
}

.component-img {
  border-radius: 10px;
  margin: 10px auto;
  display: none;
}

.component-content p {
  color: #333;
  /* margin: 1px auto; */
  text-align: unset !important;
}

.component-content span {
  font-size: 16px !important;
}

.component-item img {
  border-radius: 10px 10px 0 0;
}

@media (min-width: 769px) {
  .component {
    display: flex;
    justify-content: center;
    position: relative;
  }

  .component-img {
    /* height: 300px; */
  }

  .component-detail {
    margin-right: 30px;
  }

  .component-sticky {
    width: 80%;
    position: sticky;
    top: 120px;
    height: max-content;
    /* left: 0; */
    margin-top: 60px;
  }

  .component-sticky-title {
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 10px;
  }

  .component-item-title {
    margin-left: 10px;
    font-size: 14px;
    min-width: 100px;
    height: 10%;
    display: -webkit-box;
    /* 将 display 设置为 -webkit-box */
    -webkit-box-orient: vertical;
    /* 设置方向为垂直 */
    -webkit-line-clamp: 2;
    /* 限制显示的行数为1 */
    overflow: hidden;
    /* 隐藏超出的内容 */
    text-overflow: ellipsis;
    /* 显示省略号 */
  }

  .component-item a {
    display: flex;
    justify-content: center;
    text-decoration: none;
    color: #000;
    margin: 15px auto;
  }

  .component-item img {
    width: 100px;
    height: 80px;
  }

  .component-item-desc {
    display: none;
  }
}

@media (max-width: 768px) {
  .component-sticky {
    width: 100%;
  }

  .component-sticky-title {
    font-size: 20px;
    margin: 20px auto;
    font-weight: 600;
  }
  .component-sticky-title a {
    font-size: 20px;
    margin: 20px auto;
    font-weight: 600;
  }

  .component-item-title {
    font-weight: 600;
    font-size: 18px;
    padding: 5px 10px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .component-item-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #8a8a8a;
    margin: 5px auto;
  }

  .component-item {
    display: flex;
    justify-content: space-between;
    margin: 10px auto;
    /* padding: 0 px; */
    flex-wrap: wrap;
  }

  .component-item a {
    width: 100%;
    margin-bottom: 20px;
    background-color: #fff;
    /* padding: 20px; */
    border-radius: 10px;
    box-shadow: 0 4px 10px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(66, 153, 225, 0.1);
  }
}
