:root {
  --brand-red: #a31f1f;
  --brand-red-dark: #8f1b1b;
  --bg-light: #f4efe4;
  --page-bg-image: url("../../小图/微信图片_20260414214619_122_535.jpg");
  --line: rgba(176, 152, 122, 0.32);
  --text-main: #2f2520;
  --text-sub: #7b7064;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #e8e2d5;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text-main);
}

input,
button,
select {
  font: inherit;
}

.page {
  max-width: 375px;
  min-height: 100vh;
  margin: 0 auto;
  background:
    linear-gradient(rgba(244, 239, 228, 0.72), rgba(244, 239, 228, 0.72)),
    var(--page-bg-image) center top / cover no-repeat;
  position: relative;
  overflow-x: hidden;
  box-shadow: 0 0 0 1px rgba(120, 92, 63, 0.06);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--brand-red);
  color: #fff;
}

.topbar-main {
  height: calc(66px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.back-btn {
  color: #fff;
  text-decoration: none;
  font-size: 34px;
  line-height: 1;
  width: 28px;
}

.topbar h1 {
  margin: 0;
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
}

.topbar-spacer {
  width: 28px;
  height: 1px;
}

.content {
  padding: 12px 0 calc(88px + env(safe-area-inset-bottom));
  background: transparent;
}

.card {
  background: rgba(244, 239, 228, 0.96);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}

.field-row {
  min-height: 66px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.field-row + .field-row {
  border-top: 1px solid var(--line);
}

.label {
  width: 78px;
  font-size: 16px;
  line-height: 1.2;
  color: #4b4138;
}

.field-row input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 16px;
  line-height: 1.2;
  color: #9b9186;
}

.field-row input::placeholder {
  color: #9b9186;
}

.region-row {
  align-items: center;
}

.region-selects {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.region-selects select {
  height: 34px;
  padding: 0 8px;
  border: 1px solid rgba(176, 152, 122, 0.48);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.5);
  color: #6f6156;
  font-size: 14px;
  outline: none;
}

.region-selects select:focus {
  border-color: rgba(163, 31, 31, 0.55);
}

.section-title {
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  line-height: 1.2;
  color: #4a4037;
}

.goods-item {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr) 88px;
  gap: 12px;
  padding: 12px 16px 13px;
  align-items: start;
}

.goods-item img {
  width: 136px;
  height: 98px;
  object-fit: cover;
}

.goods-info h2 {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.15;
  letter-spacing: 0.2px;
  color: #2f2520;
}

.goods-info p {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  white-space: nowrap;
  color: #54483f;
}

.goods-info p span {
  display: inline-block;
  min-width: 52px;
}

.goods-price {
  text-align: right;
  padding-top: 3px;
}

.goods-price p {
  margin: 0;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: 0.2px;
  color: #2f2520;
  font-weight: 700;
}

.goods-price span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.1;
  color: #5f5449;
}

.remark-row {
  min-height: 64px;
}

.remark-row .label {
  width: 96px;
}

.remark-row input {
  text-align: left;
}

.coupon-row {
  min-height: 64px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 17px;
  line-height: 1.2;
  color: #4b4138;
}

.arrow {
  color: #8a7d70;
}

.amount-card {
  margin-bottom: 0;
}

.amount-row {
  min-height: 64px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.amount-row:last-child {
  border-bottom: 0;
}

.amount-row span,
.amount-row strong {
  font-size: 17px;
  line-height: 1.2;
}

.amount-row span {
  color: #4b4138;
}

.amount-row strong {
  color: #2f2520;
  font-weight: 700;
}

.bottom-pay {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: min(375px, 100vw);
  height: calc(62px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: #f1ebdf;
  border-top: 1px solid #ded5c3;
  display: grid;
  grid-template-columns: 1fr 132px;
}

.bottom-pay p {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 18px;
  line-height: 1.1;
  color: #6a6056;
}

.bottom-pay p span {
  color: #c12a2a;
}

.bottom-pay button {
  border: 0;
  background: var(--brand-red);
  color: #fff;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 600;
}

.bottom-pay button:active {
  background: var(--brand-red-dark);
}

.pay-error-tip {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(68px + env(safe-area-inset-bottom));
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(163, 31, 31, 0.92);
  color: #fff;
  font-size: 13px;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.pay-error-tip.show {
  opacity: 1;
}
