:root {
  --ink: #19231e;
  --forest: #173f34;
  --ivory: #f3efe5;
  --paper: #fffdf8;
  --gold: #b39261;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: #e9e4d8;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

button {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
}

.qr-page {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: 100vh;
  padding: 76px 20px 60px;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.62), transparent 27%),
    linear-gradient(135deg, #eeeadf, #ded8ca);
  place-items: center;
}

.qr-orb {
  position: absolute;
  border: 1px solid rgba(23, 63, 52, 0.13);
  border-radius: 50%;
}

.qr-orb-one {
  top: -300px;
  right: -220px;
  width: 650px;
  height: 650px;
}

.qr-orb-two {
  bottom: -300px;
  left: -230px;
  width: 620px;
  height: 620px;
}

.qr-back {
  position: absolute;
  z-index: 2;
  top: 25px;
  left: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(25, 35, 30, 0.55);
  font-size: 11px;
}

.qr-back svg {
  width: 17px;
  height: 17px;
}

.qr-poster {
  position: relative;
  z-index: 1;
  width: min(570px, 100%);
  padding: 34px 47px 24px;
  text-align: center;
  background:
    radial-gradient(circle at 100% 0%, rgba(223, 230, 218, 0.7), transparent 30%),
    var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 34px 90px rgba(38, 50, 43, 0.17);
}

.qr-poster::before {
  content: "";
  position: absolute;
  inset: 11px;
  pointer-events: none;
  border: 1px solid rgba(23, 63, 52, 0.09);
}

.qr-poster-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.qr-monogram {
  display: grid;
  width: 39px;
  height: 39px;
  color: var(--ivory);
  background: var(--forest);
  border-radius: 50% 50% 50% 10px;
  place-items: center;
}

.qr-monogram svg {
  width: 25px;
  height: 25px;
}

.qr-poster-head > div:last-child {
  display: flex;
  flex-direction: column;
}

.qr-poster-head strong {
  font-family: "Songti SC", "STSong", serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.09em;
}

.qr-poster-head small {
  margin-top: 3px;
  color: rgba(25, 35, 30, 0.4);
  font-size: 6px;
  letter-spacing: 0.16em;
}

.qr-kicker {
  margin: 43px 0 10px;
  color: var(--gold);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.qr-poster h1 {
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(38px, 6vw, 52px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.25;
}

.qr-intro {
  margin: 15px 0 24px;
  color: rgba(25, 35, 30, 0.53);
  font-size: 11px;
}

.qr-code-card {
  position: relative;
  display: grid;
  width: 284px;
  height: 284px;
  margin: 0 auto;
  padding: 22px;
  background: white;
  place-items: center;
}

.qr-code-card canvas {
  width: 240px !important;
  height: 240px !important;
}

.qr-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--forest);
  border-style: solid;
}

.qr-corner-a {
  top: 0;
  left: 0;
  border-width: 1px 0 0 1px;
}

.qr-corner-b {
  top: 0;
  right: 0;
  border-width: 1px 1px 0 0;
}

.qr-corner-c {
  bottom: 0;
  left: 0;
  border-width: 0 0 1px 1px;
}

.qr-corner-d {
  right: 0;
  bottom: 0;
  border-width: 0 1px 1px 0;
}

.qr-instruction {
  display: flex;
  margin: 22px 0 10px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: rgba(25, 35, 30, 0.54);
}

.qr-instruction span {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 11px;
  font-style: italic;
}

.qr-instruction p {
  margin: 0;
  font-size: 9px;
}

.qr-instruction i {
  width: 24px;
  height: 1px;
  background: rgba(25, 35, 30, 0.17);
}

.qr-url {
  overflow: hidden;
  max-width: 350px;
  margin: 0 auto;
  color: rgba(25, 35, 30, 0.32);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qr-actions {
  display: flex;
  margin-top: 23px;
  justify-content: center;
  gap: 8px;
}

.qr-actions button {
  min-height: 39px;
  padding: 0 18px;
  background: transparent;
  border: 1px solid rgba(25, 35, 30, 0.19);
  border-radius: 999px;
  cursor: pointer;
  font-size: 10px;
}

.qr-actions button:first-child {
  color: white;
  background: var(--forest);
  border-color: var(--forest);
}

.qr-actions button:active {
  transform: translateY(1px);
}

.qr-switch-link {
  display: inline-block;
  margin-top: 16px;
  color: rgba(25, 35, 30, 0.52);
  font-size: 9px;
}

.qr-switch-link:hover {
  color: var(--forest);
}

.qr-poster footer {
  display: flex;
  margin-top: 27px;
  padding-top: 17px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: rgba(25, 35, 30, 0.38);
  border-top: 1px solid rgba(25, 35, 30, 0.09);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.qr-poster footer i {
  width: 3px;
  height: 3px;
  background: var(--gold);
  border-radius: 50%;
}

@media (max-width: 600px) {
  .qr-page {
    padding: 65px 12px 30px;
  }

  .qr-back {
    top: 19px;
    left: 17px;
  }

  .qr-poster {
    padding: 27px 22px 21px;
  }

  .qr-kicker {
    margin-top: 35px;
  }

  .qr-poster h1 {
    font-size: 39px;
  }

  .qr-code-card {
    width: 260px;
    height: 260px;
    padding: 18px;
  }

  .qr-code-card canvas {
    width: 220px !important;
    height: 220px !important;
  }
}
