* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #efefef;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #111;
}

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

.card {
  width: min(100%, 420px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.qr-wrap {
  width: 260px;
  height: 260px;
  padding: 12px;
  background: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.qrcode {
  width: 236px;
  height: 236px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qrcode canvas,
.qrcode img {
  max-width: 100%;
  max-height: 100%;
}

.result-link {
  margin: 0;
  width: 100%;
  text-align: center;
  font-size: 18px;
  line-height: 1.6;
  word-break: break-all;
}

.btn {
  border: 0;
  border-radius: 8px;
  padding: 14px 28px;
  font-size: 18px;
  cursor: pointer;
  color: #fff;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
  opacity: 0.92;
}

.btn:active {
  transform: scale(0.98);
}

.btn-copy {
  background: #e2a247;
}

.btn-generate {
  width: 100%;
  background: #51b761;
  font-size: 20px;
}

.code-input {
  width: 100%;
  height: 64px;
  border: 2px solid #cfcfcf;
  border-radius: 18px;
  background: #fff;
  text-align: center;
  font-size: 22px;
  color: #111;
  outline: none;
}

.tips {
  margin: 0;
  font-size: 14px;
  color: #666;
  text-align: center;
}
