:root {
  --bg-top: #f6f3e8;
  --bg-bottom: #dfeee2;
  --card: rgba(255, 252, 245, 0.9);
  --card-border: rgba(34, 88, 61, 0.14);
  --text: #1f3427;
  --muted: #5d6f63;
  --accent: #2f7a57;
  --accent-strong: #215b40;
  --danger: #b04f3d;
  --success-bg: rgba(47, 122, 87, 0.1);
  --danger-bg: rgba(176, 79, 61, 0.1);
  --shadow: 0 28px 70px rgba(43, 71, 56, 0.15);
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 200, 122, 0.34), transparent 28%),
    radial-gradient(circle at bottom right, rgba(47, 122, 87, 0.25), transparent 32%),
    linear-gradient(145deg, var(--bg-top), var(--bg-bottom));
  color: var(--text);
}

.page-shell {
  display: grid;
  min-height: 100vh;
  padding: 32px 16px;
  place-items: center;
}

.hero-card {
  width: min(100%, 560px);
  padding: 34px 28px;
  border: 1px solid var(--card-border);
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.15;
}

.intro {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.claim-form {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.field-label {
  font-weight: 700;
}

input {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid rgba(47, 122, 87, 0.24);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  font-size: 1rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

input:focus {
  outline: none;
  border-color: rgba(47, 122, 87, 0.72);
  box-shadow: 0 0 0 4px rgba(47, 122, 87, 0.12);
  transform: translateY(-1px);
}

button {
  border: none;
  border-radius: 16px;
  padding: 15px 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
  box-shadow: 0 16px 24px rgba(33, 91, 64, 0.25);
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
}

button:disabled {
  cursor: wait;
  opacity: 0.75;
}

.result-panel {
  margin-top: 24px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(47, 122, 87, 0.12);
  background: rgba(255, 255, 255, 0.7);
}

.result-panel.success {
  background: var(--success-bg);
}

.result-panel.error {
  background: var(--danger-bg);
}

.result-message {
  margin: 0;
  line-height: 1.7;
}

.code-box {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
}

.code-label {
  color: var(--muted);
  font-size: 0.9rem;
}

#result-code {
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  word-break: break-all;
}

.hidden {
  display: none;
}

@media (max-width: 640px) {
  .hero-card {
    padding: 28px 20px;
    border-radius: 24px;
  }
}
