* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #fff7f0;
  user-select: none;
}

.view {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 28px 60px;
}

.hidden {
  display: none !important;
}

header { margin-bottom: 36px; }

h1 {
  font-size: 52px;
  font-weight: 800;
}

.status-row {
  display: flex;
  align-items: center;
  margin-top: 14px;
}

.badge {
  padding: 6px 20px;
  border-radius: 999px;
  font-size: 22px;
  color: #fff;
}

.badge.open { background: #2eaf4e; }
.badge.closed { background: #999; }

.queue-info {
  margin-left: 16px;
  color: #888;
  font-size: 24px;
}

.foods {
  display: flex;
  gap: 20px;
}

.food-card {
  flex: 1;
  background: #fff;
  border: 6px solid transparent;
  border-radius: 24px;
  padding: 36px 0;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: transform 0.1s;
}

.food-card:active { transform: scale(0.97); }

.food-card.selected {
  border-color: #ff6b35;
  background: #fff3ec;
}

.food-icon { font-size: 72px; }

.food-name {
  margin-top: 12px;
  font-size: 34px;
  font-weight: 700;
}

.food-price {
  margin-top: 6px;
  color: #ff6b35;
  font-size: 28px;
  font-weight: 700;
}

.qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
  background: #fff;
  border-radius: 24px;
  padding: 18px 24px;
}

.qty-label { font-size: 32px; font-weight: 700; }

.stepper { display: flex; align-items: center; }

.step-btn {
  width: 88px;
  height: 88px;
  font-size: 48px;
  font-weight: 800;
  color: #ff6b35;
  background: #fff0e8;
  border: none;
  border-radius: 20px;
  cursor: pointer;
}

.step-btn:active { background: #ffe0d0; }

.qty-num {
  min-width: 120px;
  text-align: center;
  font-size: 48px;
  font-weight: 800;
}

.total {
  margin-top: 28px;
  text-align: center;
  font-size: 30px;
  color: #666;
}

.total b {
  color: #ff6b35;
  font-size: 40px;
}

.submit-btn {
  margin-top: 36px;
  width: 100%;
  height: 120px;
  background: #ff6b35;
  color: #fff;
  font-size: 48px;
  font-weight: 800;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 0 #c24a1f;
}

.submit-btn:active {
  transform: translateY(4px);
  box-shadow: 0 4px 0 #c24a1f;
}

.submit-btn.disabled {
  background: #d9d9d9;
  box-shadow: 0 8px 0 #aaa;
}

.pay-note {
  margin-top: 24px;
  text-align: center;
  font-size: 26px;
  color: #e05252;
}

.footer {
  margin-top: 36px;
  text-align: center;
  color: #aaa;
  font-size: 24px;
}

/* ===== 进度视图 ===== */
.stall {
  text-align: center;
  font-size: 28px;
  color: #999;
}

.no-label {
  margin-top: 40px;
  text-align: center;
  font-size: 28px;
  color: #888;
}

.big-no {
  margin-top: 6px;
  text-align: center;
  font-size: 150px;
  font-weight: 800;
  line-height: 1.1;
  color: #ff6b35;
}

.status-banner {
  display: block;
  width: fit-content;
  margin: 20px auto 0;
  padding: 10px 40px;
  border-radius: 999px;
  background: #ffe9dd;
  color: #ff6b35;
  font-size: 36px;
  font-weight: 700;
}

.status-banner.ready {
  background: #2eaf4e;
  color: #fff;
  animation: pulse 1s infinite alternate;
}

@keyframes pulse {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

.info {
  display: flex;
  justify-content: space-around;
  margin-top: 48px;
  background: #fff;
  border-radius: 24px;
  padding: 32px 0;
}

.info-item { text-align: center; }

.info-item .num {
  font-size: 52px;
  font-weight: 700;
}

.info-item .cap {
  margin-top: 6px;
  font-size: 24px;
  color: #999;
}

.detail {
  margin-top: 28px;
  text-align: center;
  font-size: 28px;
  color: #666;
}

.pay-box {
  margin-top: 32px;
  background: #fff;
  border: 3px dashed #ffb38f;
  border-radius: 24px;
  padding: 28px 20px;
  text-align: center;
}

.pay-amount {
  font-size: 30px;
  color: #555;
}

.pay-amount b {
  color: #ff6b35;
  font-size: 52px;
}

.pay-qr {
  margin-top: 20px;
}

.pay-qr img {
  width: 220px;
  height: 220px;
  border-radius: 12px;
}

.pay-tip {
  margin-top: 20px;
  font-size: 26px;
  color: #e05252;
}

.home-btn {
  margin-top: 56px;
  width: 100%;
  height: 100px;
  background: #ff6b35;
  color: #fff;
  font-size: 36px;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  cursor: pointer;
}
