/* 美食购物页面样式（复制自 wildland/xiaogan/css/cater.css） */
/* 根字号 100px，使 rem 单位按 100px 渲染（9.4rem≈940px，适配 all_right 1157px） */
html {
  font-size: 100px;
}

.cater-inner-con {
  margin: 0 0 0 -0.3rem;
  width: 10.58rem;
  color: #452928;
  font-size: 0.18rem;
  font-family: "wenCangRegular";
}
.cater-top {
  margin: 0 auto;
  width: 4.42rem;
  height: 1.82rem;
  text-align: center;
  color: #f4dfb3;
  background: url("../images/cater-top-cake.png");
  background-size: contain;
  background-repeat: no-repeat;
}
.cater-top h1 {
  padding: 0.95rem 0 0;
  font-weight: normal;
  font-style: normal;
  font-size: 0.36rem;
}
.cater-middle-wrap {
  position: relative;
  height: 6.38rem;
}
.cater-middle-wrap .cti {
  position: absolute;
}
.cti1,
.cti5 {
  width: 2.39rem;
  visibility: hidden;
}
.cti2,
.cti4 {
  width: 2.37rem;
  visibility: hidden;
}
.cti3 {
  top: 0.5rem;
  left: 50%;
  z-index: 300;
  transform: translate(-50%, 5%);
  width: 3.52rem;
  animation: move3 500ms ease 100ms forwards;
}
.cti1 {
  animation: move1 600ms ease 1200ms forwards;
}
.cti2 {
  animation: move2 600ms ease 600ms forwards;
}
.cti4 {
  z-index: 200;
  animation: move4 600ms ease 600ms forwards;
}
.cti5 {
  animation: move5 600ms ease 1200ms forwards;
}
.c-halo {
  position: absolute;
  top: 0.1rem;
  left: 50%;
  transform: translate(-50%, 0);
  width: 5.42rem;
}
.cater-middle-wrap .food-type {
  position: absolute;
  font-size: 0.3rem;
  opacity: 0;
  animation: op-1 300ms ease-in 1800ms forwards;
}
.ft1 {
  top: 3.7rem;
  left: 1.45rem;
}
.ft2 {
  top: 4.57rem;
  left: 3.25rem;
}
.ft3 {
  top: 5.02rem;
  left: 50%;
  transform: translate(-50%, 0);
}
.ft4 {
  top: 4.57rem;
  right: 3.25rem;
}
.ft5 {
  top: 3.7rem;
  right: 1.45rem;
}
/* main con css */
.cater-sec {
  position: relative;
  padding: 1.25rem 0;
}
.cater-sec::before {
  content: "";
  display: block;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 0);
  width: 9rem;
  height: 0.01rem;
  background: #d79e5b;
}
.cater-sec:nth-of-type(odd) .restaurant-info {
  float: right;
  margin: 0 0.1rem 0 0;
  background-image: url("../images/cater-sec-bg1.png");
}
.cater-sec:nth-of-type(odd) .restaurant-info .res-content {
  padding: 0 0 0 0.7rem;
}
.cater-sec:nth-of-type(odd).active .restaurant-img {
  animation: odd-card-move 500ms ease forwards;
}
.cater-sec:nth-of-type(odd).active .restaurant-info {
  transform-origin: 0 50%;
  animation: show-dashboard 500ms ease 250ms forwards;
}
.cater-sec:nth-of-type(odd) .res-dmd {
  right: 0;
  transform: translate(50%, -50%);
}
.cater-sec:nth-of-type(even) .restaurant-info {
  float: left;
  background-image: url("../images/cater-sec-bg2.png");
}
.cater-sec:nth-of-type(even).active .restaurant-info {
  transform-origin: 100% 50%;
  animation: show-dashboard 500ms ease 250ms forwards;
}
.cater-sec:nth-of-type(even).active .restaurant-img {
  animation: even-card-move 500ms ease forwards;
}
.cater-sec:nth-of-type(even) .res-dmd {
  left: 0;
  transform: translate(-50%, -50%);
}
.cater-sec:nth-of-type(odd).active .res-dmd {
  animation: dmd-ani1 300ms ease-in 1400ms forwards;
}
.cater-sec:nth-of-type(even).active .res-dmd {
  animation: dmd-ani2 300ms ease-in 1400ms forwards;
}
.cater-sec.active .res-name {
  animation: op-1 300ms ease 750ms forwards;
}
.cater-sec.active .res-arrow {
  animation: arrow-move 300ms ease-in 200ms forwards;
}
.cater-sec.active .res-theme {
  animation: op-1 300ms ease 1050ms forwards;
}
.cater-sec.active .res-intro {
  animation: op-1 300ms ease 1350ms forwards;
}
.restaurant-info {
  width: 8.82rem;
  min-height: 3.03rem;
  background-repeat: no-repeat;
  background-position: left top;
  background-size: 100% 100%;
  transform: scaleX(0);
}
.res-name {
  display: flex;
  align-items: center;
  padding: 0.5rem 0 0;
  color: #15526f;
}
.res-name h1 {
  font-size: 0.3rem;
}
.res-name,
.res-theme,
.res-intro,
.restaurant-info,
.res-dmd {
  opacity: 0;
}
.res-divider {
  flex: 1;
  min-width: 1rem;
  height: 0.4rem;
  background: url("../images/cater-sec-divider.png");
  background-repeat: no-repeat;
  background-size: 100%;
}
.res-diamond {
  width: 0.2rem;
  height: 0.16rem;
  font-size: 0;
  background: url("../images/cater-sec-dec.png");
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: cover;
}
.rd1 {
  margin: 0 0.05rem 0.05rem 0.2rem;
}
.rd2 {
  margin: 0 0.2rem 0.05rem 0.05rem;
}
.res-name h1,
.res-theme h3 {
  font-weight: normal;
  font-style: normal;
}
.res-theme {
  padding: 0.15rem 0 0.25rem;
  text-align: center;
}
.res-theme h3 {
  font-size: 0.18rem;
}
.res-intro {
  margin: 0 auto;
  width: 5.85rem;
  line-height: 1.5em;
  font-size: 0.24rem;
}
.cater-sec:nth-of-type(odd) .restaurant-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.cater-sec:nth-of-type(even) .restaurant-img {
  position: absolute;
  top: 50%;
  right: 50%;
  transform: translate(50%, -50%);
}
.res-img-box {
  width: 2.66rem;
}
.res-arrow {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: -1;
  transform: translate(-50%, 0%);
  width: 0.72rem;
  height: 0.37rem;
  background: url("../images/cater-con-arrow.png");
  background-repeat: no-repeat;
  background-size: contain;
}
.res-dmd {
  position: absolute;
  top: 50%;
  width: 0.25rem;
  height: 0.25rem;
  background: url("../images/cater-con-diamond.png");
  background-repeat: no-repeat;
  background-size: contain;
}
/* starting animation */
@keyframes move1 {
  0%,
  100% {
    visibility: visible;
  }
  0% {
    left: 1.76rem;
    top: 0.25rem;
  }
  100% {
    top: 0;
    left: 0;
  }
}
@keyframes move2 {
  0%,
  100% {
    visibility: visible;
  }
  0% {
    left: 34%;
    top: 0.5rem;
  }
  100% {
    top: 0.25rem;
    left: 1.76rem;
  }
}
@keyframes move3 {
  100% {
    transform: translate(-50%, 0);
  }
}
@keyframes move4 {
  0%,
  100% {
    visibility: visible;
  }
  0% {
    right: 34%;
    top: 0.5rem;
  }
  100% {
    top: 0.25rem;
    right: 1.76rem;
  }
}
@keyframes move5 {
  0%,
  100% {
    visibility: visible;
  }
  0% {
    right: 1.76rem;
    top: 0.25rem;
  }
  100% {
    top: 0;
    right: 0;
  }
}
@keyframes odd-card-move {
  0% {
    left: 50%;
    transform: translate(-50%, -50%);
  }
  100% {
    left: 0.2rem;
    transform: translate(0, -50%);
  }
}
@keyframes even-card-move {
  0% {
    right: 50%;
    transform: translate(50%, -50%);
  }
  100% {
    right: 0.2rem;
    transform: translate(0, -50%);
  }
}
@keyframes show-dashboard {
  0%,
  100% {
    opacity: 1;
  }
  100% {
    transform: scaleX(1);
  }
}
@keyframes arrow-move {
  100% {
    transform: translate(-50%, -100%);
  }
}
@keyframes dmd-ani1 {
  100% {
    opacity: 1;
    transform: translate(50%, -50%);
  }
}
@keyframes dmd-ani2 {
  100% {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}


/* 美食购物列表样式 */
.catering-tabs {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.3rem 0;
}

.catering-tab {
  font-size: 0.18rem;
  color: #d14a38;
  width: 1.22rem;
  height: .44rem;
  line-height: .44rem ;
  margin: 0 .2rem;
  cursor: pointer;
  text-align: center;
  background: url(../images/ticket_nav.png) no-repeat;
  background-size: 100% 100%;
}

.catering-tab.active {
  color: #fff8df;
  background: url(../images/ticket_nav_act.png) no-repeat;
}


.catering-grid {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.catering-item{
  width: 100%;
  border: 3px solid #b38c7d;
  padding: 0.05rem;
}
.catering-div {
  display: flex;
  align-items: flex-start;
  border: 1px solid #b38c7d;
  padding: 0.3rem .25rem;
  background: #fffdeb;
}

.catering-img {
  width: 1.7rem;
  height: 1.7rem;
  overflow: hidden;
  flex-shrink: 0;
}

.catering-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catering-info {
  margin-left: 0.4rem;
  min-height: 1.5rem;
}

.catering-info h3 {
  font-size: 0.26rem;
  color: #292929;
  margin-bottom: 0.1rem;
  font-weight: normal;
}

.catering-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem;
  margin-bottom: 0.1rem;
}

.catering-tag {
  font-size: 0.16rem;
  color: #f87b44;
  background: #fbf0d9;
  padding: 0.04rem 0.2rem;
  border-radius: 0.1rem;
}

.catering-position {
  font-size: 0.16rem;
  color: #7f3b1d;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
}

.catering-category {
  font-size: 0.2rem;
  color: #999;
  margin-left: auto;
  align-self: flex-start;
}

.loading, .empty-tip {
  text-align: center;
  padding: 1rem;
  color: #999;
  font-size: 0.24rem;
}

/* 容器：对齐 all_right 内容区 */
.catering-inner-con {
  margin: 0 auto;
  width: 9.4rem;
  font-size: 0.18rem;
  font-family: "SourceHanSansCNRegular";
}
