:root {
  color-scheme: light;
  --bg-top: #fff8ec;
  --bg-bottom: #ffe1bd;
  --card-bg: rgba(255, 252, 247, 0.88);
  --card-border: rgba(130, 78, 26, 0.12);
  --text-primary: #2f2419;
  --text-secondary: #6f5b47;
  --accent: #df5f1d;
  --accent-dark: #ba4710;
  --accent-soft: rgba(223, 95, 29, 0.12);
  --shadow: 0 18px 60px rgba(116, 63, 22, 0.16);
  --radius-xl: 28px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text-primary);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), transparent 34%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
}

body {
  min-height: 100vh;
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.hero-card {
  width: min(100%, 420px);
  padding: 28px 22px 22px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--accent);
}

h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.15;
}

.summary {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.status-panel {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.68);
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(223, 95, 29, 0.4);
  animation: pulse 1.8s infinite;
}

.actions {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

button {
  border: none;
  cursor: pointer;
  font: inherit;
  border-radius: 999px;
  min-height: 50px;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

button:active {
  transform: translateY(1px) scale(0.995);
}

.primary-button {
  color: #fff8ef;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 12px 28px rgba(186, 71, 16, 0.24);
}

.secondary-button {
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.qrcode-card {
  margin-top: 22px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.56);
  text-align: center;
}

.qrcode-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.qrcode-image {
  display: block;
  width: min(100%, 220px);
  margin: 14px auto 0;
  border-radius: 16px;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(223, 95, 29, 0.4);
  }

  70% {
    box-shadow: 0 0 0 12px rgba(223, 95, 29, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(223, 95, 29, 0);
  }
}

@media (max-width: 480px) {
  .page {
    padding: 16px;
  }

  .hero-card {
    padding: 24px 18px 18px;
  }

  h1 {
    font-size: 28px;
  }
}
