:root {
  color-scheme: light;
  color: #241f1d;
  background: #fff8f4;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  display: flex;
  min-width: 320px;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 24px;
}

.card {
  width: 100%;
  min-width: 0;
  max-width: 430px;
  padding: 38px 34px 34px;
  border: 1px solid #eee4de;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(73, 45, 32, 0.11);
  text-align: center;
}

h1 {
  margin: 0;
  font-size: 30px;
  letter-spacing: 0.04em;
}

.subtitle {
  margin: 10px 0 26px;
  color: #7a706b;
  font-size: 15px;
}

.qr-box {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 286px;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border: 1px solid #eee8e4;
  border-radius: 16px;
  background: #fff;
}

.qr-box img {
  display: block;
  width: min(100%, 280px);
  height: auto;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

.tip {
  margin: 18px 0;
  color: #8b827d;
  font-size: 13px;
}

.mobile-tip {
  display: none;
}

.save-button {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: #26211f;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.save-button:hover {
  background: #403936;
}

.save-button:focus-visible {
  outline: 3px solid rgba(208, 82, 57, 0.32);
  outline-offset: 3px;
}

@media (max-width: 520px) {
  body {
    padding: 14px;
  }

  .card {
    padding: 28px 20px 24px;
    border-radius: 20px;
  }

  h1 {
    font-size: 26px;
  }

  .qr-box {
    min-height: 0;
  }

  .desktop-tip {
    display: none;
  }

  .mobile-tip {
    display: inline;
  }
}
