/* Vibe 认证中心 - 深色系，突出输入框仪式感 */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: #0a0a12;
  color: #e8e8f0;
  font-family: -apple-system, "PingFang SC", "Noto Sans SC", sans-serif;
  min-height: 100vh;
}

.hidden { display: none !important; }

/* ---------- 第一屏 ---------- */
.hero {
  min-height: 70vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 48px 20px; text-align: center;
  background: radial-gradient(ellipse at 50% 0%, #1a1a2e 0%, #0a0a12 70%);
}
.trophy { font-size: 72px; margin-bottom: 16px; }
.hero h1 { font-size: 40px; letter-spacing: 2px; }
.tagline { color: #8a8aa0; margin: 12px 0 40px; font-size: 17px; }

.certify-box {
  display: flex; gap: 12px;
  width: min(640px, 92vw);
}
.certify-box input {
  flex: 1; padding: 18px 22px;
  font-size: 17px;
  background: #12121f;
  border: 2px solid #2a2a45; border-radius: 12px;
  color: #fff; outline: none;
  transition: border-color .2s;
}
.certify-box input:focus { border-color: #ffd700; box-shadow: 0 0 24px rgba(255,215,0,.15); }
.certify-box button {
  padding: 18px 36px; font-size: 17px; font-weight: 700;
  background: #ffd700; color: #0a0a12;
  border: none; border-radius: 12px; cursor: pointer;
  transition: transform .15s;
  white-space: nowrap;
}
.certify-box button:hover { transform: scale(1.04); }
.certify-box button:disabled { opacity: .5; cursor: wait; transform: none; }
.form-error { color: #ff6b6b; margin-top: 14px; min-height: 22px; }

/* ---------- 等待态 ---------- */
.waiting {
  position: fixed; inset: 0; z-index: 10;
  background: rgba(10,10,18,.96);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 24px; text-align: center;
}
.waiting-title { font-size: 22px; margin-bottom: 28px; }
.progress {
  width: min(480px, 84vw); height: 8px;
  background: #1a1a2e; border-radius: 4px; overflow: hidden;
}
.progress-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #ffd700, #ff9d00);
  border-radius: 4px;
  transition: width .3s ease;
}
.joke { margin-top: 24px; color: #8a8aa0; font-size: 16px; min-height: 24px; }

/* ---------- 社交证明 ---------- */
.social-proof { padding: 56px 20px; text-align: center; }
.counter { font-size: 18px; color: #8a8aa0; }
.counter strong { color: #ffd700; font-size: 24px; }
.recent-cards {
  display: flex; gap: 14px; justify-content: center;
  flex-wrap: wrap; margin-top: 28px;
}
.recent-card {
  background: #12121f; border: 1px solid #2a2a45;
  border-radius: 12px; padding: 16px 22px;
  font-size: 14px; min-width: 180px;
}
.recent-card .r-badge { font-size: 26px; }
.recent-card .r-name { margin-top: 6px; color: #c8c8dc; }
.recent-card .r-time { margin-top: 4px; color: #55556a; font-size: 12px; }

/* ---------- 段位预览 ---------- */
.tiers {
  display: flex; justify-content: center; gap: 18px;
  flex-wrap: wrap; padding: 48px 20px;
}
.tier {
  background: #12121f; border-radius: 16px;
  padding: 28px 24px; width: 200px; text-align: center;
  border: 1px solid #2a2a45;
}
.tier .badge { font-size: 44px; }
.tier h3 { margin: 10px 0 8px; }
.tier p { color: #8a8aa0; font-size: 14px; }
.tier.bronze   { box-shadow: inset 0 0 30px rgba(205,127,50,.08); }
.tier.silver   { box-shadow: inset 0 0 30px rgba(192,192,192,.10); }
.tier.gold     { box-shadow: inset 0 0 30px rgba(255,215,0,.12); }
.tier.platinum { box-shadow: inset 0 0 30px rgba(150,150,255,.15); }

/* ---------- 示例 ---------- */
.examples { padding: 48px 20px; text-align: center; }
.examples h2 { margin-bottom: 24px; }
.example-cards { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.example-card {
  background: #12121f; border: 1px solid #2a2a45; border-radius: 16px;
  padding: 28px; width: 260px; font-size: 40px;
}
.example-card p { font-size: 14px; color: #c8c8dc; margin-top: 12px; }

/* ---------- 脚标 ---------- */
footer {
  text-align: center; padding: 40px 20px;
  color: #55556a; font-size: 13px;
}

/* ---------- 结果页 ---------- */
.result-wrap {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 40px 16px; gap: 24px;
}
#cert-canvas {
  width: min(720px, 94vw); height: auto;
  border-radius: 16px;
  box-shadow: 0 12px 60px rgba(0,0,0,.6);
}
.result-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.result-actions button {
  padding: 14px 28px; font-size: 16px; font-weight: 600;
  border-radius: 10px; border: none; cursor: pointer;
}
.btn-primary { background: #ffd700; color: #0a0a12; }
.btn-ghost { background: #1a1a2e; color: #e8e8f0; border: 1px solid #2a2a45 !important; }
.brand-credit { color: #55556a; font-size: 13px; }
.brand-credit a { color: #8a8aa0; }

@media (max-width: 560px) {
  .certify-box { flex-direction: column; }
  .hero h1 { font-size: 30px; }
}
