body,
html {
  background-color: rgba(255, 244, 230, 0.6);
}

.red-envelope-top {
  position: relative;
}

.top-background {
  position: relative;
}

.top-background img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.top-background .history-img {
  width: 69px;
  height: auto;
  position: absolute;
  right: 6px;
  top: 246px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  font-size: 12px;
}

.history-img img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.history-img span {
  border: 1px solid #f35428;
  padding: 2px 4px;
  border-radius: 2px;
  color: #f35428;
  margin-top: -10px;
  transform: rotate(4deg) scale(0.8);
}

.red-envelope-btns {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.left-btn {
  width: 26%;
  height: 60px;
  filter: drop-shadow(0 2px 10px rgba(109, 46, 12, 0.2));
  box-sizing: border-box;
}

.left-btn button {
  border-radius: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  border-radius: 0 30px 30px 0;
  border: 2px solid #f38980;
  border-left: 0;
  background: linear-gradient(
    to bottom,
    rgb(252, 234, 224),
    rgb(254, 249, 245)
  );
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #f35428;
  line-height: unset;
}

.center-btn {
  width: 40%;
  height: 60px;
  filter: drop-shadow(0 2px 10px rgba(109, 46, 12, 0.2));
  border-radius: 30px;
  background: linear-gradient(to right, rgb(249, 198, 117), rgb(250, 120, 180));
  background-size: cover;
  box-sizing: border-box;
  position: relative;
}

/* .center-btn::before {
  content: "";
  display: inline-block;
  height: 20px;
  position: absolute;
  bottom: -5px;
  left: 30px;
  right: 30px;
  z-index: -1;
  border-radius: 30px;
  filter: blur(20px) brightness(0.95);
  transform-style: preserve-3d;
  transition: all 0.3s ease-out;
  background: linear-gradient(
    to right,
    rgb(249, 198, 117) 0,
    rgb(249, 198, 117) 80%,
    rgb(250, 120, 180) 100%
  );
} */

.center-btn button {
  border-radius: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  border-radius: 30px;
  border: 2px solid #f38980;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  line-height: unset;
}

.start-btns {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 2px;
  font-style: italic;
}

.right-btn {
  width: 26%;
  height: 60px;
  filter: drop-shadow(0 2px 10px rgba(109, 46, 12, 0.2));
  box-sizing: border-box;
}

.right-btn button {
  border-radius: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  border-radius: 30px 0 0 30px;
  border: 2px solid #f38980;
  border-right: 0;
  background: linear-gradient(
    to bottom,
    rgb(252, 234, 224),
    rgb(254, 249, 245)
  );
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #f35428;
  line-height: unset;
}

.btns-top {
  font-size: 14px;
}

.btns-bottom {
  font-size: 12px;
}

/* 列表 */
.tabs-container {
  padding: 14px 20px;
}

.tabs-list {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  border-radius: 4px;
  height: 58px;
}

.tabs-item {
  width: 50%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tabs-item span {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
}

.tabs-item.active {
  color: #fff;
  background: url("../images/index/tabBackground.png") no-repeat;
  background-size: contain;
  background-position: center top;
}

.tabs-content-list .list-item {
  min-height: 200px;
}

.tabs-content-list .list-item:first-child {
  display: block;
}

/* 推荐产品 */
.recommend-list .recommend-item {
  padding: 10px;
  background-color: #fff;
  border-radius: 4px;
  margin-top: 14px;
  height: 100px;
}

.recommend-item a {
  display: flex;
  justify-content: space-between;
}

.recommend-list .recommend-item .recommend-cover {
  width: 100px;
  height: 100px;
  border-radius: 6px;
  overflow: hidden;
  margin-right: 10px;
}

.recommend-cover img {
  display: block;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.recommend-info {
  flex: 1;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
}

.recommend-info .recommend-title {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  width: 100%;
  /* height: 40px; */
  line-height: normal;
  word-break: break-all;
  text-overflow: ellipsis;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.recommend-price {
  width: 100%;
  height: 48px;
  border-radius: 4px;
  background-color: #fbe5e7;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-background {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  height: 100%;
  padding: 8px;
}

.price-background p {
  width: 100%;
  height: 50%;
  display: flex;
  color: #ee6934;
}

.current-price {
  display: flex;
  align-items: flex-end;
}

.price {
  font-size: 14px;
  font-weight: 600;
  margin-left: 2px;
}

.origin-price {
  text-decoration: line-through;
  padding-top: 4px;
}

.snap-up {
  background: url("../images/index/rightBackground.png") no-repeat;
  background-size: cover;
  width: 84px;
  height: 100%;
  font-size: 14px;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 抢红包记录 */
.record-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 8px;
}

.record-left {
  display: flex;
  align-items: center;
  width: 70%;
}

.user-avator {
  width: 38px;
  height: 38px;
  border-radius: 100%;
  overflow: hidden;
  margin-right: 4px;
}

.user-avator img {
  display: block;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.user-info {
  width: calc(100% - 38px - 4px);
}

.user-info .save-time {
  font-size: 10px;
  color: #999;
  margin-top: 4px;
}

.user-info .user-name {
  width: 100%;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.record-right {
  color: red;
  font-size: 10px;
}

.record-right .amount {
  font-size: 15px;
  font-weight: 600;
}

/* 分享 */
.share-image-wrap {
  margin: 0 auto;
  width: 70%;
  position: relative;
}

.share-image {
  width: 100%;
}

.share-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.qr-wrap {
  position: absolute;
  left: 14px;
  bottom: 17px;
  height: 70px;
  width: calc(100% - 28px);
  /* background-color: pink; */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px;
  box-sizing: border-box;
}

.share-qr {
  width: 58px;
  aspect-ratio: 1/1;
  background-color: #f6f6f6;
  flex-shrink: 1;
}

.share-qr img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.qr-side-text {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: #fff;
}

.qr-side-text span:first-child {
  font-weight: 600;
}

.tips-text {
  text-align: center;
  color: #999;
  margin-top: 10px;
}

.bottom-btns {
  margin: 14px 0;
  text-align: center;
}

.bottom-btns button {
  border-radius: 30px;
  background: linear-gradient(to bottom, #f86490, #f53838);
  width: 80%;
  color: #fff;
  font-size: 14px;
  height: auto;
  padding: 12px 0;
}

/* 红包额度 */
.amount-dialog-content {
  background-color: transparent !important;
  padding: 0;
}

.amount-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.weui-icon-cancel {
  color: #fff;
}

.amount-image-wrap {
  position: relative;
}

.amount-container {
  position: absolute;
  top: 44%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
}

.amount-card {
  width: 82%;
}

.amount-card-head {
  padding: 4px;
  background-color: #ec4c3d;
  border: 4px solid #dc2819;
  border-radius: 30px;
}

.amount-card-content-wrap {
  margin-top: -8px;
  padding: 0 14px;
  display: flex;
  justify-content: center;
}

.amount-card-content {
  width: 280px;
  height: 156px;
  background: radial-gradient(
        circle at right bottom,
        transparent 8px,
        #fffae4 0
      )
      top right / 51% 40px no-repeat,
    radial-gradient(circle at left bottom, transparent 8px, #fffae4 0) top left /
      51% 40px no-repeat,
    radial-gradient(circle at right top, transparent 8px, #fff5c6 0) bottom
      right / 51% 116px no-repeat,
    radial-gradient(circle at left top, transparent 8px, #fff5c6 0) bottom left /
      51% 116px no-repeat;
  filter: drop-shadow(2px 2px 12px rgba(0, 0, 0, 0.2));
  box-sizing: border-box;
  position: relative;
}

.amount-card-content::after {
  content: "";
  width: calc(100% - 24px);
  border: 1px dashed red;
  position: absolute;
  left: 0;
  right: 0;
  top: 40px;
  margin: auto;
}

.amount-card-title {
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 15px;
  color: #dc2819;
}

.amount-card-price {
  height: 116px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.amount-price-wrap {
  color: #dc2819;
  font-size: 14px;
  font-weight: 600;
}

.price-span {
  font-size: 30px;
  margin: 0 2px;
}

.amount-btns {
  text-align: center;
  margin-top: 30px;
}

.amount-btns button {
  width: 46%;
  font-size: 14px;
  color: #dc2819;
  padding: 10px 20px;
  border-radius: 4px;
  height: auto;
  background: linear-gradient(to bottom, #f5eab9, #ebd577);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.amount-btns button a {
  color: #dc2819;
  display: block;
}

/* 开始抢红包 */
.envelope-image-wrap {
  position: relative;
  padding: 0 14px;
}

.envelope-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.envelope-card-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30% 18% 0;
}

.envelope-result-wrap {
  font-size: 16px;
  text-align: center;
  color: #dc2819;
  padding: 0 14px;
}

.envelope-btns {
  width: 100%;
  position: absolute;
  bottom: 60px;
  left: 0;
  right: 0;
  text-align: center;
}

.envelope-btns button {
  color: #dc2819;
  height: auto;
  border-radius: 60px;
  padding: 8px 50px;
  background-color: #ffc443;
  border: 4px solid #ffe884;
}
