:root {
  --accent: #e58b4b;
  --accent-deep: #c36a2f;
  --ink: #2e2018;
  --soft-ink: #6d5a4c;
  --card: #fffaf5;
  --border: rgba(67, 42, 26, 0.12);
  --shadow: 0 24px 60px rgba(84, 52, 28, 0.15);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "LXGW WenKai", "Hiragino Mincho ProN", "Songti SC", "Noto Serif SC", serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #fff2e4 0%, #f9f0e8 45%, #f7f4f0 100%);
  min-height: 100vh;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), #f2b178);
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 22px;
  letter-spacing: 2px;
  box-shadow: 0 12px 30px rgba(229, 139, 75, 0.35);
}

.brand-name {
  font-size: clamp(22px, 3vw, 30px);
  margin: 0;
  font-weight: 700;
}

.brand-sub {
  margin: 6px 0 0;
  color: var(--soft-ink);
  font-size: 14px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  font-size: 14px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c4c4c4;
  box-shadow: 0 0 0 4px rgba(196, 196, 196, 0.2);
}

.status-dot.waiting { background: #66a3ff; box-shadow: 0 0 0 4px rgba(102, 163, 255, 0.2); }
.status-dot.scanned { background: #ffb04a; box-shadow: 0 0 0 4px rgba(255, 176, 74, 0.2); }
.status-dot.processing { background: #8e7fff; box-shadow: 0 0 0 4px rgba(142, 127, 255, 0.2); }
.status-dot.claimed { background: #55c27f; box-shadow: 0 0 0 4px rgba(85, 194, 127, 0.2); }
.status-dot.failed, .status-dot.expired, .status-dot.canceled { background: #9b9b9b; box-shadow: 0 0 0 4px rgba(155, 155, 155, 0.2); }

.content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  justify-items: center;
}

.qr-section {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  max-width: 680px;
}

.qr-card {
  background: var(--card);
  border-radius: 26px;
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.qr-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(229, 139, 75, 0.2), transparent 70%);
  right: -40px;
  top: -60px;
}

.qr-image-wrap {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  min-height: 340px;
  border: 1px dashed rgba(120, 86, 60, 0.2);
  display: grid;
  place-items: center;
}

.qr-image-wrap img {
  max-width: 100%;
  width: 320px;
  height: auto;
  display: none;
}

.qr-placeholder {
  text-align: center;
  color: var(--soft-ink);
}

.qr-placeholder span {
  font-size: 13px;
}

.qr-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
  gap: 12px;
}

.meta-label {
  margin: 0;
  font-size: 12px;
  color: var(--soft-ink);
}

.meta-value {
  margin: 6px 0 0;
  font-size: 15px;
  font-weight: 600;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

button {
  font-family: inherit;
}

.primary {
  background: linear-gradient(135deg, var(--accent), #f2b178);
  color: #fff;
  border: none;
  padding: 12px 22px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 15px;
  box-shadow: 0 12px 24px rgba(229, 139, 75, 0.25);
}

.primary:hover {
  filter: brightness(0.97);
}

.ghost {
  background: transparent;
  border: 1px solid var(--border);
  padding: 12px 22px;
  border-radius: 14px;
  cursor: pointer;
  color: var(--ink);
}

.hint {
  margin: 0;
  color: var(--soft-ink);
  font-size: 13px;
}

.panel {
  background: rgba(255, 255, 255, 0.75);
  border-radius: 24px;
  padding: 22px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel h2 {
  margin: 0;
  font-size: 18px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

label {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  color: var(--soft-ink);
  gap: 8px;
}

input,
select {
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 10px 12px;
  font-size: 14px;
  background: #fff;
  color: var(--ink);
}

input[type="color"] {
  padding: 0;
  height: 40px;
  border-radius: 10px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.checkbox {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.panel-note {
  margin: 0;
  font-size: 12px;
  color: var(--soft-ink);
}

.footer {
  text-align: center;
  font-size: 12px;
  color: var(--soft-ink);
  padding-bottom: 8px;
}

@media (max-width: 960px) {
  .content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page {
    padding: 24px 18px 20px;
  }

  .hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .qr-meta {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}
