.qc-page {
  --brand: #0DAA4A;
  --brand-dark: #0b9440;
  --ink: #111827;
  --muted: #6b7280;
  --line: #eef2f0;
  --notes: #f0faf4;
  --notes-ink: #166534;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  box-sizing: border-box;
  padding: 12px 20px calc(32px + env(safe-area-inset-bottom));
  background: #f7f8fa;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Noto Sans SC", sans-serif;
}
.qc-page.qc-page-white {
  background: #fff;
}
.qc-page[hidden],
.qc-blocked[hidden] { display: none !important; }
.qc-hero {
  display: block;
  width: 90%;
  height: auto;
  margin: 4px auto 20px;
}
.qc-hero-card {
  width: 90%;
  margin: 4px auto 20px;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.12);
}
.qc-hero-card .qc-hero {
  width: 100%;
  margin: 0;
}
.qc-title {
  margin: 0;
  text-align: center;
  font-size: 1.22rem;
  font-weight: 750;
  line-height: 1.45;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.qc-sub {
  margin: 8px 0 0;
  text-align: center;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
}
.qc-card {
  margin-top: 20px;
  padding: 16px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.04);
}
.qc-notes {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--notes);
  border-radius: 14px;
}
.qc-notes-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  font-size: 0.92rem;
  font-weight: 750;
  color: var(--notes-ink);
}
.qc-notes ul {
  margin: 0;
  padding-left: 1.1em;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.7;
}
.qc-btn {
  display: block;
  width: 100%;
  margin-top: 22px;
  border: 0;
  background: var(--brand);
  color: #fff;
  font-size: 1.02rem;
  font-weight: 750;
  padding: 14px 16px;
  border-radius: 12px;
  cursor: pointer;
}
.qc-btn:active { background: var(--brand-dark); transform: scale(0.99); }
.qc-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.qc-btn-ghost {
  background: #fff;
  color: var(--brand);
  border: 1.5px solid var(--brand);
}
.qc-link {
  display: block;
  margin-top: 14px;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
}
.qc-blocked {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Noto Sans SC", sans-serif;
}
.qc-blocked p { margin: 0; font-size: 1rem; line-height: 1.6; color: #4b5563; }
.qc-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(12px);
  background: rgba(17, 24, 39, 0.92);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 0.92rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 20;
  white-space: nowrap;
  max-width: 86vw;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qc-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
html.sr-ok .qc-page { display: block; }
html.sr-ok .qc-blocked { display: none; }
html:not(.sr-ok) .qc-page { display: none; }
.qc-drop {
  margin-top: 18px;
  border: 1.5px dashed #d1d5db;
  border-radius: 16px;
  background: #fff;
  min-height: 148px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  cursor: pointer;
  overflow: hidden;
}
.qc-drop strong { color: var(--ink); font-weight: 650; }
.qc-drop img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: #f8fafc;
}
.qc-hint { margin: 8px 0 0; text-align: center; font-size: 0.78rem; color: var(--muted); }
.qc-steps { list-style: none; margin: 0; padding: 0; }
.qc-steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
}
.qc-dot {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  box-sizing: border-box;
  margin-top: 1px;
}
.qc-dot.done { background: var(--brand); border-color: var(--brand); }
.qc-dot.current { border-color: var(--brand); box-shadow: inset 0 0 0 5px var(--brand); }
.qc-fail {
  margin-top: 18px;
  padding: 16px;
  background: #fff;
  border-radius: 16px;
}
.qc-fail-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-weight: 750;
  color: var(--danger);
}
.qc-fail-box {
  margin-top: 10px;
  padding: 12px;
  background: var(--danger-bg);
  border-radius: 10px;
  color: #991b1b;
  font-size: 0.86rem;
  line-height: 1.55;
}
.qc-vip-card {
  margin-top: 18px;
  padding: 16px;
  background: #fff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.qc-em { color: var(--brand); }
@media (min-width: 768px) {
  .qc-page { padding-top: 28px; }
}
