/* 大食霸 · 首页 hero 菜品轮播
   只增强首页 .hero-img；旧版静态 hero 由 JS 自动替换，失败时仍保留原图。 */
.hero-img.hero-carousel-stage{
  position:relative;
  isolation:isolate;
  touch-action:pan-y;
}

.hero-carousel-stage > .hero-slides{
  position:absolute;
  inset:0;
  border-radius:inherit;
  overflow:hidden;
}

.hero-slide{
  position:absolute;
  inset:0;
  margin:0;
  opacity:0;
  pointer-events:none;
  transition:opacity .68s cubic-bezier(.4,0,.2,1);
  will-change:opacity;
}

.hero-slide.is-active{
  opacity:1;
}

.hero-slide img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  transform:scale(1.015);
  transition:transform 1.2s cubic-bezier(.2,0,.2,1);
}

.hero-slide.is-active img{
  transform:scale(1.035);
}

.hero-carousel-stage::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:96px;
  z-index:1;
  pointer-events:none;
  background:linear-gradient(to top,rgba(14,31,23,.34),rgba(14,31,23,0));
}

.hero-carousel-nav{
  position:absolute;
  top:50%;
  z-index:3;
  width:34px;
  height:34px;
  margin:0;
  padding:0;
  border:1px solid rgba(255,255,255,.42);
  border-radius:50%;
  background:rgba(18,37,26,.4);
  color:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  opacity:.78;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  transform:translateY(-50%);
  transition:background .2s ease,color .2s ease,border-color .2s ease,opacity .2s ease,transform .2s ease;
}

.hero-carousel-nav.prev{left:14px}
.hero-carousel-nav.next{right:14px}

.hero-carousel-nav:hover{
  background:rgba(255,253,248,.95);
  border-color:rgba(255,253,248,.95);
  color:var(--forest,#1E4D36);
  opacity:1;
}

.hero-carousel-nav:active{
  transform:translateY(-50%) scale(.94);
}

.hero-carousel-nav svg{
  width:15px;
  height:15px;
  display:block;
}

.hero-carousel-dots{
  position:absolute;
  right:16px;
  bottom:16px;
  z-index:3;
  display:flex;
  align-items:center;
  gap:6px;
  padding:7px 9px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:999px;
  background:rgba(18,37,26,.34);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}

.hero-dot{
  width:6px;
  height:6px;
  margin:0;
  padding:0;
  border:0;
  border-radius:999px;
  background:rgba(255,255,255,.56);
  cursor:pointer;
  transition:width .25s ease,background .25s ease;
}

.hero-dot:hover{
  background:rgba(255,255,255,.86);
}

.hero-dot.is-active{
  width:18px;
  background:#fff;
}

.hero-carousel-count{
  position:absolute;
  top:14px;
  right:14px;
  z-index:3;
  padding:5px 9px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:999px;
  background:rgba(18,37,26,.32);
  color:rgba(255,255,255,.92);
  font-size:10px;
  font-weight:600;
  letter-spacing:.14em;
  line-height:1.4;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}

.hero-carousel-count .now{
  color:#fff;
}

.hero-carousel-count .all{
  color:rgba(255,255,255,.62);
}

.ticket.is-swapping .ticket-name,
.ticket.is-swapping .ticket-kcal,
.ticket.is-swapping .demo-macros{
  animation:heroTicketIn .42s ease both;
}

@keyframes heroTicketIn{
  from{opacity:.35;transform:translateY(4px)}
  to{opacity:1;transform:translateY(0)}
}

@media (max-width:1080px) and (min-width:721px){
  .hero-carousel-dots{right:auto;left:16px}
}

@media (max-width:720px){
  .hero-carousel-nav{display:none}

  .hero-carousel-stage::after{
    height:64px;
  }

  .hero-carousel-dots{
    right:auto;
    left:50%;
    bottom:34px;
    padding:6px 8px;
    transform:translateX(-50%);
  }

  .hero-carousel-count{
    top:10px;
    left:10px;
    right:auto;
    padding:4px 8px;
    font-size:9.5px;
  }

  .hero-slide img,
  .hero-slide.is-active img{
    transform:scale(1.02);
  }
}

@media (prefers-reduced-motion:reduce){
  .hero-slide,
  .hero-slide img,
  .hero-carousel-nav,
  .hero-dot,
  .ticket.is-swapping .ticket-name,
  .ticket.is-swapping .ticket-kcal,
  .ticket.is-swapping .demo-macros{
    animation:none;
    transition:none;
  }
}
