:root {
  color-scheme: dark;
  --bg: #060914;
  --bg-2: #0b1021;
  --card: rgba(255, 255, 255, 0.06);
  --card-strong: rgba(255, 255, 255, 0.10);
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.22);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --weak: #94a3b8;
  --purple: #7c3aed;
  --cyan: #06b6d4;
  --blue: #3b82f6;
  --amber: #f59e0b;
  --rose: #fb7185;
  --radius-lg: 28px;
  --radius-md: 20px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
  --glow: 0 0 70px rgba(124, 58, 237, 0.35);
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 75% 8%, rgba(124, 58, 237, 0.34), transparent 32%),
    radial-gradient(circle at 88% 22%, rgba(6, 182, 212, 0.22), transparent 24%),
    radial-gradient(circle at 8% 16%, rgba(59, 130, 246, 0.16), transparent 28%),
    linear-gradient(180deg, #050712 0%, #070a12 44%, #050713 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: .48;
  transform: none;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.13;
  background-image:
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
  z-index: 0;
}

.orb {
  position: absolute;
  width: 620px;
  height: 620px;
  right: -210px;
  top: 24px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 40%, rgba(6, 182, 212, .85), transparent 11%),
    radial-gradient(circle at 50% 50%, rgba(124, 58, 237, .45), transparent 36%),
    radial-gradient(circle at 50% 50%, transparent 47%, rgba(59, 130, 246, .8) 48%, rgba(124, 58, 237, .55) 52%, transparent 57%);
  opacity: .72;
  z-index: 0;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(7, 10, 18, 0.62);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  min-width: 208px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo,
.mini-logo {
  display: block !important;
  background: #202129;
  box-shadow: 0 0 30px rgba(124, 58, 237, .46);
  overflow: hidden !important;
  flex: 0 0 auto;
}

.logo > img,
.mini-logo > img,
.logo img,
.mini-logo img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}

.logo {
  width: 42px !important;
  height: 42px !important;
  border-radius: 14px;
}

.mini-logo {
  width: 25px !important;
  height: 25px !important;
  border-radius: 8px;
}

.brand strong {
  display: block;
  font-size: 18px;
}

.brand small {
  display: block;
  color: var(--weak);
  font-size: 12px;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  position: relative;
  white-space: nowrap;
  transition: color .2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: white;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -11px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
}

.btn {
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  font-weight: 800;
  white-space: nowrap;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .12);
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  border-color: rgba(255, 255, 255, .18);
  box-shadow: 0 12px 40px rgba(6, 182, 212, .22), 0 12px 40px rgba(124, 58, 237, .28);
}

.hero {
  min-height: calc(100vh - 76px);
  padding: 82px 0 58px;
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 52px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  padding: 9px 14px;
  border: 1px solid rgba(124, 58, 237, .34);
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(59, 130, 246, .12);
  box-shadow: inset 0 0 20px rgba(124, 58, 237, .12);
  font-size: 13px;
  font-weight: 800;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: #22d3ee;
  box-shadow: 0 0 18px #22d3ee;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 26px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.12;
}

h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.gradient-text {
  background: linear-gradient(135deg, #fff 0%, #c4b5fd 42%, #38bdf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  max-width: 610px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.positioning-line {
  max-width: 660px;
  margin: 0 0 34px;
  border-left: 3px solid var(--cyan);
  padding: 12px 16px;
  color: var(--text);
  font-size: 17px;
  font-weight: 760;
  line-height: 1.75;
  background: rgba(6, 182, 212, .08);
}

.intro-panel,
.question,
.status-card,
.result-head,
.result-grid article,
.wechat-claim,
.notice,
.handoff {
  border: 1px solid var(--border-strong);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .045)),
    radial-gradient(circle at 82% 18%, rgba(124, 58, 237, .22), transparent 34%);
  box-shadow: var(--shadow), var(--glow);
  backdrop-filter: blur(24px);
}

.intro-panel {
  overflow: hidden;
  min-height: 380px;
}

.screen-top {
  height: 62px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .035);
  color: var(--weak);
  font-size: 13px;
}

.screen-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
}

.intro-body {
  padding: 34px;
}

.intro-body p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--muted);
  font-size: 12px;
  background: rgba(255, 255, 255, .045);
}

.app-screen {
  min-height: calc(100vh - 76px);
  padding: 48px 0;
}

.progress {
  margin: 0 0 20px;
}

.progress span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--weak);
  font-size: 14px;
  font-weight: 800;
}

.bar {
  height: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, .08);
}

.bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  transition: width 180ms ease;
}

.question {
  margin: 0;
  padding: 30px;
}

.question legend {
  padding: 0;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 850;
  line-height: 1.35;
}

.options,
.text-stack {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.option,
.text-field,
.consent-row {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 14px 15px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, .045);
}

.option {
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.option:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .07);
}

.option input,
.consent-row input {
  flex: 0 0 auto;
  margin-top: 4px;
  accent-color: var(--cyan);
}

.text-field {
  display: grid;
}

.text-field span {
  margin-bottom: 8px;
  color: var(--weak);
  font-size: 14px;
  font-weight: 800;
}

.text-field input,
.text-field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  padding: 14px;
  color: var(--text);
  background: rgba(0, 0, 0, .24);
  outline: none;
}

.text-field input:focus,
.text-field textarea:focus {
  border-color: rgba(6, 182, 212, .52);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, .12);
}

.text-field textarea {
  min-height: 120px;
  resize: vertical;
}

.hint,
.limit {
  color: var(--weak);
  font-size: 13px;
  line-height: 1.7;
}

.actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.warning {
  min-height: 24px;
  margin: 12px 0 0;
  color: #fecdd3;
  font-weight: 800;
}

.status-card {
  max-width: 620px;
  margin: 12vh auto 0;
  padding: 32px;
}

.status-card p {
  color: var(--muted);
  line-height: 1.75;
}

.waiting-steps {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.waiting-steps span {
  position: relative;
  display: block;
  padding: 12px 14px 12px 38px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  color: var(--text);
  font-size: 15px;
  font-weight: 760;
  background: rgba(255, 255, 255, .055);
}

.waiting-steps span::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  transform: translateY(-50%);
  box-shadow: 0 0 18px rgba(34, 211, 238, .45);
}

.result-head {
  padding: 28px;
  margin-bottom: 16px;
}

.result-head p {
  color: var(--muted);
  line-height: 1.75;
}

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

.result-grid article {
  padding: 20px;
  box-shadow: none;
}

.result-grid article p {
  color: var(--muted);
  line-height: 1.75;
}

.wechat-claim {
  display: grid;
  justify-items: center;
  gap: 16px;
  margin-top: 16px;
  padding: 24px;
  text-align: center;
  box-shadow: none;
}

.wechat-claim p {
  max-width: 760px;
  color: var(--text);
  font-size: 17px;
  font-weight: 760;
  line-height: 1.75;
}

.wechat-claim img {
  width: min(220px, 58vw);
  height: auto;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .92);
  padding: 10px;
}

.notice,
.handoff {
  margin-top: 14px;
  padding: 18px;
  box-shadow: none;
}

.notice {
  border-color: rgba(245, 158, 11, .45);
  background: rgba(245, 158, 11, .10);
  color: #fde68a;
}

.handoff {
  color: var(--muted);
}

.handoff.enabled {
  border-color: rgba(6, 182, 212, .40);
  background: rgba(6, 182, 212, .10);
}

.handoff p {
  line-height: 1.7;
}

.limit {
  margin: 18px 0;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

@media (max-width: 1020px) {
  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 58px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .nav {
    min-height: 68px;
  }

  .brand {
    min-width: auto;
  }

  .brand-copy small,
  .header .btn {
    display: none;
  }

  .hero {
    gap: 34px;
  }

  .lead {
    font-size: 16px;
  }

  .intro-body,
  .question,
  .result-head,
  .status-card {
    padding: 22px;
  }

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

  .actions {
    flex-direction: column-reverse;
  }

  .actions .btn {
    width: 100%;
  }

  .orb {
    opacity: .35;
    right: -380px;
  }
}

@media print {
  :root {
    color-scheme: light;
  }

  * {
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    color: #111827;
    background: #fff !important;
  }

  .header,
  .orb,
  #introScreen,
  #formScreen,
  #loadingScreen,
  .result-actions {
    display: none !important;
  }

  .container {
    width: 100%;
  }

  #resultScreen {
    display: block !important;
    padding: 0;
  }

  .result-head,
  .result-grid article,
  .wechat-claim,
  .notice,
  .handoff {
    color: #111827;
    border: 1px solid #e5e7eb;
    background: #fff !important;
    backdrop-filter: none;
    break-inside: avoid;
  }

  .result-head p,
  .result-grid article p,
  .wechat-claim p,
  .handoff,
  .limit {
    color: #374151;
  }

  .eyebrow {
    color: #2563eb;
    background: #eff6ff;
    border-color: #bfdbfe;
  }

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

  .wechat-claim {
    grid-template-columns: 1fr 140px;
  }

  .wechat-claim img {
    width: 140px;
  }
}
