*,
*::before,
*::after {
  box-sizing: border-box;
}

input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

html {
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
}

a {
  color: #000;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.text-center {
  text-align: center;
}

.relative {
  position: relative;
}

.mb-10px {
  margin-bottom: 10px;
}

.\-mx-5px {
  margin-left: -5px;
  margin-right: -5px;
}

.px-5px {
  padding-left: 5px;
  padding-right: 5px;
}

.px-10px {
  padding-left: 10px;
  padding-right: 10px;
}

.px-4 {
  padding-left: 16px;
  padding-right: 16px;
}

.pt-10px {
  padding-top: 10px;
}

.py-10px {
  padding-top: 10px;
  padding-bottom: 10px;
}

.pl-4px {
  padding-left: 4px;
}

.rounded-6px {
  border-radius: 6px;
}

.rounded-9px {
  border-radius: 9px;
}

.overflow-hidden {
  overflow: hidden;
}

.line-through {
  text-decoration-line: line-through;
}

.block {
  display: block;
}

.text-12px {
  font-size: 12px;
}

.text-14px {
  font-size: 14px;
}

.text-red {
  color: #ff7b4a;
}

.font-semibold {
  font-weight: 500;
}

.relative {
  position: relative;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.text-white {
  color: #fff;
}

.absolute {
  position: absolute;
}

.top-0 {
  top: 0;
}

.bottom-0 {
  bottom: 0;
}

.left-0 {
  left: 0;
}

.text-center {
  text-align: center;
}

.home-page {
  --safe-area-inset-top: env(safe-area-inset-top);
  --safe-area-inset-bottom: env(safe-area-inset-bottom);
  --swiper-pagination-color: #ff7b4a;
  height: 100%;
}

.home-page .page-hd {
  position: relative;
  z-index: 10;
  padding: 10px 10px 16px;
  background-color: #ff7b4a;
}

.home-page .hd-main {
  height: 34px;
  display: flex;
  align-items: center;
}

.hero-swiper-wrap {
  height: 37.33333333vw;
  background-color: #f6f6f6;
  border-radius: 9px;
  overflow: hidden;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transform: translateZ(0);
}

.hero-swiper-wrap .swiper {
  height: 100%;
}

.search-field {
  padding-left: 12px;
  position: relative;
}

.search-field input {
  width: 100%;
  height: 34px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  border: 0 none;
  outline: none;
  border-radius: 17px;
  font-size: 15px;
}

.search-field .btn-search {
  width: 64px;
  height: 34px;
  position: absolute;
  right: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0 none;
  outline: none;
}

.search-field .btn-search svg {
  width: 18px;
  height: 18px;
}

.home-page .page-bd {
  padding: 0 10px 20px;
  height: calc(100% - 114px - var(--safe-area-inset-top));
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  z-index: 1;
}

.home-page .page-ft {
  width: 100%;
  height: 50px;
  border-radius: 16px 16px 0 0;
  background-color: #fff;
  position: fixed;
  bottom: calc(64px + var(--safe-area-inset-bottom));
  left: 0;
  z-index: 20;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.15);
}

.home-page .main-top-bg {
  width: 100%;
  height: 26.13333333vw;
  background-color: #ff7b4a;
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 0;
}

.home-page .user-info .avatar {
  width: 38px;
  height: 38px;
  border-radius: 19px;
  overflow: hidden;
}

.home-page .user-info-wrap {
  padding: 10px 0;
}

.home-page .user-info-wrap .info-bd {
  background-color: #ffeeee;
  padding: 15px 10px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home-page .user-info {
  display: flex;
  align-items: center;
}

.home-page .user-info .avatar {
  margin-right: 8px;
}

.home-page .user-info .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-page .user-info .name {
  font-size: 15px;
  margin-bottom: 4px;
}

.home-page .user-info .address {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: #666;
  width: 148px;
}

.home-page .user-info .address .value {
  flex: 1 1 0%;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.home-page .user-info .address .btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 10px;
  color: #fff;
  font-size: 13px;
  background-color: #ff7b4a;
  border-radius: 50px;
}

.home-page .menu-swiper-wrap {
  background-color: #fff;
  position: sticky;
  top: 0;
  z-index: 99;
  margin: 0 -10px 10px;

  transform-style: preserve-3d;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.total-info .avatars {
  display: flex;
}

.total-info .avatars .avatar {
  width: 24px;
  height: 24px;
  overflow: hidden;
  border-radius: 12px;
  border: #ffe0e0 solid 1px;
}

.total-info .avatars .avatar-01 {
  position: relative;
  right: -6px;
  z-index: 1;
}

.total-info .avatars .avatar-02 {
  position: relative;
  z-index: 2;
}

.total-info .avatars .avatar-03 {
  position: relative;
  left: -6px;
  z-index: 3;
}

.total-info .avatars .avatar img {
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  object-fit: cover;
}

.total-info .label {
  font-size: 15px;
  margin-bottom: 4px;
}

.total-info .info {
  font-size: 13px;
}

.total-info .info .num {
  color: #ff7b4a;
}

.menu-swiper {
  padding-bottom: 16px;
}

.menu-swiper.swiper-horizontal>.swiper-scrollbar {
  bottom: 10px;
}

.menu-swiper .swiper-slide {
  width: auto !important;
}

.menu-swiper .swiper-scrollbar-drag {
  background-color: #ff7b4a;
}

.menu-swiper .menus {
  padding: 10px 0;
  white-space: nowrap;
}

.menu-swiper .menus a {
  color: #000;
  font-size: 13px;
  text-decoration: none;
  padding: 0 10px;
}

.menu-swiper .menus a img {
  display: inline-block;
  width: 50px;
  height: 50px;
  border-radius: 25px;
  margin-bottom: 4px;
  overflow: hidden;
  object-fit: cover;
}

.menu-swiper .swiper-scrollbar {
  width: 72px;
  left: 50%;
  margin-left: -48px;
}

.miaosha-section {
  min-height: 46.93333333vw;
  background: linear-gradient(180deg, rgba(250, 131, 97, 1) 0%, rgba(255, 0, 0, 1) 100%);
}

.miaosha-swiper {
  padding-bottom: 10px;
}

.miaosha-swiper .swiper-slide {
  width: auto !important;
}

.miaosha-swiper .swiper-scrollbar-drag {
  background-color: #ff7b4a;
}

.miaosha-swiper .miaosha-list {
  padding: 10px 0;
  white-space: nowrap;
}

.miaosha-swiper .miaosha-list a {
  display: block;
  color: #000;
  font-size: 13px;
  text-decoration: none;
  padding: 0 5px;
  margin: 0;
}

.miaosha-swiper .miaosha-list a span {
  display: block;
}

.miaosha-swiper .miaosha-list a img {
  display: inline-block;
  width: 80px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  object-fit: cover;
}

.miaosha-swiper .miaosha-list .time {
  height: 20px;
  text-align: center;
  color: #fff;
  background-color: rgba(255, 0, 0, 0.5);
}

.miaosha-swiper .miaosha-list .price {
  margin-bottom: 5px;
}

.miaosha-swiper .miaosha-list .btn-add-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 10px);
  margin: 0 auto;
  height: 24px;
  border-radius: 24px;
  background-color: #fff;
  font-size: 13px;
  color: #ff7b4a;
}

.home-products-list .tag {
  display: inline-block;
  width: 74px;
  height: 22px;
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: cover;
  position: absolute;
  top: 0;
  left: 24px;
}

.home-products-list .list-item {
  margin-bottom: 10px;
}

.home-products-list .tag-chj {
  background-image: url('../imgs/tags/tag_chj.png');
}

.home-products-list .tag-djxg {
  background-image: url('../imgs/tags/tag_djxg.png');
}

.home-products-list .video-icon {
  width: 50px;
  height: 50px;
  background: url('../imgs/ic_play.png') no-repeat 0 0;
  background-size: 50px 50px;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-left: -25px;
  margin-top: -25px;
}

.home-products-list .list-item {
  margin-bottom: 15px;
}

.home-products-list .desc {
  color: #999999;
}

.home-products-list .price {
  color: #ff7b4a;
  font-size: 22px;
  font-weight: 500;
  margin-right: 5px;
}

.home-products-list .btn-add-cart {
  color: #fff;
  background-color: #ff7b4a;
  border-radius: 50px;
  padding: 6px 15px;
  font-size: 13px;
  margin-left: 8px;
}

.home-products-list .info-bd {
  padding-bottom: 10px;
  border-bottom: 1px solid #d8d8d8;
}

.home-products-list .info-ft {
  padding-top: 10px;
}

.home-products-list .avatars {
  display: flex;
}

.home-products-list .avatars .avatar {
  width: 24px;
  height: 24px;
  overflow: hidden;
  border-radius: 12px;
  border: #ffe0e0 solid 1px;
}

.home-products-list .avatars .avatar-01 {
  position: relative;
  right: -6px;
  z-index: 1;
}

.home-products-list .avatars .avatar-02 {
  position: relative;
  z-index: 2;
}

.home-products-list .avatars .avatar-03 {
  position: relative;
  left: -6px;
  z-index: 3;
}

.home-page .cart-info .total-info .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 16px;
  color: #fff;
  background-color: #ff7b4a;
  font-size: 13px;
  position: absolute;
  top: -8px;
  right: -16px;
}

.home-products-list .avatars .avatar img {
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  object-fit: cover;
}

.home-page .cart-info .total-price {
  color: #ff7b4a;
  margin-left: 16px;
  font-size: 19px;
  font-weight: 500;
}

.home-page .cart-info .btn-open-cart {
  color: #fff;
  background-color: #ff7b4a;
  font-size: 15px;
  border-radius: 50px;
  padding: 6px 15px;
}

.global-tabbar {
  background: #fff;
  width: 100%;
  height: calc(50px + var(--safe-area-inset-bottom));
  position: fixed;
  bottom: 0;
  z-index: 99;
  display: flex;
  justify-content: space-between;
  padding: 0 15px;
}

.global-tabbar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 0;
  border: 1px solid #F5F5F5;
  transform-origin: 0 0;
  transform: scale(0.5);
}

.global-tabbar .tabbar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 6px;
}

.global-tabbar .tabbar-item svg {
  height: 22px;
}

.global-tabbar .tabbar-item svg path {
  fill: #999;
}

.global-tabbar .tabbar-item.active svg path {
  fill: #ff7b4a;
}

.global-tabbar .tabbar-item .name {
  display: block;
  text-align: center;
  font-size: 14px;
}

.global-tabbar .tabbar-item.active .name {
  color: #ff7b4a;
}