:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #f5f7fb;
  color: #1f2329;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at top, rgba(22, 119, 255, 0.12), transparent 35%),
    linear-gradient(180deg, #f8fbff 0%, #f5f7fb 100%);
}

.card {
  width: 100%;
  max-width: 420px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 50px rgba(31, 35, 41, 0.12);
  padding: 28px 28px 32px;
  text-align: center;
}

h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.status {
  margin-top: 20px;
  min-height: 24px;
  font-size: 14px;
  color: #4e5969;
}

.status.error {
  color: #cf1322;
}

.status.success {
  color: #1677ff;
}

.actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.button {
  appearance: none;
  border: 0;
  border-radius: 12px;
  height: 46px;
  padding: 0 18px;
  background: #1677ff;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.button.secondary {
  background: #eef3ff;
  color: #1677ff;
}

.qr-wrap {
  margin-top: 20px;
  min-height: 320px;
  display: none;
  align-items: center;
  justify-content: center;
}

.qr-wrap.active {
  display: flex;
}

.qr-image {
  width: 300px;
  height: 300px;
  border-radius: 12px;
  background: #fff;
  padding: 8px;
  box-shadow: 0 8px 20px rgba(31, 35, 41, 0.08);
  cursor: pointer;
}

.tips {
  margin-top: 14px;
  color: #86909c;
  font-size: 12px;
  line-height: 1.7;
  text-align: left;
}

.footer {
  margin-top: 26px;
  font-size: 12px;
  color: #86909c;
}
