body {
  margin: 0;
  background-color: #f8f8f8;
  font-size: 0.875rem;
  overflow-x: hidden;
}

html,
body {
  min-height: 100%;
}

#app,
uni-app {
  width: 100%;
  min-height: 100vh;
}

@media screen and (min-width: 768px) {
  #app,
  uni-app {
    max-width: 520px;
    margin: 0 auto;
  }
}

uni-page-body {
  width: 100%;
}

/* Center legacy single-root pages that still pin their own mobile widths. */
uni-page-body > * {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* #ifdef H5 */
/* Keep leaked legacy `.content` rules from shifting whole page wrappers on H5. */
uni-page-body > .content,
uni-page-body > uni-form.content,
uni-page-body > .main,
uni-page-body > .conbox,
uni-page-body > .rewardprize-page,
uni-page-body > .page,
uni-page-body > .page-container {
  width: 100% !important;
  max-width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
  left: auto !important;
  right: auto !important;
  box-sizing: border-box;
}

uni-page-body > .content,
uni-page-body > uni-form.content,
uni-page-body > .main,
uni-page-body > .conbox,
uni-page-body > .rewardprize-page {
  min-height: 100%;
}
/* #endif */

uni-view {
  box-sizing: border-box;
}

/* #ifdef MP-ALIPAY */
uni-image {
  background-size: 100% 100%;
}

uni-button {
  height: auto;
  border: none;
  line-height: 2.55555556;
  padding: 0 0.875rem;
}

uni-input {
  background: none;
  padding: 0;
}

shared-checkbox {
  border-radius: 50%;
}

shared-checkbox {
  border-radius: 50%;
  height: 1.125rem;
  width: 1.125rem;
  margin-top: -0.125rem;
  border: 0.03125rem solid #d1d1d1;
  color: #0A9772;
}

shared-checkbox:checked {
  background-color: #000;
  color: #000;
}

._radio {
  border-radius: 50%;
  /* 圆角 */
  width: 1.125rem;
  height: 1.125rem;
  margin-top: -0.125rem;
  border: 0.03125rem solid #d1d1d1;
}

/* 选中后的 背景样式 （红色背景 无边框 可根据UI需求自己修改） */
._radio:checked {
  border: 0.03125rem solid #4893f4;
  background: #4893f4;
}

/* 选中后的 对勾样式 （白色对勾 可根据UI需求自己修改） */
._radio:checked::before {
  border-radius: 50%;
  /* 圆角 */
  width: 1.125rem;
  /* 选中后对勾大小，不要超过背景的尺寸 */
  height: 1.125rem;
  /* 选中后对勾大小，不要超过背景的尺寸 */
  line-height: 1.125rem;
  text-align: center;
  font-size: 0.875rem;
  /* 对勾大小 30rpx */
  color: #fff;
  /* 对勾颜色 白色 */
  background: transparent;
  transform: translate(-50%, -50%) scale(1);
  -webkit-transform: translate(-50%, -50%) scale(1);
}

/* #endif */
uni-toast .uni-toast {
  font-size: 0.75rem;
  border-radius: 10px;
  background: rgba(17, 17, 17, 0.5);
}

.content-top {
  margin-bottom: 3.625rem;
}

.have-none {
  background-color: #f3f3f3;
}

.color-o {
  color: #0A9772 !important;
}

.color-f {
  color: #fff !important;
}

.color-d {
  color: #ddd !important;
}

.color-3 {
  color: #333 !important;
}

.color-6 {
  color: #666 !important;
}

.color-9 {
  color: #999 !important;
}

.fsz24 {
  font-size: 0.75rem !important;
}

.fsz26 {
  font-size: 0.8125rem !important;
}

.fsz28 {
  font-size: 0.875rem !important;
}

.fsz30 {
  font-size: 0.9375rem !important;
}

.fsz32 {
  font-size: 1rem !important;
}

.fsz34 {
  font-size: 1.0625rem !important;
}

.fsz36 {
  font-size: 1.125rem !important;
}

.fsz38 {
  font-size: 1.1875rem !important;
}

.fsz50 {
  font-size: 1.5625rem !important;
}

.search {
  width: 100%;
  height: 3.25rem;
  padding: 0.5rem 0.8125rem;
  background-color: rgba(255, 255, 255, 1);
  z-index: 999;
  transition: all 0.5s;
}

.search-c {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 1.5625rem;
  background-color: #e9e9e9;
  padding: 0 0.625rem;
}

.search-input {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  line-height: 1.625rem;
  padding: 0.3125rem;
  font-size: 0.75rem;
  transition: all 0.5s;
}

.search-input-p {
  color: #999;
  width: 100%;
  height: 100%;
}

.search-input-p-c {
  position: relative;
  top: 50%;
  transform: translateY(-50%);
}

.search-icon {
  z-index: 99;
}

.swiper-c {
  height: 100%;
}

.swiper-c uni-image {
  height: 100%;
  width: 100%;
}

.btn {
  display: inline-block;
  box-sizing: border-box;
  border-radius: 0;
  font-size: 0.875rem;
  transform: scale(1);
  transition: all 0.5s;
}

/*按钮按下缩小变色*/
.btn-hover {
  transform: scale(0.9);
  transition: all 0.5s;
  opacity: 0.8;
}

/*按钮按下只变色*/
.btn-hover2 {
  /* 	transform: scale(.95); */
  transition: all 0.1s;
  opacity: 0.6;
}

.btn::after {
  border: none;
}

.btn-circle {
  padding: 0 0.625rem;
  height: 1.875rem;
  line-height: 1.875rem;
  min-width: 4.375rem;
  font-size: 0.6875rem;
}

.btn-square {
  padding: 0 1.25rem;
  height: 2.8125rem;
  line-height: 2.8125rem;
  min-width: 4.6875rem;
  border: none !important;
}

.btn-fillet {
  border-radius: 1.5625rem;
}

.btn-c {
  background-color: #f7f7f7;
}

.btn-w {
  border: 0.0625rem solid #333;
  color: #333;
  background-color: #fff;
}

.btn-g {
  border: 0.0625rem solid #e0e0e0;
  color: #999;
  background-color: #fff;
}

.btn-b {
  border: 0.0625rem solid #333;
  background-color: #333;
  color: #fff;
}

.btn-o {
  border: 0.0625rem solid #0A9772;
  background-color: #0A9772;
  color: #fff;
}

.btn-half {
  width: 50%;
}

.btn-all {
  width: 100%;
}

/* Transitions presets */
.fade-enter-active,
.fade-leave-active {
  transition: opacity var(--motion-duration, 300ms) cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-enter,
.fade-leave-to {
  opacity: 0;
}

.fade-scale-enter-active,
.fade-scale-leave-active {
  transition: opacity var(--motion-duration, 300ms) cubic-bezier(0.4, 0, 0.2, 1), transform var(--motion-duration, 300ms) cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-scale-enter,
.fade-scale-leave-to {
  opacity: 0;
  transform: scale(0.98);
}

.slide-up-enter-active,
.slide-up-leave-active {
  transition: transform var(--motion-duration, 300ms) cubic-bezier(0.4, 0, 0.2, 1), opacity var(--motion-duration, 300ms) cubic-bezier(0.4, 0, 0.2, 1);
}
.slide-up-enter,
.slide-up-leave-to {
  opacity: 0;
  transform: translate3d(0, 8px, 0);
}

.slide-down-enter-active,
.slide-down-leave-active {
  transition: transform var(--motion-duration, 300ms) cubic-bezier(0.4, 0, 0.2, 1), opacity var(--motion-duration, 300ms) cubic-bezier(0.4, 0, 0.2, 1);
}
.slide-down-enter,
.slide-down-leave-to {
  opacity: 0;
  transform: translate3d(0, -8px, 0);
}

.slide-left-enter-active,
.slide-left-leave-active {
  transition: transform var(--motion-duration, 300ms) cubic-bezier(0.4, 0, 0.2, 1), opacity var(--motion-duration, 300ms) cubic-bezier(0.4, 0, 0.2, 1);
}
.slide-left-enter,
.slide-left-leave-to {
  opacity: 0;
  transform: translate3d(-8px, 0, 0);
}

.slide-right-enter-active,
.slide-right-leave-active {
  transition: transform var(--motion-duration, 300ms) cubic-bezier(0.4, 0, 0.2, 1), opacity var(--motion-duration, 300ms) cubic-bezier(0.4, 0, 0.2, 1);
}
.slide-right-enter,
.slide-right-leave-to {
  opacity: 0;
  transform: translate3d(8px, 0, 0);
}

/* Uni Load More brand tune */
.uni-load-more__text {
  color: #28b8a1;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fade-enter-active,
  .fade-leave-active,
  .fade-scale-enter-active,
  .fade-scale-leave-active,
  .slide-up-enter-active,
  .slide-up-leave-active,
  .slide-down-enter-active,
  .slide-down-leave-active,
  .slide-left-enter-active,
  .slide-left-leave-active,
  .slide-right-enter-active,
  .slide-right-leave-active {
    transition-duration: 1ms;
  }
}

.img-grids {
  overflow: hidden;
}

.img-grids-item {
  width: 10.5rem;
  height: 14.875rem;
  margin: 0.8125rem;
  display: inline-block;
  background-color: #fff;
  float: left;
  min-height: 4.0625rem;
  /* #ifdef MP-ALIPAY */
  width: 10.3125rem;
  margin: 0.78125rem;
  min-height: 4.0625rem;
  /* #endif */
}

.swiper-list .img-grids-item {
  height: 10.9375rem !important;
}

.img-grids-item:nth-child(2n-1) {
  margin-right: 0;
}

.img-grids-item-t {
  width: 10.5rem;
  height: 10.5rem;
  /* #ifdef MP-ALIPAY */
  width: 10.3125rem;
  height: 10.3125rem;
  /* #endif */
}

.img-grids-item-b {
  padding: 0 0.3125rem 0.3125rem;
}

.goods-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-overflow: ellipsis;
  word-wrap: break-word;
  overflow: hidden;
  color: #333;
  width: 100%;
  /* #ifdef MP-ALIPAY */
  min-height: 20px;
  /* #endif */
}

.grids-goods-name {
  font-size: 0.8125rem;
}

.goods-item-c {
  overflow: hidden;
  margin-top: 0.3125rem;
}

.goods-price {
  min-width: 3.75rem;
  min-height: 1.25rem;
  color: #333;
  font-size: 0.875rem;
  display: inline-block;
  float: left;
}

.red-price {
  color: #0A9772 !important;
}

.main-price {
  color: #00966a !important;
}

.img-list-item {
  padding: 0.9375rem 0.8125rem;
  background-color: #fff;
  margin-bottom: 0.0625rem;
  overflow: hidden;
}

.img-list-item-l {
  width: 7.8125rem;
  height: 7.8125rem;
  display: inline-block;
  float: left;
}

.img-list-item-r {
  width: 12.8125rem;
  min-height: 7.8125rem;
  display: inline-block;
  margin-left: 0.8125rem;
  float: left;
  padding: 0.3125rem 0;
  position: relative;
}

.list-goods-name {
  font-size: 0.875rem;
}

.img-list-item .goods-item-c {
  width: 100%;
  margin-top: 0;
}

.img-list-item .goods-price {
  min-width: 4.6875rem;
  min-height: 1.5625rem;
  font-size: 1.1875rem;
  float: none;
}

.goods-buy {
  overflow: hidden;
}

.goods-salesvolume {
  min-width: 3.125rem;
  height: 0.9375rem;
  font-size: 0.625rem;
  color: #999;
  display: inline-block;
}

.goods-cart {
  width: 1.25rem;
  height: 1.25rem;
  float: right;
}

.medium-img {
  width: 6.125rem;
  height: 6.125rem;
}

.little-img {
  width: 4.375rem;
  height: 4.375rem;
}

.small-img {
  width: 3.75rem;
  height: 3.75rem;
}

.medium-right {
  width: 10.625rem;
  min-height: 4.375rem;
}

.little-right {
  width: 16.25rem;
  min-height: 4.375rem;
  padding: 0;
}

.small-right {
  width: 16.875rem;
  height: 3.75rem;
  padding: 0;
  min-height: 1.875rem;
}

.little-right-t {
  overflow: hidden;
}

.little-right .list-goods-name {
  float: left;
  width: 11.25rem;
  margin-bottom: 0.1875rem;
}

.small-right .list-goods-name {
  width: 100%;
}

.little-right .goods-price {
  float: right;
  font-size: 0.875rem;
  text-align: right;
  min-width: 3.75rem;
  max-width: 4.6875rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  min-height: 1.25rem;
}

.goods-num {
  float: right;
  color: #999;
  font-size: 0.75rem;
  height: 0.9375rem;
  min-width: 1.5625rem;
}

.goods-numbox {
  float: right;
}

.little-right .goods-salesvolume {
  font-size: 0.75rem;
}

.cell-group {
  background-color: #fff;
}

.cell-item {
  padding: 0.625rem 0.8125rem 0.625rem 0;
  width: 22.625rem;
  margin-left: 0.8125rem;
  border-bottom: 0.0625rem solid #f3f3f3;
  position: relative;
  background-color: #fff;
  color: #333;
  display: flex;
  min-height: 2.8125rem;
  align-items: center;
  justify-content: space-between;
}

/* #ifdef H5 */
.cell-item {
  width: auto;
  margin-left: 0.8125rem;
  margin-right: 0.8125rem;
}
/* #endif */

.cell-item-mid {
  justify-content: flex-start;
}

.cell-item:last-child {
  border: none;
}

.cell-item-hd {
  display: flex;
  /* vertical-align: middle; */
  align-items: center;
  font-size: 0.875rem;
  position: relative;
}

.cell-item-bd-block {
  display: block !important;
}

.cell-hd-icon {
  width: 1.25rem;
  height: 1.25rem;
  display: inline-block;
  /* float: left; */
  margin-right: 0.25rem;
}

.cell-hd-title {
  /* float: left; */
  display: inline-block;
  position: relative;
  /* #ifdef MP-ALIPAY */
  top: 0.125rem;
  /* #endif */
}

.cell-item-bd {
  display: flex;
  margin-left: 0.625rem;
  min-height: 0.9375rem;
  overflow: hidden;
  align-items: center;
  padding-right: 1.5625rem;
}

.cell-bd-view {
  position: relative;
  /* overflow: hidden; */
  display: flex;
}

.cell-bd-text {
  /* float: left; */
  position: relative;
  font-size: 0.75rem;
}

.cell-bd-text-right {
  float: right;
}

.cell-bd-input {
  display: inline-block;
  float: right;
  font-size: 0.8125rem;
}

.cell-item-ft {
  display: flex;
  align-items: center;
}

.right-img .cell-item-ft {
  right: 0.25rem;
  height: 1.5625rem;
  position: absolute;
}

.cell-ft-view {
  position: relative;
  overflow: hidden;
  color: #666;
  font-size: 0.875rem;
  text-align: right;
}

.cell-ft-p {
  font-size: 0.75rem;
  color: #666;
}

.cell-ft-text {
  font-size: 0.875rem;
  float: right;
  position: relative;
  line-height: 1.5625rem;
}

.cell-ft-next {
  float: right;
}

.margin-cell-group {
  margin: 0.625rem 0;
}

.bottom-cell-group {
  margin-bottom: 0.625rem;
}

.min-cell-group {
  margin-bottom: 1px;
  padding: 0.625rem 0;
}

.min-cell-group .cell-item {
  border-bottom: none;
  min-height: 1.5625rem;
  padding: 0 0.8125rem 0 0;
}

.icon {
  width: 1.5625rem;
  height: 1.5625rem;
  /* #ifdef MP-ALIPAY */
  background-size: 100% 100%;
  /* #endif */
}

.swiper-grids .swiper-list {
  white-space: nowrap;
  width: 100%;
  min-height: 6.25rem;
}

.swiper-grids .img-grids-item {
  float: none;
  margin-right: 0;
  width: 7.96875rem;
  margin-top: 0;
}

.swiper-grids .img-grids-item:last-child {
  margin-right: 0.8125rem;
}

.swiper-grids .img-grids-item-t {
  width: 7.96875rem;
  height: 7.96875rem;
}

.swiper-grids .goods-name {
  white-space: normal;
}

.member-grid {
  padding: 0.625rem 0.8125rem;
  width: 100%;
  display: flex;
}

.member-item {
  flex: 1;
  text-align: center;
  position: relative;
}

/*会员中心图标按下事件*/
.member-item:active {
  transform: scale(0.9);
  transition: all 0.5s;
  opacity: 0.8;
}

.member-item-icon {
  width: 1.5625rem;
  height: 1.5625rem;
  display: block;
  margin: 0 auto;
}

.member-item-text {
  font-size: 0.75rem;
  color: #666;
  display: block;
}

.cart-checkbox {
  position: relative;
  height: 100%;
}

.cart-checkbox-c {
  display: inline-block;
  position: absolute;
  top: 50%;
  left: 0.8125rem;
  transform: translateY(-50%);
  z-index: 99;
}

.cart-list .img-list-item {
  padding-left: 2.8125rem;
}

.cart-list .little-right {
  width: 14.625rem;
}

.cart-list .little-right .list-goods-name {
  width: 9.375rem;
}

.uni-checkbox-input {
  border-radius: 50% !important;
  color: #fff !important;
}

uni-radio .uni-radio-input,
uni-checkbox .uni-checkbox-input {
  width: 1.125rem;
  height: 1.125rem;
}

uni-checkbox .uni-checkbox-input.uni-checkbox-input-checked,
.uni-radio-input.uni-radio-input-checked {
  background-color: #4893f4 !important;
  border-color: #4893f4 !important;
  width: 1.125rem;
  height: 1.125rem;
}

uni-checkbox.checkboxNo .uni-checkbox-input {
  background-color: #e1e1e1 !important;
  border-color: #e1e1e1 !important;
}

uni-radio.radioNo .uni-radio-input {
  background-color: #e1e1e1 !important;
  border-color: #e1e1e1 !important;
}

uni-checkbox .uni-checkbox-input.uni-checkbox-input-checked:before {
  font-size: 1.125rem;
}

.login-item-i-p {
  color: #999;
}

.two-line {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.badge {
  display: inline-block;
  position: absolute;
  min-width: 13px;
  height: 13px;
  line-height: 13px;
  background-color: #0A9772;
  color: #fff;
  font-size: 12px;
  border-radius: 1.5625rem;
  padding: 0 3px;
  z-index: 99;
}

.button-bottom {
  background-color: #fff;
  position: fixed;
  bottom: 0;
  height: 2.8125rem;
  width: 100%;
  display: flex;
  z-index: 66;
  box-shadow: 0 0 10px #ccc;
}

/* #ifdef H5 */
.button-bottom {
  left: 50%;
  right: auto;
  max-width: 520px;
  transform: translateX(-50%);
}
/* #endif */

.button-bottom .btn {
  flex: 1;
}

.romotion-tip {
  overflow: hidden;
}

.romotion-tip-item {
  display: inline-block;
  float: left;
  margin-right: 0.3125rem;
  margin-bottom: 0.125rem;
  background-color: #0A9772;
  color: #fff;
  height: 1.0625rem;
  font-size: 0.75rem;
  line-height: 1.0625rem;
  padding: 0 0.3125rem;
}

.bg-gray {
  background-color: #d0d0d0;
}

/*  #ifdef MP */
uni-checkbox .wx-checkbox-input {
  border-radius: 50%;
  height: 1.125rem;
  width: 1.125rem;
  margin-top: -0.125rem;
  border: 0.03125rem solid #d1d1d1;
}

uni-checkbox .wx-checkbox-input.wx-checkbox-input-checked::before {
  width: 1.125rem;
  height: 1.125rem;
  line-height: 1.125rem;
  border-radius: 50%;
  text-align: center;
  font-size: 0.875rem;
  color: #fff;
  background: transparent;
  transform: translate(-50%, -50%) scale(1);
  -webkit-transform: translate(-50%, -50%) scale(1);
  background-color: #0A9772;
  border: 0.03125rem solid #0A9772;
}

uni-radio .wx-radio-input {
  border-radius: 50%;
  /* 圆角 */
  width: 1.125rem;
  height: 1.125rem;
  margin-top: -0.125rem;
  border: 0.03125rem solid #d1d1d1;
}

/* 选中后的 背景样式 （红色背景 无边框 可根据UI需求自己修改） */
uni-radio .wx-radio-input.wx-radio-input-checked {
  border: 0.03125rem solid #4893f4;
  background: #4893f4;
}

/* 选中后的 对勾样式 （白色对勾 可根据UI需求自己修改） */
uni-radio .wx-radio-input.wx-radio-input-checked::before {
  border-radius: 50%;
  /* 圆角 */
  width: 1.125rem;
  /* 选中后对勾大小，不要超过背景的尺寸 */
  height: 1.125rem;
  /* 选中后对勾大小，不要超过背景的尺寸 */
  line-height: 1.125rem;
  text-align: center;
  font-size: 0.875rem;
  /* 对勾大小 30rpx */
  color: #fff;
  /* 对勾颜色 白色 */
  background: transparent;
  transform: translate(-50%, -50%) scale(1);
  -webkit-transform: translate(-50%, -50%) scale(1);
}

/*  #endif  */
.goods-bottom {
  z-index: 97;
}

.btn-small {
  padding: 0 0.3125rem;
  height: 1.125rem;
  line-height: 1rem;
  font-size: 0.75rem;
  margin: 0 0.3125rem;
}

.gift {
  font-size: 0.75rem;
  color: #0A9772;
}

.clearfix:after {
  /*伪元素是行内元素 正常浏览器清除浮动方法*/
  content: '';
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}

.clearfix {
  /* *zoom: 1; */
  /*ie6清除浮动的方式 *号只有IE6-IE7执行，其他浏览器不执行*/
}

.one-line {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.main-color {
  color: #00966a !important;
}
