:root {
  --cart-bg: #f3f7fb;
  --cart-panel: #ffffff;
  --cart-ink: #111827;
  --cart-text: #333333;
  --cart-muted: #6b7280;
  --cart-line: #e5e7eb;
  --cart-soft: #f8fafc;
  --cart-primary: var(--color-primary, #2f74ff);
  --cart-danger: var(--color-danger, #e60012);
  --cart-price: var(--color-price-text, #e60012);
  --cart-shadow: 0 18px 44px rgba(15, 65, 130, 0.08);
}

.template {
  min-height: 100vh;
  background: var(--cart-bg);
}

.el-main {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0, rgba(243, 247, 251, 0) 2.4rem),
    var(--cart-bg);
}

.main-card {
  position: relative;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0.34rem 0.34rem 0.08rem;
  background: transparent;
}

.main-title {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 0.46rem;
  margin-bottom: 0.28rem;
  color: var(--cart-ink);
  font-size: 0.3rem;
  font-weight: 800;
  line-height: 1.2;
}

.main-title::before {
  content: "";
  width: 0.04rem;
  height: 0.24rem;
  margin-right: 0.12rem;
  border-radius: 0.02rem;
  background: var(--cart-danger);
  box-shadow: 0 0.08rem 0.2rem rgba(230, 0, 18, 0.22);
}

.search-box {
  margin-top: -0.64rem;
  margin-bottom: 0.22rem;
  text-align: right;
}

.search-box .el-input {
  width: 3.6rem;
}

.search-box .el-input .el-input__inner {
  height: 0.44rem;
  padding-left: 0.18rem;
  line-height: 0.44rem;
  color: var(--cart-ink);
  border: 1px solid #dfe5ef;
  border-radius: 0.22rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box .el-input .el-input__inner:focus {
  border-color: var(--cart-primary);
  box-shadow: 0 12px 28px rgba(47, 116, 255, 0.12);
}

.goods-box {
  min-height: 3rem;
  padding-bottom: 1.72rem;
}

.shopping-goods {
  position: relative;
  overflow: hidden;
  margin-bottom: 0.22rem;
  padding: 0.22rem 0.24rem 0.24rem;
  border: 1px solid var(--cart-line);
  border-radius: 0.08rem;
  background: var(--cart-panel);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.shopping-goods::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0.46rem;
  height: 0.04rem;
  background: var(--cart-danger);
}

.shopping-goods:hover {
  border-color: rgba(47, 116, 255, 0.28);
  box-shadow: var(--cart-shadow);
  transform: translateY(-0.02rem);
}

.table-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.16rem;
  min-height: 0.32rem;
}

.goods-name {
  color: var(--cart-ink);
  font-size: 0.17rem;
  font-weight: 800;
}

.el-link.el-link--primary {
  margin-left: 0.08rem;
  color: var(--cart-primary);
  font-size: 0.14rem;
  font-weight: 700;
}

.edit-goods {
  padding-bottom: 0.02rem;
  border-bottom: 1px solid currentColor;
}

.table-content {
  margin-top: 0.16rem;
  font-size: 0.14rem;
}

.goods-table {
  width: 100%;
  overflow: hidden;
  text-align: left;
  border: 1px solid #e8edf5;
  border-radius: 0.06rem;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
}

.goods-table thead {
  height: 0.46rem;
  color: #5f6b7a;
  background: linear-gradient(180deg, #f7faff, #eef4ff);
  line-height: 0.46rem;
}

.goods-table thead th {
  padding: 0 0.18rem;
  border-bottom: 1px solid #e7edf7;
  font-weight: 700;
}

.goods-table tbody tr td {
  padding: 0.28rem 0.18rem;
  border-bottom: 1px solid #f0f3f8;
  vertical-align: top;
}

.goods-table tbody tr:last-child td {
  border-bottom: 0;
}

.description-box {
  width: 5.5rem;
}

.price-box {
  width: 3.7rem;
}

.total-box {
  min-width: 1.7rem;
}

.num-box {
  width: 2.35rem;
}

.action-box {
  width: 0.9rem;
  text-align: center;
}

.delete-btn {
  color: #9aa3b2;
  font-size: 0.2rem;
  text-align: center;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.delete-btn:hover {
  color: var(--cart-danger);
  transform: translateY(-1px);
}

.item-price {
  color: var(--cart-ink);
  font-weight: 600;
  line-height: 1.8;
}

.item-total {
  color: var(--cart-ink);
  font-size: 0.14rem;
  font-weight: 800;
}

.item-total > span {
  color: var(--cart-price);
  font-size: 0.18rem;
}

.original-price {
  margin-top: 0.06rem;
  color: #9ba4b5;
  text-decoration: line-through;
}

.discount-codeNumber {
  display: inline-flex;
  align-items: center;
  height: 0.24rem;
  padding: 0 0.08rem;
  color: var(--color-discount-num, #1fa34a);
  border: 1px solid rgba(31, 163, 74, 0.22);
  border-radius: 0.03rem;
  background: rgba(31, 163, 74, 0.08);
  font-size: 0.12rem;
  font-weight: 700;
}

.remove-discountCode {
  margin-left: 0.09rem;
  cursor: pointer;
}

.info-box {
  width: 92%;
}

.goods-info {
  display: flex;
  justify-content: space-between;
  gap: 0.18rem;
  margin-bottom: 0.1rem;
  color: #1e2736;
  font-size: 0.14rem;
}

.goodsInfo-type {
  width: 80%;
  overflow: hidden;
  color: #1e2736;
  text-overflow: ellipsis;
}

.goodsInfo-name {
  color: #7b8495;
}

.goodsInfo-price {
  flex-shrink: 0;
  color: #1e2736;
  font-weight: 700;
}

.el-input-number--small {
  width: 1.22rem;
}

.el-input-number--small .el-input__inner {
  border-radius: 0.04rem;
}

.qty-num {
  height: 0.13rem;
  margin-top: 0.1rem;
  color: #4e5259;
}

.qty-tips {
  margin-top: 0.18rem;
  color: var(--cart-primary);
  font-size: 0.13rem;
}

.red-text {
  color: var(--cart-danger);
}

.discount-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.06rem;
  margin-top: 0.1rem;
  font-size: 0.14rem;
  font-weight: 400;
}

.no-goods-td {
  display: flex;
  align-items: center;
  width: 4.8rem;
}

.no-goods-tips {
  color: #8692b0;
  font-size: 0.13rem;
  font-weight: 500;
  white-space: nowrap;
}

.buy-again-btn {
  min-width: 0.82rem;
  height: 0.32rem;
  margin-left: 0.12rem;
  color: var(--cart-primary);
  border: 1px solid rgba(47, 116, 255, 0.18);
  border-radius: 0.03rem;
  background: rgba(47, 116, 255, 0.08);
  font-size: 0.14rem;
  font-weight: 700;
}

.el-footer {
  position: fixed;
  bottom: 0;
  z-index: 9;
  width: calc(100vw - 160px);
  height: 1.18rem !important;
  box-sizing: border-box;
  padding: 0 1.2rem 0 2.1rem;
  border-top: 1px solid rgba(229, 231, 235, 0.92);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 -16px 44px rgba(15, 23, 42, 0.08);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-size: 0.16rem;
}

.footer-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.24rem;
  height: 100%;
  max-width: 1500px;
  margin: 0 auto;
}

.footer-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.16rem 0;
  color: var(--cart-text);
  font-size: 0.16rem;
}

.footer-right {
  display: flex;
  align-items: center;
  color: #1e2736;
  font-size: 0.14rem;
}

.footer-right p {
  margin: 0;
}

.total-price {
  color: var(--cart-price);
  font-size: 0.3rem;
  font-weight: 900;
}

.text-red {
  color: var(--color-warning, #e60012);
  font-weight: 800;
}

.buy-btn {
  position: relative;
  overflow: hidden;
  width: 2.04rem;
  height: 0.46rem;
  margin-left: 0.34rem;
  border: 0;
  border-radius: 0.04rem;
  color: #ffffff;
  background: var(--cart-primary);
  font-size: 0.16rem;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(47, 116, 255, 0.22);
}

.buy-btn:hover {
  filter: brightness(0.96);
}

.delect-btn {
  margin: 0 0.28rem;
}

.delect-goods {
  font-weight: 700;
}

.mar-left-24 {
  margin-left: 24px;
}

.all-check .el-checkbox__label {
  color: var(--cart-text);
  font-size: 0.16rem;
  font-weight: 700;
}

.show-config-list p {
  margin: 0.04rem 0;
  color: #4b5563;
}

@media screen and (max-width: 750px) {
  .main-card {
    padding: 0.26rem 0.18rem 0;
  }

  .main-title {
    display: flex;
    margin-bottom: 0.18rem;
    font-size: 0.26rem;
  }

  .search-box {
    margin-top: 0;
    text-align: left;
  }

  .search-box .el-input {
    width: 100%;
  }

  .shopping-goods {
    padding: 0.18rem;
  }

  .table-name {
    align-items: flex-start;
    flex-direction: column;
  }

  .table-content {
    overflow-x: auto;
  }

  .goods-table {
    min-width: 10.8rem;
  }

  .description-box {
    min-width: 5rem;
  }

  .price-box {
    min-width: 3.4rem;
  }

  .num-box {
    min-width: 2.5rem;
  }

  .action-box {
    min-width: 1.1rem;
  }

  .goods-box {
    padding-bottom: 1.75rem;
  }

  .el-footer {
    width: 100%;
    height: 1.46rem !important;
    padding: 0 0.18rem;
  }

  .el-input .el-input__inner {
    font-size: inherit !important;
  }

  .footer-box {
    align-items: stretch;
    flex-direction: column;
    justify-content: center;
    gap: 0.12rem;
  }

  .footer-left {
    align-items: flex-start;
    flex-direction: column;
    color: var(--cart-text);
    font-size: 0.15rem;
  }

  .delect-btn {
    margin: 0;
  }

  .footer-right {
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .total-price {
    font-size: 0.24rem;
  }

  .delect-goods {
    color: var(--cart-danger);
  }

  .buy-btn {
    width: 1.58rem;
    height: 0.42rem;
    margin-left: 0.12rem;
    font-size: 0.15rem;
  }
}
