:root {
  --ink: #1e1f22;
  --muted: #686b73;
  --line: #e8e8ea;
  --surface: #ffffff;
  --canvas: #f6f6f4;
  --yellow: #ffd100;
  --yellow-dark: #e6bc00;
  --green: #16845b;
  --red: #b42318;
  --shadow: 0 18px 50px rgba(27, 28, 31, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 209, 0, 0.18), transparent 32rem),
    var(--canvas);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

button, a, input { font: inherit; }

.shell {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 40px;
}

.hero {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

.brand-mark {
  display: grid;
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  place-items: center;
  border-radius: 24px;
  background: var(--yellow);
  box-shadow: 0 14px 28px rgba(204, 164, 0, 0.24);
  font-size: 32px;
  font-weight: 900;
}

.eyebrow, .step-label {
  margin: 0 0 6px;
  color: #8a6f00;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(30px, 6vw, 48px); line-height: 1.05; }
h2 { margin-bottom: 0; font-size: 24px; }
.intro, .muted { color: var(--muted); }
.intro { margin-bottom: 0; font-size: 16px; }

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.status-card, .panel {
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.status-card { padding: 18px; border-radius: 20px; }
.status-card span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 13px; }
.status-card strong { font-size: 15px; }

.panel { margin-bottom: 18px; padding: 28px; border-radius: 28px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }

.notice {
  margin-bottom: 18px;
  padding: 16px 18px;
  border-left: 4px solid var(--yellow);
  border-radius: 12px;
  background: #fff9d9;
}

.notice p { margin: 6px 0 0; color: #61581f; line-height: 1.65; }
.consent-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; color: #4c4e54; line-height: 1.55; }
.consent-row input { width: 18px; height: 18px; margin-top: 3px; accent-color: #1d1e20; }

.primary-button, .secondary-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 0 22px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.primary-button { border: 0; background: var(--yellow); color: #171717; }
.primary-button:hover:not(:disabled) { background: var(--yellow-dark); transform: translateY(-1px); }
.primary-button:disabled { cursor: not-allowed; opacity: 0.45; }
.secondary-button { border: 1px solid #26272a; background: #26272a; color: #fff; }
.secondary-button:hover { transform: translateY(-1px); }

.text-button { border: 0; background: transparent; color: #6d5b00; cursor: pointer; text-decoration: underline; }
.auth-options { display: grid; grid-template-columns: 1fr 50px 1fr; align-items: stretch; }
.qr-card, .jump-card { display: flex; min-height: 270px; flex-direction: column; align-items: center; justify-content: center; padding: 20px; text-align: center; }
.option-title { margin-bottom: 14px; font-weight: 800; }
.qr-frame { display: grid; width: 176px; height: 176px; place-items: center; margin-bottom: 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.qr-frame img { width: 100%; height: 100%; object-fit: contain; }
.qr-card > p:last-child, .jump-card > p:last-child { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.divider { display: flex; align-items: center; justify-content: center; color: #999; }
.divider::before { content: ""; width: 1px; height: 72%; background: var(--line); }
.divider span { position: absolute; padding: 8px 0; background: #fff; }
.phone-icon { margin-bottom: 22px; font-size: 72px; line-height: 1; }

.message { margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: #eff8f4; color: var(--green); line-height: 1.55; }
.message.error { background: #fff1ef; color: var(--red); }

.coupon-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }
.coupon { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; border: 1px solid #f0df9b; border-radius: 14px; background: #fffbeb; }
.coupon strong { display: block; margin-bottom: 5px; }
.coupon span { color: var(--muted); font-size: 12px; }
.coupon b { flex: 0 0 auto; color: #8a4b00; }

.hidden { display: none !important; }
footer { padding: 8px 16px; color: #7a7d84; text-align: center; font-size: 12px; line-height: 1.6; }

@media (max-width: 680px) {
  .shell { width: min(100% - 20px, 920px); padding-top: 28px; }
  .hero { align-items: flex-start; }
  .brand-mark { width: 56px; height: 56px; flex-basis: 56px; border-radius: 18px; font-size: 24px; }
  .status-grid { grid-template-columns: 1fr; }
  .panel { padding: 22px 18px; border-radius: 22px; }
  .auth-options { grid-template-columns: 1fr; }
  .divider { min-height: 36px; }
  .divider::before { width: 70%; height: 1px; }
  .divider span { padding: 0 10px; }
  .coupon-list { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; }
}
