:root {
  --bg: #f5f6f8;
  --card: #ffffff;
  --ink: #17191f;
  --ink-2: #5b6270;
  --ink-3: #8b93a1;
  --line: #e6e8ec;
  --brand: #2f6fe4;
  --brand-dark: #2459bd;
  --ok: #1a8f63;
  --warn: #c2410c;
  --radius: 14px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 440px;
  margin: 0 auto;
  padding: 28px 20px 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-3);
  font-size: 13px;
  letter-spacing: .3px;
  margin-bottom: 26px;
}
.brand b { color: var(--ink); font-weight: 600; }

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .05);
}

h1 {
  font-size: 21px;
  line-height: 1.35;
  margin: 0 0 6px;
  font-weight: 700;
  letter-spacing: -.2px;
}

.sub {
  color: var(--ink-2);
  font-size: 14px;
  margin: 0 0 22px;
}

.meta {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.pill {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef1f6;
  color: var(--ink-2);
}
.pill.low { background: #fdece7; color: var(--warn); }

label {
  display: block;
  font-size: 13px;
  color: var(--ink-2);
  margin: 0 0 7px;
  font-weight: 500;
}

input, select {
  width: 100%;
  padding: 13px 14px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  background: #fbfbfc;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  transition: border-color .15s, background .15s;
  appearance: none;
}
select {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238b93a1' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
input:focus, select:focus {
  border-color: var(--brand);
  background: #fff;
}

.field { margin-bottom: 15px; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  transition: background .15s, opacity .15s;
}

.btn {
  width: 100%;
  padding: 15px;
  background: var(--brand);
  color: #fff;
  margin-top: 8px;
}
.btn:hover { background: var(--brand-dark); }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.btn-ghost {
  width: 100%;
  padding: 14px;
  background: #eef1f6;
  color: var(--ink);
}

.tip {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--ink-3);
  text-align: center;
  line-height: 1.7;
}

/* 结果页 */
.result-ok { text-align: center; }
.tick {
  width: 52px; height: 52px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #e7f5ee;
  color: var(--ok);
  font-size: 26px;
  line-height: 52px;
}
.code-label {
  font-size: 12.5px;
  color: var(--ink-3);
  margin: 22px 0 8px;
  letter-spacing: .5px;
}
.code-box {
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 18px 10px;
  background: #f4f6fa;
  border: 1px dashed #cfd6e2;
  border-radius: 10px;
  word-break: break-all;
  user-select: all;
}
.steps {
  text-align: left;
  margin: 22px 0 0;
  padding: 16px;
  background: #f9fafb;
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.9;
}
.steps b { color: var(--ink); }

.warn-box {
  background: #fff8f4;
  border: 1px solid #f6ddd0;
  color: #8a3f18;
  padding: 13px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.7;
  margin-top: 18px;
}

.spinner {
  width: 18px; height: 18px;
  border: 2px solid #dfe3ea;
  border-top-color: var(--brand);
  border-radius: 50%;
  display: inline-block;
  animation: spin .7s linear infinite;
  vertical-align: -3px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hidden { display: none !important; }

.center { text-align: center; }
.muted { color: var(--ink-3); font-size: 13.5px; }

/* ============================================================
   领取页：官网 C 版「墨金·典藏」底
   底色 180deg 五段呼吸 + 三层光晕（蓝 / 金 / 浅蓝）
   卡片保持白牌，对应官网 hero 的白色铭牌
   ============================================================ */
body.page-claim {
  background:
    radial-gradient(1080px 760px at 78% 3%, rgba(78, 138, 240, .22), transparent 62%),
    radial-gradient(1000px 820px at 2% 44%, rgba(201, 169, 106, .10), transparent 62%),
    radial-gradient(900px 700px at 98% 94%, rgba(110, 160, 246, .14), transparent 66%),
    linear-gradient(180deg, #0b1524 0%, #0e1b2e 30%, #12243c 60%, #0e1b2e 84%, #0b1524 100%);
  background-attachment: fixed;
  background-color: #0b1524;
  min-height: 100vh;
}

/* 顶部 2px 金蓝细线 */
body.page-claim::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(214, 185, 128, .75) 42%, rgba(120, 170, 255, .5) 72%, transparent);
  z-index: 8;
  pointer-events: none;
}

/* 96px 网格纹理，径向渐隐 */
body.page-claim::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-mask-image: radial-gradient(1200px 900px at 42% 14%, #000, transparent 78%);
  mask-image: radial-gradient(1200px 900px at 42% 14%, #000, transparent 78%);
  pointer-events: none;
  z-index: 0;
}

body.page-claim .wrap {
  position: relative;
  z-index: 1;
}

body.page-claim .brand { color: #8e9db0; }
body.page-claim .brand b { color: #f2f5f9; }

body.page-claim .card {
  box-shadow:
    0 24px 60px rgba(4, 10, 22, .55),
    0 2px 6px rgba(4, 10, 22, .3),
    inset 0 0 0 1px rgba(201, 169, 106, .13);
}

body.page-claim .tip { color: #6b7a8d; }

/* 展示页同步官网底色 */
.display-body {
  background:
    radial-gradient(1080px 760px at 78% 3%, rgba(78, 138, 240, .22), transparent 62%),
    radial-gradient(1000px 820px at 2% 44%, rgba(201, 169, 106, .10), transparent 62%),
    linear-gradient(180deg, #0b1524 0%, #0e1b2e 30%, #12243c 60%, #0e1b2e 84%, #0b1524 100%);
  background-color: #0b1524;
  color: #eef1f6;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.display-card { text-align: center; max-width: 560px; width: 100%; }
.display-title { font-size: 26px; font-weight: 700; margin-bottom: 6px; letter-spacing: -.3px; }
.display-sub { color: #8b93a1; font-size: 15px; margin-bottom: 28px; }
.qr-holder {
  background: #fff;
  padding: 22px;
  border-radius: 16px;
  display: inline-block;
  line-height: 0;
}
.qr-holder img { width: 340px; height: 340px; display: block; }
.display-hint { margin-top: 22px; font-size: 17px; color: #c7cdd8; }
.display-counter {
  margin-top: 10px;
  font-size: 15px;
  color: #8b93a1;
  letter-spacing: .3px;
}
.display-counter b { color: #6fd3a1; font-size: 19px; }
.display-counter.done b { color: #ff8a65; }
.display-soldout {
  margin-top: 16px;
  font-size: 18px;
  color: #ff8a65;
  font-weight: 600;
}
@media (max-width: 480px) {
  .qr-holder img { width: 240px; height: 240px; }
  .display-title { font-size: 20px; }
}
