:root {
  --bg: #eceff3;
  --panel: #ffffff;
  --text: #222831;
  --muted: #687281;
  --line: #dde3ea;
  --teal: #0f766e;
  --blue: #2563eb;
  --amber: #b45309;
  --red: #b42318;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

.phone {
  width: min(420px, 100vw);
  min-height: min(820px, 100vh);
  background: #f7f8fa;
  border: 1px solid #cbd3de;
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  grid-template-rows: 56px 1fr 62px;
  box-shadow: 0 20px 60px rgba(21, 27, 36, 0.16);
}

.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.phone-top strong {
  font-size: 18px;
}

.phone-top span {
  color: var(--muted);
}

.mini-view {
  min-height: 0;
  overflow-y: auto;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.cover {
  min-height: 170px;
  border-radius: 8px;
  overflow: hidden;
  background: #1f2933;
  position: relative;
  color: #ffffff;
}

.cover img {
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
  display: block;
}

.cover div {
  position: absolute;
  inset: auto 0 0;
  padding: 44px 14px 14px;
  background: linear-gradient(0deg, rgba(19, 24, 32, 0.82), rgba(19, 24, 32, 0));
}

.cover h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
}

.cover p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.84);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.panel h2,
.panel h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.panel p,
.panel small {
  color: var(--muted);
  line-height: 1.7;
}

.store,
.room-type,
.order {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.store:last-child,
.room-type:last-child,
.order:last-child {
  border-bottom: 0;
}

.store strong,
.room-type strong,
.order strong {
  display: block;
  margin-bottom: 4px;
}

.price {
  color: var(--amber);
  font-weight: 800;
}

.coupon-hint {
  display: block;
  margin: -2px 0 10px;
  color: var(--teal);
}

.form {
  display: grid;
  gap: 10px;
}

.member-bind {
  margin-top: 12px;
}

.field {
  display: grid;
  gap: 5px;
}

.field label {
  color: var(--muted);
  font-size: 12px;
}

.field input,
.field select {
  width: 100%;
  min-height: 40px;
  border: 1px solid #b9c3cf;
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  padding: 0 10px;
}

.primary,
.ghost {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0 12px;
  cursor: pointer;
}

.primary {
  background: var(--teal);
  color: #ffffff;
}

.ghost {
  background: #ffffff;
  border-color: var(--line);
  color: var(--text);
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 8px;
  background: #e6efff;
  color: var(--blue);
  font-size: 12px;
}

.code-box {
  min-height: 78px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #111827;
  color: #ffffff;
  font-size: 28px;
  font-weight: 800;
}

.tabbar {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #ffffff;
}

.tabbar button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.tabbar button.active {
  color: var(--teal);
  font-weight: 800;
}

@media (max-width: 430px) {
  body {
    display: block;
  }

  .phone {
    width: 100vw;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }
}
