/* ========================================
   推荐信息模块 - 双列卡片风格
   ======================================== */

.recommend-section {
  background: #fff;
  padding: 70px 0 60px;
}

/* 标题区 */
.recommend-section .section-top {
  text-align: center;
  margin-bottom: 40px;
}

.recommend-section .section-top .recommend-badge {
  display: inline-block;
  width: 56px;
  height: 56px;
  line-height: 56px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 24px;
  border-radius: 50%;
  margin-bottom: 16px;
  -webkit-box-shadow: 0 8px 24px rgba(245, 158, 11, 0.25);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.25);
}

.recommend-section .section-top h3 {
  font-size: 30px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 8px;
}

.recommend-section .section-top p {
  font-size: 14px;
  color: #718096;
}

/* 双列网格 */
.recommend-grid {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: 0 -14px;
}

.recommend-grid .recommend-col {
  width: 50%;
  padding: 0 14px;
  margin-bottom: 28px;
}

/* 卡片 */
.recommend-card {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  -webkit-transition: all 0.35s ease;
  transition: all 0.35s ease;
  height: 100%;
}

.recommend-card:hover {
  border-color: #1a56db;
  -webkit-box-shadow: 0 8px 28px rgba(26, 86, 219, 0.1);
  box-shadow: 0 8px 28px rgba(26, 86, 219, 0.1);
  -webkit-transform: translateY(-4px);
  transform: translateY(-4px);
}

/* 图片 */
.recommend-card .card-img {
  -ms-flex-negative: 0;
  flex-shrink: 0;
  width: 200px;
  min-height: 100%;
  position: relative;
  overflow: hidden;
  background: #e5e7eb;
}

.recommend-card .card-img img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  -webkit-transition: -webkit-transform 0.4s ease;
  transition: -webkit-transform 0.4s ease;
  transition: transform 0.4s ease;
  transition: transform 0.4s ease, -webkit-transform 0.4s ease;
  position: absolute;
  top: 0;
  left: 0;
}

.recommend-card:hover .card-img img {
  -webkit-transform: scale(1.08);
  transform: scale(1.08);
}

/* 图片上 TOP 标签 */
.recommend-card .card-img .top-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  z-index: 1;
}

/* 内容区 */
.recommend-card .card-body {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  padding: 20px 22px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  min-width: 0;
}

/* 元信息行 */
.recommend-card .card-body .card-meta {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 10px;
}

.recommend-card .card-body .card-meta span i {
  margin-right: 4px;
}

/* 标题 */
.recommend-card .card-body .card-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 8px;
}

.recommend-card .card-body .card-title a {
  color: #1a202c;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-transition: color 0.3s ease;
  transition: color 0.3s ease;
}

.recommend-card .card-body .card-title a:hover {
  color: #1a56db;
}

/* 描述 */
.recommend-card .card-body .card-desc {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
}

/* 详情按钮 */
.recommend-card .card-body .card-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: #1a56db;
  text-decoration: none;
  -webkit-align-self: flex-start;
  -ms-flex-item-align: start;
  align-self: flex-start;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.recommend-card .card-body .card-link i {
  margin-left: 4px;
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: -webkit-transform 0.3s ease;
  transition: transform 0.3s ease;
  transition: transform 0.3s ease, -webkit-transform 0.3s ease;
}

.recommend-card .card-body .card-link:hover {
  color: #1e40af;
}

.recommend-card .card-body .card-link:hover i {
  -webkit-transform: translateX(3px);
  transform: translateX(3px);
}

/* ========================================
   响应式
   ======================================== */

@media (max-width: 991px) {
  .recommend-card {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
  }

  .recommend-card .card-img {
    width: 100%;
    height: 200px;
  }

  .recommend-card .card-body {
    padding: 18px 16px;
  }
}

@media (max-width: 767px) {
  .recommend-section {
    padding: 45px 0 40px;
  }

  .recommend-grid .recommend-col {
    width: 100%;
  }

  .recommend-section .section-top h3 {
    font-size: 24px;
  }

  .recommend-card .card-img {
    height: 180px;
  }
}
