.input_search{
    top: 30px;
}

/* Carousel CSS （同前面示例） */
.carousel-container {
  position: relative;
  overflow: hidden;
  /* border-radius: 10px; */
  margin: 0 auto;
  /* width: 64%; */
  width: 91.5%;
  max-width: 1200px;
  padding: 0;
  height: 360px;
  aspect-ratio: 16 / 9;
  background: #f5f5f5;
}

.carousel-slide {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
  height: 100%;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  cursor: pointer;
  padding: 8px;
  z-index: 10;
  border-radius: 50%;
  font-size: 1.2rem;
  line-height: 1;
}
.left-btn { left: 10px; }
.right-btn { right: 10px; }
.carousel-btn:hover {
  background: rgba(0,0,0,0.7);
  transform: translateY(-50%) scale(1.1);
}

/* @media (max-width: 640px) {
  .carousel-container {
    width: 91.5%;
    top: 10px;
    aspect-ratio: 16 / 9;
    height: auto;
  }
}

@media (max-width: 768px) {
  .carousel-container {
    width: 92.5%;
    top: 10px;
    aspect-ratio: 16 / 9;
    height: auto;  
  }
} */

.carousel-dots {
  text-align: center;
  margin-top: 10px;
}

.carousel-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 4px;
  border-radius: 50%;
  background-color: #ccc;
  cursor: pointer;
}

.carousel-dot.active {
  background-color: #000;
}


.all_recipe{
    justify-content: center;
    align-items: center;
    max-width: 100%;
    border: 1px solid red;
}
.recipe_list_container{
    justify-content: center;
    align-items: center;
    max-width: 1280px;
    padding: 0;
    margin: 0 auto;
    border: 1px solid red;
}

#recipe-list{
    justify-content: center;
    /* width: 91.5%; */
    max-width: 1280px;
}

.recipe_type_container {
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    padding: 0;
    margin: 0 auto;
    /* border: 1px solid red; */
}

#recipe-type {
    justify-content: center;
    max-width: 1200px;
    /* background: #f5f5f5; */
    gap: 10px;
    /* border: 1px solid red; */
}

.recipe-type-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 9%; 
   /* border: 1px solid red; */
}

.recipe-type-item {
    flex: 1 1 auto; 
}

.recipe-type-item img {
    margin: 0 auto;
    padding: 0;
  display: block;
  max-width: 40px;
  /* justify-content: center; */
  height: auto;

}

.recipe-type-item p {
  text-align: center;
  display: block;
  white-space: nowrap;
  font-size: 11px;
}

/* 选中图片的高亮样式 */
.recipe-type-item img.selected {
  border: 2px solid #f0506e;
  box-shadow: 0 0 6px rgba(240, 80, 110, 0.5);
  border-radius: 6px;
  transition: all 0.3s ease;
}

#recipe-title {
  font-size: 24px;
  font-weight: 500;
}

/* .ingredients_contaion {

    border: 1px solid red;
} */

/* .uk-article {
    border: 1px solid red;
} */

.top_container .recipe_rating {
 position: relative;
 top: 10px;
 color: black;
}

#recipe-description {
 color: black;
}


.recipe_score {
   position: relative;
   top: -10px;
  font-size: 2rem;
  line-height: 1;
   color: black;
}

.gray-progress::-webkit-progress-value {
  background-color: #999;
}
.gray-progress::-moz-progress-bar {
  background-color: #999;
}
.gray-progress {
  color: #999;
}

@media (max-width: 480px) {

  .recipe-type-item {
    left: 10%;
    width: 16.5%;
    }

  .recipe-type-item img {
    width: 50px;
  }

  .recipe-type-item p {
    font-size: 11px;
  }
}

@media (min-width: 768px) {

  .recipe-type-item {
    width: 8.5%;
    }
}

@media (min-width: 960px) {
  #recipe-type {
    max-width: 1200px;
  }
}

@media (min-width: 1200px) {
  
  .recipe-type-item {
    width: 18.5%;
    }
}

.uk-background-primary {
  background-color: #d95641;
  border-radius: 5%;
}

.uk-button {
  background-color: #f2c647;
}

.uk-border-pill {
  border-radius: 500px;
}