/*
 * 巡黔记｜贵州风味食材轮播预览
 * 仅作用于 #featured-ingredients 的手机端；不修改 PC 端样式。
 * 预览版本：2026-11-30
 */
@media (max-width: 760px) {
  #featured-ingredients .deep-layout-grid-wrap {
    width: 100%;
    overflow: visible;
  }

  #featured-ingredients .deep-layout-grid {
    display: flex !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    grid-auto-flow: column !important;
    align-items: stretch;
    gap: 12px !important;
    width: 100%;
    margin: 0 !important;
    padding: 0 2px 10px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-snap-stop: always;
    scroll-padding-inline: 2px;
    scroll-behavior: smooth;
    scrollbar-width: none;
  }

  #featured-ingredients .deep-layout-grid::-webkit-scrollbar {
    display: none;
  }

  #featured-ingredients .deep-layout-grid__card {
    box-sizing: border-box;
    flex: 0 0 90% !important;
    width: 90% !important;
    min-width: 90% !important;
    max-width: 90% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1.36 / 1 !important;
    grid-column: auto !important;
    grid-row: auto !important;
    align-self: stretch;
    overflow: hidden;
    border-radius: 20px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  #featured-ingredients .deep-layout-grid__card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  #featured-ingredients .deep-layout-grid-wrap::after {
    content: "左右滑动查看更多食材";
    display: block;
    margin-top: 3px;
    padding: 5px 0 0;
    color: rgba(30, 62, 52, 0.62);
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: 0.08em;
    text-align: center;
  }
}

@media (max-width: 390px) {
  #featured-ingredients .deep-layout-grid {
    gap: 10px !important;
  }

  #featured-ingredients .deep-layout-grid__card {
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #featured-ingredients .deep-layout-grid {
    scroll-behavior: auto;
  }
}
