.goods-page {
  min-height: 100vh;
  padding-bottom: calc(1.4rem + env(safe-area-inset-bottom));
  background: #f2f3f8;
}

.goods-scroll {
  min-height: calc(100vh - 1.4rem - env(safe-area-inset-bottom));
  padding: 0.3rem 0.2rem 2.4rem;
}

.goods-card,
.goods-detail-card,
.goods-remark-card {
  width: 7.1rem;
  margin: 0 auto;
  border-radius: 0.16rem;
  background: #ffffff;
}

.goods-card {
  padding: 0.34rem 0.2rem 0.24rem;
}

.goods-card-head,
.goods-title-group,
.goods-forbidden-link,
.goods-number-row,
.goods-volume-row,
.goods-volume-main,
.goods-billing-row,
.goods-billing-link,
.stepper,
.number-box,
.goods-footer {
  display: flex;
  align-items: center;
}

.goods-card-head {
  justify-content: space-between;
  padding: 0 0.2rem;
}

.goods-title {
  color: #000000;
  font-size: 0.4rem;
  font-weight: 500;
  line-height: 0.52rem;
}

.goods-required-tag {
  display: flex;
  width: 0.72rem;
  height: 0.3rem;
  align-items: center;
  justify-content: center;
  margin-left: 0.2rem;
  border: 0.01rem solid #ff3b30;
  border-radius: 0.15rem;
  color: #ff3b30;
  font-size: 0.2rem;
}

.goods-forbidden-link {
  color: #898888;
  font-size: 0.28rem;
}

.goods-info-icon,
.goods-question-icon {
  display: flex;
  width: 0.3rem;
  height: 0.3rem;
  align-items: center;
  justify-content: center;
  margin-left: 0.14rem;
  border-radius: 50%;
  background: #a7a7a7;
  color: #ffffff;
  font-size: 0.22rem;
  font-weight: 600;
}

.goods-safe-tip {
  display: block;
  margin: 0.26rem 0.1rem 0.3rem;
  color: #898888;
  font-size: 0.28rem;
  line-height: 0.4rem;
}

.goods-name-input {
  display: block;
  width: 6.5rem;
  height: 1rem;
  margin: 0 auto;
  padding: 0 0.5rem;
  border: 0;
  border-radius: 0.1rem;
  outline: 0;
  background: #f1f4ff;
  color: #000000;
  font-size: 0.32rem;
}

.goods-name-input::placeholder,
.dimension-input::placeholder,
.goods-remark-input::placeholder {
  color: #898888;
}

.hot-title {
  display: block;
  margin: 0.38rem 0 0.24rem;
  color: #333333;
  font-size: 0.3rem;
  font-weight: 500;
  line-height: 0.42rem;
}

.hot-grid {
  display: grid;
  grid-template-columns: repeat(3, 2.04rem);
  gap: 0.22rem 0.24rem;
}

.hot-item {
  display: flex;
  width: 2.04rem;
  height: 0.66rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.33rem;
  background: #f1f2f4;
  color: #333333;
  font-size: 0.28rem;
  line-height: 0.36rem;
}

.hot-item.active {
  background: #e4f1ff;
  color: #267dff;
}

.goods-detail-card {
  margin-top: 0.24rem;
  padding: 0.24rem 0.2rem 0.34rem;
}

.goods-number-row,
.goods-volume-row,
.goods-billing-row {
  justify-content: space-between;
}

.goods-quantity-row {
  margin-top: 0.5rem;
}

.goods-number-label {
  color: #000000;
  font-size: 0.32rem;
  font-weight: 600;
}

.stepper {
  width: 3.04rem;
  height: 0.64rem;
  overflow: hidden;
  border-radius: 0.1rem;
  background: #f1f4ff;
}

.step-button {
  display: flex;
  width: 0.66rem;
  height: 0.64rem;
  align-items: center;
  justify-content: center;
  color: #555555;
  font-size: 0.3rem;
}

.number-box {
  flex: 1;
  height: 0.6rem;
  justify-content: center;
  margin: 0.02rem 0;
  background: #ffffff;
}

.number-input {
  width: 0.72rem;
  height: 0.6rem;
  border: 0;
  outline: 0;
  color: #000000;
  font-size: 0.28rem;
  font-weight: 500;
  text-align: center;
}

.unit {
  color: #000000;
  font-size: 0.28rem;
}

.goods-volume-row {
  margin-top: 0.44rem;
}

.volume-tip {
  margin-right: 0.14rem;
  color: #898888;
  font-size: 0.28rem;
}

.volume-switch {
  position: relative;
  width: 0.64rem;
  height: 0.32rem;
  border-radius: 0.16rem;
  background: #d7dce8;
}

.volume-switch::after {
  content: "";
  position: absolute;
  top: 0.04rem;
  left: 0.04rem;
  width: 0.24rem;
  height: 0.24rem;
  border-radius: 50%;
  background: #ffffff;
}

.volume-switch.active {
  background: #409eff;
}

.volume-switch.active::after {
  left: 0.36rem;
}

.dimension-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.36rem;
}

.dimension-field {
  display: flex;
  width: 2.5rem;
  height: 0.68rem;
  align-items: center;
  justify-content: center;
  padding: 0 0.28rem;
  border-radius: 0.34rem;
  background: #f7f7f7;
}

.dimension-input {
  min-width: 0;
  height: 0.68rem;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #000000;
  font-size: 0.28rem;
  text-align: center;
}

.dimension-unit {
  margin-left: 0.08rem;
  color: #898888;
  font-size: 0.28rem;
  line-height: 0.68rem;
  pointer-events: none;
}

.dimension-dot {
  margin: 0 0.34rem;
  color: #000000;
  font-size: 0.28rem;
  font-weight: 500;
}

.goods-billing-row {
  margin-top: 0.28rem;
}

.goods-weight-tip {
  color: #898888;
  font-size: 0.24rem;
}

.goods-billing-link {
  color: #267dff;
  font-size: 0.24rem;
}

.goods-question-icon {
  background: #267dff;
  font-size: 0.2rem;
}

.goods-remark-card {
  margin-top: 0.08rem;
  padding: 0.24rem;
}

.goods-remark-title {
  display: block;
  color: #000000;
  font-size: 0.32rem;
  font-weight: 500;
}

.goods-remark-box {
  position: relative;
  height: 2.18rem;
  margin-top: 0.24rem;
  padding: 0.24rem 0.32rem;
  border-radius: 0.1rem;
  background: #f1f4ff;
}

.goods-remark-input {
  width: 100%;
  height: 1.5rem;
  border: 0;
  outline: 0;
  resize: none;
  background: transparent;
  color: #000000;
  font-size: 0.28rem;
}

.goods-remark-count {
  position: absolute;
  right: 0.24rem;
  bottom: 0.18rem;
  color: #898888;
  font-size: 0.24rem;
}

.goods-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  min-height: calc(1.4rem + env(safe-area-inset-bottom));
  justify-content: center;
  padding: 0.26rem 0.16rem calc(0.16rem + env(safe-area-inset-bottom));
  background: #ffffff;
}

.goods-confirm-button {
  display: flex;
  width: 7.17rem;
  height: 0.88rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.44rem;
  background: #2678ff;
  color: #ffffff;
  font-size: 0.32rem;
}

@media (min-width: 750px) {
  .goods-footer {
    right: auto;
    left: 50%;
    width: 750px;
    transform: translateX(-50%);
  }
}
