@charset "UTF-8";
.type_top {
  padding: 60px 0;
  background: #fff;
}
.type_top .nutrition_carousel {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.type_top .nutrition_carousel .carousel_header {
  margin-bottom: 40px;
  text-align: center;
}
.type_top .nutrition_carousel .carousel_header .carousel_title {
  /* font-size: 28px;
  font-weight: 700;
  color: color.$text-dark; */
  position: relative;
  /*   &::after {
      content: '';
      position: absolute;
      bottom: -8px;
      left: 50%;
      transform: translateX(-50%);
      width: 60px;
      height: 3px;
      background: color.$gradient-primary;
      border-radius: 2px;
    } */
}
.type_top .nutrition_carousel .type_top_swiper {
  position: relative;
  padding: 20px 0;
}
.type_top .nutrition_carousel .type_top_swiper .swiper-slide .nutrition_card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.type_top .nutrition_carousel .type_top_swiper .swiper-slide .nutrition_card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}
.type_top .nutrition_carousel .type_top_swiper .swiper-slide .nutrition_card .card_image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}
.type_top .nutrition_carousel .type_top_swiper .swiper-slide .nutrition_card .card_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}
.type_top .nutrition_carousel .type_top_swiper .swiper-slide .nutrition_card .card_image .rank_badge {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #e95515 0%, #f59e0b 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(233, 85, 21, 0.3);
}
.type_top .nutrition_carousel .type_top_swiper .swiper-slide .nutrition_card .card_image .rank_badge:first-child {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}
.type_top .nutrition_carousel .type_top_swiper .swiper-slide .nutrition_card .card_content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.type_top .nutrition_carousel .type_top_swiper .swiper-slide .nutrition_card .card_content .card_title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 50px;
  flex-shrink: 0;
}
.type_top .nutrition_carousel .type_top_swiper .swiper-slide .nutrition_card .card_content .card_date {
  font-size: 12px;
  color: #494949;
  margin-bottom: 12px;
}
.type_top .nutrition_carousel .type_top_swiper .swiper-slide .nutrition_card .card_content .card_text {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  min-height: 66px;
}
.type_top .nutrition_carousel .type_top_swiper .swiper-slide .nutrition_card .card_content .card_footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  flex-shrink: 0;
}
.type_top .nutrition_carousel .type_top_swiper .swiper-slide .nutrition_card .card_content .card_footer .card_button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: transparent;
  color: #e95515;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid #e95515;
  position: relative;
  overflow: hidden;
}
.type_top .nutrition_carousel .type_top_swiper .swiper-slide .nutrition_card .card_content .card_footer .card_button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #e95515;
  transition: all 0.3s ease;
  z-index: -1;
}
.type_top .nutrition_carousel .type_top_swiper .swiper-slide .nutrition_card .card_content .card_footer .card_button:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(233, 85, 21, 0.3);
}
.type_top .nutrition_carousel .type_top_swiper .swiper-slide .nutrition_card .card_content .card_footer .card_button:hover::before {
  left: 0;
}
.type_top .nutrition_carousel .type_top_swiper .swiper-slide .nutrition_card .card_content .card_footer .card_button::after {
  content: "→";
  font-size: 12px;
  font-weight: 700;
  transition: all 0.3s ease;
  opacity: 0.8;
}
.type_top .nutrition_carousel .type_top_swiper .swiper-slide .nutrition_card .card_content .card_footer .card_button:hover::after {
  transform: translateX(2px);
  opacity: 1;
}
.type_top .nutrition_carousel .type_top_swiper .swiper-slide .nutrition_card .card_content .card_footer .view_count {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #999;
  background: #f8f8f8;
  padding: 6px 10px;
  border-radius: 15px;
}
.type_top .nutrition_carousel .type_top_swiper .swiper-slide .nutrition_card .card_content .card_footer .view_count .view_icon {
  font-size: 10px;
  width: 14px;
  height: 14px;
  opacity: 0.7;
}
.type_top .nutrition_carousel .type_top_swiper .swiper-slide .nutrition_card .card_content .card_footer .view_count .view_icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}
.type_top .nutrition_carousel .type_top_swiper .swiper-slide .nutrition_card .card_content .card_footer .view_count .view_number {
  font-weight: 600;
  color: #666;
}
.type_top .nutrition_carousel .type_top_swiper .swiper-slide .nutrition_card:has(.rank_badge:first-child) {
  border: 2px solid #FFD700;
  background: linear-gradient(135deg, #fff 0%, rgba(255, 215, 0, 0.05) 100%);
}
.type_top .nutrition_carousel .type_top_swiper .swiper-slide .nutrition_card:has(.rank_badge:first-child) .card_title {
  color: #333;
}
.type_top .nutrition_carousel .type_top_swiper .swiper-button-prev,
.type_top .nutrition_carousel .type_top_swiper .swiper-button-next {
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  color: #e95515;
  transition: all 0.3s ease;
}
.type_top .nutrition_carousel .type_top_swiper .swiper-button-prev::after,
.type_top .nutrition_carousel .type_top_swiper .swiper-button-next::after {
  font-size: 16px;
  font-weight: 700;
}
.type_top .nutrition_carousel .type_top_swiper .swiper-button-prev {
  left: 0px;
}
.type_top .nutrition_carousel .type_top_swiper .swiper-button-next {
  right: 0px;
}

@media (max-width: 1024px) {
  .type_top .nutrition_carousel .type_top_swiper .swiper-slide .nutrition_card .card_content .card_title {
    font-size: 16px;
    height: 44px;
  }
  .type_top .nutrition_carousel .type_top_swiper .swiper-slide .nutrition_card .card_content .card_text {
    font-size: 13px;
    min-height: 57px;
  }
}
@media (max-width: 768px) {
  .type_top {
    padding: 40px 0;
  }
  .type_top .nutrition_carousel {
    padding: 0 15px;
  }
  .type_top .nutrition_carousel .carousel_header {
    margin-bottom: 30px;
  }
  .type_top .nutrition_carousel .carousel_header .carousel_title {
    font-size: 24px;
  }
  .type_top .nutrition_carousel .type_top_swiper .swiper-slide .nutrition_card .card_image {
    height: 160px;
  }
  .type_top .nutrition_carousel .type_top_swiper .swiper-slide .nutrition_card .card_image .rank_badge {
    width: 28px;
    height: 28px;
    font-size: 12px;
    top: 8px;
    left: 8px;
  }
  .type_top .nutrition_carousel .type_top_swiper .swiper-slide .nutrition_card .card_content {
    padding: 15px;
  }
  .type_top .nutrition_carousel .type_top_swiper .swiper-slide .nutrition_card .card_content .card_title {
    font-size: 15px;
    height: 42px;
  }
  .type_top .nutrition_carousel .type_top_swiper .swiper-slide .nutrition_card .card_content .card_text {
    font-size: 12px;
    min-height: 48px;
    -webkit-line-clamp: 2;
  }
  .type_top .nutrition_carousel .type_top_swiper .swiper-slide .nutrition_card .card_content .card_footer {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  .type_top .nutrition_carousel .type_top_swiper .swiper-slide .nutrition_card .card_content .card_footer .view_count {
    font-size: 11px;
    padding: 4px 8px;
  }
  .type_top .nutrition_carousel .type_top_swiper .swiper-button-prev,
  .type_top .nutrition_carousel .type_top_swiper .swiper-button-next {
    width: 36px;
    height: 36px;
  }
  .type_top .nutrition_carousel .type_top_swiper .swiper-button-prev::after,
  .type_top .nutrition_carousel .type_top_swiper .swiper-button-next::after {
    font-size: 14px;
  }
  .type_top .nutrition_carousel .type_top_swiper .swiper-button-prev {
    left: -18px;
  }
  .type_top .nutrition_carousel .type_top_swiper .swiper-button-next {
    right: -18px;
  }
}
@media (max-width: 480px) {
  .type_top .nutrition_carousel .carousel_header .carousel_title {
    font-size: 20px;
  }
  .type_top .nutrition_carousel .type_top_swiper .swiper-slide .nutrition_card .card_image {
    height: 140px;
  }
  .type_top .nutrition_carousel .type_top_swiper .swiper-slide .nutrition_card .card_image .rank_badge {
    width: 24px;
    height: 24px;
    font-size: 11px;
    top: 6px;
    left: 6px;
  }
  .type_top .nutrition_carousel .type_top_swiper .swiper-slide .nutrition_card .card_content {
    padding: 12px;
  }
  .type_top .nutrition_carousel .type_top_swiper .swiper-slide .nutrition_card .card_content .card_title {
    font-size: 14px;
    height: 40px;
  }
  .type_top .nutrition_carousel .type_top_swiper .swiper-slide .nutrition_card .card_content .card_text {
    font-size: 11px;
    min-height: 44px;
  }
  .type_top .nutrition_carousel .type_top_swiper .swiper-slide .nutrition_card .card_content .card_footer .card_button {
    padding: 6px 12px;
    font-size: 12px;
  }
  .type_top .nutrition_carousel .type_top_swiper .swiper-slide .nutrition_card .card_content .card_footer .view_count {
    font-size: 10px;
    padding: 3px 6px;
  }
  .type_top .nutrition_carousel .type_top_swiper .swiper-button-prev,
  .type_top .nutrition_carousel .type_top_swiper .swiper-button-next {
    width: 32px;
    height: 32px;
  }
  .type_top .nutrition_carousel .type_top_swiper .swiper-button-prev::after,
  .type_top .nutrition_carousel .type_top_swiper .swiper-button-next::after {
    font-size: 12px;
  }
  .type_top .nutrition_carousel .type_top_swiper .swiper-button-prev {
    left: -16px;
  }
  .type_top .nutrition_carousel .type_top_swiper .swiper-button-next {
    right: -16px;
  }
}
