:root {
  color-scheme: light;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #38271f;
  background: #f8f3ef;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  overflow: hidden;
  padding: 48px;
  background:
    radial-gradient(circle at 18% 15%, rgba(255, 193, 7, 0.16), transparent 26%),
    radial-gradient(circle at 82% 85%, rgba(255, 152, 0, 0.12), transparent 28%),
    #f8f3ef;
}

.card {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(820px, 100%);
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: center;
  padding: 52px;
  border: 1px solid rgba(109, 76, 65, 0.08);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 80px rgba(91, 60, 43, 0.14);
  backdrop-filter: blur(16px);
}

.cat {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 24px;
  margin-bottom: 24px;
  background: #fff3d3;
  font-size: 44px;
  box-shadow: inset 0 0 0 1px rgba(255, 152, 0, 0.14);
}

.eyebrow {
  margin: 0 0 8px;
  color: #d86f00;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.16;
  letter-spacing: -0.04em;
}

.description {
  margin: 22px 0 28px;
  color: #705b50;
  font-size: 17px;
  line-height: 1.8;
}

.url-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 16px;
  border: 1px solid #eadfd8;
  border-radius: 14px;
  background: #fffaf6;
}

code {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: #5d4037;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

button {
  flex: none;
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  color: #fff;
  background: #a65b00;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: #864900;
}

button:focus-visible {
  outline: 3px solid rgba(255, 152, 0, 0.3);
  outline-offset: 3px;
}

.copy-status {
  min-height: 22px;
  margin: 8px 0 0;
  color: #8d6e63;
  font-size: 13px;
}

.qr-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.qr-frame {
  display: grid;
  place-items: center;
  padding: 18px;
  border-radius: 24px;
  margin-bottom: 20px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(95, 66, 50, 0.12);
}

.qr-frame img {
  display: block;
  width: 220px;
  height: 220px;
}

.qr-panel strong {
  font-size: 18px;
}

.qr-panel span {
  margin-top: 8px;
  color: #8d7569;
  font-size: 14px;
}

.background-word {
  position: absolute;
  color: rgba(109, 76, 65, 0.055);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: clamp(100px, 14vw, 220px);
  font-weight: 700;
  user-select: none;
}

.word-one { top: -3%; left: 2%; transform: rotate(-10deg); }
.word-two { right: 3%; bottom: -7%; transform: rotate(9deg); }
.word-three { right: 8%; top: 1%; transform: rotate(7deg); }
.word-four { left: 7%; bottom: -8%; transform: rotate(-6deg); }

@media (max-width: 760px) {
  body {
    overflow: auto;
    padding: 24px;
  }

  .card {
    grid-template-columns: 1fr;
    padding: 32px;
  }
}
