@charset "utf-8";

/**
 * @author  :   lh
 * @created :   2021/03/02
 * @desc    :   草稿版——网站样式
 *
 * @update  :   2021/03/02
 * @modify  :   修改说明
 */
html,
body {
  background: #f3f3f3;
}

.title {
  width: 1200px;
  margin: 2% auto;
  padding: 1% 0;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0px 0px 6px #e3e3e3;
  background: #fff;
  font-size: 1.2em;
  color: #333;
}

.content {
  width: 1200px;
  margin: 0 auto;
}

.recommend {
  margin-bottom: 1%;
  padding: 1% 2%;
  border-radius: 5px;
  color: #666;
  background: #fff url(../img/recommend.png) no-repeat left top;
  background-size: contain;
  display: inline-block;
}

.content .column {
  padding: 1%;
  background: #f9f9f9;
  border-radius: 10px;
  margin-bottom: 2%;
}

.card ul {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.card ul li {
  width: 24%;
  padding: 0 0 2% 0;
  display: block;
  box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.4);
  transition: transform 1s;
  background: #fff;
  margin-bottom: 20px;
  border-radius: 3px;
}

.card-heading {
  display: flex;
  align-items: center;
  margin-bottom: 3%;
  padding-left: 5%;
}

.card-heading .iconimg {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-block;
}

.card-heading .iconimg img {
  width: 100%;
  height: 100%;
}

.card ul li img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: fill;
  margin-bottom: 5%;
}
.card ul li .card-title {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.card ul li:hover {
  transform: translateY(-10px);
  transition: transform 1s;
}

.card ul li:hover .card-heading {
  color: blue;
}

.card-word {
  padding: 0 5%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-height: 1.2;
  text-align: justify;
  min-height: 3.5em;
}

.card ul li .card-title {
  font-size: 1.2em;
  color: #333;
  display: inline-block;
  text-decoration: none;
}

.card ul li .card-word {
  color: #666;
}

.card .tag {
  padding: 0 5%;
  display: flex;
  margin-top: 3%;
}

.card .tag a {
  display: block;
  background: #f3f3f3;
  border-radius: 5px;
  padding: 5px 10px;
  margin-right: 5%;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.card .tag a:last-child {
  margin-right: 0;
}

.card .jump {
  margin-top: 5%;
}

.card .jump a {
  display: block;
  background: #0768b2;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.card .jump a:last-child {
  background: #f3f3f3;
  color: #333;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

/*分页*/
ul.pagination {
  width: 50%;
  display: flex;
  justify-content: center;
  padding: 0;
  margin: 5% auto;
}

ul.pagination li a.active,
.page-active {
  background-color: #cde4f6;
  color: white;
}

ul.pagination li a:hover:not(.active) {
  background-color: #ddd;
}

ul.pagination li {
  display: inline;
}

ul.pagination li a {
  color: black;
  float: left;
  padding: 8px 16px;
  text-decoration: none;
}

/*iphone 6,7,8plus screen-width:414px */
@media screen and (max-width: 414px) {
  html,
  body {
    font-size: 0.9em;
  }

  .title {
    padding: 3% 0;
  }

  .title,
  .content {
    width: 96%;
  }

  .content .column {
    padding: 3%;
  }

  .recommend {
    padding: 2% 4%;
    margin-bottom: 2%;
  }

  .card ul li img {
    margin-bottom: 3%;
  }

  .card ul li {
    width: 100%;
  }

  .card .jump {
    margin-top: 3%;
  }
}
